summaryrefslogtreecommitdiffstats
path: root/m4/gst-artsc.m4
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2001-12-17 19:04:24 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2001-12-17 19:04:24 +0000
commit9a8398de592d271c9db211252ede05756ab6422e (patch)
tree09c8dbcc1580ae597b0250bc7d076b00732aca04 /m4/gst-artsc.m4
parentbb8c10821177de574bda97d0d11b2b69e9aaf9ff (diff)
downloadgst-plugins-bad-9a8398de592d271c9db211252ede05756ab6422e.tar.gz
gst-plugins-bad-9a8398de592d271c9db211252ede05756ab6422e.tar.bz2
gst-plugins-bad-9a8398de592d271c9db211252ede05756ab6422e.zip
more of the same
Original commit message from CVS: more of the same
Diffstat (limited to 'm4/gst-artsc.m4')
-rw-r--r--m4/gst-artsc.m430
1 files changed, 30 insertions, 0 deletions
diff --git a/m4/gst-artsc.m4 b/m4/gst-artsc.m4
new file mode 100644
index 00000000..c0f683df
--- /dev/null
+++ b/m4/gst-artsc.m4
@@ -0,0 +1,30 @@
+dnl Perform a check for existence of ARTSC
+dnl Richard Boulton <richard-alsa@tartarus.org>
+dnl Last modification: 26/06/2001
+dnl GST_CHECK_FEATURE(FEATURE-NAME, FEATURE-DESCRIPTION,
+dnl DEPENDENT-PLUGINS, TEST-FOR-FEATURE)
+dnl
+dnl This check was written for GStreamer: it should be renamed and checked
+dnl for portability if you decide to use it elsewhere.
+dnl
+AC_DEFUN(GST_CHECK_ARTSC,
+[
+ AC_PATH_PROG(ARTSC_CONFIG, artsc-config, no)
+ if test x$ARTSC_CONFIG = xno; then
+ if test x$ARTSC_CONFIG = xno; then
+ AC_MSG_WARN([Couldn't find artsc-config])
+ HAVE_ARTSC=no
+ ARTSC_LIBS=
+ ARTSC_CFLAGS=
+ else
+ ARTSC_LIBS=`artsc-config --libs`
+ ARTSC_CFLAGS=`artsc-config --cflags`
+ dnl AC_CHECK_HEADER uses CPPFLAGS, but not CFLAGS.
+ dnl FIXME: Ensure only suitable flags result from artsc-config --cflags
+ CPPFLAGS="$CPPFLAGS $ARTSC_CFLAGS"
+ AC_CHECK_HEADER(artsc.h, HAVE_ARTSC=yes, HAVE_ARTSC=no)
+ fi
+ AC_SUBST(ARTSC_LIBS)
+ AC_SUBST(ARTSC_CFLAGS)
+])
+