summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-08 15:26:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:03:59 -0500
commit69979ddc6e6a5b36f710ec6155b50c00568f68cf (patch)
treedfebe132be04faf40dd5b89166d234326e8a275f /source4/lib/replace
parenta45445682047a60dd435f8a3e2176bb217b68c55 (diff)
downloadsamba-69979ddc6e6a5b36f710ec6155b50c00568f68cf.tar.gz
samba-69979ddc6e6a5b36f710ec6155b50c00568f68cf.tar.bz2
samba-69979ddc6e6a5b36f710ec6155b50c00568f68cf.zip
r14998: Remove unused autoconf test, move others to proper places
(This used to be commit bfa396a16056f54163c514da8b34aaf229653765)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/config.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4
index 3c11ac1476..99cecc630e 100644
--- a/source4/lib/replace/config.m4
+++ b/source4/lib/replace/config.m4
@@ -132,3 +132,24 @@ AC_CHECK_HEADERS(stdbool.h)
sinclude(lib/replace/readline.m4)
sinclude(lib/replace/getpass.m4)
+
+dnl VA_COPY
+AC_CACHE_CHECK([for va_copy],samba_cv_HAVE_VA_COPY,[
+AC_TRY_LINK([#include <stdarg.h>
+va_list ap1,ap2;], [va_copy(ap1,ap2);],
+samba_cv_HAVE_VA_COPY=yes,samba_cv_HAVE_VA_COPY=no)])
+if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
+ AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available])
+fi
+
+if test x"$samba_cv_HAVE_VA_COPY" != x"yes"; then
+AC_CACHE_CHECK([for __va_copy],samba_cv_HAVE___VA_COPY,[
+AC_TRY_LINK([#include <stdarg.h>
+va_list ap1,ap2;], [__va_copy(ap1,ap2);],
+samba_cv_HAVE___VA_COPY=yes,samba_cv_HAVE___VA_COPY=no)])
+if test x"$samba_cv_HAVE___VA_COPY" = x"yes"; then
+ AC_DEFINE(HAVE___VA_COPY,1,[Whether __va_copy() is available])
+fi
+fi
+
+