]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2242] configure fails to detect getifaddrs function on Solaris.
authorDave Hart <hart@ntp.org>
Sun, 5 Aug 2012 21:15:00 +0000 (21:15 +0000)
committerDave Hart <hart@ntp.org>
Sun, 5 Aug 2012 21:15:00 +0000 (21:15 +0000)
bk: 501ee254GBCCh6nCTO53ubWBSIM2Pw

ChangeLog
sntp/m4/ntp_ipv6.m4

index 9921254470768b3d7be80ef9954576bff844f195..84285f3601793d9c5e31c1f874cff740b7f0901d 100644 (file)
--- 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 <stenn@ntp.org>
index 91cca778db0125641b28d3db222b92d2fe71bb5a..abc4b80c27edda8d5213e8c4e7bb3eeef018fd07 100644 (file)
@@ -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