]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
openssl configure cleanup
authorHarlan Stenn <stenn@ntp.org>
Tue, 10 Jan 2017 11:05:44 +0000 (06:05 -0500)
committerHarlan Stenn <stenn@ntp.org>
Tue, 10 Jan 2017 11:05:44 +0000 (06:05 -0500)
bk: 5874c008tFhFPuzLMfDkFBzQMH-HKw

sntp/m4/ntp_libntp.m4
sntp/m4/ntp_openssl.m4

index 1263423eda03f76f6cdfacb759826806c3b7cbf4..3f35a92daeb4608004d17227d8a46440b113b718 100644 (file)
@@ -661,9 +661,6 @@ esac
 
 
 AC_CHECK_HEADERS([priv.h])
-
-AC_MSG_CHECKING([if we have solaris privileges])
-
 case "$ac_cv_header_priv_h" in
  yes)
     case "$host" in 
@@ -686,6 +683,7 @@ AC_ARG_ENABLE(
     [ntp_have_solarisprivs=$enableval]
 )
 
+AC_MSG_CHECKING([if we have solaris privileges])
 
 case "$ntp_have_solarisprivs" in
  yes)
index 0e38aba73e8b9832bcfad750c2cf4339ed564f49..39302495ba705b5e9d6e5a1134c17d443052f315 100644 (file)
@@ -57,13 +57,20 @@ AC_ARG_WITH(
        [s Disable auto-added -R linker paths]
     )]
 )
+
 ntp_openssl=no
 ntp_openssl_from_pkg_config=no
+
 with_crypto=${with_crypto:-openssl,libcrypto}
 case "$with_crypto" in
  yes)
     with_crypto=openssl,libcrypto
 esac
+
+DNL AC_MSG_NOTICE(['%with_crypto:%{PKG_CONFIG:+notempty}:%{with_openssl_libdir-notgiven}:%{with_openssl_incdir-notgiven}'])
+DNL str="$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}"
+DNL AC_MSG_NOTICE([$str])
+
 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
  no:*) ;;
  *:notempty:notgiven:notgiven)
@@ -73,7 +80,7 @@ case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${wit
            CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
            CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
            LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
-           LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l $pkg`"
+           LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
            LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
            VER_SUFFIX=o
            ntp_openssl=yes
@@ -85,6 +92,11 @@ case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${wit
        AC_MSG_RESULT([no])
     done
 esac
+DNL AC_MSG_NOTICE([OpenSSL Phase I checks:])
+DNL AC_MSG_NOTICE([CPPFLAGS_NTP: $CPPFLAGS_NTP])
+DNL AC_MSG_NOTICE([CFLAGS_NTP: $CFLAGS_NTP])
+DNL AC_MSG_NOTICE([LDADD_NTP: $LDADD_NTP])
+DNL AC_MSG_NOTICE([LDFLAGS_NTP: $LDFLAGS_NTP])
 case "$with_crypto:$ntp_openssl" in
  no:*) ;;
  *:no)
@@ -370,6 +382,12 @@ case "$ntp_openssl" in
     ;;
 esac
 
+DNL AC_MSG_NOTICE([OpenSSL final checks:])
+DNL AC_MSG_NOTICE([CPPFLAGS_NTP: $CPPFLAGS_NTP])
+DNL AC_MSG_NOTICE([CFLAGS_NTP: $CFLAGS_NTP])
+DNL AC_MSG_NOTICE([LDADD_NTP: $LDADD_NTP])
+DNL AC_MSG_NOTICE([LDFLAGS_NTP: $LDFLAGS_NTP])
+
 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
 LIBS="$NTPO_SAVED_LIBS"
 AS_UNSET([NTPO_SAVED_CFLAGS])