]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
configure changes.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 14 Feb 2007 07:23:51 +0000 (07:23 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 14 Feb 2007 07:23:51 +0000 (07:23 +0000)
git-svn-id: file:///svn/unbound/trunk@94 be551aaa-1e26-0410-a405-d3ace91eadb9

configure.ac
doc/Changelog

index ae44ee5d6fd135d273459c2a82ad3d294781748e..702d31549c9bda9a015f6ee037e2981b0bdc7d4f 100644 (file)
@@ -42,7 +42,7 @@ AC_DEFUN([CHECK_COMPILER_FLAG_NEEDED],
 [
 AC_REQUIRE([AC_PROG_CC])
 AC_MSG_CHECKING(whether we need $1 as a flag for $CC)
-cache=`echo $1 | sed 'y%.=/+-%___p_%'`
+cache=`echo $1 | sed 'y%.=/+- %___p__%'`
 AC_CACHE_VAL(cv_prog_cc_flag_needed_$cache,
 [
 echo '$2' > conftest.c
@@ -63,7 +63,7 @@ eval "cv_prog_cc_flag_needed_$cache=fail"
 fi
 ]
 fi
-rm -f conftest*
+rm -f conftest
 ])
 if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then
 AC_MSG_RESULT(yes)
@@ -88,6 +88,33 @@ AC_LANG_C
 CHECK_COMPILER_FLAG(g, [CFLAGS="$CFLAGS -g"])
 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 <stdlib.h>
+#include <ctype.h>
+#include <sys/time.h>
+#include <time.h>
+#include <unistd.h>
+#include <netdb.h>
+
+int test() {
+       int a;
+       char **opts = NULL;
+       struct timeval tv;
+       char *t;
+       time_t time = 0;
+       char *buf = NULL;
+       const char* str = NULL;
+       t = ctime_r(&time, buf);
+       tv.tv_usec = 10;
+       srandom(32);
+       a = getopt(2, opts, "a");
+       a = isascii(32);
+       str = gai_strerror(0);
+       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 <stdbool.h>
index 07e43c17ae99703e6015174793d491725b88eef4..0bb9a9ef7058b60cd2f4633976528ba2a5a4e6a8 100644 (file)
@@ -1,3 +1,6 @@
+14 February 2007: Wouter
+       - Included configure.ac changes from ldns.
+
 13 February 2007: Wouter
        - work on fake events, first fwd replay works.
        - events can do timeouts and errors on queries to servers.