summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-21 04:48:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:19:10 -0500
commit85ba30961baaec34a58b79e72ac1e483daa75aa1 (patch)
treeec30efd9da54457209ff53cb4ca1df185017c5af /source4/lib/replace
parente9834410d460e2392459b86cbd1f483523fe90c2 (diff)
downloadsamba-85ba30961baaec34a58b79e72ac1e483daa75aa1.tar.gz
samba-85ba30961baaec34a58b79e72ac1e483daa75aa1.tar.bz2
samba-85ba30961baaec34a58b79e72ac1e483daa75aa1.zip
r18769: Re-enable __VA_ARGS__ test (but don't make it fatal)
(This used to be commit cc8c403de8c6558031c14f929a485361b7eb0222)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/libreplace.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/replace/libreplace.m4 b/source4/lib/replace/libreplace.m4
index 6c26f7b904..804f998b9e 100644
--- a/source4/lib/replace/libreplace.m4
+++ b/source4/lib/replace/libreplace.m4
@@ -267,10 +267,10 @@ AC_CHECK_FUNCS(strnlen setenv)
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], [],