From: des Date: Tue, 8 Aug 2006 12:42:49 +0000 (+0000) Subject: Defining _GNU_SOURCE gives us native asprintf() and strptime() on glibc X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48a99fc4e4809404aeab9c4080f97c805a90daab;p=varnish Defining _GNU_SOURCE gives us native asprintf() and strptime() on glibc systems, and has no effect on FreeBSD. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@768 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 321f40a9..f7472108 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -27,6 +27,7 @@ AC_ARG_ENABLE(werror, CFLAGS="${CFLAGS} -Werror") # Checks for programs. +AC_GNU_SOURCE AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL @@ -61,6 +62,7 @@ AC_FUNC_VPRINTF AC_CHECK_FUNCS([strerror]) AC_FUNC_STRERROR_R AC_CHECK_FUNCS([socket]) +AC_CHECK_FUNCS([strptime]) # These functions are provided by libcompat on platforms where they # are not available