# Configure fails due to different behavior in new versions of pkg-config

- Thread: https://externals.io/message/65890
- Original archive: https://news-web.php.net/php.internals/65890
- Started by Pierre Schmitz on 2013-02-16T18:56:40+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #65890 — Pierre Schmitz — 2013-02-16T18:56:40+00:00

URL: https://externals.io/message/65890#65890

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
