source: trunk/essentials/sys-devel/autoconf/kNIX-bootstrap-os2.x86-autoconf.in@ 3158

Last change on this file since 3158 was 3111, checked in by bird, 18 years ago

unixroot transformation.

File size: 13.7 KB
Line 
1#! /bin/sh
2## --------------------- ##
3## M4sh Initialization. ##
4## --------------------- ##
5
6# Be more Bourne compatible
7DUALCASE=1; export DUALCASE # for MKS sh
8if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9 emulate sh
10 NULLCMD=:
11 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12 # is contrary to our usage. Disable this feature.
13 alias -g '${1+"$@"}'='"$@"'
14 setopt NO_GLOB_SUBST
15else
16 case `(set -o) 2>/dev/null` in
17 *posix*) set -o posix ;;
18esac
19
20fi
21
22
23
24
25# PATH needs CR
26# Avoid depending upon Character Ranges.
27as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30as_cr_digits='0123456789'
31as_cr_alnum=$as_cr_Letters$as_cr_digits
32
33# The user is always right.
34if test "${PATH_SEPARATOR+set}" != set; then
35 echo "#! /bin/sh" >conf$$.sh
36 echo "exit 0" >>conf$$.sh
37 chmod +x conf$$.sh
38 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39 PATH_SEPARATOR=';'
40 else
41 PATH_SEPARATOR=:
42 fi
43 rm -f conf$$.sh
44fi
45
46# Support unset when possible.
47if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
48 as_unset=unset
49else
50 as_unset=false
51fi
52
53
54# IFS
55# We need space, tab and new line, in precisely that order. Quoting is
56# there to prevent editors from complaining about space-tab.
57# (If _AS_PATH_WALK were called with IFS unset, it would disable word
58# splitting by setting IFS to empty value.)
59as_nl='
60'
61IFS=" "" $as_nl"
62
63# Find who we are. Look in the path if we contain no directory separator.
64case $0 in
65 *[\\/]* ) as_myself=$0 ;;
66 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
67for as_dir in $PATH
68do
69 IFS=$as_save_IFS
70 test -z "$as_dir" && as_dir=.
71 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
72done
73IFS=$as_save_IFS
74
75 ;;
76esac
77# We did not find ourselves, most probably we were run as `sh COMMAND'
78# in which case we are not to be found in the path.
79if test "x$as_myself" = x; then
80 as_myself=$0
81fi
82if test ! -f "$as_myself"; then
83 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
84 { (exit 1); exit 1; }
85fi
86
87# Work around bugs in pre-3.0 UWIN ksh.
88for as_var in ENV MAIL MAILPATH
89do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
90done
91PS1='$ '
92PS2='> '
93PS4='+ '
94
95# NLS nuisances.
96for as_var in \
97 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
98 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
99 LC_TELEPHONE LC_TIME
100do
101 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
102 eval $as_var=C; export $as_var
103 else
104 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 fi
106done
107
108# Required to use basename.
109if expr a : '\(a\)' >/dev/null 2>&1 &&
110 test "X`expr 00001 : '.*\(...\)'`" = X001; then
111 as_expr=expr
112else
113 as_expr=false
114fi
115
116if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
117 as_basename=basename
118else
119 as_basename=false
120fi
121
122
123# Name of the executable.
124as_me=`$as_basename -- "$0" ||
125$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
126 X"$0" : 'X\(//\)$' \| \
127 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
128echo X/"$0" |
129 sed '/^.*\/\([^/][^/]*\)\/*$/{
130 s//\1/
131 q
132 }
133 /^X\/\(\/\/\)$/{
134 s//\1/
135 q
136 }
137 /^X\/\(\/\).*/{
138 s//\1/
139 q
140 }
141 s/.*/./; q'`
142
143# CDPATH.
144$as_unset CDPATH
145
146
147if test "x$CONFIG_SHELL" = x; then
148 if (eval ":") 2>/dev/null; then
149 as_have_required=yes
150else
151 as_have_required=no
152fi
153
154 if test $as_have_required = yes && (eval ":
155(as_func_return () {
156 (exit \$1)
157}
158as_func_success () {
159 as_func_return 0
160}
161as_func_failure () {
162 as_func_return 1
163}
164as_func_ret_success () {
165 return 0
166}
167as_func_ret_failure () {
168 return 1
169}
170
171exitcode=0
172if as_func_success; then
173 :
174else
175 exitcode=1
176 echo as_func_success failed.
177fi
178
179if as_func_failure; then
180 exitcode=1
181 echo as_func_failure succeeded.
182fi
183
184if as_func_ret_success; then
185 :
186else
187 exitcode=1
188 echo as_func_ret_success failed.
189fi
190
191if as_func_ret_failure; then
192 exitcode=1
193 echo as_func_ret_failure succeeded.
194fi
195
196if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
197 :
198else
199 exitcode=1
200 echo positional parameters were not saved.
201fi
202
203test \$exitcode = 0) || { (exit 1); exit 1; }
204") 2> /dev/null; then
205 :
206else
207 as_candidate_shells=
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211 IFS=$as_save_IFS
212 test -z "$as_dir" && as_dir=.
213 case $as_dir in
214 /*)
215 for as_base in sh bash ksh sh5; do
216 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
217 done;;
218 esac
219done
220IFS=$as_save_IFS
221
222
223 for as_shell in $as_candidate_shells $SHELL; do
224 # Try only shells that exist, to save several forks.
225 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
226 { ("$as_shell") 2> /dev/null <<\_ASEOF
227if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
228 emulate sh
229 NULLCMD=:
230 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
231 # is contrary to our usage. Disable this feature.
232 alias -g '${1+"$@"}'='"$@"'
233 setopt NO_GLOB_SUBST
234else
235 case `(set -o) 2>/dev/null` in
236 *posix*) set -o posix ;;
237esac
238
239fi
240
241
242:
243_ASEOF
244}; then
245 CONFIG_SHELL=$as_shell
246 as_have_required=yes
247 if { "$as_shell" 2> /dev/null <<\_ASEOF
248if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
249 emulate sh
250 NULLCMD=:
251 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
252 # is contrary to our usage. Disable this feature.
253 alias -g '${1+"$@"}'='"$@"'
254 setopt NO_GLOB_SUBST
255else
256 case `(set -o) 2>/dev/null` in
257 *posix*) set -o posix ;;
258esac
259
260fi
261
262
263:
264(as_func_return () {
265 (exit $1)
266}
267as_func_success () {
268 as_func_return 0
269}
270as_func_failure () {
271 as_func_return 1
272}
273as_func_ret_success () {
274 return 0
275}
276as_func_ret_failure () {
277 return 1
278}
279
280exitcode=0
281if as_func_success; then
282 :
283else
284 exitcode=1
285 echo as_func_success failed.
286fi
287
288if as_func_failure; then
289 exitcode=1
290 echo as_func_failure succeeded.
291fi
292
293if as_func_ret_success; then
294 :
295else
296 exitcode=1
297 echo as_func_ret_success failed.
298fi
299
300if as_func_ret_failure; then
301 exitcode=1
302 echo as_func_ret_failure succeeded.
303fi
304
305if ( set x; as_func_ret_success y && test x = "$1" ); then
306 :
307else
308 exitcode=1
309 echo positional parameters were not saved.
310fi
311
312test $exitcode = 0) || { (exit 1); exit 1; }
313
314_ASEOF
315}; then
316 break
317fi
318
319fi
320
321 done
322
323 if test "x$CONFIG_SHELL" != x; then
324 for as_var in BASH_ENV ENV
325 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
326 done
327 export CONFIG_SHELL
328 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
329fi
330
331
332 if test $as_have_required = no; then
333 echo This script requires a shell more modern than all the
334 echo shells that I found on your system. Please install a
335 echo modern shell, or manually run the script under such a
336 echo shell if you do have one.
337 { (exit 1); exit 1; }
338fi
339
340
341fi
342
343fi
344
345
346
347(eval "as_func_return () {
348 (exit \$1)
349}
350as_func_success () {
351 as_func_return 0
352}
353as_func_failure () {
354 as_func_return 1
355}
356as_func_ret_success () {
357 return 0
358}
359as_func_ret_failure () {
360 return 1
361}
362
363exitcode=0
364if as_func_success; then
365 :
366else
367 exitcode=1
368 echo as_func_success failed.
369fi
370
371if as_func_failure; then
372 exitcode=1
373 echo as_func_failure succeeded.
374fi
375
376if as_func_ret_success; then
377 :
378else
379 exitcode=1
380 echo as_func_ret_success failed.
381fi
382
383if as_func_ret_failure; then
384 exitcode=1
385 echo as_func_ret_failure succeeded.
386fi
387
388if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
389 :
390else
391 exitcode=1
392 echo positional parameters were not saved.
393fi
394
395test \$exitcode = 0") || {
396 echo No shell found that supports shell functions.
397 echo Please tell autoconf@gnu.org about your system,
398 echo including any error possibly output before this
399 echo message
400}
401
402# autoconf -- create `configure' using m4 macros
403
404# Copyright (C) 1992, 1993, 1994, 1996, 1999, 2000, 2001, 2002, 2003,
405# 2004, 2005, 2006 Free Software Foundation, Inc.
406
407# This program is free software; you can redistribute it and/or modify
408# it under the terms of the GNU General Public License as published by
409# the Free Software Foundation; either version 2, or (at your option)
410# any later version.
411
412# This program is distributed in the hope that it will be useful,
413# but WITHOUT ANY WARRANTY; without even the implied warranty of
414# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
415# GNU General Public License for more details.
416
417# You should have received a copy of the GNU General Public License
418# along with this program; if not, write to the Free Software
419# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
420# 02110-1301, USA.
421
422usage="\
423Usage: $0 [OPTION] ... [TEMPLATE-FILE]
424
425Generate a configuration script from a TEMPLATE-FILE if given, or
426\`configure.ac' if present, or else \`configure.in'. Output is sent
427to the standard output if TEMPLATE-FILE is given, else into
428\`configure'.
429
430Operation modes:
431 -h, --help print this help, then exit
432 -V, --version print version number, then exit
433 -v, --verbose verbosely report processing
434 -d, --debug don't remove temporary files
435 -f, --force consider all files obsolete
436 -o, --output=FILE save output in FILE (stdout is the default)
437 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [syntax]
438
439Warning categories include:
440 \`cross' cross compilation issues
441 \`obsolete' obsolete constructs
442 \`syntax' dubious syntactic constructs
443 \`all' all the warnings
444 \`no-CATEGORY' turn off the warnings on CATEGORY
445 \`none' turn off all the warnings
446 \`error' warnings are error
447
448The environment variables \`M4' and \`WARNINGS' are honored.
449
450Library directories:
451 -B, --prepend-include=DIR prepend directory DIR to search path
452 -I, --include=DIR append directory DIR to search path
453
454Tracing:
455 -t, --trace=MACRO report the list of calls to MACRO
456 -i, --initialization also trace Autoconf's initialization process
457
458In tracing mode, no configuration script is created.
459
460Report bugs to <bug-autoconf@gnu.org>."
461
462version="\
463autoconf (@PACKAGE_NAME@) @VERSION@
464Copyright (C) 2006 Free Software Foundation, Inc.
465This is free software. You may redistribute copies of it under the terms of
466the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
467There is NO WARRANTY, to the extent permitted by law.
468
469Written by David J. MacKenzie and Akim Demaille."
470
471help="\
472Try \`$as_me --help' for more information."
473
474exit_missing_arg="\
475echo \"$as_me: option \\\`\$1' requires an argument\" >&2
476echo \"\$help\" >&2
477exit 1"
478
479# Variables.
480: ${AUTOM4TE=`echo '@bindir@/@autom4te-name@' | sed -e "s|\/@unixroot|$UNIXROOT|"`}
481autom4te_options=
482outfile=
483verbose=:
484
485# Parse command line.
486while test $# -gt 0 ; do
487 option=`expr "x$1" : 'x\(--[^=]*\)' \| \
488 "x$1" : 'x\(-.\)'`
489 optarg=`expr "x$1" : 'x--[^=]*=\(.*\)' \| \
490 "x$1" : 'x-.\(.*\)'`
491 case $1 in
492 --version | -V )
493 echo "$version" ; exit ;;
494 --help | -h )
495 echo "$usage"; exit ;;
496
497 --verbose | -v )
498 verbose=echo
499 autom4te_options="$autom4te_options $1"; shift ;;
500
501 # Arguments passed as is to autom4te.
502 --debug | -d | \
503 --force | -f | \
504 --include=* | -I?* | \
505 --prepend-include=* | -B?* | \
506 --warnings=* | -W?* )
507 autom4te_options="$autom4te_options '$1'"; shift ;;
508
509 # Options with separated arg passed as is to autom4te.
510 --include | -I | \
511 --prepend-include | -B | \
512 --warnings | -W )
513 test $# = 1 && eval "$exit_missing_arg"
514 autom4te_options="$autom4te_options $option '$2'"
515 shift; shift ;;
516
517 --trace=* | -t?* )
518 traces="$traces --trace='"`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'"
519 shift ;;
520 --trace | -t )
521 test $# = 1 && eval "$exit_missing_arg"
522 traces="$traces --trace='"`echo "$2" | sed "s/'/'\\\\\\\\''/g"`"'"
523 shift; shift ;;
524 --initialization | -i )
525 autom4te_options="$autom4te_options --melt"
526 shift;;
527
528 --output=* | -o?* )
529 outfile=$optarg
530 shift ;;
531 --output | -o )
532 test $# = 1 && eval "$exit_missing_arg"
533 outfile=$2
534 shift; shift ;;
535
536 -- ) # Stop option processing
537 shift; break ;;
538 - ) # Use stdin as input.
539 break ;;
540 -* )
541 exec >&2
542 echo "$as_me: invalid option $1"
543 echo "$help"
544 exit 1 ;;
545 * )
546 break ;;
547 esac
548done
549
550# Find the input file.
551case $# in
552 0)
553 if test -f configure.ac; then
554 if test -f configure.in; then
555 echo "$as_me: warning: both \`configure.ac' and \`configure.in' are present." >&2
556 echo "$as_me: warning: proceeding with \`configure.ac'." >&2
557 fi
558 infile=configure.ac
559 elif test -f configure.in; then
560 infile=configure.in
561 else
562 echo "$as_me: no input file" >&2
563 exit 1
564 fi
565 test -z "$traces" && test -z "$outfile" && outfile=configure;;
566 1) # autom4te doesn't like `-'.
567 test "x$1" != "x-" && infile=$1 ;;
568 *) exec >&2
569 echo "$as_me: invalid number of arguments."
570 echo "$help"
571 (exit 1); exit 1 ;;
572esac
573
574# Unless specified, the output is stdout.
575test -z "$outfile" && outfile=-
576
577# Run autom4te with expansion.
578eval set x $autom4te_options \
579 --language=autoconf --output=\$outfile "$traces" \$infile
580shift
581$verbose "$as_me: running $AUTOM4TE $*" >&2
582exec "$AUTOM4TE" "$@"
Note: See TracBrowser for help on using the repository browser.