]> git.meshlink.io Git - catta/commitdiff
* bug fix in run_versioned
authorSebastien Estienne <sebastien.estienne@gmail.com>
Thu, 20 Oct 2005 15:51:29 +0000 (15:51 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Thu, 20 Oct 2005 15:51:29 +0000 (15:51 +0000)
* bug fix in socket.c and cosmectic change
* use uname instead of MACHTYPE in bootstrap.sh

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@830 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

autogen.sh
avahi-core/socket.c
bootstrap.sh

index b0568e57522a67d85f5de179b939fe9dbbdaa217..902181d8209f452e45ad632324626ac21154a749 100755 (executable)
@@ -24,7 +24,7 @@ run_versioned() {
     local P
     local V
 
-    V=$(echo "$VERSION" | sed -e 's,\.,,g')
+    V=$(echo "$2" | sed -e 's,\.,,g')
     
     if type -p "$1$V" &> /dev/null ; then
        P="$1$V" 
@@ -51,8 +51,8 @@ else
 
     "$LIBTOOLIZE" -c --force
     run_versioned aclocal "$VERSION" -I common
-    autoconf -Wall
-    autoheader
+    run_versioned autoconf 2.59 -Wall
+    run_versioned autoheader 2.59
     run_versioned automake "$VERSION" -a -c --foreign
 
     if test "x$NOCONFIGURE" = "x"; then
index 12a860575547cea60ffd23e2ec6040319b3aa116..497f06196acd36bd68b947351cd4e552d3f6d948 100644 (file)
@@ -505,18 +505,18 @@ int avahi_send_dns_packet_ipv4(int fd, int interface, AvahiDnsPacket *p, const A
        }
 #elif IP_RECVIF
        {
-         struct sockaddr_dl *pkti;
+         struct sockaddr_dl *sdl;
 
          cmsg->cmsg_type = IP_RECVIF;
-         pkti = (struct sockaddr_dl*) (cmsg_data + sizeof(struct cmsghdr));
-         pkti->sdl_index = interface;
+         sdl = (struct sockaddr_dl*) (cmsg_data + sizeof(struct cmsghdr));
+         sdl->sdl_index = interface;
        }
 #elif IP_RECVINTERFACE
        {
          u_short *i;
 
          cmsg->cmsg_type = IP_RECVINTERFACE;
-         i = (u_short *) (cmsg_data + sizeof(u_short));
+         i = (u_short *) (cmsg_data + sizeof(struct cmsghdr));
          memcpy(&i, CMSG_DATA (cmsg), sizeof(u_short));
        }
 #endif
index 4c345662f6a0117b8c00d00cc84b8c57c80fcd51..e6323730dc13167a82aa5ad3ac2c73f4b51e0f0f 100755 (executable)
@@ -22,13 +22,24 @@ FLAGS="--sysconfdir=/etc --localstatedir=/var --enable-tests --enable-compat-how
 
 # Feel free to add your own custom flags in here -Lathiat
 
-case "$MACHTYPE" in
-    powerpc-apple-darwin8.0)
+case `uname -s` in
+    Darwin)
     export LIBTOOLIZE=/opt/local/bin/glibtoolize
     export CFLAGS="-I/opt/local/include"
     export LDFLAGS="-L/opt/local/lib"
     export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig"
-    FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python"
+    FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python --disable-manpages"
+    ;;
+    FreeBSD)
+    cp /usr/local/share/aclocal/libtool15.m4 common
+    cp /usr/local/share/aclocal/pkg.m4 common
+    export LIBTOOLIZE=/usr/local/bin/libtoolize15
+    export CFLAGS="-I/usr/local/include"
+    export LDFLAGS="-L/usr/local/lib"
+    export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
+    FLAGS="$FLAGS --disable-monodoc --disable-mono --disable-qt3 --disable-qt4 --disable-xmltoman --prefix=/opt --with-distro=none --disable-python --disable-dbus --disable-glib --disable-gtk --disable-manpages"
+    ;;
+    Linux)
     ;;
 esac