[Easytag-mailing] [patch] wavpack: CFLAGS and LIBS returned by PKG_CHECK_MODULES



It doesn't make sense (and is incorrect - see the need for the libm
check) to check the availability of libraries through pkg-config, and
then AC_CHECK_LIB() for individual libraries.

Simply use the CFLAGS and LIBS returned by PKG_CHECK_MODULES().

---
 configure.in |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 352dea9..e39c448 100644
--- a/configure.in
+++ b/configure.in
@@ -304,9 +304,10 @@ if test "x$enable_wavpack" = "xyes"; then
         echo "***"
         echo "*** Warning: wavpack >= 4.40 needed"
         echo "***"
+    else
+        CFLAGS="$CFLAGS $WAVPACK_CFLAGS"
+        LIBS="$LIBS $WAVPACK_LIBS"
     fi
-    AC_CHECK_LIB(m, cos)
-    AC_CHECK_LIB(wavpack, WavpackOpenFileInput, , wavpack_available=no)
 fi
 
 AC_MSG_CHECKING(for Wavpack file support)
-- 
1.6.3.3





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]