From: Sami Kerola Date: Sat, 26 Feb 2011 14:37:21 +0000 (+0100) Subject: build-sys: print helpful error when pkg.m4 is missing X-Git-Tag: v2.20-rc1~466 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd0f41321bd3ea777d47551cf6512d8ed1ba5aac;p=thirdparty%2Futil-linux.git build-sys: print helpful error when pkg.m4 is missing Signed-off-by: Sami Kerola --- diff --git a/configure.ac b/configure.ac index 75ec3c0e8e..9c3c5ac329 100644 --- a/configure.ac +++ b/configure.ac @@ -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])