Displaying 1 result from an estimated 1 matches for "ac_cv_ogg".
[PATCH] Use pkg-config (if available) to detect libogg. Fall back to old method if pkg-config fails.
2009 Oct 25
0
[PATCH] Use pkg-config (if available) to detect libogg. Fall back to old method if pkg-config fails.
...,16 @@ AC_MSG_RESULT($has_visibility)
AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h)
-XIPH_PATH_OGG([src="src"], [src=""])
+# Test for availablitly of pkg-config.
+PKG_PROG_PKG_CONFIG
+
+if test -n "$PKG_CONFIG"; then
+ PKG_CHECK_MOD_VERSION(OGG, ogg >= 1.1.3, ac_cv_ogg=yes, ac_cv_ogg=no)
+ src=src
+ fi
+if test x$ac_cv_ogg != xyes; then
+ XIPH_PATH_OGG([src="src"], [src=""])
+ fi
AC_SUBST(src)
AC_CHECK_LIB(m, sin)
@@ -287,7 +297,7 @@ AC_DEFINE([_BUILD_SPEEX], [], [Defined only when Speex itself is build built])
AC_OUTPUT([Makefile libspee...