Parcourir la source

Check for pkg-config itself so we don't try the m4 macro without pkg-config.
This helps workaround problem noted on bind10-users list last week
and this was discussed on jabber last week.

Note that if the m4 macro doesn't exist. Then even if pkg-config
is installed later, the configure script will still fail. autoconf
will need to be ran again.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2106 e5f2f494-b856-4b98-b285-d166d9295462

Jeremy C. Reed il y a 15 ans
Parent
commit
81a9d98f0d
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      configure.ac

+ 5 - 0
configure.ac

@@ -310,6 +310,11 @@ AC_SUBST(GTEST_INCLUDES)
 AC_SUBST(GTEST_LDFLAGS)
 AC_SUBST(GTEST_LDADD)
 
+dnl check for pkg-config itself so we don't try the m4 macro without pkg-config
+AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes, no)
+if test "x$HAVE_PKG_CONFIG" = "xno" ; then
+  AC_MSG_ERROR(Please install pkg-config)
+fi
 PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9, enable_features="$enable_features SQLite3")
 
 # I can't get some of the #include <asio.hpp> right without this