summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-10-11 07:19:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:56 -0500
commit5916c6c469da4d571bb7adb8d25c51a1882cf68e (patch)
tree92f2f6567f7b00c78616b1795a78aaf57929a355 /source4/lib/replace
parent66f264bd7a90a5aa0e9031f815b3d229416aa431 (diff)
downloadsamba-5916c6c469da4d571bb7adb8d25c51a1882cf68e.tar.gz
samba-5916c6c469da4d571bb7adb8d25c51a1882cf68e.tar.bz2
samba-5916c6c469da4d571bb7adb8d25c51a1882cf68e.zip
r19234: fix configure test for net/if.h for some platforms
AC_LANG_SOURCE() causes to have the content of confdefs.h in front of the file that will be compiled metze (This used to be commit cd03738e7c5610c4a0cb1161b9bcee5d7c88322d)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/libreplace.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4
index 662993cb79..d74ee6ed1e 100644
--- a/source4/lib/replace/libreplace.m4
+++ b/source4/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]
)