14 |
set -o posix |
set -o posix |
15 |
fi |
fi |
16 |
|
|
|
# NLS nuisances. |
|
17 |
# Support unset when possible. |
# Support unset when possible. |
18 |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
19 |
as_unset=unset |
as_unset=unset |
21 |
as_unset=false |
as_unset=false |
22 |
fi |
fi |
23 |
|
|
|
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
|
|
{ $as_unset LANG || test "${LANG+set}" != set; } || |
|
|
{ LANG=C; export LANG; } |
|
|
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
|
|
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
|
|
{ LC_ALL=C; export LC_ALL; } |
|
|
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
|
|
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
|
|
{ LC_TIME=C; export LC_TIME; } |
|
|
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
|
|
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
|
|
{ LC_CTYPE=C; export LC_CTYPE; } |
|
|
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
|
|
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
|
|
{ LANGUAGE=C; export LANGUAGE; } |
|
|
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
|
|
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
|
|
{ LC_COLLATE=C; export LC_COLLATE; } |
|
|
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
|
|
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
|
|
{ LC_NUMERIC=C; export LC_NUMERIC; } |
|
|
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
|
|
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
|
|
{ LC_MESSAGES=C; export LC_MESSAGES; } |
|
24 |
|
|
25 |
|
# Work around bugs in pre-3.0 UWIN ksh. |
26 |
|
$as_unset ENV MAIL MAILPATH |
27 |
|
PS1='$ ' |
28 |
|
PS2='> ' |
29 |
|
PS4='+ ' |
30 |
|
|
31 |
|
# NLS nuisances. |
32 |
|
for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
33 |
|
do |
34 |
|
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
35 |
|
eval $as_var=C; export $as_var |
36 |
|
else |
37 |
|
$as_unset $as_var |
38 |
|
fi |
39 |
|
done |
40 |
|
|
41 |
# Required to use basename. |
# Required to use basename. |
42 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
if expr a : '\(a\)' >/dev/null 2>&1; then |
150 |
exit 1" |
exit 1" |
151 |
|
|
152 |
# Variables. |
# Variables. |
153 |
: ${AUTOM4TE=@autom4te-name@} |
: ${AUTOM4TE='@bindir@/@autom4te-name@'} |
154 |
dir=`(dirname $0) 2>/dev/null || |
dir=`(dirname $0) 2>/dev/null || |
155 |
$as_expr X$0 : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
$as_expr X$0 : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
156 |
X$0 : 'X\(//\)[^/]' \| \ |
X$0 : 'X\(//\)[^/]' \| \ |
248 |
# Find the input file. |
# Find the input file. |
249 |
case $# in |
case $# in |
250 |
0) |
0) |
251 |
case `ls configure.ac configure.in 2>/dev/null` in |
if test -f configure.ac; then |
252 |
*ac*in ) |
if test -f configure.in; then |
253 |
echo "$me: warning: both \`configure.ac' and \`configure.in' are present." >&2 |
echo "$me: warning: both \`configure.ac' and \`configure.in' are present." >&2 |
254 |
echo "$me: warning: proceeding with \`configure.ac'." >&2 |
echo "$me: warning: proceeding with \`configure.ac'." >&2 |
255 |
infile=configure.ac;; |
fi |
256 |
*ac ) infile=configure.ac;; |
infile=configure.ac |
257 |
*in ) infile=configure.in;; |
elif test -f configure.in; then |
258 |
* ) |
infile=configure.in |
259 |
echo "$me: no input file" >&2 |
else |
260 |
exit 1;; |
echo "$me: no input file" >&2 |
261 |
esac |
exit 1 |
262 |
|
fi |
263 |
test -z "$traces" && test -z "$outfile" && outfile=configure;; |
test -z "$traces" && test -z "$outfile" && outfile=configure;; |
264 |
1) # autom4te doesn't like `-'. |
1) # autom4te doesn't like `-'. |
265 |
test "x$1" != "x-" && infile=$1 ;; |
test "x$1" != "x-" && infile=$1 ;; |