From: Dave Hart Date: Sun, 5 Aug 2012 21:15:00 +0000 (+0000) Subject: [Bug 2242] configure fails to detect getifaddrs function on Solaris. X-Git-Tag: NTP_4_2_7P294~1^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c4b513b768c62f425ff0fe30c5a4f7fcf27cb02;p=thirdparty%2Fntp.git [Bug 2242] configure fails to detect getifaddrs function on Solaris. bk: 501ee254GBCCh6nCTO53ubWBSIM2Pw --- diff --git a/ChangeLog b/ChangeLog index 992125447..84285f360 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2242] configure fails to detect getifaddrs function on Solaris. * [Bug 2249] Bad operator for 'test' in 'make check' of libevent. * [Bug 2252] palisade: formats nanosecs to a 6-char field. (4.2.7p293) 2012/08/04 Released by Harlan Stenn diff --git a/sntp/m4/ntp_ipv6.m4 b/sntp/m4/ntp_ipv6.m4 index 91cca778d..abc4b80c2 100644 --- a/sntp/m4/ntp_ipv6.m4 +++ b/sntp/m4/ntp_ipv6.m4 @@ -491,14 +491,18 @@ AC_ARG_ENABLE( ) case $want_getifaddrs in - no) - ;; glibc) AC_MSG_WARN([--enable-getifaddrs=glibc is no longer required]) - AC_CHECK_FUNCS([getifaddrs]) +esac +case $want_getifaddrs in + no) ;; *) + SAVED_LIBS="$LIBS" + LIBS="$LDADD_LIBNTP $LIBS" AC_CHECK_FUNCS([getifaddrs]) + LIBS="$SAVED_LIBS" + AS_UNSET([SAVED_LIBS]) ;; esac