From: Dave Hart Date: Tue, 17 Nov 2009 16:15:53 +0000 (+0000) Subject: [Bug 1343] sntp doesn't link on Solaris 7, needs -lresolv. X-Git-Tag: NTP_4_2_5P247_RC~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fcf0eef779f6bd3a12a6bf9afea4b57ba9cf634;p=thirdparty%2Fntp.git [Bug 1343] sntp doesn't link on Solaris 7, needs -lresolv. bk: 4b02cc39-hCrO6RQmsA6ZFEs_jTWeg --- diff --git a/ChangeLog b/ChangeLog index a9449221d..f506c3acd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 1343] sntp doesn't link on Solaris 7, needs -lresolv. (4.2.5p246-RC) 2009/11/17 Released by Harlan Stenn * Upgrade to autogen-5.10 * [Bug 1378] Unnecessary resetting of peers during interface update. diff --git a/configure.ac b/configure.ac index c3d3525e5..efcb4eb46 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ AC_CONFIG_AUX_DIR([.]) # the date YYYYMMDD optionally with -HHMM if there is more than one # bump in a day. -ntp_configure_cache_version=20091102 +ntp_configure_cache_version=20091117 # When the cache version of config.cache and configure do not # match, NTP_CACHEVERSION will flush the cache. @@ -1317,6 +1317,7 @@ case $ac_cv_have_if_nametoindex in ;; esac +AC_SEARCH_LIBS([inet_ntop], [resolv], , , [-lsocket -lnsl]) AC_CHECK_FUNC(inet_ntop, [], [AC_DEFINE(ISC_PLATFORM_NEEDNTOP, 1, [ISC: provide inet_ntop()])]) AC_CHECK_FUNC(inet_pton, [], [AC_DEFINE(ISC_PLATFORM_NEEDPTON, 1, [ISC: provide inet_pton()])]) AC_CHECK_FUNCS(K_open kvm_open memcpy memmove memset) diff --git a/sntp/configure.ac b/sntp/configure.ac index d91f328b0..55504f823 100644 --- a/sntp/configure.ac +++ b/sntp/configure.ac @@ -25,7 +25,7 @@ AC_CONFIG_AUX_DIR([.]) # the date YYYYMMDD optionally with -HHMM if there is more than one # bump in a day. -sntp_configure_cache_version=20090503 +sntp_configure_cache_version=20091117 # When the version of config.cache and configure do not # match, NTP_CACHEVERSION will flush the cache. @@ -410,6 +410,7 @@ case "$isc_cv_have_in_port_t" in AC_DEFINE(ISC_PLATFORM_NEEDPORTT, 1, [Declare in_port_t?]) esac +AC_SEARCH_LIBS([inet_ntop], [resolv], , , [-lsocket -lnsl]) AC_CHECK_FUNC(inet_ntop, [], [AC_DEFINE(ISC_PLATFORM_NEEDNTOP, 1, [ISC: provide inet_ntop()])]) AC_CHECK_FUNC(inet_pton, [], [AC_DEFINE(ISC_PLATFORM_NEEDPTON, 1, [ISC: provide inet_pton()])])