[PATCH] libosmo-netif[master]: configure: check for pkg-config presence

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Sep 30 22:59:58 UTC 2016


Review at  https://gerrit.osmocom.org/987

configure: check for pkg-config presence

Change-Id: Ifaea95befa3d1d8f6f047e22efcd62cb0bd8b287
---
M configure.ac
M tests/osmo-pcap-test/configure.ac
2 files changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/87/987/1

diff --git a/configure.ac b/configure.ac
index 135eb57..3994aff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,13 @@
 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 @@
 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])])
 

-- 
To view, visit https://gerrit.osmocom.org/987
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifaea95befa3d1d8f6f047e22efcd62cb0bd8b287
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list