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