]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/configure
Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856).
[thirdparty/gcc.git] / libgcc / configure
CommitLineData
fa958513
DJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69 for GNU C Runtime Library 1.0.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
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.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
fa958513
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
569dc494
RO
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
fa958513 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
fa958513 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
fa958513 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
fa958513 418
5213506e
RW
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fa958513
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fa958513
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
fa958513 437
5213506e 438as_me=`$as_basename -- "$0" ||
fa958513
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
fa958513 456
d6efbf5a
DJ
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
14e8fc8b 463
fa958513 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
fa958513 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
fa958513 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
fa958513 482 t loop
5213506e 483 s/-\n.*//
fa958513 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
fa958513 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
fa958513
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
fa958513
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
fa958513
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
fa958513 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
fa958513 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
d6efbf5a 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
d6efbf5a 533 fi
fa958513 534else
22e05272 535 as_ln_s='cp -pR'
fa958513 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
fa958513
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
fa958513
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
fa958513
DJ
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
fa958513
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
fa958513
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
fa958513
DJ
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
fa958513 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
fa958513
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
d6efbf5a 576
fa958513
DJ
577# Identity of this package.
578PACKAGE_NAME='GNU C Runtime Library'
579PACKAGE_TARNAME='libgcc'
580PACKAGE_VERSION='1.0'
581PACKAGE_STRING='GNU C Runtime Library 1.0'
582PACKAGE_BUGREPORT=''
5213506e 583PACKAGE_URL='http://www.gnu.org/software/libgcc/'
fa958513
DJ
584
585ac_unique_file="static-object.mk"
07ba94b9 586ac_includes_default='/* none */'
5213506e
RW
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
7e02fd1b
EB
589md_unwind_header
590unwind_header
591enable_execute_stack
5213506e
RW
592asm_hidden_op
593extra_parts
ca24c5ad 594cpu_type
3c36aa6b 595get_gcc_base_ver
1183dc2c 596thread_header
852b75ed
RO
597tm_defines
598tm_file
5213506e 599tmake_file
aca0b0b3 600sfp_machine_header
368fabd5 601set_use_emutls
5213506e
RW
602set_have_cc_tls
603vis_hide
53c6feb2 604solaris_ld_v2_maps
d28ad5d4 605real_host_noncanonical
85c64bbe 606accel_dir_suffix
598a1586 607force_explicit_eh_registry
1ecae1fc 608CET_FLAGS
5213506e
RW
609fixed_point
610enable_decimal_float
611decimal_float
0e4a0def
KT
612EGREP
613GREP
569dc494
RO
614long_double_type_size
615double_type_size
0824d924
KT
616CPP
617OBJEXT
618EXEEXT
619ac_ct_CC
620CPPFLAGS
621LDFLAGS
622CFLAGS
623CC
5213506e
RW
624LN_S
625STRIP
626RANLIB
627NM
628LIPO
629AR
58c741a6
DK
630toolexeclibdir
631toolexecdir
5213506e
RW
632target_subdir
633host_subdir
634build_subdir
635build_libsubdir
58c741a6 636target_noncanonical
5213506e 637host_noncanonical
f9989b51
RO
638AWK
639INSTALL_DATA
640INSTALL_SCRIPT
641INSTALL_PROGRAM
642MAINT
643slibdir
644PICFLAG
5213506e
RW
645host_os
646host_vendor
647host_cpu
648host
649build_os
650build_vendor
651build_cpu
652build
dd913323 653with_aix_soname
2077db1b 654enable_vtable_verify
1765b023 655enable_gcov
5213506e
RW
656enable_shared
657libgcc_topdir
658target_alias
659host_alias
660build_alias
661LIBS
662ECHO_T
663ECHO_N
664ECHO_C
665DEFS
666mandir
667localedir
668libdir
669psdir
670pdfdir
671dvidir
672htmldir
673infodir
674docdir
675oldincludedir
676includedir
677localstatedir
678sharedstatedir
679sysconfdir
680datadir
681datarootdir
682libexecdir
683sbindir
684bindir
685program_transform_name
686prefix
687exec_prefix
688PACKAGE_URL
689PACKAGE_BUGREPORT
690PACKAGE_STRING
691PACKAGE_VERSION
692PACKAGE_TARNAME
693PACKAGE_NAME
694PATH_SEPARATOR
695SHELL'
fa958513 696ac_subst_files=''
5213506e
RW
697ac_user_opts='
698enable_option_checking
699with_target_subdir
700with_cross_host
701with_ld
702enable_shared
1765b023 703enable_gcov
2077db1b 704enable_vtable_verify
dd913323 705with_aix_soname
5213506e
RW
706enable_version_specific_runtime_libs
707with_slibdir
708enable_maintainer_mode
709with_build_libsubdir
a51a76e5 710enable_largefile
5213506e 711enable_decimal_float
201cdb74 712with_system_libunwind
1ecae1fc 713enable_cet
598a1586 714enable_explicit_exception_frame_registration
e610393c 715with_glibc_version
5213506e 716enable_tls
3c36aa6b 717with_gcc_major_version_only
5213506e
RW
718'
719 ac_precious_vars='build_alias
720host_alias
721target_alias
722CC
723CFLAGS
724LDFLAGS
725LIBS
726CPPFLAGS
727CPP'
728
fa958513
DJ
729
730# Initialize some variables set by options.
731ac_init_help=
732ac_init_version=false
5213506e
RW
733ac_unrecognized_opts=
734ac_unrecognized_sep=
fa958513
DJ
735# The variables have the same names as the options, with
736# dashes changed to underlines.
737cache_file=/dev/null
738exec_prefix=NONE
739no_create=
740no_recursion=
741prefix=NONE
742program_prefix=NONE
743program_suffix=NONE
744program_transform_name=s,x,x,
745silent=
746site=
747srcdir=
748verbose=
749x_includes=NONE
750x_libraries=NONE
751
752# Installation directory options.
753# These are left unexpanded so users can "make install exec_prefix=/foo"
754# and all the variables that are supposed to be based on exec_prefix
755# by default will actually change.
756# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 757# (The list follows the same order as the GNU Coding Standards.)
fa958513
DJ
758bindir='${exec_prefix}/bin'
759sbindir='${exec_prefix}/sbin'
760libexecdir='${exec_prefix}/libexec'
5213506e
RW
761datarootdir='${prefix}/share'
762datadir='${datarootdir}'
fa958513
DJ
763sysconfdir='${prefix}/etc'
764sharedstatedir='${prefix}/com'
765localstatedir='${prefix}/var'
fa958513
DJ
766includedir='${prefix}/include'
767oldincludedir='/usr/include'
5213506e
RW
768docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
769infodir='${datarootdir}/info'
770htmldir='${docdir}'
771dvidir='${docdir}'
772pdfdir='${docdir}'
773psdir='${docdir}'
774libdir='${exec_prefix}/lib'
775localedir='${datarootdir}/locale'
776mandir='${datarootdir}/man'
fa958513
DJ
777
778ac_prev=
5213506e 779ac_dashdash=
fa958513
DJ
780for ac_option
781do
782 # If the previous option needs an argument, assign it.
783 if test -n "$ac_prev"; then
5213506e 784 eval $ac_prev=\$ac_option
fa958513
DJ
785 ac_prev=
786 continue
787 fi
788
5213506e 789 case $ac_option in
22e05272
JM
790 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 *=) ac_optarg= ;;
792 *) ac_optarg=yes ;;
5213506e 793 esac
fa958513
DJ
794
795 # Accept the important Cygnus configure options, so we can diagnose typos.
796
5213506e
RW
797 case $ac_dashdash$ac_option in
798 --)
799 ac_dashdash=yes ;;
fa958513
DJ
800
801 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 ac_prev=bindir ;;
803 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 bindir=$ac_optarg ;;
805
806 -build | --build | --buil | --bui | --bu)
807 ac_prev=build_alias ;;
808 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809 build_alias=$ac_optarg ;;
810
811 -cache-file | --cache-file | --cache-fil | --cache-fi \
812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813 ac_prev=cache_file ;;
814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816 cache_file=$ac_optarg ;;
817
818 --config-cache | -C)
819 cache_file=config.cache ;;
820
5213506e 821 -datadir | --datadir | --datadi | --datad)
fa958513 822 ac_prev=datadir ;;
5213506e 823 -datadir=* | --datadir=* | --datadi=* | --datad=*)
fa958513
DJ
824 datadir=$ac_optarg ;;
825
5213506e
RW
826 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827 | --dataroo | --dataro | --datar)
828 ac_prev=datarootdir ;;
829 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831 datarootdir=$ac_optarg ;;
832
fa958513 833 -disable-* | --disable-*)
5213506e 834 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
fa958513 835 # Reject names that are not valid shell variable names.
5213506e 836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 837 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
841 *"
842"enable_$ac_useropt"
843"*) ;;
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
846 esac
847 eval enable_$ac_useropt=no ;;
848
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
853
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
fa958513
DJ
858
859 -enable-* | --enable-*)
5213506e 860 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
fa958513 861 # Reject names that are not valid shell variable names.
5213506e 862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 863 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868"enable_$ac_useropt"
869"*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
d6efbf5a 872 esac
5213506e 873 eval enable_$ac_useropt=\$ac_optarg ;;
fa958513
DJ
874
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
883
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
887
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
894
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
899
5213506e
RW
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
905
fa958513
DJ
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
912
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
917
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
922
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
929
5213506e
RW
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
934
fa958513 935 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 936 | --localstate | --localstat | --localsta | --localst | --locals)
fa958513
DJ
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
fa958513
DJ
940 localstatedir=$ac_optarg ;;
941
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
946
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
950
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
954
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
958
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
967
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
972
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
979
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
986
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1003
5213506e
RW
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1008
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1013
fa958513
DJ
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1017
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1023
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1034
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1039
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1044
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1051
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1056
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1059
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1062
1063 -with-* | --with-*)
5213506e 1064 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
fa958513 1065 # Reject names that are not valid shell variable names.
5213506e 1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1067 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072"with_$ac_useropt"
1073"*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
d6efbf5a 1076 esac
5213506e 1077 eval with_$ac_useropt=\$ac_optarg ;;
fa958513
DJ
1078
1079 -without-* | --without-*)
5213506e 1080 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
fa958513 1081 # Reject names that are not valid shell variable names.
5213506e 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1083 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088"with_$ac_useropt"
1089"*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval with_$ac_useropt=no ;;
fa958513
DJ
1094
1095 --x)
1096 # Obsolete; use --with-x.
1097 with_x=yes ;;
1098
1099 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1100 | --x-incl | --x-inc | --x-in | --x-i)
1101 ac_prev=x_includes ;;
1102 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1103 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1104 x_includes=$ac_optarg ;;
1105
1106 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1107 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1108 ac_prev=x_libraries ;;
1109 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1110 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1111 x_libraries=$ac_optarg ;;
1112
22e05272
JM
1113 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1114Try \`$0 --help' for more information"
fa958513
DJ
1115 ;;
1116
1117 *=*)
1118 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119 # Reject names that are not valid shell variable names.
5213506e
RW
1120 case $ac_envvar in #(
1121 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1122 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1123 esac
1124 eval $ac_envvar=\$ac_optarg
fa958513
DJ
1125 export $ac_envvar ;;
1126
1127 *)
1128 # FIXME: should be removed in autoconf 3.0.
5213506e 1129 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
fa958513 1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1131 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1132 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
fa958513
DJ
1133 ;;
1134
1135 esac
1136done
1137
1138if test -n "$ac_prev"; then
1139 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1140 as_fn_error $? "missing argument to $ac_option"
fa958513
DJ
1141fi
1142
5213506e
RW
1143if test -n "$ac_unrecognized_opts"; then
1144 case $enable_option_checking in
1145 no) ;;
22e05272 1146 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1147 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
d6efbf5a 1148 esac
5213506e 1149fi
d6efbf5a 1150
5213506e
RW
1151# Check all directory arguments for consistency.
1152for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1153 datadir sysconfdir sharedstatedir localstatedir includedir \
1154 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1155 libdir localedir mandir
d6efbf5a 1156do
5213506e
RW
1157 eval ac_val=\$$ac_var
1158 # Remove trailing slashes.
1159 case $ac_val in
1160 */ )
1161 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1162 eval $ac_var=\$ac_val;;
1163 esac
1164 # Be sure to have absolute directory names.
d6efbf5a 1165 case $ac_val in
5213506e
RW
1166 [\\/$]* | ?:[\\/]* ) continue;;
1167 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
fa958513 1168 esac
22e05272 1169 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
fa958513
DJ
1170done
1171
1172# There might be people who depend on the old broken behavior: `$host'
1173# used to hold the argument of --host etc.
1174# FIXME: To remove some day.
1175build=$build_alias
1176host=$host_alias
1177target=$target_alias
1178
1179# FIXME: To remove some day.
1180if test "x$host_alias" != x; then
1181 if test "x$build_alias" = x; then
1182 cross_compiling=maybe
fa958513
DJ
1183 elif test "x$build_alias" != "x$host_alias"; then
1184 cross_compiling=yes
1185 fi
1186fi
1187
1188ac_tool_prefix=
1189test -n "$host_alias" && ac_tool_prefix=$host_alias-
1190
1191test "$silent" = yes && exec 6>/dev/null
1192
1193
5213506e
RW
1194ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195ac_ls_di=`ls -di .` &&
1196ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1197 as_fn_error $? "working directory cannot be determined"
5213506e 1198test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1199 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1200
1201
fa958513
DJ
1202# Find the source files, if location was not specified.
1203if test -z "$srcdir"; then
1204 ac_srcdir_defaulted=yes
5213506e
RW
1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir=`$as_dirname -- "$as_myself" ||
1207$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$as_myself" : 'X\(//\)[^/]' \| \
1209 X"$as_myself" : 'X\(//\)$' \| \
1210 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1211$as_echo X"$as_myself" |
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\/\)[^/].*/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\/\)$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\).*/{
1225 s//\1/
1226 q
1227 }
1228 s/.*/./; q'`
fa958513 1229 srcdir=$ac_confdir
5213506e 1230 if test ! -r "$srcdir/$ac_unique_file"; then
fa958513
DJ
1231 srcdir=..
1232 fi
1233else
1234 ac_srcdir_defaulted=no
1235fi
5213506e
RW
1236if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1238 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1239fi
1240ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241ac_abs_confdir=`(
22e05272 1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1243 pwd)`
1244# When building in place, set srcdir=.
1245if test "$ac_abs_confdir" = "$ac_pwd"; then
1246 srcdir=.
1247fi
1248# Remove unnecessary trailing slashes from srcdir.
1249# Double slashes in file names in object file debugging info
1250# mess up M-x gdb in Emacs.
1251case $srcdir in
1252*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1253esac
1254for ac_var in $ac_precious_vars; do
1255 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_env_${ac_var}_value=\$${ac_var}
1257 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1259done
14e8fc8b 1260
fa958513
DJ
1261#
1262# Report the --help message.
1263#
1264if test "$ac_init_help" = "long"; then
1265 # Omit some internal or obsolete options to make the list less imposing.
1266 # This message is too long to be a string in the A/UX 3.1 sh.
1267 cat <<_ACEOF
1268\`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1269
1270Usage: $0 [OPTION]... [VAR=VALUE]...
1271
1272To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273VAR=VALUE. See below for descriptions of some of the useful variables.
1274
1275Defaults for the options are specified in brackets.
1276
1277Configuration:
1278 -h, --help display this help and exit
1279 --help=short display options specific to this package
1280 --help=recursive display the short help of all the included packages
1281 -V, --version display version information and exit
22e05272 1282 -q, --quiet, --silent do not print \`checking ...' messages
fa958513
DJ
1283 --cache-file=FILE cache test results in FILE [disabled]
1284 -C, --config-cache alias for \`--cache-file=config.cache'
1285 -n, --no-create do not create output files
1286 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1287
fa958513
DJ
1288Installation directories:
1289 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1290 [$ac_default_prefix]
fa958513 1291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1292 [PREFIX]
fa958513
DJ
1293
1294By default, \`make install' will install all the files in
1295\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1296an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297for instance \`--prefix=\$HOME'.
1298
1299For better control, use the options below.
1300
1301Fine tuning of the installation directories:
5213506e
RW
1302 --bindir=DIR user executables [EPREFIX/bin]
1303 --sbindir=DIR system admin executables [EPREFIX/sbin]
1304 --libexecdir=DIR program executables [EPREFIX/libexec]
1305 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1306 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1307 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1308 --libdir=DIR object code libraries [EPREFIX/lib]
1309 --includedir=DIR C header files [PREFIX/include]
1310 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1311 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1312 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1313 --infodir=DIR info documentation [DATAROOTDIR/info]
1314 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1315 --mandir=DIR man documentation [DATAROOTDIR/man]
1316 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
fa958513
DJ
1321_ACEOF
1322
1323 cat <<\_ACEOF
1324
1325System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328_ACEOF
1329fi
1330
1331if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1334 esac
1335 cat <<\_ACEOF
1336
1337Optional Features:
5213506e 1338 --disable-option-checking ignore unrecognized --enable/--with options
fa958513
DJ
1339 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1340 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1341 --disable-shared don't provide a shared libgcc
1765b023 1342 --disable-gcov don't provide libgcov and related host tools
2077db1b 1343 --enable-vtable-verify Enable vtable verification feature
d6efbf5a 1344 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
6efbd53f
RW
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful (and
1347 sometimes confusing) to the casual installer
a51a76e5 1348 --disable-largefile omit support for large files
79b87c74
MM
1349 --enable-decimal-float={no,yes,bid,dpd}
1350 enable decimal float extension to C. Selecting 'bid'
1351 or 'dpd' choses which decimal floating point format
1352 to use
a0e1df88 1353 --enable-cet enable Intel CET in target libraries [default=no]
598a1586
HPN
1354 --enable-explicit-exception-frame-registration
1355 register exception tables explicitly at module
1356 start, for use e.g. for compatibility with
1357 installations without PT_GNU_EH_FRAME support
6f461e76 1358 --enable-tls Use thread-local storage [default=yes]
fa958513
DJ
1359
1360Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1364 --with-cross-host=HOST Configuring with a cross compiler
1365 --with-ld arrange to use the specified ld (full pathname)
dd913323
MH
1366 --with-aix-soname=aix|svr4|both
1367 shared library versioning (aka "SONAME") variant to
1368 provide on AIX
fa958513 1369 --with-slibdir=DIR shared libraries in DIR LIBDIR
14e8fc8b 1370 --with-build-libsubdir=DIR Directory where to find libraries for build system
201cdb74 1371 --with-system-libunwind use installed libunwind
e610393c
JM
1372 --with-glibc-version=M.N
1373 assume GCC used with glibc version M.N or later
3c36aa6b
JJ
1374 --with-gcc-major-version-only
1375 use only GCC major number in filesystem paths
fa958513
DJ
1376
1377Some influential environment variables:
1378 CC C compiler command
1379 CFLAGS C compiler flags
1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 nonstandard directory <lib dir>
5213506e 1382 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1383 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1384 you have headers in a nonstandard directory <include dir>
fa958513
DJ
1385 CPP C preprocessor
1386
1387Use these variables to override the choices made by `configure' or to help
1388it to find libraries and programs with nonstandard names/locations.
1389
5213506e
RW
1390Report bugs to the package provider.
1391GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1392General help using GNU software: <http://www.gnu.org/gethelp/>.
fa958513 1393_ACEOF
5213506e 1394ac_status=$?
fa958513
DJ
1395fi
1396
1397if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
fa958513 1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1400 test -d "$ac_dir" ||
1401 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1402 continue
fa958513
DJ
1403 ac_builddir=.
1404
5213506e
RW
1405case "$ac_dir" in
1406.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407*)
1408 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;;
1415esac
1416ac_abs_top_builddir=$ac_pwd
1417ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418# for backward compatibility:
1419ac_top_builddir=$ac_top_build_prefix
fa958513
DJ
1420
1421case $srcdir in
5213506e 1422 .) # We are building in place.
fa958513 1423 ac_srcdir=.
5213506e
RW
1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
fa958513 1427 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1430 *) # Relative name.
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fa958513 1434esac
5213506e
RW
1435ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1436
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for guested configure.
1439 if test -f "$ac_srcdir/configure.gnu"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive
fa958513 1445 else
5213506e
RW
1446 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; }
fa958513
DJ
1449 done
1450fi
1451
5213506e 1452test -n "$ac_init_help" && exit $ac_status
fa958513
DJ
1453if $ac_init_version; then
1454 cat <<\_ACEOF
1455GNU C Runtime Library configure 1.0
22e05272 1456generated by GNU Autoconf 2.69
fa958513 1457
22e05272 1458Copyright (C) 2012 Free Software Foundation, Inc.
fa958513
DJ
1459This configure script is free software; the Free Software Foundation
1460gives unlimited permission to copy, distribute and modify it.
1461_ACEOF
5213506e 1462 exit
fa958513 1463fi
5213506e
RW
1464
1465## ------------------------ ##
1466## Autoconf initialization. ##
1467## ------------------------ ##
1468
1469# ac_fn_c_try_compile LINENO
1470# --------------------------
1471# Try to compile conftest.$ac_ext, and return whether this succeeded.
1472ac_fn_c_try_compile ()
1473{
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 rm -f conftest.$ac_objext
1476 if { { ac_try="$ac_compile"
1477case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480esac
1481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482$as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_compile") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1489 fi
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } && {
1492 test -z "$ac_c_werror_flag" ||
1493 test ! -s conftest.err
1494 } && test -s conftest.$ac_objext; then :
1495 ac_retval=0
1496else
1497 $as_echo "$as_me: failed program was:" >&5
1498sed 's/^/| /' conftest.$ac_ext >&5
1499
1500 ac_retval=1
1501fi
22e05272
JM
1502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1503 as_fn_set_status $ac_retval
5213506e
RW
1504
1505} # ac_fn_c_try_compile
1506
1507# ac_fn_c_try_cpp LINENO
1508# ----------------------
1509# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1510ac_fn_c_try_cpp ()
1511{
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 if { { ac_try="$ac_cpp conftest.$ac_ext"
1514case "(($ac_try" in
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1517esac
1518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519$as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1521 ac_status=$?
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1526 fi
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1528 test $ac_status = 0; } > conftest.i && {
5213506e
RW
1529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 }; then :
1532 ac_retval=0
1533else
1534 $as_echo "$as_me: failed program was:" >&5
1535sed 's/^/| /' conftest.$ac_ext >&5
1536
1537 ac_retval=1
1538fi
22e05272
JM
1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540 as_fn_set_status $ac_retval
5213506e
RW
1541
1542} # ac_fn_c_try_cpp
569dc494
RO
1543
1544# ac_fn_c_try_run LINENO
1545# ----------------------
1546# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1547# that executables *can* be run.
1548ac_fn_c_try_run ()
1549{
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_link"
1552case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_link") 2>&5
1559 ac_status=$?
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1562 { { case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565esac
1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567$as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_try") 2>&5
1569 ac_status=$?
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; }; }; then :
1572 ac_retval=0
1573else
1574 $as_echo "$as_me: program exited with status $ac_status" >&5
1575 $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578 ac_retval=$ac_status
1579fi
1580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
569dc494
RO
1583
1584} # ac_fn_c_try_run
1585
1586# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1587# --------------------------------------------
1588# Tries to find the compile-time value of EXPR in a program that includes
1589# INCLUDES, setting VAR accordingly. Returns whether the value could be
1590# computed
1591ac_fn_c_compute_int ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 if test "$cross_compiling" = yes; then
1595 # Depending upon the size, compute the lo and hi bounds.
1596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597/* end confdefs.h. */
1598$4
1599int
1600main ()
1601{
1602static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1603test_array [0] = 0;
1604return test_array [0];
569dc494
RO
1605
1606 ;
1607 return 0;
1608}
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"; then :
1611 ac_lo=0 ac_mid=0
1612 while :; do
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614/* end confdefs.h. */
1615$4
1616int
1617main ()
1618{
1619static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1620test_array [0] = 0;
1621return test_array [0];
569dc494
RO
1622
1623 ;
1624 return 0;
1625}
1626_ACEOF
1627if ac_fn_c_try_compile "$LINENO"; then :
1628 ac_hi=$ac_mid; break
1629else
1630 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1631 if test $ac_lo -le $ac_mid; then
1632 ac_lo= ac_hi=
1633 break
1634 fi
1635 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1636fi
1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 done
1639else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h. */
1642$4
1643int
1644main ()
1645{
1646static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
1647test_array [0] = 0;
1648return test_array [0];
569dc494
RO
1649
1650 ;
1651 return 0;
1652}
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"; then :
1655 ac_hi=-1 ac_mid=-1
1656 while :; do
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h. */
1659$4
1660int
1661main ()
1662{
1663static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
1664test_array [0] = 0;
1665return test_array [0];
569dc494
RO
1666
1667 ;
1668 return 0;
1669}
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_lo=$ac_mid; break
1673else
1674 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1675 if test $ac_mid -le $ac_hi; then
1676 ac_lo= ac_hi=
1677 break
1678 fi
1679 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1680fi
1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 done
1683else
1684 ac_lo= ac_hi=
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689# Binary search between lo and hi bounds.
1690while test "x$ac_lo" != "x$ac_hi"; do
1691 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693/* end confdefs.h. */
1694$4
1695int
1696main ()
1697{
1698static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1699test_array [0] = 0;
1700return test_array [0];
569dc494
RO
1701
1702 ;
1703 return 0;
1704}
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707 ac_hi=$ac_mid
1708else
1709 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712done
1713case $ac_lo in #((
1714?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1715'') ac_retval=1 ;;
1716esac
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h. */
1720$4
1721static long int longval () { return $2; }
1722static unsigned long int ulongval () { return $2; }
1723#include <stdio.h>
1724#include <stdlib.h>
1725int
1726main ()
1727{
1728
1729 FILE *f = fopen ("conftest.val", "w");
1730 if (! f)
1731 return 1;
1732 if (($2) < 0)
1733 {
1734 long int i = longval ();
1735 if (i != ($2))
1736 return 1;
1737 fprintf (f, "%ld", i);
1738 }
1739 else
1740 {
1741 unsigned long int i = ulongval ();
1742 if (i != ($2))
1743 return 1;
1744 fprintf (f, "%lu", i);
1745 }
1746 /* Do not output a trailing newline, as this causes \r\n confusion
1747 on some platforms. */
1748 return ferror (f) || fclose (f) != 0;
1749
1750 ;
1751 return 0;
1752}
1753_ACEOF
1754if ac_fn_c_try_run "$LINENO"; then :
1755 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1756else
1757 ac_retval=1
1758fi
1759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1760 conftest.$ac_objext conftest.beam conftest.$ac_ext
1761rm -f conftest.val
1762
1763 fi
22e05272
JM
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
569dc494
RO
1766
1767} # ac_fn_c_compute_int
0e4a0def
KT
1768
1769# ac_fn_c_check_header_preproc LINENO HEADER VAR
1770# ----------------------------------------------
1771# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1772ac_fn_c_check_header_preproc ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
22e05272 1777if eval \${$3+:} false; then :
0e4a0def
KT
1778 $as_echo_n "(cached) " >&6
1779else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h. */
1782#include <$2>
1783_ACEOF
1784if ac_fn_c_try_cpp "$LINENO"; then :
1785 eval "$3=yes"
1786else
1787 eval "$3=no"
1788fi
22e05272 1789rm -f conftest.err conftest.i conftest.$ac_ext
0e4a0def
KT
1790fi
1791eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
22e05272 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
0e4a0def
KT
1795
1796} # ac_fn_c_check_header_preproc
5213506e 1797cat >config.log <<_ACEOF
fa958513
DJ
1798This file contains any messages produced by compilers while
1799running configure, to aid debugging if configure makes a mistake.
1800
1801It was created by GNU C Runtime Library $as_me 1.0, which was
22e05272 1802generated by GNU Autoconf 2.69. Invocation command line was
fa958513
DJ
1803
1804 $ $0 $@
1805
1806_ACEOF
5213506e 1807exec 5>>config.log
fa958513
DJ
1808{
1809cat <<_ASUNAME
1810## --------- ##
1811## Platform. ##
1812## --------- ##
1813
1814hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1815uname -m = `(uname -m) 2>/dev/null || echo unknown`
1816uname -r = `(uname -r) 2>/dev/null || echo unknown`
1817uname -s = `(uname -s) 2>/dev/null || echo unknown`
1818uname -v = `(uname -v) 2>/dev/null || echo unknown`
1819
1820/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1821/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1822
1823/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1824/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1825/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1826/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
fa958513
DJ
1827/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1828/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1829/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1830
1831_ASUNAME
1832
1833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836 IFS=$as_save_IFS
1837 test -z "$as_dir" && as_dir=.
5213506e
RW
1838 $as_echo "PATH: $as_dir"
1839 done
1840IFS=$as_save_IFS
fa958513
DJ
1841
1842} >&5
1843
1844cat >&5 <<_ACEOF
1845
1846
1847## ----------- ##
1848## Core tests. ##
1849## ----------- ##
1850
1851_ACEOF
1852
1853
1854# Keep a trace of the command line.
1855# Strip out --no-create and --no-recursion so they do not pile up.
1856# Strip out --silent because we don't want to record it for future runs.
1857# Also quote any args containing shell meta-characters.
1858# Make two passes to allow for proper duplicate-argument suppression.
1859ac_configure_args=
1860ac_configure_args0=
1861ac_configure_args1=
fa958513
DJ
1862ac_must_keep_next=false
1863for ac_pass in 1 2
1864do
1865 for ac_arg
1866 do
1867 case $ac_arg in
1868 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1870 | -silent | --silent | --silen | --sile | --sil)
1871 continue ;;
5213506e
RW
1872 *\'*)
1873 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fa958513
DJ
1874 esac
1875 case $ac_pass in
5213506e 1876 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
fa958513 1877 2)
5213506e 1878 as_fn_append ac_configure_args1 " '$ac_arg'"
fa958513
DJ
1879 if test $ac_must_keep_next = true; then
1880 ac_must_keep_next=false # Got value, back to normal.
1881 else
1882 case $ac_arg in
1883 *=* | --config-cache | -C | -disable-* | --disable-* \
1884 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1885 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1886 | -with-* | --with-* | -without-* | --without-* | --x)
1887 case "$ac_configure_args0 " in
1888 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1889 esac
1890 ;;
1891 -* ) ac_must_keep_next=true ;;
1892 esac
1893 fi
5213506e 1894 as_fn_append ac_configure_args " '$ac_arg'"
fa958513
DJ
1895 ;;
1896 esac
1897 done
1898done
5213506e
RW
1899{ ac_configure_args0=; unset ac_configure_args0;}
1900{ ac_configure_args1=; unset ac_configure_args1;}
fa958513
DJ
1901
1902# When interrupted or exit'd, cleanup temporary files, and complete
1903# config.log. We remove comments because anyway the quotes in there
1904# would cause problems or look ugly.
5213506e
RW
1905# WARNING: Use '\'' to represent an apostrophe within the trap.
1906# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
fa958513
DJ
1907trap 'exit_status=$?
1908 # Save into config.log some information that might help in debugging.
1909 {
1910 echo
1911
22e05272 1912 $as_echo "## ---------------- ##
fa958513 1913## Cache variables. ##
22e05272 1914## ---------------- ##"
fa958513
DJ
1915 echo
1916 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1917(
1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1919 eval ac_val=\$$ac_var
1920 case $ac_val in #(
1921 *${as_nl}*)
1922 case $ac_var in #(
1923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1924$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1925 esac
1926 case $ac_var in #(
1927 _ | IFS | as_nl) ;; #(
1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1929 *) { eval $ac_var=; unset $ac_var;} ;;
1930 esac ;;
1931 esac
1932 done
fa958513 1933 (set) 2>&1 |
5213506e
RW
1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1935 *${as_nl}ac_space=\ *)
fa958513 1936 sed -n \
5213506e
RW
1937 "s/'\''/'\''\\\\'\'''\''/g;
1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1939 ;; #(
fa958513 1940 *)
5213506e 1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
fa958513 1942 ;;
5213506e
RW
1943 esac |
1944 sort
1945)
fa958513
DJ
1946 echo
1947
22e05272 1948 $as_echo "## ----------------- ##
fa958513 1949## Output variables. ##
22e05272 1950## ----------------- ##"
fa958513
DJ
1951 echo
1952 for ac_var in $ac_subst_vars
1953 do
5213506e
RW
1954 eval ac_val=\$$ac_var
1955 case $ac_val in
1956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957 esac
1958 $as_echo "$ac_var='\''$ac_val'\''"
fa958513
DJ
1959 done | sort
1960 echo
1961
1962 if test -n "$ac_subst_files"; then
22e05272 1963 $as_echo "## ------------------- ##
5213506e 1964## File substitutions. ##
22e05272 1965## ------------------- ##"
fa958513
DJ
1966 echo
1967 for ac_var in $ac_subst_files
1968 do
5213506e
RW
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
fa958513
DJ
1974 done | sort
1975 echo
1976 fi
1977
1978 if test -s confdefs.h; then
22e05272 1979 $as_echo "## ----------- ##
fa958513 1980## confdefs.h. ##
22e05272 1981## ----------- ##"
fa958513 1982 echo
5213506e 1983 cat confdefs.h
fa958513
DJ
1984 echo
1985 fi
1986 test "$ac_signal" != 0 &&
5213506e
RW
1987 $as_echo "$as_me: caught signal $ac_signal"
1988 $as_echo "$as_me: exit $exit_status"
fa958513 1989 } >&5
5213506e
RW
1990 rm -f core *.core core.conftest.* &&
1991 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
fa958513 1992 exit $exit_status
5213506e 1993' 0
fa958513 1994for ac_signal in 1 2 13 15; do
5213506e 1995 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
fa958513
DJ
1996done
1997ac_signal=0
1998
1999# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2000rm -f -r conftest* confdefs.h
2001
2002$as_echo "/* confdefs.h */" > confdefs.h
fa958513
DJ
2003
2004# Predefined preprocessor variables.
2005
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_NAME "$PACKAGE_NAME"
2008_ACEOF
2009
fa958513
DJ
2010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2012_ACEOF
2013
fa958513
DJ
2014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_VERSION "$PACKAGE_VERSION"
2016_ACEOF
2017
fa958513
DJ
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_STRING "$PACKAGE_STRING"
2020_ACEOF
2021
fa958513
DJ
2022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2024_ACEOF
2025
5213506e
RW
2026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_URL "$PACKAGE_URL"
2028_ACEOF
2029
fa958513
DJ
2030
2031# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2032# Prefer an explicitly selected file to automatically selected ones.
2033ac_site_file1=NONE
2034ac_site_file2=NONE
2035if test -n "$CONFIG_SITE"; then
22e05272
JM
2036 # We do not want a PATH search for config.site.
2037 case $CONFIG_SITE in #((
2038 -*) ac_site_file1=./$CONFIG_SITE;;
2039 */*) ac_site_file1=$CONFIG_SITE;;
2040 *) ac_site_file1=./$CONFIG_SITE;;
2041 esac
5213506e
RW
2042elif test "x$prefix" != xNONE; then
2043 ac_site_file1=$prefix/share/config.site
2044 ac_site_file2=$prefix/etc/config.site
2045else
2046 ac_site_file1=$ac_default_prefix/share/config.site
2047 ac_site_file2=$ac_default_prefix/etc/config.site
fa958513 2048fi
5213506e
RW
2049for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2050do
2051 test "x$ac_site_file" = xNONE && continue
22e05272 2052 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2054$as_echo "$as_me: loading site script $ac_site_file" >&6;}
fa958513 2055 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2056 . "$ac_site_file" \
2057 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2059as_fn_error $? "failed to load site script $ac_site_file
2060See \`config.log' for more details" "$LINENO" 5; }
fa958513
DJ
2061 fi
2062done
2063
2064if test -r "$cache_file"; then
22e05272
JM
2065 # Some versions of bash will fail to source /dev/null (special files
2066 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2067 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2069$as_echo "$as_me: loading cache $cache_file" >&6;}
fa958513 2070 case $cache_file in
5213506e
RW
2071 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2072 *) . "./$cache_file";;
fa958513
DJ
2073 esac
2074 fi
2075else
5213506e
RW
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2077$as_echo "$as_me: creating cache $cache_file" >&6;}
fa958513
DJ
2078 >$cache_file
2079fi
2080
2081# Check that the precious variables saved in the cache have kept the same
2082# value.
2083ac_cache_corrupted=false
5213506e 2084for ac_var in $ac_precious_vars; do
fa958513
DJ
2085 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2086 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2087 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2088 eval ac_new_val=\$ac_env_${ac_var}_value
fa958513
DJ
2089 case $ac_old_set,$ac_new_set in
2090 set,)
5213506e
RW
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2092$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
fa958513
DJ
2093 ac_cache_corrupted=: ;;
2094 ,set)
5213506e
RW
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2096$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
fa958513
DJ
2097 ac_cache_corrupted=: ;;
2098 ,);;
2099 *)
2100 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2101 # differences in whitespace do not lead to failure.
2102 ac_old_val_w=`echo x $ac_old_val`
2103 ac_new_val_w=`echo x $ac_new_val`
2104 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2106$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2107 ac_cache_corrupted=:
2108 else
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2110$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2111 eval $ac_var=\$ac_old_val
2112 fi
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2114$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2116$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
fa958513
DJ
2117 fi;;
2118 esac
2119 # Pass precious variables to config.status.
2120 if test "$ac_new_set" = set; then
2121 case $ac_new_val in
5213506e 2122 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
fa958513
DJ
2123 *) ac_arg=$ac_var=$ac_new_val ;;
2124 esac
2125 case " $ac_configure_args " in
2126 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2127 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
fa958513
DJ
2128 esac
2129 fi
2130done
2131if $ac_cache_corrupted; then
5213506e
RW
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2135$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2136 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fa958513 2137fi
5213506e
RW
2138## -------------------- ##
2139## Main body of script. ##
2140## -------------------- ##
fa958513 2141
d6efbf5a
DJ
2142ac_ext=c
2143ac_cpp='$CPP $CPPFLAGS'
2144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147
fa958513
DJ
2148
2149
2150
2151
2152
2153
07ba94b9
AP
2154# The libgcc should not depend on any header files
2155
2156
fa958513 2157
5213506e
RW
2158# Check whether --with-target-subdir was given.
2159if test "${with_target_subdir+set}" = set; then :
2160 withval=$with_target_subdir;
2161fi
fa958513
DJ
2162
2163
5213506e
RW
2164# Check whether --with-cross-host was given.
2165if test "${with_cross_host+set}" = set; then :
2166 withval=$with_cross_host;
2167fi
fa958513
DJ
2168
2169
5213506e
RW
2170# Check whether --with-ld was given.
2171if test "${with_ld+set}" = set; then :
2172 withval=$with_ld;
2173fi
fa958513
DJ
2174
2175
fa958513
DJ
2176if test "${srcdir}" = "."; then
2177 if test -n "${with_build_subdir}"; then
2178 libgcc_topdir="${srcdir}/../.."
2179 with_target_subdir=
2180 elif test -z "${with_target_subdir}"; then
2181 libgcc_topdir="${srcdir}/.."
2182 else
2183 if test "${with_target_subdir}" != "."; then
2184 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2185 else
2186 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2187 fi
2188 fi
2189else
2190 libgcc_topdir="${srcdir}/.."
2191fi
2192
2193ac_aux_dir=
5213506e 2194for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
22e05272
JM
2195 if test -f "$ac_dir/install-sh"; then
2196 ac_aux_dir=$ac_dir
2197 ac_install_sh="$ac_aux_dir/install-sh -c"
2198 break
2199 elif test -f "$ac_dir/install.sh"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/install.sh -c"
2202 break
2203 elif test -f "$ac_dir/shtool"; then
2204 ac_aux_dir=$ac_dir
2205 ac_install_sh="$ac_aux_dir/shtool install -c"
2206 break
2207 fi
fa958513
DJ
2208done
2209if test -z "$ac_aux_dir"; then
22e05272 2210 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
fa958513 2211fi
5213506e
RW
2212
2213# These three variables are undocumented and unsupported,
2214# and are intended to be withdrawn in a future Autoconf release.
2215# They can cause serious problems if a builder's source tree is in a directory
2216# whose full name contains unusual characters.
2217ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
fa958513 2220
fa958513 2221
aca06c90
RO
2222ac_config_headers="$ac_config_headers auto-target.h:config.in"
2223
d6efbf5a 2224
0824d924
KT
2225# Check whether --enable-shared was given.
2226if test "${enable_shared+set}" = set; then :
2227 enableval=$enable_shared;
2228 case $enable_shared in
2229 yes | no) ;;
2230 *)
2231 enable_shared=no
2232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2233 for pkg in $enableval; do
2234 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2235 enable_shared=yes
2236 fi
2237 done
2238 IFS="$ac_save_ifs"
2239 ;;
2240 esac
fa958513
DJ
2241
2242else
0824d924 2243 enable_shared=yes
5213506e
RW
2244fi
2245
d6efbf5a
DJ
2246
2247
1765b023
RV
2248# Check whether --enable-gcov was given.
2249if test "${enable_gcov+set}" = set; then :
2250 enableval=$enable_gcov;
2251else
2252 enable_gcov=yes
2253fi
2254
2255
2256
0824d924
KT
2257# Check whether --enable-vtable-verify was given.
2258if test "${enable_vtable_verify+set}" = set; then :
2259 enableval=$enable_vtable_verify; case "$enableval" in
2260 yes) enable_vtable_verify=yes ;;
2261 no) enable_vtable_verify=no ;;
2262 *) enable_vtable_verify=no;;
2263 esac
2077db1b 2264else
0824d924 2265 enable_vtable_verify=no
2077db1b
CT
2266fi
2267
0824d924
KT
2268
2269
2270
2271# Check whether --with-aix-soname was given.
2272if test "${with_aix_soname+set}" = set; then :
2273 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2274 power*-*-aix[5-9]*:yes)
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2276$as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2277 case ${withval} in
2278 aix|svr4|both) ;;
22e05272 2279 *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;;
0824d924
KT
2280 esac
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2282$as_echo "$withval" >&6; }
2283 ;;
2284 *) with_aix_soname=aix ;;
2285 esac
2286
dd913323 2287else
0824d924 2288 with_aix_soname=aix
dd913323
MH
2289fi
2290
0824d924
KT
2291
2292
2293# Make sure we can run config.sub.
2294$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2295 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
0824d924
KT
2296
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298$as_echo_n "checking build system type... " >&6; }
22e05272 2299if ${ac_cv_build+:} false; then :
f9989b51
RO
2300 $as_echo_n "(cached) " >&6
2301else
0824d924
KT
2302 ac_build_alias=$build_alias
2303test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305test "x$ac_build_alias" = x &&
22e05272 2306 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
0824d924 2307ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
f9989b51
RO
2309
2310fi
0824d924
KT
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312$as_echo "$ac_cv_build" >&6; }
2313case $ac_cv_build in
2314*-*-*) ;;
22e05272 2315*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
0824d924
KT
2316esac
2317build=$ac_cv_build
2318ac_save_IFS=$IFS; IFS='-'
2319set x $ac_cv_build
2320shift
2321build_cpu=$1
2322build_vendor=$2
2323shift; shift
2324# Remember, the first character of IFS is used to create $*,
2325# except with old shells:
2326build_os=$*
2327IFS=$ac_save_IFS
2328case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
f9989b51 2329
a2a5609b 2330
0824d924
KT
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332$as_echo_n "checking host system type... " >&6; }
22e05272 2333if ${ac_cv_host+:} false; then :
a2a5609b
KT
2334 $as_echo_n "(cached) " >&6
2335else
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2338else
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
a2a5609b
KT
2341fi
2342
2343fi
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
f9989b51
RO
2345$as_echo "$ac_cv_host" >&6; }
2346case $ac_cv_host in
2347*-*-*) ;;
22e05272 2348*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
f9989b51
RO
2349esac
2350host=$ac_cv_host
2351ac_save_IFS=$IFS; IFS='-'
2352set x $ac_cv_host
2353shift
2354host_cpu=$1
2355host_vendor=$2
2356shift; shift
2357# Remember, the first character of IFS is used to create $*,
2358# except with old shells:
2359host_os=$*
2360IFS=$ac_save_IFS
2361case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2362
2363
2364
2365
5d1c8e77 2366
f9989b51
RO
2367
2368case "${host}" in
2369 # PIC is the default on some targets or must not be used.
2370 *-*-darwin*)
cacf1f59
JJ
2371 # For darwin, common symbols are not allowed in MH_DYLIB files
2372 case "${CFLAGS}" in
2373 # If we are using a compiler supporting mdynamic-no-pic
2374 # and the option has been tested as safe to add, then cancel
2375 # it here, since the code generated is incompatible with shared
8f56cb51 2376 # libs.
cacf1f59
JJ
2377 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2378 *) PICFLAG=-fno-common ;;
2379 esac
f9989b51
RO
2380 ;;
2381 alpha*-dec-osf5*)
2382 # PIC is the default.
2383 ;;
2384 hppa*64*-*-hpux*)
2385 # PIC is the default for 64-bit PA HP-UX.
2386 ;;
e9fd8c19
KT
2387 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2388 ;;
2389 i[34567]86-*-mingw* | x86_64-*-mingw*)
f9989b51 2390 ;;
8f56cb51
AM
2391 i[34567]86-*-interix[3-9]*)
2392 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2393 # Instead, we relocate shared libraries at runtime.
2394 ;;
5d1c8e77 2395 i[34567]86-*-nto-qnx*)
f9989b51
RO
2396 # QNX uses GNU C++, but need to define -shared option too, otherwise
2397 # it will coredump.
2398 PICFLAG='-fPIC -shared'
2399 ;;
5d1c8e77 2400 i[34567]86-pc-msdosdjgpp*)
f9989b51
RO
2401 # DJGPP does not support shared libraries at all.
2402 ;;
2403 ia64*-*-hpux*)
2404 # On IA64 HP-UX, PIC is the default but the pic flag
2405 # sets the default TLS model and affects inlining.
f9989b51
RO
2406 PICFLAG=-fPIC
2407 ;;
2408 mips-sgi-irix6*)
2409 # PIC is the default.
2410 ;;
2411 rs6000-ibm-aix* | powerpc-ibm-aix*)
2412 # All AIX code is PIC.
2413 ;;
2414
2415 # Some targets support both -fPIC and -fpic, but prefer the latter.
2416 # FIXME: Why?
5d1c8e77 2417 i[34567]86-*-* | x86_64-*-*)
f9989b51
RO
2418 PICFLAG=-fpic
2419 ;;
f9989b51 2420 # FIXME: Override -fPIC default in libgcc only?
5d1c8e77 2421 sh-*-linux* | sh[2346lbe]*-*-linux*)
f9989b51
RO
2422 PICFLAG=-fpic
2423 ;;
2424 # FIXME: Simplify to sh*-*-netbsd*?
8f56cb51
AM
2425 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2426 sh64-*-netbsd* | sh64l*-*-netbsd*)
f9989b51
RO
2427 PICFLAG=-fpic
2428 ;;
f9989b51
RO
2429 # Default to -fPIC unless specified otherwise.
2430 *)
2431 PICFLAG=-fPIC
2432 ;;
2433esac
2434
5d1c8e77
RO
2435# If the user explicitly uses -fpic/-fPIC, keep that.
2436case "${CFLAGS}" in
2437 *-fpic*)
2438 PICFLAG=-fpic
2439 ;;
2440 *-fPIC*)
2441 PICFLAG=-fPIC
2442 ;;
2443esac
2444
f9989b51
RO
2445
2446
5213506e
RW
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2448$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2449# Check whether --enable-version-specific-runtime-libs was given.
2450if test "${enable_version_specific_runtime_libs+set}" = set; then :
2451 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
d6efbf5a
DJ
2452 yes) version_specific_libs=yes ;;
2453 no) version_specific_libs=no ;;
22e05272 2454 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
d6efbf5a
DJ
2455 esac
2456else
2457 version_specific_libs=no
5213506e
RW
2458fi
2459
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2461$as_echo "$version_specific_libs" >&6; }
fa958513 2462
14e8fc8b 2463
5213506e
RW
2464# Check whether --with-slibdir was given.
2465if test "${with_slibdir+set}" = set; then :
2466 withval=$with_slibdir; slibdir="$with_slibdir"
fa958513 2467else
d6efbf5a 2468 if test "${version_specific_libs}" = yes; then
fa958513 2469 slibdir='$(libsubdir)'
d6efbf5a
DJ
2470elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2471 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
fa958513
DJ
2472else
2473 slibdir='$(libdir)'
2474fi
5213506e
RW
2475fi
2476
fa958513
DJ
2477
2478
6efbd53f
RW
2479# Command-line options.
2480# Very limited version of AC_MAINTAINER_MODE.
5213506e
RW
2481# Check whether --enable-maintainer-mode was given.
2482if test "${enable_maintainer_mode+set}" = set; then :
2483 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
6efbd53f
RW
2484 yes) MAINT='' ;;
2485 no) MAINT='#' ;;
22e05272 2486 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
6efbd53f
RW
2487 esac
2488 maintainer_mode=${enableval}
2489else
2490 MAINT='#'
5213506e
RW
2491fi
2492
6efbd53f 2493
fa958513
DJ
2494# Find a good install program. We prefer a C program (faster),
2495# so one script is as good as another. But avoid the broken or
2496# incompatible versions:
2497# SysV /etc/install, /usr/sbin/install
2498# SunOS /usr/etc/install
2499# IRIX /sbin/install
2500# AIX /bin/install
2501# AmigaOS /C/install, which installs bootblocks on floppy discs
2502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505# OS/2's system install, which has a completely different semantic
2506# ./install, which can be erroneously created by make from ./install.sh.
5213506e
RW
2507# Reject install programs that cannot install multiple files.
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2509$as_echo_n "checking for a BSD-compatible install... " >&6; }
fa958513 2510if test -z "$INSTALL"; then
22e05272 2511if ${ac_cv_path_install+:} false; then :
5213506e 2512 $as_echo_n "(cached) " >&6
fa958513
DJ
2513else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
5213506e
RW
2519 # Account for people who put trailing slashes in PATH elements.
2520case $as_dir/ in #((
2521 ./ | .// | /[cC]/* | \
fa958513 2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2523 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
fa958513
DJ
2524 /usr/ucb/* ) ;;
2525 *)
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2531 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
fa958513
DJ
2532 if test $ac_prog = install &&
2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # AIX install. It has an incompatible calling convention.
2535 :
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2539 :
2540 else
5213506e
RW
2541 rm -rf conftest.one conftest.two conftest.dir
2542 echo one > conftest.one
2543 echo two > conftest.two
2544 mkdir conftest.dir
2545 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2546 test -s conftest.one && test -s conftest.two &&
2547 test -s conftest.dir/conftest.one &&
2548 test -s conftest.dir/conftest.two
2549 then
2550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2551 break 3
2552 fi
fa958513
DJ
2553 fi
2554 fi
2555 done
2556 done
2557 ;;
2558esac
fa958513 2559
5213506e
RW
2560 done
2561IFS=$as_save_IFS
2562
2563rm -rf conftest.one conftest.two conftest.dir
fa958513
DJ
2564
2565fi
2566 if test "${ac_cv_path_install+set}" = set; then
2567 INSTALL=$ac_cv_path_install
2568 else
5213506e
RW
2569 # As a last resort, use the slow shell script. Don't cache a
2570 # value for INSTALL within a source directory, because that will
fa958513 2571 # break other packages using the cache if that directory is
5213506e 2572 # removed, or if the value is a relative name.
fa958513
DJ
2573 INSTALL=$ac_install_sh
2574 fi
2575fi
5213506e
RW
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2577$as_echo "$INSTALL" >&6; }
fa958513
DJ
2578
2579# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580# It thinks the first close brace ends the variable substitution.
2581test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2582
2583test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2584
2585test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2586
2587
2588for ac_prog in gawk mawk nawk awk
2589do
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591set dummy $ac_prog; ac_word=$2
5213506e
RW
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2594if ${ac_cv_prog_AWK+:} false; then :
5213506e 2595 $as_echo_n "(cached) " >&6
fa958513
DJ
2596else
2597 if test -n "$AWK"; then
2598 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
5213506e 2605 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 2607 ac_cv_prog_AWK="$ac_prog"
5213506e 2608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2609 break 2
2610 fi
2611done
5213506e
RW
2612 done
2613IFS=$as_save_IFS
fa958513
DJ
2614
2615fi
2616fi
2617AWK=$ac_cv_prog_AWK
2618if test -n "$AWK"; then
5213506e
RW
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2620$as_echo "$AWK" >&6; }
fa958513 2621else
5213506e
RW
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623$as_echo "no" >&6; }
fa958513
DJ
2624fi
2625
5213506e 2626
fa958513
DJ
2627 test -n "$AWK" && break
2628done
2629
2630# We need awk; bail out if it's missing.
2631case ${AWK} in
22e05272 2632 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
fa958513
DJ
2633esac
2634
fa958513
DJ
2635
2636 case ${build_alias} in
2637 "") build_noncanonical=${build} ;;
2638 *) build_noncanonical=${build_alias} ;;
2639esac
2640
2641 case ${host_alias} in
2642 "") host_noncanonical=${build_noncanonical} ;;
2643 *) host_noncanonical=${host_alias} ;;
2644esac
2645
2646
2647
14e8fc8b
PB
2648 case ${target_alias} in
2649 "") target_noncanonical=${host_noncanonical} ;;
2650 *) target_noncanonical=${target_alias} ;;
2651esac
2652
2653
58c741a6
DK
2654
2655
14e8fc8b
PB
2656# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2657# have matching libraries, they should use host libraries: Makefile.tpl
2658# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2659# However, they still use the build modules, because the corresponding
2660# host modules (e.g. bison) are only built for the host when bootstrap
2661# finishes. So:
2662# - build_subdir is where we find build modules, and never changes.
2663# - build_libsubdir is where we find build libraries, and can be overridden.
2664
2665# Prefix 'build-' so this never conflicts with target_subdir.
2666build_subdir="build-${build_noncanonical}"
2667
5213506e
RW
2668# Check whether --with-build-libsubdir was given.
2669if test "${with_build_libsubdir+set}" = set; then :
2670 withval=$with_build_libsubdir; build_libsubdir="$withval"
14e8fc8b
PB
2671else
2672 build_libsubdir="$build_subdir"
5213506e
RW
2673fi
2674
14e8fc8b
PB
2675# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2676if ( test $srcdir = . && test -d gcc ) \
2677 || test -d $srcdir/../host-${host_noncanonical}; then
2678 host_subdir="host-${host_noncanonical}"
2679else
2680 host_subdir=.
2681fi
2682# No prefix.
2683target_subdir=${target_noncanonical}
2684
fa958513 2685
58c741a6
DK
2686# Calculate toolexeclibdir
2687# Also toolexecdir, though it's only used in toolexeclibdir
2688case ${version_specific_libs} in
2689 yes)
2690 # Need the gcc compiler version to know where to install libraries
2691 # and header files if --enable-version-specific-runtime-libs option
2692 # is selected.
2693 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2694 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2695 ;;
2696 no)
2697 if test -n "$with_cross_host" &&
2698 test x"$with_cross_host" != x"no"; then
2699 # Install a library built with a cross compiler in tooldir, not libdir.
2700 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2701 toolexeclibdir='$(toolexecdir)/lib'
2702 else
2703 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2704 toolexeclibdir='$(libdir)'
2705 fi
2706 multi_os_directory=`$CC -print-multi-os-directory`
2707 case $multi_os_directory in
2708 .) ;; # Avoid trailing /.
2709 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2710 esac
2711 ;;
2712esac
2713
2714
2715
fa958513
DJ
2716if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2718set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2721if ${ac_cv_prog_AR+:} false; then :
5213506e 2722 $as_echo_n "(cached) " >&6
fa958513
DJ
2723else
2724 if test -n "$AR"; then
2725 ac_cv_prog_AR="$AR" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
5213506e 2732 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 2734 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2736 break 2
2737 fi
2738done
5213506e
RW
2739 done
2740IFS=$as_save_IFS
fa958513
DJ
2741
2742fi
2743fi
2744AR=$ac_cv_prog_AR
2745if test -n "$AR"; then
5213506e
RW
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2747$as_echo "$AR" >&6; }
fa958513 2748else
5213506e
RW
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
fa958513
DJ
2751fi
2752
5213506e 2753
fa958513
DJ
2754fi
2755if test -z "$ac_cv_prog_AR"; then
2756 ac_ct_AR=$AR
2757 # Extract the first word of "ar", so it can be a program name with args.
2758set dummy ar; ac_word=$2
5213506e
RW
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2761if ${ac_cv_prog_ac_ct_AR+:} false; then :
5213506e 2762 $as_echo_n "(cached) " >&6
fa958513
DJ
2763else
2764 if test -n "$ac_ct_AR"; then
2765 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
5213506e 2772 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 2774 ac_cv_prog_ac_ct_AR="ar"
5213506e 2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2776 break 2
2777 fi
2778done
5213506e
RW
2779 done
2780IFS=$as_save_IFS
fa958513
DJ
2781
2782fi
2783fi
2784ac_ct_AR=$ac_cv_prog_ac_ct_AR
2785if test -n "$ac_ct_AR"; then
5213506e
RW
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2787$as_echo "$ac_ct_AR" >&6; }
fa958513 2788else
5213506e
RW
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790$as_echo "no" >&6; }
fa958513
DJ
2791fi
2792
5213506e
RW
2793 if test "x$ac_ct_AR" = x; then
2794 AR=""
2795 else
2796 case $cross_compiling:$ac_tool_warned in
2797yes:)
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800ac_tool_warned=yes ;;
2801esac
2802 AR=$ac_ct_AR
2803 fi
fa958513
DJ
2804else
2805 AR="$ac_cv_prog_AR"
2806fi
2807
2808if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2813if ${ac_cv_prog_LIPO+:} false; then :
5213506e 2814 $as_echo_n "(cached) " >&6
fa958513
DJ
2815else
2816 if test -n "$LIPO"; then
2817 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
5213506e 2824 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 2826 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2828 break 2
2829 fi
2830done
5213506e
RW
2831 done
2832IFS=$as_save_IFS
fa958513
DJ
2833
2834fi
2835fi
2836LIPO=$ac_cv_prog_LIPO
2837if test -n "$LIPO"; then
5213506e
RW
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2839$as_echo "$LIPO" >&6; }
fa958513 2840else
5213506e
RW
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
fa958513
DJ
2843fi
2844
5213506e 2845
fa958513
DJ
2846fi
2847if test -z "$ac_cv_prog_LIPO"; then
2848 ac_ct_LIPO=$LIPO
2849 # Extract the first word of "lipo", so it can be a program name with args.
2850set dummy lipo; ac_word=$2
5213506e
RW
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2853if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5213506e 2854 $as_echo_n "(cached) " >&6
fa958513
DJ
2855else
2856 if test -n "$ac_ct_LIPO"; then
2857 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
5213506e 2864 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 2866 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2868 break 2
2869 fi
2870done
5213506e
RW
2871 done
2872IFS=$as_save_IFS
fa958513 2873
fa958513
DJ
2874fi
2875fi
2876ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2877if test -n "$ac_ct_LIPO"; then
5213506e
RW
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2879$as_echo "$ac_ct_LIPO" >&6; }
fa958513 2880else
5213506e
RW
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
fa958513
DJ
2883fi
2884
5213506e
RW
2885 if test "x$ac_ct_LIPO" = x; then
2886 LIPO=":"
2887 else
2888 case $cross_compiling:$ac_tool_warned in
2889yes:)
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2892ac_tool_warned=yes ;;
2893esac
2894 LIPO=$ac_ct_LIPO
2895 fi
fa958513
DJ
2896else
2897 LIPO="$ac_cv_prog_LIPO"
2898fi
2899
2900if test -n "$ac_tool_prefix"; then
2901 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2902set dummy ${ac_tool_prefix}nm; ac_word=$2
5213506e
RW
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2905if ${ac_cv_prog_NM+:} false; then :
5213506e 2906 $as_echo_n "(cached) " >&6
fa958513
DJ
2907else
2908 if test -n "$NM"; then
2909 ac_cv_prog_NM="$NM" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
5213506e 2916 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 2918 ac_cv_prog_NM="${ac_tool_prefix}nm"
5213506e 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2920 break 2
2921 fi
2922done
5213506e
RW
2923 done
2924IFS=$as_save_IFS
fa958513
DJ
2925
2926fi
2927fi
2928NM=$ac_cv_prog_NM
2929if test -n "$NM"; then
5213506e
RW
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2931$as_echo "$NM" >&6; }
fa958513 2932else
5213506e
RW
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
fa958513
DJ
2935fi
2936
5213506e 2937
fa958513
DJ
2938fi
2939if test -z "$ac_cv_prog_NM"; then
2940 ac_ct_NM=$NM
2941 # Extract the first word of "nm", so it can be a program name with args.
2942set dummy nm; ac_word=$2
5213506e
RW
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2945if ${ac_cv_prog_ac_ct_NM+:} false; then :
5213506e 2946 $as_echo_n "(cached) " >&6
fa958513
DJ
2947else
2948 if test -n "$ac_ct_NM"; then
2949 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
5213506e 2956 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 2958 ac_cv_prog_ac_ct_NM="nm"
5213506e 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2960 break 2
2961 fi
2962done
5213506e
RW
2963 done
2964IFS=$as_save_IFS
fa958513
DJ
2965
2966fi
2967fi
2968ac_ct_NM=$ac_cv_prog_ac_ct_NM
2969if test -n "$ac_ct_NM"; then
5213506e
RW
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2971$as_echo "$ac_ct_NM" >&6; }
fa958513 2972else
5213506e
RW
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
fa958513
DJ
2975fi
2976
5213506e
RW
2977 if test "x$ac_ct_NM" = x; then
2978 NM=""
2979 else
2980 case $cross_compiling:$ac_tool_warned in
2981yes:)
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2984ac_tool_warned=yes ;;
2985esac
2986 NM=$ac_ct_NM
2987 fi
fa958513
DJ
2988else
2989 NM="$ac_cv_prog_NM"
2990fi
2991
2992if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2994set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2997if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 2998 $as_echo_n "(cached) " >&6
fa958513
DJ
2999else
3000 if test -n "$RANLIB"; then
3001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
5213506e 3008 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3012 break 2
3013 fi
3014done
5213506e
RW
3015 done
3016IFS=$as_save_IFS
fa958513
DJ
3017
3018fi
3019fi
3020RANLIB=$ac_cv_prog_RANLIB
3021if test -n "$RANLIB"; then
5213506e
RW
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3023$as_echo "$RANLIB" >&6; }
fa958513 3024else
5213506e
RW
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
fa958513
DJ
3027fi
3028
5213506e 3029
fa958513
DJ
3030fi
3031if test -z "$ac_cv_prog_RANLIB"; then
3032 ac_ct_RANLIB=$RANLIB
3033 # Extract the first word of "ranlib", so it can be a program name with args.
3034set dummy ranlib; ac_word=$2
5213506e
RW
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3037if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5213506e 3038 $as_echo_n "(cached) " >&6
fa958513
DJ
3039else
3040 if test -n "$ac_ct_RANLIB"; then
3041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
5213506e 3048 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3050 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3052 break 2
3053 fi
3054done
5213506e
RW
3055 done
3056IFS=$as_save_IFS
fa958513 3057
fa958513
DJ
3058fi
3059fi
3060ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3061if test -n "$ac_ct_RANLIB"; then
5213506e
RW
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3063$as_echo "$ac_ct_RANLIB" >&6; }
fa958513 3064else
5213506e
RW
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066$as_echo "no" >&6; }
fa958513
DJ
3067fi
3068
5213506e
RW
3069 if test "x$ac_ct_RANLIB" = x; then
3070 RANLIB=":"
3071 else
3072 case $cross_compiling:$ac_tool_warned in
3073yes:)
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076ac_tool_warned=yes ;;
3077esac
3078 RANLIB=$ac_ct_RANLIB
3079 fi
fa958513
DJ
3080else
3081 RANLIB="$ac_cv_prog_RANLIB"
3082fi
3083
3084if test -n "$ac_tool_prefix"; then
3085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3086set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3089if ${ac_cv_prog_STRIP+:} false; then :
5213506e 3090 $as_echo_n "(cached) " >&6
fa958513
DJ
3091else
3092 if test -n "$STRIP"; then
3093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
5213506e 3100 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3102 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3104 break 2
3105 fi
3106done
5213506e
RW
3107 done
3108IFS=$as_save_IFS
fa958513
DJ
3109
3110fi
3111fi
3112STRIP=$ac_cv_prog_STRIP
3113if test -n "$STRIP"; then
5213506e
RW
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3115$as_echo "$STRIP" >&6; }
fa958513 3116else
5213506e
RW
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118$as_echo "no" >&6; }
fa958513
DJ
3119fi
3120
5213506e 3121
fa958513
DJ
3122fi
3123if test -z "$ac_cv_prog_STRIP"; then
3124 ac_ct_STRIP=$STRIP
3125 # Extract the first word of "strip", so it can be a program name with args.
3126set dummy strip; ac_word=$2
5213506e
RW
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3129if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5213506e 3130 $as_echo_n "(cached) " >&6
fa958513
DJ
3131else
3132 if test -n "$ac_ct_STRIP"; then
3133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3134else
3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136for as_dir in $PATH
3137do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
5213506e 3140 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3142 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3144 break 2
3145 fi
3146done
5213506e
RW
3147 done
3148IFS=$as_save_IFS
fa958513 3149
fa958513
DJ
3150fi
3151fi
3152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3153if test -n "$ac_ct_STRIP"; then
5213506e
RW
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3155$as_echo "$ac_ct_STRIP" >&6; }
fa958513 3156else
5213506e
RW
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
fa958513
DJ
3159fi
3160
5213506e
RW
3161 if test "x$ac_ct_STRIP" = x; then
3162 STRIP=":"
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165yes:)
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168ac_tool_warned=yes ;;
3169esac
3170 STRIP=$ac_ct_STRIP
3171 fi
fa958513
DJ
3172else
3173 STRIP="$ac_cv_prog_STRIP"
3174fi
3175
5213506e
RW
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3177$as_echo_n "checking whether ln -s works... " >&6; }
fa958513
DJ
3178LN_S=$as_ln_s
3179if test "$LN_S" = "ln -s"; then
5213506e
RW
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181$as_echo "yes" >&6; }
fa958513 3182else
5213506e
RW
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3184$as_echo "no, using $LN_S" >&6; }
fa958513
DJ
3185fi
3186
3187
3188
3189ac_ext=c
3190ac_cpp='$CPP $CPPFLAGS'
3191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3196set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3199if ${ac_cv_prog_CC+:} false; then :
5213506e 3200 $as_echo_n "(cached) " >&6
fa958513
DJ
3201else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204else
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
5213506e 3210 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3214 break 2
3215 fi
3216done
5213506e
RW
3217 done
3218IFS=$as_save_IFS
fa958513
DJ
3219
3220fi
3221fi
3222CC=$ac_cv_prog_CC
3223if test -n "$CC"; then
5213506e
RW
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225$as_echo "$CC" >&6; }
fa958513 3226else
5213506e
RW
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228$as_echo "no" >&6; }
fa958513
DJ
3229fi
3230
5213506e 3231
fa958513
DJ
3232fi
3233if test -z "$ac_cv_prog_CC"; then
3234 ac_ct_CC=$CC
3235 # Extract the first word of "gcc", so it can be a program name with args.
3236set dummy gcc; ac_word=$2
5213506e
RW
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3239if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3240 $as_echo_n "(cached) " >&6
fa958513
DJ
3241else
3242 if test -n "$ac_ct_CC"; then
3243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
5213506e 3250 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3252 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3254 break 2
3255 fi
3256done
5213506e
RW
3257 done
3258IFS=$as_save_IFS
fa958513
DJ
3259
3260fi
3261fi
3262ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263if test -n "$ac_ct_CC"; then
5213506e
RW
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3265$as_echo "$ac_ct_CC" >&6; }
fa958513 3266else
5213506e
RW
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268$as_echo "no" >&6; }
fa958513
DJ
3269fi
3270
5213506e
RW
3271 if test "x$ac_ct_CC" = x; then
3272 CC=""
3273 else
3274 case $cross_compiling:$ac_tool_warned in
3275yes:)
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278ac_tool_warned=yes ;;
3279esac
3280 CC=$ac_ct_CC
3281 fi
fa958513
DJ
3282else
3283 CC="$ac_cv_prog_CC"
3284fi
3285
3286if test -z "$CC"; then
5213506e
RW
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
fa958513 3289set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3292if ${ac_cv_prog_CC+:} false; then :
5213506e 3293 $as_echo_n "(cached) " >&6
fa958513
DJ
3294else
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
5213506e 3303 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3305 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3307 break 2
3308 fi
3309done
5213506e
RW
3310 done
3311IFS=$as_save_IFS
fa958513
DJ
3312
3313fi
3314fi
3315CC=$ac_cv_prog_CC
3316if test -n "$CC"; then
5213506e
RW
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318$as_echo "$CC" >&6; }
d6efbf5a 3319else
5213506e
RW
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
d6efbf5a
DJ
3322fi
3323
d6efbf5a 3324
5213506e 3325 fi
fa958513
DJ
3326fi
3327if test -z "$CC"; then
3328 # Extract the first word of "cc", so it can be a program name with args.
3329set dummy cc; ac_word=$2
5213506e
RW
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3332if ${ac_cv_prog_CC+:} false; then :
5213506e 3333 $as_echo_n "(cached) " >&6
fa958513
DJ
3334else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337else
3338 ac_prog_rejected=no
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
5213506e 3344 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513
DJ
3346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3347 ac_prog_rejected=yes
3348 continue
3349 fi
3350 ac_cv_prog_CC="cc"
5213506e 3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3352 break 2
3353 fi
3354done
5213506e
RW
3355 done
3356IFS=$as_save_IFS
fa958513
DJ
3357
3358if test $ac_prog_rejected = yes; then
3359 # We found a bogon in the path, so make sure we never use it.
3360 set dummy $ac_cv_prog_CC
3361 shift
3362 if test $# != 0; then
3363 # We chose a different compiler from the bogus one.
3364 # However, it has the same basename, so the bogon will be chosen
3365 # first if we set CC to just the basename; use the full file name.
3366 shift
3367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3368 fi
3369fi
3370fi
3371fi
3372CC=$ac_cv_prog_CC
3373if test -n "$CC"; then
5213506e
RW
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375$as_echo "$CC" >&6; }
fa958513 3376else
5213506e
RW
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
fa958513
DJ
3379fi
3380
5213506e 3381
fa958513
DJ
3382fi
3383if test -z "$CC"; then
3384 if test -n "$ac_tool_prefix"; then
5213506e 3385 for ac_prog in cl.exe
fa958513
DJ
3386 do
3387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3391if ${ac_cv_prog_CC+:} false; then :
5213506e 3392 $as_echo_n "(cached) " >&6
fa958513
DJ
3393else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396else
3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398for as_dir in $PATH
3399do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
5213506e 3402 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3406 break 2
3407 fi
3408done
5213506e
RW
3409 done
3410IFS=$as_save_IFS
fa958513
DJ
3411
3412fi
3413fi
3414CC=$ac_cv_prog_CC
3415if test -n "$CC"; then
5213506e
RW
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417$as_echo "$CC" >&6; }
fa958513 3418else
5213506e
RW
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420$as_echo "no" >&6; }
fa958513
DJ
3421fi
3422
5213506e 3423
fa958513
DJ
3424 test -n "$CC" && break
3425 done
3426fi
3427if test -z "$CC"; then
3428 ac_ct_CC=$CC
5213506e 3429 for ac_prog in cl.exe
fa958513
DJ
3430do
3431 # Extract the first word of "$ac_prog", so it can be a program name with args.
3432set dummy $ac_prog; ac_word=$2
5213506e
RW
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434$as_echo_n "checking for $ac_word... " >&6; }
22e05272 3435if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 3436 $as_echo_n "(cached) " >&6
fa958513
DJ
3437else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
5213506e 3446 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fa958513 3448 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
3450 break 2
3451 fi
3452done
5213506e
RW
3453 done
3454IFS=$as_save_IFS
fa958513
DJ
3455
3456fi
3457fi
3458ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459if test -n "$ac_ct_CC"; then
5213506e
RW
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461$as_echo "$ac_ct_CC" >&6; }
fa958513 3462else
5213506e
RW
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
a2a5609b 3465fi
fa958513 3466
5213506e 3467
0824d924
KT
3468 test -n "$ac_ct_CC" && break
3469done
3470
3471 if test "x$ac_ct_CC" = x; then
3472 CC=""
3473 else
3474 case $cross_compiling:$ac_tool_warned in
3475yes:)
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3478ac_tool_warned=yes ;;
3479esac
3480 CC=$ac_ct_CC
3481 fi
3482fi
3483
3484fi
3485
3486
3487test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3489as_fn_error $? "no acceptable C compiler found in \$PATH
3490See \`config.log' for more details" "$LINENO" 5; }
0824d924
KT
3491
3492# Provide some information about the compiler.
3493$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3494set X $ac_compile
3495ac_compiler=$2
3496for ac_option in --version -v -V -qversion; do
3497 { { ac_try="$ac_compiler $ac_option >&5"
3498case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503$as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3505 ac_status=$?
3506 if test -s conftest.err; then
3507 sed '10a\
3508... rest of stderr output deleted ...
3509 10q' conftest.err >conftest.er1
3510 cat conftest.er1 >&5
0824d924 3511 fi
22e05272 3512 rm -f conftest.er1 conftest.err
0824d924
KT
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }
3515done
3516
3517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h. */
3519
3520int
3521main ()
3522{
3523
3524 ;
3525 return 0;
3526}
3527_ACEOF
3528# FIXME: Cleanup?
3529if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3530 (eval $ac_link) 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 gcc_no_link=no
3535else
3536 gcc_no_link=yes
3537fi
3538if test x$gcc_no_link = xyes; then
3539 # Setting cross_compile will disable run tests; it will
3540 # also disable AC_CHECK_FILE but that's generally
3541 # correct if we can't link.
3542 cross_compiling=yes
3543 EXEEXT=
3544else
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h. */
3547
3548int
3549main ()
3550{
3551
3552 ;
3553 return 0;
3554}
3555_ACEOF
3556ac_clean_files_save=$ac_clean_files
22e05272 3557ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
0824d924
KT
3558# Try to create an executable without -o first, disregard a.out.
3559# It will help us diagnose broken compilers, and finding out an intuition
3560# of exeext.
22e05272
JM
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3562$as_echo_n "checking whether the C compiler works... " >&6; }
0824d924
KT
3563ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3564
3565# The possible output files:
3566ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3567
3568ac_rmfiles=
3569for ac_file in $ac_files
3570do
3571 case $ac_file in
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3573 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3574 esac
3575done
3576rm -f $ac_rmfiles
3577
3578if { { ac_try="$ac_link_default"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584$as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_link_default") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; then :
3589 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3590# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3591# in a Makefile. We should not override ac_cv_exeext if it was cached,
3592# so that the user can short-circuit this test for compilers unknown to
3593# Autoconf.
3594for ac_file in $ac_files ''
3595do
3596 test -f "$ac_file" || continue
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3599 ;;
3600 [ab].out )
3601 # We found the default executable, but exeext='' is most
3602 # certainly right.
3603 break;;
3604 *.* )
3605 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3606 then :; else
3607 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3608 fi
3609 # We set ac_cv_exeext here because the later test for it is not
3610 # safe: cross compilers may not add the suffix if given an `-o'
3611 # argument, so we may need to know it at that point already.
3612 # Even if this section looks crufty: it has the advantage of
3613 # actually working.
3614 break;;
3615 * )
3616 break;;
3617 esac
3618done
3619test "$ac_cv_exeext" = no && ac_cv_exeext=
3620
3621else
3622 ac_file=''
3623fi
0824d924 3624if test -z "$ac_file"; then :
22e05272
JM
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626$as_echo "no" >&6; }
3627$as_echo "$as_me: failed program was:" >&5
0824d924
KT
3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3632as_fn_error 77 "C compiler cannot create executables
3633See \`config.log' for more details" "$LINENO" 5; }
3634else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636$as_echo "yes" >&6; }
0824d924 3637fi
22e05272
JM
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3639$as_echo_n "checking for C compiler default output file name... " >&6; }
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3641$as_echo "$ac_file" >&6; }
0824d924
KT
3642ac_exeext=$ac_cv_exeext
3643
22e05272 3644rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
0824d924 3645ac_clean_files=$ac_clean_files_save
0824d924
KT
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3647$as_echo_n "checking for suffix of executables... " >&6; }
3648if { { ac_try="$ac_link"
3649case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
a2a5609b 3652esac
0824d924
KT
3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654$as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_link") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; then :
3659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3660# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3661# work properly (i.e., refer to `conftest.exe'), while it won't with
3662# `rm'.
3663for ac_file in conftest.exe conftest conftest.*; do
3664 test -f "$ac_file" || continue
3665 case $ac_file in
3666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3668 break;;
3669 * ) break;;
3670 esac
3671done
3672else
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3675as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3676See \`config.log' for more details" "$LINENO" 5; }
fa958513 3677fi
22e05272 3678rm -f conftest conftest$ac_cv_exeext
0824d924
KT
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3680$as_echo "$ac_cv_exeext" >&6; }
fa958513 3681
0824d924
KT
3682rm -f conftest.$ac_ext
3683EXEEXT=$ac_cv_exeext
3684ac_exeext=$EXEEXT
22e05272
JM
3685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686/* end confdefs.h. */
3687#include <stdio.h>
3688int
3689main ()
3690{
3691FILE *f = fopen ("conftest.out", "w");
3692 return ferror (f) || fclose (f) != 0;
3693
3694 ;
3695 return 0;
3696}
3697_ACEOF
3698ac_clean_files="$ac_clean_files conftest.out"
3699# Check that the compiler produces executables we can run. If not, either
3700# the compiler is broken, or we cross compile.
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3702$as_echo_n "checking whether we are cross compiling... " >&6; }
3703if test "$cross_compiling" != yes; then
3704 { { ac_try="$ac_link"
3705case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708esac
3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710$as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_link") 2>&5
3712 ac_status=$?
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }
3715 if { ac_try='./conftest$ac_cv_exeext'
3716 { { case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_try") 2>&5
3723 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; }; then
3726 cross_compiling=no
3727 else
3728 if test "$cross_compiling" = maybe; then
3729 cross_compiling=yes
3730 else
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733as_fn_error $? "cannot run C compiled programs.
3734If you meant to cross compile, use \`--host'.
3735See \`config.log' for more details" "$LINENO" 5; }
3736 fi
3737 fi
3738fi
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3740$as_echo "$cross_compiling" >&6; }
3741
3742rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3743ac_clean_files=$ac_clean_files_save
fa958513 3744fi
0824d924
KT
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3746$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3747if ${ac_cv_objext+:} false; then :
0824d924
KT
3748 $as_echo_n "(cached) " >&6
3749else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h. */
fa958513 3752
0824d924
KT
3753int
3754main ()
3755{
fa958513 3756
0824d924
KT
3757 ;
3758 return 0;
3759}
3760_ACEOF
3761rm -f conftest.o conftest.obj
3762if { { ac_try="$ac_compile"
5213506e
RW
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768$as_echo "$ac_try_echo"; } >&5
0824d924 3769 (eval "$ac_compile") 2>&5
fa958513 3770 ac_status=$?
5213506e 3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0824d924
KT
3772 test $ac_status = 0; }; then :
3773 for ac_file in conftest.o conftest.obj conftest.*; do
3774 test -f "$ac_file" || continue;
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3778 break;;
3779 esac
fa958513 3780done
0824d924
KT
3781else
3782 $as_echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
fa958513 3784
0824d924
KT
3785{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3787as_fn_error $? "cannot compute suffix of object files: cannot compile
3788See \`config.log' for more details" "$LINENO" 5; }
0824d924
KT
3789fi
3790rm -f conftest.$ac_cv_objext conftest.$ac_ext
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3793$as_echo "$ac_cv_objext" >&6; }
3794OBJEXT=$ac_cv_objext
3795ac_objext=$OBJEXT
5213506e
RW
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3797$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3798if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 3799 $as_echo_n "(cached) " >&6
fa958513 3800else
5213506e 3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3802/* end confdefs.h. */
3803
3804int
3805main ()
3806{
3807#ifndef __GNUC__
3808 choke me
3809#endif
3810
3811 ;
3812 return 0;
3813}
3814_ACEOF
5213506e 3815if ac_fn_c_try_compile "$LINENO"; then :
fa958513
DJ
3816 ac_compiler_gnu=yes
3817else
5213506e 3818 ac_compiler_gnu=no
fa958513 3819fi
5213506e 3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513
DJ
3821ac_cv_c_compiler_gnu=$ac_compiler_gnu
3822
3823fi
5213506e
RW
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3825$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3826if test $ac_compiler_gnu = yes; then
3827 GCC=yes
3828else
3829 GCC=
3830fi
fa958513
DJ
3831ac_test_CFLAGS=${CFLAGS+set}
3832ac_save_CFLAGS=$CFLAGS
5213506e
RW
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3834$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3835if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
3836 $as_echo_n "(cached) " >&6
3837else
3838 ac_save_c_werror_flag=$ac_c_werror_flag
3839 ac_c_werror_flag=yes
3840 ac_cv_prog_cc_g=no
3841 CFLAGS="-g"
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3843/* end confdefs.h. */
3844
3845int
3846main ()
3847{
3848
3849 ;
3850 return 0;
3851}
3852_ACEOF
5213506e 3853if ac_fn_c_try_compile "$LINENO"; then :
fa958513
DJ
3854 ac_cv_prog_cc_g=yes
3855else
5213506e
RW
3856 CFLAGS=""
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
3868if ac_fn_c_try_compile "$LINENO"; then :
3869
3870else
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3872 CFLAGS="-g"
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h. */
3875
3876int
3877main ()
3878{
fa958513 3879
5213506e
RW
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_cv_prog_cc_g=yes
3886fi
3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513 3888fi
5213506e 3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513 3890fi
5213506e
RW
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3895$as_echo "$ac_cv_prog_cc_g" >&6; }
fa958513
DJ
3896if test "$ac_test_CFLAGS" = set; then
3897 CFLAGS=$ac_save_CFLAGS
3898elif test $ac_cv_prog_cc_g = yes; then
3899 if test "$GCC" = yes; then
3900 CFLAGS="-g -O2"
3901 else
3902 CFLAGS="-g"
3903 fi
3904else
3905 if test "$GCC" = yes; then
3906 CFLAGS="-O2"
3907 else
3908 CFLAGS=
3909 fi
3910fi
5213506e
RW
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3912$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3913if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 3914 $as_echo_n "(cached) " >&6
fa958513 3915else
5213506e 3916 ac_cv_prog_cc_c89=no
fa958513 3917ac_save_CC=$CC
5213506e 3918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3919/* end confdefs.h. */
3920#include <stdarg.h>
3921#include <stdio.h>
22e05272 3922struct stat;
fa958513
DJ
3923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924struct buf { int x; };
3925FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926static char *e (p, i)
3927 char **p;
3928 int i;
3929{
3930 return p[i];
3931}
3932static char *f (char * (*g) (char **, int), char **p, ...)
3933{
3934 char *s;
3935 va_list v;
3936 va_start (v,p);
3937 s = g (p, va_arg (v,int));
3938 va_end (v);
3939 return s;
3940}
3941
3942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
5213506e 3945 as 'x'. The following induces an error, until -std is added to get
fa958513
DJ
3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3948 that's true only with -std. */
fa958513
DJ
3949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3950
5213506e
RW
3951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952 inside strings and character constants. */
3953#define FOO(x) 'x'
3954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3955
fa958513
DJ
3956int test (int i, double x);
3957struct s1 {int (*f) (int a);};
3958struct s2 {int (*f) (double a);};
3959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3960int argc;
3961char **argv;
3962int
3963main ()
3964{
3965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3966 ;
3967 return 0;
3968}
3969_ACEOF
5213506e
RW
3970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
fa958513
DJ
3972do
3973 CC="$ac_save_CC $ac_arg"
5213506e
RW
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_c89=$ac_arg
fa958513 3976fi
5213506e
RW
3977rm -f core conftest.err conftest.$ac_objext
3978 test "x$ac_cv_prog_cc_c89" != "xno" && break
fa958513 3979done
5213506e 3980rm -f conftest.$ac_ext
fa958513
DJ
3981CC=$ac_save_CC
3982
3983fi
5213506e
RW
3984# AC_CACHE_VAL
3985case "x$ac_cv_prog_cc_c89" in
3986 x)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988$as_echo "none needed" >&6; } ;;
3989 xno)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991$as_echo "unsupported" >&6; } ;;
fa958513 3992 *)
5213506e
RW
3993 CC="$CC $ac_cv_prog_cc_c89"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
fa958513 3996esac
5213506e 3997if test "x$ac_cv_prog_cc_c89" != xno; then :
fa958513 3998
d6efbf5a 3999fi
d6efbf5a 4000
fa958513
DJ
4001ac_ext=c
4002ac_cpp='$CPP $CPPFLAGS'
4003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
0824d924
KT
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4013$as_echo_n "checking how to run the C preprocessor... " >&6; }
4014# On Suns, sometimes $CPP names a directory.
4015if test -n "$CPP" && test -d "$CPP"; then
4016 CPP=
4017fi
4018if test -z "$CPP"; then
22e05272 4019 if ${ac_cv_prog_CPP+:} false; then :
0824d924
KT
4020 $as_echo_n "(cached) " >&6
4021else
4022 # Double quotes because CPP needs to be expanded
4023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024 do
4025 ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
4027do
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h. */
4036#ifdef __STDC__
4037# include <limits.h>
4038#else
4039# include <assert.h>
4040#endif
4041 Syntax error
4042_ACEOF
4043if ac_fn_c_try_cpp "$LINENO"; then :
4044
4045else
4046 # Broken: fails on valid input.
4047continue
4048fi
22e05272 4049rm -f conftest.err conftest.i conftest.$ac_ext
0824d924
KT
4050
4051 # OK, works on sane cases. Now check whether nonexistent headers
4052 # can be detected and how.
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h. */
4055#include <ac_nonexistent.h>
4056_ACEOF
4057if ac_fn_c_try_cpp "$LINENO"; then :
4058 # Broken: success on invalid input.
4059continue
4060else
4061 # Passes both tests.
4062ac_preproc_ok=:
4063break
4064fi
22e05272 4065rm -f conftest.err conftest.i conftest.$ac_ext
0824d924
KT
4066
4067done
4068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4069rm -f conftest.i conftest.err conftest.$ac_ext
0824d924
KT
4070if $ac_preproc_ok; then :
4071 break
4072fi
4073
4074 done
4075 ac_cv_prog_CPP=$CPP
4076
4077fi
4078 CPP=$ac_cv_prog_CPP
4079else
4080 ac_cv_prog_CPP=$CPP
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4083$as_echo "$CPP" >&6; }
4084ac_preproc_ok=false
4085for ac_c_preproc_warn_flag in '' yes
4086do
4087 # Use a header file that comes with gcc, so configuring glibc
4088 # with a fresh cross-compiler works.
4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4090 # <limits.h> exists even on freestanding compilers.
4091 # On the NeXT, cc -E runs the code through the compiler's parser,
4092 # not just through cpp. "Syntax error" is here to catch this case.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h. */
4095#ifdef __STDC__
4096# include <limits.h>
4097#else
4098# include <assert.h>
4099#endif
4100 Syntax error
4101_ACEOF
4102if ac_fn_c_try_cpp "$LINENO"; then :
4103
4104else
4105 # Broken: fails on valid input.
4106continue
4107fi
22e05272 4108rm -f conftest.err conftest.i conftest.$ac_ext
0824d924
KT
4109
4110 # OK, works on sane cases. Now check whether nonexistent headers
4111 # can be detected and how.
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h. */
4114#include <ac_nonexistent.h>
4115_ACEOF
4116if ac_fn_c_try_cpp "$LINENO"; then :
4117 # Broken: success on invalid input.
4118continue
4119else
4120 # Passes both tests.
4121ac_preproc_ok=:
4122break
4123fi
22e05272 4124rm -f conftest.err conftest.i conftest.$ac_ext
0824d924
KT
4125
4126done
4127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 4128rm -f conftest.i conftest.err conftest.$ac_ext
0824d924
KT
4129if $ac_preproc_ok; then :
4130
4131else
4132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4134as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4135See \`config.log' for more details" "$LINENO" 5; }
0824d924
KT
4136fi
4137
4138ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
fa958513
DJ
4144
4145ac_c_preproc_warn_flag=yes
4146
0824d924 4147
a51a76e5
RB
4148# Check whether --enable-largefile was given.
4149if test "${enable_largefile+set}" = set; then :
4150 enableval=$enable_largefile;
4151fi
4152
4153if test "$enable_largefile" != no; then
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4156$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 4157if ${ac_cv_sys_largefile_CC+:} false; then :
a51a76e5
RB
4158 $as_echo_n "(cached) " >&6
4159else
4160 ac_cv_sys_largefile_CC=no
4161 if test "$GCC" != yes; then
4162 ac_save_CC=$CC
4163 while :; do
4164 # IRIX 6.2 and later do not support large files by default,
4165 # so use the C compiler's -n32 option if that helps.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h. */
4168#include <sys/types.h>
4169 /* Check that off_t can represent 2**63 - 1 correctly.
4170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4171 since some C++ compilers masquerading as C compilers
4172 incorrectly reject 9223372036854775807. */
4173#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4175 && LARGE_OFF_T % 2147483647 == 1)
4176 ? 1 : -1];
4177int
4178main ()
4179{
4180
4181 ;
4182 return 0;
4183}
4184_ACEOF
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 break
4187fi
4188rm -f core conftest.err conftest.$ac_objext
4189 CC="$CC -n32"
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_sys_largefile_CC=' -n32'; break
4192fi
4193rm -f core conftest.err conftest.$ac_objext
4194 break
4195 done
4196 CC=$ac_save_CC
4197 rm -f conftest.$ac_ext
4198 fi
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4201$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4202 if test "$ac_cv_sys_largefile_CC" != no; then
4203 CC=$CC$ac_cv_sys_largefile_CC
4204 fi
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4207$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 4208if ${ac_cv_sys_file_offset_bits+:} false; then :
a51a76e5
RB
4209 $as_echo_n "(cached) " >&6
4210else
4211 while :; do
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
4214#include <sys/types.h>
4215 /* Check that off_t can represent 2**63 - 1 correctly.
4216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4217 since some C++ compilers masquerading as C compilers
4218 incorrectly reject 9223372036854775807. */
4219#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4221 && LARGE_OFF_T % 2147483647 == 1)
4222 ? 1 : -1];
4223int
4224main ()
4225{
4226
4227 ;
4228 return 0;
4229}
4230_ACEOF
4231if ac_fn_c_try_compile "$LINENO"; then :
4232 ac_cv_sys_file_offset_bits=no; break
4233fi
4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236/* end confdefs.h. */
4237#define _FILE_OFFSET_BITS 64
4238#include <sys/types.h>
4239 /* Check that off_t can represent 2**63 - 1 correctly.
4240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4241 since some C++ compilers masquerading as C compilers
4242 incorrectly reject 9223372036854775807. */
4243#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4245 && LARGE_OFF_T % 2147483647 == 1)
4246 ? 1 : -1];
4247int
4248main ()
4249{
4250
4251 ;
4252 return 0;
4253}
4254_ACEOF
4255if ac_fn_c_try_compile "$LINENO"; then :
4256 ac_cv_sys_file_offset_bits=64; break
4257fi
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 ac_cv_sys_file_offset_bits=unknown
4260 break
4261done
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4264$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4265case $ac_cv_sys_file_offset_bits in #(
4266 no | unknown) ;;
4267 *)
4268cat >>confdefs.h <<_ACEOF
4269#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4270_ACEOF
4271;;
4272esac
4273rm -rf conftest*
4274 if test $ac_cv_sys_file_offset_bits = unknown; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4276$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 4277if ${ac_cv_sys_large_files+:} false; then :
a51a76e5
RB
4278 $as_echo_n "(cached) " >&6
4279else
4280 while :; do
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283#include <sys/types.h>
4284 /* Check that off_t can represent 2**63 - 1 correctly.
4285 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4286 since some C++ compilers masquerading as C compilers
4287 incorrectly reject 9223372036854775807. */
4288#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4290 && LARGE_OFF_T % 2147483647 == 1)
4291 ? 1 : -1];
4292int
4293main ()
4294{
4295
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300if ac_fn_c_try_compile "$LINENO"; then :
4301 ac_cv_sys_large_files=no; break
4302fi
4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305/* end confdefs.h. */
4306#define _LARGE_FILES 1
4307#include <sys/types.h>
4308 /* Check that off_t can represent 2**63 - 1 correctly.
4309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4310 since some C++ compilers masquerading as C compilers
4311 incorrectly reject 9223372036854775807. */
4312#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4314 && LARGE_OFF_T % 2147483647 == 1)
4315 ? 1 : -1];
4316int
4317main ()
4318{
4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
4324if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_sys_large_files=1; break
4326fi
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 ac_cv_sys_large_files=unknown
4329 break
4330done
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4333$as_echo "$ac_cv_sys_large_files" >&6; }
4334case $ac_cv_sys_large_files in #(
4335 no | unknown) ;;
4336 *)
4337cat >>confdefs.h <<_ACEOF
4338#define _LARGE_FILES $ac_cv_sys_large_files
4339_ACEOF
4340;;
4341esac
4342rm -rf conftest*
4343 fi
22e05272
JM
4344
4345
a51a76e5
RB
4346fi
4347
4348
0824d924 4349
569dc494
RO
4350# The cast to long int works around a bug in the HP C Compiler
4351# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4352# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4353# This bug is HP SR number 8606223364.
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4355$as_echo_n "checking size of double... " >&6; }
22e05272 4356if ${ac_cv_sizeof_double+:} false; then :
569dc494
RO
4357 $as_echo_n "(cached) " >&6
4358else
4359 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4360
4361else
4362 if test "$ac_cv_type_double" = yes; then
4363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4365as_fn_error 77 "cannot compute sizeof (double)
4366See \`config.log' for more details" "$LINENO" 5; }
569dc494
RO
4367 else
4368 ac_cv_sizeof_double=0
4369 fi
4370fi
4371
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4374$as_echo "$ac_cv_sizeof_double" >&6; }
4375
4376
4377
4378cat >>confdefs.h <<_ACEOF
4379#define SIZEOF_DOUBLE $ac_cv_sizeof_double
4380_ACEOF
4381
4382
4383# The cast to long int works around a bug in the HP C Compiler
4384# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4385# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4386# This bug is HP SR number 8606223364.
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4388$as_echo_n "checking size of long double... " >&6; }
22e05272 4389if ${ac_cv_sizeof_long_double+:} false; then :
569dc494
RO
4390 $as_echo_n "(cached) " >&6
4391else
4392 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4393
4394else
4395 if test "$ac_cv_type_long_double" = yes; then
4396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4398as_fn_error 77 "cannot compute sizeof (long double)
4399See \`config.log' for more details" "$LINENO" 5; }
569dc494
RO
4400 else
4401 ac_cv_sizeof_long_double=0
4402 fi
4403fi
4404
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4407$as_echo "$ac_cv_sizeof_long_double" >&6; }
4408
4409
4410
4411cat >>confdefs.h <<_ACEOF
4412#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4413_ACEOF
4414
4415
4416as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4417as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4418
4419
4420
0e4a0def
KT
4421
4422for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4423 unistd.h sys/stat.h sys/types.h \
4424 string.h strings.h memory.h
4425do :
4426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
22e05272 4428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
0e4a0def
KT
4429 cat >>confdefs.h <<_ACEOF
4430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4431_ACEOF
4432
4433fi
4434done
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4437$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 4438if ${ac_cv_path_GREP+:} false; then :
0e4a0def
KT
4439 $as_echo_n "(cached) " >&6
4440else
4441 if test -z "$GREP"; then
4442 ac_path_GREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in grep ggrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4452 as_fn_executable_p "$ac_path_GREP" || continue
0e4a0def
KT
4453# Check for GNU ac_path_GREP and select it if it is found.
4454 # Check for GNU $ac_path_GREP
4455case `"$ac_path_GREP" --version 2>&1` in
4456*GNU*)
4457 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4458*)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'GREP' >> "conftest.nl"
4467 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_GREP="$ac_path_GREP"
4473 ac_path_GREP_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479esac
4480
4481 $ac_path_GREP_found && break 3
4482 done
4483 done
4484 done
4485IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_GREP"; then
22e05272 4487 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
0e4a0def
KT
4488 fi
4489else
4490 ac_cv_path_GREP=$GREP
4491fi
4492
4493fi
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4495$as_echo "$ac_cv_path_GREP" >&6; }
4496 GREP="$ac_cv_path_GREP"
4497
4498
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4500$as_echo_n "checking for egrep... " >&6; }
22e05272 4501if ${ac_cv_path_EGREP+:} false; then :
0e4a0def
KT
4502 $as_echo_n "(cached) " >&6
4503else
4504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4505 then ac_cv_path_EGREP="$GREP -E"
4506 else
4507 if test -z "$EGREP"; then
4508 ac_path_EGREP_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in egrep; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 4518 as_fn_executable_p "$ac_path_EGREP" || continue
0e4a0def
KT
4519# Check for GNU ac_path_EGREP and select it if it is found.
4520 # Check for GNU $ac_path_EGREP
4521case `"$ac_path_EGREP" --version 2>&1` in
4522*GNU*)
4523 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524*)
4525 ac_count=0
4526 $as_echo_n 0123456789 >"conftest.in"
4527 while :
4528 do
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo 'EGREP' >> "conftest.nl"
4533 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_EGREP="$ac_path_EGREP"
4539 ac_path_EGREP_max=$ac_count
4540 fi
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4543 done
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545esac
4546
4547 $ac_path_EGREP_found && break 3
4548 done
4549 done
4550 done
4551IFS=$as_save_IFS
4552 if test -z "$ac_cv_path_EGREP"; then
22e05272 4553 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
0e4a0def
KT
4554 fi
4555else
4556 ac_cv_path_EGREP=$EGREP
4557fi
4558
4559 fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4562$as_echo "$ac_cv_path_EGREP" >&6; }
4563 EGREP="$ac_cv_path_EGREP"
4564
4565
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4567$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 4568if ${ac_cv_header_stdc+:} false; then :
0e4a0def
KT
4569 $as_echo_n "(cached) " >&6
4570else
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h. */
4573#include <stdlib.h>
4574#include <stdarg.h>
4575#include <string.h>
4576#include <float.h>
4577
4578int
4579main ()
4580{
4581
4582 ;
4583 return 0;
4584}
4585_ACEOF
4586if ac_fn_c_try_compile "$LINENO"; then :
4587 ac_cv_header_stdc=yes
4588else
4589 ac_cv_header_stdc=no
4590fi
4591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592
4593if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h. */
4597#include <string.h>
4598
4599_ACEOF
4600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601 $EGREP "memchr" >/dev/null 2>&1; then :
4602
4603else
4604 ac_cv_header_stdc=no
4605fi
4606rm -f conftest*
4607
4608fi
4609
4610if test $ac_cv_header_stdc = yes; then
4611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h. */
4614#include <stdlib.h>
4615
4616_ACEOF
4617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "free" >/dev/null 2>&1; then :
4619
4620else
4621 ac_cv_header_stdc=no
4622fi
4623rm -f conftest*
4624
4625fi
4626
4627if test $ac_cv_header_stdc = yes; then
4628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4629 if test "$cross_compiling" = yes; then :
4630 :
4631else
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
4634#include <ctype.h>
4635#include <stdlib.h>
4636#if ((' ' & 0x0FF) == 0x020)
4637# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4638# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639#else
4640# define ISLOWER(c) \
4641 (('a' <= (c) && (c) <= 'i') \
4642 || ('j' <= (c) && (c) <= 'r') \
4643 || ('s' <= (c) && (c) <= 'z'))
4644# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4645#endif
4646
4647#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648int
4649main ()
4650{
4651 int i;
4652 for (i = 0; i < 256; i++)
4653 if (XOR (islower (i), ISLOWER (i))
4654 || toupper (i) != TOUPPER (i))
4655 return 2;
4656 return 0;
4657}
4658_ACEOF
4659if ac_fn_c_try_run "$LINENO"; then :
4660
4661else
4662 ac_cv_header_stdc=no
4663fi
4664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4665 conftest.$ac_objext conftest.beam conftest.$ac_ext
4666fi
4667
4668fi
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4671$as_echo "$ac_cv_header_stdc" >&6; }
4672if test $ac_cv_header_stdc = yes; then
4673
4674$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4675
4676fi
4677
4678
569dc494 4679# Check for decimal float support.
5213506e
RW
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4681$as_echo_n "checking whether decimal floating point is supported... " >&6; }
22e05272 4682if ${libgcc_cv_dfp+:} false; then :
5213506e 4683 $as_echo_n "(cached) " >&6
fa958513 4684else
5213506e
RW
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h. */
ac088ba1
BRF
4687
4688#include <fenv.h>
4689
4690int
4691main ()
4692{
4693
fa958513 4694_Decimal32 x;
ac088ba1
BRF
4695int fe_except =
4696 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4697
4698 ;
4699 return 0;
4700}
fa958513 4701_ACEOF
5213506e 4702if ac_fn_c_try_compile "$LINENO"; then :
fa958513
DJ
4703 libgcc_cv_dfp=yes
4704else
5213506e 4705 libgcc_cv_dfp=no
fa958513 4706fi
5213506e 4707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513 4708fi
5213506e
RW
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4710$as_echo "$libgcc_cv_dfp" >&6; }
fa958513
DJ
4711decimal_float=$libgcc_cv_dfp
4712
4713
f4dae9fc 4714
5213506e
RW
4715# Check whether --enable-decimal-float was given.
4716if test "${enable_decimal_float+set}" = set; then :
4717 enableval=$enable_decimal_float;
79b87c74 4718 case $enable_decimal_float in
cc0ae0ca 4719 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
22e05272 4720 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
5213506e 4721Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
79b87c74
MM
4722 esac
4723
4724else
4725
96fccd0d 4726 case $host in
996b42ef 4727 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
1c1d2d8c 4728 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
b93cf342 4729 i?86*-*-mingw* | x86_64*-*-mingw* | \
e9fd8c19 4730 i?86*-*-cygwin* | x86_64*-*-cygwin*)
79b87c74
MM
4731 enable_decimal_float=yes
4732 ;;
4733 *)
84f47d20
AS
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4735$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
79b87c74
MM
4736 enable_decimal_float=no
4737 ;;
4738 esac
4739
5213506e
RW
4740fi
4741
79b87c74
MM
4742
4743# x86's use BID format instead of DPD
f4dae9fc
AK
4744case x$enable_decimal_float in
4745 xyes)
4746 case $host in
4747 i?86*-*-* | x86_64*-*-*)
4748 enable_decimal_float=bid
4749 ;;
4750 *)
4751 enable_decimal_float=dpd
4752 ;;
4753 esac
cc0ae0ca 4754 default_decimal_float=$enable_decimal_float
f4dae9fc
AK
4755 ;;
4756 xno)
4757 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4758 # dependency on libdecnumber.
cc0ae0ca 4759 default_decimal_float=dpd
f4dae9fc
AK
4760 ;;
4761esac
4762
4763
79b87c74
MM
4764
4765
8d2a9e0e 4766# Check for fixed-point support.
5213506e
RW
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4768$as_echo_n "checking whether fixed-point is supported... " >&6; }
22e05272 4769if ${libgcc_cv_fixed_point+:} false; then :
5213506e 4770 $as_echo_n "(cached) " >&6
8d2a9e0e 4771else
5213506e
RW
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h. */
8d2a9e0e
CF
4774_Sat _Fract x;
4775_ACEOF
5213506e 4776if ac_fn_c_try_compile "$LINENO"; then :
8d2a9e0e
CF
4777 libgcc_cv_fixed_point=yes
4778else
5213506e 4779 libgcc_cv_fixed_point=no
8d2a9e0e 4780fi
5213506e 4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d2a9e0e 4782fi
5213506e
RW
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4784$as_echo "$libgcc_cv_fixed_point" >&6; }
8d2a9e0e
CF
4785fixed_point=$libgcc_cv_fixed_point
4786
4787
201cdb74
RO
4788# For platforms with the unwind ABI which includes an unwind library,
4789# libunwind, we can choose to use the system libunwind.
4790# config.gcc also contains tests of with_system_libunwind.
4791
4792
4793# Check whether --with-system-libunwind was given.
4794if test "${with_system_libunwind+set}" = set; then :
4795 withval=$with_system_libunwind;
4796fi
4797
4798 # If system-libunwind was not specifically set, pick a default setting.
4799 if test x$with_system_libunwind = x; then
4800 case ${target} in
4801 ia64-*-hpux*) with_system_libunwind=yes ;;
4802 *) with_system_libunwind=no ;;
4803 esac
4804 fi
4805 # Based on system-libunwind and target, do we have ipinfo?
4806 if test x$with_system_libunwind = xyes; then
4807 case ${target} in
4808 ia64-*-*) have_unwind_getipinfo=no ;;
4809 *) have_unwind_getipinfo=yes ;;
4810 esac
4811 else
4812 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4813
4814 case ${target} in
4815 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4816 *) have_unwind_getipinfo=yes ;;
4817 esac
4818
4819 fi
4820
4821 if test x$have_unwind_getipinfo = xyes; then
4822
4823$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4824
4825 fi
4826
4827
9b92a9f3
EB
4828# Check if the compiler is configured for setjmp/longjmp exceptions.
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4830$as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
22e05272 4831if ${ac_cv_sjlj_exceptions+:} false; then :
b040f2be
RO
4832 $as_echo_n "(cached) " >&6
4833else
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h. */
9b92a9f3
EB
4836#ifdef __USING_SJLJ_EXCEPTIONS__
4837 this will fail
4838 #endif
4839int
4840main ()
b040f2be 4841{
9b92a9f3
EB
4842int i;
4843 ;
4844 return 0;
b040f2be 4845}
b040f2be 4846_ACEOF
9b92a9f3
EB
4847if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_cv_sjlj_exceptions=no
4849else
4850 ac_cv_sjlj_exceptions=yes
b040f2be 4851fi
9b92a9f3 4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b040f2be 4853fi
9b92a9f3
EB
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4855$as_echo "$ac_cv_sjlj_exceptions" >&6; }
b040f2be 4856
1ecae1fc
IT
4857 # Check whether --enable-cet was given.
4858if test "${enable_cet+set}" = set; then :
4859 enableval=$enable_cet;
4860 case "$enableval" in
a0e1df88 4861 yes|no|auto) ;;
22e05272 4862 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
1ecae1fc
IT
4863 esac
4864
4865else
a0e1df88 4866 enable_cet=no
1ecae1fc
IT
4867fi
4868
4869
14e335ed
IT
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4871$as_echo_n "checking for CET support... " >&6; }
4872
1ecae1fc
IT
4873case "$host" in
4874 i[34567]86-*-linux* | x86_64-*-linux*)
4875 case "$enable_cet" in
a0e1df88 4876 auto)
14e335ed
IT
4877 # Check if target supports multi-byte NOPs
4878 # and if assembler supports CET insn.
1ecae1fc
IT
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h. */
4881
4882int
4883main ()
4884{
14e335ed
IT
4885
4886#if !defined(__SSE2__)
4887#error target does not support multi-byte NOPs
4888#else
1ecae1fc 4889asm ("setssbsy");
14e335ed
IT
4890#endif
4891
1ecae1fc
IT
4892 ;
4893 return 0;
4894}
4895_ACEOF
4896if ac_fn_c_try_compile "$LINENO"; then :
4897 enable_cet=yes
4898else
4899 enable_cet=no
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 ;;
4903 yes)
4904 # Check if assembler supports CET.
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h. */
4907
4908int
4909main ()
4910{
4911asm ("setssbsy");
4912 ;
4913 return 0;
4914}
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"; then :
4917
4918else
22e05272 4919 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
1ecae1fc
IT
4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 ;;
4923 esac
4924 ;;
4925 *)
4926 enable_cet=no
4927 ;;
4928esac
4929if test x$enable_cet = xyes; then
7b47ecf2 4930 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4932$as_echo "yes" >&6; }
4933else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
1ecae1fc
IT
4936fi
4937
4938
4939
598a1586
HPN
4940# Check whether --enable-explicit-exception-frame-registration was given.
4941if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4942 enableval=$enable_explicit_exception_frame_registration;
4943force_explicit_eh_registry=
4944if test "$enable_explicit_exception_frame_registration" = yes; then
9b92a9f3 4945 if test $ac_cv_sjlj_exceptions = yes; then
22e05272 4946 as_fn_error $? "Can't --enable-explicit-exception-frame-registration
9b92a9f3 4947 with setjmp/longjmp exceptions" "$LINENO" 5
598a1586
HPN
4948 fi
4949 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4950fi
4951
4952fi
4953
4954
4955
ca24c5ad
RO
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4957$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 4958if ${acl_cv_prog_gnu_ld+:} false; then :
ca24c5ad
RO
4959 $as_echo_n "(cached) " >&6
4960else
4961 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4962if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4963 acl_cv_prog_gnu_ld=yes
4964else
4965 acl_cv_prog_gnu_ld=no
4966fi
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4969$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4970with_gnu_ld=$acl_cv_prog_gnu_ld
4971
4972
ee33b5f0
RO
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4974$as_echo_n "checking for thread model used by GCC... " >&6; }
4975target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4977$as_echo "$target_thread_file" >&6; }
4978
b6110d6d
ILT
4979# Check for assembler CFI support.
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4981$as_echo_n "checking whether assembler supports CFI directives... " >&6; }
22e05272 4982if ${libgcc_cv_cfi+:} false; then :
b6110d6d
ILT
4983 $as_echo_n "(cached) " >&6
4984else
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986/* end confdefs.h. */
6dace308
ILT
4987asm("\n\
4988 .text\n\
4989 .cfi_startproc\n\
4990 .cfi_personality 0, symbol\n\
4991 .cfi_endproc");
b6110d6d
ILT
4992_ACEOF
4993if ac_fn_c_try_compile "$LINENO"; then :
4994 libgcc_cv_cfi=yes
4995else
4996 libgcc_cv_cfi=no
4997fi
4998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999fi
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
5001$as_echo "$libgcc_cv_cfi" >&6; }
5002
1ea0a651
RS
5003# Check 32bit or 64bit. In the case of MIPS, this really determines the
5004# word size rather than the address size.
1bb6f778 5005cat > conftest.c <<EOF
1ea0a651
RS
5006#if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
5007 || defined(__mips64)
ff473280
L
5008host_address=64
5009#else
5010host_address=32
5011#endif
5012EOF
1bb6f778
DM
5013eval `${CC-cc} -E conftest.c | grep host_address=`
5014rm -f conftest.c
ff473280 5015
1c51d688
RS
5016case ${host} in
5017mips*-*-*)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
5019$as_echo_n "checking whether the target is hard-float... " >&6; }
22e05272 5020if ${libgcc_cv_mips_hard_float+:} false; then :
1c51d688
RS
5021 $as_echo_n "(cached) " >&6
5022else
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h. */
5025#ifndef __mips_hard_float
5026 #error FOO
5027 #endif
22e05272 5028
1c51d688
RS
5029_ACEOF
5030if ac_fn_c_try_compile "$LINENO"; then :
5031 libgcc_cv_mips_hard_float=yes
5032else
5033 libgcc_cv_mips_hard_float=no
5034fi
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
5038$as_echo "$libgcc_cv_mips_hard_float" >&6; }
5039esac
5040
2d110442
RO
5041case ${host} in
5042*-*-solaris2*)
f021f1d3 5043 # Check for system-provided CRTs on Solaris 11.4.
2d110442
RO
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
5045$as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
22e05272 5046if ${libgcc_cv_solaris_crts+:} false; then :
2d110442
RO
5047 $as_echo_n "(cached) " >&6
5048else
5049 libgcc_cv_solaris_crts=no
5050 libgcc_sysroot="`${CC} -print-sysroot`"
5051 libgcc_libdir="$libgcc_sysroot/usr/lib"
5052 # At the time they were added, gcrt1.o became a symlink for backwards
5053 # compatibility on x86, while crt1.o was added on sparc, so check for that.
5054 case ${host} in
5055 i?86-*-solaris2* | x86_64-*-solaris2*)
5056 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
5057 ;;
5058 sparc*-*-solaris2*)
5059 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
5060 ;;
5061 esac
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
5064$as_echo "$libgcc_cv_solaris_crts" >&6; }
5065 if test $libgcc_cv_solaris_crts = yes; then
5066
5067$as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
5068
5069 fi
5070 ;;
5071esac
5072
e610393c
JM
5073# Determine the version of glibc, if any, used on the target.
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
5075$as_echo_n "checking for target glibc version... " >&6; }
5076
5077# Check whether --with-glibc-version was given.
5078if test "${with_glibc_version+set}" = set; then :
5079 withval=$with_glibc_version;
5080if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
5081 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
5082 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
5083else
22e05272 5084 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
e610393c
JM
5085fi
5086else
5087
5088if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
5089
5090else
5091 glibc_version_major=0
5092fi
5093
5094if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
5095
5096else
5097 glibc_version_minor=0
5098fi
5099
5100fi
5101
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
5103$as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
5104
d80c2bea
JM
5105# Determine floating-point type for powerpc*-*-linux*.
5106# Single-precision-only FPRs are not a supported configuration for
5107# this target, so are not allowed for in this test.
5108case ${host} in
5109powerpc*-*-linux*)
5110 cat > conftest.c <<EOF
5111#ifdef __powerpc64__
5112ppc_fp_type=64
5113#elif defined _SOFT_FLOAT
5114ppc_fp_type=soft
5115#elif defined _SOFT_DOUBLE
5116ppc_fp_type=e500v1
5117#elif defined __NO_FPRS__
5118ppc_fp_type=e500v2
5119#else
5120ppc_fp_type=hard
5121#endif
5122EOF
5123eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
5124rm -f conftest.c
e610393c
JM
5125# glibc 2.19 and later provide all the soft-fp functions, with proper
5126# interactions with <fenv.h> exception and rounding mode handling, so
5127# make libgcc's versions into compat symbols if a recent enough glibc
5128# version is being used.
5129ppc_fp_compat=
5130case ${ppc_fp_type} in
5131soft|e500v1|e500v2)
5132 if test $glibc_version_major -gt 2 \
5133 || ( test $glibc_version_major -eq 2 \
5134 && test $glibc_version_minor -ge 19 ); then
5135 ppc_fp_compat="t-softfp-compat"
5136 fi
5137 ;;
5138esac
d80c2bea
JM
5139;;
5140esac
5141
a71c0334 5142case ${host} in
3787ee47
MM
5143# At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
5144# check if we have VSX (ISA 2.06) support to build the software libraries, and
5145# whether the assembler can handle xsaddqp for hardware support. Also check if
5146# a new glibc is being used so that __builtin_cpu_supports can be used.
a71c0334 5147powerpc*-*-linux*)
7502c597
SB
5148 saved_CFLAGS="$CFLAGS"
5149 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
35fbda43
MM
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
5151$as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
22e05272 5152if ${libgcc_cv_powerpc_float128+:} false; then :
a71c0334
MM
5153 $as_echo_n "(cached) " >&6
5154else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156/* end confdefs.h. */
7502c597 5157vector double dadd (vector double a, vector double b) { return a + b; }
a71c0334
MM
5158_ACEOF
5159if ac_fn_c_try_compile "$LINENO"; then :
5160 libgcc_cv_powerpc_float128=yes
5161else
5162 libgcc_cv_powerpc_float128=no
5163fi
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165fi
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
5167$as_echo "$libgcc_cv_powerpc_float128" >&6; }
5168
7502c597 5169 CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware"
35fbda43
MM
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
5171$as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
22e05272 5172if ${libgcc_cv_powerpc_float128_hw+:} false; then :
a71c0334
MM
5173 $as_echo_n "(cached) " >&6
5174else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h. */
7502c597 5177#include <sys/auxv.h>
a71c0334
MM
5178 #ifndef AT_PLATFORM
5179 #error "AT_PLATFORM is not defined"
5180 #endif
3787ee47
MM
5181 #ifndef __BUILTIN_CPU_SUPPORTS__
5182 #error "__builtin_cpu_supports is not available"
5183 #endif
7502c597 5184 vector unsigned char add (vector unsigned char a, vector unsigned char b)
a71c0334 5185 {
35fbda43 5186 vector unsigned char ret;
a71c0334
MM
5187 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
5188 return ret;
5189 }
5190 void *add_resolver (void) { return (void *) add; }
5191 __float128 add_ifunc (__float128, __float128)
5192 __attribute__ ((__ifunc__ ("add_resolver")));
5193_ACEOF
5194if ac_fn_c_try_compile "$LINENO"; then :
5195 libgcc_cv_powerpc_float128_hw=yes
5196else
5197 libgcc_cv_powerpc_float128_hw=no
5198fi
5199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200fi
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
5202$as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
7502c597 5203 CFLAGS="$saved_CFLAGS"
a71c0334
MM
5204esac
5205
fa958513
DJ
5206# Collect host-machine-specific information.
5207. ${srcdir}/config.host
5208
85c64bbe
BS
5209# Used for constructing correct paths for offload compilers.
5210accel_dir_suffix=
d28ad5d4 5211real_host_noncanonical=${host_noncanonical}
85c64bbe
BS
5212if test x"$enable_as_accelerator_for" != x; then
5213 accel_dir_suffix=/accel/${target_noncanonical}
d28ad5d4 5214 real_host_noncanonical=${enable_as_accelerator_for}
85c64bbe
BS
5215fi
5216
5217
d28ad5d4 5218
85c64bbe 5219if test x"$enable_offload_targets" != x; then
e6861a99 5220 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
85c64bbe
BS
5221fi
5222
19523300
RO
5223# Check if Solaris/x86 linker supports ZERO terminator unwind entries.
5224# This is after config.host so we can augment tmake_file.
5225# Link with -nostartfiles -nodefaultlibs since neither are present while
5226# building libgcc.
5227case ${host} in
fbdd5d87 5228i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
19523300
RO
5229 cat > conftest.s <<EOF
5230 .section .eh_frame,"a",@unwind
5231 .zero 4
5232 .section .jcr,"aw",@progbits
5233 .zero 8
5234EOF
5235 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
5213506e 5236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19523300
RO
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5213506e
RW
5239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5240 test $ac_status = 0; }; }; then
4a8bb046 5241 tmake_file="${tmake_file} i386/t-crtstuff"
19523300
RO
5242 fi
5243 ;;
5244esac
5245
53c6feb2
RO
5246# Check if Solaris linker support v2 linker mapfile syntax.
5247# Link with -nostartfiles -nodefaultlibs since neither are present while
5248# building libgcc.
5249case ${host} in
5250*-*-solaris2*)
5251 solaris_ld_v2_maps=no
5252 echo 'int main(void) {return 0;}' > conftest.c
5253 echo '$mapfile_version 2' > conftest.map
5254 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
5255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5256 (eval $ac_try) 2>&5
5257 ac_status=$?
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; }; }; then
5260 solaris_ld_v2_maps=yes
5261 fi
5262 ;;
5263esac
5264
5265
590e2636
MF
5266# Check if xtensa target is configured for windowed ABI and thus needs to use
5267# custom unwind code.
5268# This is after config.host so we can augment tmake_file.
5269case ${host} in
5270xtensa*-*)
5271 cat > conftest.c <<EOF
5272 #ifdef __XTENSA_CALL0_ABI__
5273 #error
5274 #endif
5275EOF
5276 if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5'
5277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5281 test $ac_status = 0; }; }; then
5282 tmake_file="${tmake_file} xtensa/t-windowed"
5283 fi
5284 ;;
5285esac
5286
fa958513
DJ
5287# Check for visibility support. This is after config.host so that
5288# we can check for asm_hidden_op.
5213506e
RW
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5290$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
22e05272 5291if ${libgcc_cv_hidden_visibility_attribute+:} false; then :
5213506e 5292 $as_echo_n "(cached) " >&6
fa958513
DJ
5293else
5294
5295 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
5296 libgcc_cv_hidden_visibility_attribute=no
5297 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5213506e 5298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
fa958513
DJ
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5213506e
RW
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }; }; then
fa958513
DJ
5303 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
5304 libgcc_cv_hidden_visibility_attribute=yes
5305 fi
5306 fi
5307 rm -f conftest.*
5308
5309fi
5213506e
RW
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5311$as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
fa958513
DJ
5312
5313if test $libgcc_cv_hidden_visibility_attribute = yes; then
5314 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
ce579a4f
JJ
5315
5316cat >>confdefs.h <<_ACEOF
5317#define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5318_ACEOF
5319
fa958513
DJ
5320else
5321 vis_hide=
5322fi
5323
5324
ce579a4f
JJ
5325# Check for .cfi_sections .debug_frame support.
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5327$as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
22e05272 5328if ${libgcc_cv_cfi_sections_directive+:} false; then :
ce579a4f
JJ
5329 $as_echo_n "(cached) " >&6
5330else
5331
5332 echo 'int foo (int, char *);' > conftest.c
5333 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5334 libgcc_cv_cfi_sections_directive=no
5335 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5340 test $ac_status = 0; }; }; then
5341 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5342 libgcc_cv_cfi_sections_directive=yes
5343 fi
5344 fi
5345 rm -f conftest.*
5346
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5349$as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5350if test $libgcc_cv_cfi_sections_directive = yes; then
5351
5352$as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5353
5354fi
5355
6f461e76 5356# See if we have thread-local storage. We can only test assembler
d8c9d391 5357# since link-time and run-time tests require the newly built
6f461e76
L
5358# gcc, which can't be used to build executable due to that libgcc
5359# is yet to be built here.
5360
5213506e
RW
5361 # Check whether --enable-tls was given.
5362if test "${enable_tls+set}" = set; then :
5363 enableval=$enable_tls;
6f461e76
L
5364 case "$enableval" in
5365 yes|no) ;;
22e05272 5366 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
6f461e76
L
5367 esac
5368
5369else
5370 enable_tls=yes
5213506e 5371fi
6f461e76 5372
5213506e
RW
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
5375$as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
22e05272 5376if ${gcc_cv_have_cc_tls+:} false; then :
5213506e 5377 $as_echo_n "(cached) " >&6
6f461e76
L
5378else
5379
5213506e
RW
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h. */
6f461e76
L
5382__thread int a; int b; int main() { return a = b; }
5383_ACEOF
5213506e 5384if ac_fn_c_try_compile "$LINENO"; then :
b4e9c2c6 5385 gcc_cv_have_cc_tls=yes
6f461e76 5386else
5213506e 5387 gcc_cv_have_cc_tls=no
6f461e76 5388fi
5213506e 5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6f461e76
L
5390
5391fi
5213506e
RW
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
5393$as_echo "$gcc_cv_have_cc_tls" >&6; }
22867d02 5394set_have_cc_tls=
b4e9c2c6 5395if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
6f461e76
L
5396 set_have_cc_tls="-DHAVE_CC_TLS"
5397fi
5398
5399
368fabd5
JH
5400# See if we have emulated thread-local storage.
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
5403$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
22e05272 5404if ${gcc_cv_use_emutls+:} false; then :
368fabd5
JH
5405 $as_echo_n "(cached) " >&6
5406else
5407
5408 gcc_cv_use_emutls=no
5409 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
5410 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
5411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5415 test $ac_status = 0; }; }; then
5416 if grep __emutls_get_address conftest.s > /dev/null; then
5417 gcc_cv_use_emutls=yes
5418 fi
5419 fi
5420 rm -f conftest.*
5421
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
5424$as_echo "$gcc_cv_use_emutls" >&6; }
5425 if test "$gcc_cv_use_emutls" = "yes" ; then
5426
5427$as_echo "#define USE_EMUTLS 1" >>confdefs.h
5428
5429 fi
5430set_use_emutls=
5431if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5432 set_use_emutls="-DUSE_EMUTLS"
5433fi
5434
5435
89762a83
DS
5436
5437
5438case "${target}" in
5439i[34567]86-*-* | x86_64-*-*)
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
5441$as_echo_n "checking if the assembler supports AVX... " >&6; }
22e05272 5442if ${libgcc_cv_as_avx+:} false; then :
89762a83
DS
5443 $as_echo_n "(cached) " >&6
5444else
5445
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h. */
5448
5449int
5450main ()
5451{
5452asm("vzeroupper");
5453 ;
5454 return 0;
5455}
5456_ACEOF
5457if ac_fn_c_try_compile "$LINENO"; then :
5458 libgcc_cv_as_avx=yes
5459else
5460 libgcc_cv_as_avx=no
5461fi
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
5466$as_echo "$libgcc_cv_as_avx" >&6; }
5467 if test x$libgcc_cv_as_avx = xyes; then
5468
5469$as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
5470
5471 fi
5472 ;;
5473esac
5474
aca06c90
RO
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5476$as_echo_n "checking for init priority support... " >&6; }
22e05272 5477if ${libgcc_cv_init_priority+:} false; then :
aca06c90
RO
5478 $as_echo_n "(cached) " >&6
5479else
5480
5481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h. */
5483
5484int
5485main ()
5486{
5487void ip (void) __attribute__ ((constructor (1)));
5488 ;
5489 return 0;
5490}
5491_ACEOF
5492if ac_fn_c_try_compile "$LINENO"; then :
5493 libgcc_cv_init_priority=yes
5494else
5495 libgcc_cv_init_priority=no
5496fi
5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498fi
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5500$as_echo "$libgcc_cv_init_priority" >&6; }
5501if test $libgcc_cv_init_priority = yes; then
5502
5503$as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5504
5505fi
5506
aca0b0b3
RO
5507# Conditionalize the sfp-machine.h header for this target machine.
5508if test -z "${sfp_machine_header}"; then
5509 sfp_machine_header=$cpu_type/sfp-machine.h
5510 if test -f ${srcdir}/config/${sfp_machine_header}; then
5511 :
5512 else
5513 sfp_machine_header=no-sfp-machine.h
5514 fi
5515fi
5516
5517
fa958513
DJ
5518# Conditionalize the makefile for this target machine.
5519tmake_file_=
5520for f in ${tmake_file}
5521do
5522 if test -f ${srcdir}/config/$f
5523 then
5524 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5525 fi
5526done
5527tmake_file="${tmake_file_}"
5528
5529
852b75ed
RO
5530# Likewise export definitions for libgcc_tm.h
5531tm_file_=
5532for f in ${tm_file}
5533do
5534 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5535done
5536tm_file="${tm_file_}"
5537
5538
5539
5d1c8e77 5540# Map from thread model to thread header.
1183dc2c 5541
5d1c8e77
RO
5542case $target_thread_file in
5543 aix) thread_header=config/rs6000/gthr-aix.h ;;
5544 dce) thread_header=config/pa/gthr-dce.h ;;
5545 lynx) thread_header=config/gthr-lynx.h ;;
5546 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
9fbcc75d 5547 posix) thread_header=gthr-posix.h ;;
5d1c8e77
RO
5548 rtems) thread_header=config/gthr-rtems.h ;;
5549 single) thread_header=gthr-single.h ;;
5550 tpf) thread_header=config/s390/gthr-tpf.h ;;
5551 vxworks) thread_header=config/gthr-vxworks.h ;;
5552 win32) thread_header=config/i386/gthr-win32.h ;;
5553esac
5554
1183dc2c
PC
5555
5556
3c36aa6b
JJ
5557# Determine what GCC version number to use in filesystem paths.
5558
5559 get_gcc_base_ver="cat"
5560
5561# Check whether --with-gcc-major-version-only was given.
5562if test "${with_gcc_major_version_only+set}" = set; then :
5563 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
001ddaa8 5564 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
5565 fi
5566
5567fi
5568
5569
5570
5571
fa958513
DJ
5572# Substitute configuration variables
5573
5574
5575
10e48e39 5576
201cdb74 5577
58cd1d70 5578
aca0b0b3 5579
5d1c8e77 5580
ca24c5ad 5581
fa958513 5582# We need multilib support.
5213506e 5583ac_config_files="$ac_config_files Makefile"
fa958513 5584
5213506e 5585ac_config_commands="$ac_config_commands default"
fa958513
DJ
5586
5587cat >confcache <<\_ACEOF
5588# This file is a shell script that caches the results of configure
5589# tests run on this system so they can be shared between configure
5590# scripts and configure runs, see configure's option --config-cache.
5591# It is not useful on other systems. If it contains results you don't
5592# want to keep, you may remove or edit it.
5593#
5594# config.status only pays attention to the cache file if you give it
5595# the --recheck option to rerun configure.
5596#
5597# `ac_cv_env_foo' variables (set or unset) will be overridden when
5598# loading this file, other *unset* `ac_cv_foo' will be assigned the
5599# following values.
5600
5601_ACEOF
5602
5603# The following way of writing the cache mishandles newlines in values,
5604# but we know of no workaround that is simple, portable, and efficient.
5213506e 5605# So, we kill variables containing newlines.
fa958513
DJ
5606# Ultrix sh set writes to stderr and can't be redirected directly,
5607# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
5608(
5609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5610 eval ac_val=\$$ac_var
5611 case $ac_val in #(
5612 *${as_nl}*)
5613 case $ac_var in #(
5614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5615$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5616 esac
5617 case $ac_var in #(
5618 _ | IFS | as_nl) ;; #(
5619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5620 *) { eval $ac_var=; unset $ac_var;} ;;
5621 esac ;;
5622 esac
5623 done
5624
fa958513 5625 (set) 2>&1 |
5213506e
RW
5626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5627 *${as_nl}ac_space=\ *)
5628 # `set' does not quote correctly, so add quotes: double-quote
5629 # substitution turns \\\\ into \\, and sed turns \\ into \.
fa958513
DJ
5630 sed -n \
5631 "s/'/'\\\\''/g;
5632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 5633 ;; #(
fa958513
DJ
5634 *)
5635 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 5636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
fa958513 5637 ;;
5213506e
RW
5638 esac |
5639 sort
5640) |
fa958513 5641 sed '
5213506e 5642 /^ac_cv_env_/b end
fa958513 5643 t clear
5213506e 5644 :clear
fa958513
DJ
5645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5646 t end
5213506e
RW
5647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5648 :end' >>confcache
5649if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5650 if test -w "$cache_file"; then
22e05272 5651 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5653$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
5654 if test ! -f "$cache_file" || test -h "$cache_file"; then
5655 cat confcache >"$cache_file"
5656 else
5657 case $cache_file in #(
5658 */* | ?:*)
5659 mv -f confcache "$cache_file"$$ &&
5660 mv -f "$cache_file"$$ "$cache_file" ;; #(
5661 *)
5662 mv -f confcache "$cache_file" ;;
5663 esac
5664 fi
5665 fi
fa958513 5666 else
5213506e
RW
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5668$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
fa958513
DJ
5669 fi
5670fi
5671rm -f confcache
5672
5673test "x$prefix" = xNONE && prefix=$ac_default_prefix
5674# Let make expand exec_prefix.
5675test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5676
aca06c90 5677DEFS=-DHAVE_CONFIG_H
fa958513
DJ
5678
5679ac_libobjs=
5680ac_ltlibobjs=
22e05272 5681U=
fa958513
DJ
5682for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5683 # 1. Remove the extension, and $U if already installed.
5213506e
RW
5684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5687 # will be set to the directory where LIBOBJS objects are built.
5688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
fa958513
DJ
5690done
5691LIBOBJS=$ac_libobjs
5692
5693LTLIBOBJS=$ac_ltlibobjs
5694
5695
5696
22e05272 5697: "${CONFIG_STATUS=./config.status}"
5213506e 5698ac_write_fail=0
fa958513
DJ
5699ac_clean_files_save=$ac_clean_files
5700ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5702$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5703as_write_fail=0
5704cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
fa958513
DJ
5705#! $SHELL
5706# Generated by $as_me.
5707# Run this file to recreate the current configuration.
5708# Compiler output produced by configure, useful for debugging
5709# configure, is in config.log if it exists.
5710
5711debug=false
5712ac_cs_recheck=false
5713ac_cs_silent=false
fa958513 5714
5213506e
RW
5715SHELL=\${CONFIG_SHELL-$SHELL}
5716export SHELL
5717_ASEOF
5718cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5719## -------------------- ##
5720## M4sh Initialization. ##
5721## -------------------- ##
5722
5723# Be more Bourne compatible
5724DUALCASE=1; export DUALCASE # for MKS sh
5725if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
fa958513
DJ
5726 emulate sh
5727 NULLCMD=:
5213506e 5728 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
fa958513
DJ
5729 # is contrary to our usage. Disable this feature.
5730 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
5731 setopt NO_GLOB_SUBST
5732else
5733 case `(set -o) 2>/dev/null` in #(
5734 *posix*) :
5735 set -o posix ;; #(
5736 *) :
5737 ;;
5738esac
fa958513 5739fi
fa958513 5740
5213506e
RW
5741
5742as_nl='
5743'
5744export as_nl
5745# Printing a long string crashes Solaris 7 /usr/bin/printf.
5746as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5747as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5748as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5749# Prefer a ksh shell builtin over an external printf program on Solaris,
5750# but without wasting forks for bash or zsh.
5751if test -z "$BASH_VERSION$ZSH_VERSION" \
5752 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5753 as_echo='print -r --'
5754 as_echo_n='print -rn --'
5755elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5756 as_echo='printf %s\n'
5757 as_echo_n='printf %s'
fa958513 5758else
5213506e
RW
5759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5761 as_echo_n='/usr/ucb/echo -n'
5762 else
5763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5764 as_echo_n_body='eval
5765 arg=$1;
5766 case $arg in #(
5767 *"$as_nl"*)
5768 expr "X$arg" : "X\\(.*\\)$as_nl";
5769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5770 esac;
5771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5772 '
5773 export as_echo_n_body
5774 as_echo_n='sh -c $as_echo_n_body as_echo'
5775 fi
5776 export as_echo_body
5777 as_echo='sh -c $as_echo_body as_echo'
5778fi
5779
5780# The user is always right.
5781if test "${PATH_SEPARATOR+set}" != set; then
5782 PATH_SEPARATOR=:
5783 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5784 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5785 PATH_SEPARATOR=';'
5786 }
fa958513
DJ
5787fi
5788
5789
5213506e
RW
5790# IFS
5791# We need space, tab and new line, in precisely that order. Quoting is
5792# there to prevent editors from complaining about space-tab.
5793# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5794# splitting by setting IFS to empty value.)
5795IFS=" "" $as_nl"
5796
5797# Find who we are. Look in the path if we contain no directory separator.
22e05272 5798as_myself=
5213506e
RW
5799case $0 in #((
5800 *[\\/]* ) as_myself=$0 ;;
5801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5807 done
5808IFS=$as_save_IFS
5809
5810 ;;
5811esac
5812# We did not find ourselves, most probably we were run as `sh COMMAND'
5813# in which case we are not to be found in the path.
5814if test "x$as_myself" = x; then
5815 as_myself=$0
5816fi
5817if test ! -f "$as_myself"; then
5818 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5819 exit 1
5820fi
5821
5822# Unset variables that we do not need and which cause bugs (e.g. in
5823# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5824# suppresses any "Segmentation fault" message there. '((' could
5825# trigger a bug in pdksh 5.2.14.
5826for as_var in BASH_ENV ENV MAIL MAILPATH
5827do eval test x\${$as_var+set} = xset \
5828 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5829done
fa958513
DJ
5830PS1='$ '
5831PS2='> '
5832PS4='+ '
5833
5834# NLS nuisances.
5213506e
RW
5835LC_ALL=C
5836export LC_ALL
5837LANGUAGE=C
5838export LANGUAGE
5839
5840# CDPATH.
5841(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5842
5843
22e05272
JM
5844# as_fn_error STATUS ERROR [LINENO LOG_FD]
5845# ----------------------------------------
5213506e
RW
5846# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5847# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 5848# script with STATUS, using 1 if that was 0.
5213506e
RW
5849as_fn_error ()
5850{
22e05272
JM
5851 as_status=$1; test $as_status -eq 0 && as_status=1
5852 if test "$4"; then
5853 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5854 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
fa958513 5855 fi
22e05272 5856 $as_echo "$as_me: error: $2" >&2
5213506e
RW
5857 as_fn_exit $as_status
5858} # as_fn_error
5859
fa958513 5860
5213506e
RW
5861# as_fn_set_status STATUS
5862# -----------------------
5863# Set $? to STATUS, without forking.
5864as_fn_set_status ()
5865{
5866 return $1
5867} # as_fn_set_status
5868
5869# as_fn_exit STATUS
5870# -----------------
5871# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5872as_fn_exit ()
5873{
5874 set +e
5875 as_fn_set_status $1
5876 exit $1
5877} # as_fn_exit
5878
5879# as_fn_unset VAR
5880# ---------------
5881# Portably unset VAR.
5882as_fn_unset ()
5883{
5884 { eval $1=; unset $1;}
5885}
5886as_unset=as_fn_unset
5887# as_fn_append VAR VALUE
5888# ----------------------
5889# Append the text in VALUE to the end of the definition contained in VAR. Take
5890# advantage of any shell optimizations that allow amortized linear growth over
5891# repeated appends, instead of the typical quadratic growth present in naive
5892# implementations.
5893if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5894 eval 'as_fn_append ()
5895 {
5896 eval $1+=\$2
5897 }'
5898else
5899 as_fn_append ()
5900 {
5901 eval $1=\$$1\$2
5902 }
5903fi # as_fn_append
5904
5905# as_fn_arith ARG...
5906# ------------------
5907# Perform arithmetic evaluation on the ARGs, and store the result in the
5908# global $as_val. Take advantage of shells that can avoid forks. The arguments
5909# must be portable across $(()) and expr.
5910if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5911 eval 'as_fn_arith ()
5912 {
5913 as_val=$(( $* ))
5914 }'
5915else
5916 as_fn_arith ()
5917 {
5918 as_val=`expr "$@" || test $? -eq 1`
5919 }
5920fi # as_fn_arith
5921
5922
5923if expr a : '\(a\)' >/dev/null 2>&1 &&
5924 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fa958513
DJ
5925 as_expr=expr
5926else
5927 as_expr=false
5928fi
5929
5213506e 5930if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fa958513
DJ
5931 as_basename=basename
5932else
5933 as_basename=false
5934fi
5935
5213506e
RW
5936if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5937 as_dirname=dirname
5938else
5939 as_dirname=false
5940fi
fa958513 5941
5213506e 5942as_me=`$as_basename -- "$0" ||
fa958513
DJ
5943$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5944 X"$0" : 'X\(//\)$' \| \
5213506e
RW
5945 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5946$as_echo X/"$0" |
5947 sed '/^.*\/\([^/][^/]*\)\/*$/{
5948 s//\1/
5949 q
5950 }
5951 /^X\/\(\/\/\)$/{
5952 s//\1/
5953 q
5954 }
5955 /^X\/\(\/\).*/{
5956 s//\1/
5957 q
5958 }
5959 s/.*/./; q'`
fa958513 5960
d6efbf5a
DJ
5961# Avoid depending upon Character Ranges.
5962as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5963as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5964as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5965as_cr_digits='0123456789'
5966as_cr_alnum=$as_cr_Letters$as_cr_digits
fa958513 5967
5213506e
RW
5968ECHO_C= ECHO_N= ECHO_T=
5969case `echo -n x` in #(((((
5970-n*)
5971 case `echo 'xy\c'` in
5972 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5973 xy) ECHO_C='\c';;
5974 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5975 ECHO_T=' ';;
5976 esac;;
5977*)
5978 ECHO_N='-n';;
fa958513
DJ
5979esac
5980
5213506e
RW
5981rm -f conf$$ conf$$.exe conf$$.file
5982if test -d conf$$.dir; then
5983 rm -f conf$$.dir/conf$$.file
fa958513 5984else
5213506e
RW
5985 rm -f conf$$.dir
5986 mkdir conf$$.dir 2>/dev/null
fa958513 5987fi
5213506e
RW
5988if (echo >conf$$.file) 2>/dev/null; then
5989 if ln -s conf$$.file conf$$ 2>/dev/null; then
d6efbf5a 5990 as_ln_s='ln -s'
5213506e
RW
5991 # ... but there are two gotchas:
5992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 5994 # In both cases, we have to default to `cp -pR'.
5213506e 5995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 5996 as_ln_s='cp -pR'
5213506e
RW
5997 elif ln conf$$.file conf$$ 2>/dev/null; then
5998 as_ln_s=ln
5999 else
22e05272 6000 as_ln_s='cp -pR'
d6efbf5a 6001 fi
fa958513 6002else
22e05272 6003 as_ln_s='cp -pR'
fa958513 6004fi
5213506e
RW
6005rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6006rmdir conf$$.dir 2>/dev/null
6007
6008
6009# as_fn_mkdir_p
6010# -------------
6011# Create "$as_dir" as a directory, including parents if necessary.
6012as_fn_mkdir_p ()
6013{
6014
6015 case $as_dir in #(
6016 -*) as_dir=./$as_dir;;
6017 esac
6018 test -d "$as_dir" || eval $as_mkdir_p || {
6019 as_dirs=
6020 while :; do
6021 case $as_dir in #(
6022 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6023 *) as_qdir=$as_dir;;
6024 esac
6025 as_dirs="'$as_qdir' $as_dirs"
6026 as_dir=`$as_dirname -- "$as_dir" ||
6027$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6028 X"$as_dir" : 'X\(//\)[^/]' \| \
6029 X"$as_dir" : 'X\(//\)$' \| \
6030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6031$as_echo X"$as_dir" |
6032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6033 s//\1/
6034 q
6035 }
6036 /^X\(\/\/\)[^/].*/{
6037 s//\1/
6038 q
6039 }
6040 /^X\(\/\/\)$/{
6041 s//\1/
6042 q
6043 }
6044 /^X\(\/\).*/{
6045 s//\1/
6046 q
6047 }
6048 s/.*/./; q'`
6049 test -d "$as_dir" && break
6050 done
6051 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 6052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
fa958513 6053
5213506e
RW
6054
6055} # as_fn_mkdir_p
fa958513 6056if mkdir -p . 2>/dev/null; then
5213506e 6057 as_mkdir_p='mkdir -p "$as_dir"'
fa958513
DJ
6058else
6059 test -d ./-p && rmdir ./-p
6060 as_mkdir_p=false
6061fi
6062
22e05272
JM
6063
6064# as_fn_executable_p FILE
6065# -----------------------
6066# Test if FILE is an executable regular file.
6067as_fn_executable_p ()
6068{
6069 test -f "$1" && test -x "$1"
6070} # as_fn_executable_p
6071as_test_x='test -x'
6072as_executable_p=as_fn_executable_p
fa958513
DJ
6073
6074# Sed expression to map a string onto a valid CPP name.
6075as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6076
6077# Sed expression to map a string onto a valid variable name.
6078as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6079
6080
fa958513 6081exec 6>&1
5213506e
RW
6082## ----------------------------------- ##
6083## Main body of $CONFIG_STATUS script. ##
6084## ----------------------------------- ##
6085_ASEOF
6086test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6087
6088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6089# Save the log message, to keep $0 and so on meaningful, and to
fa958513 6090# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
6091# values after options handling.
6092ac_log="
fa958513 6093This file was extended by GNU C Runtime Library $as_me 1.0, which was
22e05272 6094generated by GNU Autoconf 2.69. Invocation command line was
fa958513
DJ
6095
6096 CONFIG_FILES = $CONFIG_FILES
6097 CONFIG_HEADERS = $CONFIG_HEADERS
6098 CONFIG_LINKS = $CONFIG_LINKS
6099 CONFIG_COMMANDS = $CONFIG_COMMANDS
6100 $ $0 $@
6101
5213506e
RW
6102on `(hostname || uname -n) 2>/dev/null | sed 1q`
6103"
6104
fa958513
DJ
6105_ACEOF
6106
5213506e
RW
6107case $ac_config_files in *"
6108"*) set x $ac_config_files; shift; ac_config_files=$*;;
6109esac
fa958513 6110
aca06c90
RO
6111case $ac_config_headers in *"
6112"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6113esac
d6efbf5a 6114
d6efbf5a 6115
5213506e
RW
6116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6117# Files that config.status was made for.
6118config_files="$ac_config_files"
aca06c90 6119config_headers="$ac_config_headers"
5213506e 6120config_commands="$ac_config_commands"
fa958513 6121
5213506e 6122_ACEOF
d6efbf5a 6123
5213506e 6124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fa958513 6125ac_cs_usage="\
5213506e
RW
6126\`$as_me' instantiates files and other configuration actions
6127from templates according to the current configuration. Unless the files
6128and actions are specified as TAGs, all are instantiated by default.
fa958513 6129
5213506e 6130Usage: $0 [OPTION]... [TAG]...
fa958513
DJ
6131
6132 -h, --help print this help, then exit
5213506e 6133 -V, --version print version number and configuration settings, then exit
22e05272 6134 --config print configuration, then exit
5213506e
RW
6135 -q, --quiet, --silent
6136 do not print progress messages
fa958513
DJ
6137 -d, --debug don't remove temporary files
6138 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
6139 --file=FILE[:TEMPLATE]
6140 instantiate the configuration file FILE
aca06c90
RO
6141 --header=FILE[:TEMPLATE]
6142 instantiate the configuration header FILE
fa958513
DJ
6143
6144Configuration files:
6145$config_files
6146
aca06c90
RO
6147Configuration headers:
6148$config_headers
6149
fa958513
DJ
6150Configuration commands:
6151$config_commands
6152
5213506e
RW
6153Report bugs to the package provider.
6154GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
6155General help using GNU software: <http://www.gnu.org/gethelp/>."
d6efbf5a 6156
5213506e
RW
6157_ACEOF
6158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 6159ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
fa958513
DJ
6160ac_cs_version="\\
6161GNU C Runtime Library config.status 1.0
22e05272
JM
6162configured by $0, generated by GNU Autoconf 2.69,
6163 with options \\"\$ac_cs_config\\"
fa958513 6164
22e05272 6165Copyright (C) 2012 Free Software Foundation, Inc.
fa958513
DJ
6166This config.status script is free software; the Free Software Foundation
6167gives unlimited permission to copy, distribute and modify it."
5213506e
RW
6168
6169ac_pwd='$ac_pwd'
6170srcdir='$srcdir'
6171INSTALL='$INSTALL'
6172AWK='$AWK'
6173test -n "\$AWK" || AWK=awk
fa958513
DJ
6174_ACEOF
6175
5213506e
RW
6176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6177# The default lists apply if the user does not specify any file.
fa958513
DJ
6178ac_need_defaults=:
6179while test $# != 0
6180do
6181 case $1 in
22e05272 6182 --*=?*)
5213506e
RW
6183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
fa958513
DJ
6185 ac_shift=:
6186 ;;
22e05272
JM
6187 --*=)
6188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6189 ac_optarg=
6190 ac_shift=:
6191 ;;
5213506e 6192 *)
fa958513
DJ
6193 ac_option=$1
6194 ac_optarg=$2
6195 ac_shift=shift
6196 ;;
fa958513
DJ
6197 esac
6198
6199 case $ac_option in
6200 # Handling of the options.
fa958513
DJ
6201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6202 ac_cs_recheck=: ;;
5213506e
RW
6203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6204 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
6205 --config | --confi | --conf | --con | --co | --c )
6206 $as_echo "$ac_cs_config"; exit ;;
5213506e 6207 --debug | --debu | --deb | --de | --d | -d )
fa958513
DJ
6208 debug=: ;;
6209 --file | --fil | --fi | --f )
6210 $ac_shift
5213506e
RW
6211 case $ac_optarg in
6212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 6213 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
6214 esac
6215 as_fn_append CONFIG_FILES " '$ac_optarg'"
d6efbf5a 6216 ac_need_defaults=false;;
aca06c90
RO
6217 --header | --heade | --head | --hea )
6218 $ac_shift
6219 case $ac_optarg in
6220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6221 esac
6222 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6223 ac_need_defaults=false;;
6224 --he | --h)
6225 # Conflict between --help and --header
22e05272 6226 as_fn_error $? "ambiguous option: \`$1'
aca06c90
RO
6227Try \`$0 --help' for more information.";;
6228 --help | --hel | -h )
5213506e 6229 $as_echo "$ac_cs_usage"; exit ;;
fa958513
DJ
6230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6232 ac_cs_silent=: ;;
6233
6234 # This is an error.
22e05272 6235 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 6236Try \`$0 --help' for more information." ;;
fa958513 6237
5213506e
RW
6238 *) as_fn_append ac_config_targets " $1"
6239 ac_need_defaults=false ;;
fa958513
DJ
6240
6241 esac
6242 shift
6243done
6244
6245ac_configure_extra_args=
6246
6247if $ac_cs_silent; then
6248 exec 6>/dev/null
6249 ac_configure_extra_args="$ac_configure_extra_args --silent"
6250fi
6251
6252_ACEOF
5213506e 6253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fa958513 6254if \$ac_cs_recheck; then
22e05272 6255 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
6256 shift
6257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6258 CONFIG_SHELL='$SHELL'
6259 export CONFIG_SHELL
6260 exec "\$@"
fa958513
DJ
6261fi
6262
6263_ACEOF
5213506e
RW
6264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6265exec 5>>config.log
6266{
6267 echo
6268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6269## Running $as_me. ##
6270_ASBOX
6271 $as_echo "$ac_log"
6272} >&5
fa958513 6273
5213506e
RW
6274_ACEOF
6275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fa958513 6276#
5213506e 6277# INIT-COMMANDS
fa958513 6278#
fa958513
DJ
6279srcdir=${srcdir}
6280host=${host}
fa958513
DJ
6281with_target_subdir=${with_target_subdir}
6282with_multisubdir=${with_multisubdir}
6283ac_configure_args="--enable-multilib ${ac_configure_args}"
6284CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6285libgcc_topdir=${libgcc_topdir}
6286CC="${CC}"
6287
6288
6289_ACEOF
6290
5213506e 6291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14e8fc8b 6292
5213506e 6293# Handling of arguments.
fa958513
DJ
6294for ac_config_target in $ac_config_targets
6295do
5213506e 6296 case $ac_config_target in
aca06c90 6297 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
5213506e
RW
6298 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6299 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6300
22e05272 6301 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
fa958513
DJ
6302 esac
6303done
6304
5213506e 6305
fa958513
DJ
6306# If the user did not use the arguments to specify the items to instantiate,
6307# then the envvar interface is used. Set only those that are not.
6308# We use the long form for the default assignment because of an extremely
6309# bizarre bug on SunOS 4.1.3.
6310if $ac_need_defaults; then
6311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
aca06c90 6312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
fa958513
DJ
6313 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6314fi
6315
6316# Have a temporary directory for convenience. Make it in the build tree
5213506e 6317# simply because there is no reason against having it here, and in addition,
fa958513 6318# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
6319# Hook for its removal unless debugging.
6320# Note that there is a small window in which the directory will not be cleaned:
6321# after its creation but before its name has been assigned to `$tmp'.
fa958513
DJ
6322$debug ||
6323{
22e05272 6324 tmp= ac_tmp=
5213506e 6325 trap 'exit_status=$?
22e05272
JM
6326 : "${ac_tmp:=$tmp}"
6327 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
6328' 0
6329 trap 'as_fn_exit 1' 1 2 13 15
fa958513 6330}
fa958513
DJ
6331# Create a (secure) tmp directory for tmp files.
6332
6333{
5213506e 6334 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 6335 test -d "$tmp"
fa958513
DJ
6336} ||
6337{
5213506e
RW
6338 tmp=./conf$$-$RANDOM
6339 (umask 077 && mkdir "$tmp")
22e05272
JM
6340} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6341ac_tmp=$tmp
5213506e
RW
6342
6343# Set up the scripts for CONFIG_FILES section.
6344# No need to generate them if there are no CONFIG_FILES.
6345# This happens for instance with `./config.status config.h'.
6346if test -n "$CONFIG_FILES"; then
6347
6348
6349ac_cr=`echo X | tr X '\015'`
6350# On cygwin, bash can eat \r inside `` if the user requested igncr.
6351# But we know of no other shell where ac_cr would be empty at this
6352# point, so we can use a bashism as a fallback.
6353if test "x$ac_cr" = x; then
6354 eval ac_cr=\$\'\\r\'
6355fi
6356ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6357if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 6358 ac_cs_awk_cr='\\r'
5213506e
RW
6359else
6360 ac_cs_awk_cr=$ac_cr
6361fi
6362
22e05272 6363echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
6364_ACEOF
6365
6366
6367{
6368 echo "cat >conf$$subs.awk <<_ACEOF" &&
6369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6370 echo "_ACEOF"
6371} >conf$$subs.sh ||
22e05272
JM
6372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6373ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
6374ac_delim='%!_!# '
6375for ac_last_try in false false false false false :; do
6376 . ./conf$$subs.sh ||
22e05272 6377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
6378
6379 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6380 if test $ac_delim_n = $ac_delim_num; then
6381 break
6382 elif $ac_last_try; then
22e05272 6383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
6384 else
6385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6386 fi
6387done
6388rm -f conf$$subs.sh
6389
6390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 6391cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5213506e
RW
6392_ACEOF
6393sed -n '
6394h
6395s/^/S["/; s/!.*/"]=/
6396p
6397g
6398s/^[^!]*!//
6399:repl
6400t repl
6401s/'"$ac_delim"'$//
6402t delim
6403:nl
6404h
22e05272 6405s/\(.\{148\}\)..*/\1/
5213506e
RW
6406t more1
6407s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6408p
6409n
6410b repl
6411:more1
6412s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6413p
6414g
6415s/.\{148\}//
6416t nl
6417:delim
6418h
22e05272 6419s/\(.\{148\}\)..*/\1/
5213506e
RW
6420t more2
6421s/["\\]/\\&/g; s/^/"/; s/$/"/
6422p
6423b
6424:more2
6425s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6426p
6427g
6428s/.\{148\}//
6429t delim
6430' <conf$$subs.awk | sed '
6431/^[^""]/{
6432 N
6433 s/\n//
6434}
6435' >>$CONFIG_STATUS || ac_write_fail=1
6436rm -f conf$$subs.awk
6437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6438_ACAWK
22e05272 6439cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
6440 for (key in S) S_is_set[key] = 1
6441 FS = "\a"
6442
6443}
fa958513 6444{
5213506e
RW
6445 line = $ 0
6446 nfields = split(line, field, "@")
6447 substed = 0
6448 len = length(field[1])
6449 for (i = 2; i < nfields; i++) {
6450 key = field[i]
6451 keylen = length(key)
6452 if (S_is_set[key]) {
6453 value = S[key]
6454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6455 len += length(value) + length(field[++i])
6456 substed = 1
6457 } else
6458 len += 1 + keylen
6459 }
6460
6461 print line
fa958513
DJ
6462}
6463
5213506e
RW
6464_ACAWK
6465_ACEOF
6466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6467if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6468 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6469else
6470 cat
22e05272
JM
6471fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6472 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
d6efbf5a
DJ
6473_ACEOF
6474
22e05272
JM
6475# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6476# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
6477# trailing colons and then remove the whole line if VPATH becomes empty
6478# (actually we leave an empty line to preserve line numbers).
6479if test "x$srcdir" = x.; then
22e05272
JM
6480 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6481h
6482s///
6483s/^/:/
6484s/[ ]*$/:/
6485s/:\$(srcdir):/:/g
6486s/:\${srcdir}:/:/g
6487s/:@srcdir@:/:/g
6488s/^:*//
5213506e 6489s/:*$//
22e05272
JM
6490x
6491s/\(=[ ]*\).*/\1/
6492G
6493s/\n//
5213506e
RW
6494s/^[^=]*=[ ]*$//
6495}'
6496fi
d6efbf5a 6497
5213506e
RW
6498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6499fi # test -n "$CONFIG_FILES"
fa958513 6500
aca06c90
RO
6501# Set up the scripts for CONFIG_HEADERS section.
6502# No need to generate them if there are no CONFIG_HEADERS.
6503# This happens for instance with `./config.status Makefile'.
6504if test -n "$CONFIG_HEADERS"; then
22e05272 6505cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
aca06c90
RO
6506BEGIN {
6507_ACEOF
6508
6509# Transform confdefs.h into an awk script `defines.awk', embedded as
6510# here-document in config.status, that substitutes the proper values into
6511# config.h.in to produce config.h.
6512
6513# Create a delimiter string that does not exist in confdefs.h, to ease
6514# handling of long lines.
6515ac_delim='%!_!# '
6516for ac_last_try in false false :; do
22e05272
JM
6517 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6518 if test -z "$ac_tt"; then
aca06c90
RO
6519 break
6520 elif $ac_last_try; then
22e05272 6521 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
aca06c90
RO
6522 else
6523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6524 fi
6525done
fa958513 6526
aca06c90
RO
6527# For the awk script, D is an array of macro values keyed by name,
6528# likewise P contains macro parameters if any. Preserve backslash
6529# newline sequences.
6530
6531ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6532sed -n '
6533s/.\{148\}/&'"$ac_delim"'/g
6534t rset
6535:rset
6536s/^[ ]*#[ ]*define[ ][ ]*/ /
6537t def
6538d
6539:def
6540s/\\$//
6541t bsnl
6542s/["\\]/\\&/g
6543s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6544D["\1"]=" \3"/p
6545s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6546d
6547:bsnl
6548s/["\\]/\\&/g
6549s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6550D["\1"]=" \3\\\\\\n"\\/p
6551t cont
6552s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6553t cont
6554d
6555:cont
6556n
6557s/.\{148\}/&'"$ac_delim"'/g
6558t clear
6559:clear
6560s/\\$//
6561t bsnlc
6562s/["\\]/\\&/g; s/^/"/; s/$/"/p
6563d
6564:bsnlc
6565s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6566b cont
6567' <confdefs.h | sed '
6568s/'"$ac_delim"'/"\\\
6569"/g' >>$CONFIG_STATUS || ac_write_fail=1
6570
6571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6572 for (key in D) D_is_set[key] = 1
6573 FS = "\a"
6574}
6575/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6576 line = \$ 0
6577 split(line, arg, " ")
6578 if (arg[1] == "#") {
6579 defundef = arg[2]
6580 mac1 = arg[3]
6581 } else {
6582 defundef = substr(arg[1], 2)
6583 mac1 = arg[2]
6584 }
6585 split(mac1, mac2, "(") #)
6586 macro = mac2[1]
6587 prefix = substr(line, 1, index(line, defundef) - 1)
6588 if (D_is_set[macro]) {
6589 # Preserve the white space surrounding the "#".
6590 print prefix "define", macro P[macro] D[macro]
6591 next
6592 } else {
6593 # Replace #undef with comments. This is necessary, for example,
6594 # in the case of _POSIX_SOURCE, which is predefined and required
6595 # on some systems where configure will not decide to define it.
6596 if (defundef == "undef") {
6597 print "/*", prefix defundef, macro, "*/"
6598 next
6599 }
6600 }
6601}
6602{ print }
6603_ACAWK
6604_ACEOF
6605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 6606 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
aca06c90
RO
6607fi # test -n "$CONFIG_HEADERS"
6608
6609
7e02fd1b 6610eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5213506e
RW
6611shift
6612for ac_tag
6613do
6614 case $ac_tag in
6615 :[FHLC]) ac_mode=$ac_tag; continue;;
6616 esac
6617 case $ac_mode$ac_tag in
6618 :[FHL]*:*);;
22e05272 6619 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
6620 :[FH]-) ac_tag=-:-;;
6621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6622 esac
6623 ac_save_IFS=$IFS
6624 IFS=:
6625 set x $ac_tag
6626 IFS=$ac_save_IFS
6627 shift
6628 ac_file=$1
6629 shift
fa958513 6630
5213506e
RW
6631 case $ac_mode in
6632 :L) ac_source=$1;;
6633 :[FH])
6634 ac_file_inputs=
6635 for ac_f
6636 do
6637 case $ac_f in
22e05272 6638 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
6639 *) # Look for the file first in the build tree, then in the source tree
6640 # (if the path is not absolute). The absolute path cannot be DOS-style,
6641 # because $ac_f cannot contain `:'.
6642 test -f "$ac_f" ||
6643 case $ac_f in
6644 [\\/$]*) false;;
6645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6646 esac ||
22e05272 6647 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
6648 esac
6649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6650 as_fn_append ac_file_inputs " '$ac_f'"
6651 done
6652
6653 # Let's still pretend it is `configure' which instantiates (i.e., don't
6654 # use $as_me), people would be surprised to read:
6655 # /* config.h. Generated by config.status. */
6656 configure_input='Generated from '`
6657 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6658 `' by configure.'
6659 if test x"$ac_file" != x-; then
6660 configure_input="$ac_file. $configure_input"
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6662$as_echo "$as_me: creating $ac_file" >&6;}
d6efbf5a 6663 fi
5213506e
RW
6664 # Neutralize special characters interpreted by sed in replacement strings.
6665 case $configure_input in #(
6666 *\&* | *\|* | *\\* )
6667 ac_sed_conf_input=`$as_echo "$configure_input" |
6668 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6669 *) ac_sed_conf_input=$configure_input;;
6670 esac
14e8fc8b 6671
5213506e 6672 case $ac_tag in
22e05272
JM
6673 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
6675 esac
6676 ;;
14e8fc8b
PB
6677 esac
6678
5213506e 6679 ac_dir=`$as_dirname -- "$ac_file" ||
fa958513
DJ
6680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6681 X"$ac_file" : 'X\(//\)[^/]' \| \
6682 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
6683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6684$as_echo X"$ac_file" |
6685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6686 s//\1/
6687 q
6688 }
6689 /^X\(\/\/\)[^/].*/{
6690 s//\1/
6691 q
6692 }
6693 /^X\(\/\/\)$/{
6694 s//\1/
6695 q
6696 }
6697 /^X\(\/\).*/{
6698 s//\1/
6699 q
6700 }
6701 s/.*/./; q'`
6702 as_dir="$ac_dir"; as_fn_mkdir_p
fa958513
DJ
6703 ac_builddir=.
6704
5213506e
RW
6705case "$ac_dir" in
6706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6707*)
6708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6709 # A ".." for each directory in $ac_dir_suffix.
6710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6711 case $ac_top_builddir_sub in
6712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6714 esac ;;
6715esac
6716ac_abs_top_builddir=$ac_pwd
6717ac_abs_builddir=$ac_pwd$ac_dir_suffix
6718# for backward compatibility:
6719ac_top_builddir=$ac_top_build_prefix
fa958513
DJ
6720
6721case $srcdir in
5213506e 6722 .) # We are building in place.
fa958513 6723 ac_srcdir=.
5213506e
RW
6724 ac_top_srcdir=$ac_top_builddir_sub
6725 ac_abs_top_srcdir=$ac_pwd ;;
6726 [\\/]* | ?:[\\/]* ) # Absolute name.
fa958513 6727 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
6728 ac_top_srcdir=$srcdir
6729 ac_abs_top_srcdir=$srcdir ;;
6730 *) # Relative name.
6731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6732 ac_top_srcdir=$ac_top_build_prefix$srcdir
6733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fa958513 6734esac
5213506e 6735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fa958513 6736
fa958513 6737
5213506e
RW
6738 case $ac_mode in
6739 :F)
6740 #
6741 # CONFIG_FILE
6742 #
fa958513
DJ
6743
6744 case $INSTALL in
6745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 6746 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
fa958513 6747 esac
5213506e 6748_ACEOF
14e8fc8b 6749
5213506e
RW
6750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6751# If the template does not know about datarootdir, expand it.
6752# FIXME: This hack should be removed a few years after 2.60.
6753ac_datarootdir_hack=; ac_datarootdir_seen=
6754ac_sed_dataroot='
6755/datarootdir/ {
6756 p
6757 q
6758}
6759/@datadir@/p
6760/@docdir@/p
6761/@infodir@/p
6762/@localedir@/p
6763/@mandir@/p'
6764case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6765*datarootdir*) ac_datarootdir_seen=yes;;
6766*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6768$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6769_ACEOF
6770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6771 ac_datarootdir_hack='
6772 s&@datadir@&$datadir&g
6773 s&@docdir@&$docdir&g
6774 s&@infodir@&$infodir&g
6775 s&@localedir@&$localedir&g
6776 s&@mandir@&$mandir&g
6777 s&\\\${datarootdir}&$datarootdir&g' ;;
6778esac
fa958513 6779_ACEOF
5213506e
RW
6780
6781# Neutralize VPATH when `$srcdir' = `.'.
6782# Shell code in configure.ac might set extrasub.
6783# FIXME: do we really want to maintain this feature?
6784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6785ac_sed_extra="$ac_vpsub
fa958513
DJ
6786$extrasub
6787_ACEOF
5213506e 6788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fa958513
DJ
6789:t
6790/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
6791s|@configure_input@|$ac_sed_conf_input|;t t
6792s&@top_builddir@&$ac_top_builddir_sub&;t t
6793s&@top_build_prefix@&$ac_top_build_prefix&;t t
6794s&@srcdir@&$ac_srcdir&;t t
6795s&@abs_srcdir@&$ac_abs_srcdir&;t t
6796s&@top_srcdir@&$ac_top_srcdir&;t t
6797s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6798s&@builddir@&$ac_builddir&;t t
6799s&@abs_builddir@&$ac_abs_builddir&;t t
6800s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6801s&@INSTALL@&$ac_INSTALL&;t t
6802$ac_datarootdir_hack
6803"
22e05272
JM
6804eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6805 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
6806
6807test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
6808 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6810 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 6812which seems to be undefined. Please make sure it is defined" >&5
5213506e 6813$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 6814which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 6815
22e05272 6816 rm -f "$ac_tmp/stdin"
5213506e 6817 case $ac_file in
22e05272
JM
6818 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6819 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 6820 esac \
22e05272 6821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 6822 ;;
aca06c90
RO
6823 :H)
6824 #
6825 # CONFIG_HEADER
6826 #
6827 if test x"$ac_file" != x-; then
6828 {
6829 $as_echo "/* $configure_input */" \
22e05272
JM
6830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6831 } >"$ac_tmp/config.h" \
6832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6833 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
aca06c90
RO
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6835$as_echo "$as_me: $ac_file is unchanged" >&6;}
6836 else
6837 rm -f "$ac_file"
22e05272
JM
6838 mv "$ac_tmp/config.h" "$ac_file" \
6839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
aca06c90
RO
6840 fi
6841 else
6842 $as_echo "/* $configure_input */" \
22e05272
JM
6843 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6844 || as_fn_error $? "could not create -" "$LINENO" 5
aca06c90
RO
6845 fi
6846 ;;
d6efbf5a 6847
5213506e
RW
6848 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6849$as_echo "$as_me: executing $ac_file commands" >&6;}
6850 ;;
6851 esac
d6efbf5a
DJ
6852
6853
5213506e
RW
6854 case $ac_file$ac_mode in
6855 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
fa958513
DJ
6856if test -n "$CONFIG_FILES"; then
6857 # FIXME: We shouldn't need to set ac_file
6858 ac_file=Makefile
6859 . ${libgcc_topdir}/config-ml.in
6860fi ;;
5213506e 6861
fa958513 6862 esac
5213506e 6863done # for ac_tag
fa958513 6864
fa958513 6865
5213506e 6866as_fn_exit 0
fa958513 6867_ACEOF
fa958513
DJ
6868ac_clean_files=$ac_clean_files_save
6869
5213506e 6870test $ac_write_fail = 0 ||
22e05272 6871 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 6872
fa958513
DJ
6873
6874# configure is writing to config.log, and then calls config.status.
6875# config.status does its own redirection, appending to config.log.
6876# Unfortunately, on DOS this fails, as config.log is still kept open
6877# by configure, so config.status won't be able to write to it; its
6878# output is simply discarded. So we exec the FD to /dev/null,
6879# effectively closing config.log, so it can be properly (re)opened and
6880# appended to by config.status. When coming back to configure, we
6881# need to make the FD available again.
6882if test "$no_create" != yes; then
6883 ac_cs_success=:
6884 ac_config_status_args=
6885 test "$silent" = yes &&
6886 ac_config_status_args="$ac_config_status_args --quiet"
6887 exec 5>/dev/null
6888 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6889 exec 5>>config.log
6890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6891 # would make configure fail if this is the last instruction.
22e05272 6892 $ac_cs_success || as_fn_exit 1
5213506e
RW
6893fi
6894if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6896$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fa958513
DJ
6897fi
6898