aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-01 00:50:11 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-01 00:50:11 +0200
commit943f079e6635420e9e48d140cecd5c2dcb5a9ea6 (patch)
tree19efca00bce6d447842616dd583d65aba18d6c5a
parent2ccf5304ca465fbc70f6ae3283b4f49aaa9b650f (diff)
configure: check for pkg-config presence
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6d5b3b3..0d84ffc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,6 +13,13 @@ AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_PROG_INSTALL
+# check for pkg-config (explained in detail in libosmocore/configure.ac)
+AC_PATH_PROG(PKG_CONFIG_INSTALLED, pkg-config, no)
+if test "x$PKG_CONFIG_INSTALLED" = "xno"; then
+ AC_MSG_WARN([You need to install pkg-config])
+fi
+PKG_PROG_PKG_CONFIG([0.20])
+
# Checks for libraries.
# Checks for header files.