diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-10-11 07:22:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:23 -0500 |
commit | 7cbdc06ad9b68544c8eeaa68fdd7b03f71c0b739 (patch) | |
tree | 3dd277b1f944c105f9348b0fea08de62e93d12df | |
parent | 1697686d9da7dd1ac707c7af9c145c0fc6204108 (diff) | |
download | samba-7cbdc06ad9b68544c8eeaa68fdd7b03f71c0b739.tar.gz samba-7cbdc06ad9b68544c8eeaa68fdd7b03f71c0b739.tar.xz samba-7cbdc06ad9b68544c8eeaa68fdd7b03f71c0b739.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
-rw-r--r-- | source/lib/replace/libreplace.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4 index 662993cb79b..d74ee6ed1e4 100644 --- a/source/lib/replace/libreplace.m4 +++ b/source/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] ) |