comparison configure @ 26786:4c939dffe575

Split MAN_LANG Makefile variable into MAN_LANG and MAN_LANG_ALL with MAN_LANG only containing the translated languages.
author diego
date Sun, 18 May 2008 16:40:20 +0000
parents a3eb683ccb2e
children 722a17fd9f75
comparison
equal deleted inserted replaced
26785:a3eb683ccb2e 26786:4c939dffe575
2591 test -z "$_language" && _language=en 2591 test -z "$_language" && _language=en
2592 _mp_help="help/help_mp-${_language}.h" 2592 _mp_help="help/help_mp-${_language}.h"
2593 test -f $_mp_help || die "$_mp_help not found" 2593 test -f $_mp_help || die "$_mp_help not found"
2594 for lang in $LANGUAGES ; do 2594 for lang in $LANGUAGES ; do
2595 if test -f "DOCS/man/$lang/mplayer.1" ; then 2595 if test -f "DOCS/man/$lang/mplayer.1" ; then
2596 MAN_LANG="$lang $MAN_LANG" 2596 MAN_LANG_ALL="$lang $MAN_LANG_ALL"
2597 fi 2597 fi
2598 done 2598 done
2599 MAN_LANG="$(echo $MAN_LANG_ALL | sed s/en //)"
2599 _doc_lang=$_language 2600 _doc_lang=$_language
2600 test -d DOCS/xml/$_doc_lang || _doc_lang=en 2601 test -d DOCS/xml/$_doc_lang || _doc_lang=en
2601 echores "using $_language (man pages: $MAN_LANG)" 2602 echores "using $_language (man pages: $MAN_LANG_ALL)"
2602 2603
2603 2604
2604 echocheck "enable sighandler" 2605 echocheck "enable sighandler"
2605 if test "$_sighandler" = yes ; then 2606 if test "$_sighandler" = yes ; then
2606 _def_sighandler='#define ENABLE_SIGHANDLER 1' 2607 _def_sighandler='#define ENABLE_SIGHANDLER 1'
7565 cat > config.mak << EOF 7566 cat > config.mak << EOF
7566 # -------- Generated by configure ----------- 7567 # -------- Generated by configure -----------
7567 7568
7568 LANG = C 7569 LANG = C
7569 MAN_LANG = $MAN_LANG 7570 MAN_LANG = $MAN_LANG
7571 MAN_LANG_ALL = $MAN_LANG_ALL
7570 TARGET_OS = $system_name 7572 TARGET_OS = $system_name
7571 DESTDIR = 7573 DESTDIR =
7572 prefix = \$(DESTDIR)$_prefix 7574 prefix = \$(DESTDIR)$_prefix
7573 BINDIR = \$(DESTDIR)$_bindir 7575 BINDIR = \$(DESTDIR)$_bindir
7574 DATADIR = \$(DESTDIR)$_datadir 7576 DATADIR = \$(DESTDIR)$_datadir
8568 8570
8569 Languages: 8571 Languages:
8570 Messages/GUI: $_language 8572 Messages/GUI: $_language
8571 EOF 8573 EOF
8572 8574
8573 echo ${_echo_n} " Manual pages: $MAN_LANG ${_echo_c}" 8575 echo ${_echo_n} " Manual pages: $MAN_LANG_ALL ${_echo_c}"
8574 test "$LANGUAGES" = en && echo ${_echo_n} " (no localization selected, use --language=all)${_echo_c}" 8576 test "$LANGUAGES" = en && echo ${_echo_n} " (no localization selected, use --language=all)${_echo_c}"
8575 echo 8577 echo
8576 8578
8577 cat << EOF 8579 cat << EOF
8578 8580