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

jelmer at samba.org jelmer at samba.org
Thu Sep 21 04:48:42 GMT 2006


Author: jelmer
Date: 2006-09-21 04:48:41 +0000 (Thu, 21 Sep 2006)
New Revision: 18769

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

Log:
Re-enable __VA_ARGS__ test (but don't make it fatal)

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-09-21 04:33:19 UTC (rev 18768)
+++ branches/SAMBA_4_0/source/lib/replace/libreplace.m4	2006-09-21 04:48:41 UTC (rev 18769)
@@ -267,10 +267,10 @@
 AC_CHECK_FUNCS(strtoull __strtoull strtouq strtoll __strtoll strtoq)
 
 # this test disabled as we don't actually need __VA_ARGS__ yet
-# AC_TRY_CPP([
-# #define eprintf(...) fprintf(stderr, __VA_ARGS__)
-# eprintf("bla", "bar");
-# ], [], [AC_MSG_ERROR([__VA_ARGS__ is required])])
+AC_TRY_CPP([
+#define eprintf(...) fprintf(stderr, __VA_ARGS__)
+eprintf("bla", "bar");
+], AC_DEFINE(HAVE__VA_ARGS__MACRO, 1, [Whether the __VA_ARGS__ macro is available]))
 
 # Check prerequisites
 AC_CHECK_FUNCS([memset printf syslog], [], 



More information about the samba-cvs mailing list