From 2759b5262b7b5086fbe4a7c17c0fc227503833c6 Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 22 Aug 2001 08:51:19 +0000 Subject: [PATCH] libdvdread desc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1619 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 22 ++++++++++++++++++++-- help_mp.h => help_mp-en.h | 0 2 files changed, 20 insertions(+), 2 deletions(-) rename help_mp.h => help_mp-en.h (100%) diff --git a/configure b/configure index 3933191564..84cb708fb2 100755 --- a/configure +++ b/configure @@ -6,6 +6,9 @@ # # Changes in reversed order: # +# 2001/08/22 by Nick Kurshev +# - added autodetection of local language +# # 2001/07/31 by Steve Davies # - added --enable-largefiles # @@ -326,7 +329,7 @@ EOF # config files CCONF='config.h' MCONF='config.mak' - +CHELP='help_mp.h' # --- Check for C compiler: if [ "$_x11libdir" = "" ]; then @@ -725,7 +728,17 @@ esac # --- - +# Checking for localization ... +if test -z "$LINGUAS"; then +LINGUAS="en" +fi +echo Checking for language ... "$LINGUAS" +_mp_help="help_mp-"$LINGUAS".h" +if test ! -e "$_mp_help"; then +LINGUAS="en" +_mp_help="help_mp-"$LINGUAS".h" +fi +echo Using ... "$_mp_help" file $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lvgagl -lvga > /dev/null 2>&1 && _svga=yes @@ -2145,6 +2158,11 @@ instead of make. EOF +echo Creating $CHELP +cat > $CHELP << EOF +#include "$_mp_help" +EOF + if [ $_mtrr = yes ]; then echo "Please check mtrr settings at /proc/mtrr (see DOCS/MTRR)" echo diff --git a/help_mp.h b/help_mp-en.h similarity index 100% rename from help_mp.h rename to help_mp-en.h