mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:53:32 +03:00
curl-openssl.m4: check lib64 for the pkg-config file
OpenSSL recently started putting the libs in $prefix/lib64 on 'make install', so we check that directory for pkg-config data if the 'lib' check fails. Closes #7503
This commit is contained in:
parent
76bed59ec3
commit
1e5e93d899
2 changed files with 16 additions and 3 deletions
|
|
@ -330,8 +330,21 @@ if test "x$OPT_OPENSSL" != xno; then
|
|||
if test -f "$OPENSSL_PCDIR/openssl.pc"; then
|
||||
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$OPENSSL_PCDIR"])
|
||||
PKGTEST="yes"
|
||||
elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
|
||||
AC_MSG_ERROR([$PREFIX_OPENSSL is a bad --with-openssl prefix!])
|
||||
fi
|
||||
|
||||
if test "$PKGTEST" != "yes"; then
|
||||
# try lib64 instead
|
||||
OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
|
||||
if test -f "$OPENSSL_PCDIR/openssl.pc"; then
|
||||
AC_MSG_NOTICE([PKG_CONFIG_LIBDIR will be set to "$OPENSSL_PCDIR"])
|
||||
PKGTEST="yes"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$PKGTEST" != "yes"; then
|
||||
if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
|
||||
AC_MSG_ERROR([$PREFIX_OPENSSL is a bad --with-openssl prefix!])
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl in case pkg-config comes up empty, use what we got
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue