From: Dave Hart Date: Wed, 15 Dec 2010 20:23:17 +0000 (+0000) Subject: Use LIBS not LDFLAGS for configure tests of -lcrypto, -lcrypto -lz X-Git-Tag: NTP_4_2_7P95~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3fa599aceaa7cf45c0d905a16487daf924ce314;p=thirdparty%2Fntp.git Use LIBS not LDFLAGS for configure tests of -lcrypto, -lcrypto -lz bk: 4d0923b5SzvGnJRcRiOullajiaOkyA --- diff --git a/m4/ntp_openssl.m4 b/m4/ntp_openssl.m4 index 507428ad8..7d9f477bf 100644 --- a/m4/ntp_openssl.m4 +++ b/m4/ntp_openssl.m4 @@ -159,8 +159,8 @@ esac # case "$ntp_openssl" in yes) - NTP_SAVED_LDFLAGS="$LDFLAGS" - LDFLAGS="$NTP_SAVED_LDFLAGS $LCRYPTO" + NTPO_SAVED_LIBS="$LIBS" + LIBS="$NTPO_SAVED_LIBS $LCRYPTO" AC_CACHE_CHECK( [if linking with $LCRYPTO alone works], [ntp_cv_bare_lcrypto], @@ -181,7 +181,7 @@ case "$ntp_openssl" in ) case "$ntp_cv_bare_lcrypto" in no) - LDFLAGS="$NTP_SAVED_LDFLAGS $LCRYPTO -lz" + LIBS="$NTPO_SAVED_LIBS $LCRYPTO -lz" AC_CACHE_CHECK( [if linking with $LCRYPTO -lz works], [ntp_cv_lcrypto_lz], @@ -200,13 +200,13 @@ case "$ntp_openssl" in [ntp_cv_lcrypto_lz=no] )] ) - case "$ntp_cv_lz_lcrypto" in + case "$ntp_cv_lcrypto_lz" in yes) LCRYPTO="$LCRYPTO -lz" esac esac - LDFLAGS="$NTP_SAVED_LDFLAGS" - AS_UNSET([NTP_SAVED_LDFLAGS]) + LIBS="$NTPO_SAVED_LIBS" + AS_UNSET([NTPO_SAVED_LIBS]) esac #