Skip to content

Commit 015a80e

Browse files
committed
report about OpenSSL 1.1 not supported during configure
1 parent 9eaf551 commit 015a80e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

acinclude.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,13 +2337,15 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
23372337
23382338
dnl If pkg-config is found try using it
23392339
if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
2340-
if $PKG_CONFIG --atleast-version=0.9.8 openssl; then
2340+
if $PKG_CONFIG --atleast-version=1.1 openssl; then
2341+
AC_MSG_ERROR([OpenSSL version >= 1.1 is not supported.])
2342+
elif $PKG_CONFIG --atleast-version=0.9.8 openssl; then
23412343
found_openssl=yes
23422344
OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
23432345
OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
23442346
OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
23452347
else
2346-
AC_MSG_ERROR([OpenSSL version 0.9.8 or greater required.])
2348+
AC_MSG_ERROR([OpenSSL version >= 0.9.8 and < 1.1 required.])
23472349
fi
23482350
23492351
if test -n "$OPENSSL_LIBS"; then

0 commit comments

Comments
 (0)