diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-09-17 02:58:16 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-09-17 02:58:16 +0200 |
commit | 8d9b27d8e11df4c37f3a10fd1d17b3484a401229 (patch) | |
tree | 13d19661641de7401a05546befed084b3f5c1dd7 | |
parent | 14f3305df20093bc897ccb9f4a91a572ea08e4d4 (diff) | |
download | monitoring-plugins-8d9b27d8e11df4c37f3a10fd1d17b3484a401229.tar.gz |
Link against openssl if it is available
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d95cc64e..a82dcf22 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -541,8 +541,9 @@ if ! test x"$with_openssl" = x"no"; then | |||
541 | if test "$ac_cv_lib_crypto_CRYPTO_new_ex_data" = "yes"; then | 541 | if test "$ac_cv_lib_crypto_CRYPTO_new_ex_data" = "yes"; then |
542 | dnl Check for SSL lib | 542 | dnl Check for SSL lib |
543 | AC_CHECK_LIB(ssl,main, SSLLIBS="-lssl -lcrypto",,-lcrypto) | 543 | AC_CHECK_LIB(ssl,main, SSLLIBS="-lssl -lcrypto",,-lcrypto) |
544 | else | ||
545 | LIBS="$_SAVEDLIBS" | ||
544 | fi | 546 | fi |
545 | LIBS="$_SAVEDLIBS" | ||
546 | 547 | ||
547 | dnl test headers and libs to decide whether check_http should use SSL | 548 | dnl test headers and libs to decide whether check_http should use SSL |
548 | if test "$ac_cv_lib_crypto_CRYPTO_new_ex_data" = "yes"; then | 549 | if test "$ac_cv_lib_crypto_CRYPTO_new_ex_data" = "yes"; then |