summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-02-07 02:51:25 +0100
committerGravatar Nikias Bassen2021-02-07 02:51:25 +0100
commitebf2fdb938c755026668c8418da290e6870c1987 (patch)
tree9630b5e28ada8cea73ca7a3730848da7eb3982b7
parent501f8c86eb524d993828535fc8076f6b86b682ee (diff)
downloadlibplist-ebf2fdb938c755026668c8418da290e6870c1987.tar.gz
libplist-ebf2fdb938c755026668c8418da290e6870c1987.tar.bz2
configure.ac: Don't try to run pkg-config if it is not available
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f4e89a1..eade215 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,7 +123,9 @@ fi
if [test "x$CYTHON" != "xfalse"]; then
PKG_PROG_PKG_CONFIG
AC_MSG_CHECKING([for libplist Cython bindings])
- CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist-2.0)/plist/cython
+ if test -x "$PKG_CONFIG"; then
+ CYTHON_PLIST_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir libplist-2.0)/plist/cython
+ fi
if [test ! -d "$CYTHON_PLIST_INCLUDE_DIR"]; then
CYTHON_PLIST_INCLUDE_DIR=.
cython_python_bindings=yes