From: Harlan Stenn Date: Sat, 15 Jan 2011 04:06:12 +0000 (-0500) Subject: Fix check for -lipv6 on HP-UX 11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe4bd90c53d17b4cd586b704f78d9be72fcb85e5;p=thirdparty%2Fntp.git Fix check for -lipv6 on HP-UX 11 bk: 4d311d349B5_6mw1uCaxAtXbnbJO2g --- diff --git a/ChangeLog b/ChangeLog index 07f51dd6b9..1fe43a036b 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 ac7072116a..e3015c83ef 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],