]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl-openssl.m4: check lib64 for the pkg-config file 7503/head
authorDaniel Stenberg <daniel@haxx.se>
Mon, 26 Jul 2021 19:51:11 +0000 (21:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 Jul 2021 21:46:30 +0000 (23:46 +0200)
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

m4/curl-openssl.m4
zuul.d/jobs.yaml

index 835768e1bf420ee97c8eda15c6fd18faf76ee6a9..693114ecaf8fa556590cebb1b5a4d184193c16c0 100644 (file)
@@ -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
index 61cc03c84e2bf31e6e0011cbe383b15635fcdc9c..1528e43190c4ec20c2b703e385158a7dbfaddb3e 100644 (file)
         OPENSSL3: "yes"
         C: >-
           --with-openssl={{ ansible_user_dir }}/openssl3
-        LD_LIBRARY_PATH: "{{ ansible_user_dir }}/openssl3/lib:/usr/local/lib"
+        LD_LIBRARY_PATH: "{{ ansible_user_dir }}/openssl3/lib64:/usr/local/lib"
         TFLAGS: https ftps
 
 - job: