From e63779e2ade7b8db05a690d65cb374911612aff3 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 8 Aug 2006 12:45:02 +0000 Subject: [PATCH] Now that we define _GNU_SOURCE, the asprintf() / vasprintf() hack is no longer required. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@769 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/configure.ac | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index f7472108..356357de 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -66,27 +66,11 @@ AC_CHECK_FUNCS([strptime]) # These functions are provided by libcompat on platforms where they # are not available +AC_CHECK_FUNCS([asprintf vasprintf]) AC_CHECK_FUNCS([srandomdev]) AC_CHECK_FUNCS([strlcat strlcpy]) AC_CHECK_FUNCS([vis strvis strvisx]) -# 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,[Define to 1 if asprintf() is available]), - , - [#include ]) -AC_CHECK_DECL([vasprintf], - AC_DEFINE(HAVE_VASPRINTF,1,[Define to 1 if vasprintf() is available]), - , - [#include ]) - -AC_CHECK_DECL([SO_ACCEPTFILER], - AC_DEFINE(HAVE_ACCEPT_FILTERS,1,[Define to 1 if you have accept filters]), - , - [sys/types.h, sys/socket.h]) - # On some systems, clock_gettime is in librt rather than libc AC_CHECK_LIB(rt, clock_gettime, need_librt=yes) AM_CONDITIONAL(NEED_LIBRT, test x$need_librt = xyes) -- 2.39.5