From: Jelte Jansen Date: Mon, 18 Feb 2008 15:08:04 +0000 (+0000) Subject: now it works on sol 5.9,, try others X-Git-Tag: release-1.3.0~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b04bc45229f9f4286dee8970e089a4e1c5a4fd15;p=thirdparty%2Fldns.git now it works on sol 5.9,, try others --- diff --git a/drill/configure.ac b/drill/configure.ac index 107d8100..336b8373 100644 --- a/drill/configure.ac +++ b/drill/configure.ac @@ -93,36 +93,6 @@ AC_CHECK_HEADERS(sys/param.h sys/mount.h,,, [AC_INCLUDES_DEFAULT] ]) CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"]) -CHECK_COMPILER_FLAG_NEEDED(-std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600, -[ -#include "confdefs.h" -#include -#include -#include -#ifdef HAVE_TIME_H -#include -#endif -#include -#ifdef HAVE_GETOPT_H -#include -#endif - -int test() { - int a; - char **opts = NULL; - struct timeval tv; - char *t; - time_t time = 0; - char *buf = NULL; - t = ctime_r(&time, buf); - tv.tv_usec = 10; - srandom(32); - a = getopt(2, opts, "a"); - a = isascii(32); - return a; -} -], [CFLAGS="$CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"]) - CHECK_COMPILER_FLAG_NEEDED(-std=c99, [#include ], [CFLAGS="$CFLAGS -std=c99"]) CHECK_COMPILER_FLAG_NEEDED(-D_POSIX_C_SOURCE=200112, [ @@ -156,6 +126,37 @@ int test() { } ], [CFLAGS="$CFLAGS -D__EXTENSIONS__"]) +CHECK_COMPILER_FLAG_NEEDED(-std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600, +[ +#include "confdefs.h" +#include +#include +#include +#ifdef HAVE_TIME_H +#include +#endif +#include +#ifdef HAVE_GETOPT_H +#include +#endif + +int test() { + int a; + char **opts = NULL; + struct timeval tv; + char *t; + time_t time = 0; + char *buf = NULL; + t = ctime_r(&time, buf); + tv.tv_usec = 10; + srandom(32); + a = getopt(2, opts, "a"); + a = isascii(32); + return a; +} +], [CFLAGS="$CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"]) + + AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=pathname], [enable SSL (will check /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr/sfw /usr)]),[