]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
regen configure.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 15 Jan 2008 12:48:24 +0000 (12:48 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 15 Jan 2008 12:48:24 +0000 (12:48 +0000)
git-svn-id: file:///svn/unbound/trunk@854 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
doc/Changelog
doc/example.conf
doc/unbound.conf.5

index 45b97120b39595a351e61498a327dafc775b6446..bf246692280d34354acf5b9254ed08eef0b2d7c5 100755 (executable)
--- 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
index 1178c8c4f11b03c6102671383373784140afd87e..84d4945f64615c75fc171acba53c8430ce1680be 100644 (file)
@@ -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.
index 3ef42d8e1b69515ec6557f5ad474dfb424d96523..35635a0a16d3470f7611de37d73500b795818095 100644 (file)
@@ -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
index d0a618d11b7c4455c229fdcf4d98e87f85fe456b..c4d2c1540c2deeccefb64553ba016226cb4e0132 100644 (file)
@@ -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<ip address>