From 3b70a4e5ac74b6d7b0106b839c8380972369193d Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Fri, 9 Aug 2002 21:14:55 +0000 Subject: [PATCH] libdv build fixes Original commit message from CVS: libdv build fixes --- configure.ac | 15 +++++++-------- ext/Makefile.am | 16 ++++++++-------- ext/dv/Makefile.am | 4 ++-- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/configure.ac b/configure.ac index cb02fc647..cfc7464fc 100644 --- a/configure.ac +++ b/configure.ac @@ -450,12 +450,13 @@ dnl AC_CHECK_LIB(cdda_paranoia, paranoia_init, : , HAVE_CDPARANOIA=no, -lcdda_in dnl AC_CHECK_HEADER(cdda_paranoia.h, :, HAVE_CDPARANOIA=no) dnl *** libdv *** -translit(dnm, m, l) AM_CONDITIONAL(USE_DV, true) -GST_CHECK_FEATURE(DV, [libdv DV/video decoder], dvdec, [ - dnl use pkg-config when gtk deps are removed from its pkg-config .pc - AM_PATH_LIBDV(HAVE_DV="yes", HAVE_DV="no") - AC_SUBST(DV_CFLAGS) - AC_SUBST(DV_LIBS) +translit(dnm, m, l) AM_CONDITIONAL(USE_LIBDV, true) +GST_CHECK_FEATURE(LIBDV, [libdv DV/video decoder], dvdec, [ + dnl use this when gtk deps are removed from its pkg-config .pc + dnl PKG_CHECK_MODULES(LIBDV, libdv, HAVE_LIBDV="yes", HAVE_LIBDV="no") + AM_PATH_LIBDV(HAVE_LIBDV="yes", HAVE_LIBDV="no") + AC_SUBST(LIBDV_CFLAGS) + AC_SUBST(LIBDV_LIBS) ]) dnl *** dvdread *** @@ -843,8 +844,6 @@ AM_CONDITIONAL(EXPERIMENTAL, test "$EXPERIMENTAL" = "$xyes") AM_CONDITIONAL(BROKEN, test "$BROKEN" = "$xyes") AM_CONDITIONAL(HAVE_NASM, test "x$HAVE_NASM" = "xyes") -AM_CONDITIONAL(HAVE_LIBGLADE_GNOME, test "x$HAVE_LIBGLADE_GNOME" = "xyes") -AM_CONDITIONAL(HAVE_GNOME, test "x$HAVE_GNOME" = "xyes") AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes") AM_CONDITIONAL(HAVE_GTK_DOC, $HAVE_GTK_DOC) AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes") diff --git a/ext/Makefile.am b/ext/Makefile.am index 2e9f79907..46ba06d82 100644 --- a/ext/Makefile.am +++ b/ext/Makefile.am @@ -46,12 +46,6 @@ else CDPARANOIA_DIR= endif -if USE_DV -LIBDV_DIR=dv -else -LIBDV_DIR= -endif - if USE_DVDREAD DVDREAD_DIR=dvdread else @@ -136,6 +130,12 @@ else LCS_DIR= endif +if USE_LIBDV +LIBDV_DIR=dv +else +LIBDV_DIR= +endif + if USE_LIBFAME LIBFAME_DIR=libfame else @@ -228,11 +228,11 @@ endif SUBDIRS=$(A52DEC_DIR) $(AALIB_DIR) $(ALSA_DIR) \ $(ARTS_DIR) $(ARTSC_DIR) $(AUDIOFILE_DIR) \ - $(AVIFILE_DIR) $(CDPARANOIA_DIR) $(LIBDV_DIR) \ + $(AVIFILE_DIR) $(CDPARANOIA_DIR) \ $(DVDREAD_DIR) $(DVDNAV_DIR) $(ESD_DIR) \ $(FLAC_DIR) $(GNOMEVFS_DIR) $(GSM_DIR) \ $(HERMES_DIR) $(HTTP_DIR) $(JACK_DIR) $(JPEG_DIR) \ - $(LADSPA_DIR) $(LAME_DIR) $(LCS_DIR) $(LIBFAME_DIR) \ + $(LADSPA_DIR) $(LAME_DIR) $(LCS_DIR) $(LIBDV_DIR) $(LIBFAME_DIR) \ $(MAD_DIR) $(MIKMOD_DIR) $(MJPEGTOOLS_DIR) $(MPEG2DEC_DIR) \ $(OPENQUICKTIME_DIR) $(RAW1394_DIR) $(RTP_DIR) \ $(SDL_DIR) $(SHOUT_DIR) $(SIDPLAY_DIR) \ diff --git a/ext/dv/Makefile.am b/ext/dv/Makefile.am index f2e669377..e93141cbd 100644 --- a/ext/dv/Makefile.am +++ b/ext/dv/Makefile.am @@ -3,8 +3,8 @@ plugindir = $(libdir)/gst plugin_LTLIBRARIES = libgstdvdec.la libgstdvdec_la_SOURCES = gstdvdec.c -libgstdvdec_la_CFLAGS = $(GST_CFLAGS) $(DV_CFLAGS) -libgstdvdec_la_LIBADD = $(DV_LIBS) +libgstdvdec_la_CFLAGS = $(GST_CFLAGS) $(LIBDV_CFLAGS) +libgstdvdec_la_LIBADD = $(LIBDV_LIBS) libgstdvdec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) noinst_HEADERS = gstdvdec.h -- 2.34.1