svn commit: samba r19234 - in branches/SAMBA_4_0/source/lib/replace: .

metze at samba.org metze at samba.org
Wed Oct 11 07:19:00 GMT 2006


Author: metze
Date: 2006-10-11 07:19:00 +0000 (Wed, 11 Oct 2006)
New Revision: 19234

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19234

Log:
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
Modified:
   branches/SAMBA_4_0/source/lib/replace/libreplace.m4


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/libreplace.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-10-11 05:36:52 UTC (rev 19233)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-10-11 07:19:00 UTC (rev 19234)
@@ -103,13 +103,13 @@
 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]
 	)



More information about the samba-cvs mailing list