summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-10-11 07:22:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:23 -0500
commitf455951e1e1271dc5e00e64a3d52245a0ceab239 (patch)
treef781ea3e39d6f5ee0754080b0ff04453bd7fa230 /source3
parentfc15a2ae5fbbc5b244c16dafeda3898772ef988e (diff)
downloadsamba-f455951e1e1271dc5e00e64a3d52245a0ceab239.tar.gz
samba-f455951e1e1271dc5e00e64a3d52245a0ceab239.tar.bz2
samba-f455951e1e1271dc5e00e64a3d52245a0ceab239.zip
r19235: merge from samba4:
fix configure test for net/if.h on some platforms AC_LANG_SOURCE() adds the content of confdefs.h in front of the compiled file metze (This used to be commit 7cbdc06ad9b68544c8eeaa68fdd7b03f71c0b739)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/replace/libreplace.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/replace/libreplace.m4 b/source3/lib/replace/libreplace.m4
index 662993cb79..d74ee6ed1e 100644
--- a/source3/lib/replace/libreplace.m4
+++ b/source3/lib/replace/libreplace.m4
@@ -103,13 +103,13 @@ AC_CHECK_HEADERS(sys/sockio.h sys/un.h)
dnl we need to check that net/if.h really can be used, to cope with hpux
dnl where including it always fails
AC_CACHE_CHECK([for usable net/if.h],libreplace_cv_USABLE_NET_IF_H,[
- AC_COMPILE_IFELSE([
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
AC_INCLUDES_DEFAULT
#if HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#include <net/if.h>
- int main(void) {return 0;}],
+ int main(void) {return 0;}])],
[libreplace_cv_USABLE_NET_IF_H=yes],
[libreplace_cv_USABLE_NET_IF_H=no]
)