From d9e9a31562a334dd67a9ba014bfcad81100f9b95 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 15 Jan 2008 12:48:24 +0000 Subject: [PATCH] regen configure. git-svn-id: file:///svn/unbound/trunk@854 be551aaa-1e26-0410-a405-d3ace91eadb9 --- configure | 17 +++++++++-------- doc/Changelog | 2 ++ doc/example.conf | 7 +++---- doc/unbound.conf.5 | 2 ++ 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/configure b/configure index 45b97120b..bf2466922 100755 --- a/configure +++ b/configure @@ -3780,9 +3780,9 @@ done -{ echo "$as_me:$LINENO: checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC" >&5 -echo $ECHO_N "checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for $CC... $ECHO_C" >&6; } -cache=`echo -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE | sed 'y%.=/+- %___p__%'` +{ echo "$as_me:$LINENO: checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC" >&5 +echo $ECHO_N "checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for $CC... $ECHO_C" >&6; } +cache=`echo -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE | sed 'y%.=/+- %___p__%'` if { as_var=cv_prog_cc_flag_needed_$cache; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -3823,14 +3823,14 @@ if test -z "`$CC $CFLAGS -Werror -Wall -c conftest.c 2>&1`"; then eval "cv_prog_cc_flag_needed_$cache=no" else -if test -z "`$CC $CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE -Werror -Wall -c conftest.c 2>&1`"; then +if test -z "`$CC $CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -Werror -Wall -c conftest.c 2>&1`"; then eval "cv_prog_cc_flag_needed_$cache=yes" else eval "cv_prog_cc_flag_needed_$cache=fail" #echo 'Test with flag fails too!' #cat conftest.c -#echo "$CC $CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE -Werror -Wall -c conftest.c 2>&1" -#echo `$CC $CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE -Werror -Wall -c conftest.c` +#echo "$CC $CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -Werror -Wall -c conftest.c 2>&1" +#echo `$CC $CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -Werror -Wall -c conftest.c` #exit 1 fi @@ -3843,7 +3843,7 @@ if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = yes"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : -CFLAGS="$CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE" +CFLAGS="$CFLAGS -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE" else if eval "test \"`echo '$cv_prog_cc_flag_needed_'$cache`\" = no"; then { echo "$as_me:$LINENO: result: no" >&5 @@ -21711,7 +21711,7 @@ echo $ECHO_N "checking for libevent... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: found in $thedir" >&5 echo "${ECHO_T}found in $thedir" >&6; } CPPFLAGS="$CPPFLAGS -I$thedir"; - LDFLAGS="$thedir/*.lo $LDFLAGS"; + LATE_LDFLAGS="$thedir/*.lo"; else { { echo "$as_me:$LINENO: error: Cannot find the libevent library in $withval You can restart ./configure --with-libevent=no to use a builtin alternative. @@ -24586,6 +24586,7 @@ _ACEOF fi +LDFLAGS="$LATE_LDFLAGS $LDFLAGS"; cat >>confdefs.h <<_ACEOF diff --git a/doc/Changelog b/doc/Changelog index 1178c8c4f..84d4945f6 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,8 @@ - interface-automatic feature. experimental. Nice for anycast. - tpkg test for ip6 ancillary data. - removed debug prints. + - porting experience, define for Solaris, test refined for BSD + compatibility. The feature probably will not work on OpenBSD. 14 January 2008: Wouter - in no debug sets NDEBUG to remove asserts. diff --git a/doc/example.conf b/doc/example.conf index 3ef42d8e1..35635a0a1 100644 --- a/doc/example.conf +++ b/doc/example.conf @@ -28,10 +28,9 @@ server: # interface: 2001:DB8::5 # enable this feature to detect all available interfaces automatically - # May not be supported on all platforms. experimental. - # If interfaces are added or removed during runtime this works. - # Do not forget to enable access-control for your ip4, ip6 and - # ip6mappedip4 addresses. + # May not be supported on all platforms. experimental. Do not forget + # to enable access-control for your ip4, ip6 and ip6mappedip4 addrs. + # On FreeBSD needs net.inet6.ip6.v6only=0 in /etc/sysctl.conf. # interface-automatic: no # port to answer queries from diff --git a/doc/unbound.conf.5 b/doc/unbound.conf.5 index d0a618d11..c4d2c1540 100644 --- a/doc/unbound.conf.5 +++ b/doc/unbound.conf.5 @@ -102,6 +102,8 @@ support in your OS for IPv6 (and its socket options). You have to set access control for IPv4, IPv6 addresses and also for mapped IPv4 to IPv6 addresses (i.e. ::ffff:192.168.0.0/112 and so on). IPv4 TCP connections use the IPv4 access control, IPv4 UDP queries use the mapped access control. +On FreeBSD it needs net.inet6.ip6.v6only=0 in /etc/sysctl.conf. OpenBSD may +not support it at all. Default value is no. .TP .B outgoing\-interface: \fI -- 2.47.2