comparison configure.ac @ 5831:ad3e9b3274d5

Link SSL libraries using $LIBS instead of $LDFLAGS.
author Jeff Sparkes <jsparkes@gmail.com>
date Thu, 27 Nov 2014 14:29:40 -0500
parents a58070ee1f31
children 69f9e31c9ccf
comparison
equal deleted inserted replaced
5829:0303baa7c4e9 5831:ad3e9b3274d5
5369 if test "$?" = 0; then 5369 if test "$?" = 0; then
5370 XE_PREPEND("$gnutls_cflags", CPPFLAGS) 5370 XE_PREPEND("$gnutls_cflags", CPPFLAGS)
5371 fi 5371 fi
5372 gnutls_libs=`pkg-config --libs gnutls` 5372 gnutls_libs=`pkg-config --libs gnutls`
5373 if test "$?" = 0; then 5373 if test "$?" = 0; then
5374 XE_PREPEND("$gnutls_libs", LDFLAGS) 5374 XE_APPEND("$gnutls_libs", LIBS)
5375 fi 5375 fi
5376 AC_CHECK_FUNC(gnutls_certificate_verification_status_print, 5376 AC_CHECK_FUNC(gnutls_certificate_verification_status_print,
5377 [AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_VERIFICATION_STATUS_PRINT)]) 5377 [AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_VERIFICATION_STATUS_PRINT)])
5378 AC_CHECK_FUNC(gnutls_certificate_verify_peers3, 5378 AC_CHECK_FUNC(gnutls_certificate_verify_peers3,
5379 [AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_VERIFY_PEERS3)]) 5379 [AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_VERIFY_PEERS3)])
5383 if test "$?" = 0; then 5383 if test "$?" = 0; then
5384 XE_PREPEND("$nss_cflags", CPPFLAGS) 5384 XE_PREPEND("$nss_cflags", CPPFLAGS)
5385 fi 5385 fi
5386 nss_libs=`pkg-config --libs nss` 5386 nss_libs=`pkg-config --libs nss`
5387 if test "$?" = 0; then 5387 if test "$?" = 0; then
5388 XE_PREPEND("$nss_libs", LDFLAGS) 5388 XE_APPEND("$nss_libs", LIBS)
5389 fi 5389 fi
5390 else 5390 else
5391 AC_DEFINE(HAVE_OPENSSL) 5391 AC_DEFINE(HAVE_OPENSSL)
5392 openssl_cflags=`pkg-config --cflags openssl` 5392 openssl_cflags=`pkg-config --cflags openssl`
5393 if test "$?" = 0; then 5393 if test "$?" = 0; then
5394 XE_PREPEND("$openssl_cflags", CPPFLAGS) 5394 XE_PREPEND("$openssl_cflags", CPPFLAGS)
5395 fi 5395 fi
5396 openssl_libs=`pkg-config --libs openssl` 5396 openssl_libs=`pkg-config --libs openssl`
5397 if test "$?" = 0; then 5397 if test "$?" = 0; then
5398 XE_PREPEND("$openssl_libs", LDFLAGS) 5398 XE_APPEND("$openssl_libs", LIBS)
5399 fi 5399 fi
5400 AC_CHECK_FUNC(X509_check_host, [AC_DEFINE(HAVE_X509_CHECK_HOST)]) 5400 AC_CHECK_FUNC(X509_check_host, [AC_DEFINE(HAVE_X509_CHECK_HOST)])
5401 fi 5401 fi
5402 fi 5402 fi
5403 5403