Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAndris Mednis <Andris.Mednis@zabbix.com>2022-03-08 02:51:58 +0300
committerAndris Mednis <Andris.Mednis@zabbix.com>2022-03-08 02:51:58 +0300
commit2a3e89428c77b735f0e0741bb13a9c8e2c167985 (patch)
treef719cd61aefd2a6a3329315cf4fad3f459235126 /m4
parentcb76f7c2c746f26c33ceb07cbd2915566e3c25b1 (diff)
...G...PS. [ZBXNEXT-7120] fixed OpenSSL library path detection in libopenssl.m4 script
Diffstat (limited to 'm4')
-rw-r--r--m4/libopenssl.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/m4/libopenssl.m4 b/m4/libopenssl.m4
index 7f9698911d0..fedac99dc3c 100644
--- a/m4/libopenssl.m4
+++ b/m4/libopenssl.m4
@@ -134,7 +134,13 @@ AC_HELP_STRING([--with-openssl@<:@=DIR@:>@],[use OpenSSL package @<:@default=no@
else # search in the specified OpenSSL directory
if test -f $_libopenssl_dir/include/openssl/ssl.h -a -f $_libopenssl_dir/include/openssl/crypto.h; then
OPENSSL_CFLAGS=-I$_libopenssl_dir/include
- OPENSSL_LDFLAGS=-L$_libopenssl_dir/lib
+
+ if test -d $_libopenssl_dir/lib64; then
+ OPENSSL_LDFLAGS=-L$_libopenssl_dir/lib64
+ else
+ OPENSSL_LDFLAGS=-L$_libopenssl_dir/lib
+ fi
+
OPENSSL_LIBS="-lssl -lcrypto"
found_openssl="yes"
LIBOPENSSL_ACCEPT_VERSION([$_libopenssl_dir/include/openssl/opensslv.h])