Configure fails due to different behavior in new versions of pkg-config
| From: | Pierre Schmitz | Date: | Sat, 16 Feb 2013 18:56:40 +0000 |
| Subject: | Configure fails due to different behavior in new versions of pkg-config | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-65890@lists.php.net to get a copy of this message | ||
Hi,
since pkg-config 0.28 "pkg-config --cflags-only-I openssl" returns an
empty string and not a single space like it did in the previous
versions. This breaks the configure script of PHP when called with
"./configure --with-imap --with-imap-ssl".
The relevant snippet from the configure script is:
...
OPENSSL_LIBS=
$PKG_CONFIG --libs openssl
OPENSSL_INCS=$PKG_CONFIG --cflags-only-I openssl
...
if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then
...
I am not sure why we are testing for content in $OPENSSL_INCS anyway.
Am I correct that removing " && test -n "$OPENSSL_INCS"" from configure
is the correct fix here (and in general)?
Greetings,
Pierre
--
Pierre Schmitz, https://pierre-schmitz.com