summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2001-12-20 20:15:13 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2001-12-20 20:15:13 +0000
commit85264d7fd3f784e8e7880eea93546668f7ff9a9a (patch)
tree82ac69c913d49d758bd952976dfa08c65bfbc496 /m4
parent9a6fd8e982842c450f76a0b9b798279d8cf2bf1a (diff)
downloadgst-plugins-bad-85264d7fd3f784e8e7880eea93546668f7ff9a9a.tar.gz
gst-plugins-bad-85264d7fd3f784e8e7880eea93546668f7ff9a9a.tar.bz2
gst-plugins-bad-85264d7fd3f784e8e7880eea93546668f7ff9a9a.zip
added wrobell's AC_DEFINE change
Original commit message from CVS: added wrobell's AC_DEFINE change
Diffstat (limited to 'm4')
-rw-r--r--m4/gst-feature.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/gst-feature.m4 b/m4/gst-feature.m4
index cc37f018..0c307016 100644
--- a/m4/gst-feature.m4
+++ b/m4/gst-feature.m4
@@ -72,13 +72,19 @@ NOUSE=
dnl *** If it's enabled
if test x$USE_[$1] = xyes; then
+ dnl save compile variables before the test
+
gst_check_save_LIBS=$LIBS
gst_check_save_LDFLAGS=$LDFLAGS
gst_check_save_CFLAGS=$CFLAGS
gst_check_save_CPPFLAGS=$CPPFLAGS
gst_check_save_CXXFLAGS=$CXXFLAGS
+
HAVE_[$1]=no
+
+ dnl TEST_FOR_FEATURE
$4
+
LIBS=$gst_check_save_LIBS
LDFLAGS=$gst_check_save_LDFLAGS
CFLAGS=$gst_check_save_CFLAGS
@@ -94,6 +100,7 @@ dnl *** Warn if it's disabled or not found
if test x$USE_[$1] = xyes; then
ifelse([$6], , :, [$6])
GST_PLUGINS_YES="$GST_PLUGINS_YES \n\t[$3]"
+ AC_DEFINE(HAVE_[$1], , [support for features: $3])
else
ifelse([$3], , :, [AC_MSG_WARN(
***** NOTE: These plugins won't be built: [$3]