]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r19234: fix configure test for net/if.h for some platforms
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Oct 2006 07:19:00 +0000 (07:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:56 +0000 (14:20 -0500)
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)

source4/lib/replace/libreplace.m4

index 662993cb79b4788e6cbcb7f25fdeb2b8800705a6..d74ee6ed1e480678c674503a701dba24d23f99fd 100644 (file)
@@ -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]
        )