]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
build-sys: check pkg-config availability
authorSami Kerola <kerolasa@iki.fi>
Thu, 18 Aug 2016 19:30:15 +0000 (20:30 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 21 Aug 2016 14:51:42 +0000 (15:51 +0100)
bootstrap.sh
configure.ac

index e05d84f48e03ed7a9c0e0e8d0adc2d42b688bf10..d75acc49b95690d190c7f1d7a7bcfd99c19cdbe1 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-aclocal
+aclocal $ACLOCAL_OPTS
 autoheader
 automake --add-missing --copy --foreign
 autoconf
index f3d2b6c32c157def549f87dcf464032729ebcecc..e737f54910500bf0c2a5ffedb4992131613d02a7 100644 (file)
@@ -23,6 +23,16 @@ CURSES_OBJ=curses.o
 
 AC_PROG_CC
 
+# Check pkg-config availability.
+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 ACLOCAL_OPTS="-I/other/macro/dir"
+before running ./bootstrap.sh again.])
+])
+PKG_PROG_PKG_CONFIG
+
 # Check bytes in types.
 AC_CHECK_SIZEOF([unsigned char], [1])
 AC_CHECK_SIZEOF([unsigned short], [2])