openbsd-ports/databases/mysql/patches/patch-config_ac-macros_ssl_m4
2010-11-10 21:03:03 +00:00

25 lines
666 B
Plaintext

$OpenBSD: patch-config_ac-macros_ssl_m4,v 1.2 2010/11/10 21:03:03 sthen Exp $
--- config/ac-macros/ssl.m4.orig Fri Jul 9 08:34:54 2010
+++ config/ac-macros/ssl.m4 Sat Jul 24 23:26:05 2010
@@ -109,9 +109,19 @@ AC_DEFUN([MYSQL_FIND_OPENSSL], [
fi
#
+ # Set library paths
+ #
+ openssl_lib="$location/lib"
+ openssl_libs="-lssl -lcrypto"
+
+ #
# Try to link with openSSL libs in <location>
#
- openssl_libs="-L$location/lib/ -lssl -lcrypto"
+ if test "$openssl_lib" != "/usr/lib"
+ then
+ openssl_libs="-L$openssl_lib -lssl -lcrypto"
+ fi
+
MYSQL_CHECK_SSL_DIR([$openssl_includes], [$openssl_libs])
if test "$mysql_ssl_found" == "no"