X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/16e4a580e7f250a2c01caa03faab308079c70396..fdd04cdb80c8e46a6cfa3a0168c3e5f7f9085aed:/configure.ac diff --git a/configure.ac b/configure.ac index 306b338..3b0429f 100644 --- a/configure.ac +++ b/configure.ac @@ -455,6 +455,7 @@ AH_TEMPLATE([HAVE_GSTREAMER_0_10], AH_TEMPLATE([HAVE_GSTREAMER_1_0], [Define if building against GStreamer 1.0]) +mdw_gstreamer_version=nil for i in $want_gstreamer; do case $i in 0.10) v=0.10 V=0_10 ;; @@ -462,10 +463,11 @@ for i in $want_gstreamer; do *) AC_MSG_ERROR([unrecognized GStreamer version]) ;; esac PKG_CHECK_MODULES([GSTREAMER], - [gstreamer-$v gstreamer-app-$v gstreamer-audio-$v], + [gstreamer-$v gstreamer-app-$v gstreamer-audio-$v gstreamer-pbutils-$v], [have_gstreamer=$v], [have_gstreamer=no]) case $have_gstreamer in no) continue ;; esac AC_DEFINE_UNQUOTED([HAVE_GSTREAMER_$V], [1]) + mdw_gstreamer_version=$v break done @@ -952,6 +954,16 @@ AC_CONFIG_FILES([Makefile tests/Makefile]) AC_OUTPUT +# A hack: communicate our selection of GStreamer version back to the +# Debian packaging machinery so that it can build the right dependencies. +echo '### extra control substitutions for Debian' >debian/substvars.auto.new +case $mdw_gstreamer_version in + nil) ;; + *) echo >>debian/substvars.auto.new \ + "disorder:GstVersion=gstreamer$mdw_gstreamer_version" ;; +esac +mv debian/substvars.auto.new debian/substvars.auto + if test $GCC = yes && test "$gcc_werror" = ''; then AC_MSG_WARN([building without -Werror]) fi