svn commit: samba r23637 - in branches/SAMBA_4_0/source/build/m4: .

metze at samba.org metze at samba.org
Wed Jun 27 19:46:54 GMT 2007


Author: metze
Date: 2007-06-27 19:46:53 +0000 (Wed, 27 Jun 2007)
New Revision: 23637

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

Log:
fix detection of visibility attribute support

James: AC_TRY_LINK() has a different syntax as AC_TRY_RUN() :-)
       so this was wrong:
       http://websvn.samba.org/cgi-bin/viewcvs.cgi?rev=20697&view=rev

metze
Modified:
   branches/SAMBA_4_0/source/build/m4/check_cc.m4


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/check_cc.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/check_cc.m4	2007-06-27 18:28:18 UTC (rev 23636)
+++ branches/SAMBA_4_0/source/build/m4/check_cc.m4	2007-06-27 19:46:53 UTC (rev 23637)
@@ -71,12 +71,11 @@
 	OLD_CFLAGS="$CFLAGS"
 
 	CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
-	AC_TRY_LINK([],
-	[
+	AC_TRY_LINK([
 		void vis_foo1(void) {}
 		__attribute__((visibility("default"))) void vis_foo2(void) {}
-		#include "${srcdir-.}/build/tests/trivial.c"
 	],[
+	],[
 		AC_MSG_RESULT(yes)
 		AC_DEFINE(HAVE_VISIBILITY_ATTR,1,[Whether the C compiler supports the visibility attribute])
 		visibility_attribute=yes



More information about the samba-cvs mailing list