summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2013-03-28 10:22:20 +0100
committerRemi Collet <remi@php.net>2013-03-28 10:22:20 +0100
commit640e72ce91d8e591b92cd93c18d1bfe3befe3424 (patch)
treefea6afd599192d089d84e0d67b3c920b1d20e0f0 /acinclude.m4
parentab089611e0fa5dc61030a01d17e71a10714f061a (diff)
downloadphp-git-640e72ce91d8e591b92cd93c18d1bfe3befe3424.tar.gz
With pkgconfig < 0.28 output is a single space
With pkgconfig = 0.28 output is an empty string, This breaks the test on the 2 vars Need to split when LIB set (ex -lssl -lcrypto) INC empty (because /usr/include used)
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index adb9599ce4..ed7d1ea4e5 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2342,8 +2342,10 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
AC_MSG_ERROR([OpenSSL version 0.9.6 or greater required.])
fi
- if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
+ if test -n "$OPENSSL_LIBS"; then
PHP_EVAL_LIBLINE($OPENSSL_LIBS, $1)
+ fi
+ if test -n "$OPENSSL_INCS"; then
PHP_EVAL_INCLINE($OPENSSL_INCS)
fi
fi