diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 00:49:41 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 00:59:54 +0200 |
commit | d0b6eb477712b707313dfb731e188ae5439b4cd0 (patch) | |
tree | e9b17904d1290ccdbf3aeab381692214b570c6e6 | |
parent | e168a1798bc9590d0c7c4f938e437cb9e74aaa53 (diff) |
configure: check for pkg-config presence
Change-Id: Ifaea95befa3d1d8f6f047e22efcd62cb0bd8b287
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | tests/osmo-pcap-test/configure.ac | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 135eb57..3994aff 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,13 @@ AC_PROG_INSTALL LT_INIT AC_PROG_LIBTOOL +dnl 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]) + AC_CONFIG_MACRO_DIR([m4]) dnl checks for header files diff --git a/tests/osmo-pcap-test/configure.ac b/tests/osmo-pcap-test/configure.ac index 0d496db..47fbfe2 100644 --- a/tests/osmo-pcap-test/configure.ac +++ b/tests/osmo-pcap-test/configure.ac @@ -6,6 +6,13 @@ AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax no-dist-gzip dist-bzip2 1.6]) +dnl 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]) + dnl kernel style compile messages m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |