diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-01-09 00:08:52 +0100 |
---|---|---|
committer | Christoph Brill <egore911@egore911.de> | 2009-01-09 00:08:52 +0100 |
commit | 275f788d0cffaefa68930bd90270a5889c871f87 (patch) | |
tree | 18f5660eaf7a5b25ff603823eb611d308fdb7ab0 | |
parent | b1bc7a5d48fe9d2436f392ff28033ad70bce0f39 (diff) |
[PATCH] 07_all_jpeg-LANG.patch
The LANG vars aren't reset early enough so when sed tries to use
[a-zA-Z] in
option parsing, it may break.
http://bugs.gentoo.org/103483
-rwxr-xr-x | configure | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -54,6 +54,19 @@ oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + unset $as_var + fi +done + # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= @@ -452,16 +465,6 @@ do esac done -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. |