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