summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2005-12-30 15:28:44 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2005-12-30 15:28:44 +0000
commitcda24bb9303977ddedfa56f9509538a082bbd2b6 (patch)
treea049200acf90bf1c3a15ce9f57d321aebc865fad /configure.ac
parent603daf45ac63e278fc5762789c1ded487321a1bd (diff)
moved level-example to tests/examples/level-example
Original commit message from CVS: * configure.ac: * gst/level/Makefile.am: * gst/level/level-example.c: * tests/Makefile.am: * tests/examples/level/Makefile.am: * tests/examples/level/level-example.c: (message_handler), (main): moved level-example to tests/examples/level-example * tests/old/examples/level/demo.c: (main): * tests/old/examples/level/plot.c: (main): some initial fixes
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0f477417..39d9ba51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -214,6 +214,28 @@ dnl check for "check", unit testing library/header
AM_PATH_CHECK(0.9.2, HAVE_CHECK=yes, HAVE_CHECK=no)
AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes")
+dnl GTK is optional and used in examples
+HAVE_GTK=NO
+PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, HAVE_GTK_22=yes, HAVE_GTK_22=no)
+if test "x$HAVE_GTK_22" = "xyes"; then
+ HAVE_GTK=yes
+ GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
+ AC_SUBST(GTK_VERSION)
+ GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
+ AC_SUBST(GTK_BASE_DIR)
+else
+ PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK_20=yes, HAVE_GTK_20=no)
+fi
+if test "x$HAVE_GTK_20" = "xyes"; then
+ HAVE_GTK=yes
+fi
+GTK_CFLAGS=$GTK2_CFLAGS
+GTK_LIBS=$GTK2_LIBS
+AC_SUBST(GTK_LIBS)
+AC_SUBST(GTK_CFLAGS)
+AC_SUBST(HAVE_GTK)
+AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
+
dnl should we install schemas ?
translit(dnm, m, l) AM_CONDITIONAL(USE_GCONFTOOL, true)
GST_CHECK_FEATURE(GCONFTOOL, [GConf schemas], , [
@@ -551,6 +573,7 @@ gst/matroska/Makefile
gst/multipart/Makefile
gst/rtp/Makefile
gst/rtsp/Makefile
+gst/smoothwave/Makefile
gst/smpte/Makefile
gst/udp/Makefile
gst/videobox/Makefile
@@ -583,6 +606,8 @@ docs/plugins/Makefile
docs/version.entities
tests/Makefile
tests/check/Makefile
+tests/examples/Makefile
+tests/examples/level/Makefile
common/Makefile
common/m4/Makefile
m4/Makefile