search for: _pkg_config

Displaying 2 results from an estimated 2 matches for "_pkg_config".

Did you mean: pkg_config
2009 Oct 25
1
[PATCH] Use pkg-config (if available) to detect libogg. Fall back to old method if pkg-config fails.
...ODULES, [ACTION-IF-FOUND], +# [ACTION-IF-NOT-FOUND]) +# +# This is a very slight modification to the macro PKG_CHECK_MODULES that +# is in the original pkg.m4 file. It prints the versions in the checking +# message (erikd at mega-nerd.com). + +AC_DEFUN([PKG_CHECK_MOD_VERSION], +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl + +pkg_failed=no +AC_MSG_CHECKING([for $2 ]) + +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) +_PKG_CONFIG([$1][_LIBS], [libs], [$2]) + +m4_def...
2009 Oct 25
0
[PATCH] Use pkg-config (if available) to detect libogg. Fall back to old method if pkg-config fails.
..._MACRO_DIR([m4]) AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) AM_MAINTAINER_MODE @@ -112,7 +113,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_DEFI...