diff options
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 8513c3529b..a276567f3b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1593,7 +1593,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[ fi dnl If pkg-config is found try using it - if test "$PHP_OPENSSL" = "yes" && test -x "$PKG_CONFIG"; then + if test "$PHP_OPENSSL" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then if $PKG_CONFIG --atleast-version=0.9.6 openssl; then found_openssl=yes OPENSSL_LIBS=`$PKG_CONFIG --libs openssl` |