summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2016-01-29 18:15:47 +0100
committerThomas Graf <tgraf@suug.ch>2016-01-29 18:15:47 +0100
commit0103671f1f3dae63dc9d17ce5cb18183871fef9c (patch)
treedc78da91d811f399de03bb3d5b4ec91bed99974b
parent4efaa8ce9e82777d1208688e5bad833043587d81 (diff)
Check for presence of pkg-config in configure
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dd879bb..a81b792 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,14 @@ AC_CHECK_FUNCS(atexit gettimeofday memset pow socket strcasecmp)
AC_CHECK_FUNCS(strchr strdup strerror strncasecmp strstr strtol)
AC_CHECK_FUNCS(uname getdate)
+AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
+AS_IF([test "x$PKG_CONFIG" = "xno"],[
+ AC_MSG_ERROR([
+ *** The pkg-config script could not be found. Make sure it is
+ *** in your path, or set the PKG_CONFIG environment variable
+ *** to the full path to pkg-config.])
+ ])
+
AX_WITH_CURSES
if test "x$ax_cv_curses" != xyes || test "x$ax_cv_curses_color" != xyes; then
AC_MSG_ERROR([requires an X/Open-compatible Curses library with color])