From: Timo Sirainen Date: Wed, 17 Nov 2010 18:21:46 +0000 (+0000) Subject: configure: Use PKG_PROG_PKG_CONFIG to find pkg-config binary. X-Git-Tag: 2.0.8~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71c5cba2a112664e9fad7ec6a93ee84feb473495;p=thirdparty%2Fdovecot%2Fcore.git configure: Use PKG_PROG_PKG_CONFIG to find pkg-config binary. --- diff --git a/configure.in b/configure.in index 348f441d91..6872d1cd7b 100644 --- a/configure.in +++ b/configure.in @@ -5,6 +5,7 @@ AC_CONFIG_SRCDIR([src]) AM_INIT_AUTOMAKE([foreign]) AM_MAINTAINER_MODE +PKG_PROG_PKG_CONFIG ACLOCAL_AMFLAGS='-I $(top_srcdir)' AC_SUBST(ACLOCAL_AMFLAGS) @@ -1662,7 +1663,7 @@ dnl ** have_ssl=no if test $want_openssl != no && test $have_ssl = no; then - if pkg-config --exists openssl 2>/dev/null; then + if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists openssl 2>/dev/null; then PKG_CHECK_MODULES(SSL, openssl) CFLAGS="$CFLAGS $SSL_CFLAGS" have_openssl=yes