if test "x$EXPERIMENTAL" = "$xyes"; then
AC_MSG_WARN(building experimental plugins)
USE_FLACLIB="yes"
+ USE_LIBMIKMOD="yes"
else
AC_MSG_NOTICE(not building experimental plugins)
USE_FLACLIB="no"
+ USE_LIBMIKMOD="no"
fi
dnl broken plugins; stuff that doesn't seem to build at the moment
USE_LIBGSM="yes"
USE_FLACLIB="yes"
USE_LIBAVIFILE="yes"
+ USE_LIBMAD="yes"
else
AC_MSG_NOTICE(not building broken plugins)
USE_ARTS="no"
USE_LIBGSM="no"
USE_FLACLIB="no"
USE_LIBAVIFILE="no"
+ USE_LIBMAD="no"
fi
dnl *** a52dec ***
translit(dnm, m, l) AM_CONDITIONAL(USE_A52DEC, true)
GST_CHECK_FEATURE(A52DEC, [a52dec], a52dec, [
-GST_CHECK_LIBHEADER(A52DEC, a52, a52_init,-lm, a52dec/a52.h, A52DEC_LIBS="-la52")
+GST_CHECK_LIBHEADER(A52DEC, a52, a52_init, -lm, a52dec/a52.h, A52DEC_LIBS="-la52")
])
dnl *** aalib ***
])
dnl *** arts ***
-translit(dnm, m, l) AM_CONDITIONAL(USE_ARTS, true)
-GST_CHECK_FEATURE(ARTS, [arts plugins], arts, [GST_CHECK_ARTS()])
+dnl translit(dnm, m, l) AM_CONDITIONAL(USE_ARTS, true)
+dnl GST_CHECK_FEATURE(ARTS, [arts plugins], arts, [GST_CHECK_ARTS()])
dnl *** artsc ***
-translit(dnm, m, l) AM_CONDITIONAL(USE_ARTSC, true)
-GST_CHECK_FEATURE(ARTSC, [artsd plugins], artsdsink, [GST_CHECK_ARTSC()],
-)
+dnl translit(dnm, m, l) AM_CONDITIONAL(USE_ARTSC, true)
+dnl GST_CHECK_FEATURE(ARTSC, [artsd plugins], artsdsink, [GST_CHECK_ARTSC()])
dnl *** audiofile ***
dnl this check uses the GST_CHECK_CONFIGPROG macro
GST_CHECK_LIBHEADER(RAW1394, raw1934, raw1934_get_handle,, libraw1394/raw1394.h, RAW1394_LIBS="-raw1394")
])
+dnl Check for librtp
+dnl FIXME : adapt and make it work
+translit(dnm, m, l) AM_CONDITIONAL(USE_LIBRTP, true)
+GST_CHECK_FEATURE(LIBRTP, [RTP library], rtpenc rtpdec,[
+ AC_CHECK_LIB(rtp, rtp_packet_new_take_data, HAVE_LIBRTP=yes, HAVE_LIBRTP=no, $GLIB_LIBS $GLIB_CFLAGS)
+])
+dnl FIXME header check needs to use GLIB_CFLAGS in order to succeed for rtp
+dnl AC_CHECK_HEADERS(rtp/rtp.h, HAVE_LIBRTP=yes, HAVE_LIBRTP=no)
+dnl AC_CHECK_HEADERS(rtp/rtp-packet.h, :, HAVE_LIBRTP=no)
+dnl AC_CHECK_HEADERS(rtp/rtcp-packet.h, :, HAVE_LIBRTP=no)
+dnl AC_CHECK_HEADERS(rtp/rtp-audio.h, :, HAVE_LIBRTP=no)
+
+
dnl *** SDL ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBSDL, true)
GST_CHECK_FEATURE(LIBSDL, [SDL plugin], sdlvideosink, [
GST_CHECK_LIBHEADER(LIBSHOUT, shout, shout_init_connection,, shout/shout.h, LIBSHOUT_LIBS="-lshout")
])
+dnl for sidplay
+dnl FIXME : make this work
+dnl AC_PATH_LIBSIDPLAY
+
+
dnl *** vorbis ***
dnl AM_PATH_VORBIS only takes two options
translit(dnm, m, l) AM_CONDITIONAL(USE_VORBIS, true)
dnl thomas : adding an arts check taken from xine with it's own .m4
-AM_PATH_ARTS(, HAVE_ARTS=yes, HAVE_ARTS=no)
+dnl FIXME: put this higher up
+dnl AM_PATH_ARTS(, HAVE_ARTS=yes, HAVE_ARTS=no)
dnl also define ARTS_MCOPFLAGS
-ARTS_MCOPFLAGS="$ARTS_CFLAGS"
-AC_SUBST(ARTS_MCOPFLAGS)
+dnl ARTS_MCOPFLAGS="$ARTS_CFLAGS"
+dnl AC_SUBST(ARTS_MCOPFLAGS)
dnl Check for libglade with gnome support; no libglade for glib2.0
HAVE_LIBGLADE_GNOME="no"
AC_SUBST(LIBGLADE_GNOME_LIBS)
AC_SUBST(LIBGLADE_GNOME_CFLAGS)
-dnl Check for Avifile
-HAVE_AVIFILE="no"
-AC_MSG_CHECKING(for Avifile)
-if avifile-config --libs > /dev/null 2>&1; then
- HAVE_AVIFILE="yes"
- AC_MSG_RESULT(found)
-else
- AC_MSG_WARN(Did not find Avifile installed)
-fi
-
-AVIFILE_LIBS="`avifile-config --libs`"
-AVIFILE_CFLAGS="`avifile-config --cflags`"
-AC_SUBST(AVIFILE_LIBS)
-AC_SUBST(AVIFILE_CFLAGS)
-dnl HAVE_AVIFILE is needed in a Makefile.am
-
-AC_SUBST(HAVE_AVIFILE)
-
dnl Check for atomic.h
dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
AC_CHECK_LIB(cdda_paranoia, paranoia_init, : , HAVE_CDPARANOIA=no, -lcdda_interface )
AC_CHECK_HEADER(cdda_paranoia.h, :, HAVE_CDPARANOIA=no)
-dnl Check for sidplay
-AC_PATH_LIBSIDPLAY
-
-dnl Check for librtp
-AC_MSG_CHECKING(rtp library)
-AC_CHECK_LIB(rtp, rtp_packet_new_take_data, HAVE_LIBRTP=yes, HAVE_LIBRTP=no, $GLIB_LIBS $GLIB_CFLAGS)
-dnl FIXME header check needs to use GLIB_CFLAGS in order to succeed for rtp
-dnl AC_CHECK_HEADERS(rtp/rtp.h, HAVE_LIBRTP=yes, HAVE_LIBRTP=no)
-dnl AC_CHECK_HEADERS(rtp/rtp-packet.h, :, HAVE_LIBRTP=no)
-dnl AC_CHECK_HEADERS(rtp/rtcp-packet.h, :, HAVE_LIBRTP=no)
-dnl AC_CHECK_HEADERS(rtp/rtp-audio.h, :, HAVE_LIBRTP=no)
-
dnl Check for linux/cdrom.h
AC_CHECK_HEADER(linux/cdrom.h,
dnl
dnl The macro will set USE_<FEATURE-NAME> to "yes" or "no" depending on
dnl whether the feature is to be used.
+dnl Thomas changed this, so that when USE_<FEATURE-NAME> was already set
+dnl to no, then it stays that way.
dnl
dnl The macro will call AM_CONDITIONAL(USE_<<FEATURE-NAME>, ...) to allow
dnl the feature to control what is built in Makefile.ams. If you want
AC_DEFUN(GST_CHECK_FEATURE,
[dnl
builtin(define, [gst_endisable], ifelse($5, [disabled], [enable], [disable]))dnl
+dnl if it is set to NO, then don't even consider it for building
+NOUSE=
+if test "x$USE_[$1]" = "xno"; then
+ NOUSE="yes"
+fi
AC_ARG_ENABLE(translit([$1], A-Z, a-z),
[ ]builtin(format, --%-26s gst_endisable %s, gst_endisable-translit([$1], A-Z, a-z), [$2]ifelse([$3],,,: [$3])),
[ case "${enableval}" in
- yes) USE_[$1]=yes ;;
- no) USE_[$1]=no ;;
+ yes) USE_[$1]=yes;;
+ no) USE_[$1]=no;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-translit([$1], A-Z, a-z)) ;;
esac],
[ USE_$1=]ifelse($5, [disabled], [no], [yes])) dnl DEFAULT
+dnl *** set it back to no if it was preset to no
+if test "x$NOUSE" = "xyes"; then
+ USE_[$1]="no"
+ AC_MSG_WARN(*** $3 pre-configured not to be built)
+fi
+NOUSE=
+
dnl *** If it's enabled
+
if test x$USE_[$1] = xyes; then
gst_check_save_LIBS=$LIBS
gst_check_save_LDFLAGS=$LDFLAGS