diff --git a/config.h.in b/config.h.in index ff549384bd..b820f10dfd 100644 --- a/config.h.in +++ b/config.h.in @@ -15,6 +15,9 @@ /* Define if you can safely include both and . */ #undef TIME_WITH_SYS_TIME +/* define on DEC OSF to enable 4.4BSD style sa_len support */ +#undef _SOCKADDR_LEN + /* define if your system needs pthread_init() before using pthreads */ #undef NEED_PTHREAD_INIT @@ -30,6 +33,9 @@ /* define if catgets() is available */ #undef HAVE_CATGETS +/* Define if you have the NET_RT_IFLIST sysctl variable. */ +#undef HAVE_IFLIST_SYSCTL + /* Define if you have the header file. */ #undef HAVE_FCNTL_H @@ -53,6 +59,3 @@ /* Define if you have the socket library (-lsocket). */ #undef HAVE_LIBSOCKET - -/* Define if you have the NET_RT_IFLIST sysctl variable. */ -#undef HAVE_IFLIST_SYSCTL diff --git a/configure b/configure index 2c05af1fe1..97e67058a4 100755 --- a/configure +++ b/configure @@ -2056,14 +2056,18 @@ fi case "$host" in *-dec-osf*) - ;; + cat >> confdefs.h <<\EOF +#define _SOCKADDR_LEN 1 +EOF + + ;; esac echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6 -echo "configure:2065: checking for sa_len in struct sockaddr" >&5 +echo "configure:2069: checking for sa_len in struct sockaddr" >&5 cat > conftest.$ac_ext < @@ -2072,7 +2076,7 @@ int main() { struct sockaddr sa; sa.sa_len = 0; return (0); ; return 0; } EOF -if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 ISC_NET_HAVESALEN="#define ISC_NET_HAVESALEN 1" @@ -2088,9 +2092,9 @@ rm -f conftest* echo $ac_n "checking for interface list sysctl""... $ac_c" 1>&6 -echo "configure:2092: checking for interface list sysctl" >&5 +echo "configure:2096: checking for interface list sysctl" >&5 cat > conftest.$ac_ext < @@ -2197,7 +2201,7 @@ else fi echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:2201: checking build system type" >&5 +echo "configure:2205: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -2226,7 +2230,7 @@ ac_prog=ld if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 -echo "configure:2230: checking for ld used by GCC" >&5 +echo "configure:2234: checking for ld used by GCC" >&5 ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. @@ -2250,10 +2254,10 @@ echo "configure:2230: checking for ld used by GCC" >&5 esac elif test "$with_gnu_ld" = yes; then echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 -echo "configure:2254: checking for GNU ld" >&5 +echo "configure:2258: checking for GNU ld" >&5 else echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 -echo "configure:2257: checking for non-GNU ld" >&5 +echo "configure:2261: checking for non-GNU ld" >&5 fi if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2289,7 +2293,7 @@ fi test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 -echo "configure:2293: checking if the linker ($LD) is GNU ld" >&5 +echo "configure:2297: checking if the linker ($LD) is GNU ld" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2305,7 +2309,7 @@ echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 -echo "configure:2309: checking for BSD-compatible nm" >&5 +echo "configure:2313: checking for BSD-compatible nm" >&5 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2342,7 +2346,7 @@ echo "$ac_t""$NM" 1>&6 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:2346: checking whether ln -s works" >&5 +echo "configure:2350: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2386,8 +2390,8 @@ test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" case "$host" in *-*-irix6*) # Find out which ABI we are using. - echo '#line 2390 "configure"' > conftest.$ac_ext - if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + echo '#line 2394 "configure"' > conftest.$ac_ext + if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case "`/usr/bin/file conftest.o`" in *32-bit*) LD="${LD-ld} -32" @@ -2408,19 +2412,19 @@ case "$host" in SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 -echo "configure:2412: checking whether the C compiler needs -belf" >&5 +echo "configure:2416: checking whether the C compiler needs -belf" >&5 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lt_cv_cc_needs_belf=yes else @@ -2535,9 +2539,9 @@ esac echo $ac_n "checking for IPv6 structures""... $ac_c" 1>&6 -echo "configure:2539: checking for IPv6 structures" >&5 +echo "configure:2543: checking for IPv6 structures" >&5 cat > conftest.$ac_ext < @@ -2547,7 +2551,7 @@ int main() { struct sockaddr_in6 sin6; return (0); ; return 0; } EOF -if { (eval echo configure:2551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 ISC_NET_HAVEIPV6="#define ISC_NET_HAVEIPV6 1" @@ -2570,12 +2574,12 @@ rm -f conftest* echo $ac_n "checking for inet_ntop""... $ac_c" 1>&6 -echo "configure:2574: checking for inet_ntop" >&5 +echo "configure:2578: checking for inet_ntop" >&5 if eval "test \"`echo '$''{'ac_cv_func_inet_ntop'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_inet_ntop=yes" else @@ -2622,12 +2626,12 @@ ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_ntop.$O" fi echo $ac_n "checking for inet_pton""... $ac_c" 1>&6 -echo "configure:2626: checking for inet_pton" >&5 +echo "configure:2630: checking for inet_pton" >&5 if eval "test \"`echo '$''{'ac_cv_func_inet_pton'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_inet_pton=yes" else @@ -2674,12 +2678,12 @@ ISC_EXTRA_OBJS="$ISC_EXTRA_OBJS inet_pton.$O" fi echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 -echo "configure:2678: checking for inet_aton" >&5 +echo "configure:2682: checking for inet_aton" >&5 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_inet_aton=yes" else