r723 - trunk/varnish-cache
des at projects.linpro.no
des at projects.linpro.no
Mon Aug 7 17:47:40 CEST 2006
Author: des
Date: 2006-08-07 17:47:39 +0200 (Mon, 07 Aug 2006)
New Revision: 723
Modified:
trunk/varnish-cache/configure.ac
Log:
Improve detection of the presence and usability of asprintf() / vasprintf().
Modified: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac 2006-08-07 15:42:46 UTC (rev 722)
+++ trunk/varnish-cache/configure.ac 2006-08-07 15:47:39 UTC (rev 723)
@@ -61,11 +61,21 @@
AC_CHECK_FUNCS([strerror])
AC_FUNC_STRERROR_R
AC_CHECK_FUNCS([socket])
-AC_CHECK_FUNCS([vasprintf])
-AC_CHECK_FUNCS([asprintf])
AC_CHECK_FUNCS([strlcat])
AC_CHECK_FUNCS([strlcpy])
+# asprintf() and vasprintf() are tricky, because on some systems, they
+# are present in the C library, but their prototypes are hidden behind
+# conditionals which we won't bother to unravel.
+AC_CHECK_DECL([asprintf],
+ AC_DEFINE(HAVE_ASPRINTF,1,[Whether asprintf() is available]),
+ ,
+ [stdio.h])
+AC_CHECK_DECL([vasprintf],
+ AC_DEFINE(HAVE_VASPRINTF,1,[Whether vasprintf() is available]),
+ ,
+ [stdio.h])
+
AC_CONFIG_FILES([
Makefile
bin/Makefile
More information about the varnish-commit
mailing list