File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2337,13 +2337,15 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
2337
2337
2338
2338
dnl If pkg-config is found try using it
2339
2339
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
2341
2343
found_openssl=yes
2342
2344
OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
2343
2345
OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
2344
2346
OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
2345
2347
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.] )
2347
2349
fi
2348
2350
2349
2351
if test -n "$OPENSSL_LIBS"; then
You can’t perform that action at this time.
0 commit comments