From: Thomas Vander Stichele Date: Tue, 10 Apr 2007 08:51:05 +0000 (+0000) Subject: m4/gst-check.m4: Allow pre-setting the GST(PB)_TOOLS/PLUGINS_DIR variables to help... X-Git-Tag: RELEASE-0_10_3~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9097e252e477e18182f08a032d8860bdee9a0416;p=platform%2Fupstream%2Fgst-common.git m4/gst-check.m4: Allow pre-setting the GST(PB)_TOOLS/PLUGINS_DIR variables to help builds against older GStreamer. Original commit message from CVS: * m4/gst-check.m4: Allow pre-setting the GST(PB)_TOOLS/PLUGINS_DIR variables to help builds against older GStreamer. --- diff --git a/ChangeLog b/ChangeLog index 0bcb1fb..8bfdbd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-10 Thomas Vander Stichele + + * m4/gst-check.m4: + Allow pre-setting the GST(PB)_TOOLS/PLUGINS_DIR variables to help + builds against older GStreamer. + 2007-03-25 Sebastian Dröge * m4/gst-parser.m4: diff --git a/m4/gst-check.m4 b/m4/gst-check.m4 index 7324cf3..3f6b8ff 100644 --- a/m4/gst-check.m4 +++ b/m4/gst-check.m4 @@ -69,20 +69,28 @@ AC_DEFUN([AG_GST_CHECK_MODULES], AC_DEFUN([AG_GST_CHECK_GST], [ AG_GST_CHECK_MODULES(GST, gstreamer-[$1], [$2], [GStreamer], [$3]) - GST_TOOLS_DIR=`$PKG_CONFIG --variable=toolsdir gstreamer-[$1]` + dnl allow setting before calling this macro to override if test -z $GST_TOOLS_DIR; then - AC_MSG_ERROR( - [no tools dir set in GStreamer pkg-config file; core upgrade needed.]) + GST_TOOLS_DIR=`$PKG_CONFIG --variable=toolsdir gstreamer-[$1]` + if test -z $GST_TOOLS_DIR; then + AC_MSG_ERROR( + [no tools dir set in GStreamer pkg-config file, core upgrade needed.]) + fi fi + AC_MSG_NOTICE([using GStreamer tools in $GST_TOOLS_DIR]) AC_SUBST(GST_TOOLS_DIR) dnl check for where core plug-ins got installed dnl this is used for unit tests - GST_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-[$1]` + dnl allow setting before calling this macro to override if test -z $GST_PLUGINS_DIR; then - AC_MSG_ERROR( - [no pluginsdir set in GStreamer pkg-config file; core upgrade needed.]) + GST_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-[$1]` + if test -z $GST_PLUGINS_DIR; then + AC_MSG_ERROR( + [no pluginsdir set in GStreamer pkg-config file, core upgrade needed.]) + fi fi + AC_MSG_NOTICE([using GStreamer plug-ins in $GST_PLUGINS_DIR]) AC_SUBST(GST_PLUGINS_DIR) ]) @@ -117,10 +125,14 @@ AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_BASE], dnl check for where base plug-ins got installed dnl this is used for unit tests - GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-[$1]` + dnl allow setting before calling this macro to override if test -z $GSTPB_PLUGINS_DIR; then - AC_MSG_ERROR( - [no pluginsdir set in GStreamer Base Plug-ins pkg-config file]) + GSTPB_PLUGINS_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-base-[$1]` + if test -z $GSTPB_PLUGINS_DIR; then + AC_MSG_ERROR( + [no pluginsdir set in GStreamer Base Plug-ins pkg-config file]) + fi fi + AC_MSG_NOTICE([using GStreamer Base Plug-ins in $GSTPB_PLUGINS_DIR]) AC_SUBST(GSTPB_PLUGINS_DIR) ])