Mercurial > mplayer.hg
changeset 5100:c1eeb9416fd1
added i18n support (also disabled, later auto detection will be enabled)
author | alex |
---|---|
date | Fri, 15 Mar 2002 20:48:42 +0000 |
parents | 922258ac9cf2 |
children | 870ba1ffdbf9 |
files | configure |
diffstat | 1 files changed, 104 insertions(+), 75 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Fri Mar 15 20:36:20 2002 +0000 +++ b/configure Fri Mar 15 20:48:42 2002 +0000 @@ -140,6 +140,7 @@ --disable-vidix disable VIDIX stuff [enable] --disable-new-input disable new input system [enable] --enable-joystick enable joystick support in new input [disable] + --enable-i18n GNU internationalisation [disable] Video: --enable-gl build with OpenGL render support [autodetect] --enable-dga[=n] build with DGA [n in {1, 2} ] support [autodetect] @@ -792,6 +793,7 @@ _language=en _shm=auto _linux_devfs=no +_i18n=no for ac_option do case "$ac_option" in @@ -810,6 +812,8 @@ # Real 2nd pass --enable-mencoder) _mencoder=yes ;; --disable-mencoder) _mencoder=no ;; + --enable-i18n) _i18n=yes ;; + --disable-i18n) _i18n=no ;; --enable-x11) _x11=yes ;; --disable-x11) _x11=no ;; --enable-xv) _xv=yes ;; @@ -1153,6 +1157,38 @@ fi +# Checking for localization ... +# CSAK EGY MARADHAT - A HEGYLAKO +echocheck "i18n" +if test "$_i18n" = auto ; then + cat > $TMPC <<EOF +#include <libintl.h> +int main(void) { gettext("test"); return 0; } +EOF + _i18n=no + cc_check && _i18n=yes +fi +if test "$_i18n" = yes ; then + _def_i18n='#define USE_I18N 1' + LINGUAS='en' # force help_mp-en.h +else + _def_i18n='#undef USE_I18N' +fi +echores "$_i18n" + + +echocheck "language" +test -z "$LINGUAS" && LINGUAS="en" +if test -f "help_mp-${LINGUAS}.h" ; then + echores "using ${LINGUAS}" +else + echores "${LINGUAS} not found, using en" + LINGUAS="en" +fi +_mp_help="help_mp-${LINGUAS}.h" +test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found" + + echocheck "kstat" cat > $TMPC << EOF #include <kstat.h> @@ -1237,6 +1273,7 @@ _streaming=no fi + echocheck "inttypes.h (required)" cat > $TMPC << EOF #include <inttypes.h> @@ -1248,7 +1285,7 @@ # nothing to do : else - die "cannot find header inttypes.h (see in DOC/faq.html)" + die "cannot find header inttypes.h (see in DOCS/faq.html)" fi echores "$_inttypes" @@ -1470,10 +1507,72 @@ fi echores "$_shm" + # XXX: FIXME, add runtime checking echocheck "linux devfs" echores "$_linux_devfs" + +echocheck "vsscanf()" +cat > $TMPC << EOF +#include <stdarg.h> +int main(void) { vsscanf(); return 0; } +EOF +_vsscanf=no +cc_check && _vsscanf=yes +if test "$_vsscanf" = yes ; then + _def_vsscanf='#define HAVE_VSSCANF 1' +else + _def_vsscanf='#undef HAVE_VSSCANF' +fi +echores "$_vsscanf" + + +echocheck "X11 headers" +if test -z "$_inc_x11" ; then + for I in /usr/include /usr/X11R6/include /usr/X11/include /usr/openwin/include ; do + if test -d "$I/X11" ; then + _inc_x11="-I$I" + echores "yes (using $I)" + break + fi + done + if test -z "$_inc_x11" ; then + _x11=no + echores "not found" + fi +else + echores "yes (using $_inc_x11)" +fi +if test "$_inc_x11" = "-I/usr/include" ; then + _inc_x11="" +fi + + +echocheck "X11 libs" +if test -z "$_ld_x11" ; then + for I in /usr/X11R6/lib /usr/X11/lib /usr/lib32 /usr/openwin/lib ; do + if test -d "$I" ; then + _ld_x11="-L$I" + echores "yes (using $I)" + break; + fi + done + if test -z "$_ld_x11" ; then + _x11=no + echores "not found" + fi +else + echores "yes (using $_ld_x11)" +fi +_ld_x11="$_ld_x11 -lX11 -lXext $_ld_sock" + + +######### +# VIDEO # +######### + + echocheck "3dfx" if test "$_3dfx" = yes ; then _def_3dfx='#define HAVE_3DFX 1' @@ -1533,79 +1632,6 @@ fi echores "$_directfb099" fi - -# Checking for localization ... -echocheck "language" -test -z "$LINGUAS" && LINGUAS="en" -if test -f "help_mp-${LINGUAS}.h" ; then - echores "using ${LINGUAS}" -else - echores "${LINGUAS} not found, using en" - LINGUAS="en" -fi -_mp_help="help_mp-${LINGUAS}.h" -test -f help_mp-${LINGUAS}.h || die "help_mp-${LINGUAS}.h not found" - - -echocheck "vsscanf()" -cat > $TMPC << EOF -#include <stdarg.h> -int main(void) { vsscanf(); return 0; } -EOF -_vsscanf=no -cc_check && _vsscanf=yes -if test "$_vsscanf" = yes ; then - _def_vsscanf='#define HAVE_VSSCANF 1' -else - _def_vsscanf='#undef HAVE_VSSCANF' -fi -echores "$_vsscanf" - - -echocheck "X11 headers" -if test -z "$_inc_x11" ; then - for I in /usr/include /usr/X11R6/include /usr/X11/include /usr/openwin/include ; do - if test -d "$I/X11" ; then - _inc_x11="-I$I" - echores "yes (using $I)" - break - fi - done - if test -z "$_inc_x11" ; then - _x11=no - echores "not found" - fi -else - echores "yes (using $_inc_x11)" -fi -if test "$_inc_x11" = "-I/usr/include" ; then - _inc_x11="" -fi - - -echocheck "X11 libs" -if test -z "$_ld_x11" ; then - for I in /usr/X11R6/lib /usr/X11/lib /usr/lib32 /usr/openwin/lib ; do - if test -d "$I" ; then - _ld_x11="-L$I" - echores "yes (using $I)" - break; - fi - done - if test -z "$_ld_x11" ; then - _x11=no - echores "not found" - fi -else - echores "yes (using $_ld_x11)" -fi -_ld_x11="$_ld_x11 -lX11 -lXext $_ld_sock" - - -######### -# VIDEO # -######### - echocheck "X11" if test "$_x11" = auto || test "$_x11" = yes ; then cat > $TMPC <<EOF @@ -2868,6 +2894,7 @@ _inputmodules="tv-bsdbt848 $_inputmodules" else _def_tv_bsdbt848='#undef HAVE_TV_BSDBT848' + _noinputmodules="tv-bsdbt848 $_noinputmodules" fi echores "$_tv_bsdbt848" @@ -2995,7 +3022,6 @@ _def_gui='#define HAVE_NEW_GUI 1' _ld_gui='$(GTKLIB) $(GLIBLIB)' - echo echo "Creating Gui/config.mak" cat > Gui/config.mak << EOF # -------- Generated by configure ----------- @@ -3242,6 +3268,9 @@ /* -------- This file has been automatically generated by configure --------- Note: Any changes in it will be lost when you run configure again. */ +/* use GNU internationalisation */ +$_def_i18n + #define USR_PREFIX "$_prefix" /* define this to use simple idct with patched libavcodec */