summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2010-04-30 17:44:43 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-06 21:42:46 +0200
commitb237ef2cfac7ab0b33170809e8cb64628606207d (patch)
tree8302cdf18ad733e40aebffffd5a90a6790622e34 /configure.ac
parent41160f3dbf0cb61e23a02338da1f289a2ff00066 (diff)
build-sys: better test for pkg-config/pkg.m4
In some cases, people will run autoreconf rather than bootstrap.sh, or they will uninstall pkg-config. This is now detected properly rather than relying on bootstrap.sh checking for us.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f4e10367e0..7d73ed27b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,8 @@ AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library no
AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
+# This makes sure pkg.m4 is available.
+m4_pattern_forbid([^_?PKG_[A-Z_]+$],[pkg.m4 missing, please install pkg-config])
PKG_CHECK_MODULES(UDEV, [ libudev ])
AC_SUBST(UDEV_CFLAGS)
AC_SUBST(UDEV_LIBS)