ref: 7cc81bb89506806bf803245bbc05bbe23581e483
parent: 73967ed786f5ee5aaa37aa6314dc45c341d79433
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Thu May 15 02:38:47 EDT 2008
configure.ac : Check for pkg-config outside the if statement.
--- a/configure.ac
+++ b/configure.ac
@@ -132,9 +132,13 @@
#====================================================================================
# Check for libsndfile which is required for the test and example programs.
+
AC_ARG_ENABLE(sndfile,
AC_HELP_STRING([--disable-sndfile], [disable support for sndfile (default=autodetect)]),
[ enable_sndfile=$enableval ], [ enable_sndfile=yes ])
+
+# Check for pkg-config outside the if statement.
+PKG_PROG_PKG_CONFIG
if test "x$enable_sndfile" = "xyes"; then
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.6, ac_cv_sndfile=1, ac_cv_sndfile=0)