summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-09-13 10:51:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:06:43 -0500
commitf7ae1fc1ca09c8a42a28929337cccdb6d735f960 (patch)
tree0f76ba712bc6b22e6015028d14757f3dc78aa194
parentd8a5ed33b36d7666b04673298a9b67f06cc36687 (diff)
downloadsamba-f7ae1fc1ca09c8a42a28929337cccdb6d735f960.tar.gz
samba-f7ae1fc1ca09c8a42a28929337cccdb6d735f960.tar.bz2
samba-f7ae1fc1ca09c8a42a28929337cccdb6d735f960.zip
r25122: fix interface detection code
jelmer: I wonder what broke it... metze (This used to be commit 4c8063b9c4ca2c0359859338a8335e177e9c31bd)
-rw-r--r--source4/lib/socket/config.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/socket/config.m4 b/source4/lib/socket/config.m4
index e9c194ddc4..7234eea030 100644
--- a/source4/lib/socket/config.m4
+++ b/source4/lib/socket/config.m4
@@ -102,8 +102,10 @@ dnl the configure uses --with-static-modules=socket_ipv6
#
# This tests need LIBS="$NSL_LIBS $SOCKET_LIBS"
#
+old_CFLAGS=$CFLAGS
old_LIBS=$LIBS
LIBS="$NSL_LIBS $SOCKET_LIBS"
+CFLAGS="$CFLAGS -Ilib/replace"
iface=no;
AC_CACHE_CHECK([for iface AIX],samba_cv_HAVE_IFACE_AIX,[
AC_TRY_RUN([
@@ -140,4 +142,5 @@ if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
fi
fi
+CFLAGS=$old_CFLAGS
LIBS=$old_LIBS