r18093: check for the headers first and check all functions
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Sep 2006 14:26:14 +0000 (14:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:15 +0000 (14:17 -0500)
metze
(This used to be commit 5bb8a5ce32a3e85355d8554974d226708df41970)

source4/lib/replace/libreplace.m4

index ce4236721269476b60e2221eecc3ad617e0f36ee..abbd63db7ab37dc18504ce79bdd2cbf4a07f49a1 100644 (file)
@@ -95,9 +95,9 @@ if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
 fi
 
 dnl Provided by snprintf.c:
-AC_CHECK_DECLS([asprintf, vasprintf, snprintf])
+AC_CHECK_HEADERS(stdio.h strings.h)
+AC_CHECK_DECLS([snprintf, vsnprintf, asprintf, vasprintf])
 AC_CHECK_FUNCS(snprintf vsnprintf asprintf vasprintf)
-AC_CHECK_HEADERS(strings.h)
 
 AC_CACHE_CHECK([for C99 vsnprintf],samba_cv_HAVE_C99_VSNPRINTF,[
 AC_TRY_RUN([