From 266b874436d0b23d96d07bc09ad52e363c275b58 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 8 Jul 2005 10:47:30 +0000 Subject: [PATCH] gst/avi/Makefile.am (libgstavi_la_CFLAGS): No gettext hacks, the defines come from config.h. Original commit message from CVS: 2005-07-08 Andy Wingo * gst/avi/Makefile.am (libgstavi_la_CFLAGS): No gettext hacks, the defines come from config.h. * autogen.sh: Run autopoint, etc. * Makefile.am (DIST_SUBDIRS, SUBDIRS): Go into po/. * configure.ac: Add gettext stuff. --- ChangeLog | 11 ++++++++++ Makefile.am | 4 ++-- autogen.sh | 12 +++++------ configure.ac | 62 +++++++++++++++++++++++++++++------------------------ gst/avi/Makefile.am | 3 +-- 5 files changed, 54 insertions(+), 38 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1ed0ecb..3280377 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2005-07-08 Andy Wingo + + * gst/avi/Makefile.am (libgstavi_la_CFLAGS): No gettext hacks, the + defines come from config.h. + + * autogen.sh: Run autopoint, etc. + + * Makefile.am (DIST_SUBDIRS, SUBDIRS): Go into po/. + + * configure.ac: Add gettext stuff. + 2005-07-07 Wim Taymans * gst/videobox/gstvideobox.c: (gst_video_box_init), diff --git a/Makefile.am b/Makefile.am index e7debfc..ae2e7da 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,13 +7,13 @@ GCONF_DIR = SUBDIRS = \ gst sys ext gst-libs \ $(GCONF_DIR) \ - m4 common + m4 common po # disabled # $(SUBDIRS_DOCS) DIST_SUBDIRS = \ gst sys ext gst-libs \ - m4 common + m4 common po EXTRA_DIST = \ gst-plugins.spec depcomp \ diff --git a/autogen.sh b/autogen.sh index afe794d..d211d92 100755 --- a/autogen.sh +++ b/autogen.sh @@ -65,12 +65,12 @@ toplevel_check $srcfile # older autopoint (< 0.12) has a tendency to complain about mkinstalldirs if test -x mkinstalldirs; then rm mkinstalldirs; fi # first remove patch if necessary, then run autopoint, then reapply -# if test -f po/Makefile.in.in; -# then -# patch -p0 -R < common/gettext.patch -# fi -# tool_run "$autopoint --force" -# patch -p0 < common/gettext.patch +if test -f po/Makefile.in.in; +then + patch -p0 -R < common/gettext.patch +fi +tool_run "$autopoint --force" +patch -p0 < common/gettext.patch tool_run "$aclocal" "-I m4 -I common/m4 $ACLOCAL_FLAGS" tool_run "$libtoolize" "--copy --force" diff --git a/configure.ac b/configure.ac index 8687918..1d91f9a 100644 --- a/configure.ac +++ b/configure.ac @@ -46,14 +46,19 @@ AM_PROG_AS AS="${CC}" AS_PROG_OBJC -dnl the gettext stuff needed -dnl AM_GNU_GETTEXT_VERSION(0.11.5) -dnl AM_GNU_GETTEXT([external]) - -dnl GETTEXT_PACKAGE=gst-plugins-$GST_MAJORMINOR -dnl AC_SUBST(GETTEXT_PACKAGE) -dnl AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", -dnl [gettext package name]) +the gettext stuff needed +AM_GNU_GETTEXT_VERSION(0.11.5) +AM_GNU_GETTEXT([external]) + +GETTEXT_PACKAGE=gst-plugins-$GST_MAJORMINOR +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", + [gettext package name]) + +dnl define LOCALEDIR in config.h +AS_AC_EXPAND(LOCALEDIR, $datadir/locale) +AC_DEFINE_UNQUOTED([LOCALEDIR], "$LOCALEDIR", + [gettext locale dir]) dnl decide on error flags AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no") @@ -339,26 +344,26 @@ dnl ============================= sys plug-ins ================================ dnl ========================================================================== dnl *** OSS audio *** (Linux, *BSD) -dnl translit(dnm, m, l) AM_CONDITIONAL(USE_OSS, true) -dnl GST_CHECK_FEATURE(OSS, [OSS audio], osssrc osssink, [ -dnl HAVE_OSS="yes" - dnl Linux and newer BSD versions : -dnl AC_CHECK_HEADER(sys/soundcard.h, [ -dnl AC_DEFINE(HAVE_OSS_INCLUDE_IN_SYS,, [Define if OSS includes are in /sys/]) -dnl ] , [ - dnl Some old BSD versions : -dnl AC_CHECK_HEADER(soundcard.h, [ -dnl AC_DEFINE(HAVE_OSS_INCLUDE_IN_ROOT,, [Define if OSS includes are in /]) -dnl ], [ - dnl Some old BSD versions : -dnl AC_CHECK_HEADER(machine/soundcard.h, [ -dnl AC_DEFINE(HAVE_OSS_INCLUDE_IN_MACHINE,, [Define if OSS includes are in /machine/]) -dnl ], [ -dnl HAVE_OSS="no" -dnl ]) -dnl ]) -dnl ]) -dnl ]) +translit(dnm, m, l) AM_CONDITIONAL(USE_OSS, true) +GST_CHECK_FEATURE(OSS, [OSS audio], osssrc osssink, [ + HAVE_OSS="yes" +dnl Linux and newer BSD versions : + AC_CHECK_HEADER(sys/soundcard.h, [ + AC_DEFINE(HAVE_OSS_INCLUDE_IN_SYS,, [Define if OSS includes are in /sys/]) + ] , [ +dnl Some old BSD versions : + AC_CHECK_HEADER(soundcard.h, [ + AC_DEFINE(HAVE_OSS_INCLUDE_IN_ROOT,, [Define if OSS includes are in /]) + ], [ + dnl Some old BSD versions : + AC_CHECK_HEADER(machine/soundcard.h, [ + AC_DEFINE(HAVE_OSS_INCLUDE_IN_MACHINE,, [Define if OSS includes are in /machine/]) + ], [ + HAVE_OSS="no" + ]) + ]) + ]) +]) dnl ########################### dnl # Configure external libs # @@ -537,6 +542,7 @@ gst/videofilter/Makefile gst-libs/Makefile gst-libs/gst/Makefile sys/Makefile +sys/oss/Makefile ext/Makefile ext/aalib/Makefile ext/dv/Makefile diff --git a/gst/avi/Makefile.am b/gst/avi/Makefile.am index 1a8b652..5c60039 100644 --- a/gst/avi/Makefile.am +++ b/gst/avi/Makefile.am @@ -10,8 +10,7 @@ noinst_HEADERS = \ gstavidemux.h libgstavi_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \ - -I$(top_srcdir)/gst-libs \ - -DGETTEXT_PACKAGE="\"gst-plugins\"" + -I$(top_srcdir)/gst-libs libgstavi_la_LIBADD = -lgstriff-0.9 libgstavi_la_LDFLAGS = \ $(GST_PLUGIN_LDFLAGS) \ -- 2.7.4