summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-10-28 13:25:31 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-10-28 13:25:31 +0000
commit7e4480dd9719f3efcd1adaf3fbf9439d485e50e4 (patch)
tree577486aac998c8325361b4903eafd0497fd6ef0f
parent6231ee28a180e3a396b6f1d278f2b2e8a590f1f7 (diff)
downloadxine-lib-7e4480dd9719f3efcd1adaf3fbf9439d485e50e4.tar.gz
xine-lib-7e4480dd9719f3efcd1adaf3fbf9439d485e50e4.tar.bz2
- Use AC_PROG_EGREP to search for a working 'egrep', and use $EGREP in the
configure script - xine-lib was installing static versions of the plugin modules in the default configuration, which seems like a waste of time and space. default to '--disable-static' - Use the new AC_PROG_LIBTOOL_SANITYCHECK macro from _xine.m4, to work around libtool problems on solaris with GCC + system linker - build xine-plugins with a minimal dynamic linker symbol table, using a libtool symbol filter. An xine plugin only needs to export 'xine_plugin_info', and nothing else - xine-lib needs ngettext, for "plural forms" support. Check that with AM_GNU_GETTEXT's need-ngettext parameter - verify that the system's msgfmt command is able to compile message files with "plural forms". Reject the one from GNU gettext 0.10.35. CVS patchset: 3071 CVS date: 2002/10/28 13:25:31
-rw-r--r--configure.ac34
1 files changed, 25 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index ac5729e2d..fa79b6f94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,7 @@ CFLAGS="$saved_CFLAGS"
AC_PROG_CC
AC_HEADER_STDC
AC_PROG_MAKE_SET
+AC_PROG_EGREP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_AWK
@@ -109,8 +110,9 @@ dnl ---------------------------------------------
dnl Libtool
dnl ---------------------------------------------
AC_LIBTOOL_DLOPEN
-dnl AM_DISABLE_STATIC
-AM_PROG_LIBTOOL
+AC_DISABLE_STATIC
+AC_PROG_LIBTOOL
+AC_PROG_LIBTOOL_SANITYCHECK
AC_SUBST(LIBTOOL_DEPS)
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
STATIC="-static"
@@ -126,13 +128,14 @@ dnl ---------------------------------------------
dnl ALL_LINGUAS="cs da de el en@quot en@boldquot es et fr gl id it ja ko nl nn no pl pt pt_BR ru sl sv tr zh"
ALL_LINGUAS="fr pt_BR de sk es pl_PL cs"
-AM_GNU_GETTEXT(use-libtool)
+AM_GNU_GETTEXT(use-libtool, need-ngettext)
+AC_PROG_GMSGFMT_PLURAL
AC_CONFIG_LINKS($nls_cv_header_libgt, $nls_cv_header_intl)
AM_CONDITIONAL(INCLUDED_INTL, test x$USE_INCLUDED_LIBINTL = "xyes")
if test x"$USE_INCLUDED_LIBINTL" = x"yes"; then
INTLDIR="-I\$(top_builddir)/intl -I\$(top_srcdir)/intl"
- fi
-AC_SUBST(INTLDIR)
+fi
+dnl AC_SUBST(INTLDIR)
@@ -200,7 +203,7 @@ LIBMPEG2_CFLAGS="" dnl default include path removed, no more needed.
LIBA52_CFLAGS=""
LIBFFMPEG_CFLAGS="-DSIMPLE_IDCT -DHAVE_AV_CONFIG_H"
-AC_ARG_ENABLE(altivec, i
+AC_ARG_ENABLE(altivec,
[ --disable-altivec use assembly codes for Motorola 74xx CPUs],
enable_altivec=no,
enable_altivec=yes)
@@ -352,7 +355,7 @@ AM_CONDITIONAL(HAVE_GICONV, test x$no_BSDiconv != "xyes")
AM_CONDITIONAL(PPC_ARCH, test x$ppc_arch = "xyes")
-AC_ARG_WITH(xv-path,[ --with-xv-path=path Where $xv_lib is installed],
+AC_ARG_WITH(xv-path,[ --with-xv-path=path Where $xv_lib is installed],
xv_path="$withval", xv_path="/usr/X11R6/lib")
AC_CHECK_LIB(Xv, XvShmCreateImage,
@@ -667,6 +670,18 @@ AC_ARG_ENABLE(fpic,
dnl ---------------------------------------------
+dnl Build xine plugins with only the "xine_plugin_info" symbol exported
+dnl (let the user disable this feature, in case libtool does not offer it
+dnl feature on the target platform)
+dnl ---------------------------------------------
+AC_ARG_ENABLE(min-symtab,
+ [ --disable-min-symtab Export all global symbols from xine plugins ],
+ XINE_PLUGIN_MIN_SYMS="",
+ XINE_PLUGIN_MIN_SYMS="-export-symbols-regex xine_plugin_info")
+
+AC_SUBST(XINE_PLUGIN_MIN_SYMS)
+
+dnl ---------------------------------------------
dnl Some extra checks.
dnl ---------------------------------------------
AC_CHECK_LIB(posix4, sched_get_priority_min)
@@ -954,6 +969,7 @@ dnl ---------------------------------------------
AC_C_ATTRIBUTE_ALIGNED
+
dnl ---------------------------------------------
dnl XINE_ROOTDIR does not work if architecture independent files are
dnl installed to another place than architecture dependent files !!!
@@ -1317,7 +1333,7 @@ final_bindir="`eval eval eval eval echo $bindir`"
if test -r /etc/ld.so.conf && ! grep -x "$final_libdir" /etc/ld.so.conf >/dev/null ; then
if test "$final_libdir" != "/lib" -a "$final_libdir" != "/usr/lib" ; then
- if ! echo $LD_LIBRARY_PATH | egrep "(:|^)$final_libdir(/?:|/?$)" >/dev/null ; then
+ if ! echo $LD_LIBRARY_PATH | $EGREP "(:|^)$final_libdir(/?:|/?$)" >/dev/null ; then
echo
echo "****************************************************************"
echo "xine-lib will be installed to $final_libdir"
@@ -1338,7 +1354,7 @@ if test -r /etc/ld.so.conf && ! grep -x "$final_libdir" /etc/ld.so.conf >/dev/nu
fi
fi
-if ! echo $PATH | egrep "(:|^)$final_bindir(/?:|/?$)" >/dev/null ; then
+if ! echo $PATH | $EGREP "(:|^)$final_bindir(/?:|/?$)" >/dev/null ; then
echo
echo "****************************************************************"
echo "xine-config will be installed to $final_bindir"