new gcc snapshot
[dottout.git] / net-im / emesene / files / sys-devel / gcc / files / gcc-configure-LANG.patch
blobd1b1b03536627a1bb843113ace2904d3ccebbf38
1 The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in
2 option parsing, it may break.
4 http://bugs.gentoo.org/103483
6 --- configure
7 +++ configure
8 @@ -54,6 +54,19 @@
9 infodir='${prefix}/info'
10 mandir='${prefix}/man'
12 +# NLS nuisances.
13 +for as_var in \
14 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16 + LC_TELEPHONE LC_TIME
17 +do
18 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19 + eval $as_var=C; export $as_var
20 + else
21 + unset $as_var
22 + fi
23 +done
25 # Initialize some other variables.
26 subdirs=
27 MFLAGS= MAKEFLAGS=
28 @@ -452,16 +463,6 @@
29 esac
30 done
32 -# NLS nuisances.
33 -# Only set these to C if already set. These must not be set unconditionally
34 -# because not all systems understand e.g. LANG=C (notably SCO).
35 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
36 -# Non-C LC_CTYPE values break the ctype check.
37 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
38 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
39 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
40 -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
42 # confdefs.h avoids OS command line length limits that DEFS can exceed.
43 rm -rf conftest* confdefs.h
44 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
45 @@ -1850,6 +1850,19 @@
46 # Compiler output produced by configure, useful for debugging
47 # configure, is in ./config.log if it exists.
49 +# NLS nuisances.
50 +for as_var in \
51 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53 + LC_TELEPHONE LC_TIME
54 +do
55 + if (set +x; test -z "`(eval \$as_var=C; export \$as_var) 2>&1`"); then
56 + eval \$as_var=C; export \$as_var
57 + else
58 + unset \$as_var
59 + fi
60 +done
62 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
63 for ac_option