s3:configure: fix avahi activation
authorBjörn Jacke <bj@sernet.de>
Sun, 18 Oct 2009 15:01:57 +0000 (17:01 +0200)
committerBjörn Jacke <bj@sernet.de>
Sun, 18 Oct 2009 15:06:29 +0000 (17:06 +0200)
Avahi was correctly found but not activated since e4a26c942.

source3/configure.in

index 36c89efe2b4e9b24b1e16eaa35c6d8d533760818..69596df46c4c10f4818a3c4aeac2f0a494c90a65 100644 (file)
@@ -6197,12 +6197,12 @@ if test x"$enable_avahi" != x"no"; then
     fi
 
     save_LIBS="$LIBS"
-    AC_CHECK_LIB(avahi-client, avahi_client_new)
-    AC_CHECK_LIB(avahi-common, avahi_strerror)
+    AC_CHECK_LIB(avahi-client, avahi_client_new,[have_avahi_client_new=yes])
+    AC_CHECK_LIB(avahi-common, avahi_strerror,[have_avahi_strerror=yes])
     LIBS="$save_LIBS"
 
-    if test x"$ac_cv_lib_ext_avahi_client_avahi_client_new" != x"yes" -o \
-       x"$ac_cv_lib_ext_avahi_common_avahi_strerror" != x"yes" ; then
+    if test x"$have_avahi_client_new" != x"yes" -o \
+       x"$have_avahi_strerror" != x"yes" ; then
        have_avahi_support=no
     fi