Debian Codegraph @

libgcc/configure

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