[MPlayer-cvslog] r38302 - trunk/configure
ib
subversion at mplayerhq.hu
Fri Mar 5 14:28:07 EET 2021
Author: ib
Date: Fri Mar 5 14:28:06 2021
New Revision: 38302
Log:
Be more precise with the requirements for Native Language Support.
Postpone the check for the requirements after the message languages
have been determined.
If NLS is enabled but only one language is selected, Perl and msgfmt
are not required.
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Thu Mar 4 16:48:28 2021 (r38301)
+++ trunk/configure Fri Mar 5 14:28:06 2021 (r38302)
@@ -3499,24 +3499,6 @@ fi
echores "$_nls"
-if test "$_nls" = yes; then
- echocheck "Perl"
- if test -z "$(which perl)"; then
- echores "no"
- echo "configure error: Perl not found; required for NLS"
- exit 1
- fi
- echores "$_nls"
- echocheck "msgfmt"
- if test -z "$(which msgfmt)"; then
- echores "no"
- echo "configure error: msgfmt not found; required for NLS"
- exit 1
- fi
- echores "$_nls"
-fi
-
-
echocheck "language"
# Set preferred languages, "all" uses English as main language.
test -z "$language" && language=$LINGUAS
@@ -3577,6 +3559,24 @@ language_msg=$(echo $language_msg | tr -
echores "messages: $language_msg - man pages: $language_man - documentation: $language_doc"
+if test "$_nls" = yes && $(echo "$language_msg" | grep -q " "); then
+ echocheck "Perl"
+ if test -z "$(which perl)"; then
+ echores "no"
+ echo "configure error: Perl not found; required for NLS"
+ exit 1
+ fi
+ echores "$_nls"
+ echocheck "msgfmt"
+ if test -z "$(which msgfmt)"; then
+ echores "no"
+ echo "configure error: msgfmt not found; required for NLS"
+ exit 1
+ fi
+ echores "$_nls"
+fi
+
+
echocheck "enable sighandler"
if test "$_sighandler" = yes ; then
def_sighandler='#define CONFIG_SIGHANDLER 1'
More information about the MPlayer-cvslog
mailing list