]> gcc.gnu.org Git - gcc.git/blame - libgcc/configure
re PR libstdc++/38196 (num_put<>::do_put(bool) performs 'internal' padding incorrectl...
[gcc.git] / libgcc / configure
CommitLineData
fa958513
DJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d6efbf5a 3# Generated by GNU Autoconf 2.59 for GNU C Runtime Library 1.0.
fa958513 4#
d6efbf5a 5# Copyright (C) 2003 Free Software Foundation, Inc.
fa958513
DJ
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
d6efbf5a 12# Be Bourne compatible
fa958513
DJ
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
d6efbf5a
DJ
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
fa958513 21fi
d6efbf5a 22DUALCASE=1; export DUALCASE # for MKS sh
fa958513
DJ
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
d6efbf5a 33$as_unset ENV MAIL MAILPATH
fa958513
DJ
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
d6efbf5a 47 $as_unset $as_var
fa958513
DJ
48 fi
49done
50
51# Required to use basename.
d6efbf5a 52if expr a : '\(a\)' >/dev/null 2>&1; then
fa958513
DJ
53 as_expr=expr
54else
55 as_expr=false
56fi
57
d6efbf5a 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
fa958513
DJ
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
d6efbf5a 66as_me=`$as_basename "$0" ||
fa958513
DJ
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
d6efbf5a
DJ
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
fa958513 71echo X/"$0" |
d6efbf5a
DJ
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
fa958513 76
fa958513 77
d6efbf5a
DJ
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
14e8fc8b 85
d6efbf5a
DJ
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
14e8fc8b
PB
97fi
98
14e8fc8b 99
d6efbf5a
DJ
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
14e8fc8b 116
d6efbf5a
DJ
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
fa958513
DJ
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
d6efbf5a
DJ
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
fa958513 137 /*)
d6efbf5a 138 if ("$as_dir/$as_base" -c '
14e8fc8b
PB
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
d6efbf5a 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14e8fc8b 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
d6efbf5a
DJ
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
fa958513
DJ
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
d6efbf5a
DJ
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
fa958513 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
d6efbf5a
DJ
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
fa958513
DJ
165 sed '
166 N
d6efbf5a
DJ
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
fa958513 170 t loop
d6efbf5a
DJ
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
fa958513 173 ' >$as_me.lineno &&
d6efbf5a 174 chmod +x $as_me.lineno ||
fa958513
DJ
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
d6efbf5a
DJ
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
fa958513
DJ
182 # Exit status is that of the last command.
183 exit
184}
185
186
d6efbf5a
DJ
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
fa958513
DJ
192esac
193
d6efbf5a 194if expr a : '\(a\)' >/dev/null 2>&1; then
fa958513
DJ
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
d6efbf5a
DJ
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
fa958513 207 as_ln_s='cp -p'
d6efbf5a
DJ
208 else
209 as_ln_s='ln -s'
210 fi
fa958513
DJ
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
d6efbf5a 216rm -f conf$$ conf$$.exe conf$$.file
fa958513
DJ
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
d6efbf5a 225as_executable_p="test -f"
fa958513
DJ
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
d6efbf5a
DJ
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
fa958513
DJ
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
d6efbf5a
DJ
249exec 6>&1
250
fa958513
DJ
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
d6efbf5a
DJ
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
fa958513
DJ
267# Identity of this package.
268PACKAGE_NAME='GNU C Runtime Library'
269PACKAGE_TARNAME='libgcc'
270PACKAGE_VERSION='1.0'
271PACKAGE_STRING='GNU C Runtime Library 1.0'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="static-object.mk"
8d2a9e0e 275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libgcc_topdir enable_shared slibdir INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK build build_cpu build_vendor build_os host host_cpu host_vendor host_os host_noncanonical build_libsubdir build_subdir host_subdir target_subdir AR ac_ct_AR LIPO ac_ct_LIPO NM ac_ct_NM RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP decimal_float enable_decimal_float fixed_point vis_hide set_have_cc_tls tmake_file extra_parts asm_hidden_op LIBOBJS LTLIBOBJS'
fa958513 276ac_subst_files=''
18c04407 277ac_pwd=`pwd`
fa958513
DJ
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
d6efbf5a 307datadir='${prefix}/share'
fa958513
DJ
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
d6efbf5a 311libdir='${exec_prefix}/lib'
fa958513
DJ
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
d6efbf5a
DJ
314infodir='${prefix}/info'
315mandir='${prefix}/man'
fa958513
DJ
316
317ac_prev=
318for ac_option
319do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
d6efbf5a 322 eval "$ac_prev=\$ac_option"
fa958513
DJ
323 ac_prev=
324 continue
325 fi
326
d6efbf5a 327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
fa958513
DJ
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
d6efbf5a 331 case $ac_option in
fa958513
DJ
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
d6efbf5a 353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
fa958513 354 ac_prev=datadir ;;
d6efbf5a
DJ
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
fa958513
DJ
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
d6efbf5a 362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
fa958513
DJ
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
d6efbf5a
DJ
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
fa958513
DJ
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
d6efbf5a 371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
fa958513
DJ
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
d6efbf5a
DJ
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
fa958513
DJ
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
d6efbf5a
DJ
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
fa958513
DJ
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
d6efbf5a
DJ
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
fa958513
DJ
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
d6efbf5a 553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
fa958513
DJ
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
d6efbf5a
DJ
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
fa958513
DJ
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
d6efbf5a 566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
fa958513
DJ
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
d6efbf5a
DJ
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
fa958513
DJ
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
d6efbf5a
DJ
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
fa958513
DJ
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620fi
621
d6efbf5a
DJ
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
fa958513 624do
d6efbf5a 625 eval ac_val=$`echo $ac_var`
fa958513 626 case $ac_val in
d6efbf5a
DJ
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
fa958513
DJ
642 esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
d6efbf5a
DJ
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
fa958513
DJ
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
d6efbf5a
DJ
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
fa958513 679echo X"$0" |
d6efbf5a
DJ
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
fa958513 685 srcdir=$ac_confdir
d6efbf5a 686 if test ! -r $srcdir/$ac_unique_file; then
fa958513
DJ
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
d6efbf5a
DJ
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
fa958513 695 { (exit 1); exit 1; }; }
d6efbf5a
DJ
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
fa958513 700fi
d6efbf5a
DJ
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
fa958513 703 { (exit 1); exit 1; }; }
d6efbf5a
DJ
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
717ac_env_CC_set=${CC+set}
718ac_env_CC_value=$CC
719ac_cv_env_CC_set=${CC+set}
720ac_cv_env_CC_value=$CC
721ac_env_CFLAGS_set=${CFLAGS+set}
722ac_env_CFLAGS_value=$CFLAGS
723ac_cv_env_CFLAGS_set=${CFLAGS+set}
724ac_cv_env_CFLAGS_value=$CFLAGS
725ac_env_LDFLAGS_set=${LDFLAGS+set}
726ac_env_LDFLAGS_value=$LDFLAGS
727ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728ac_cv_env_LDFLAGS_value=$LDFLAGS
729ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_env_CPPFLAGS_value=$CPPFLAGS
731ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733ac_env_CPP_set=${CPP+set}
734ac_env_CPP_value=$CPP
735ac_cv_env_CPP_set=${CPP+set}
736ac_cv_env_CPP_value=$CPP
14e8fc8b 737
fa958513
DJ
738#
739# Report the --help message.
740#
741if test "$ac_init_help" = "long"; then
742 # Omit some internal or obsolete options to make the list less imposing.
743 # This message is too long to be a string in the A/UX 3.1 sh.
744 cat <<_ACEOF
745\`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
746
747Usage: $0 [OPTION]... [VAR=VALUE]...
748
749To assign environment variables (e.g., CC, CFLAGS...), specify them as
750VAR=VALUE. See below for descriptions of some of the useful variables.
751
752Defaults for the options are specified in brackets.
753
754Configuration:
755 -h, --help display this help and exit
756 --help=short display options specific to this package
757 --help=recursive display the short help of all the included packages
758 -V, --version display version information and exit
759 -q, --quiet, --silent do not print \`checking...' messages
760 --cache-file=FILE cache test results in FILE [disabled]
761 -C, --config-cache alias for \`--cache-file=config.cache'
762 -n, --no-create do not create output files
763 --srcdir=DIR find the sources in DIR [configure dir or \`..']
764
d6efbf5a
DJ
765_ACEOF
766
767 cat <<_ACEOF
fa958513
DJ
768Installation directories:
769 --prefix=PREFIX install architecture-independent files in PREFIX
770 [$ac_default_prefix]
771 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
772 [PREFIX]
773
774By default, \`make install' will install all the files in
775\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
776an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777for instance \`--prefix=\$HOME'.
778
779For better control, use the options below.
780
781Fine tuning of the installation directories:
782 --bindir=DIR user executables [EPREFIX/bin]
783 --sbindir=DIR system admin executables [EPREFIX/sbin]
784 --libexecdir=DIR program executables [EPREFIX/libexec]
d6efbf5a 785 --datadir=DIR read-only architecture-independent data [PREFIX/share]
fa958513
DJ
786 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
787 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
788 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
789 --libdir=DIR object code libraries [EPREFIX/lib]
790 --includedir=DIR C header files [PREFIX/include]
791 --oldincludedir=DIR C header files for non-gcc [/usr/include]
d6efbf5a
DJ
792 --infodir=DIR info documentation [PREFIX/info]
793 --mandir=DIR man documentation [PREFIX/man]
fa958513
DJ
794_ACEOF
795
796 cat <<\_ACEOF
797
798System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST cross-compile to build programs to run on HOST [BUILD]
801_ACEOF
802fi
803
804if test -n "$ac_init_help"; then
805 case $ac_init_help in
806 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
807 esac
808 cat <<\_ACEOF
809
810Optional Features:
811 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
812 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
813 --disable-shared don't provide a shared libgcc
d6efbf5a 814 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
79b87c74
MM
815 --enable-decimal-float={no,yes,bid,dpd}
816 enable decimal float extension to C. Selecting 'bid'
817 or 'dpd' choses which decimal floating point format
818 to use
6f461e76 819 --enable-tls Use thread-local storage [default=yes]
fa958513
DJ
820
821Optional Packages:
822 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
823 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
824 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
825 --with-cross-host=HOST Configuring with a cross compiler
826 --with-ld arrange to use the specified ld (full pathname)
827 --with-slibdir=DIR shared libraries in DIR LIBDIR
14e8fc8b 828 --with-build-libsubdir=DIR Directory where to find libraries for build system
fa958513
DJ
829
830Some influential environment variables:
831 CC C compiler command
832 CFLAGS C compiler flags
833 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
834 nonstandard directory <lib dir>
d6efbf5a
DJ
835 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
836 headers in a nonstandard directory <include dir>
fa958513
DJ
837 CPP C preprocessor
838
839Use these variables to override the choices made by `configure' or to help
840it to find libraries and programs with nonstandard names/locations.
841
842_ACEOF
843fi
844
845if test "$ac_init_help" = "recursive"; then
846 # If there are subdirs, report their specific --help.
d6efbf5a 847 ac_popdir=`pwd`
fa958513 848 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
d6efbf5a 849 test -d $ac_dir || continue
fa958513
DJ
850 ac_builddir=.
851
d6efbf5a 852if test "$ac_dir" != .; then
fa958513 853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
d6efbf5a
DJ
854 # A "../" for each directory in $ac_dir_suffix.
855 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
856else
857 ac_dir_suffix= ac_top_builddir=
858fi
fa958513
DJ
859
860case $srcdir in
d6efbf5a 861 .) # No --srcdir option. We are building in place.
fa958513 862 ac_srcdir=.
d6efbf5a
DJ
863 if test -z "$ac_top_builddir"; then
864 ac_top_srcdir=.
865 else
866 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
867 fi ;;
868 [\\/]* | ?:[\\/]* ) # Absolute path.
fa958513 869 ac_srcdir=$srcdir$ac_dir_suffix;
d6efbf5a
DJ
870 ac_top_srcdir=$srcdir ;;
871 *) # Relative path.
872 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
873 ac_top_srcdir=$ac_top_builddir$srcdir ;;
874esac
875
876# Do not use `cd foo && pwd` to compute absolute paths, because
877# the directories may not exist.
878case `pwd` in
879.) ac_abs_builddir="$ac_dir";;
880*)
881 case "$ac_dir" in
882 .) ac_abs_builddir=`pwd`;;
883 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
884 *) ac_abs_builddir=`pwd`/"$ac_dir";;
885 esac;;
886esac
887case $ac_abs_builddir in
888.) ac_abs_top_builddir=${ac_top_builddir}.;;
889*)
890 case ${ac_top_builddir}. in
891 .) ac_abs_top_builddir=$ac_abs_builddir;;
892 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
893 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
894 esac;;
895esac
896case $ac_abs_builddir in
897.) ac_abs_srcdir=$ac_srcdir;;
898*)
899 case $ac_srcdir in
900 .) ac_abs_srcdir=$ac_abs_builddir;;
901 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
902 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
903 esac;;
fa958513 904esac
d6efbf5a
DJ
905case $ac_abs_builddir in
906.) ac_abs_top_srcdir=$ac_top_srcdir;;
907*)
908 case $ac_top_srcdir in
909 .) ac_abs_top_srcdir=$ac_abs_builddir;;
910 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
911 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
912 esac;;
913esac
914
915 cd $ac_dir
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
918 echo
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
921 echo
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
925 echo
926 $ac_configure --help
fa958513
DJ
927 else
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
d6efbf5a
DJ
929 fi
930 cd $ac_popdir
fa958513
DJ
931 done
932fi
933
d6efbf5a 934test -n "$ac_init_help" && exit 0
fa958513
DJ
935if $ac_init_version; then
936 cat <<\_ACEOF
937GNU C Runtime Library configure 1.0
d6efbf5a 938generated by GNU Autoconf 2.59
fa958513 939
d6efbf5a 940Copyright (C) 2003 Free Software Foundation, Inc.
fa958513
DJ
941This configure script is free software; the Free Software Foundation
942gives unlimited permission to copy, distribute and modify it.
943_ACEOF
d6efbf5a 944 exit 0
fa958513 945fi
d6efbf5a
DJ
946exec 5>config.log
947cat >&5 <<_ACEOF
fa958513
DJ
948This file contains any messages produced by compilers while
949running configure, to aid debugging if configure makes a mistake.
950
951It was created by GNU C Runtime Library $as_me 1.0, which was
d6efbf5a 952generated by GNU Autoconf 2.59. Invocation command line was
fa958513
DJ
953
954 $ $0 $@
955
956_ACEOF
957{
958cat <<_ASUNAME
959## --------- ##
960## Platform. ##
961## --------- ##
962
963hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964uname -m = `(uname -m) 2>/dev/null || echo unknown`
965uname -r = `(uname -r) 2>/dev/null || echo unknown`
966uname -s = `(uname -s) 2>/dev/null || echo unknown`
967uname -v = `(uname -v) 2>/dev/null || echo unknown`
968
969/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
971
972/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
d6efbf5a 975hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
fa958513
DJ
976/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979
980_ASUNAME
981
982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983for as_dir in $PATH
984do
985 IFS=$as_save_IFS
986 test -z "$as_dir" && as_dir=.
987 echo "PATH: $as_dir"
988done
989
990} >&5
991
992cat >&5 <<_ACEOF
993
994
995## ----------- ##
996## Core tests. ##
997## ----------- ##
998
999_ACEOF
1000
1001
1002# Keep a trace of the command line.
1003# Strip out --no-create and --no-recursion so they do not pile up.
1004# Strip out --silent because we don't want to record it for future runs.
1005# Also quote any args containing shell meta-characters.
1006# Make two passes to allow for proper duplicate-argument suppression.
1007ac_configure_args=
1008ac_configure_args0=
1009ac_configure_args1=
d6efbf5a 1010ac_sep=
fa958513
DJ
1011ac_must_keep_next=false
1012for ac_pass in 1 2
1013do
1014 for ac_arg
1015 do
1016 case $ac_arg in
1017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 continue ;;
d6efbf5a 1021 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
fa958513
DJ
1022 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1023 esac
1024 case $ac_pass in
1025 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1026 2)
1027 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1028 if test $ac_must_keep_next = true; then
1029 ac_must_keep_next=false # Got value, back to normal.
1030 else
1031 case $ac_arg in
1032 *=* | --config-cache | -C | -disable-* | --disable-* \
1033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1035 | -with-* | --with-* | -without-* | --without-* | --x)
1036 case "$ac_configure_args0 " in
1037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1038 esac
1039 ;;
1040 -* ) ac_must_keep_next=true ;;
1041 esac
1042 fi
d6efbf5a
DJ
1043 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044 # Get rid of the leading space.
1045 ac_sep=" "
fa958513
DJ
1046 ;;
1047 esac
1048 done
1049done
1050$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1051$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1052
1053# When interrupted or exit'd, cleanup temporary files, and complete
1054# config.log. We remove comments because anyway the quotes in there
1055# would cause problems or look ugly.
d6efbf5a
DJ
1056# WARNING: Be sure not to use single quotes in there, as some shells,
1057# such as our DU 5.0 friend, will then `close' the trap.
fa958513
DJ
1058trap 'exit_status=$?
1059 # Save into config.log some information that might help in debugging.
1060 {
1061 echo
1062
1063 cat <<\_ASBOX
1064## ---------------- ##
1065## Cache variables. ##
1066## ---------------- ##
1067_ASBOX
1068 echo
1069 # The following way of writing the cache mishandles newlines in values,
d6efbf5a 1070{
fa958513 1071 (set) 2>&1 |
d6efbf5a
DJ
1072 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1073 *ac_space=\ *)
fa958513 1074 sed -n \
d6efbf5a
DJ
1075 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1077 ;;
fa958513 1078 *)
d6efbf5a
DJ
1079 sed -n \
1080 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
fa958513 1081 ;;
d6efbf5a
DJ
1082 esac;
1083}
fa958513
DJ
1084 echo
1085
1086 cat <<\_ASBOX
1087## ----------------- ##
1088## Output variables. ##
1089## ----------------- ##
1090_ASBOX
1091 echo
1092 for ac_var in $ac_subst_vars
1093 do
d6efbf5a
DJ
1094 eval ac_val=$`echo $ac_var`
1095 echo "$ac_var='"'"'$ac_val'"'"'"
fa958513
DJ
1096 done | sort
1097 echo
1098
1099 if test -n "$ac_subst_files"; then
1100 cat <<\_ASBOX
d6efbf5a
DJ
1101## ------------- ##
1102## Output files. ##
1103## ------------- ##
fa958513
DJ
1104_ASBOX
1105 echo
1106 for ac_var in $ac_subst_files
1107 do
d6efbf5a
DJ
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
fa958513
DJ
1110 done | sort
1111 echo
1112 fi
1113
1114 if test -s confdefs.h; then
1115 cat <<\_ASBOX
1116## ----------- ##
1117## confdefs.h. ##
1118## ----------- ##
1119_ASBOX
1120 echo
d6efbf5a 1121 sed "/^$/d" confdefs.h | sort
fa958513
DJ
1122 echo
1123 fi
1124 test "$ac_signal" != 0 &&
1125 echo "$as_me: caught signal $ac_signal"
1126 echo "$as_me: exit $exit_status"
1127 } >&5
d6efbf5a
DJ
1128 rm -f core *.core &&
1129 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
fa958513 1130 exit $exit_status
d6efbf5a 1131 ' 0
fa958513
DJ
1132for ac_signal in 1 2 13 15; do
1133 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1134done
1135ac_signal=0
1136
1137# confdefs.h avoids OS command line length limits that DEFS can exceed.
d6efbf5a
DJ
1138rm -rf conftest* confdefs.h
1139# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1140echo >confdefs.h
fa958513
DJ
1141
1142# Predefined preprocessor variables.
1143
1144cat >>confdefs.h <<_ACEOF
1145#define PACKAGE_NAME "$PACKAGE_NAME"
1146_ACEOF
1147
1148
1149cat >>confdefs.h <<_ACEOF
1150#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1151_ACEOF
1152
1153
1154cat >>confdefs.h <<_ACEOF
1155#define PACKAGE_VERSION "$PACKAGE_VERSION"
1156_ACEOF
1157
1158
1159cat >>confdefs.h <<_ACEOF
1160#define PACKAGE_STRING "$PACKAGE_STRING"
1161_ACEOF
1162
1163
1164cat >>confdefs.h <<_ACEOF
1165#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1166_ACEOF
1167
1168
1169# Let the site file select an alternate cache file if it wants to.
1170# Prefer explicitly selected file to automatically selected ones.
d6efbf5a
DJ
1171if test -z "$CONFIG_SITE"; then
1172 if test "x$prefix" != xNONE; then
1173 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1174 else
1175 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1176 fi
fa958513 1177fi
d6efbf5a 1178for ac_site_file in $CONFIG_SITE; do
fa958513
DJ
1179 if test -r "$ac_site_file"; then
1180 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1181echo "$as_me: loading site script $ac_site_file" >&6;}
1182 sed 's/^/| /' "$ac_site_file" >&5
1183 . "$ac_site_file"
1184 fi
1185done
1186
1187if test -r "$cache_file"; then
1188 # Some versions of bash will fail to source /dev/null (special
1189 # files actually), so we avoid doing that.
1190 if test -f "$cache_file"; then
1191 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1192echo "$as_me: loading cache $cache_file" >&6;}
1193 case $cache_file in
d6efbf5a
DJ
1194 [\\/]* | ?:[\\/]* ) . $cache_file;;
1195 *) . ./$cache_file;;
fa958513
DJ
1196 esac
1197 fi
1198else
1199 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1200echo "$as_me: creating cache $cache_file" >&6;}
1201 >$cache_file
1202fi
1203
1204# Check that the precious variables saved in the cache have kept the same
1205# value.
1206ac_cache_corrupted=false
d6efbf5a
DJ
1207for ac_var in `(set) 2>&1 |
1208 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
fa958513
DJ
1209 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1210 eval ac_new_set=\$ac_env_${ac_var}_set
d6efbf5a
DJ
1211 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1212 eval ac_new_val="\$ac_env_${ac_var}_value"
fa958513
DJ
1213 case $ac_old_set,$ac_new_set in
1214 set,)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1216echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,set)
1219 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1220echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1221 ac_cache_corrupted=: ;;
1222 ,);;
1223 *)
1224 if test "x$ac_old_val" != "x$ac_new_val"; then
18c04407
RW
1225 # differences in whitespace do not lead to failure.
1226 ac_old_val_w=`echo x $ac_old_val`
1227 ac_new_val_w=`echo x $ac_new_val`
1228 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1229 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
fa958513 1230echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
18c04407
RW
1231 ac_cache_corrupted=:
1232 else
1233 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1234echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1235 eval $ac_var=\$ac_old_val
1236 fi
1237 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1238echo "$as_me: former value: \`$ac_old_val'" >&2;}
1239 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1240echo "$as_me: current value: \`$ac_new_val'" >&2;}
fa958513
DJ
1241 fi;;
1242 esac
1243 # Pass precious variables to config.status.
1244 if test "$ac_new_set" = set; then
1245 case $ac_new_val in
d6efbf5a
DJ
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
fa958513
DJ
1248 *) ac_arg=$ac_var=$ac_new_val ;;
1249 esac
1250 case " $ac_configure_args " in
1251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1252 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253 esac
1254 fi
1255done
1256if $ac_cache_corrupted; then
18c04407
RW
1257 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1258echo "$as_me: error: in \`$ac_pwd':" >&2;}
fa958513
DJ
1259 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1260echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1261 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1262echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1263 { (exit 1); exit 1; }; }
1264fi
1265
d6efbf5a
DJ
1266ac_ext=c
1267ac_cpp='$CPP $CPPFLAGS'
1268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1270ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271
fa958513
DJ
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
18c04407
RW
1297
1298
1299
fa958513
DJ
1300
1301
1302
1303
d6efbf5a 1304# Check whether --with-target-subdir or --without-target-subdir was given.
fa958513 1305if test "${with_target_subdir+set}" = set; then
d6efbf5a 1306 withval="$with_target_subdir"
fa958513 1307
d6efbf5a 1308fi;
fa958513 1309
d6efbf5a 1310# Check whether --with-cross-host or --without-cross-host was given.
fa958513 1311if test "${with_cross_host+set}" = set; then
d6efbf5a 1312 withval="$with_cross_host"
fa958513 1313
d6efbf5a 1314fi;
fa958513 1315
d6efbf5a 1316# Check whether --with-ld or --without-ld was given.
fa958513 1317if test "${with_ld+set}" = set; then
d6efbf5a 1318 withval="$with_ld"
fa958513 1319
d6efbf5a 1320fi;
fa958513
DJ
1321
1322if test "${srcdir}" = "."; then
1323 if test -n "${with_build_subdir}"; then
1324 libgcc_topdir="${srcdir}/../.."
1325 with_target_subdir=
1326 elif test -z "${with_target_subdir}"; then
1327 libgcc_topdir="${srcdir}/.."
1328 else
1329 if test "${with_target_subdir}" != "."; then
1330 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
1331 else
1332 libgcc_topdir="${srcdir}/${with_multisrctop}.."
1333 fi
1334 fi
1335else
1336 libgcc_topdir="${srcdir}/.."
1337fi
1338
1339ac_aux_dir=
d6efbf5a
DJ
1340for ac_dir in $libgcc_topdir $srcdir/$libgcc_topdir; do
1341 if test -f $ac_dir/install-sh; then
fa958513
DJ
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install-sh -c"
1344 break
d6efbf5a 1345 elif test -f $ac_dir/install.sh; then
fa958513
DJ
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install.sh -c"
1348 break
d6efbf5a 1349 elif test -f $ac_dir/shtool; then
fa958513
DJ
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 break
1353 fi
1354done
1355if test -z "$ac_aux_dir"; then
d6efbf5a
DJ
1356 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libgcc_topdir $srcdir/$libgcc_topdir" >&5
1357echo "$as_me: error: cannot find install-sh or install.sh in $libgcc_topdir $srcdir/$libgcc_topdir" >&2;}
fa958513
DJ
1358 { (exit 1); exit 1; }; }
1359fi
d6efbf5a
DJ
1360ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1361ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1362ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
fa958513 1363
fa958513 1364
d6efbf5a 1365# Check whether --enable-shared or --disable-shared was given.
14e8fc8b 1366if test "${enable_shared+set}" = set; then
d6efbf5a
DJ
1367 enableval="$enable_shared"
1368
fa958513
DJ
1369 case $enable_shared in
1370 yes | no) ;;
1371 *)
1372 enable_shared=no
1373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1374 for pkg in $enableval; do
1375 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
1376 enable_shared=yes
1377 fi
1378 done
1379 IFS="$ac_save_ifs"
1380 ;;
1381 esac
1382
1383else
1384 enable_shared=yes
d6efbf5a
DJ
1385fi;
1386
1387
1388echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1389echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1390# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1391if test "${enable_version_specific_runtime_libs+set}" = set; then
1392 enableval="$enable_version_specific_runtime_libs"
1393 case "$enableval" in
1394 yes) version_specific_libs=yes ;;
1395 no) version_specific_libs=no ;;
1396 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1397echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1398 { (exit 1); exit 1; }; };;
1399 esac
1400else
1401 version_specific_libs=no
1402fi;
1403echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1404echo "${ECHO_T}$version_specific_libs" >&6
fa958513 1405
14e8fc8b 1406
d6efbf5a 1407# Check whether --with-slibdir or --without-slibdir was given.
fa958513 1408if test "${with_slibdir+set}" = set; then
d6efbf5a
DJ
1409 withval="$with_slibdir"
1410 slibdir="$with_slibdir"
fa958513 1411else
d6efbf5a 1412 if test "${version_specific_libs}" = yes; then
fa958513 1413 slibdir='$(libsubdir)'
d6efbf5a
DJ
1414elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
1415 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
fa958513
DJ
1416else
1417 slibdir='$(libdir)'
1418fi
d6efbf5a 1419fi;
fa958513
DJ
1420
1421
1422# Find a good install program. We prefer a C program (faster),
1423# so one script is as good as another. But avoid the broken or
1424# incompatible versions:
1425# SysV /etc/install, /usr/sbin/install
1426# SunOS /usr/etc/install
1427# IRIX /sbin/install
1428# AIX /bin/install
1429# AmigaOS /C/install, which installs bootblocks on floppy discs
1430# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1431# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1432# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1433# OS/2's system install, which has a completely different semantic
1434# ./install, which can be erroneously created by make from ./install.sh.
d6efbf5a
DJ
1435echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1436echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fa958513
DJ
1437if test -z "$INSTALL"; then
1438if test "${ac_cv_path_install+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442for as_dir in $PATH
1443do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 # Account for people who put trailing slashes in PATH elements.
1447case $as_dir/ in
1448 ./ | .// | /cC/* | \
1449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1450 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1451 /usr/ucb/* ) ;;
1452 *)
1453 # OSF1 and SCO ODT 3.0 have their own names for install.
1454 # Don't use installbsd from OSF since it installs stuff as root
1455 # by default.
1456 for ac_prog in ginstall scoinst install; do
1457 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1458 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
fa958513
DJ
1459 if test $ac_prog = install &&
1460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1461 # AIX install. It has an incompatible calling convention.
1462 :
1463 elif test $ac_prog = install &&
1464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1465 # program-specific install script used by HP pwplus--don't use.
1466 :
1467 else
1468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1469 break 3
1470 fi
1471 fi
1472 done
1473 done
1474 ;;
1475esac
1476done
1477
1478
1479fi
1480 if test "${ac_cv_path_install+set}" = set; then
1481 INSTALL=$ac_cv_path_install
1482 else
d6efbf5a
DJ
1483 # As a last resort, use the slow shell script. We don't cache a
1484 # path for INSTALL within a source directory, because that will
fa958513 1485 # break other packages using the cache if that directory is
d6efbf5a 1486 # removed, or if the path is relative.
fa958513
DJ
1487 INSTALL=$ac_install_sh
1488 fi
1489fi
d6efbf5a
DJ
1490echo "$as_me:$LINENO: result: $INSTALL" >&5
1491echo "${ECHO_T}$INSTALL" >&6
fa958513
DJ
1492
1493# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1494# It thinks the first close brace ends the variable substitution.
1495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1496
1497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1498
1499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1500
1501
1502for ac_prog in gawk mawk nawk awk
1503do
1504 # Extract the first word of "$ac_prog", so it can be a program name with args.
1505set dummy $ac_prog; ac_word=$2
d6efbf5a
DJ
1506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1508if test "${ac_cv_prog_AWK+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 if test -n "$AWK"; then
1512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1513else
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1521 ac_cv_prog_AWK="$ac_prog"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525done
1526done
1527
1528fi
1529fi
1530AWK=$ac_cv_prog_AWK
1531if test -n "$AWK"; then
d6efbf5a
DJ
1532 echo "$as_me:$LINENO: result: $AWK" >&5
1533echo "${ECHO_T}$AWK" >&6
fa958513 1534else
d6efbf5a
DJ
1535 echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
fa958513
DJ
1537fi
1538
1539 test -n "$AWK" && break
1540done
1541
1542# We need awk; bail out if it's missing.
1543case ${AWK} in
1544 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
1545echo "$as_me: error: can't build without awk, bailing out" >&2;}
1546 { (exit 1); exit 1; }; } ;;
1547esac
1548
1549# Make sure we can run config.sub.
d6efbf5a
DJ
1550$ac_config_sub sun4 >/dev/null 2>&1 ||
1551 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1552echo "$as_me: error: cannot run $ac_config_sub" >&2;}
fa958513
DJ
1553 { (exit 1); exit 1; }; }
1554
d6efbf5a
DJ
1555echo "$as_me:$LINENO: checking build system type" >&5
1556echo $ECHO_N "checking build system type... $ECHO_C" >&6
fa958513
DJ
1557if test "${ac_cv_build+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
d6efbf5a
DJ
1560 ac_cv_build_alias=$build_alias
1561test -z "$ac_cv_build_alias" &&
1562 ac_cv_build_alias=`$ac_config_guess`
1563test -z "$ac_cv_build_alias" &&
fa958513
DJ
1564 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1565echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1566 { (exit 1); exit 1; }; }
d6efbf5a
DJ
1567ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1569echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
fa958513
DJ
1570 { (exit 1); exit 1; }; }
1571
1572fi
d6efbf5a
DJ
1573echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1574echo "${ECHO_T}$ac_cv_build" >&6
fa958513 1575build=$ac_cv_build
d6efbf5a
DJ
1576build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581echo "$as_me:$LINENO: checking host system type" >&5
1582echo $ECHO_N "checking host system type... $ECHO_C" >&6
fa958513
DJ
1583if test "${ac_cv_host+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
d6efbf5a
DJ
1586 ac_cv_host_alias=$host_alias
1587test -z "$ac_cv_host_alias" &&
1588 ac_cv_host_alias=$ac_cv_build_alias
1589ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1591echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
fa958513
DJ
1592 { (exit 1); exit 1; }; }
1593
1594fi
d6efbf5a
DJ
1595echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1596echo "${ECHO_T}$ac_cv_host" >&6
fa958513 1597host=$ac_cv_host
d6efbf5a
DJ
1598host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
fa958513
DJ
1601
1602
1603 case ${build_alias} in
1604 "") build_noncanonical=${build} ;;
1605 *) build_noncanonical=${build_alias} ;;
1606esac
1607
1608 case ${host_alias} in
1609 "") host_noncanonical=${build_noncanonical} ;;
1610 *) host_noncanonical=${host_alias} ;;
1611esac
1612
1613
1614
14e8fc8b
PB
1615 case ${target_alias} in
1616 "") target_noncanonical=${host_noncanonical} ;;
1617 *) target_noncanonical=${target_alias} ;;
1618esac
1619
1620
1621# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1622# have matching libraries, they should use host libraries: Makefile.tpl
1623# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1624# However, they still use the build modules, because the corresponding
1625# host modules (e.g. bison) are only built for the host when bootstrap
1626# finishes. So:
1627# - build_subdir is where we find build modules, and never changes.
1628# - build_libsubdir is where we find build libraries, and can be overridden.
1629
1630# Prefix 'build-' so this never conflicts with target_subdir.
1631build_subdir="build-${build_noncanonical}"
1632
d6efbf5a 1633# Check whether --with-build-libsubdir or --without-build-libsubdir was given.
14e8fc8b 1634if test "${with_build_libsubdir+set}" = set; then
d6efbf5a
DJ
1635 withval="$with_build_libsubdir"
1636 build_libsubdir="$withval"
14e8fc8b
PB
1637else
1638 build_libsubdir="$build_subdir"
d6efbf5a 1639fi;
14e8fc8b
PB
1640# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1641if ( test $srcdir = . && test -d gcc ) \
1642 || test -d $srcdir/../host-${host_noncanonical}; then
1643 host_subdir="host-${host_noncanonical}"
1644else
1645 host_subdir=.
1646fi
1647# No prefix.
1648target_subdir=${target_noncanonical}
1649
fa958513
DJ
1650
1651if test -n "$ac_tool_prefix"; then
1652 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1653set dummy ${ac_tool_prefix}ar; ac_word=$2
d6efbf5a
DJ
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1656if test "${ac_cv_prog_AR+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$AR"; then
1660 ac_cv_prog_AR="$AR" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1669 ac_cv_prog_AR="${ac_tool_prefix}ar"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678AR=$ac_cv_prog_AR
1679if test -n "$AR"; then
d6efbf5a
DJ
1680 echo "$as_me:$LINENO: result: $AR" >&5
1681echo "${ECHO_T}$AR" >&6
fa958513 1682else
d6efbf5a
DJ
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
fa958513
DJ
1685fi
1686
1687fi
1688if test -z "$ac_cv_prog_AR"; then
1689 ac_ct_AR=$AR
1690 # Extract the first word of "ar", so it can be a program name with args.
1691set dummy ar; ac_word=$2
d6efbf5a
DJ
1692echo "$as_me:$LINENO: checking for $ac_word" >&5
1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1694if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696else
1697 if test -n "$ac_ct_AR"; then
1698 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1699else
1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH
1702do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1707 ac_cv_prog_ac_ct_AR="ar"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711done
1712done
1713
1714fi
1715fi
1716ac_ct_AR=$ac_cv_prog_ac_ct_AR
1717if test -n "$ac_ct_AR"; then
d6efbf5a
DJ
1718 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1719echo "${ECHO_T}$ac_ct_AR" >&6
fa958513 1720else
d6efbf5a
DJ
1721 echo "$as_me:$LINENO: result: no" >&5
1722echo "${ECHO_T}no" >&6
fa958513
DJ
1723fi
1724
d6efbf5a 1725 AR=$ac_ct_AR
fa958513
DJ
1726else
1727 AR="$ac_cv_prog_AR"
1728fi
1729
1730if test -n "$ac_tool_prefix"; then
1731 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
1732set dummy ${ac_tool_prefix}lipo; ac_word=$2
d6efbf5a
DJ
1733echo "$as_me:$LINENO: checking for $ac_word" >&5
1734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1735if test "${ac_cv_prog_LIPO+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738 if test -n "$LIPO"; then
1739 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
1740else
1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1742for as_dir in $PATH
1743do
1744 IFS=$as_save_IFS
1745 test -z "$as_dir" && as_dir=.
1746 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1748 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1750 break 2
1751 fi
1752done
1753done
1754
1755fi
1756fi
1757LIPO=$ac_cv_prog_LIPO
1758if test -n "$LIPO"; then
d6efbf5a
DJ
1759 echo "$as_me:$LINENO: result: $LIPO" >&5
1760echo "${ECHO_T}$LIPO" >&6
fa958513 1761else
d6efbf5a
DJ
1762 echo "$as_me:$LINENO: result: no" >&5
1763echo "${ECHO_T}no" >&6
fa958513
DJ
1764fi
1765
1766fi
1767if test -z "$ac_cv_prog_LIPO"; then
1768 ac_ct_LIPO=$LIPO
1769 # Extract the first word of "lipo", so it can be a program name with args.
1770set dummy lipo; ac_word=$2
d6efbf5a
DJ
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1773if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 if test -n "$ac_ct_LIPO"; then
1777 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1786 ac_cv_prog_ac_ct_LIPO="lipo"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
d6efbf5a 1793 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
fa958513
DJ
1794fi
1795fi
1796ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
1797if test -n "$ac_ct_LIPO"; then
d6efbf5a
DJ
1798 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
1799echo "${ECHO_T}$ac_ct_LIPO" >&6
fa958513 1800else
d6efbf5a
DJ
1801 echo "$as_me:$LINENO: result: no" >&5
1802echo "${ECHO_T}no" >&6
fa958513
DJ
1803fi
1804
d6efbf5a 1805 LIPO=$ac_ct_LIPO
fa958513
DJ
1806else
1807 LIPO="$ac_cv_prog_LIPO"
1808fi
1809
1810if test -n "$ac_tool_prefix"; then
1811 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
1812set dummy ${ac_tool_prefix}nm; ac_word=$2
d6efbf5a
DJ
1813echo "$as_me:$LINENO: checking for $ac_word" >&5
1814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1815if test "${ac_cv_prog_NM+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818 if test -n "$NM"; then
1819 ac_cv_prog_NM="$NM" # Let the user override the test.
1820else
1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824 IFS=$as_save_IFS
1825 test -z "$as_dir" && as_dir=.
1826 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1828 ac_cv_prog_NM="${ac_tool_prefix}nm"
1829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 break 2
1831 fi
1832done
1833done
1834
1835fi
1836fi
1837NM=$ac_cv_prog_NM
1838if test -n "$NM"; then
d6efbf5a
DJ
1839 echo "$as_me:$LINENO: result: $NM" >&5
1840echo "${ECHO_T}$NM" >&6
fa958513 1841else
d6efbf5a
DJ
1842 echo "$as_me:$LINENO: result: no" >&5
1843echo "${ECHO_T}no" >&6
fa958513
DJ
1844fi
1845
1846fi
1847if test -z "$ac_cv_prog_NM"; then
1848 ac_ct_NM=$NM
1849 # Extract the first word of "nm", so it can be a program name with args.
1850set dummy nm; ac_word=$2
d6efbf5a
DJ
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1853if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$ac_ct_NM"; then
1857 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1866 ac_cv_prog_ac_ct_NM="nm"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875ac_ct_NM=$ac_cv_prog_ac_ct_NM
1876if test -n "$ac_ct_NM"; then
d6efbf5a
DJ
1877 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
1878echo "${ECHO_T}$ac_ct_NM" >&6
fa958513 1879else
d6efbf5a
DJ
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
fa958513
DJ
1882fi
1883
d6efbf5a 1884 NM=$ac_ct_NM
fa958513
DJ
1885else
1886 NM="$ac_cv_prog_NM"
1887fi
1888
1889if test -n "$ac_tool_prefix"; then
1890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1891set dummy ${ac_tool_prefix}ranlib; ac_word=$2
d6efbf5a
DJ
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1894if test "${ac_cv_prog_RANLIB+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897 if test -n "$RANLIB"; then
1898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911done
1912done
1913
1914fi
1915fi
1916RANLIB=$ac_cv_prog_RANLIB
1917if test -n "$RANLIB"; then
d6efbf5a
DJ
1918 echo "$as_me:$LINENO: result: $RANLIB" >&5
1919echo "${ECHO_T}$RANLIB" >&6
fa958513 1920else
d6efbf5a
DJ
1921 echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
fa958513
DJ
1923fi
1924
1925fi
1926if test -z "$ac_cv_prog_RANLIB"; then
1927 ac_ct_RANLIB=$RANLIB
1928 # Extract the first word of "ranlib", so it can be a program name with args.
1929set dummy ranlib; ac_word=$2
d6efbf5a
DJ
1930echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1932if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935 if test -n "$ac_ct_RANLIB"; then
1936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1937else
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1945 ac_cv_prog_ac_ct_RANLIB="ranlib"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1948 fi
1949done
1950done
1951
d6efbf5a 1952 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
fa958513
DJ
1953fi
1954fi
1955ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1956if test -n "$ac_ct_RANLIB"; then
d6efbf5a
DJ
1957 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1958echo "${ECHO_T}$ac_ct_RANLIB" >&6
fa958513 1959else
d6efbf5a
DJ
1960 echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6
fa958513
DJ
1962fi
1963
d6efbf5a 1964 RANLIB=$ac_ct_RANLIB
fa958513
DJ
1965else
1966 RANLIB="$ac_cv_prog_RANLIB"
1967fi
1968
1969if test -n "$ac_tool_prefix"; then
1970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1971set dummy ${ac_tool_prefix}strip; ac_word=$2
d6efbf5a
DJ
1972echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
1974if test "${ac_cv_prog_STRIP+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977 if test -n "$STRIP"; then
1978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1979else
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
1987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 break 2
1990 fi
1991done
1992done
1993
1994fi
1995fi
1996STRIP=$ac_cv_prog_STRIP
1997if test -n "$STRIP"; then
d6efbf5a
DJ
1998 echo "$as_me:$LINENO: result: $STRIP" >&5
1999echo "${ECHO_T}$STRIP" >&6
fa958513 2000else
d6efbf5a
DJ
2001 echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6
fa958513
DJ
2003fi
2004
2005fi
2006if test -z "$ac_cv_prog_STRIP"; then
2007 ac_ct_STRIP=$STRIP
2008 # Extract the first word of "strip", so it can be a program name with args.
2009set dummy strip; ac_word=$2
d6efbf5a
DJ
2010echo "$as_me:$LINENO: checking for $ac_word" >&5
2011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
2012if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015 if test -n "$ac_ct_STRIP"; then
2016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2017else
2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019for as_dir in $PATH
2020do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
2025 ac_cv_prog_ac_ct_STRIP="strip"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 break 2
2028 fi
2029done
2030done
2031
d6efbf5a 2032 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fa958513
DJ
2033fi
2034fi
2035ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2036if test -n "$ac_ct_STRIP"; then
d6efbf5a
DJ
2037 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2038echo "${ECHO_T}$ac_ct_STRIP" >&6
fa958513 2039else
d6efbf5a
DJ
2040 echo "$as_me:$LINENO: result: no" >&5
2041echo "${ECHO_T}no" >&6
fa958513
DJ
2042fi
2043
d6efbf5a 2044 STRIP=$ac_ct_STRIP
fa958513
DJ
2045else
2046 STRIP="$ac_cv_prog_STRIP"
2047fi
2048
d6efbf5a
DJ
2049echo "$as_me:$LINENO: checking whether ln -s works" >&5
2050echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
fa958513
DJ
2051LN_S=$as_ln_s
2052if test "$LN_S" = "ln -s"; then
d6efbf5a
DJ
2053 echo "$as_me:$LINENO: result: yes" >&5
2054echo "${ECHO_T}yes" >&6
fa958513 2055else
d6efbf5a
DJ
2056 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2057echo "${ECHO_T}no, using $LN_S" >&6
fa958513
DJ
2058fi
2059
2060
2061
2062ac_ext=c
2063ac_cpp='$CPP $CPPFLAGS'
2064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067if test -n "$ac_tool_prefix"; then
2068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2069set dummy ${ac_tool_prefix}gcc; ac_word=$2
d6efbf5a
DJ
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
2072if test "${ac_cv_prog_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 if test -n "$CC"; then
2076 ac_cv_prog_CC="$CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 2084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
2085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2088 fi
2089done
2090done
2091
2092fi
2093fi
2094CC=$ac_cv_prog_CC
2095if test -n "$CC"; then
d6efbf5a
DJ
2096 echo "$as_me:$LINENO: result: $CC" >&5
2097echo "${ECHO_T}$CC" >&6
fa958513 2098else
d6efbf5a
DJ
2099 echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
fa958513
DJ
2101fi
2102
2103fi
2104if test -z "$ac_cv_prog_CC"; then
2105 ac_ct_CC=$CC
2106 # Extract the first word of "gcc", so it can be a program name with args.
2107set dummy gcc; ac_word=$2
d6efbf5a
DJ
2108echo "$as_me:$LINENO: checking for $ac_word" >&5
2109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
2110if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112else
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115else
2116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117for as_dir in $PATH
2118do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
2123 ac_cv_prog_ac_ct_CC="gcc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2126 fi
2127done
2128done
2129
2130fi
2131fi
2132ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133if test -n "$ac_ct_CC"; then
d6efbf5a
DJ
2134 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135echo "${ECHO_T}$ac_ct_CC" >&6
fa958513 2136else
d6efbf5a
DJ
2137 echo "$as_me:$LINENO: result: no" >&5
2138echo "${ECHO_T}no" >&6
fa958513
DJ
2139fi
2140
d6efbf5a 2141 CC=$ac_ct_CC
fa958513
DJ
2142else
2143 CC="$ac_cv_prog_CC"
2144fi
2145
2146if test -z "$CC"; then
d6efbf5a
DJ
2147 if test -n "$ac_tool_prefix"; then
2148 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
fa958513 2149set dummy ${ac_tool_prefix}cc; ac_word=$2
d6efbf5a
DJ
2150echo "$as_me:$LINENO: checking for $ac_word" >&5
2151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
2152if test "${ac_cv_prog_CC+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2157else
2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 2164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
2165 ac_cv_prog_CC="${ac_tool_prefix}cc"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2168 fi
2169done
2170done
2171
2172fi
2173fi
2174CC=$ac_cv_prog_CC
2175if test -n "$CC"; then
d6efbf5a
DJ
2176 echo "$as_me:$LINENO: result: $CC" >&5
2177echo "${ECHO_T}$CC" >&6
fa958513 2178else
d6efbf5a
DJ
2179 echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6
fa958513
DJ
2181fi
2182
d6efbf5a
DJ
2183fi
2184if test -z "$ac_cv_prog_CC"; then
2185 ac_ct_CC=$CC
2186 # Extract the first word of "cc", so it can be a program name with args.
2187set dummy cc; ac_word=$2
2188echo "$as_me:$LINENO: checking for $ac_word" >&5
2189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195else
2196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199 IFS=$as_save_IFS
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203 ac_cv_prog_ac_ct_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
14e8fc8b 2206 fi
d6efbf5a
DJ
2207done
2208done
2209
2210fi
2211fi
2212ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213if test -n "$ac_ct_CC"; then
2214 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215echo "${ECHO_T}$ac_ct_CC" >&6
2216else
2217 echo "$as_me:$LINENO: result: no" >&5
2218echo "${ECHO_T}no" >&6
2219fi
2220
2221 CC=$ac_ct_CC
2222else
2223 CC="$ac_cv_prog_CC"
2224fi
2225
fa958513
DJ
2226fi
2227if test -z "$CC"; then
2228 # Extract the first word of "cc", so it can be a program name with args.
2229set dummy cc; ac_word=$2
d6efbf5a
DJ
2230echo "$as_me:$LINENO: checking for $ac_word" >&5
2231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
2232if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237else
2238 ac_prog_rejected=no
2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240for as_dir in $PATH
2241do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
2246 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2247 ac_prog_rejected=yes
2248 continue
2249 fi
2250 ac_cv_prog_CC="cc"
2251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2253 fi
2254done
2255done
2256
2257if test $ac_prog_rejected = yes; then
2258 # We found a bogon in the path, so make sure we never use it.
2259 set dummy $ac_cv_prog_CC
2260 shift
2261 if test $# != 0; then
2262 # We chose a different compiler from the bogus one.
2263 # However, it has the same basename, so the bogon will be chosen
2264 # first if we set CC to just the basename; use the full file name.
2265 shift
2266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2267 fi
2268fi
2269fi
2270fi
2271CC=$ac_cv_prog_CC
2272if test -n "$CC"; then
d6efbf5a
DJ
2273 echo "$as_me:$LINENO: result: $CC" >&5
2274echo "${ECHO_T}$CC" >&6
fa958513 2275else
d6efbf5a
DJ
2276 echo "$as_me:$LINENO: result: no" >&5
2277echo "${ECHO_T}no" >&6
fa958513
DJ
2278fi
2279
2280fi
2281if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
d6efbf5a 2283 for ac_prog in cl
fa958513
DJ
2284 do
2285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2286set dummy $ac_tool_prefix$ac_prog; ac_word=$2
d6efbf5a
DJ
2287echo "$as_me:$LINENO: checking for $ac_word" >&5
2288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
2289if test "${ac_cv_prog_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292 if test -n "$CC"; then
2293 ac_cv_prog_CC="$CC" # Let the user override the test.
2294else
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
2302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2305 fi
2306done
2307done
2308
2309fi
2310fi
2311CC=$ac_cv_prog_CC
2312if test -n "$CC"; then
d6efbf5a
DJ
2313 echo "$as_me:$LINENO: result: $CC" >&5
2314echo "${ECHO_T}$CC" >&6
fa958513 2315else
d6efbf5a
DJ
2316 echo "$as_me:$LINENO: result: no" >&5
2317echo "${ECHO_T}no" >&6
fa958513
DJ
2318fi
2319
2320 test -n "$CC" && break
2321 done
2322fi
2323if test -z "$CC"; then
2324 ac_ct_CC=$CC
d6efbf5a 2325 for ac_prog in cl
fa958513
DJ
2326do
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328set dummy $ac_prog; ac_word=$2
d6efbf5a
DJ
2329echo "$as_me:$LINENO: checking for $ac_word" >&5
2330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
fa958513
DJ
2331if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333else
2334 if test -n "$ac_ct_CC"; then
2335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2336else
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
d6efbf5a 2343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
2344 ac_cv_prog_ac_ct_CC="$ac_prog"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348done
2349done
2350
2351fi
2352fi
2353ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354if test -n "$ac_ct_CC"; then
d6efbf5a
DJ
2355 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356echo "${ECHO_T}$ac_ct_CC" >&6
fa958513 2357else
d6efbf5a
DJ
2358 echo "$as_me:$LINENO: result: no" >&5
2359echo "${ECHO_T}no" >&6
fa958513
DJ
2360fi
2361
2362 test -n "$ac_ct_CC" && break
2363done
2364
d6efbf5a 2365 CC=$ac_ct_CC
fa958513
DJ
2366fi
2367
2368fi
2369
2370
18c04407
RW
2371test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2372echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
fa958513
DJ
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: no acceptable C compiler found in \$PATH
2376See \`config.log' for more details." >&2;}
18c04407 2377 { (exit 1); exit 1; }; }; }
fa958513
DJ
2378
2379# Provide some information about the compiler.
d6efbf5a
DJ
2380echo "$as_me:$LINENO:" \
2381 "checking for C compiler version" >&5
fa958513 2382ac_compiler=`set X $ac_compile; echo $2`
d6efbf5a
DJ
2383{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2384 (eval $ac_compiler --version </dev/null >&5) 2>&5
fa958513
DJ
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }
d6efbf5a
DJ
2388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2389 (eval $ac_compiler -v </dev/null >&5) 2>&5
fa958513
DJ
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }
d6efbf5a
DJ
2393{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2394 (eval $ac_compiler -V </dev/null >&5) 2>&5
fa958513
DJ
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }
2398
2399cat >conftest.$ac_ext <<_ACEOF
2400/* confdefs.h. */
2401_ACEOF
2402cat confdefs.h >>conftest.$ac_ext
2403cat >>conftest.$ac_ext <<_ACEOF
2404/* end confdefs.h. */
2405
2406int
2407main ()
2408{
2409
2410 ;
2411 return 0;
2412}
2413_ACEOF
2414# FIXME: Cleanup?
2415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2416 (eval $ac_link) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; then
2420 gcc_no_link=no
2421else
2422 gcc_no_link=yes
2423fi
2424
2425if test x$gcc_no_link = xyes; then
2426 # Setting cross_compile will disable run tests; it will
2427 # also disable AC_CHECK_FILE but that's generally
2428 # correct if we can't link.
2429 cross_compiling=yes
2430 EXEEXT=
2431else
2432 cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h. */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h. */
2438
2439int
2440main ()
2441{
2442
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447ac_clean_files_save=$ac_clean_files
2448ac_clean_files="$ac_clean_files a.out a.exe b.out"
2449# Try to create an executable without -o first, disregard a.out.
2450# It will help us diagnose broken compilers, and finding out an intuition
2451# of exeext.
d6efbf5a
DJ
2452echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2453echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
fa958513 2454ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
d6efbf5a
DJ
2455if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2456 (eval $ac_link_default) 2>&5
fa958513
DJ
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
d6efbf5a
DJ
2460 # Find the output, starting from the most likely. This scheme is
2461# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2462# resort.
2463
2464# Be careful to initialize this variable, since it used to be cached.
2465# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2466ac_cv_exeext=
2467# b.out is created by i960 compilers.
2468for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
fa958513
DJ
2469do
2470 test -f "$ac_file" || continue
2471 case $ac_file in
d6efbf5a
DJ
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2473 ;;
2474 conftest.$ac_ext )
2475 # This is the source file.
fa958513
DJ
2476 ;;
2477 [ab].out )
2478 # We found the default executable, but exeext='' is most
2479 # certainly right.
2480 break;;
2481 *.* )
d6efbf5a
DJ
2482 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2483 # FIXME: I believe we export ac_cv_exeext for Libtool,
2484 # but it would be cool to find out if it's true. Does anybody
2485 # maintain Libtool? --akim.
2486 export ac_cv_exeext
fa958513
DJ
2487 break;;
2488 * )
2489 break;;
2490 esac
2491done
2492else
2493 echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
18c04407
RW
2496{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2497echo "$as_me: error: in \`$ac_pwd':" >&2;}
fa958513
DJ
2498{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2499See \`config.log' for more details." >&5
2500echo "$as_me: error: C compiler cannot create executables
2501See \`config.log' for more details." >&2;}
18c04407 2502 { (exit 77); exit 77; }; }; }
fa958513
DJ
2503fi
2504
2505ac_exeext=$ac_cv_exeext
d6efbf5a
DJ
2506echo "$as_me:$LINENO: result: $ac_file" >&5
2507echo "${ECHO_T}$ac_file" >&6
fa958513 2508
d6efbf5a 2509# Check the compiler produces executables we can run. If not, either
fa958513 2510# the compiler is broken, or we cross compile.
d6efbf5a
DJ
2511echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2512echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
fa958513
DJ
2513# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2514# If not cross compiling, check that we can run a simple program.
2515if test "$cross_compiling" != yes; then
2516 if { ac_try='./$ac_file'
d6efbf5a
DJ
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518 (eval $ac_try) 2>&5
fa958513
DJ
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 cross_compiling=no
2523 else
2524 if test "$cross_compiling" = maybe; then
2525 cross_compiling=yes
2526 else
18c04407
RW
2527 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2528echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
fa958513
DJ
2530If you meant to cross compile, use \`--host'.
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: cannot run C compiled programs.
2533If you meant to cross compile, use \`--host'.
2534See \`config.log' for more details." >&2;}
18c04407 2535 { (exit 1); exit 1; }; }; }
fa958513
DJ
2536 fi
2537 fi
2538fi
d6efbf5a
DJ
2539echo "$as_me:$LINENO: result: yes" >&5
2540echo "${ECHO_T}yes" >&6
fa958513
DJ
2541
2542rm -f a.out a.exe conftest$ac_cv_exeext b.out
2543ac_clean_files=$ac_clean_files_save
d6efbf5a 2544# Check the compiler produces executables we can run. If not, either
fa958513 2545# the compiler is broken, or we cross compile.
d6efbf5a
DJ
2546echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2547echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2548echo "$as_me:$LINENO: result: $cross_compiling" >&5
2549echo "${ECHO_T}$cross_compiling" >&6
2550
2551echo "$as_me:$LINENO: checking for suffix of executables" >&5
2552echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2554 (eval $ac_link) 2>&5
fa958513
DJ
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; then
2558 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2559# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2560# work properly (i.e., refer to `conftest.exe'), while it won't with
2561# `rm'.
2562for ac_file in conftest.exe conftest conftest.*; do
2563 test -f "$ac_file" || continue
2564 case $ac_file in
d6efbf5a 2565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
fa958513 2566 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d6efbf5a 2567 export ac_cv_exeext
fa958513
DJ
2568 break;;
2569 * ) break;;
2570 esac
2571done
2572else
18c04407
RW
2573 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2574echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
fa958513
DJ
2576See \`config.log' for more details." >&5
2577echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2578See \`config.log' for more details." >&2;}
18c04407 2579 { (exit 1); exit 1; }; }; }
fa958513
DJ
2580fi
2581
2582rm -f conftest$ac_cv_exeext
d6efbf5a
DJ
2583echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2584echo "${ECHO_T}$ac_cv_exeext" >&6
fa958513
DJ
2585
2586rm -f conftest.$ac_ext
2587EXEEXT=$ac_cv_exeext
2588ac_exeext=$EXEEXT
2589fi
d6efbf5a
DJ
2590echo "$as_me:$LINENO: checking for suffix of object files" >&5
2591echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
fa958513
DJ
2592if test "${ac_cv_objext+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601
2602int
2603main ()
2604{
2605
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610rm -f conftest.o conftest.obj
d6efbf5a
DJ
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>&5
fa958513
DJ
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; then
d6efbf5a 2616 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
fa958513 2617 case $ac_file in
d6efbf5a 2618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
fa958513
DJ
2619 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2620 break;;
2621 esac
2622done
2623else
2624 echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
18c04407
RW
2627{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2628echo "$as_me: error: in \`$ac_pwd':" >&2;}
fa958513
DJ
2629{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2630See \`config.log' for more details." >&5
2631echo "$as_me: error: cannot compute suffix of object files: cannot compile
2632See \`config.log' for more details." >&2;}
18c04407 2633 { (exit 1); exit 1; }; }; }
fa958513
DJ
2634fi
2635
2636rm -f conftest.$ac_cv_objext conftest.$ac_ext
2637fi
d6efbf5a
DJ
2638echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2639echo "${ECHO_T}$ac_cv_objext" >&6
fa958513
DJ
2640OBJEXT=$ac_cv_objext
2641ac_objext=$OBJEXT
d6efbf5a
DJ
2642echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2643echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
fa958513
DJ
2644if test "${ac_cv_c_compiler_gnu+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646else
2647 cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653
2654int
2655main ()
2656{
2657#ifndef __GNUC__
2658 choke me
2659#endif
2660
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext
d6efbf5a
DJ
2666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667 (eval $ac_compile) 2>conftest.er1
fa958513
DJ
2668 ac_status=$?
2669 grep -v '^ *+' conftest.er1 >conftest.err
2670 rm -f conftest.er1
2671 cat conftest.err >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
2673 (exit $ac_status); } &&
2674 { ac_try='test -z "$ac_c_werror_flag"
2675 || test ! -s conftest.err'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 (eval $ac_try) 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
fa958513
DJ
2687 ac_compiler_gnu=yes
2688else
2689 echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
d6efbf5a 2692ac_compiler_gnu=no
fa958513 2693fi
d6efbf5a 2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513
DJ
2695ac_cv_c_compiler_gnu=$ac_compiler_gnu
2696
2697fi
d6efbf5a
DJ
2698echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2699echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
fa958513
DJ
2700GCC=`test $ac_compiler_gnu = yes && echo yes`
2701ac_test_CFLAGS=${CFLAGS+set}
2702ac_save_CFLAGS=$CFLAGS
d6efbf5a
DJ
2703CFLAGS="-g"
2704echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2705echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
fa958513
DJ
2706if test "${ac_cv_prog_cc_g+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708else
d6efbf5a 2709 cat >conftest.$ac_ext <<_ACEOF
fa958513
DJ
2710/* confdefs.h. */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
2714/* end confdefs.h. */
2715
2716int
2717main ()
2718{
2719
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724rm -f conftest.$ac_objext
d6efbf5a
DJ
2725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
fa958513
DJ
2727 ac_status=$?
2728 grep -v '^ *+' conftest.er1 >conftest.err
2729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
fa958513
DJ
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
fa958513
DJ
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a 2745 (exit $ac_status); }; }; then
fa958513
DJ
2746 ac_cv_prog_cc_g=yes
2747else
2748 echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
d6efbf5a 2751ac_cv_prog_cc_g=no
fa958513 2752fi
d6efbf5a 2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513 2754fi
d6efbf5a
DJ
2755echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2756echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
fa958513
DJ
2757if test "$ac_test_CFLAGS" = set; then
2758 CFLAGS=$ac_save_CFLAGS
2759elif test $ac_cv_prog_cc_g = yes; then
2760 if test "$GCC" = yes; then
2761 CFLAGS="-g -O2"
2762 else
2763 CFLAGS="-g"
2764 fi
2765else
2766 if test "$GCC" = yes; then
2767 CFLAGS="-O2"
2768 else
2769 CFLAGS=
2770 fi
2771fi
d6efbf5a
DJ
2772echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2773echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2774if test "${ac_cv_prog_cc_stdc+set}" = set; then
fa958513
DJ
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
d6efbf5a 2777 ac_cv_prog_cc_stdc=no
fa958513
DJ
2778ac_save_CC=$CC
2779cat >conftest.$ac_ext <<_ACEOF
2780/* confdefs.h. */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h. */
2785#include <stdarg.h>
2786#include <stdio.h>
2787#include <sys/types.h>
2788#include <sys/stat.h>
2789/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2790struct buf { int x; };
2791FILE * (*rcsopen) (struct buf *, struct stat *, int);
2792static char *e (p, i)
2793 char **p;
2794 int i;
2795{
2796 return p[i];
2797}
2798static char *f (char * (*g) (char **, int), char **p, ...)
2799{
2800 char *s;
2801 va_list v;
2802 va_start (v,p);
2803 s = g (p, va_arg (v,int));
2804 va_end (v);
2805 return s;
2806}
2807
2808/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2809 function prototypes and stuff, but not '\xHH' hex character constants.
2810 These don't provoke an error unfortunately, instead are silently treated
d6efbf5a 2811 as 'x'. The following induces an error, until -std1 is added to get
fa958513
DJ
2812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2813 array size at least. It's necessary to write '\x00'==0 to get something
d6efbf5a 2814 that's true only with -std1. */
fa958513
DJ
2815int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2816
2817int test (int i, double x);
2818struct s1 {int (*f) (int a);};
2819struct s2 {int (*f) (double a);};
2820int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2821int argc;
2822char **argv;
2823int
2824main ()
2825{
2826return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2827 ;
2828 return 0;
2829}
2830_ACEOF
d6efbf5a
DJ
2831# Don't try gcc -ansi; that turns off useful extensions and
2832# breaks some systems' header files.
2833# AIX -qlanglvl=ansi
2834# Ultrix and OSF/1 -std1
2835# HP-UX 10.20 and later -Ae
2836# HP-UX older versions -Aa -D_HPUX_SOURCE
2837# SVR4 -Xc -D__EXTENSIONS__
2838for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
fa958513
DJ
2839do
2840 CC="$ac_save_CC $ac_arg"
2841 rm -f conftest.$ac_objext
d6efbf5a
DJ
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
fa958513
DJ
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_prog_cc_stdc=$ac_arg
2864break
fa958513
DJ
2865else
2866 echo "$as_me: failed program was:" >&5
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869fi
d6efbf5a 2870rm -f conftest.err conftest.$ac_objext
fa958513 2871done
d6efbf5a 2872rm -f conftest.$ac_ext conftest.$ac_objext
fa958513
DJ
2873CC=$ac_save_CC
2874
2875fi
d6efbf5a
DJ
2876
2877case "x$ac_cv_prog_cc_stdc" in
2878 x|xno)
2879 echo "$as_me:$LINENO: result: none needed" >&5
2880echo "${ECHO_T}none needed" >&6 ;;
fa958513 2881 *)
d6efbf5a
DJ
2882 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2883echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2884 CC="$CC $ac_cv_prog_cc_stdc" ;;
fa958513
DJ
2885esac
2886
d6efbf5a
DJ
2887# Some people use a C++ compiler to compile C. Since we use `exit',
2888# in C++ we need to declare it. In case someone uses the same compiler
2889# for both compiling C and C++ we need to have the C++ compiler decide
2890# the declaration of exit, since it's the most demanding environment.
2891cat >conftest.$ac_ext <<_ACEOF
2892#ifndef __cplusplus
2893 choke me
2894#endif
2895_ACEOF
2896rm -f conftest.$ac_objext
2897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898 (eval $ac_compile) 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } &&
2905 { ac_try='test -z "$ac_c_werror_flag"
2906 || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 for ac_declaration in \
2919 '' \
2920 'extern "C" void std::exit (int) throw (); using std::exit;' \
2921 'extern "C" void std::exit (int); using std::exit;' \
2922 'extern "C" void exit (int) throw ();' \
2923 'extern "C" void exit (int);' \
2924 'void exit (int);'
2925do
2926 cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h. */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h. */
2932$ac_declaration
2933#include <stdlib.h>
2934int
2935main ()
2936{
2937exit (42);
2938 ;
2939 return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext
2943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2945 ac_status=$?
2946 grep -v '^ *+' conftest.er1 >conftest.err
2947 rm -f conftest.er1
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag"
2952 || test ! -s conftest.err'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 (eval $ac_try) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 :
2965else
2966 echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
fa958513 2968
d6efbf5a
DJ
2969continue
2970fi
2971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 cat >conftest.$ac_ext <<_ACEOF
2973/* confdefs.h. */
2974_ACEOF
2975cat confdefs.h >>conftest.$ac_ext
2976cat >>conftest.$ac_ext <<_ACEOF
2977/* end confdefs.h. */
2978$ac_declaration
2979int
2980main ()
2981{
2982exit (42);
2983 ;
2984 return 0;
2985}
2986_ACEOF
2987rm -f conftest.$ac_objext
2988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag"
2997 || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 break
3010else
3011 echo "$as_me: failed program was:" >&5
3012sed 's/^/| /' conftest.$ac_ext >&5
3013
3014fi
3015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016done
3017rm -f conftest*
3018if test -n "$ac_declaration"; then
3019 echo '#ifdef __cplusplus' >>confdefs.h
3020 echo $ac_declaration >>confdefs.h
3021 echo '#endif' >>confdefs.h
3022fi
3023
3024else
3025 echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
3028fi
3029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513
DJ
3030ac_ext=c
3031ac_cpp='$CPP $CPPFLAGS'
3032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035
3036ac_ext=c
3037ac_cpp='$CPP $CPPFLAGS'
3038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6efbf5a
DJ
3041echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3042echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
fa958513
DJ
3043# On Suns, sometimes $CPP names a directory.
3044if test -n "$CPP" && test -d "$CPP"; then
3045 CPP=
3046fi
3047if test -z "$CPP"; then
3048 if test "${ac_cv_prog_CPP+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051 # Double quotes because CPP needs to be expanded
3052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3053 do
3054 ac_preproc_ok=false
3055for ac_c_preproc_warn_flag in '' yes
3056do
3057 # Use a header file that comes with gcc, so configuring glibc
3058 # with a fresh cross-compiler works.
3059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3060 # <limits.h> exists even on freestanding compilers.
3061 # On the NeXT, cc -E runs the code through the compiler's parser,
3062 # not just through cpp. "Syntax error" is here to catch this case.
3063 cat >conftest.$ac_ext <<_ACEOF
3064/* confdefs.h. */
3065_ACEOF
3066cat confdefs.h >>conftest.$ac_ext
3067cat >>conftest.$ac_ext <<_ACEOF
3068/* end confdefs.h. */
3069#ifdef __STDC__
3070# include <limits.h>
3071#else
3072# include <assert.h>
3073#endif
3074 Syntax error
3075_ACEOF
d6efbf5a
DJ
3076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
fa958513
DJ
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3087 else
3088 ac_cpp_err=
3089 fi
3090else
3091 ac_cpp_err=yes
3092fi
3093if test -z "$ac_cpp_err"; then
fa958513
DJ
3094 :
3095else
3096 echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 # Broken: fails on valid input.
3100continue
3101fi
3102rm -f conftest.err conftest.$ac_ext
3103
d6efbf5a 3104 # OK, works on sane cases. Now check whether non-existent headers
fa958513
DJ
3105 # can be detected and how.
3106 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h. */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h. */
3112#include <ac_nonexistent.h>
3113_ACEOF
d6efbf5a
DJ
3114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
fa958513
DJ
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
3121 (exit $ac_status); } >/dev/null; then
3122 if test -s conftest.err; then
3123 ac_cpp_err=$ac_c_preproc_warn_flag
3124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3125 else
3126 ac_cpp_err=
3127 fi
3128else
3129 ac_cpp_err=yes
3130fi
3131if test -z "$ac_cpp_err"; then
fa958513
DJ
3132 # Broken: success on invalid input.
3133continue
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 # Passes both tests.
3139ac_preproc_ok=:
3140break
3141fi
3142rm -f conftest.err conftest.$ac_ext
3143
3144done
3145# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3146rm -f conftest.err conftest.$ac_ext
3147if $ac_preproc_ok; then
3148 break
3149fi
3150
3151 done
3152 ac_cv_prog_CPP=$CPP
3153
3154fi
3155 CPP=$ac_cv_prog_CPP
3156else
3157 ac_cv_prog_CPP=$CPP
3158fi
d6efbf5a
DJ
3159echo "$as_me:$LINENO: result: $CPP" >&5
3160echo "${ECHO_T}$CPP" >&6
fa958513
DJ
3161ac_preproc_ok=false
3162for ac_c_preproc_warn_flag in '' yes
3163do
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h. */
3176#ifdef __STDC__
3177# include <limits.h>
3178#else
3179# include <assert.h>
3180#endif
3181 Syntax error
3182_ACEOF
d6efbf5a
DJ
3183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
fa958513
DJ
3185 ac_status=$?
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
3190 (exit $ac_status); } >/dev/null; then
3191 if test -s conftest.err; then
3192 ac_cpp_err=$ac_c_preproc_warn_flag
3193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3194 else
3195 ac_cpp_err=
3196 fi
3197else
3198 ac_cpp_err=yes
3199fi
3200if test -z "$ac_cpp_err"; then
fa958513
DJ
3201 :
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 # Broken: fails on valid input.
3207continue
3208fi
3209rm -f conftest.err conftest.$ac_ext
3210
d6efbf5a 3211 # OK, works on sane cases. Now check whether non-existent headers
fa958513
DJ
3212 # can be detected and how.
3213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
3219#include <ac_nonexistent.h>
3220_ACEOF
d6efbf5a
DJ
3221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
fa958513
DJ
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
3228 (exit $ac_status); } >/dev/null; then
3229 if test -s conftest.err; then
3230 ac_cpp_err=$ac_c_preproc_warn_flag
3231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3232 else
3233 ac_cpp_err=
3234 fi
3235else
3236 ac_cpp_err=yes
3237fi
3238if test -z "$ac_cpp_err"; then
fa958513
DJ
3239 # Broken: success on invalid input.
3240continue
3241else
3242 echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245 # Passes both tests.
3246ac_preproc_ok=:
3247break
3248fi
3249rm -f conftest.err conftest.$ac_ext
3250
3251done
3252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253rm -f conftest.err conftest.$ac_ext
3254if $ac_preproc_ok; then
3255 :
3256else
18c04407
RW
3257 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3258echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
fa958513
DJ
3260See \`config.log' for more details." >&5
3261echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3262See \`config.log' for more details." >&2;}
18c04407 3263 { (exit 1); exit 1; }; }; }
fa958513
DJ
3264fi
3265
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271
3272
3273ac_c_preproc_warn_flag=yes
3274
3275# Check for decimal float support.
3276
d6efbf5a
DJ
3277echo "$as_me:$LINENO: checking whether decimal floating point is supported" >&5
3278echo $ECHO_N "checking whether decimal floating point is supported... $ECHO_C" >&6
fa958513
DJ
3279if test "${libgcc_cv_dfp+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282 cat >conftest.$ac_ext <<_ACEOF
3283_Decimal32 x;
3284_ACEOF
3285rm -f conftest.$ac_objext
d6efbf5a
DJ
3286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3287 (eval $ac_compile) 2>conftest.er1
fa958513
DJ
3288 ac_status=$?
3289 grep -v '^ *+' conftest.er1 >conftest.err
3290 rm -f conftest.er1
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d6efbf5a
DJ
3293 (exit $ac_status); } &&
3294 { ac_try='test -z "$ac_c_werror_flag"
3295 || test ! -s conftest.err'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 (eval $ac_try) 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; } &&
3301 { ac_try='test -s conftest.$ac_objext'
3302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 (eval $ac_try) 2>&5
3304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; }; then
fa958513
DJ
3307 libgcc_cv_dfp=yes
3308else
3309 echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
d6efbf5a 3312libgcc_cv_dfp=no
fa958513 3313fi
d6efbf5a 3314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513 3315fi
d6efbf5a
DJ
3316echo "$as_me:$LINENO: result: $libgcc_cv_dfp" >&5
3317echo "${ECHO_T}$libgcc_cv_dfp" >&6
fa958513
DJ
3318decimal_float=$libgcc_cv_dfp
3319
3320
79b87c74
MM
3321# Check whether --enable-decimal-float or --disable-decimal-float was given.
3322if test "${enable_decimal_float+set}" = set; then
3323 enableval="$enable_decimal_float"
3324
3325 case $enable_decimal_float in
3326 yes | no | bid | dpd) ;;
3327 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
3328Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
3329echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
3330Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
3331 { (exit 1); exit 1; }; } ;;
3332 esac
3333
3334else
3335
96fccd0d 3336 case $host in
79b87c74
MM
3337 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
3338 enable_decimal_float=yes
3339 ;;
3340 *)
3341 enable_decimal_float=no
3342 ;;
3343 esac
3344
3345fi;
3346
3347# x86's use BID format instead of DPD
3348if test x$enable_decimal_float = xyes; then
96fccd0d 3349 case $host in
79b87c74
MM
3350 i?86*-*-linux* | x86_64*-*-linux*)
3351 enable_decimal_float=bid
3352 ;;
3353 *)
3354 enable_decimal_float=dpd
3355 ;;
3356 esac
3357fi
3358
3359
8d2a9e0e
CF
3360# Check for fixed-point support.
3361echo "$as_me:$LINENO: checking whether fixed-point is supported" >&5
3362echo $ECHO_N "checking whether fixed-point is supported... $ECHO_C" >&6
3363if test "${libgcc_cv_fixed_point+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 cat >conftest.$ac_ext <<_ACEOF
3367_Sat _Fract x;
3368_ACEOF
3369rm -f conftest.$ac_objext
3370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371 (eval $ac_compile) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag"
3379 || test ! -s conftest.err'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 libgcc_cv_fixed_point=yes
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396libgcc_cv_fixed_point=no
3397fi
3398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399fi
3400echo "$as_me:$LINENO: result: $libgcc_cv_fixed_point" >&5
3401echo "${ECHO_T}$libgcc_cv_fixed_point" >&6
3402fixed_point=$libgcc_cv_fixed_point
3403
3404
ff473280
L
3405# Check 32bit or 64bit for x86.
3406case ${host} in
3407i?86*-*-* | x86_64*-*-*)
3408 cat > conftest.c <<EOF
3409#ifdef __x86_64__
3410host_address=64
3411#else
3412host_address=32
3413#endif
3414EOF
3415 eval `${CC-cc} -E conftest.c | grep host_address=`
3416 rm -f conftest.c
3417 ;;
3418esac
3419
fa958513
DJ
3420# Collect host-machine-specific information.
3421. ${srcdir}/config.host
3422
3423# Check for visibility support. This is after config.host so that
3424# we can check for asm_hidden_op.
d6efbf5a
DJ
3425echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
3426echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
fa958513
DJ
3427if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430
3431 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
3432 libgcc_cv_hidden_visibility_attribute=no
3433 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
3440 libgcc_cv_hidden_visibility_attribute=yes
3441 fi
3442 fi
3443 rm -f conftest.*
3444
3445fi
d6efbf5a
DJ
3446echo "$as_me:$LINENO: result: $libgcc_cv_hidden_visibility_attribute" >&5
3447echo "${ECHO_T}$libgcc_cv_hidden_visibility_attribute" >&6
fa958513
DJ
3448
3449if test $libgcc_cv_hidden_visibility_attribute = yes; then
3450 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
3451else
3452 vis_hide=
3453fi
3454
3455
6f461e76
L
3456# See if we have thread-local storage. We can only test assembler
3457# sicne link-time and run-time tests require the newly built
3458# gcc, which can't be used to build executable due to that libgcc
3459# is yet to be built here.
3460
3461 # Check whether --enable-tls or --disable-tls was given.
3462if test "${enable_tls+set}" = set; then
3463 enableval="$enable_tls"
3464
3465 case "$enableval" in
3466 yes|no) ;;
3467 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
3468echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
3469 { (exit 1); exit 1; }; } ;;
3470 esac
3471
3472else
3473 enable_tls=yes
3474fi;
3475
10fbe77a
BRF
3476 echo "$as_me:$LINENO: checking whether the target assembler supports thread-local storage" >&5
3477echo $ECHO_N "checking whether the target assembler supports thread-local storage... $ECHO_C" >&6
b4e9c2c6 3478if test "${gcc_cv_have_cc_tls+set}" = set; then
6f461e76
L
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481
3482 cat >conftest.$ac_ext <<_ACEOF
3483__thread int a; int b; int main() { return a = b; }
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -z "$ac_c_werror_flag"
3495 || test ! -s conftest.err'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
b4e9c2c6 3507 gcc_cv_have_cc_tls=yes
6f461e76
L
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
b4e9c2c6 3512gcc_cv_have_cc_tls=no
6f461e76
L
3513fi
3514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515
3516fi
b4e9c2c6
L
3517echo "$as_me:$LINENO: result: $gcc_cv_have_cc_tls" >&5
3518echo "${ECHO_T}$gcc_cv_have_cc_tls" >&6
22867d02 3519set_have_cc_tls=
b4e9c2c6 3520if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
6f461e76
L
3521 set_have_cc_tls="-DHAVE_CC_TLS"
3522fi
3523
3524
fa958513
DJ
3525# Conditionalize the makefile for this target machine.
3526tmake_file_=
3527for f in ${tmake_file}
3528do
3529 if test -f ${srcdir}/config/$f
3530 then
3531 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
3532 fi
3533done
3534tmake_file="${tmake_file_}"
3535
3536
3537# Substitute configuration variables
3538
3539
3540
3541# We need multilib support.
d6efbf5a 3542 ac_config_files="$ac_config_files Makefile"
fa958513 3543
d6efbf5a 3544 ac_config_commands="$ac_config_commands default"
fa958513
DJ
3545
3546cat >confcache <<\_ACEOF
3547# This file is a shell script that caches the results of configure
3548# tests run on this system so they can be shared between configure
3549# scripts and configure runs, see configure's option --config-cache.
3550# It is not useful on other systems. If it contains results you don't
3551# want to keep, you may remove or edit it.
3552#
3553# config.status only pays attention to the cache file if you give it
3554# the --recheck option to rerun configure.
3555#
3556# `ac_cv_env_foo' variables (set or unset) will be overridden when
3557# loading this file, other *unset* `ac_cv_foo' will be assigned the
3558# following values.
3559
3560_ACEOF
3561
3562# The following way of writing the cache mishandles newlines in values,
3563# but we know of no workaround that is simple, portable, and efficient.
d6efbf5a 3564# So, don't put newlines in cache variables' values.
fa958513
DJ
3565# Ultrix sh set writes to stderr and can't be redirected directly,
3566# and sets the high bit in the cache file unless we assign to the vars.
d6efbf5a 3567{
fa958513 3568 (set) 2>&1 |
d6efbf5a
DJ
3569 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3570 *ac_space=\ *)
fa958513
DJ
3571 # `set' does not quote correctly, so add quotes (double-quote
3572 # substitution turns \\\\ into \\, and sed turns \\ into \).
3573 sed -n \
3574 "s/'/'\\\\''/g;
3575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
d6efbf5a 3576 ;;
fa958513
DJ
3577 *)
3578 # `set' quotes correctly as required by POSIX, so do not add quotes.
d6efbf5a
DJ
3579 sed -n \
3580 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
fa958513 3581 ;;
d6efbf5a
DJ
3582 esac;
3583} |
fa958513
DJ
3584 sed '
3585 t clear
d6efbf5a 3586 : clear
fa958513
DJ
3587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3588 t end
d6efbf5a
DJ
3589 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3590 : end' >>confcache
3591if diff $cache_file confcache >/dev/null 2>&1; then :; else
3592 if test -w $cache_file; then
3593 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
fa958513
DJ
3594 cat confcache >$cache_file
3595 else
d6efbf5a 3596 echo "not updating unwritable cache $cache_file"
fa958513
DJ
3597 fi
3598fi
3599rm -f confcache
3600
3601test "x$prefix" = xNONE && prefix=$ac_default_prefix
3602# Let make expand exec_prefix.
3603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3604
d6efbf5a
DJ
3605# VPATH may cause trouble with some makes, so we remove $(srcdir),
3606# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3607# trailing colons and then remove the whole line if VPATH becomes empty
3608# (actually we leave an empty line to preserve line numbers).
3609if test "x$srcdir" = x.; then
3610 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3611s/:*\$(srcdir):*/:/;
3612s/:*\${srcdir}:*/:/;
3613s/:*@srcdir@:*/:/;
3614s/^\([^=]*=[ ]*\):*/\1/;
3615s/:*$//;
3616s/^[^=]*=[ ]*$//;
3617}'
3618fi
3619
fa958513
DJ
3620# Transform confdefs.h into DEFS.
3621# Protect against shell expansion while executing Makefile rules.
3622# Protect against Makefile macro expansion.
3623#
3624# If the first sed substitution is executed (which looks for macros that
d6efbf5a 3625# take arguments), then we branch to the quote section. Otherwise,
fa958513 3626# look for a macro that doesn't take arguments.
d6efbf5a 3627cat >confdef2opt.sed <<\_ACEOF
fa958513 3628t clear
d6efbf5a
DJ
3629: clear
3630s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
fa958513 3631t quote
d6efbf5a 3632s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
fa958513 3633t quote
d6efbf5a
DJ
3634d
3635: quote
3636s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3637s,\[,\\&,g
3638s,\],\\&,g
3639s,\$,$$,g
3640p
3641_ACEOF
3642# We use echo to avoid assuming a particular line-breaking character.
3643# The extra dot is to prevent the shell from consuming trailing
3644# line-breaks from the sub-command output. A line-break within
3645# single-quotes doesn't work because, if this script is created in a
3646# platform that uses two characters for line-breaks (e.g., DOS), tr
3647# would break.
3648ac_LF_and_DOT=`echo; echo .`
3649DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3650rm -f confdef2opt.sed
fa958513
DJ
3651
3652
3653ac_libobjs=
3654ac_ltlibobjs=
3655for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3656 # 1. Remove the extension, and $U if already installed.
d6efbf5a
DJ
3657 ac_i=`echo "$ac_i" |
3658 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3659 # 2. Add them.
3660 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3661 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
fa958513
DJ
3662done
3663LIBOBJS=$ac_libobjs
3664
3665LTLIBOBJS=$ac_ltlibobjs
3666
3667
3668
3669: ${CONFIG_STATUS=./config.status}
3670ac_clean_files_save=$ac_clean_files
3671ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3672{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3673echo "$as_me: creating $CONFIG_STATUS" >&6;}
3674cat >$CONFIG_STATUS <<_ACEOF
3675#! $SHELL
3676# Generated by $as_me.
3677# Run this file to recreate the current configuration.
3678# Compiler output produced by configure, useful for debugging
3679# configure, is in config.log if it exists.
3680
3681debug=false
3682ac_cs_recheck=false
3683ac_cs_silent=false
3684SHELL=\${CONFIG_SHELL-$SHELL}
3685_ACEOF
3686
3687cat >>$CONFIG_STATUS <<\_ACEOF
3688## --------------------- ##
3689## M4sh Initialization. ##
3690## --------------------- ##
3691
d6efbf5a 3692# Be Bourne compatible
fa958513
DJ
3693if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3694 emulate sh
3695 NULLCMD=:
3696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3697 # is contrary to our usage. Disable this feature.
3698 alias -g '${1+"$@"}'='"$@"'
d6efbf5a
DJ
3699elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3700 set -o posix
fa958513 3701fi
d6efbf5a 3702DUALCASE=1; export DUALCASE # for MKS sh
fa958513
DJ
3703
3704# Support unset when possible.
3705if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3706 as_unset=unset
3707else
3708 as_unset=false
3709fi
3710
3711
3712# Work around bugs in pre-3.0 UWIN ksh.
d6efbf5a 3713$as_unset ENV MAIL MAILPATH
fa958513
DJ
3714PS1='$ '
3715PS2='> '
3716PS4='+ '
3717
3718# NLS nuisances.
3719for as_var in \
3720 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3721 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3722 LC_TELEPHONE LC_TIME
3723do
3724 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3725 eval $as_var=C; export $as_var
3726 else
d6efbf5a 3727 $as_unset $as_var
fa958513
DJ
3728 fi
3729done
3730
3731# Required to use basename.
d6efbf5a 3732if expr a : '\(a\)' >/dev/null 2>&1; then
fa958513
DJ
3733 as_expr=expr
3734else
3735 as_expr=false
3736fi
3737
d6efbf5a 3738if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
fa958513
DJ
3739 as_basename=basename
3740else
3741 as_basename=false
3742fi
3743
3744
3745# Name of the executable.
d6efbf5a 3746as_me=`$as_basename "$0" ||
fa958513
DJ
3747$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3748 X"$0" : 'X\(//\)$' \| \
d6efbf5a
DJ
3749 X"$0" : 'X\(/\)$' \| \
3750 . : '\(.\)' 2>/dev/null ||
fa958513 3751echo X/"$0" |
d6efbf5a
DJ
3752 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3753 /^X\/\(\/\/\)$/{ s//\1/; q; }
3754 /^X\/\(\/\).*/{ s//\1/; q; }
3755 s/.*/./; q'`
fa958513 3756
fa958513 3757
d6efbf5a
DJ
3758# PATH needs CR, and LINENO needs CR and PATH.
3759# Avoid depending upon Character Ranges.
3760as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3761as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3762as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3763as_cr_digits='0123456789'
3764as_cr_alnum=$as_cr_Letters$as_cr_digits
fa958513 3765
d6efbf5a
DJ
3766# The user is always right.
3767if test "${PATH_SEPARATOR+set}" != set; then
3768 echo "#! /bin/sh" >conf$$.sh
3769 echo "exit 0" >>conf$$.sh
3770 chmod +x conf$$.sh
3771 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3772 PATH_SEPARATOR=';'
3773 else
3774 PATH_SEPARATOR=:
3775 fi
3776 rm -f conf$$.sh
3777fi
3778
3779
3780 as_lineno_1=$LINENO
3781 as_lineno_2=$LINENO
3782 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3783 test "x$as_lineno_1" != "x$as_lineno_2" &&
3784 test "x$as_lineno_3" = "x$as_lineno_2" || {
3785 # Find who we are. Look in the path if we contain no path at all
3786 # relative or not.
3787 case $0 in
3788 *[\\/]* ) as_myself=$0 ;;
3789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
3791do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3795done
fa958513 3796
d6efbf5a
DJ
3797 ;;
3798 esac
3799 # We did not find ourselves, most probably we were run as `sh COMMAND'
3800 # in which case we are not to be found in the path.
3801 if test "x$as_myself" = x; then
3802 as_myself=$0
3803 fi
3804 if test ! -f "$as_myself"; then
3805 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3806echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3807 { (exit 1); exit 1; }; }
3808 fi
3809 case $CONFIG_SHELL in
3810 '')
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for as_base in sh bash ksh sh5; do
3817 case $as_dir in
3818 /*)
3819 if ("$as_dir/$as_base" -c '
fa958513
DJ
3820 as_lineno_1=$LINENO
3821 as_lineno_2=$LINENO
d6efbf5a 3822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
fa958513 3823 test "x$as_lineno_1" != "x$as_lineno_2" &&
d6efbf5a
DJ
3824 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3825 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3826 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3827 CONFIG_SHELL=$as_dir/$as_base
3828 export CONFIG_SHELL
3829 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3830 fi;;
3831 esac
3832 done
3833done
3834;;
3835 esac
fa958513
DJ
3836
3837 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3838 # uniformly replaced by the line number. The first 'sed' inserts a
d6efbf5a
DJ
3839 # line-number line before each line; the second 'sed' does the real
3840 # work. The second script uses 'N' to pair each line-number line
3841 # with the numbered line, and appends trailing '-' during
3842 # substitution so that $LINENO is not a special case at line end.
fa958513 3843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
d6efbf5a
DJ
3844 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3845 sed '=' <$as_myself |
fa958513
DJ
3846 sed '
3847 N
d6efbf5a
DJ
3848 s,$,-,
3849 : loop
3850 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
fa958513 3851 t loop
d6efbf5a
DJ
3852 s,-$,,
3853 s,^['$as_cr_digits']*\n,,
fa958513 3854 ' >$as_me.lineno &&
d6efbf5a
DJ
3855 chmod +x $as_me.lineno ||
3856 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3857echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
fa958513
DJ
3858 { (exit 1); exit 1; }; }
3859
3860 # Don't try to exec as it changes $[0], causing all sort of problems
3861 # (the dirname of $[0] is not the place where we might find the
d6efbf5a
DJ
3862 # original and so on. Autoconf is especially sensible to this).
3863 . ./$as_me.lineno
fa958513
DJ
3864 # Exit status is that of the last command.
3865 exit
3866}
3867
3868
d6efbf5a
DJ
3869case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3870 *c*,-n*) ECHO_N= ECHO_C='
3871' ECHO_T=' ' ;;
3872 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3873 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
fa958513
DJ
3874esac
3875
d6efbf5a 3876if expr a : '\(a\)' >/dev/null 2>&1; then
fa958513
DJ
3877 as_expr=expr
3878else
3879 as_expr=false
3880fi
3881
3882rm -f conf$$ conf$$.exe conf$$.file
3883echo >conf$$.file
3884if ln -s conf$$.file conf$$ 2>/dev/null; then
d6efbf5a
DJ
3885 # We could just check for DJGPP; but this test a) works b) is more generic
3886 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3887 if test -f conf$$.exe; then
3888 # Don't use ln at all; we don't have any links
fa958513 3889 as_ln_s='cp -p'
d6efbf5a
DJ
3890 else
3891 as_ln_s='ln -s'
3892 fi
fa958513
DJ
3893elif ln conf$$.file conf$$ 2>/dev/null; then
3894 as_ln_s=ln
3895else
3896 as_ln_s='cp -p'
3897fi
d6efbf5a 3898rm -f conf$$ conf$$.exe conf$$.file
fa958513
DJ
3899
3900if mkdir -p . 2>/dev/null; then
3901 as_mkdir_p=:
3902else
3903 test -d ./-p && rmdir ./-p
3904 as_mkdir_p=false
3905fi
3906
d6efbf5a 3907as_executable_p="test -f"
fa958513
DJ
3908
3909# Sed expression to map a string onto a valid CPP name.
3910as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3911
3912# Sed expression to map a string onto a valid variable name.
3913as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3914
3915
d6efbf5a
DJ
3916# IFS
3917# We need space, tab and new line, in precisely that order.
3918as_nl='
3919'
3920IFS=" $as_nl"
3921
3922# CDPATH.
3923$as_unset CDPATH
3924
fa958513
DJ
3925exec 6>&1
3926
d6efbf5a 3927# Open the log real soon, to keep \$[0] and so on meaningful, and to
fa958513 3928# report actual input values of CONFIG_FILES etc. instead of their
d6efbf5a
DJ
3929# values after options handling. Logging --version etc. is OK.
3930exec 5>>config.log
3931{
3932 echo
3933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3934## Running $as_me. ##
3935_ASBOX
3936} >&5
3937cat >&5 <<_CSEOF
3938
fa958513 3939This file was extended by GNU C Runtime Library $as_me 1.0, which was
d6efbf5a 3940generated by GNU Autoconf 2.59. Invocation command line was
fa958513
DJ
3941
3942 CONFIG_FILES = $CONFIG_FILES
3943 CONFIG_HEADERS = $CONFIG_HEADERS
3944 CONFIG_LINKS = $CONFIG_LINKS
3945 CONFIG_COMMANDS = $CONFIG_COMMANDS
3946 $ $0 $@
3947
d6efbf5a
DJ
3948_CSEOF
3949echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3950echo >&5
fa958513
DJ
3951_ACEOF
3952
3953# Files that config.status was made for.
d6efbf5a
DJ
3954if test -n "$ac_config_files"; then
3955 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3956fi
fa958513 3957
d6efbf5a
DJ
3958if test -n "$ac_config_headers"; then
3959 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3960fi
3961
3962if test -n "$ac_config_links"; then
3963 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3964fi
3965
3966if test -n "$ac_config_commands"; then
3967 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3968fi
fa958513
DJ
3969
3970cat >>$CONFIG_STATUS <<\_ACEOF
d6efbf5a 3971
fa958513
DJ
3972ac_cs_usage="\
3973\`$as_me' instantiates files from templates according to the
3974current configuration.
3975
3976Usage: $0 [OPTIONS] [FILE]...
3977
3978 -h, --help print this help, then exit
d6efbf5a 3979 -V, --version print version number, then exit
fa958513
DJ
3980 -q, --quiet do not print progress messages
3981 -d, --debug don't remove temporary files
3982 --recheck update $as_me by reconfiguring in the same conditions
3983 --file=FILE[:TEMPLATE]
3984 instantiate the configuration file FILE
3985
3986Configuration files:
3987$config_files
3988
3989Configuration commands:
3990$config_commands
3991
3992Report bugs to <bug-autoconf@gnu.org>."
14e8fc8b 3993_ACEOF
d6efbf5a 3994
fa958513
DJ
3995cat >>$CONFIG_STATUS <<_ACEOF
3996ac_cs_version="\\
3997GNU C Runtime Library config.status 1.0
d6efbf5a
DJ
3998configured by $0, generated by GNU Autoconf 2.59,
3999 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
fa958513 4000
d6efbf5a 4001Copyright (C) 2003 Free Software Foundation, Inc.
fa958513
DJ
4002This config.status script is free software; the Free Software Foundation
4003gives unlimited permission to copy, distribute and modify it."
d6efbf5a
DJ
4004srcdir=$srcdir
4005INSTALL="$INSTALL"
fa958513
DJ
4006_ACEOF
4007
4008cat >>$CONFIG_STATUS <<\_ACEOF
4009# If no file are specified by the user, then we need to provide default
4010# value. By we need to know if files were specified by the user.
4011ac_need_defaults=:
4012while test $# != 0
4013do
4014 case $1 in
4015 --*=*)
d6efbf5a
DJ
4016 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4017 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
fa958513
DJ
4018 ac_shift=:
4019 ;;
d6efbf5a 4020 -*)
fa958513
DJ
4021 ac_option=$1
4022 ac_optarg=$2
4023 ac_shift=shift
4024 ;;
d6efbf5a
DJ
4025 *) # This is not an option, so the user has probably given explicit
4026 # arguments.
4027 ac_option=$1
4028 ac_need_defaults=false;;
fa958513
DJ
4029 esac
4030
4031 case $ac_option in
4032 # Handling of the options.
d6efbf5a
DJ
4033_ACEOF
4034cat >>$CONFIG_STATUS <<\_ACEOF
fa958513
DJ
4035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4036 ac_cs_recheck=: ;;
d6efbf5a
DJ
4037 --version | --vers* | -V )
4038 echo "$ac_cs_version"; exit 0 ;;
4039 --he | --h)
4040 # Conflict between --help and --header
4041 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4042Try \`$0 --help' for more information." >&5
4043echo "$as_me: error: ambiguous option: $1
4044Try \`$0 --help' for more information." >&2;}
4045 { (exit 1); exit 1; }; };;
4046 --help | --hel | -h )
4047 echo "$ac_cs_usage"; exit 0 ;;
4048 --debug | --d* | -d )
fa958513
DJ
4049 debug=: ;;
4050 --file | --fil | --fi | --f )
4051 $ac_shift
4052 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4053 ac_need_defaults=false;;
d6efbf5a
DJ
4054 --header | --heade | --head | --hea )
4055 $ac_shift
4056 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4057 ac_need_defaults=false;;
fa958513
DJ
4058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4060 ac_cs_silent=: ;;
4061
4062 # This is an error.
d6efbf5a
DJ
4063 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4064Try \`$0 --help' for more information." >&5
4065echo "$as_me: error: unrecognized option: $1
4066Try \`$0 --help' for more information." >&2;}
fa958513
DJ
4067 { (exit 1); exit 1; }; } ;;
4068
d6efbf5a 4069 *) ac_config_targets="$ac_config_targets $1" ;;
fa958513
DJ
4070
4071 esac
4072 shift
4073done
4074
4075ac_configure_extra_args=
4076
4077if $ac_cs_silent; then
4078 exec 6>/dev/null
4079 ac_configure_extra_args="$ac_configure_extra_args --silent"
4080fi
4081
4082_ACEOF
4083cat >>$CONFIG_STATUS <<_ACEOF
4084if \$ac_cs_recheck; then
d6efbf5a
DJ
4085 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4086 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fa958513
DJ
4087fi
4088
4089_ACEOF
4090
4091cat >>$CONFIG_STATUS <<_ACEOF
4092#
d6efbf5a 4093# INIT-COMMANDS section.
fa958513 4094#
d6efbf5a 4095
fa958513
DJ
4096srcdir=${srcdir}
4097host=${host}
fa958513
DJ
4098with_target_subdir=${with_target_subdir}
4099with_multisubdir=${with_multisubdir}
4100ac_configure_args="--enable-multilib ${ac_configure_args}"
4101CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4102libgcc_topdir=${libgcc_topdir}
4103CC="${CC}"
4104
4105
4106_ACEOF
4107
14e8fc8b 4108
d6efbf5a
DJ
4109
4110cat >>$CONFIG_STATUS <<\_ACEOF
fa958513
DJ
4111for ac_config_target in $ac_config_targets
4112do
d6efbf5a
DJ
4113 case "$ac_config_target" in
4114 # Handling of arguments.
4115 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4116 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
fa958513
DJ
4117 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4118echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4119 { (exit 1); exit 1; }; };;
4120 esac
4121done
4122
4123# If the user did not use the arguments to specify the items to instantiate,
4124# then the envvar interface is used. Set only those that are not.
4125# We use the long form for the default assignment because of an extremely
4126# bizarre bug on SunOS 4.1.3.
4127if $ac_need_defaults; then
4128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4129 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4130fi
4131
4132# Have a temporary directory for convenience. Make it in the build tree
d6efbf5a 4133# simply because there is no reason to put it here, and in addition,
fa958513 4134# creating and moving files from /tmp can sometimes cause problems.
d6efbf5a 4135# Create a temporary directory, and hook for its removal unless debugging.
fa958513
DJ
4136$debug ||
4137{
d6efbf5a 4138 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
fa958513
DJ
4139 trap '{ (exit 1); exit 1; }' 1 2 13 15
4140}
d6efbf5a 4141
fa958513
DJ
4142# Create a (secure) tmp directory for tmp files.
4143
4144{
d6efbf5a 4145 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
fa958513
DJ
4146 test -n "$tmp" && test -d "$tmp"
4147} ||
4148{
d6efbf5a
DJ
4149 tmp=./confstat$$-$RANDOM
4150 (umask 077 && mkdir $tmp)
fa958513
DJ
4151} ||
4152{
4153 echo "$me: cannot create a temporary directory in ." >&2
4154 { (exit 1); exit 1; }
4155}
4156
d6efbf5a
DJ
4157_ACEOF
4158
4159cat >>$CONFIG_STATUS <<_ACEOF
4160
fa958513 4161#
d6efbf5a 4162# CONFIG_FILES section.
fa958513
DJ
4163#
4164
4165# No need to generate the scripts if there are no CONFIG_FILES.
4166# This happens for instance when ./config.status config.h
d6efbf5a
DJ
4167if test -n "\$CONFIG_FILES"; then
4168 # Protect against being on the right side of a sed subst in config.status.
4169 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4170 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4171s,@SHELL@,$SHELL,;t t
4172s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4173s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4174s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4175s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4176s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4177s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4178s,@exec_prefix@,$exec_prefix,;t t
4179s,@prefix@,$prefix,;t t
4180s,@program_transform_name@,$program_transform_name,;t t
4181s,@bindir@,$bindir,;t t
4182s,@sbindir@,$sbindir,;t t
4183s,@libexecdir@,$libexecdir,;t t
4184s,@datadir@,$datadir,;t t
4185s,@sysconfdir@,$sysconfdir,;t t
4186s,@sharedstatedir@,$sharedstatedir,;t t
4187s,@localstatedir@,$localstatedir,;t t
4188s,@libdir@,$libdir,;t t
4189s,@includedir@,$includedir,;t t
4190s,@oldincludedir@,$oldincludedir,;t t
4191s,@infodir@,$infodir,;t t
4192s,@mandir@,$mandir,;t t
4193s,@build_alias@,$build_alias,;t t
4194s,@host_alias@,$host_alias,;t t
4195s,@target_alias@,$target_alias,;t t
4196s,@DEFS@,$DEFS,;t t
4197s,@ECHO_C@,$ECHO_C,;t t
4198s,@ECHO_N@,$ECHO_N,;t t
4199s,@ECHO_T@,$ECHO_T,;t t
4200s,@LIBS@,$LIBS,;t t
4201s,@libgcc_topdir@,$libgcc_topdir,;t t
4202s,@enable_shared@,$enable_shared,;t t
4203s,@slibdir@,$slibdir,;t t
4204s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4205s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4206s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4207s,@AWK@,$AWK,;t t
4208s,@build@,$build,;t t
4209s,@build_cpu@,$build_cpu,;t t
4210s,@build_vendor@,$build_vendor,;t t
4211s,@build_os@,$build_os,;t t
4212s,@host@,$host,;t t
4213s,@host_cpu@,$host_cpu,;t t
4214s,@host_vendor@,$host_vendor,;t t
4215s,@host_os@,$host_os,;t t
4216s,@host_noncanonical@,$host_noncanonical,;t t
4217s,@build_libsubdir@,$build_libsubdir,;t t
4218s,@build_subdir@,$build_subdir,;t t
4219s,@host_subdir@,$host_subdir,;t t
4220s,@target_subdir@,$target_subdir,;t t
4221s,@AR@,$AR,;t t
4222s,@ac_ct_AR@,$ac_ct_AR,;t t
4223s,@LIPO@,$LIPO,;t t
4224s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
4225s,@NM@,$NM,;t t
4226s,@ac_ct_NM@,$ac_ct_NM,;t t
4227s,@RANLIB@,$RANLIB,;t t
4228s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4229s,@STRIP@,$STRIP,;t t
4230s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4231s,@LN_S@,$LN_S,;t t
4232s,@CC@,$CC,;t t
4233s,@CFLAGS@,$CFLAGS,;t t
4234s,@LDFLAGS@,$LDFLAGS,;t t
4235s,@CPPFLAGS@,$CPPFLAGS,;t t
4236s,@ac_ct_CC@,$ac_ct_CC,;t t
4237s,@EXEEXT@,$EXEEXT,;t t
4238s,@OBJEXT@,$OBJEXT,;t t
4239s,@CPP@,$CPP,;t t
4240s,@decimal_float@,$decimal_float,;t t
79b87c74 4241s,@enable_decimal_float@,$enable_decimal_float,;t t
8d2a9e0e 4242s,@fixed_point@,$fixed_point,;t t
d6efbf5a 4243s,@vis_hide@,$vis_hide,;t t
6f461e76 4244s,@set_have_cc_tls@,$set_have_cc_tls,;t t
d6efbf5a
DJ
4245s,@tmake_file@,$tmake_file,;t t
4246s,@extra_parts@,$extra_parts,;t t
4247s,@asm_hidden_op@,$asm_hidden_op,;t t
4248s,@LIBOBJS@,$LIBOBJS,;t t
4249s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4250CEOF
fa958513
DJ
4251
4252_ACEOF
4253
d6efbf5a
DJ
4254 cat >>$CONFIG_STATUS <<\_ACEOF
4255 # Split the substitutions into bite-sized pieces for seds with
4256 # small command number limits, like on Digital OSF/1 and HP-UX.
4257 ac_max_sed_lines=48
4258 ac_sed_frag=1 # Number of current file.
4259 ac_beg=1 # First line for current file.
4260 ac_end=$ac_max_sed_lines # Line after last line for current file.
4261 ac_more_lines=:
4262 ac_sed_cmds=
4263 while $ac_more_lines; do
4264 if test $ac_beg -gt 1; then
4265 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4266 else
4267 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4268 fi
4269 if test ! -s $tmp/subs.frag; then
4270 ac_more_lines=false
4271 else
4272 # The purpose of the label and of the branching condition is to
4273 # speed up the sed processing (if there are no `@' at all, there
4274 # is no need to browse any of the substitutions).
4275 # These are the two extra sed commands mentioned above.
4276 (echo ':t
4277 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4278 if test -z "$ac_sed_cmds"; then
4279 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4280 else
4281 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4282 fi
4283 ac_sed_frag=`expr $ac_sed_frag + 1`
4284 ac_beg=$ac_end
4285 ac_end=`expr $ac_end + $ac_max_sed_lines`
4286 fi
4287 done
4288 if test -z "$ac_sed_cmds"; then
4289 ac_sed_cmds=cat
fa958513 4290 fi
d6efbf5a 4291fi # test -n "$CONFIG_FILES"
14e8fc8b 4292
fa958513
DJ
4293_ACEOF
4294cat >>$CONFIG_STATUS <<\_ACEOF
d6efbf5a
DJ
4295for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4296 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4297 case $ac_file in
4298 - | *:- | *:-:* ) # input from stdin
4299 cat >$tmp/stdin
4300 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4302 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4304 * ) ac_file_in=$ac_file.in ;;
14e8fc8b
PB
4305 esac
4306
d6efbf5a
DJ
4307 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4308 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
fa958513
DJ
4309$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4310 X"$ac_file" : 'X\(//\)[^/]' \| \
4311 X"$ac_file" : 'X\(//\)$' \| \
d6efbf5a
DJ
4312 X"$ac_file" : 'X\(/\)' \| \
4313 . : '\(.\)' 2>/dev/null ||
fa958513 4314echo X"$ac_file" |
d6efbf5a
DJ
4315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4317 /^X\(\/\/\)$/{ s//\1/; q; }
4318 /^X\(\/\).*/{ s//\1/; q; }
4319 s/.*/./; q'`
4320 { if $as_mkdir_p; then
4321 mkdir -p "$ac_dir"
4322 else
4323 as_dir="$ac_dir"
fa958513 4324 as_dirs=
d6efbf5a
DJ
4325 while test ! -d "$as_dir"; do
4326 as_dirs="$as_dir $as_dirs"
4327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
fa958513
DJ
4328$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4329 X"$as_dir" : 'X\(//\)[^/]' \| \
4330 X"$as_dir" : 'X\(//\)$' \| \
d6efbf5a
DJ
4331 X"$as_dir" : 'X\(/\)' \| \
4332 . : '\(.\)' 2>/dev/null ||
fa958513 4333echo X"$as_dir" |
d6efbf5a
DJ
4334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4336 /^X\(\/\/\)$/{ s//\1/; q; }
4337 /^X\(\/\).*/{ s//\1/; q; }
4338 s/.*/./; q'`
fa958513 4339 done
d6efbf5a
DJ
4340 test ! -n "$as_dirs" || mkdir $as_dirs
4341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4342echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
fa958513 4343 { (exit 1); exit 1; }; }; }
d6efbf5a 4344
fa958513
DJ
4345 ac_builddir=.
4346
d6efbf5a 4347if test "$ac_dir" != .; then
fa958513 4348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
d6efbf5a
DJ
4349 # A "../" for each directory in $ac_dir_suffix.
4350 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4351else
4352 ac_dir_suffix= ac_top_builddir=
4353fi
fa958513
DJ
4354
4355case $srcdir in
d6efbf5a 4356 .) # No --srcdir option. We are building in place.
fa958513 4357 ac_srcdir=.
d6efbf5a
DJ
4358 if test -z "$ac_top_builddir"; then
4359 ac_top_srcdir=.
4360 else
4361 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4362 fi ;;
4363 [\\/]* | ?:[\\/]* ) # Absolute path.
fa958513 4364 ac_srcdir=$srcdir$ac_dir_suffix;
d6efbf5a
DJ
4365 ac_top_srcdir=$srcdir ;;
4366 *) # Relative path.
4367 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4368 ac_top_srcdir=$ac_top_builddir$srcdir ;;
fa958513
DJ
4369esac
4370
d6efbf5a
DJ
4371# Do not use `cd foo && pwd` to compute absolute paths, because
4372# the directories may not exist.
4373case `pwd` in
4374.) ac_abs_builddir="$ac_dir";;
4375*)
4376 case "$ac_dir" in
4377 .) ac_abs_builddir=`pwd`;;
4378 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4379 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4380 esac;;
4381esac
4382case $ac_abs_builddir in
4383.) ac_abs_top_builddir=${ac_top_builddir}.;;
4384*)
4385 case ${ac_top_builddir}. in
4386 .) ac_abs_top_builddir=$ac_abs_builddir;;
4387 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4388 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4389 esac;;
4390esac
4391case $ac_abs_builddir in
4392.) ac_abs_srcdir=$ac_srcdir;;
4393*)
4394 case $ac_srcdir in
4395 .) ac_abs_srcdir=$ac_abs_builddir;;
4396 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4397 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4398 esac;;
4399esac
4400case $ac_abs_builddir in
4401.) ac_abs_top_srcdir=$ac_top_srcdir;;
4402*)
4403 case $ac_top_srcdir in
4404 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4405 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4406 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4407 esac;;
4408esac
fa958513
DJ
4409
4410
4411 case $INSTALL in
4412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
d6efbf5a 4413 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
fa958513 4414 esac
14e8fc8b 4415
d6efbf5a
DJ
4416 if test x"$ac_file" != x-; then
4417 { echo "$as_me:$LINENO: creating $ac_file" >&5
4418echo "$as_me: creating $ac_file" >&6;}
4419 rm -f "$ac_file"
4420 fi
4421 # Let's still pretend it is `configure' which instantiates (i.e., don't
4422 # use $as_me), people would be surprised to read:
4423 # /* config.h. Generated by config.status. */
4424 if test x"$ac_file" = x-; then
4425 configure_input=
4426 else
4427 configure_input="$ac_file. "
4428 fi
4429 configure_input=$configure_input"Generated from `echo $ac_file_in |
4430 sed 's,.*/,,'` by configure."
4431
4432 # First look for the input files in the build tree, otherwise in the
4433 # src tree.
4434 ac_file_inputs=`IFS=:
4435 for f in $ac_file_in; do
4436 case $f in
4437 -) echo $tmp/stdin ;;
4438 [\\/$]*)
4439 # Absolute (can't be DOS-style, as IFS=:)
4440 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4441echo "$as_me: error: cannot find input file: $f" >&2;}
4442 { (exit 1); exit 1; }; }
4443 echo "$f";;
4444 *) # Relative
4445 if test -f "$f"; then
4446 # Build tree
4447 echo "$f"
4448 elif test -f "$srcdir/$f"; then
4449 # Source tree
4450 echo "$srcdir/$f"
4451 else
4452 # /dev/null tree
4453 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4454echo "$as_me: error: cannot find input file: $f" >&2;}
4455 { (exit 1); exit 1; }; }
4456 fi;;
4457 esac
4458 done` || { (exit 1); exit 1; }
fa958513
DJ
4459_ACEOF
4460cat >>$CONFIG_STATUS <<_ACEOF
4461 sed "$ac_vpsub
4462$extrasub
4463_ACEOF
4464cat >>$CONFIG_STATUS <<\_ACEOF
4465:t
4466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
d6efbf5a
DJ
4467s,@configure_input@,$configure_input,;t t
4468s,@srcdir@,$ac_srcdir,;t t
4469s,@abs_srcdir@,$ac_abs_srcdir,;t t
4470s,@top_srcdir@,$ac_top_srcdir,;t t
4471s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4472s,@builddir@,$ac_builddir,;t t
4473s,@abs_builddir@,$ac_abs_builddir,;t t
4474s,@top_builddir@,$ac_top_builddir,;t t
4475s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4476s,@INSTALL@,$ac_INSTALL,;t t
4477" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4478 rm -f $tmp/stdin
4479 if test x"$ac_file" != x-; then
4480 mv $tmp/out $ac_file
4481 else
4482 cat $tmp/out
4483 rm -f $tmp/out
4484 fi
fa958513 4485
d6efbf5a
DJ
4486done
4487_ACEOF
4488cat >>$CONFIG_STATUS <<\_ACEOF
fa958513 4489
d6efbf5a
DJ
4490#
4491# CONFIG_COMMANDS section.
4492#
4493for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4494 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4495 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4496 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4497$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4498 X"$ac_dest" : 'X\(//\)[^/]' \| \
4499 X"$ac_dest" : 'X\(//\)$' \| \
4500 X"$ac_dest" : 'X\(/\)' \| \
4501 . : '\(.\)' 2>/dev/null ||
4502echo X"$ac_dest" |
4503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4504 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4505 /^X\(\/\/\)$/{ s//\1/; q; }
4506 /^X\(\/\).*/{ s//\1/; q; }
4507 s/.*/./; q'`
4508 { if $as_mkdir_p; then
4509 mkdir -p "$ac_dir"
4510 else
4511 as_dir="$ac_dir"
4512 as_dirs=
4513 while test ! -d "$as_dir"; do
4514 as_dirs="$as_dir $as_dirs"
4515 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4517 X"$as_dir" : 'X\(//\)[^/]' \| \
4518 X"$as_dir" : 'X\(//\)$' \| \
4519 X"$as_dir" : 'X\(/\)' \| \
4520 . : '\(.\)' 2>/dev/null ||
4521echo X"$as_dir" |
4522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4523 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4524 /^X\(\/\/\)$/{ s//\1/; q; }
4525 /^X\(\/\).*/{ s//\1/; q; }
4526 s/.*/./; q'`
4527 done
4528 test ! -n "$as_dirs" || mkdir $as_dirs
4529 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4530echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4531 { (exit 1); exit 1; }; }; }
fa958513 4532
d6efbf5a 4533 ac_builddir=.
fa958513 4534
d6efbf5a
DJ
4535if test "$ac_dir" != .; then
4536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4537 # A "../" for each directory in $ac_dir_suffix.
4538 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4539else
4540 ac_dir_suffix= ac_top_builddir=
4541fi
4542
4543case $srcdir in
4544 .) # No --srcdir option. We are building in place.
4545 ac_srcdir=.
4546 if test -z "$ac_top_builddir"; then
4547 ac_top_srcdir=.
4548 else
4549 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4550 fi ;;
4551 [\\/]* | ?:[\\/]* ) # Absolute path.
4552 ac_srcdir=$srcdir$ac_dir_suffix;
4553 ac_top_srcdir=$srcdir ;;
4554 *) # Relative path.
4555 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4556 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4557esac
4558
4559# Do not use `cd foo && pwd` to compute absolute paths, because
4560# the directories may not exist.
4561case `pwd` in
4562.) ac_abs_builddir="$ac_dir";;
4563*)
4564 case "$ac_dir" in
4565 .) ac_abs_builddir=`pwd`;;
4566 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4567 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4568 esac;;
4569esac
4570case $ac_abs_builddir in
4571.) ac_abs_top_builddir=${ac_top_builddir}.;;
4572*)
4573 case ${ac_top_builddir}. in
4574 .) ac_abs_top_builddir=$ac_abs_builddir;;
4575 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4576 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4577 esac;;
4578esac
4579case $ac_abs_builddir in
4580.) ac_abs_srcdir=$ac_srcdir;;
4581*)
4582 case $ac_srcdir in
4583 .) ac_abs_srcdir=$ac_abs_builddir;;
4584 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4585 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4586 esac;;
4587esac
4588case $ac_abs_builddir in
4589.) ac_abs_top_srcdir=$ac_top_srcdir;;
4590*)
4591 case $ac_top_srcdir in
4592 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4593 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4594 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4595 esac;;
4596esac
4597
4598
4599 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4600echo "$as_me: executing $ac_dest commands" >&6;}
4601 case $ac_dest in
4602 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
fa958513
DJ
4603if test -n "$CONFIG_FILES"; then
4604 # FIXME: We shouldn't need to set ac_file
4605 ac_file=Makefile
4606 . ${libgcc_topdir}/config-ml.in
4607fi ;;
4608 esac
d6efbf5a
DJ
4609done
4610_ACEOF
fa958513 4611
d6efbf5a 4612cat >>$CONFIG_STATUS <<\_ACEOF
fa958513
DJ
4613
4614{ (exit 0); exit 0; }
4615_ACEOF
4616chmod +x $CONFIG_STATUS
4617ac_clean_files=$ac_clean_files_save
4618
4619
4620# configure is writing to config.log, and then calls config.status.
4621# config.status does its own redirection, appending to config.log.
4622# Unfortunately, on DOS this fails, as config.log is still kept open
4623# by configure, so config.status won't be able to write to it; its
4624# output is simply discarded. So we exec the FD to /dev/null,
4625# effectively closing config.log, so it can be properly (re)opened and
4626# appended to by config.status. When coming back to configure, we
4627# need to make the FD available again.
4628if test "$no_create" != yes; then
4629 ac_cs_success=:
4630 ac_config_status_args=
4631 test "$silent" = yes &&
4632 ac_config_status_args="$ac_config_status_args --quiet"
4633 exec 5>/dev/null
4634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4635 exec 5>>config.log
4636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4637 # would make configure fail if this is the last instruction.
4638 $ac_cs_success || { (exit 1); exit 1; }
4639fi
4640
This page took 0.663294 seconds and 5 git commands to generate.