From 8fe79ba2f6ea1cb50225d7e9343ec9cd47632cd0 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 17 Mar 2006 16:43:33 +0000 Subject: fix: gstreamer is supposed to be optional. --- acinclude.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index e58d2751..a2a623c4 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -246,6 +246,18 @@ AC_SUBST($1_CFLAGS) AC_SUBST($1_LIBS) ]) +AC_DEFUN(_TUXBOX_APPS_LIB_PKGCONFIG_OPTIONAL,[ +PKG_CHECK_MODULES($1,$2,$3="yes",$3="no") +if test "x$3" = "xyes"; then + AC_DEFINE($3, 1, [$2 available]) +else + $1_CFLAGS="" + $1_LIBS="" +fi +AC_SUBST($1_CFLAGS) +AC_SUBST($1_LIBS) +]) + AC_DEFUN(TUXBOX_APPS_LIB_PKGCONFIG,[ _TUXBOX_APPS_LIB_PKGCONFIG($1,$2) if test -z "$$1_CFLAGS" ; then -- cgit v1.2.3