]> granicus.if.org Git - p11-kit/commitdiff
build: Check *asprintf on all platforms
authorDaiki Ueno <dueno@redhat.com>
Wed, 1 Feb 2017 15:37:37 +0000 (16:37 +0100)
committerDaiki Ueno <ueno@gnu.org>
Thu, 16 Feb 2017 15:17:14 +0000 (16:17 +0100)
configure.ac

index 84cb7ef1169594736f02fe8250ea5d691fc1644c..3ff62ccff06d90513f7d2a4ca5df4aa914dabe02 100644 (file)
@@ -89,12 +89,9 @@ if test "$os_unix" = "yes"; then
        AC_CHECK_FUNCS([getprogname getexecname basename mkstemp mkdtemp])
        AC_CHECK_FUNCS([getauxval issetugid getresuid secure_getenv])
        AC_CHECK_FUNCS([strnstr memdup strndup strerror_r])
-       AC_CHECK_FUNCS([asprintf vasprintf vsnprintf])
        AC_CHECK_FUNCS([fdwalk])
        AC_CHECK_FUNCS([setenv])
 
-       AC_CHECK_DECLS([asprintf, vasprintf], [], [], [[#include <stdio.h>]])
-
        # Required functions
        AC_CHECK_FUNCS([gmtime_r],
                [AC_DEFINE([HAVE_GMTIME_R], 1, [Whether gmtime_r() is available])],
@@ -116,6 +113,10 @@ if test "$os_unix" = "yes"; then
                [AC_DEFINE(HAVE___LIBC_ENABLE_SECURE, [1], [Whether __libc_enable_secure available])])
 fi
 
+# These are thngs we can work around
+AC_CHECK_FUNCS([asprintf vasprintf vsnprintf])
+AC_CHECK_DECLS([asprintf, vasprintf], [], [], [[#include <stdio.h>]])
+
 AC_CHECK_LIB(intl, dgettext)
 
 # ------------------------------------------------------------------------------