From: Harlan Stenn Date: Sat, 15 Jan 2011 04:06:12 +0000 (-0500) Subject: Fix check for -lipv6 on HP-UX 11 X-Git-Tag: NTP_4_2_7P118~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb83753220251bcf13b6353a142c86194614ae8a;p=thirdparty%2Fntp.git Fix check for -lipv6 on HP-UX 11 bk: 4d311d349B5_6mw1uCaxAtXbnbJO2g --- diff --git a/ChangeLog b/ChangeLog index 07f51dd6b..1fe43a036 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* Fix check for -lipv6 on HP-UX 11. (4.2.7p117) 2011/01/13 Released by Harlan Stenn * Add configure --without-sntp option to disable building sntp and sntp/tests. withsntp=no in the environment changes the default. diff --git a/configure.ac b/configure.ac index ac7072116..e3015c83e 100644 --- a/configure.ac +++ b/configure.ac @@ -1090,15 +1090,11 @@ esac]) # # Check for if_nametoindex() for IPv6 scoped addresses support # -AC_CHECK_FUNCS([if_nametoindex]) -case "$ac_cv_func_if_nametoindex" in - no) - case "$host" in - *-hp-hpux*) - AC_CHECK_LIB([ipv6], [if_nametoindex], - [ac_cv_func_if_nametoindex=yes ; LIBS="-lipv6 $LIBS"]) - esac +case "$host" in + *-hp-hpux*) + AC_SEARCH_LIBS([if_nametoindex], [ipv6]) esac +AC_CHECK_FUNCS([if_nametoindex]) case "$ac_cv_func_if_nametoindex" in yes) AC_DEFINE([ISC_PLATFORM_HAVEIFNAMETOINDEX], [1],