summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-06-02 11:23:19 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-06-02 11:23:19 +0000
commit7e70b0de18b06f3df3643e90e348b3059a69b76e (patch)
tree02312866b948422c0ab5383fce1f98b11a0b8306 /m4
parentbb5fccc4e2c49bdeeebcab158e9cc04dbb388d2b (diff)
fix shout2 check to check for the version
Original commit message from CVS: fix shout2 check to check for the version
Diffstat (limited to 'm4')
-rw-r--r--m4/gst-shout2.m419
1 files changed, 11 insertions, 8 deletions
diff --git a/m4/gst-shout2.m4 b/m4/gst-shout2.m4
index 9a523bbf..e85a7671 100644
--- a/m4/gst-shout2.m4
+++ b/m4/gst-shout2.m4
@@ -3,21 +3,19 @@
# Shamelessly stolen from Owen Taylor and Manish Singh
dnl AM_PATH_SHOUT2([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Test for libshout, and define SHOUT2_CFLAGS and SHOUT2_LIBS
+dnl Test for libshout 2, and define SHOUT2_CFLAGS and SHOUT2_LIBS
dnl
AC_DEFUN([AM_PATH_SHOUT2],
[dnl
dnl Get the cflags and libraries
dnl
-AC_ARG_WITH(shout-prefix,[ --with-shout2-prefix=PFX Prefix where libshout2 is installed (optional)], shout2_prefix="$withval", shout2_prefix="")
-AC_ARG_ENABLE(shout2test, [ --disable-shout2test Do not try to compile and run a test Shout2 program],, enable_shout2test=yes)
+AC_ARG_WITH(shout2-prefix,[ --with-shout2-prefix=PFX Prefix where libshout2 is installed (optional)], shout2_prefix="$withval", shout2_prefix="")
+AC_ARG_ENABLE(shout2test, [ --disable-shout2test Do not try to compile and run a test shout2 program],, enable_shout2test=yes)
if test "x$shout2_prefix" != "xNONE" ; then
- shout2_args="$shout2_args --prefix=$shout2_prefix"
SHOUT2_CFLAGS="-I$shout2_prefix/include"
SHOUT2_LIBS="-L$shout2_prefix/lib"
- elif test "$prefix" != ""; then
- shout2_args="$shout2_args --prefix=$prefix"
+ elif test "x$prefix" != "x"; then
SHOUT2_CFLAGS="-I$prefix/include"
SHOUT2_LIBS="-L$prefix/lib"
fi
@@ -29,7 +27,7 @@ AC_ARG_ENABLE(shout2test, [ --disable-shout2test Do not try to compile an
SHOUT2_LIBS="$SHOUT2_LIBS -lnsl -lsocket -lresolv"
esac
- AC_MSG_CHECKING(for Shout2)
+ AC_MSG_CHECKING(for shout2)
no_shout2=""
if test "x$enable_shout2test" = "xyes" ; then
@@ -38,7 +36,7 @@ AC_ARG_ENABLE(shout2test, [ --disable-shout2test Do not try to compile an
CFLAGS="$CFLAGS $SHOUT2_CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS"
LIBS="$LIBS $SHOUT2_LIBS $OGG_LIBS $VORBIS_LIBS"
dnl
-dnl Now check if the installed Shout2 is sufficiently new.
+dnl Now check if the installed shout2 is sufficiently new.
dnl
rm -f conf.shout2test
AC_TRY_RUN([
@@ -49,7 +47,12 @@ dnl
int main ()
{
+ int major, minor, patch;
+
system("touch conf.shout2test");
+ shout_version(&major, &minor, &patch);
+ if (major < 2)
+ return 1;
return 0;
}