]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: print helpful error when pkg.m4 is missing
authorSami Kerola <kerolasa@iki.fi>
Sat, 26 Feb 2011 14:37:21 +0000 (15:37 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Mar 2011 12:37:25 +0000 (13:37 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
configure.ac

index 75ec3c0e8eae40f0fe8632612504daba458d5761..9c3c5ac329386cc508d96a0af55d7b5d04c913f2 100644 (file)
@@ -84,6 +84,12 @@ AC_C_BIGENDIAN
 dnl libtool-2
 LT_INIT
 
+m4_ifndef([PKG_PROG_PKG_CONFIG],
+  [m4_fatal([Could not locate the pkg-config autoconf
+    macros. These are usually located in /usr/share/aclocal/pkg.m4.
+    If your macros are in a different location, try setting the
+    environment variable AL_OPTS="-I/other/macro/dir" before running
+    ./autogen.sh or autoreconf again.])])
 PKG_PROG_PKG_CONFIG
 
 GTK_DOC_CHECK([1.10])