core: add detection of pkg-config (required on Cygwin)

This fixes the detection of enchant lib, the macro PKG_CHECK_MODULES requires
pkg-config.
This commit is contained in:
Sebastien Helleu 2013-10-05 20:19:59 +02:00
parent b5f6874f2c
commit 8fb67c241d

View File

@ -168,6 +168,18 @@ AC_DEFINE_UNQUOTED(CA_FILE, "$CA_FILE")
not_asked=""
not_found=""
# ------------------------------------------------------------------------------
# pkg-config
# ------------------------------------------------------------------------------
PKGCONFIG=""
AC_CHECK_PROGS(PKGCONFIG, pkg-config)
if test "x$PKGCONFIG" = "x"; then
AC_MSG_ERROR([
*** "pkg-config" couldn't be found on your system.
*** Try to install it with your software package manager.])
fi
# ------------------------------------------------------------------------------
# dynamic loader
# ------------------------------------------------------------------------------