]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2776] Improve ntpq's 'help keytype'
authorHarlan Stenn <stenn@ntp.org>
Fri, 24 Apr 2015 09:25:09 +0000 (09:25 +0000)
committerHarlan Stenn <stenn@ntp.org>
Fri, 24 Apr 2015 09:25:09 +0000 (09:25 +0000)
bk: 553a0bf55biZN9Drv01BTc22mQ9D4Q

sntp/m4/ntp_openssl.m4

index 2f3afa0108bab4d2ddcd4cbb50fc8f1243f64af8..f2f41ff1ab835df20d0d48d392ecdd3bd6dbd192 100644 (file)
@@ -225,7 +225,6 @@ AC_MSG_RESULT([$ntp_openssl])
 
 case "$ntp_openssl" in
  yes)
-    AC_CHECK_FUNCS([EVP_MD_do_all_sorted])
     AC_DEFINE([OPENSSL], [], [Use OpenSSL?])
     case "$VER_SUFFIX" in
      *o*) ;;
@@ -361,6 +360,13 @@ case "$ntp_openssl:$GCC" in
     CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
 esac
 
+case "$ntp_openssl" in
+ yes)
+    LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
+    AC_CHECK_FUNCS([EVP_MD_do_all_sorted])
+    ;;
+esac
+
 CFLAGS="$NTPO_SAVED_CFLAGS"
 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
 LIBS="$NTPO_SAVED_LIBS"