From: Akim Demaille Date: Tue, 1 Aug 2000 13:59:51 +0000 (+0000) Subject: * autoheader.sh (_ac_warnings): Be robust to LC_COLLATE. X-Git-Tag: autoconf-2.50~675 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89ffc0a2f22d24239cd0f2e1e148f746910f3e52;p=thirdparty%2Fautoconf.git * autoheader.sh (_ac_warnings): Be robust to LC_COLLATE. `IFS=,; echo ,' will give a comma. Take this into account. --- diff --git a/ChangeLog b/ChangeLog index 578c34a02..27fb42b27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-08-01 Akim Demaille + + * autoheader.sh (_ac_warnings): Be robust to LC_COLLATE. + `IFS=,; echo ,' will give a comma. Take this into account. + 2000-08-01 Akim Demaille * aclang.m4 (AC_PROG_CC): Also try to find $target_alias-cc. diff --git a/autoheader.in b/autoheader.in index 8e15597dd..1773dc71e 100644 --- a/autoheader.in +++ b/autoheader.in @@ -163,11 +163,13 @@ done # The warnings are the concatenation of 1. application's defaults # (here, none), 2. $WARNINGS, $3 command line options, in that order. +alphabet='abcdefghijklmnopqrstuvwxyz' +ALPHABET='ABCDEFGHIJKLMNOPQRSTUVWXYZ' _ac_warnings= -for warning in `IFS=,; echo $WARNINGS,$warnings | tr 'A-Z' 'a-z'` +for warning in `IFS=,; echo $WARNINGS,$warnings | tr $ALPHABET $alphabet` do case $warning in - '') continue;; + '' | ,) continue;; no-*) eval warning_`expr x$warning : 'xno-\(.*\)'`=false;; *) eval warning_$warning=:;; esac diff --git a/autoheader.sh b/autoheader.sh index 8e15597dd..1773dc71e 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -163,11 +163,13 @@ done # The warnings are the concatenation of 1. application's defaults # (here, none), 2. $WARNINGS, $3 command line options, in that order. +alphabet='abcdefghijklmnopqrstuvwxyz' +ALPHABET='ABCDEFGHIJKLMNOPQRSTUVWXYZ' _ac_warnings= -for warning in `IFS=,; echo $WARNINGS,$warnings | tr 'A-Z' 'a-z'` +for warning in `IFS=,; echo $WARNINGS,$warnings | tr $ALPHABET $alphabet` do case $warning in - '') continue;; + '' | ,) continue;; no-*) eval warning_`expr x$warning : 'xno-\(.*\)'`=false;; *) eval warning_$warning=:;; esac diff --git a/bin/autoheader.in b/bin/autoheader.in index 8e15597dd..1773dc71e 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -163,11 +163,13 @@ done # The warnings are the concatenation of 1. application's defaults # (here, none), 2. $WARNINGS, $3 command line options, in that order. +alphabet='abcdefghijklmnopqrstuvwxyz' +ALPHABET='ABCDEFGHIJKLMNOPQRSTUVWXYZ' _ac_warnings= -for warning in `IFS=,; echo $WARNINGS,$warnings | tr 'A-Z' 'a-z'` +for warning in `IFS=,; echo $WARNINGS,$warnings | tr $ALPHABET $alphabet` do case $warning in - '') continue;; + '' | ,) continue;; no-*) eval warning_`expr x$warning : 'xno-\(.*\)'`=false;; *) eval warning_$warning=:;; esac diff --git a/man/autoheader.1 b/man/autoheader.1 index bd27de4a7..cd6a7fcb7 100644 --- a/man/autoheader.1 +++ b/man/autoheader.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022. -.TH AUTOHEADER "1" "July 2000" "GNU autoconf 2.14a" FSF +.TH AUTOHEADER "1" "August 2000" "GNU autoconf 2.14a" FSF .SH NAME autoheader \- Create a template header for configure .SH SYNOPSIS