path: root/
diff options
authorDiego E. 'Flameeyes' Pettenò <>2009-01-22 16:52:41 +0100
committerDiego E. 'Flameeyes' Pettenò <>2009-01-22 16:52:41 +0100
commit3293251198effe635f4afa291b2f99219162db9d (patch)
tree61d2ffceedbcf857b31a8df96bac6800f00c5674 /
parent1b20d287b9ff496a643c9256870c5cff0e3389f9 (diff)
Move the safety check about pkg-config in
Don't check twice for pkg-config during configure, since the undefined macro would be possibly caused on a different system.
Diffstat (limited to '')
1 files changed, 9 insertions, 0 deletions
diff --git a/ b/
index 6698f68b..4ca2b339 100755
--- a/
+++ b/
@@ -40,6 +40,15 @@ run_versioned() {
set -ex
+# We check for this here, because if pkg-config is not found in the
+# system, it's likely that the pkg.m4 macro file is also not present,
+# which will make PKG_PROG_PKG_CONFIG be undefined and the generated
+# configure file faulty.
+if ! pkg-config --version &>/dev/null; then
+ echo "pkg-config is required to bootstrap this program" &>/dev/null
+ exit 1
if [ "x$1" = "xam" ] ; then
run_versioned automake "$VERSION" -a -c --foreign