From c96c733e9f59c67d7697d1918714fd1b29fff995 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Fri, 9 May 2014 20:19:00 +0000 Subject: [PATCH] Test for pkg-config in configure We depend on pkg-config, but we weren't explicitly testing for it, so the absence of pkg-config would cause the sqlite test to fail, which was confusing. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 4c99182aa3..e949864178 100644 --- a/configure.ac +++ b/configure.ac @@ -1126,6 +1126,10 @@ case $host in ;; esac +if ! test -x "$(which pkg-config)"; then + AC_MSG_ERROR([You need to install pkg-config to configure FreeSWITCH.]) +fi + # temporary workaround for Debian libldns-dev package bug if test "$cross_compiling" != "yes" && test -f /usr/lib/pkg-config/libldns.pc; then path_push_unique PKG_CONFIG_PATH /usr/lib/pkg-config