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