]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1435] sntp: Test for -lresolv using the same tests as in ntp
authorHarlan Stenn <stenn@ntp.org>
Fri, 25 Dec 2009 05:19:40 +0000 (00:19 -0500)
committerHarlan Stenn <stenn@ntp.org>
Fri, 25 Dec 2009 05:19:40 +0000 (00:19 -0500)
bk: 4b344b6cNZWZqOxxKFCpNknrz3Tldw

ChangeLog
sntp/configure.ac

index 1582ff76580ca8c658ce04f77bc932cd2ac4fd44..f66e1ebbf4e96e75e0954a92387e179bc7421b29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
 * [Bug 1428] Use AC_HEADER_RESOLV to fix breaks from resolv.h
 * [Bug 1429] ntpd -4 option does not reliably force IPv4 resolution.
 * [Bug 1431] System headers must come before ntp headers in ntp_intres.c .
+* [Bug 1435] sntp: Test for -lresolv using the same tests as in ntp.
 
 ---
 (4.2.6p1-RC1) 2009/12/20 Released by Harlan Stenn <stenn@ntp.org>
index 348ad48772546efdd213f2734504004b65e83602..e5ee3822f5baf1152fcaab46490957216d2cecb2 100644 (file)
@@ -411,6 +411,9 @@ case "$isc_cv_have_in_port_t" in
        AC_DEFINE(ISC_PLATFORM_NEEDPORTT, 1, [Declare in_port_t?])
 esac
 
+# HMS: We don't need res_init, but since we may be using cached 
+# values from ntpd we need to test the same way 
+AC_SEARCH_LIBS([res_init], [resolv], , , [-lsocket -lnsl]) 
 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()])])