aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 4850c94f3f..cbe7e51b7a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -34,6 +34,7 @@ ACLOCAL=aclocal$AM_VERSION
AUTOHEADER=autoheader
AUTOMAKE=automake$AM_VERSION
AUTOCONF=autoconf
+PKG_CONFIG=pkg-config
# Check for python. Python did not support --version before version 2.5.
# Until we require a version > 2.5, we should use -V.
@@ -118,6 +119,20 @@ _EOF_
;;
esac
+#
+# XXX - is there some minimum version for which we should be checking?
+#
+PCVER=`pkg-config --version`
+if test -z "$PCVER"; then
+ cat >&2 <<_EOF_
+
+ You must have pkg-config installed to compile $PROJECT.
+ Download the appropriate package for your distribution/OS,
+ or get the source tarball at http://pkgconfig.freedesktop.org/releases/
+_EOF_
+ DIE="exit 1"
+fi
+
$DIE
aclocal_flags=`./aclocal-flags`