ira.c tidies: split update_reg_equivs
[official-gcc.git] / gcc / configure
blob99fdea172f6402607a8376c62d2949df0a1e8fea
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
767 LN_S
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files='option_includes
876 language_hooks'
877 ac_user_opts='
878 enable_option_checking
879 with_build_libsubdir
880 with_local_prefix
881 with_native_system_header_dir
882 with_build_sysroot
883 with_sysroot
884 with_gxx_include_dir
885 with_cpp_install_dir
886 enable_generated_files_in_srcdir
887 with_gnu_ld
888 with_ld
889 with_demangler_in_ld
890 with_gnu_as
891 with_as
892 enable_largefile
893 enable_build_format_warnings
894 enable_werror_always
895 enable_checking
896 enable_coverage
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
899 with_stabs
900 enable_multilib
901 enable_multiarch
902 enable___cxa_atexit
903 enable_decimal_float
904 enable_fixed_point
905 enable_threads
906 enable_tls
907 enable_objc_gc
908 with_dwarf2
909 enable_shared
910 with_specs
911 with_pkgversion
912 with_bugurl
913 enable_languages
914 with_multilib_list
915 enable_rpath
916 with_libiconv_prefix
917 enable_sjlj_exceptions
918 enable_secureplt
919 enable_leading_mingw64_underscores
920 enable_cld
921 enable_frame_pointer
922 enable_win32_registry
923 enable_static
924 with_pic
925 enable_fast_install
926 enable_libtool_lock
927 enable_ld
928 enable_gold
929 with_plugin_ld
930 enable_gnu_indirect_function
931 enable_initfini_array
932 enable_comdat
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
935 with_glibc_version
936 enable_gnu_unique_object
937 enable_linker_build_id
938 enable_default_ssp
939 with_long_double_128
940 with_gc
941 with_system_zlib
942 enable_maintainer_mode
943 enable_link_mutex
944 enable_version_specific_runtime_libs
945 enable_plugin
946 enable_host_shared
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
950 enable_default_pie
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
961 CXXFLAGS
963 CXXCPP
965 GMPLIBS
966 GMPINC
967 ISLLIBS
968 ISLINC'
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1026 ac_prev=
1027 continue
1030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1039 ac_dashdash=yes ;;
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 ac_prev=sbindir ;;
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 | --sbi=* | --sb=*)
1262 sbindir=$ac_optarg ;;
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1267 | --sha | --sh)
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 | --sha=* | --sh=*)
1273 sharedstatedir=$ac_optarg ;;
1275 -site | --site | --sit)
1276 ac_prev=site ;;
1277 -site=* | --site=* | --sit=*)
1278 site=$ac_optarg ;;
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 ac_prev=srcdir ;;
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 verbose=yes ;;
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1303 -with-* | --with-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=\$ac_optarg ;;
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=no ;;
1335 --x)
1336 # Obsolete; use --with-x.
1337 with_x=yes ;;
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1353 -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1357 *=*)
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1363 esac
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 esac
1376 done
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error "missing argument to $ac_option"
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1385 no) ;;
1386 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error "pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1462 /^X\(\/\/\)$/{
1463 s//\1/
1466 /^X\(\/\).*/{
1467 s//\1/
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1475 else
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1565 cat <<\_ACEOF
1567 Program names:
1568 --program-prefix=PREFIX prepend PREFIX to installed program names
1569 --program-suffix=SUFFIX append SUFFIX to installed program names
1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 --target=TARGET configure for building compilers for TARGET [HOST]
1576 _ACEOF
1579 if test -n "$ac_init_help"; then
1581 cat <<\_ACEOF
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-generated-files-in-srcdir
1588 put copies of generated files in source dir intended
1589 for creating source tarballs for users without
1590 texinfo bison or flex
1591 --disable-largefile omit support for large files
1592 --disable-build-format-warnings
1593 don't use -Wformat while building GCC
1594 --enable-werror-always enable -Werror despite compiler version
1595 --enable-checking[=LIST]
1596 enable expensive run-time checks. With LIST, enable
1597 only specific categories of checks. Categories are:
1598 yes,no,all,none,release. Flags are:
1599 assert,df,extra,fold,gc,gcac,gimple,misc,
1600 rtlflag,rtl,runtime,tree,valgrind,types
1601 --enable-coverage[=LEVEL]
1602 enable compiler's code coverage collection. Use to
1603 measure compiler performance and locate unused parts
1604 of the compiler. With LEVEL, specify optimization.
1605 Values are opt, noopt, default is noopt
1606 --enable-gather-detailed-mem-stats
1607 enable detailed memory allocation stats gathering
1608 --enable-valgrind-annotations
1609 enable valgrind runtime interaction
1610 --enable-multilib enable library support for multiple ABIs
1611 --enable-multiarch enable support for multiarch paths
1612 --enable-__cxa_atexit enable __cxa_atexit for C++
1613 --enable-decimal-float={no,yes,bid,dpd}
1614 enable decimal float extension to C. Selecting 'bid'
1615 or 'dpd' choses which decimal floating point format
1616 to use
1617 --enable-fixed-point enable fixed-point arithmetic extension to C
1618 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1619 package
1620 --enable-tls enable or disable generation of tls code overriding
1621 the assembler check for tls support
1622 --enable-objc-gc enable the use of Boehm's garbage collector with the
1623 GNU Objective-C runtime
1624 --disable-shared don't provide a shared libgcc
1625 --enable-languages=LIST specify which front-ends to build
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-sjlj-exceptions
1628 arrange to use setjmp/longjmp exception handling
1629 --enable-secureplt enable -msecure-plt by default for PowerPC
1630 --enable-leading-mingw64-underscores
1631 enable leading underscores on 64 bit mingw targets
1632 --enable-cld enable -mcld by default for 32bit x86
1633 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1635 --disable-win32-registry
1636 disable lookup of installation paths in the Registry
1637 on Windows hosts
1638 --enable-win32-registry enable registry lookup (default)
1639 --enable-win32-registry=KEY
1640 use KEY instead of GCC version as the last portion
1641 of the registry key
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=yes]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1648 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1649 --enable-gnu-indirect-function
1650 enable the use of the @gnu_indirect_function to
1651 glibc systems
1652 --enable-initfini-array use .init_array/.fini_array sections
1653 --enable-comdat enable COMDAT group support
1655 --enable-fix-cortex-a53-835769
1656 enable workaround for AArch64 Cortex-A53 erratum
1657 835769 by default
1658 --disable-fix-cortex-a53-835769
1659 disable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1663 --enable-fix-cortex-a53-843419
1664 enable workaround for AArch64 Cortex-A53 erratum
1665 843419 by default
1666 --disable-fix-cortex-a53-843419
1667 disable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1670 --enable-gnu-unique-object
1671 enable the use of the @gnu_unique_object ELF
1672 extension on glibc systems
1673 --enable-linker-build-id
1674 compiler will always pass --build-id to linker
1675 --enable-default-ssp enable Stack Smashing Protection as default
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1680 thrashing on the build machine
1681 --enable-version-specific-runtime-libs
1682 specify that runtime libraries should be installed
1683 in a compiler-specific directory
1684 --enable-plugin enable plugin support
1685 --enable-host-shared build host code as shared libraries
1686 --disable-libquadmath-support
1687 disable libquadmath support for Fortran
1688 --enable-default-pie enable Position Independent Executable as default
1690 Optional Packages:
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --with-build-libsubdir=DIR Directory where to find libraries for build system
1694 --with-local-prefix=DIR specifies directory to put local include
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-gxx-include-dir=DIR
1702 specifies directory to put g++ header files
1703 --with-cpp-install-dir=DIR
1704 install the user visible C preprocessor in DIR
1705 (relative to PREFIX) as well as PREFIX/bin
1706 --with-gnu-ld arrange to work with GNU ld
1707 --with-ld arrange to use the specified ld (full pathname)
1708 --with-demangler-in-ld try to use demangler in GNU ld
1709 --with-gnu-as arrange to work with GNU as
1710 --with-as arrange to use the specified as (full pathname)
1711 --with-stabs arrange to use stabs instead of host debug format
1712 --with-dwarf2 force the default debug format to be DWARF 2
1713 --with-specs=SPECS add SPECS to driver command-line processing
1714 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1715 --with-bugurl=URL Direct users to URL to report a bug
1716 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1717 --with-gnu-ld assume the C compiler uses GNU ld default=no
1718 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1719 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1720 --with-pic try to use only PIC/non-PIC objects [default=use
1721 both]
1722 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 --with-plugin-ld=[ARG] specify the plugin linker
1724 --with-glibc-version=M.N
1725 assume GCC used with glibc version M.N or later
1726 --with-long-double-128 use 128-bit long double by default
1727 --with-gc={page,zone} this option is not supported anymore. It used to
1728 choose the garbage collection mechanism to use with
1729 the compiler
1730 --with-system-zlib use installed libz
1731 --with-linker-hash-style={sysv,gnu,both}
1732 specify the linker hash style
1733 --with-diagnostics-color={never,auto,auto-if-env,always}
1734 specify the default of -fdiagnostics-color option
1735 auto-if-env stands for -fdiagnostics-color=auto if
1736 GCC_COLOR environment variable is present and
1737 -fdiagnostics-color=never otherwise
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1750 CPP C preprocessor
1751 GMPLIBS How to link GMP
1752 GMPINC How to find GMP include files
1753 ISLLIBS How to link isl
1754 ISLINC How to find isl include files
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1759 Report bugs to the package provider.
1760 _ACEOF
1761 ac_status=$?
1764 if test "$ac_init_help" = "recursive"; then
1765 # If there are subdirs, report their specific --help.
1766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1767 test -d "$ac_dir" ||
1768 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769 continue
1770 ac_builddir=.
1772 case "$ac_dir" in
1773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776 # A ".." for each directory in $ac_dir_suffix.
1777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778 case $ac_top_builddir_sub in
1779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1781 esac ;;
1782 esac
1783 ac_abs_top_builddir=$ac_pwd
1784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir=$ac_top_build_prefix
1788 case $srcdir in
1789 .) # We are building in place.
1790 ac_srcdir=.
1791 ac_top_srcdir=$ac_top_builddir_sub
1792 ac_abs_top_srcdir=$ac_pwd ;;
1793 [\\/]* | ?:[\\/]* ) # Absolute name.
1794 ac_srcdir=$srcdir$ac_dir_suffix;
1795 ac_top_srcdir=$srcdir
1796 ac_abs_top_srcdir=$srcdir ;;
1797 *) # Relative name.
1798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799 ac_top_srcdir=$ac_top_build_prefix$srcdir
1800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1801 esac
1802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1804 cd "$ac_dir" || { ac_status=$?; continue; }
1805 # Check for guested configure.
1806 if test -f "$ac_srcdir/configure.gnu"; then
1807 echo &&
1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809 elif test -f "$ac_srcdir/configure"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure" --help=recursive
1812 else
1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1814 fi || ac_status=$?
1815 cd "$ac_pwd" || { ac_status=$?; break; }
1816 done
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1821 cat <<\_ACEOF
1822 configure
1823 generated by GNU Autoconf 2.64
1825 Copyright (C) 2009 Free Software Foundation, Inc.
1826 This configure script is free software; the Free Software Foundation
1827 gives unlimited permission to copy, distribute and modify it.
1828 _ACEOF
1829 exit
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_c_try_compile
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1910 } # ac_fn_cxx_try_compile
1912 # ac_fn_cxx_try_cpp LINENO
1913 # ------------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_cpp ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_cpp conftest.$ac_ext"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } >/dev/null && {
1934 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1935 test ! -s conftest.err
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=1
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 return $ac_retval
1947 } # ac_fn_cxx_try_cpp
1949 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # ---------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_cxx_check_header_mongrel ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_cxx_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_cxx_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020 esac
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 eval "$3=\$ac_header_compiler"
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 } # ac_fn_cxx_check_header_mongrel
2036 # ac_fn_cxx_try_run LINENO
2037 # ------------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2040 ac_fn_cxx_try_run ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2051 ac_status=$?
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2061 ac_status=$?
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2064 ac_retval=0
2065 else
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=$ac_status
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 return $ac_retval
2076 } # ac_fn_cxx_try_run
2078 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2079 # ---------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_cxx_check_header_compile ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2093 #include <$2>
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 } # ac_fn_cxx_check_header_compile
2109 # ac_fn_c_try_cpp LINENO
2110 # ----------------------
2111 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_c_try_cpp ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_cpp conftest.$ac_ext"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } >/dev/null && {
2131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2132 test ! -s conftest.err
2133 }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 ac_retval=1
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142 return $ac_retval
2144 } # ac_fn_c_try_cpp
2146 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2147 # ----------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2150 # computed
2151 ac_fn_cxx_compute_int ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 ac_lo=0 ac_mid=0
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2176 main ()
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179 test_array [0] = 0
2182 return 0;
2184 _ACEOF
2185 if ac_fn_cxx_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid; break
2187 else
2188 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2202 main ()
2204 static int test_array [1 - 2 * !(($2) < 0)];
2205 test_array [0] = 0
2208 return 0;
2210 _ACEOF
2211 if ac_fn_cxx_try_compile "$LINENO"; then :
2212 ac_hi=-1 ac_mid=-1
2213 while :; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2218 main ()
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 test_array [0] = 0
2224 return 0;
2226 _ACEOF
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229 else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 else
2240 ac_lo= ac_hi=
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2252 main ()
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0
2258 return 0;
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid
2263 else
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 case $ac_lo in #((
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270 '') ac_retval=1 ;;
2271 esac
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2278 #include <stdio.h>
2279 #include <stdlib.h>
2281 main ()
2284 FILE *f = fopen ("conftest.val", "w");
2285 if (! f)
2286 return 1;
2287 if (($2) < 0)
2289 long int i = longval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%ld", i);
2294 else
2296 unsigned long int i = ulongval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%lu", i);
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2306 return 0;
2308 _ACEOF
2309 if ac_fn_cxx_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311 else
2312 ac_retval=1
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 rm -f conftest.val
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 return $ac_retval
2322 } # ac_fn_cxx_compute_int
2324 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2325 # ---------------------------------------------
2326 # Tests whether TYPE exists after having included INCLUDES, setting cache
2327 # variable VAR accordingly.
2328 ac_fn_cxx_check_type ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=no"
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2341 main ()
2343 if (sizeof ($2))
2344 return 0;
2346 return 0;
2348 _ACEOF
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2354 main ()
2356 if (sizeof (($2)))
2357 return 0;
2359 return 0;
2361 _ACEOF
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2364 else
2365 eval "$3=yes"
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_cxx_check_type
2378 # ac_fn_c_find_intX_t LINENO BITS VAR
2379 # -----------------------------------
2380 # Finds a signed integer type with width BITS, setting cache variable VAR
2381 # accordingly.
2382 ac_fn_c_find_intX_t ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2386 $as_echo_n "checking for int$2_t... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 eval "$3=no"
2391 for ac_type in int$2_t 'int' 'long int' \
2392 'long long int' 'short int' 'signed char'; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $ac_includes_default
2397 main ()
2399 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2400 test_array [0] = 0
2403 return 0;
2405 _ACEOF
2406 if ac_fn_cxx_try_compile "$LINENO"; then :
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $ac_includes_default
2411 main ()
2413 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2414 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2415 test_array [0] = 0
2418 return 0;
2420 _ACEOF
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2423 else
2424 case $ac_type in #(
2425 int$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2437 else
2438 break
2440 done
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447 } # ac_fn_c_find_intX_t
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 rm -f conftest.$ac_objext conftest$ac_exeext
2456 if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>conftest.err
2464 ac_status=$?
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } && {
2472 test -z "$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 } && test -s conftest$ac_exeext && {
2475 test "$cross_compiling" = yes ||
2476 $as_test_x conftest$ac_exeext
2477 }; then :
2478 ac_retval=0
2479 else
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 ac_retval=1
2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487 # interfere with the next link command; also delete a directory that is
2488 # left behind by Apple's compiler. We do this before executing the actions.
2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 return $ac_retval
2493 } # ac_fn_cxx_try_link
2495 # ac_fn_c_find_uintX_t LINENO BITS VAR
2496 # ------------------------------------
2497 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2498 # accordingly.
2499 ac_fn_c_find_uintX_t ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2503 $as_echo_n "checking for uint$2_t... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 eval "$3=no"
2508 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2509 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $ac_includes_default
2514 main ()
2516 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2517 test_array [0] = 0
2520 return 0;
2522 _ACEOF
2523 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 case $ac_type in #(
2525 uint$2_t) :
2526 eval "$3=yes" ;; #(
2527 *) :
2528 eval "$3=\$ac_type" ;;
2529 esac
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 eval as_val=\$$3
2533 if test "x$as_val" = x""no; then :
2535 else
2536 break
2538 done
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545 } # ac_fn_c_find_uintX_t
2547 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2548 # ------------------------------------------------
2549 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2550 ac_fn_cxx_check_header_preproc ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 #include <$2>
2561 _ACEOF
2562 if ac_fn_cxx_try_cpp "$LINENO"; then :
2563 eval "$3=yes"
2564 else
2565 eval "$3=no"
2567 rm -f conftest.err conftest.$ac_ext
2569 eval ac_res=\$$3
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574 } # ac_fn_cxx_check_header_preproc
2576 # ac_fn_cxx_check_func LINENO FUNC VAR
2577 # ------------------------------------
2578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2579 ac_fn_cxx_check_func ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2591 #define $2 innocuous_$2
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $2 (); below.
2595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596 <limits.h> exists even on freestanding compilers. */
2598 #ifdef __STDC__
2599 # include <limits.h>
2600 #else
2601 # include <assert.h>
2602 #endif
2604 #undef $2
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 char $2 ();
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2617 choke me
2618 #endif
2621 main ()
2623 return $2 ();
2625 return 0;
2627 _ACEOF
2628 if ac_fn_cxx_try_link "$LINENO"; then :
2629 eval "$3=yes"
2630 else
2631 eval "$3=no"
2633 rm -f core conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2636 eval ac_res=\$$3
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641 } # ac_fn_cxx_check_func
2643 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2644 # --------------------------------------
2645 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2646 ac_fn_cxx_check_decl ()
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 as_decl_name=`echo $2|sed 's/ *(.*//'`
2650 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2652 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2660 main ()
2662 #ifndef $as_decl_name
2663 #ifdef __cplusplus
2664 (void) $as_decl_use;
2665 #else
2666 (void) $as_decl_name;
2667 #endif
2668 #endif
2671 return 0;
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 eval "$3=yes"
2676 else
2677 eval "$3=no"
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 eval ac_res=\$$3
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686 } # ac_fn_cxx_check_decl
2688 # ac_fn_c_try_link LINENO
2689 # -----------------------
2690 # Try to link conftest.$ac_ext, and return whether this succeeded.
2691 ac_fn_c_try_link ()
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 rm -f conftest.$ac_objext conftest$ac_exeext
2695 if { { ac_try="$ac_link"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest$ac_exeext && {
2714 test "$cross_compiling" = yes ||
2715 $as_test_x conftest$ac_exeext
2716 }; then :
2717 ac_retval=0
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_retval=1
2724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2726 # interfere with the next link command; also delete a directory that is
2727 # left behind by Apple's compiler. We do this before executing the actions.
2728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2730 return $ac_retval
2732 } # ac_fn_c_try_link
2734 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2735 # ----------------------------------------------
2736 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2737 ac_fn_c_check_header_preproc ()
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2741 $as_echo_n "checking for $2... " >&6; }
2742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747 #include <$2>
2748 _ACEOF
2749 if ac_fn_c_try_cpp "$LINENO"; then :
2750 eval "$3=yes"
2751 else
2752 eval "$3=no"
2754 rm -f conftest.err conftest.$ac_ext
2756 eval ac_res=\$$3
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2761 } # ac_fn_c_check_header_preproc
2763 # ac_fn_c_check_func LINENO FUNC VAR
2764 # ----------------------------------
2765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2766 ac_fn_c_check_func ()
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2778 #define $2 innocuous_$2
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char $2 (); below.
2782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783 <limits.h> exists even on freestanding compilers. */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2791 #undef $2
2793 /* Override any GCC internal prototype to avoid an error.
2794 Use char because int might match the return type of a GCC
2795 builtin and then its argument prototype would still apply. */
2796 #ifdef __cplusplus
2797 extern "C"
2798 #endif
2799 char $2 ();
2800 /* The GNU C library defines this for functions which it implements
2801 to always fail with ENOSYS. Some functions are actually named
2802 something starting with __ and the normal name is an alias. */
2803 #if defined __stub_$2 || defined __stub___$2
2804 choke me
2805 #endif
2808 main ()
2810 return $2 ();
2812 return 0;
2814 _ACEOF
2815 if ac_fn_c_try_link "$LINENO"; then :
2816 eval "$3=yes"
2817 else
2818 eval "$3=no"
2820 rm -f core conftest.err conftest.$ac_objext \
2821 conftest$ac_exeext conftest.$ac_ext
2823 eval ac_res=\$$3
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2828 } # ac_fn_c_check_func
2829 cat >config.log <<_ACEOF
2830 This file contains any messages produced by compilers while
2831 running configure, to aid debugging if configure makes a mistake.
2833 It was created by $as_me, which was
2834 generated by GNU Autoconf 2.64. Invocation command line was
2836 $ $0 $@
2838 _ACEOF
2839 exec 5>>config.log
2841 cat <<_ASUNAME
2842 ## --------- ##
2843 ## Platform. ##
2844 ## --------- ##
2846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2863 _ASUNAME
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 $as_echo "PATH: $as_dir"
2871 done
2872 IFS=$as_save_IFS
2874 } >&5
2876 cat >&5 <<_ACEOF
2879 ## ----------- ##
2880 ## Core tests. ##
2881 ## ----------- ##
2883 _ACEOF
2886 # Keep a trace of the command line.
2887 # Strip out --no-create and --no-recursion so they do not pile up.
2888 # Strip out --silent because we don't want to record it for future runs.
2889 # Also quote any args containing shell meta-characters.
2890 # Make two passes to allow for proper duplicate-argument suppression.
2891 ac_configure_args=
2892 ac_configure_args0=
2893 ac_configure_args1=
2894 ac_must_keep_next=false
2895 for ac_pass in 1 2
2897 for ac_arg
2899 case $ac_arg in
2900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2902 | -silent | --silent | --silen | --sile | --sil)
2903 continue ;;
2904 *\'*)
2905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2906 esac
2907 case $ac_pass in
2908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2910 as_fn_append ac_configure_args1 " '$ac_arg'"
2911 if test $ac_must_keep_next = true; then
2912 ac_must_keep_next=false # Got value, back to normal.
2913 else
2914 case $ac_arg in
2915 *=* | --config-cache | -C | -disable-* | --disable-* \
2916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2918 | -with-* | --with-* | -without-* | --without-* | --x)
2919 case "$ac_configure_args0 " in
2920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2921 esac
2923 -* ) ac_must_keep_next=true ;;
2924 esac
2926 as_fn_append ac_configure_args " '$ac_arg'"
2928 esac
2929 done
2930 done
2931 { ac_configure_args0=; unset ac_configure_args0;}
2932 { ac_configure_args1=; unset ac_configure_args1;}
2934 # When interrupted or exit'd, cleanup temporary files, and complete
2935 # config.log. We remove comments because anyway the quotes in there
2936 # would cause problems or look ugly.
2937 # WARNING: Use '\'' to represent an apostrophe within the trap.
2938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2939 trap 'exit_status=$?
2940 # Save into config.log some information that might help in debugging.
2942 echo
2944 cat <<\_ASBOX
2945 ## ---------------- ##
2946 ## Cache variables. ##
2947 ## ---------------- ##
2948 _ASBOX
2949 echo
2950 # The following way of writing the cache mishandles newlines in values,
2952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2953 eval ac_val=\$$ac_var
2954 case $ac_val in #(
2955 *${as_nl}*)
2956 case $ac_var in #(
2957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2959 esac
2960 case $ac_var in #(
2961 _ | IFS | as_nl) ;; #(
2962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2963 *) { eval $ac_var=; unset $ac_var;} ;;
2964 esac ;;
2965 esac
2966 done
2967 (set) 2>&1 |
2968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2969 *${as_nl}ac_space=\ *)
2970 sed -n \
2971 "s/'\''/'\''\\\\'\'''\''/g;
2972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2973 ;; #(
2975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2977 esac |
2978 sort
2980 echo
2982 cat <<\_ASBOX
2983 ## ----------------- ##
2984 ## Output variables. ##
2985 ## ----------------- ##
2986 _ASBOX
2987 echo
2988 for ac_var in $ac_subst_vars
2990 eval ac_val=\$$ac_var
2991 case $ac_val in
2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993 esac
2994 $as_echo "$ac_var='\''$ac_val'\''"
2995 done | sort
2996 echo
2998 if test -n "$ac_subst_files"; then
2999 cat <<\_ASBOX
3000 ## ------------------- ##
3001 ## File substitutions. ##
3002 ## ------------------- ##
3003 _ASBOX
3004 echo
3005 for ac_var in $ac_subst_files
3007 eval ac_val=\$$ac_var
3008 case $ac_val in
3009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3010 esac
3011 $as_echo "$ac_var='\''$ac_val'\''"
3012 done | sort
3013 echo
3016 if test -s confdefs.h; then
3017 cat <<\_ASBOX
3018 ## ----------- ##
3019 ## confdefs.h. ##
3020 ## ----------- ##
3021 _ASBOX
3022 echo
3023 cat confdefs.h
3024 echo
3026 test "$ac_signal" != 0 &&
3027 $as_echo "$as_me: caught signal $ac_signal"
3028 $as_echo "$as_me: exit $exit_status"
3029 } >&5
3030 rm -f core *.core core.conftest.* &&
3031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3032 exit $exit_status
3034 for ac_signal in 1 2 13 15; do
3035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3036 done
3037 ac_signal=0
3039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3040 rm -f -r conftest* confdefs.h
3042 $as_echo "/* confdefs.h */" > confdefs.h
3044 # Predefined preprocessor variables.
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_NAME "$PACKAGE_NAME"
3048 _ACEOF
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_STRING "$PACKAGE_STRING"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_URL "$PACKAGE_URL"
3068 _ACEOF
3071 # Let the site file select an alternate cache file if it wants to.
3072 # Prefer an explicitly selected file to automatically selected ones.
3073 ac_site_file1=NONE
3074 ac_site_file2=NONE
3075 if test -n "$CONFIG_SITE"; then
3076 ac_site_file1=$CONFIG_SITE
3077 elif test "x$prefix" != xNONE; then
3078 ac_site_file1=$prefix/share/config.site
3079 ac_site_file2=$prefix/etc/config.site
3080 else
3081 ac_site_file1=$ac_default_prefix/share/config.site
3082 ac_site_file2=$ac_default_prefix/etc/config.site
3084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3086 test "x$ac_site_file" = xNONE && continue
3087 if test -r "$ac_site_file"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3090 sed 's/^/| /' "$ac_site_file" >&5
3091 . "$ac_site_file"
3093 done
3095 if test -r "$cache_file"; then
3096 # Some versions of bash will fail to source /dev/null (special
3097 # files actually), so we avoid doing that.
3098 if test -f "$cache_file"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3100 $as_echo "$as_me: loading cache $cache_file" >&6;}
3101 case $cache_file in
3102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3103 *) . "./$cache_file";;
3104 esac
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3108 $as_echo "$as_me: creating cache $cache_file" >&6;}
3109 >$cache_file
3112 # Check that the precious variables saved in the cache have kept the same
3113 # value.
3114 ac_cache_corrupted=false
3115 for ac_var in $ac_precious_vars; do
3116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3117 eval ac_new_set=\$ac_env_${ac_var}_set
3118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3119 eval ac_new_val=\$ac_env_${ac_var}_value
3120 case $ac_old_set,$ac_new_set in
3121 set,)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,set)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,);;
3131 if test "x$ac_old_val" != "x$ac_new_val"; then
3132 # differences in whitespace do not lead to failure.
3133 ac_old_val_w=`echo x $ac_old_val`
3134 ac_new_val_w=`echo x $ac_new_val`
3135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3138 ac_cache_corrupted=:
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3142 eval $ac_var=\$ac_old_val
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3148 fi;;
3149 esac
3150 # Pass precious variables to config.status.
3151 if test "$ac_new_set" = set; then
3152 case $ac_new_val in
3153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3154 *) ac_arg=$ac_var=$ac_new_val ;;
3155 esac
3156 case " $ac_configure_args " in
3157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3159 esac
3161 done
3162 if $ac_cache_corrupted; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3169 ## -------------------- ##
3170 ## Main body of script. ##
3171 ## -------------------- ##
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3187 gcc_version=`cat $srcdir/BASE-VER`
3189 # Determine the host, build, and target systems
3190 ac_aux_dir=
3191 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3192 for ac_t in install-sh install.sh shtool; do
3193 if test -f "$ac_dir/$ac_t"; then
3194 ac_aux_dir=$ac_dir
3195 ac_install_sh="$ac_aux_dir/$ac_t -c"
3196 break 2
3198 done
3199 done
3200 if test -z "$ac_aux_dir"; then
3201 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3204 # These three variables are undocumented and unsupported,
3205 # and are intended to be withdrawn in a future Autoconf release.
3206 # They can cause serious problems if a builder's source tree is in a directory
3207 # whose full name contains unusual characters.
3208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3213 # Make sure we can run config.sub.
3214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3215 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3218 $as_echo_n "checking build system type... " >&6; }
3219 if test "${ac_cv_build+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 ac_build_alias=$build_alias
3223 test "x$ac_build_alias" = x &&
3224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3225 test "x$ac_build_alias" = x &&
3226 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3228 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3232 $as_echo "$ac_cv_build" >&6; }
3233 case $ac_cv_build in
3234 *-*-*) ;;
3235 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3236 esac
3237 build=$ac_cv_build
3238 ac_save_IFS=$IFS; IFS='-'
3239 set x $ac_cv_build
3240 shift
3241 build_cpu=$1
3242 build_vendor=$2
3243 shift; shift
3244 # Remember, the first character of IFS is used to create $*,
3245 # except with old shells:
3246 build_os=$*
3247 IFS=$ac_save_IFS
3248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3252 $as_echo_n "checking host system type... " >&6; }
3253 if test "${ac_cv_host+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test "x$host_alias" = x; then
3257 ac_cv_host=$ac_cv_build
3258 else
3259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3260 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3266 case $ac_cv_host in
3267 *-*-*) ;;
3268 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3269 esac
3270 host=$ac_cv_host
3271 ac_save_IFS=$IFS; IFS='-'
3272 set x $ac_cv_host
3273 shift
3274 host_cpu=$1
3275 host_vendor=$2
3276 shift; shift
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3279 host_os=$*
3280 IFS=$ac_save_IFS
3281 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3285 $as_echo_n "checking target system type... " >&6; }
3286 if test "${ac_cv_target+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test "x$target_alias" = x; then
3290 ac_cv_target=$ac_cv_host
3291 else
3292 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3293 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3298 $as_echo "$ac_cv_target" >&6; }
3299 case $ac_cv_target in
3300 *-*-*) ;;
3301 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3302 esac
3303 target=$ac_cv_target
3304 ac_save_IFS=$IFS; IFS='-'
3305 set x $ac_cv_target
3306 shift
3307 target_cpu=$1
3308 target_vendor=$2
3309 shift; shift
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3312 target_os=$*
3313 IFS=$ac_save_IFS
3314 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3317 # The aliases save the names the user supplied, while $host etc.
3318 # will get canonicalized.
3319 test -n "$target_alias" &&
3320 test "$program_prefix$program_suffix$program_transform_name" = \
3321 NONENONEs,x,x, &&
3322 program_prefix=${target_alias}-
3324 # Determine the noncanonical target name, for directory use.
3325 case ${build_alias} in
3326 "") build_noncanonical=${build} ;;
3327 *) build_noncanonical=${build_alias} ;;
3328 esac
3330 case ${host_alias} in
3331 "") host_noncanonical=${build_noncanonical} ;;
3332 *) host_noncanonical=${host_alias} ;;
3333 esac
3335 case ${target_alias} in
3336 "") target_noncanonical=${host_noncanonical} ;;
3337 *) target_noncanonical=${target_alias} ;;
3338 esac
3343 # Used for constructing correct paths for offload compilers.
3344 real_target_noncanonical=${target_noncanonical}
3345 accel_dir_suffix=
3347 # Determine the target- and build-specific subdirectories
3349 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3350 # have matching libraries, they should use host libraries: Makefile.tpl
3351 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3352 # However, they still use the build modules, because the corresponding
3353 # host modules (e.g. bison) are only built for the host when bootstrap
3354 # finishes. So:
3355 # - build_subdir is where we find build modules, and never changes.
3356 # - build_libsubdir is where we find build libraries, and can be overridden.
3358 # Prefix 'build-' so this never conflicts with target_subdir.
3359 build_subdir="build-${build_noncanonical}"
3361 # Check whether --with-build-libsubdir was given.
3362 if test "${with_build_libsubdir+set}" = set; then :
3363 withval=$with_build_libsubdir; build_libsubdir="$withval"
3364 else
3365 build_libsubdir="$build_subdir"
3368 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3369 if ( test $srcdir = . && test -d gcc ) \
3370 || test -d $srcdir/../host-${host_noncanonical}; then
3371 host_subdir="host-${host_noncanonical}"
3372 else
3373 host_subdir=.
3375 # No prefix.
3376 target_subdir=${target_noncanonical}
3379 # Set program_transform_name
3380 test "$program_prefix" != NONE &&
3381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3382 # Use a double $ so make ignores it.
3383 test "$program_suffix" != NONE &&
3384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3385 # Double any \ or $.
3386 # By default was `s,x,x', remove it if useless.
3387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3391 # Check for bogus environment variables.
3392 # Test if LIBRARY_PATH contains the notation for the current directory
3393 # since this would lead to problems installing/building glibc.
3394 # LIBRARY_PATH contains the current directory if one of the following
3395 # is true:
3396 # - one of the terminals (":" and ";") is the first or last sign
3397 # - two terminals occur directly after each other
3398 # - the path contains an element with a dot in it
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3400 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3401 case ${LIBRARY_PATH} in
3402 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3403 library_path_setting="contains current directory"
3406 library_path_setting="ok"
3408 esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3410 $as_echo "$library_path_setting" >&6; }
3411 if test "$library_path_setting" != "ok"; then
3412 as_fn_error "
3413 *** LIBRARY_PATH shouldn't contain the current directory when
3414 *** building gcc. Please change the environment variable
3415 *** and run configure again." "$LINENO" 5
3418 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3419 # since this would lead to problems installing/building glibc.
3420 # GCC_EXEC_PREFIX contains the current directory if one of the following
3421 # is true:
3422 # - one of the terminals (":" and ";") is the first or last sign
3423 # - two terminals occur directly after each other
3424 # - the path contains an element with a dot in it
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3426 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3427 case ${GCC_EXEC_PREFIX} in
3428 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3429 gcc_exec_prefix_setting="contains current directory"
3432 gcc_exec_prefix_setting="ok"
3434 esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3436 $as_echo "$gcc_exec_prefix_setting" >&6; }
3437 if test "$gcc_exec_prefix_setting" != "ok"; then
3438 as_fn_error "
3439 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3440 *** building gcc. Please change the environment variable
3441 *** and run configure again." "$LINENO" 5
3444 # -----------
3445 # Directories
3446 # -----------
3448 # Specify the local prefix
3449 local_prefix=
3451 # Check whether --with-local-prefix was given.
3452 if test "${with_local_prefix+set}" = set; then :
3453 withval=$with_local_prefix; case "${withval}" in
3454 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3455 no) ;;
3456 *) local_prefix=$with_local_prefix ;;
3457 esac
3461 # Default local prefix if it is empty
3462 if test x$local_prefix = x; then
3463 local_prefix=/usr/local
3467 # Check whether --with-native-system-header-dir was given.
3468 if test "${with_native_system_header_dir+set}" = set; then :
3469 withval=$with_native_system_header_dir;
3470 case ${with_native_system_header_dir} in
3471 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3472 /* | [A-Za-z]:[\\/]*) ;;
3473 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3474 esac
3475 configured_native_system_header_dir="${withval}"
3477 else
3478 configured_native_system_header_dir=
3483 # Check whether --with-build-sysroot was given.
3484 if test "${with_build_sysroot+set}" = set; then :
3485 withval=$with_build_sysroot; if test x"$withval" != x ; then
3486 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3488 else
3489 SYSROOT_CFLAGS_FOR_TARGET=
3494 if test "x$prefix" = xNONE; then
3495 test_prefix=/usr/local
3496 else
3497 test_prefix=$prefix
3499 if test "x$exec_prefix" = xNONE; then
3500 test_exec_prefix=$test_prefix
3501 else
3502 test_exec_prefix=$exec_prefix
3506 # Check whether --with-sysroot was given.
3507 if test "${with_sysroot+set}" = set; then :
3508 withval=$with_sysroot;
3509 case ${with_sysroot} in
3510 /) ;;
3511 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3512 esac
3513 case ${with_sysroot} in
3514 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3515 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3516 esac
3518 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3519 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3521 case ${TARGET_SYSTEM_ROOT} in
3522 "${test_prefix}"|"${test_prefix}/"*|\
3523 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3524 '${prefix}'|'${prefix}/'*|\
3525 '${exec_prefix}'|'${exec_prefix}/'*)
3526 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3527 TARGET_SYSTEM_ROOT_DEFINE="$t"
3529 esac
3531 else
3533 TARGET_SYSTEM_ROOT=
3534 TARGET_SYSTEM_ROOT_DEFINE=
3535 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3543 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3544 # passed in by the toplevel make and thus we'd get different behavior
3545 # depending on where we built the sources.
3546 gcc_gxx_include_dir=
3547 # Specify the g++ header file directory
3549 # Check whether --with-gxx-include-dir was given.
3550 if test "${with_gxx_include_dir+set}" = set; then :
3551 withval=$with_gxx_include_dir; case "${withval}" in
3552 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3553 no) ;;
3554 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3555 esac
3559 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3560 if test x${gcc_gxx_include_dir} = x; then
3561 if test x${enable_version_specific_runtime_libs} = xyes; then
3562 gcc_gxx_include_dir='${libsubdir}/include/c++'
3563 else
3564 libstdcxx_incdir='include/c++/$(version)'
3565 if test x$host != x$target; then
3566 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3568 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3572 gcc_gxx_include_dir_add_sysroot=0
3573 if test "${with_sysroot+set}" = set; then
3574 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3575 if test "${gcc_gxx_without_sysroot}"; then
3576 if test x${with_sysroot} != x/; then
3577 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3579 gcc_gxx_include_dir_add_sysroot=1
3584 # Check whether --with-cpp_install_dir was given.
3585 if test "${with_cpp_install_dir+set}" = set; then :
3586 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3587 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3588 elif test x$withval != xno; then
3589 cpp_install_dir=$withval
3594 # We would like to our source tree to be readonly. However when releases or
3595 # pre-releases are generated, the flex/bison generated files as well as the
3596 # various formats of manuals need to be included along with the rest of the
3597 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3598 # just that.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3601 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3602 # Check whether --enable-generated-files-in-srcdir was given.
3603 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3604 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3605 else
3606 generated_files_in_srcdir=no
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3611 $as_echo "$generated_files_in_srcdir" >&6; }
3613 if test "$generated_files_in_srcdir" = "yes"; then
3614 GENINSRC=''
3615 else
3616 GENINSRC='#'
3620 # -------------------
3621 # Find default linker
3622 # -------------------
3624 # With GNU ld
3626 # Check whether --with-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then :
3628 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3629 else
3630 gnu_ld_flag=no
3634 # With pre-defined ld
3636 # Check whether --with-ld was given.
3637 if test "${with_ld+set}" = set; then :
3638 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3641 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3642 if test ! -x "$DEFAULT_LINKER"; then
3643 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3644 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3645 gnu_ld_flag=yes
3648 cat >>confdefs.h <<_ACEOF
3649 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3650 _ACEOF
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3655 $as_echo_n "checking whether a default linker was specified... " >&6; }
3656 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3657 if test x"$gnu_ld_flag" = x"no"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3659 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3662 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3669 # With demangler in GNU ld
3671 # Check whether --with-demangler-in-ld was given.
3672 if test "${with_demangler_in_ld+set}" = set; then :
3673 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3674 else
3675 demangler_in_ld=yes
3679 # ----------------------
3680 # Find default assembler
3681 # ----------------------
3683 # With GNU as
3685 # Check whether --with-gnu-as was given.
3686 if test "${with_gnu_as+set}" = set; then :
3687 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3688 else
3689 gas_flag=no
3694 # Check whether --with-as was given.
3695 if test "${with_as+set}" = set; then :
3696 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3699 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3700 if test ! -x "$DEFAULT_ASSEMBLER"; then
3701 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3702 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3703 gas_flag=yes
3706 cat >>confdefs.h <<_ACEOF
3707 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3708 _ACEOF
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3713 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3714 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3715 if test x"$gas_flag" = x"no"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3717 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3720 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3727 # ---------------
3728 # Find C compiler
3729 # ---------------
3731 # If a non-executable a.out is present (e.g. created by GNU as above even if
3732 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3733 # file, even when creating an executable, so an execution test fails.
3734 # Remove possible default executable files to avoid this.
3736 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3737 # Autoconf includes it.
3738 rm -f a.out a.exe b.out
3740 # Find the native compiler
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3768 done
3769 done
3770 IFS=$as_save_IFS
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3785 if test -z "$ac_cv_prog_CC"; then
3786 ac_ct_CC=$CC
3787 # Extract the first word of "gcc", so it can be a program name with args.
3788 set dummy gcc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 CC=$ac_ct_CC
3834 else
3835 CC="$ac_cv_prog_CC"
3838 if test -z "$CC"; then
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_CC="${ac_tool_prefix}cc"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3861 done
3862 done
3863 IFS=$as_save_IFS
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3879 if test -z "$CC"; then
3880 # Extract the first word of "cc", so it can be a program name with args.
3881 set dummy cc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 else
3890 ac_prog_rejected=no
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899 ac_prog_rejected=yes
3900 continue
3902 ac_cv_prog_CC="cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3906 done
3907 done
3908 IFS=$as_save_IFS
3910 if test $ac_prog_rejected = yes; then
3911 # We found a bogon in the path, so make sure we never use it.
3912 set dummy $ac_cv_prog_CC
3913 shift
3914 if test $# != 0; then
3915 # We chose a different compiler from the bogus one.
3916 # However, it has the same basename, so the bogon will be chosen
3917 # first if we set CC to just the basename; use the full file name.
3918 shift
3919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3924 CC=$ac_cv_prog_CC
3925 if test -n "$CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 for ac_prog in cl.exe
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_CC+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3960 done
3961 done
3962 IFS=$as_save_IFS
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$CC" && break
3977 done
3979 if test -z "$CC"; then
3980 ac_ct_CC=$CC
3981 for ac_prog in cl.exe
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy $ac_prog; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CC="$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4004 done
4005 done
4006 IFS=$as_save_IFS
4010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4020 test -n "$ac_ct_CC" && break
4021 done
4023 if test "x$ac_ct_CC" = x; then
4024 CC=""
4025 else
4026 case $cross_compiling:$ac_tool_warned in
4027 yes:)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4031 esac
4032 CC=$ac_ct_CC
4039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "no acceptable C compiler found in \$PATH
4042 See \`config.log' for more details." "$LINENO" 5; }
4044 # Provide some information about the compiler.
4045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 set X $ac_compile
4047 ac_compiler=$2
4048 for ac_option in --version -v -V -qversion; do
4049 { { ac_try="$ac_compiler $ac_option >&5"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4057 ac_status=$?
4058 if test -s conftest.err; then
4059 sed '10a\
4060 ... rest of stderr output deleted ...
4061 10q' conftest.err >conftest.er1
4062 cat conftest.er1 >&5
4063 rm -f conftest.er1 conftest.err
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 done
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4073 main ()
4077 return 0;
4079 _ACEOF
4080 ac_clean_files_save=$ac_clean_files
4081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4082 # Try to create an executable without -o first, disregard a.out.
4083 # It will help us diagnose broken compilers, and finding out an intuition
4084 # of exeext.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086 $as_echo_n "checking for C compiler default output file name... " >&6; }
4087 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4089 # The possible output files:
4090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4092 ac_rmfiles=
4093 for ac_file in $ac_files
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 esac
4099 done
4100 rm -f $ac_rmfiles
4102 if { { ac_try="$ac_link_default"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_link_default") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4116 # so that the user can short-circuit this test for compilers unknown to
4117 # Autoconf.
4118 for ac_file in $ac_files ''
4120 test -f "$ac_file" || continue
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4124 [ab].out )
4125 # We found the default executable, but exeext='' is most
4126 # certainly right.
4127 break;;
4128 *.* )
4129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4130 then :; else
4131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4133 # We set ac_cv_exeext here because the later test for it is not
4134 # safe: cross compilers may not add the suffix if given an `-o'
4135 # argument, so we may need to know it at that point already.
4136 # Even if this section looks crufty: it has the advantage of
4137 # actually working.
4138 break;;
4140 break;;
4141 esac
4142 done
4143 test "$ac_cv_exeext" = no && ac_cv_exeext=
4145 else
4146 ac_file=''
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149 $as_echo "$ac_file" >&6; }
4150 if test -z "$ac_file"; then :
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 { as_fn_set_status 77
4157 as_fn_error "C compiler cannot create executables
4158 See \`config.log' for more details." "$LINENO" 5; }; }
4160 ac_exeext=$ac_cv_exeext
4162 # Check that the compiler produces executables we can run. If not, either
4163 # the compiler is broken, or we cross compile.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4165 $as_echo_n "checking whether the C compiler works... " >&6; }
4166 # If not cross compiling, check that we can run a simple program.
4167 if test "$cross_compiling" != yes; then
4168 if { ac_try='./$ac_file'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4179 cross_compiling=no
4180 else
4181 if test "$cross_compiling" = maybe; then
4182 cross_compiling=yes
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details." "$LINENO" 5; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4196 ac_clean_files=$ac_clean_files_save
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200 $as_echo_n "checking whether we are cross compiling... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4202 $as_echo "$cross_compiling" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205 $as_echo_n "checking for suffix of executables... " >&6; }
4206 if { { ac_try="$ac_link"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
4214 ac_status=$?
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; then :
4217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4219 # work properly (i.e., refer to `conftest.exe'), while it won't with
4220 # `rm'.
4221 for ac_file in conftest.exe conftest conftest.*; do
4222 test -f "$ac_file" || continue
4223 case $ac_file in
4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4226 break;;
4227 * ) break;;
4228 esac
4229 done
4230 else
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error "cannot compute suffix of executables: cannot compile and link
4234 See \`config.log' for more details." "$LINENO" 5; }
4236 rm -f conftest$ac_cv_exeext
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4238 $as_echo "$ac_cv_exeext" >&6; }
4240 rm -f conftest.$ac_ext
4241 EXEEXT=$ac_cv_exeext
4242 ac_exeext=$EXEEXT
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 $as_echo_n "checking for suffix of object files... " >&6; }
4245 if test "${ac_cv_objext+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4252 main ()
4256 return 0;
4258 _ACEOF
4259 rm -f conftest.o conftest.obj
4260 if { { ac_try="$ac_compile"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_compile") 2>&5
4268 ac_status=$?
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }; then :
4271 for ac_file in conftest.o conftest.obj conftest.*; do
4272 test -f "$ac_file" || continue;
4273 case $ac_file in
4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 break;;
4277 esac
4278 done
4279 else
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error "cannot compute suffix of object files: cannot compile
4286 See \`config.log' for more details." "$LINENO" 5; }
4288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291 $as_echo "$ac_cv_objext" >&6; }
4292 OBJEXT=$ac_cv_objext
4293 ac_objext=$OBJEXT
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4303 main ()
4305 #ifndef __GNUC__
4306 choke me
4307 #endif
4310 return 0;
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_compiler_gnu=yes
4315 else
4316 ac_compiler_gnu=no
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326 else
4327 GCC=
4329 ac_test_CFLAGS=${CFLAGS+set}
4330 ac_save_CFLAGS=$CFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4333 if test "${ac_cv_prog_cc_g+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 ac_save_c_werror_flag=$ac_c_werror_flag
4337 ac_c_werror_flag=yes
4338 ac_cv_prog_cc_g=no
4339 CFLAGS="-g"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4344 main ()
4348 return 0;
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_g=yes
4353 else
4354 CFLAGS=""
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4359 main ()
4363 return 0;
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4368 else
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4375 main ()
4379 return 0;
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
4394 if test "$ac_test_CFLAGS" = set; then
4395 CFLAGS=$ac_save_CFLAGS
4396 elif test $ac_cv_prog_cc_g = yes; then
4397 if test "$GCC" = yes; then
4398 CFLAGS="-g -O2"
4399 else
4400 CFLAGS="-g"
4402 else
4403 if test "$GCC" = yes; then
4404 CFLAGS="-O2"
4405 else
4406 CFLAGS=
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_cv_prog_cc_c89=no
4415 ac_save_CC=$CC
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <stdarg.h>
4419 #include <stdio.h>
4420 #include <sys/types.h>
4421 #include <sys/stat.h>
4422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4423 struct buf { int x; };
4424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4425 static char *e (p, i)
4426 char **p;
4427 int i;
4429 return p[i];
4431 static char *f (char * (*g) (char **, int), char **p, ...)
4433 char *s;
4434 va_list v;
4435 va_start (v,p);
4436 s = g (p, va_arg (v,int));
4437 va_end (v);
4438 return s;
4441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4442 function prototypes and stuff, but not '\xHH' hex character constants.
4443 These don't provoke an error unfortunately, instead are silently treated
4444 as 'x'. The following induces an error, until -std is added to get
4445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4446 array size at least. It's necessary to write '\x00'==0 to get something
4447 that's true only with -std. */
4448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4451 inside strings and character constants. */
4452 #define FOO(x) 'x'
4453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4455 int test (int i, double x);
4456 struct s1 {int (*f) (int a);};
4457 struct s2 {int (*f) (double a);};
4458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4459 int argc;
4460 char **argv;
4462 main ()
4464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4466 return 0;
4468 _ACEOF
4469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4472 CC="$ac_save_CC $ac_arg"
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_c89=$ac_arg
4476 rm -f core conftest.err conftest.$ac_objext
4477 test "x$ac_cv_prog_cc_c89" != "xno" && break
4478 done
4479 rm -f conftest.$ac_ext
4480 CC=$ac_save_CC
4483 # AC_CACHE_VAL
4484 case "x$ac_cv_prog_cc_c89" in
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4487 $as_echo "none needed" >&6; } ;;
4488 xno)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490 $as_echo "unsupported" >&6; } ;;
4492 CC="$CC $ac_cv_prog_cc_c89"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4495 esac
4496 if test "x$ac_cv_prog_cc_c89" != xno; then :
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 ac_ext=cpp
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4513 CXX=$CCC
4514 else
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 CXX=$ac_cv_prog_CXX
4546 if test -n "$CXX"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4555 test -n "$CXX" && break
4556 done
4558 if test -z "$CXX"; then
4559 ac_ct_CXX=$CXX
4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4583 done
4584 done
4585 IFS=$as_save_IFS
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4599 test -n "$ac_ct_CXX" && break
4600 done
4602 if test "x$ac_ct_CXX" = x; then
4603 CXX="g++"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CXX=$ac_ct_CXX
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4619 set X $ac_compile
4620 ac_compiler=$2
4621 for ac_option in --version -v -V -qversion; do
4622 { { ac_try="$ac_compiler $ac_option >&5"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4630 ac_status=$?
4631 if test -s conftest.err; then
4632 sed '10a\
4633 ... rest of stderr output deleted ...
4634 10q' conftest.err >conftest.er1
4635 cat conftest.er1 >&5
4636 rm -f conftest.er1 conftest.err
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4640 done
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4651 main ()
4653 #ifndef __GNUC__
4654 choke me
4655 #endif
4658 return 0;
4660 _ACEOF
4661 if ac_fn_cxx_try_compile "$LINENO"; then :
4662 ac_compiler_gnu=yes
4663 else
4664 ac_compiler_gnu=no
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4673 GXX=yes
4674 else
4675 GXX=
4677 ac_test_CXXFLAGS=${CXXFLAGS+set}
4678 ac_save_CXXFLAGS=$CXXFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4681 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4685 ac_cxx_werror_flag=yes
4686 ac_cv_prog_cxx_g=no
4687 CXXFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4692 main ()
4696 return 0;
4698 _ACEOF
4699 if ac_fn_cxx_try_compile "$LINENO"; then :
4700 ac_cv_prog_cxx_g=yes
4701 else
4702 CXXFLAGS=""
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4707 main ()
4711 return 0;
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4716 else
4717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4723 main ()
4727 return 0;
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4742 if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4750 else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$GNATBIND"; then
4775 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4794 GNATBIND=$ac_cv_prog_GNATBIND
4795 if test -n "$GNATBIND"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4797 $as_echo "$GNATBIND" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4805 if test -z "$ac_cv_prog_GNATBIND"; then
4806 ac_ct_GNATBIND=$GNATBIND
4807 # Extract the first word of "gnatbind", so it can be a program name with args.
4808 set dummy gnatbind; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$ac_ct_GNATBIND"; then
4815 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4835 if test -n "$ac_ct_GNATBIND"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4837 $as_echo "$ac_ct_GNATBIND" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4843 if test "x$ac_ct_GNATBIND" = x; then
4844 GNATBIND="no"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned=yes ;;
4851 esac
4852 GNATBIND=$ac_ct_GNATBIND
4854 else
4855 GNATBIND="$ac_cv_prog_GNATBIND"
4858 if test -n "$ac_tool_prefix"; then
4859 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4860 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$GNATMAKE"; then
4867 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 GNATMAKE=$ac_cv_prog_GNATMAKE
4887 if test -n "$GNATMAKE"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4889 $as_echo "$GNATMAKE" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4897 if test -z "$ac_cv_prog_GNATMAKE"; then
4898 ac_ct_GNATMAKE=$GNATMAKE
4899 # Extract the first word of "gnatmake", so it can be a program name with args.
4900 set dummy gnatmake; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$ac_ct_GNATMAKE"; then
4907 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4927 if test -n "$ac_ct_GNATMAKE"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4929 $as_echo "$ac_ct_GNATMAKE" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4935 if test "x$ac_ct_GNATMAKE" = x; then
4936 GNATMAKE="no"
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 GNATMAKE=$ac_ct_GNATMAKE
4946 else
4947 GNATMAKE="$ac_cv_prog_GNATMAKE"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4951 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4952 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat >conftest.adb <<EOF
4956 procedure conftest is begin null; end conftest;
4958 acx_cv_cc_gcc_supports_ada=no
4959 # There is a bug in old released versions of GCC which causes the
4960 # driver to exit successfully when the appropriate language module
4961 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4962 # Therefore we must check for the error message as well as an
4963 # unsuccessful exit.
4964 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4965 # given a .adb file, but produce no object file. So we must check
4966 # if an object file was really produced to guard against this.
4967 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4968 if test x"$errors" = x && test -f conftest.$ac_objext; then
4969 acx_cv_cc_gcc_supports_ada=yes
4971 rm -f conftest.*
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4974 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4976 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4977 have_gnat=yes
4978 else
4979 have_gnat=no
4983 # Do configure tests with the C++ compiler, since that's what we build with.
4984 ac_ext=cpp
4985 ac_cpp='$CXXCPP $CPPFLAGS'
4986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4992 # optimizations to be activated explicitly by the toplevel.
4993 case "$CC" in
4994 */prev-gcc/xgcc*) ;;
4995 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4996 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4997 esac
5001 # Determine PICFLAG for target gnatlib.
5006 case "${target}" in
5007 # PIC is the default on some targets or must not be used.
5008 *-*-darwin*)
5009 # For darwin, common symbols are not allowed in MH_DYLIB files
5010 case "${CFLAGS}" in
5011 # If we are using a compiler supporting mdynamic-no-pic
5012 # and the option has been tested as safe to add, then cancel
5013 # it here, since the code generated is incompatible with shared
5014 # libs.
5015 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5016 *) PICFLAG_FOR_TARGET=-fno-common ;;
5017 esac
5019 alpha*-dec-osf5*)
5020 # PIC is the default.
5022 hppa*64*-*-hpux*)
5023 # PIC is the default for 64-bit PA HP-UX.
5025 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5027 i[34567]86-*-mingw* | x86_64-*-mingw*)
5029 i[34567]86-*-interix[3-9]*)
5030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5031 # Instead, we relocate shared libraries at runtime.
5033 i[34567]86-*-nto-qnx*)
5034 # QNX uses GNU C++, but need to define -shared option too, otherwise
5035 # it will coredump.
5036 PICFLAG_FOR_TARGET='-fPIC -shared'
5038 i[34567]86-pc-msdosdjgpp*)
5039 # DJGPP does not support shared libraries at all.
5041 ia64*-*-hpux*)
5042 # On IA64 HP-UX, PIC is the default but the pic flag
5043 # sets the default TLS model and affects inlining.
5044 PICFLAG_FOR_TARGET=-fPIC
5046 mips-sgi-irix6*)
5047 # PIC is the default.
5049 rs6000-ibm-aix* | powerpc-ibm-aix*)
5050 # All AIX code is PIC.
5053 # Some targets support both -fPIC and -fpic, but prefer the latter.
5054 # FIXME: Why?
5055 i[34567]86-*-* | x86_64-*-*)
5056 PICFLAG_FOR_TARGET=-fpic
5058 # FIXME: Override -fPIC default in libgcc only?
5059 sh-*-linux* | sh[2346lbe]*-*-linux*)
5060 PICFLAG_FOR_TARGET=-fpic
5062 # FIXME: Simplify to sh*-*-netbsd*?
5063 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5064 sh64-*-netbsd* | sh64l*-*-netbsd*)
5065 PICFLAG_FOR_TARGET=-fpic
5067 # Default to -fPIC unless specified otherwise.
5069 PICFLAG_FOR_TARGET=-fPIC
5071 esac
5073 # If the user explicitly uses -fpic/-fPIC, keep that.
5074 case "${CFLAGS_FOR_TARGET}" in
5075 *-fpic*)
5076 PICFLAG_FOR_TARGET=-fpic
5078 *-fPIC*)
5079 PICFLAG_FOR_TARGET=-fPIC
5081 esac
5085 # -------------------------
5086 # Check C compiler features
5087 # -------------------------
5090 ac_ext=cpp
5091 ac_cpp='$CXXCPP $CPPFLAGS'
5092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5096 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5097 if test -z "$CXXCPP"; then
5098 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 # Double quotes because CXXCPP needs to be expanded
5102 for CXXCPP in "$CXX -E" "/lib/cpp"
5104 ac_preproc_ok=false
5105 for ac_cxx_preproc_warn_flag in '' yes
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if ac_fn_cxx_try_cpp "$LINENO"; then :
5124 else
5125 # Broken: fails on valid input.
5126 continue
5128 rm -f conftest.err conftest.$ac_ext
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if ac_fn_cxx_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5144 rm -f conftest.err conftest.$ac_ext
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then :
5150 break
5153 done
5154 ac_cv_prog_CXXCPP=$CXXCPP
5157 CXXCPP=$ac_cv_prog_CXXCPP
5158 else
5159 ac_cv_prog_CXXCPP=$CXXCPP
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5162 $as_echo "$CXXCPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_cxx_preproc_warn_flag in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179 Syntax error
5180 _ACEOF
5181 if ac_fn_cxx_try_cpp "$LINENO"; then :
5183 else
5184 # Broken: fails on valid input.
5185 continue
5187 rm -f conftest.err conftest.$ac_ext
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if ac_fn_cxx_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5203 rm -f conftest.err conftest.$ac_ext
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then :
5210 else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5214 See \`config.log' for more details." "$LINENO" 5; }
5217 ac_ext=cpp
5218 ac_cpp='$CXXCPP $CPPFLAGS'
5219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5226 if test "${ac_cv_path_GREP+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -z "$GREP"; then
5230 ac_path_GREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in grep ggrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5241 # Check for GNU ac_path_GREP and select it if it is found.
5242 # Check for GNU $ac_path_GREP
5243 case `"$ac_path_GREP" --version 2>&1` in
5244 *GNU*)
5245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5247 ac_count=0
5248 $as_echo_n 0123456789 >"conftest.in"
5249 while :
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'GREP' >> "conftest.nl"
5255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_GREP="$ac_path_GREP"
5261 ac_path_GREP_max=$ac_count
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5269 $ac_path_GREP_found && break 3
5270 done
5271 done
5272 done
5273 IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_GREP"; then
5275 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5277 else
5278 ac_cv_path_GREP=$GREP
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5283 $as_echo "$ac_cv_path_GREP" >&6; }
5284 GREP="$ac_cv_path_GREP"
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5288 $as_echo_n "checking for egrep... " >&6; }
5289 if test "${ac_cv_path_EGREP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5293 then ac_cv_path_EGREP="$GREP -E"
5294 else
5295 if test -z "$EGREP"; then
5296 ac_path_EGREP_found=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_prog in egrep; do
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5307 # Check for GNU ac_path_EGREP and select it if it is found.
5308 # Check for GNU $ac_path_EGREP
5309 case `"$ac_path_EGREP" --version 2>&1` in
5310 *GNU*)
5311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5313 ac_count=0
5314 $as_echo_n 0123456789 >"conftest.in"
5315 while :
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'EGREP' >> "conftest.nl"
5321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5323 as_fn_arith $ac_count + 1 && ac_count=$as_val
5324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_EGREP="$ac_path_EGREP"
5327 ac_path_EGREP_max=$ac_count
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5331 done
5332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333 esac
5335 $ac_path_EGREP_found && break 3
5336 done
5337 done
5338 done
5339 IFS=$as_save_IFS
5340 if test -z "$ac_cv_path_EGREP"; then
5341 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5343 else
5344 ac_cv_path_EGREP=$EGREP
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5350 $as_echo "$ac_cv_path_EGREP" >&6; }
5351 EGREP="$ac_cv_path_EGREP"
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5355 $as_echo_n "checking for ANSI C header files... " >&6; }
5356 if test "${ac_cv_header_stdc+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <stdlib.h>
5362 #include <stdarg.h>
5363 #include <string.h>
5364 #include <float.h>
5367 main ()
5371 return 0;
5373 _ACEOF
5374 if ac_fn_cxx_try_compile "$LINENO"; then :
5375 ac_cv_header_stdc=yes
5376 else
5377 ac_cv_header_stdc=no
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 if test $ac_cv_header_stdc = yes; then
5382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <string.h>
5387 _ACEOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "memchr" >/dev/null 2>&1; then :
5391 else
5392 ac_cv_header_stdc=no
5394 rm -f conftest*
5398 if test $ac_cv_header_stdc = yes; then
5399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <stdlib.h>
5404 _ACEOF
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "free" >/dev/null 2>&1; then :
5408 else
5409 ac_cv_header_stdc=no
5411 rm -f conftest*
5415 if test $ac_cv_header_stdc = yes; then
5416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5417 if test "$cross_compiling" = yes; then :
5419 else
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ctype.h>
5423 #include <stdlib.h>
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 #else
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5433 #endif
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5437 main ()
5439 int i;
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5443 return 2;
5444 return 0;
5446 _ACEOF
5447 if ac_fn_cxx_try_run "$LINENO"; then :
5449 else
5450 ac_cv_header_stdc=no
5452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5453 conftest.$ac_objext conftest.beam conftest.$ac_ext
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5459 $as_echo "$ac_cv_header_stdc" >&6; }
5460 if test $ac_cv_header_stdc = yes; then
5462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468 inttypes.h stdint.h unistd.h
5469 do :
5470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5473 eval as_val=\$$as_ac_Header
5474 if test "x$as_val" = x""yes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5481 done
5485 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5486 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5487 MINIX=yes
5488 else
5489 MINIX=
5493 if test "$MINIX" = yes; then
5495 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5498 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5501 $as_echo "#define _MINIX 1" >>confdefs.h
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5507 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5508 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5514 # define __EXTENSIONS__ 1
5515 $ac_includes_default
5517 main ()
5521 return 0;
5523 _ACEOF
5524 if ac_fn_cxx_try_compile "$LINENO"; then :
5525 ac_cv_safe_to_define___extensions__=yes
5526 else
5527 ac_cv_safe_to_define___extensions__=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5532 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5533 test $ac_cv_safe_to_define___extensions__ = yes &&
5534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5554 CPP=
5556 if test -z "$CPP"; then
5557 if test "${ac_cv_prog_CPP+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 # Double quotes because CPP needs to be expanded
5561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5563 ac_preproc_ok=false
5564 for ac_c_preproc_warn_flag in '' yes
5566 # Use a header file that comes with gcc, so configuring glibc
5567 # with a fresh cross-compiler works.
5568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 # <limits.h> exists even on freestanding compilers.
5570 # On the NeXT, cc -E runs the code through the compiler's parser,
5571 # not just through cpp. "Syntax error" is here to catch this case.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifdef __STDC__
5575 # include <limits.h>
5576 #else
5577 # include <assert.h>
5578 #endif
5579 Syntax error
5580 _ACEOF
5581 if ac_fn_c_try_cpp "$LINENO"; then :
5583 else
5584 # Broken: fails on valid input.
5585 continue
5587 rm -f conftest.err conftest.$ac_ext
5589 # OK, works on sane cases. Now check whether nonexistent headers
5590 # can be detected and how.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if ac_fn_c_try_cpp "$LINENO"; then :
5596 # Broken: success on invalid input.
5597 continue
5598 else
5599 # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5603 rm -f conftest.err conftest.$ac_ext
5605 done
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then :
5609 break
5612 done
5613 ac_cv_prog_CPP=$CPP
5616 CPP=$ac_cv_prog_CPP
5617 else
5618 ac_cv_prog_CPP=$CPP
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5621 $as_echo "$CPP" >&6; }
5622 ac_preproc_ok=false
5623 for ac_c_preproc_warn_flag in '' yes
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638 Syntax error
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5642 else
5643 # Broken: fails on valid input.
5644 continue
5646 rm -f conftest.err conftest.$ac_ext
5648 # OK, works on sane cases. Now check whether nonexistent headers
5649 # can be detected and how.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <ac_nonexistent.h>
5653 _ACEOF
5654 if ac_fn_c_try_cpp "$LINENO"; then :
5655 # Broken: success on invalid input.
5656 continue
5657 else
5658 # Passes both tests.
5659 ac_preproc_ok=:
5660 break
5662 rm -f conftest.err conftest.$ac_ext
5664 done
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.err conftest.$ac_ext
5667 if $ac_preproc_ok; then :
5669 else
5670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5673 See \`config.log' for more details." "$LINENO" 5; }
5676 ac_ext=cpp
5677 ac_cpp='$CXXCPP $CPPFLAGS'
5678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5683 $as_echo_n "checking for inline... " >&6; }
5684 if test "${ac_cv_c_inline+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 ac_cv_c_inline=no
5688 for ac_kw in inline __inline__ __inline; do
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #ifndef __cplusplus
5692 typedef int foo_t;
5693 static $ac_kw foo_t static_foo () {return 0; }
5694 $ac_kw foo_t foo () {return 0; }
5695 #endif
5697 _ACEOF
5698 if ac_fn_cxx_try_compile "$LINENO"; then :
5699 ac_cv_c_inline=$ac_kw
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 test "$ac_cv_c_inline" != no && break
5703 done
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5707 $as_echo "$ac_cv_c_inline" >&6; }
5709 case $ac_cv_c_inline in
5710 inline | yes) ;;
5712 case $ac_cv_c_inline in
5713 no) ac_val=;;
5714 *) ac_val=$ac_cv_c_inline;;
5715 esac
5716 cat >>confdefs.h <<_ACEOF
5717 #ifndef __cplusplus
5718 #define inline $ac_val
5719 #endif
5720 _ACEOF
5722 esac
5725 # Check whether --enable-largefile was given.
5726 if test "${enable_largefile+set}" = set; then :
5727 enableval=$enable_largefile;
5730 if test "$enable_largefile" != no; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5734 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 ac_cv_sys_largefile_CC=no
5738 if test "$GCC" != yes; then
5739 ac_save_CC=$CC
5740 while :; do
5741 # IRIX 6.2 and later do not support large files by default,
5742 # so use the C compiler's -n32 option if that helps.
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 /* Check that off_t can represent 2**63 - 1 correctly.
5747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5748 since some C++ compilers masquerading as C compilers
5749 incorrectly reject 9223372036854775807. */
5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5752 && LARGE_OFF_T % 2147483647 == 1)
5753 ? 1 : -1];
5755 main ()
5759 return 0;
5761 _ACEOF
5762 if ac_fn_cxx_try_compile "$LINENO"; then :
5763 break
5765 rm -f core conftest.err conftest.$ac_objext
5766 CC="$CC -n32"
5767 if ac_fn_cxx_try_compile "$LINENO"; then :
5768 ac_cv_sys_largefile_CC=' -n32'; break
5770 rm -f core conftest.err conftest.$ac_objext
5771 break
5772 done
5773 CC=$ac_save_CC
5774 rm -f conftest.$ac_ext
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5779 if test "$ac_cv_sys_largefile_CC" != no; then
5780 CC=$CC$ac_cv_sys_largefile_CC
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 while :; do
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <sys/types.h>
5792 /* Check that off_t can represent 2**63 - 1 correctly.
5793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5794 since some C++ compilers masquerading as C compilers
5795 incorrectly reject 9223372036854775807. */
5796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5798 && LARGE_OFF_T % 2147483647 == 1)
5799 ? 1 : -1];
5801 main ()
5805 return 0;
5807 _ACEOF
5808 if ac_fn_cxx_try_compile "$LINENO"; then :
5809 ac_cv_sys_file_offset_bits=no; break
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #define _FILE_OFFSET_BITS 64
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5823 ? 1 : -1];
5825 main ()
5829 return 0;
5831 _ACEOF
5832 if ac_fn_cxx_try_compile "$LINENO"; then :
5833 ac_cv_sys_file_offset_bits=64; break
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 ac_cv_sys_file_offset_bits=unknown
5837 break
5838 done
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5842 case $ac_cv_sys_file_offset_bits in #(
5843 no | unknown) ;;
5845 cat >>confdefs.h <<_ACEOF
5846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5847 _ACEOF
5849 esac
5850 rm -rf conftest*
5851 if test $ac_cv_sys_file_offset_bits = unknown; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5854 if test "${ac_cv_sys_large_files+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 while :; do
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5868 ? 1 : -1];
5870 main ()
5874 return 0;
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"; then :
5878 ac_cv_sys_large_files=no; break
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #define _LARGE_FILES 1
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5894 main ()
5898 return 0;
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 ac_cv_sys_large_files=1; break
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_cv_sys_large_files=unknown
5906 break
5907 done
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5910 $as_echo "$ac_cv_sys_large_files" >&6; }
5911 case $ac_cv_sys_large_files in #(
5912 no | unknown) ;;
5914 cat >>confdefs.h <<_ACEOF
5915 #define _LARGE_FILES $ac_cv_sys_large_files
5916 _ACEOF
5918 esac
5919 rm -rf conftest*
5924 # sizeof(char) is 1 by definition.
5925 # The cast to long int works around a bug in the HP C Compiler
5926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5928 # This bug is HP SR number 8606223364.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5930 $as_echo_n "checking size of void *... " >&6; }
5931 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5936 else
5937 if test "$ac_cv_type_void_p" = yes; then
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { as_fn_set_status 77
5941 as_fn_error "cannot compute sizeof (void *)
5942 See \`config.log' for more details." "$LINENO" 5; }; }
5943 else
5944 ac_cv_sizeof_void_p=0
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5950 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5954 cat >>confdefs.h <<_ACEOF
5955 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5956 _ACEOF
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5964 $as_echo_n "checking size of short... " >&6; }
5965 if test "${ac_cv_sizeof_short+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5970 else
5971 if test "$ac_cv_type_short" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status 77
5975 as_fn_error "cannot compute sizeof (short)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5977 else
5978 ac_cv_sizeof_short=0
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5984 $as_echo "$ac_cv_sizeof_short" >&6; }
5988 cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_SHORT $ac_cv_sizeof_short
5990 _ACEOF
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5998 $as_echo_n "checking size of int... " >&6; }
5999 if test "${ac_cv_sizeof_int+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6004 else
6005 if test "$ac_cv_type_int" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (int)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof_int=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6018 $as_echo "$ac_cv_sizeof_int" >&6; }
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF_INT $ac_cv_sizeof_int
6024 _ACEOF
6027 # The cast to long int works around a bug in the HP C Compiler
6028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6030 # This bug is HP SR number 8606223364.
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6032 $as_echo_n "checking size of long... " >&6; }
6033 if test "${ac_cv_sizeof_long+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6038 else
6039 if test "$ac_cv_type_long" = yes; then
6040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042 { as_fn_set_status 77
6043 as_fn_error "cannot compute sizeof (long)
6044 See \`config.log' for more details." "$LINENO" 5; }; }
6045 else
6046 ac_cv_sizeof_long=0
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6052 $as_echo "$ac_cv_sizeof_long" >&6; }
6056 cat >>confdefs.h <<_ACEOF
6057 #define SIZEOF_LONG $ac_cv_sizeof_long
6058 _ACEOF
6061 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6062 if test "x$ac_cv_type_long_long" = x""yes; then :
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_LONG_LONG 1
6066 _ACEOF
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6073 $as_echo_n "checking size of long long... " >&6; }
6074 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6079 else
6080 if test "$ac_cv_type_long_long" = yes; then
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 { as_fn_set_status 77
6084 as_fn_error "cannot compute sizeof (long long)
6085 See \`config.log' for more details." "$LINENO" 5; }; }
6086 else
6087 ac_cv_sizeof_long_long=0
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6093 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6099 _ACEOF
6104 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6105 case $ac_cv_c_int8_t in #(
6106 no|yes) ;; #(
6109 cat >>confdefs.h <<_ACEOF
6110 #define int8_t $ac_cv_c_int8_t
6111 _ACEOF
6113 esac
6115 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6116 case $ac_cv_c_int16_t in #(
6117 no|yes) ;; #(
6120 cat >>confdefs.h <<_ACEOF
6121 #define int16_t $ac_cv_c_int16_t
6122 _ACEOF
6124 esac
6126 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6127 case $ac_cv_c_int32_t in #(
6128 no|yes) ;; #(
6131 cat >>confdefs.h <<_ACEOF
6132 #define int32_t $ac_cv_c_int32_t
6133 _ACEOF
6135 esac
6137 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6138 case $ac_cv_c_int64_t in #(
6139 no|yes) ;; #(
6142 cat >>confdefs.h <<_ACEOF
6143 #define int64_t $ac_cv_c_int64_t
6144 _ACEOF
6146 esac
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6150 $as_echo_n "checking for long long int... " >&6; }
6151 if test "${ac_cv_type_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6167 ? 1 : -1)];
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6169 ? 1 : -1)];
6170 int i = 63;
6172 main ()
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6182 return 0;
6185 _ACEOF
6186 if ac_fn_cxx_try_link "$LINENO"; then :
6187 if test "$cross_compiling" = yes; then :
6188 ac_cv_type_long_long_int=yes
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <limits.h>
6193 #ifndef LLONG_MAX
6194 # define HALF \
6195 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6196 # define LLONG_MAX (HALF - 1 + HALF)
6197 #endif
6199 main ()
6201 long long int n = 1;
6202 int i;
6203 for (i = 0; ; i++)
6205 long long int m = n << i;
6206 if (m >> i != n)
6207 return 1;
6208 if (LLONG_MAX / 2 < m)
6209 break;
6211 return 0;
6213 return 0;
6215 _ACEOF
6216 if ac_fn_cxx_try_run "$LINENO"; then :
6217 ac_cv_type_long_long_int=yes
6218 else
6219 ac_cv_type_long_long_int=no
6221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6222 conftest.$ac_objext conftest.beam conftest.$ac_ext
6225 else
6226 ac_cv_type_long_long_int=no
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6232 $as_echo "$ac_cv_type_long_long_int" >&6; }
6233 if test $ac_cv_type_long_long_int = yes; then
6235 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6241 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6244 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6246 else
6247 test $ac_cv_type_long_long_int = yes \
6248 && ac_type='long long int' \
6249 || ac_type='long int'
6251 cat >>confdefs.h <<_ACEOF
6252 #define intmax_t $ac_type
6253 _ACEOF
6259 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6262 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6264 else
6265 for ac_type in 'int' 'long int' 'long long int'; do
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 $ac_includes_default
6270 main ()
6272 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6273 test_array [0] = 0
6276 return 0;
6278 _ACEOF
6279 if ac_fn_cxx_try_compile "$LINENO"; then :
6281 cat >>confdefs.h <<_ACEOF
6282 #define intptr_t $ac_type
6283 _ACEOF
6285 ac_type=
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 test -z "$ac_type" && break
6289 done
6293 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6294 case $ac_cv_c_uint8_t in #(
6295 no|yes) ;; #(
6298 $as_echo "#define _UINT8_T 1" >>confdefs.h
6301 cat >>confdefs.h <<_ACEOF
6302 #define uint8_t $ac_cv_c_uint8_t
6303 _ACEOF
6305 esac
6307 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6308 case $ac_cv_c_uint16_t in #(
6309 no|yes) ;; #(
6313 cat >>confdefs.h <<_ACEOF
6314 #define uint16_t $ac_cv_c_uint16_t
6315 _ACEOF
6317 esac
6319 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6320 case $ac_cv_c_uint32_t in #(
6321 no|yes) ;; #(
6324 $as_echo "#define _UINT32_T 1" >>confdefs.h
6327 cat >>confdefs.h <<_ACEOF
6328 #define uint32_t $ac_cv_c_uint32_t
6329 _ACEOF
6331 esac
6333 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6334 case $ac_cv_c_uint64_t in #(
6335 no|yes) ;; #(
6338 $as_echo "#define _UINT64_T 1" >>confdefs.h
6341 cat >>confdefs.h <<_ACEOF
6342 #define uint64_t $ac_cv_c_uint64_t
6343 _ACEOF
6345 esac
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6349 $as_echo_n "checking for unsigned long long int... " >&6; }
6350 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 /* For now, do not test the preprocessor; as of 2007 there are too many
6357 implementations with broken preprocessors. Perhaps this can
6358 be revisited in 2012. In the meantime, code should not expect
6359 #if to work with literals wider than 32 bits. */
6360 /* Test literals. */
6361 long long int ll = 9223372036854775807ll;
6362 long long int nll = -9223372036854775807LL;
6363 unsigned long long int ull = 18446744073709551615ULL;
6364 /* Test constant expressions. */
6365 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6366 ? 1 : -1)];
6367 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6368 ? 1 : -1)];
6369 int i = 63;
6371 main ()
6373 /* Test availability of runtime routines for shift and division. */
6374 long long int llmax = 9223372036854775807ll;
6375 unsigned long long int ullmax = 18446744073709551615ull;
6376 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6377 | (llmax / ll) | (llmax % ll)
6378 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6379 | (ullmax / ull) | (ullmax % ull));
6381 return 0;
6384 _ACEOF
6385 if ac_fn_cxx_try_link "$LINENO"; then :
6386 ac_cv_type_unsigned_long_long_int=yes
6387 else
6388 ac_cv_type_unsigned_long_long_int=no
6390 rm -f core conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6394 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6395 if test $ac_cv_type_unsigned_long_long_int = yes; then
6397 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6403 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6404 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6406 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6408 else
6409 test $ac_cv_type_unsigned_long_long_int = yes \
6410 && ac_type='unsigned long long int' \
6411 || ac_type='unsigned long int'
6413 cat >>confdefs.h <<_ACEOF
6414 #define uintmax_t $ac_type
6415 _ACEOF
6421 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6424 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6426 else
6427 for ac_type in 'unsigned int' 'unsigned long int' \
6428 'unsigned long long int'; do
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 $ac_includes_default
6433 main ()
6435 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6436 test_array [0] = 0
6439 return 0;
6441 _ACEOF
6442 if ac_fn_cxx_try_compile "$LINENO"; then :
6444 cat >>confdefs.h <<_ACEOF
6445 #define uintptr_t $ac_type
6446 _ACEOF
6448 ac_type=
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 test -z "$ac_type" && break
6452 done
6468 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6469 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6472 # check what underlying integer type int64_t uses
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6474 $as_echo_n "checking for int64_t underlying type... " >&6; }
6475 if test "${ac_cv_int64_t_type+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6482 #ifdef HAVE_STDINT_H
6483 #include <stdint.h>
6484 #endif
6485 template <typename T> struct X { };
6486 template <>
6487 struct X<long> { typedef long t; };
6490 main ()
6492 X<int64_t>::t x;
6494 return 0;
6496 _ACEOF
6497 if ac_fn_cxx_try_compile "$LINENO"; then :
6498 ac_cv_int64_t_type=long
6499 else
6500 ac_cv_int64_t_type="long long"
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6505 $as_echo "$ac_cv_int64_t_type" >&6; }
6506 if test "$ac_cv_int64_t_type" = "long"; then
6508 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6514 #ifdef HAVE_STDINT_H
6515 #include <stdint.h>
6516 #endif
6517 template <typename T> struct X { };
6518 template <>
6519 struct X<long long> { typedef long long t; };
6522 main ()
6524 X<int64_t>::t x;
6526 return 0;
6528 _ACEOF
6529 if ac_fn_cxx_try_compile "$LINENO"; then :
6531 else
6532 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6538 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6539 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6546 #include <utility>
6549 main ()
6551 int a, b; std::swap(a,b);
6553 return 0;
6555 _ACEOF
6556 if ac_fn_cxx_try_compile "$LINENO"; then :
6557 ac_cv_std_swap_in_utility=yes
6558 else
6559 ac_cv_std_swap_in_utility=no
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6564 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6565 if test $ac_cv_std_swap_in_utility = yes; then
6567 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6571 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6572 # If the host compiler is affected by the bug, and we build with optimization
6573 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6574 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6575 # Since there is no reliable feature check for the presence of this bug,
6576 # we simply use a GCC version number check. (This should never trigger for
6577 # stages 2 or 3 of a native bootstrap.)
6578 aliasing_flags=
6579 if test "$GCC" = yes; then
6580 saved_CXXFLAGS="$CXXFLAGS"
6582 # The following test compilation will succeed if and only if $CXX accepts
6583 # -fno-strict-aliasing *and* is older than GCC 4.3.
6584 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6586 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6590 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6591 #error compiler not affected by placement new aliasing bug
6592 #endif
6594 _ACEOF
6595 if ac_fn_cxx_try_compile "$LINENO"; then :
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6597 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 CXXFLAGS="$saved_CXXFLAGS"
6610 # ---------------------
6611 # Warnings and checking
6612 # ---------------------
6614 # Check $CC warning features (if it's GCC).
6615 # We want to use -pedantic, but we don't want warnings about
6616 # * 'long long'
6617 # * variadic macros
6618 # * overlong strings
6619 # * C++11 narrowing conversions in { }
6620 # So, we only use -pedantic if we can disable those warnings.
6622 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6623 # Check whether --enable-build-format-warnings was given.
6624 if test "${enable_build_format_warnings+set}" = set; then :
6625 enableval=$enable_build_format_warnings;
6626 else
6627 enable_build_format_warnings=yes
6630 if test $enable_build_format_warnings = no; then :
6631 wf_opt=-Wno-format
6632 else
6633 wf_opt=
6635 ac_ext=cpp
6636 ac_cpp='$CXXCPP $CPPFLAGS'
6637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6641 loose_warn=
6642 save_CXXFLAGS="$CXXFLAGS"
6643 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6644 # Do the check with the no- prefix removed since gcc silently
6645 # accepts any -Wno-* option on purpose
6646 case $real_option in
6647 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6648 *) option=$real_option ;;
6649 esac
6650 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6653 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6654 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 CXXFLAGS="$option"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6662 main ()
6666 return 0;
6668 _ACEOF
6669 if ac_fn_cxx_try_compile "$LINENO"; then :
6670 eval "$as_acx_Woption=yes"
6671 else
6672 eval "$as_acx_Woption=no"
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 eval ac_res=\$$as_acx_Woption
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6681 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6683 done
6684 CXXFLAGS="$save_CXXFLAGS"
6685 ac_ext=cpp
6686 ac_cpp='$CXXCPP $CPPFLAGS'
6687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6693 ac_ext=c
6694 ac_cpp='$CPP $CPPFLAGS'
6695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6699 c_loose_warn=
6700 save_CFLAGS="$CFLAGS"
6701 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6702 # Do the check with the no- prefix removed since gcc silently
6703 # accepts any -Wno-* option on purpose
6704 case $real_option in
6705 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6706 *) option=$real_option ;;
6707 esac
6708 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6711 $as_echo_n "checking whether $CC supports $option... " >&6; }
6712 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 CFLAGS="$option"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6720 main ()
6724 return 0;
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 eval "$as_acx_Woption=yes"
6729 else
6730 eval "$as_acx_Woption=no"
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 eval ac_res=\$$as_acx_Woption
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6737 $as_echo "$ac_res" >&6; }
6738 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6739 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6741 done
6742 CFLAGS="$save_CFLAGS"
6743 ac_ext=cpp
6744 ac_cpp='$CXXCPP $CPPFLAGS'
6745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6750 ac_ext=cpp
6751 ac_cpp='$CXXCPP $CPPFLAGS'
6752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6756 strict_warn=
6757 save_CXXFLAGS="$CXXFLAGS"
6758 for real_option in -Wmissing-format-attribute; do
6759 # Do the check with the no- prefix removed since gcc silently
6760 # accepts any -Wno-* option on purpose
6761 case $real_option in
6762 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6763 *) option=$real_option ;;
6764 esac
6765 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6768 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6769 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 CXXFLAGS="$option"
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6777 main ()
6781 return 0;
6783 _ACEOF
6784 if ac_fn_cxx_try_compile "$LINENO"; then :
6785 eval "$as_acx_Woption=yes"
6786 else
6787 eval "$as_acx_Woption=no"
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 eval ac_res=\$$as_acx_Woption
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6794 $as_echo "$ac_res" >&6; }
6795 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6796 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6798 done
6799 CXXFLAGS="$save_CXXFLAGS"
6800 ac_ext=cpp
6801 ac_cpp='$CXXCPP $CPPFLAGS'
6802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6807 ac_ext=cpp
6808 ac_cpp='$CXXCPP $CPPFLAGS'
6809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6813 save_CXXFLAGS="$CXXFLAGS"
6814 for real_option in -Woverloaded-virtual; do
6815 # Do the check with the no- prefix removed since gcc silently
6816 # accepts any -Wno-* option on purpose
6817 case $real_option in
6818 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6819 *) option=$real_option ;;
6820 esac
6821 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6824 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6825 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 CXXFLAGS="$option"
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6833 main ()
6837 return 0;
6839 _ACEOF
6840 if ac_fn_cxx_try_compile "$LINENO"; then :
6841 eval "$as_acx_Woption=yes"
6842 else
6843 eval "$as_acx_Woption=no"
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 eval ac_res=\$$as_acx_Woption
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6850 $as_echo "$ac_res" >&6; }
6851 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6852 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6854 done
6855 CXXFLAGS="$save_CXXFLAGS"
6856 ac_ext=cpp
6857 ac_cpp='$CXXCPP $CPPFLAGS'
6858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6863 ac_ext=c
6864 ac_cpp='$CPP $CPPFLAGS'
6865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869 c_strict_warn=
6870 save_CFLAGS="$CFLAGS"
6871 for real_option in -Wold-style-definition -Wc++-compat; do
6872 # Do the check with the no- prefix removed since gcc silently
6873 # accepts any -Wno-* option on purpose
6874 case $real_option in
6875 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6876 *) option=$real_option ;;
6877 esac
6878 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6881 $as_echo_n "checking whether $CC supports $option... " >&6; }
6882 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 CFLAGS="$option"
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6890 main ()
6894 return 0;
6896 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"; then :
6898 eval "$as_acx_Woption=yes"
6899 else
6900 eval "$as_acx_Woption=no"
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 eval ac_res=\$$as_acx_Woption
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6907 $as_echo "$ac_res" >&6; }
6908 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6909 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6911 done
6912 CFLAGS="$save_CFLAGS"
6913 ac_ext=cpp
6914 ac_cpp='$CXXCPP $CPPFLAGS'
6915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6920 ac_ext=cpp
6921 ac_cpp='$CXXCPP $CPPFLAGS'
6922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6926 # Do the check with the no- prefix removed from the warning options
6927 # since gcc silently accepts any -Wno-* option on purpose
6928 if test "$GXX" = yes; then :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6930 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6931 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 save_CXXFLAGS="$CXXFLAGS"
6935 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6940 main ()
6944 return 0;
6946 _ACEOF
6947 if ac_fn_cxx_try_compile "$LINENO"; then :
6948 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6949 else
6950 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 CXXFLAGS="$save_CXXFLAGS"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6956 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6957 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6958 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6962 ac_ext=cpp
6963 ac_cpp='$CXXCPP $CPPFLAGS'
6964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6969 ac_ext=cpp
6970 ac_cpp='$CXXCPP $CPPFLAGS'
6971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6975 # Check whether --enable-werror-always was given.
6976 if test "${enable_werror_always+set}" = set; then :
6977 enableval=$enable_werror_always;
6978 else
6979 enable_werror_always=no
6982 if test $enable_werror_always = yes; then :
6983 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6986 ac_ext=cpp
6987 ac_cpp='$CXXCPP $CPPFLAGS'
6988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6994 # The above macros do nothing if the compiler is not GCC. However, the
6995 # Makefile has more goo to add other flags, so these variables are used
6996 # to enable warnings only for GCC.
6997 warn_cflags=
6998 warn_cxxflags=
6999 if test "x$GCC" = "xyes"; then
7000 warn_cflags='$(GCC_WARN_CFLAGS)'
7001 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7006 # Disable exceptions and RTTI if building with g++
7007 ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013 noexception_flags=
7014 save_CFLAGS="$CFLAGS"
7015 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7016 # Do the check with the no- prefix removed since gcc silently
7017 # accepts any -Wno-* option on purpose
7018 case $real_option in
7019 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7020 *) option=$real_option ;;
7021 esac
7022 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7025 $as_echo_n "checking whether $CC supports $option... " >&6; }
7026 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 CFLAGS="$option"
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7034 main ()
7038 return 0;
7040 _ACEOF
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 eval "$as_acx_Woption=yes"
7043 else
7044 eval "$as_acx_Woption=no"
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 eval ac_res=\$$as_acx_Woption
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7051 $as_echo "$ac_res" >&6; }
7052 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7053 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7055 done
7056 CFLAGS="$save_CFLAGS"
7057 ac_ext=cpp
7058 ac_cpp='$CXXCPP $CPPFLAGS'
7059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7065 # Enable expensive internal checks
7066 is_release=
7067 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7068 is_release=yes
7071 # Check whether --enable-checking was given.
7072 if test "${enable_checking+set}" = set; then :
7073 enableval=$enable_checking; ac_checking_flags="${enableval}"
7074 else
7076 # Determine the default checks.
7077 if test x$is_release = x ; then
7078 ac_checking_flags=yes,extra
7079 else
7080 ac_checking_flags=release
7084 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7085 for check in release $ac_checking_flags
7087 case $check in
7088 # these set all the flags to specific states
7089 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7090 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7091 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7092 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7093 ac_tree_checking=1 ; ac_valgrind_checking= ;
7094 ac_types_checking=1 ;;
7095 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7096 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7097 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7098 ac_rtlflag_checking= ; ac_runtime_checking= ;
7099 ac_tree_checking= ; ac_valgrind_checking= ;
7100 ac_types_checking= ;;
7101 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7102 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7103 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7104 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7105 ac_tree_checking=1 ; ac_valgrind_checking= ;
7106 ac_types_checking=1 ;;
7107 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7108 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7109 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7110 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7111 ac_tree_checking= ; ac_valgrind_checking= ;
7112 ac_types_checking= ;;
7113 # these enable particular checks
7114 assert) ac_assert_checking=1 ;;
7115 df) ac_df_checking=1 ;;
7116 extra) ac_extra_checking=1 ;;
7117 fold) ac_fold_checking=1 ;;
7118 gc) ac_gc_checking=1 ;;
7119 gcac) ac_gc_always_collect=1 ;;
7120 gimple) ac_gimple_checking=1 ;;
7121 misc) ac_checking=1 ;;
7122 rtl) ac_rtl_checking=1 ;;
7123 rtlflag) ac_rtlflag_checking=1 ;;
7124 runtime) ac_runtime_checking=1 ;;
7125 tree) ac_tree_checking=1 ;;
7126 types) ac_types_checking=1 ;;
7127 valgrind) ac_valgrind_checking=1 ;;
7128 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7129 esac
7130 done
7131 IFS="$ac_save_IFS"
7133 nocommon_flag=""
7134 if test x$ac_checking != x ; then
7135 if test x$ac_extra_checking != x ; then
7136 ac_checking=2
7139 cat >>confdefs.h <<_ACEOF
7140 #define CHECKING_P $ac_checking
7141 _ACEOF
7143 nocommon_flag=-fno-common
7144 else
7145 $as_echo "#define CHECKING_P 0" >>confdefs.h
7149 if test x$ac_df_checking != x ; then
7151 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7154 if test x$ac_assert_checking != x ; then
7156 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7159 if test x$ac_gimple_checking != x ; then
7161 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7165 if test x$ac_runtime_checking != x ; then
7167 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7170 if test x$ac_tree_checking != x ; then
7172 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7174 TREECHECKING=yes
7176 if test x$ac_types_checking != x ; then
7178 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7182 if test x$ac_rtl_checking != x ; then
7184 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7187 if test x$ac_rtlflag_checking != x ; then
7189 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7192 if test x$ac_gc_checking != x ; then
7194 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7197 if test x$ac_gc_always_collect != x ; then
7199 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7202 if test x$ac_fold_checking != x ; then
7204 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7207 valgrind_path_defines=
7208 valgrind_command=
7210 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7211 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7212 have_valgrind_h=yes
7213 else
7214 have_valgrind_h=no
7219 # It is certainly possible that there's valgrind but no valgrind.h.
7220 # GCC relies on making annotations so we must have both.
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7222 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 #include <valgrind/memcheck.h>
7226 #ifndef VALGRIND_DISCARD
7227 #error VALGRIND_DISCARD not defined
7228 #endif
7229 _ACEOF
7230 if ac_fn_cxx_try_cpp "$LINENO"; then :
7231 gcc_cv_header_valgrind_memcheck_h=yes
7232 else
7233 gcc_cv_header_valgrind_memcheck_h=no
7235 rm -f conftest.err conftest.$ac_ext
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7237 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7239 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #include <memcheck.h>
7243 #ifndef VALGRIND_DISCARD
7244 #error VALGRIND_DISCARD not defined
7245 #endif
7246 _ACEOF
7247 if ac_fn_cxx_try_cpp "$LINENO"; then :
7248 gcc_cv_header_memcheck_h=yes
7249 else
7250 gcc_cv_header_memcheck_h=no
7252 rm -f conftest.err conftest.$ac_ext
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7254 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7255 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7257 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7260 if test $gcc_cv_header_memcheck_h = yes; then
7262 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7266 if test x$ac_valgrind_checking != x ; then
7268 # Prepare PATH_SEPARATOR.
7269 # The user is always right.
7270 if test "${PATH_SEPARATOR+set}" != set; then
7271 echo "#! /bin/sh" >conf$$.sh
7272 echo "exit 0" >>conf$$.sh
7273 chmod +x conf$$.sh
7274 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7275 PATH_SEPARATOR=';'
7276 else
7277 PATH_SEPARATOR=:
7279 rm -f conf$$.sh
7282 # Find out how to test for executable files. Don't use a zero-byte file,
7283 # as systems may use methods other than mode bits to determine executability.
7284 cat >conf$$.file <<_ASEOF
7285 #! /bin/sh
7286 exit 0
7287 _ASEOF
7288 chmod +x conf$$.file
7289 if test -x conf$$.file >/dev/null 2>&1; then
7290 ac_executable_p="test -x"
7291 else
7292 ac_executable_p="test -f"
7294 rm -f conf$$.file
7296 # Extract the first word of "valgrind", so it can be a program name with args.
7297 set dummy valgrind; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7301 $as_echo_n "(cached) " >&6
7302 else
7303 case "$valgrind_path" in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7308 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7309 for ac_dir in $PATH; do
7310 IFS="$ac_save_IFS"
7311 test -z "$ac_dir" && ac_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7314 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7315 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7316 break 2
7319 done
7320 done
7321 IFS="$ac_save_IFS"
7323 esac
7325 valgrind_path="$ac_cv_path_valgrind_path"
7326 if test -n "$valgrind_path"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7328 $as_echo "$valgrind_path" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7334 if test "x$valgrind_path" = "x" \
7335 || (test $have_valgrind_h = no \
7336 && test $gcc_cv_header_memcheck_h = no \
7337 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7338 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7340 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7341 valgrind_command="$valgrind_path -q"
7343 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7349 # Enable code coverage collection
7350 # Check whether --enable-coverage was given.
7351 if test "${enable_coverage+set}" = set; then :
7352 enableval=$enable_coverage; case "${enableval}" in
7353 yes|noopt)
7354 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7356 opt)
7357 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7360 # a.k.a. --disable-coverage
7361 coverage_flags=""
7364 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7366 esac
7367 else
7368 coverage_flags=""
7373 # Check whether --enable-gather-detailed-mem-stats was given.
7374 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7375 enableval=$enable_gather_detailed_mem_stats;
7376 else
7377 enable_gather_detailed_mem_stats=no
7380 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7382 cat >>confdefs.h <<_ACEOF
7383 #define GATHER_STATISTICS $gather_stats
7384 _ACEOF
7387 # Check whether --enable-valgrind-annotations was given.
7388 if test "${enable_valgrind_annotations+set}" = set; then :
7389 enableval=$enable_valgrind_annotations;
7390 else
7391 enable_valgrind_annotations=no
7394 if test x$enable_valgrind_annotations != xno \
7395 || test x$ac_valgrind_checking != x; then
7396 if (test $have_valgrind_h = no \
7397 && test $gcc_cv_header_memcheck_h = no \
7398 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7399 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7402 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7406 # -------------------------------
7407 # Miscenalleous configure options
7408 # -------------------------------
7410 # With stabs
7412 # Check whether --with-stabs was given.
7413 if test "${with_stabs+set}" = set; then :
7414 withval=$with_stabs; stabs="$with_stabs"
7415 else
7416 stabs=no
7420 # Determine whether or not multilibs are enabled.
7421 # Check whether --enable-multilib was given.
7422 if test "${enable_multilib+set}" = set; then :
7423 enableval=$enable_multilib;
7424 else
7425 enable_multilib=yes
7430 # Determine whether or not multiarch is enabled.
7431 # Check whether --enable-multiarch was given.
7432 if test "${enable_multiarch+set}" = set; then :
7433 enableval=$enable_multiarch; case "${enableval}" in
7434 yes|no|auto) enable_multiarch=$enableval;;
7435 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7436 esac
7437 else
7438 enable_multiarch=auto
7441 if test x${enable_multiarch} = xauto; then
7442 if test x${with_native_system_header_dir} != x; then
7443 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7444 enable_multiarch=no
7446 if test x$host != x$target && test "x$with_sysroot" = x; then
7447 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7448 enable_multiarch=no
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7452 $as_echo_n "checking for multiarch configuration... " >&6; }
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7455 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7457 # needed for setting the multiarch name for soft-float/hard-float ABIs
7461 # Enable __cxa_atexit for C++.
7462 # Check whether --enable-__cxa_atexit was given.
7463 if test "${enable___cxa_atexit+set}" = set; then :
7464 enableval=$enable___cxa_atexit;
7468 # Enable C extension for decimal float if target supports it.
7470 # Check whether --enable-decimal-float was given.
7471 if test "${enable_decimal_float+set}" = set; then :
7472 enableval=$enable_decimal_float;
7473 case $enable_decimal_float in
7474 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7475 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7476 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7477 esac
7479 else
7481 case $target in
7482 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7483 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7484 i?86*-*-mingw* | x86_64*-*-mingw* | \
7485 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7486 enable_decimal_float=yes
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7490 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7491 enable_decimal_float=no
7493 esac
7498 # x86's use BID format instead of DPD
7499 case x$enable_decimal_float in
7500 xyes)
7501 case $target in
7502 i?86*-*-* | x86_64*-*-*)
7503 enable_decimal_float=bid
7506 enable_decimal_float=dpd
7508 esac
7509 default_decimal_float=$enable_decimal_float
7511 xno)
7512 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7513 # dependency on libdecnumber.
7514 default_decimal_float=dpd
7516 esac
7521 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7523 cat >>confdefs.h <<_ACEOF
7524 #define ENABLE_DECIMAL_FLOAT $dfp
7525 _ACEOF
7528 # Use default_decimal_float for dependency.
7529 enable_decimal_float=$default_decimal_float
7531 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7533 cat >>confdefs.h <<_ACEOF
7534 #define ENABLE_DECIMAL_BID_FORMAT $bid
7535 _ACEOF
7538 # Enable C extension for fixed-point arithmetic.
7539 # Check whether --enable-fixed-point was given.
7540 if test "${enable_fixed_point+set}" = set; then :
7541 enableval=$enable_fixed_point;
7542 else
7544 case $target in
7545 arm*)
7546 enable_fixed_point=yes
7549 mips*-*-*)
7550 enable_fixed_point=yes
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7554 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7555 enable_fixed_point=no
7557 esac
7563 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7565 cat >>confdefs.h <<_ACEOF
7566 #define ENABLE_FIXED_POINT $fixedpoint
7567 _ACEOF
7570 # Enable threads
7571 # Pass with no value to take the default
7572 # Pass with a value to specify a thread package
7573 # Check whether --enable-threads was given.
7574 if test "${enable_threads+set}" = set; then :
7575 enableval=$enable_threads;
7576 else
7577 enable_threads=''
7581 # Check whether --enable-tls was given.
7582 if test "${enable_tls+set}" = set; then :
7583 enableval=$enable_tls;
7584 case $enable_tls in
7585 yes | no) ;;
7586 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7587 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7588 esac
7590 else
7591 enable_tls=''
7595 # Check whether --enable-objc-gc was given.
7596 if test "${enable_objc_gc+set}" = set; then :
7597 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7598 objc_boehm_gc=''
7599 else
7600 objc_boehm_gc=1
7602 else
7603 objc_boehm_gc=''
7608 # Check whether --with-dwarf2 was given.
7609 if test "${with_dwarf2+set}" = set; then :
7610 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7611 else
7612 dwarf2=no
7616 # Check whether --enable-shared was given.
7617 if test "${enable_shared+set}" = set; then :
7618 enableval=$enable_shared;
7619 case $enable_shared in
7620 yes | no) ;;
7622 enable_shared=no
7623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7624 for pkg in $enableval; do
7625 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7626 enable_shared=yes
7628 done
7629 IFS="$ac_save_ifs"
7631 esac
7633 else
7634 enable_shared=yes
7640 # Check whether --with-specs was given.
7641 if test "${with_specs+set}" = set; then :
7642 withval=$with_specs; CONFIGURE_SPECS=$withval
7643 else
7644 CONFIGURE_SPECS=
7652 # Check whether --with-pkgversion was given.
7653 if test "${with_pkgversion+set}" = set; then :
7654 withval=$with_pkgversion; case "$withval" in
7655 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7656 no) PKGVERSION= ;;
7657 *) PKGVERSION="($withval) " ;;
7658 esac
7659 else
7660 PKGVERSION="(GCC) "
7668 # Check whether --with-bugurl was given.
7669 if test "${with_bugurl+set}" = set; then :
7670 withval=$with_bugurl; case "$withval" in
7671 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7672 no) BUGURL=
7674 *) BUGURL="$withval"
7676 esac
7677 else
7678 BUGURL="http://gcc.gnu.org/bugs.html"
7682 case ${BUGURL} in
7684 REPORT_BUGS_TO=
7685 REPORT_BUGS_TEXI=
7688 REPORT_BUGS_TO="<$BUGURL>"
7689 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7691 esac;
7696 # Sanity check enable_languages in case someone does not run the toplevel
7697 # configure # script.
7698 # Check whether --enable-languages was given.
7699 if test "${enable_languages+set}" = set; then :
7700 enableval=$enable_languages; case ,${enable_languages}, in
7701 ,,|,yes,)
7702 # go safe -- we cannot be much sure without the toplevel
7703 # configure's
7704 # analysis of which target libs are present and usable
7705 enable_languages=c
7707 *,all,*)
7708 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7710 *,c,*)
7713 enable_languages=c,${enable_languages}
7715 esac
7716 else
7717 enable_languages=c
7721 if test x"$enable_as_accelerator_for" != x; then
7723 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7725 enable_as_accelerator=yes
7726 case "${target}" in
7727 *-intelmicemul-*)
7728 # In this case we expect offload compiler to be built as native, so we
7729 # need to rename the driver to avoid clashes with host's drivers.
7730 program_transform_name="s&^&${target}-&" ;;
7731 esac
7732 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7733 program_transform_name=`echo $program_transform_name | sed $sedscript`
7734 accel_dir_suffix=/accel/${target_noncanonical}
7735 real_target_noncanonical=${enable_as_accelerator_for}
7741 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7742 tgt=`echo $tgt | sed 's/=.*//'`
7744 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7745 enable_hsa=1
7746 else
7747 enable_offloading=1
7750 if test x"$offload_targets" = x; then
7751 offload_targets=$tgt
7752 else
7753 offload_targets="$offload_targets,$tgt"
7755 done
7757 cat >>confdefs.h <<_ACEOF
7758 #define OFFLOAD_TARGETS "$offload_targets"
7759 _ACEOF
7761 if test x"$enable_offloading" != x; then
7763 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7765 else
7767 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7771 if test x"$enable_hsa" = x1 ; then
7773 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7778 # Check whether --with-multilib-list was given.
7779 if test "${with_multilib_list+set}" = set; then :
7780 withval=$with_multilib_list; :
7781 else
7782 with_multilib_list=default
7786 # -------------------------
7787 # Checks for other programs
7788 # -------------------------
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7791 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7792 set x ${MAKE-make}
7793 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7794 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 cat >conftest.make <<\_ACEOF
7798 SHELL = /bin/sh
7799 all:
7800 @echo '@@@%%%=$(MAKE)=@@@%%%'
7801 _ACEOF
7802 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7803 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7804 *@@@%%%=?*=@@@%%%*)
7805 eval ac_cv_prog_make_${ac_make}_set=yes;;
7807 eval ac_cv_prog_make_${ac_make}_set=no;;
7808 esac
7809 rm -f conftest.make
7811 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7813 $as_echo "yes" >&6; }
7814 SET_MAKE=
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 SET_MAKE="MAKE=${MAKE-make}"
7822 # Find some useful tools
7823 for ac_prog in gawk mawk nawk awk
7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if test "${ac_cv_prog_AWK+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$AWK"; then
7833 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_prog_AWK="$ac_prog"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7852 AWK=$ac_cv_prog_AWK
7853 if test -n "$AWK"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7855 $as_echo "$AWK" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7862 test -n "$AWK" && break
7863 done
7865 # We need awk to create options.c and options.h.
7866 # Bail out if it's missing.
7867 case ${AWK} in
7868 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7869 esac
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7872 $as_echo_n "checking whether ln -s works... " >&6; }
7873 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 rm -f conftestdata_t
7877 echo >conftestdata_f
7878 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7879 then
7880 gcc_cv_prog_LN_S="ln -s"
7881 else
7882 if ln conftestdata_f conftestdata_t 2>/dev/null
7883 then
7884 gcc_cv_prog_LN_S=ln
7885 else
7886 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7887 then
7888 gcc_cv_prog_LN_S="cp -p"
7889 else
7890 gcc_cv_prog_LN_S=cp
7894 rm -f conftestdata_f conftestdata_t
7897 LN_S="$gcc_cv_prog_LN_S"
7898 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7901 else
7902 if test "$gcc_cv_prog_LN_S" = "ln"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7904 $as_echo "no, using ln" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7907 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7912 $as_echo_n "checking whether ln works... " >&6; }
7913 if test "${acx_cv_prog_LN+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 rm -f conftestdata_t
7917 echo >conftestdata_f
7918 if ln conftestdata_f conftestdata_t 2>/dev/null
7919 then
7920 acx_cv_prog_LN=ln
7921 else
7922 acx_cv_prog_LN=no
7924 rm -f conftestdata_f conftestdata_t
7927 if test $acx_cv_prog_LN = no; then
7928 LN="$LN_S"
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7930 $as_echo "no, using $LN" >&6; }
7931 else
7932 LN="$acx_cv_prog_LN"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7934 $as_echo "yes" >&6; }
7937 if test -n "$ac_tool_prefix"; then
7938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$RANLIB"; then
7946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7959 done
7960 done
7961 IFS=$as_save_IFS
7965 RANLIB=$ac_cv_prog_RANLIB
7966 if test -n "$RANLIB"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7968 $as_echo "$RANLIB" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7976 if test -z "$ac_cv_prog_RANLIB"; then
7977 ac_ct_RANLIB=$RANLIB
7978 # Extract the first word of "ranlib", so it can be a program name with args.
7979 set dummy ranlib; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$ac_ct_RANLIB"; then
7986 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_ac_ct_RANLIB="ranlib"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7999 done
8000 done
8001 IFS=$as_save_IFS
8005 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8006 if test -n "$ac_ct_RANLIB"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8008 $as_echo "$ac_ct_RANLIB" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8014 if test "x$ac_ct_RANLIB" = x; then
8015 RANLIB=":"
8016 else
8017 case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023 RANLIB=$ac_ct_RANLIB
8025 else
8026 RANLIB="$ac_cv_prog_RANLIB"
8029 ranlib_flags=""
8032 # Find a good install program. We prefer a C program (faster),
8033 # so one script is as good as another. But avoid the broken or
8034 # incompatible versions:
8035 # SysV /etc/install, /usr/sbin/install
8036 # SunOS /usr/etc/install
8037 # IRIX /sbin/install
8038 # AIX /bin/install
8039 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8040 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8041 # ./install, which can be erroneously created by make from ./install.sh.
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8043 $as_echo_n "checking for a BSD compatible install... " >&6; }
8044 if test -z "$INSTALL"; then
8045 if test "${ac_cv_path_install+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8049 for ac_dir in $PATH; do
8050 # Account for people who put trailing slashes in PATH elements.
8051 case "$ac_dir/" in
8052 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8054 # OSF1 and SCO ODT 3.0 have their own names for install.
8055 for ac_prog in ginstall scoinst install; do
8056 if test -f $ac_dir/$ac_prog; then
8057 if test $ac_prog = install &&
8058 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8059 # AIX install. It has an incompatible calling convention.
8060 # OSF/1 installbsd also uses dspmsg, but is usable.
8062 else
8063 ac_cv_path_install="$ac_dir/$ac_prog -c"
8064 break 2
8067 done
8069 esac
8070 done
8071 IFS="$ac_save_IFS"
8074 if test "${ac_cv_path_install+set}" = set; then
8075 INSTALL="$ac_cv_path_install"
8076 else
8077 # As a last resort, use the slow shell script. We don't cache a
8078 # path for INSTALL within a source directory, because that will
8079 # break other packages using the cache if that directory is
8080 # removed, or if the path is relative.
8081 INSTALL="$ac_install_sh"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8085 $as_echo "$INSTALL" >&6; }
8087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8088 # It thinks the first close brace ends the variable substitution.
8089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8094 # See if cmp has --ignore-initial.
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8096 $as_echo_n "checking for cmp's capabilities... " >&6; }
8097 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 echo abfoo >t1
8101 echo cdfoo >t2
8102 gcc_cv_prog_cmp_skip=slowcompare
8103 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8104 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8106 else
8107 gcc_cv_prog_cmp_skip=gnucompare
8110 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8111 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8112 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8114 else
8115 gcc_cv_prog_cmp_skip=fastcompare
8119 rm t1 t2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8123 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8124 make_compare_target=$gcc_cv_prog_cmp_skip
8128 # See if we have the mktemp command.
8129 # Extract the first word of "mktemp", so it can be a program name with args.
8130 set dummy mktemp; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 if test -n "$have_mktemp_command"; then
8137 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_prog_have_mktemp_command="yes"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8150 done
8151 done
8152 IFS=$as_save_IFS
8154 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8157 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8158 if test -n "$have_mktemp_command"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8160 $as_echo "$have_mktemp_command" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8168 # See if makeinfo has been installed and is modern enough
8169 # that we can use it.
8171 # Extract the first word of "makeinfo", so it can be a program name with args.
8172 set dummy makeinfo; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$MAKEINFO"; then
8179 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_MAKEINFO="makeinfo"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8198 MAKEINFO=$ac_cv_prog_MAKEINFO
8199 if test -n "$MAKEINFO"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8201 $as_echo "$MAKEINFO" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8208 if test -n "$MAKEINFO"; then
8209 # Found it, now check the version.
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8211 $as_echo_n "checking for modern makeinfo... " >&6; }
8212 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8216 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8218 case $ac_prog_version in
8219 '') gcc_cv_prog_makeinfo_modern=no;;
8220 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8221 *) gcc_cv_prog_makeinfo_modern=no;;
8222 esac
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8226 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8227 else
8228 gcc_cv_prog_makeinfo_modern=no
8230 if test $gcc_cv_prog_makeinfo_modern = no; then
8231 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8234 if test $gcc_cv_prog_makeinfo_modern = no; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8236 *** Makeinfo is missing or too old.
8237 *** Info documentation will not be built." >&5
8238 $as_echo "$as_me: WARNING:
8239 *** Makeinfo is missing or too old.
8240 *** Info documentation will not be built." >&2;}
8241 BUILD_INFO=
8242 else
8243 BUILD_INFO=info
8247 # Is pod2man recent enough to regenerate manpages?
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8249 $as_echo_n "checking for recent Pod::Man... " >&6; }
8250 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8252 $as_echo "yes" >&6; }
8253 GENERATED_MANPAGES=generated-manpages
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 GENERATED_MANPAGES=
8261 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8263 # How about lex?
8264 for ac_prog in flex
8266 # Extract the first word of "$ac_prog", so it can be a program name with args.
8267 set dummy $ac_prog; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if test "${ac_cv_prog_FLEX+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 if test -n "$FLEX"; then
8274 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8283 ac_cv_prog_FLEX="$ac_prog"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8287 done
8288 done
8289 IFS=$as_save_IFS
8293 FLEX=$ac_cv_prog_FLEX
8294 if test -n "$FLEX"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8296 $as_echo "$FLEX" >&6; }
8297 else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8303 test -n "$FLEX" && break
8304 done
8305 test -n "$FLEX" || FLEX="$MISSING flex"
8308 # Bison?
8309 for ac_prog in bison
8311 # Extract the first word of "$ac_prog", so it can be a program name with args.
8312 set dummy $ac_prog; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if test "${ac_cv_prog_BISON+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 if test -n "$BISON"; then
8319 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_BISON="$ac_prog"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8332 done
8333 done
8334 IFS=$as_save_IFS
8338 BISON=$ac_cv_prog_BISON
8339 if test -n "$BISON"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8341 $as_echo "$BISON" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8348 test -n "$BISON" && break
8349 done
8350 test -n "$BISON" || BISON="$MISSING bison"
8353 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8354 # check for build == host before using them.
8356 # NM
8357 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8358 && test -d ../binutils ; then
8359 NM='${objdir}/../binutils/nm-new'
8360 else
8361 # Extract the first word of "nm", so it can be a program name with args.
8362 set dummy nm; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if test "${ac_cv_prog_NM+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 if test -n "$NM"; then
8369 ac_cv_prog_NM="$NM" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_prog_NM="nm"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8382 done
8383 done
8384 IFS=$as_save_IFS
8386 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8389 NM=$ac_cv_prog_NM
8390 if test -n "$NM"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8392 $as_echo "$NM" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8401 # AR
8402 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8403 && test -d ../binutils ; then
8404 AR='${objdir}/../binutils/ar'
8405 else
8406 # Extract the first word of "ar", so it can be a program name with args.
8407 set dummy ar; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if test "${ac_cv_prog_AR+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 if test -n "$AR"; then
8414 ac_cv_prog_AR="$AR" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8423 ac_cv_prog_AR="ar"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8427 done
8428 done
8429 IFS=$as_save_IFS
8431 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8434 AR=$ac_cv_prog_AR
8435 if test -n "$AR"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8437 $as_echo "$AR" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8446 # The jit documentation looks better if built with sphinx, but can be
8447 # built with texinfo if sphinx is not available.
8448 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8449 # Extract the first word of "sphinx-build", so it can be a program name with args.
8450 set dummy sphinx-build; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 if test -n "$doc_build_sys"; then
8457 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_prog_doc_build_sys="sphinx"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8472 IFS=$as_save_IFS
8474 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8477 doc_build_sys=$ac_cv_prog_doc_build_sys
8478 if test -n "$doc_build_sys"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8480 $as_echo "$doc_build_sys" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8488 # --------------------
8489 # Checks for C headers
8490 # --------------------
8492 # Need to reject headers which give warnings, so that the -Werror bootstrap
8493 # works later. *sigh* This needs to come before all header checks.
8495 ac_c_preproc_warn_flag=yes
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8498 $as_echo_n "checking for ANSI C header files... " >&6; }
8499 if test "${ac_cv_header_stdc+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <stdlib.h>
8505 #include <stdarg.h>
8506 #include <string.h>
8507 #include <float.h>
8510 main ()
8514 return 0;
8516 _ACEOF
8517 if ac_fn_cxx_try_compile "$LINENO"; then :
8518 ac_cv_header_stdc=yes
8519 else
8520 ac_cv_header_stdc=no
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 if test $ac_cv_header_stdc = yes; then
8525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8528 #include <string.h>
8530 _ACEOF
8531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8532 $EGREP "memchr" >/dev/null 2>&1; then :
8534 else
8535 ac_cv_header_stdc=no
8537 rm -f conftest*
8541 if test $ac_cv_header_stdc = yes; then
8542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <stdlib.h>
8547 _ACEOF
8548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8549 $EGREP "free" >/dev/null 2>&1; then :
8551 else
8552 ac_cv_header_stdc=no
8554 rm -f conftest*
8558 if test $ac_cv_header_stdc = yes; then
8559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8560 if test "$cross_compiling" = yes; then :
8562 else
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #include <ctype.h>
8566 #include <stdlib.h>
8567 #if ((' ' & 0x0FF) == 0x020)
8568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8570 #else
8571 # define ISLOWER(c) \
8572 (('a' <= (c) && (c) <= 'i') \
8573 || ('j' <= (c) && (c) <= 'r') \
8574 || ('s' <= (c) && (c) <= 'z'))
8575 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8576 #endif
8578 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8580 main ()
8582 int i;
8583 for (i = 0; i < 256; i++)
8584 if (XOR (islower (i), ISLOWER (i))
8585 || toupper (i) != TOUPPER (i))
8586 return 2;
8587 return 0;
8589 _ACEOF
8590 if ac_fn_cxx_try_run "$LINENO"; then :
8592 else
8593 ac_cv_header_stdc=no
8595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8596 conftest.$ac_objext conftest.beam conftest.$ac_ext
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8602 $as_echo "$ac_cv_header_stdc" >&6; }
8603 if test $ac_cv_header_stdc = yes; then
8605 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8610 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8611 if test "${ac_cv_header_time+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/time.h>
8618 #include <time.h>
8621 main ()
8623 if ((struct tm *) 0)
8624 return 0;
8626 return 0;
8628 _ACEOF
8629 if ac_fn_cxx_try_compile "$LINENO"; then :
8630 ac_cv_header_time=yes
8631 else
8632 ac_cv_header_time=no
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8637 $as_echo "$ac_cv_header_time" >&6; }
8638 if test $ac_cv_header_time = yes; then
8640 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8645 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8646 if test "${gcc_cv_header_string+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <string.h>
8652 #include <strings.h>
8654 main ()
8658 return 0;
8660 _ACEOF
8661 if ac_fn_cxx_try_compile "$LINENO"; then :
8662 gcc_cv_header_string=yes
8663 else
8664 gcc_cv_header_string=no
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8669 $as_echo "$gcc_cv_header_string" >&6; }
8670 if test $gcc_cv_header_string = yes; then
8672 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8677 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8678 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 #include <sys/types.h>
8684 #include <sys/wait.h>
8685 #ifndef WEXITSTATUS
8686 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8687 #endif
8688 #ifndef WIFEXITED
8689 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8690 #endif
8693 main ()
8695 int s;
8696 wait (&s);
8697 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8699 return 0;
8701 _ACEOF
8702 if ac_fn_cxx_try_compile "$LINENO"; then :
8703 ac_cv_header_sys_wait_h=yes
8704 else
8705 ac_cv_header_sys_wait_h=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8710 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8711 if test $ac_cv_header_sys_wait_h = yes; then
8713 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8718 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8719 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #include <sys/types.h>
8725 #include <termios.h>
8726 #ifdef TIOCGWINSZ
8728 #endif
8730 _ACEOF
8731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8732 $EGREP "yes" >/dev/null 2>&1; then :
8733 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8734 else
8735 ac_cv_sys_tiocgwinsz_in_termios_h=no
8737 rm -f conftest*
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8741 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8743 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8745 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8746 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 #include <sys/types.h>
8752 #include <sys/ioctl.h>
8753 #ifdef TIOCGWINSZ
8755 #endif
8757 _ACEOF
8758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8759 $EGREP "yes" >/dev/null 2>&1; then :
8760 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8761 else
8762 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8764 rm -f conftest*
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8768 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8770 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8772 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8777 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8778 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8779 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8780 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8781 do :
8782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8783 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8784 eval as_val=\$$as_ac_Header
8785 if test "x$as_val" = x""yes; then :
8786 cat >>confdefs.h <<_ACEOF
8787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 _ACEOF
8791 done
8794 # Check for thread headers.
8795 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8796 if test "x$ac_cv_header_thread_h" = x""yes; then :
8797 have_thread_h=yes
8798 else
8799 have_thread_h=
8802 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8803 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8804 have_pthread_h=yes
8805 else
8806 have_pthread_h=
8810 # These tests can't be done till we know if we have limits.h.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8812 $as_echo_n "checking for CHAR_BIT... " >&6; }
8813 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 #ifdef HAVE_LIMITS_H
8819 #include <limits.h>
8820 #endif
8821 #ifdef CHAR_BIT
8822 found
8823 #endif
8824 _ACEOF
8825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8826 $EGREP "found" >/dev/null 2>&1; then :
8827 gcc_cv_decl_char_bit=yes
8828 else
8829 gcc_cv_decl_char_bit=no
8831 rm -f conftest*
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8836 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8837 if test $gcc_cv_decl_char_bit = no; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8839 $as_echo_n "checking number of bits in a byte... " >&6; }
8840 if test "${gcc_cv_c_nbby+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8844 gcc_cv_c_nbby=
8845 while test $i -lt 65; do
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8850 main ()
8852 switch(0) {
8853 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8854 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8857 return 0;
8859 _ACEOF
8860 if ac_fn_cxx_try_compile "$LINENO"; then :
8861 gcc_cv_c_nbby=$i; break
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864 i=`expr $i + 1`
8865 done
8866 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8870 $as_echo "$gcc_cv_c_nbby" >&6; }
8871 if test $gcc_cv_c_nbby = failed; then
8872 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8873 else
8875 cat >>confdefs.h <<_ACEOF
8876 #define CHAR_BIT $gcc_cv_c_nbby
8877 _ACEOF
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8882 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8883 if test "${ac_cv_c_bigendian+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 ac_cv_c_bigendian=unknown
8887 # See if we're dealing with a universal compiler.
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8890 #ifndef __APPLE_CC__
8891 not a universal capable compiler
8892 #endif
8893 typedef int dummy;
8895 _ACEOF
8896 if ac_fn_cxx_try_compile "$LINENO"; then :
8898 # Check for potential -arch flags. It is not universal unless
8899 # there are at least two -arch flags with different values.
8900 ac_arch=
8901 ac_prev=
8902 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8903 if test -n "$ac_prev"; then
8904 case $ac_word in
8905 i?86 | x86_64 | ppc | ppc64)
8906 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8907 ac_arch=$ac_word
8908 else
8909 ac_cv_c_bigendian=universal
8910 break
8913 esac
8914 ac_prev=
8915 elif test "x$ac_word" = "x-arch"; then
8916 ac_prev=arch
8918 done
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8921 if test $ac_cv_c_bigendian = unknown; then
8922 # See if sys/param.h defines the BYTE_ORDER macro.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <sys/types.h>
8926 #include <sys/param.h>
8929 main ()
8931 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8932 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8933 && LITTLE_ENDIAN)
8934 bogus endian macros
8935 #endif
8938 return 0;
8940 _ACEOF
8941 if ac_fn_cxx_try_compile "$LINENO"; then :
8942 # It does; now see whether it defined to BIG_ENDIAN or not.
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <sys/types.h>
8946 #include <sys/param.h>
8949 main ()
8951 #if BYTE_ORDER != BIG_ENDIAN
8952 not big endian
8953 #endif
8956 return 0;
8958 _ACEOF
8959 if ac_fn_cxx_try_compile "$LINENO"; then :
8960 ac_cv_c_bigendian=yes
8961 else
8962 ac_cv_c_bigendian=no
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 if test $ac_cv_c_bigendian = unknown; then
8969 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <limits.h>
8975 main ()
8977 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8978 bogus endian macros
8979 #endif
8982 return 0;
8984 _ACEOF
8985 if ac_fn_cxx_try_compile "$LINENO"; then :
8986 # It does; now see whether it defined to _BIG_ENDIAN or not.
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989 #include <limits.h>
8992 main ()
8994 #ifndef _BIG_ENDIAN
8995 not big endian
8996 #endif
8999 return 0;
9001 _ACEOF
9002 if ac_fn_cxx_try_compile "$LINENO"; then :
9003 ac_cv_c_bigendian=yes
9004 else
9005 ac_cv_c_bigendian=no
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011 if test $ac_cv_c_bigendian = unknown; then
9012 # Compile a test program.
9013 if test "$cross_compiling" = yes; then :
9014 # Try to guess by grepping values from an object file.
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 short int ascii_mm[] =
9018 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9019 short int ascii_ii[] =
9020 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9021 int use_ascii (int i) {
9022 return ascii_mm[i] + ascii_ii[i];
9024 short int ebcdic_ii[] =
9025 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9026 short int ebcdic_mm[] =
9027 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9028 int use_ebcdic (int i) {
9029 return ebcdic_mm[i] + ebcdic_ii[i];
9031 extern int foo;
9034 main ()
9036 return use_ascii (foo) == use_ebcdic (foo);
9038 return 0;
9040 _ACEOF
9041 if ac_fn_cxx_try_compile "$LINENO"; then :
9042 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9043 ac_cv_c_bigendian=yes
9045 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9046 if test "$ac_cv_c_bigendian" = unknown; then
9047 ac_cv_c_bigendian=no
9048 else
9049 # finding both strings is unlikely to happen, but who knows?
9050 ac_cv_c_bigendian=unknown
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 else
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 $ac_includes_default
9060 main ()
9063 /* Are we little or big endian? From Harbison&Steele. */
9064 union
9066 long int l;
9067 char c[sizeof (long int)];
9068 } u;
9069 u.l = 1;
9070 return u.c[sizeof (long int) - 1] == 1;
9073 return 0;
9075 _ACEOF
9076 if ac_fn_cxx_try_run "$LINENO"; then :
9077 ac_cv_c_bigendian=no
9078 else
9079 ac_cv_c_bigendian=yes
9081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9082 conftest.$ac_objext conftest.beam conftest.$ac_ext
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9088 $as_echo "$ac_cv_c_bigendian" >&6; }
9089 case $ac_cv_c_bigendian in #(
9090 yes)
9091 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9092 ;; #(
9094 ;; #(
9095 universal)
9097 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9099 ;; #(
9101 as_fn_error "unknown endianness
9102 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9103 esac
9106 # ----------------------
9107 # Checks for C++ headers
9108 # ----------------------
9110 ac_ext=cpp
9111 ac_cpp='$CXXCPP $CPPFLAGS'
9112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9116 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9117 if test -z "$CXXCPP"; then
9118 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 # Double quotes because CXXCPP needs to be expanded
9122 for CXXCPP in "$CXX -E" "/lib/cpp"
9124 ac_preproc_ok=false
9125 for ac_cxx_preproc_warn_flag in '' yes
9127 # Use a header file that comes with gcc, so configuring glibc
9128 # with a fresh cross-compiler works.
9129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9130 # <limits.h> exists even on freestanding compilers.
9131 # On the NeXT, cc -E runs the code through the compiler's parser,
9132 # not just through cpp. "Syntax error" is here to catch this case.
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #ifdef __STDC__
9136 # include <limits.h>
9137 #else
9138 # include <assert.h>
9139 #endif
9140 Syntax error
9141 _ACEOF
9142 if ac_fn_cxx_try_cpp "$LINENO"; then :
9144 else
9145 # Broken: fails on valid input.
9146 continue
9148 rm -f conftest.err conftest.$ac_ext
9150 # OK, works on sane cases. Now check whether nonexistent headers
9151 # can be detected and how.
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 #include <ac_nonexistent.h>
9155 _ACEOF
9156 if ac_fn_cxx_try_cpp "$LINENO"; then :
9157 # Broken: success on invalid input.
9158 continue
9159 else
9160 # Passes both tests.
9161 ac_preproc_ok=:
9162 break
9164 rm -f conftest.err conftest.$ac_ext
9166 done
9167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9168 rm -f conftest.err conftest.$ac_ext
9169 if $ac_preproc_ok; then :
9170 break
9173 done
9174 ac_cv_prog_CXXCPP=$CXXCPP
9177 CXXCPP=$ac_cv_prog_CXXCPP
9178 else
9179 ac_cv_prog_CXXCPP=$CXXCPP
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9182 $as_echo "$CXXCPP" >&6; }
9183 ac_preproc_ok=false
9184 for ac_cxx_preproc_warn_flag in '' yes
9186 # Use a header file that comes with gcc, so configuring glibc
9187 # with a fresh cross-compiler works.
9188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9189 # <limits.h> exists even on freestanding compilers.
9190 # On the NeXT, cc -E runs the code through the compiler's parser,
9191 # not just through cpp. "Syntax error" is here to catch this case.
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 #ifdef __STDC__
9195 # include <limits.h>
9196 #else
9197 # include <assert.h>
9198 #endif
9199 Syntax error
9200 _ACEOF
9201 if ac_fn_cxx_try_cpp "$LINENO"; then :
9203 else
9204 # Broken: fails on valid input.
9205 continue
9207 rm -f conftest.err conftest.$ac_ext
9209 # OK, works on sane cases. Now check whether nonexistent headers
9210 # can be detected and how.
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 #include <ac_nonexistent.h>
9214 _ACEOF
9215 if ac_fn_cxx_try_cpp "$LINENO"; then :
9216 # Broken: success on invalid input.
9217 continue
9218 else
9219 # Passes both tests.
9220 ac_preproc_ok=:
9221 break
9223 rm -f conftest.err conftest.$ac_ext
9225 done
9226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9227 rm -f conftest.err conftest.$ac_ext
9228 if $ac_preproc_ok; then :
9230 else
9231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9234 See \`config.log' for more details." >&5
9235 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9236 See \`config.log' for more details." >&2;}; }
9239 ac_ext=cpp
9240 ac_cpp='$CXXCPP $CPPFLAGS'
9241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9246 for ac_header in unordered_map
9247 do :
9248 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9249 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_UNORDERED_MAP 1
9252 _ACEOF
9255 done
9257 for ac_header in tr1/unordered_map
9258 do :
9259 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9260 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9261 cat >>confdefs.h <<_ACEOF
9262 #define HAVE_TR1_UNORDERED_MAP 1
9263 _ACEOF
9266 done
9268 for ac_header in ext/hash_map
9269 do :
9270 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9271 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9272 cat >>confdefs.h <<_ACEOF
9273 #define HAVE_EXT_HASH_MAP 1
9274 _ACEOF
9277 done
9280 # --------
9281 # Dependency checking.
9282 # --------
9284 rm -rf .tst 2>/dev/null
9285 mkdir .tst 2>/dev/null
9286 if test -d .tst; then
9287 am__leading_dot=.
9288 else
9289 am__leading_dot=_
9291 rmdir .tst 2>/dev/null
9293 DEPDIR="${am__leading_dot}deps"
9295 ac_config_commands="$ac_config_commands depdir"
9298 ac_config_commands="$ac_config_commands gccdepdir"
9301 depcc="$CXX" am_compiler_list=
9303 am_depcomp=$ac_aux_dir/depcomp
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9305 $as_echo_n "checking dependency style of $depcc... " >&6; }
9306 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 if test -f "$am_depcomp"; then
9310 # We make a subdir and do the tests there. Otherwise we can end up
9311 # making bogus files that we don't know about and never remove. For
9312 # instance it was reported that on HP-UX the gcc test will end up
9313 # making a dummy file named `D' -- because `-MD' means `put the output
9314 # in D'.
9315 mkdir conftest.dir
9316 # Copy depcomp to subdir because otherwise we won't find it if we're
9317 # using a relative directory.
9318 cp "$am_depcomp" conftest.dir
9319 cd conftest.dir
9320 # We will build objects and dependencies in a subdirectory because
9321 # it helps to detect inapplicable dependency modes. For instance
9322 # both Tru64's cc and ICC support -MD to output dependencies as a
9323 # side effect of compilation, but ICC will put the dependencies in
9324 # the current directory while Tru64 will put them in the object
9325 # directory.
9326 mkdir sub
9328 am_cv_CXX_dependencies_compiler_type=none
9329 if test "$am_compiler_list" = ""; then
9330 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9332 for depmode in $am_compiler_list; do
9333 if test $depmode = none; then break; fi
9335 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9336 # Setup a source with many dependencies, because some compilers
9337 # like to wrap large dependency lists on column 80 (with \), and
9338 # we should not choose a depcomp mode which is confused by this.
9340 # We need to recreate these files for each test, as the compiler may
9341 # overwrite some of them when testing with obscure command lines.
9342 # This happens at least with the AIX C compiler.
9343 : > sub/conftest.c
9344 for i in 1 2 3 4 5 6; do
9345 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9346 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9347 # Solaris 8's {/usr,}/bin/sh.
9348 touch sub/conftst$i.h
9349 done
9350 echo "include sub/conftest.Po" > confmf
9352 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9353 # mode. It turns out that the SunPro C++ compiler does not properly
9354 # handle `-M -o', and we need to detect this.
9355 depcmd="depmode=$depmode \
9356 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9357 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9358 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9359 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9360 if env $depcmd > conftest.err 2>&1 &&
9361 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9362 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9363 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9364 # icc doesn't choke on unknown options, it will just issue warnings
9365 # or remarks (even with -Werror). So we grep stderr for any message
9366 # that says an option was ignored or not supported.
9367 # When given -MP, icc 7.0 and 7.1 complain thusly:
9368 # icc: Command line warning: ignoring option '-M'; no argument required
9369 # The diagnosis changed in icc 8.0:
9370 # icc: Command line remark: option '-MP' not supported
9371 if (grep 'ignoring option' conftest.err ||
9372 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9373 am_cv_CXX_dependencies_compiler_type=$depmode
9374 $as_echo "$as_me:$LINENO: success" >&5
9375 break
9378 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9379 sed -e 's/^/| /' < conftest.err >&5
9380 done
9382 cd ..
9383 rm -rf conftest.dir
9384 else
9385 am_cv_CXX_dependencies_compiler_type=none
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9390 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9391 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9392 then as_fn_error "no usable dependency style found" "$LINENO" 5
9393 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9398 # --------
9399 # UNSORTED
9400 # --------
9403 # These libraries may be used by collect2.
9404 # We may need a special search path to get them linked.
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9406 $as_echo_n "checking for collect2 libraries... " >&6; }
9407 if test "${gcc_cv_collect2_libs+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 save_LIBS="$LIBS"
9411 for libs in '' -lld -lmld \
9412 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9413 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9415 LIBS="$libs"
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9419 /* Override any GCC internal prototype to avoid an error.
9420 Use char because int might match the return type of a GCC
9421 builtin and then its argument prototype would still apply. */
9422 #ifdef __cplusplus
9423 extern "C"
9424 #endif
9425 char ldopen ();
9427 main ()
9429 return ldopen ();
9431 return 0;
9433 _ACEOF
9434 if ac_fn_cxx_try_link "$LINENO"; then :
9435 gcc_cv_collect2_libs="$libs"; break
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 done
9440 LIBS="$save_LIBS"
9441 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9444 $as_echo "$gcc_cv_collect2_libs" >&6; }
9445 case $gcc_cv_collect2_libs in
9446 "none required") ;;
9447 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9448 esac
9451 # When building Ada code on Alpha, we need exc_resume which is usually in
9452 # -lexc. So test for it.
9453 save_LIBS="$LIBS"
9454 LIBS=
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9456 $as_echo_n "checking for library containing exc_resume... " >&6; }
9457 if test "${ac_cv_search_exc_resume+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 ac_func_search_save_LIBS=$LIBS
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9464 /* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9467 #ifdef __cplusplus
9468 extern "C"
9469 #endif
9470 char exc_resume ();
9472 main ()
9474 return exc_resume ();
9476 return 0;
9478 _ACEOF
9479 for ac_lib in '' exc; do
9480 if test -z "$ac_lib"; then
9481 ac_res="none required"
9482 else
9483 ac_res=-l$ac_lib
9484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9486 if ac_fn_cxx_try_link "$LINENO"; then :
9487 ac_cv_search_exc_resume=$ac_res
9489 rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext
9491 if test "${ac_cv_search_exc_resume+set}" = set; then :
9492 break
9494 done
9495 if test "${ac_cv_search_exc_resume+set}" = set; then :
9497 else
9498 ac_cv_search_exc_resume=no
9500 rm conftest.$ac_ext
9501 LIBS=$ac_func_search_save_LIBS
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9504 $as_echo "$ac_cv_search_exc_resume" >&6; }
9505 ac_res=$ac_cv_search_exc_resume
9506 if test "$ac_res" != no; then :
9507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9511 GNAT_LIBEXC="$LIBS"
9512 LIBS="$save_LIBS"
9515 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9516 save_LIBS="$LIBS"
9517 LIBS=
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9519 $as_echo_n "checking for library containing kstat_open... " >&6; }
9520 if test "${ac_cv_search_kstat_open+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 ac_func_search_save_LIBS=$LIBS
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char kstat_open ();
9535 main ()
9537 return kstat_open ();
9539 return 0;
9541 _ACEOF
9542 for ac_lib in '' kstat; do
9543 if test -z "$ac_lib"; then
9544 ac_res="none required"
9545 else
9546 ac_res=-l$ac_lib
9547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9549 if ac_fn_cxx_try_link "$LINENO"; then :
9550 ac_cv_search_kstat_open=$ac_res
9552 rm -f core conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext
9554 if test "${ac_cv_search_kstat_open+set}" = set; then :
9555 break
9557 done
9558 if test "${ac_cv_search_kstat_open+set}" = set; then :
9560 else
9561 ac_cv_search_kstat_open=no
9563 rm conftest.$ac_ext
9564 LIBS=$ac_func_search_save_LIBS
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9567 $as_echo "$ac_cv_search_kstat_open" >&6; }
9568 ac_res=$ac_cv_search_kstat_open
9569 if test "$ac_res" != no; then :
9570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9574 EXTRA_GCC_LIBS="$LIBS"
9575 LIBS="$save_LIBS"
9578 # Some systems put ldexp and frexp in libm instead of libc; assume
9579 # they're both in the same place. jcf-dump needs them.
9580 save_LIBS="$LIBS"
9581 LIBS=
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9583 $as_echo_n "checking for library containing ldexp... " >&6; }
9584 if test "${ac_cv_search_ldexp+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 ac_func_search_save_LIBS=$LIBS
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 char ldexp ();
9599 main ()
9601 return ldexp ();
9603 return 0;
9605 _ACEOF
9606 for ac_lib in '' m; do
9607 if test -z "$ac_lib"; then
9608 ac_res="none required"
9609 else
9610 ac_res=-l$ac_lib
9611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9613 if ac_fn_cxx_try_link "$LINENO"; then :
9614 ac_cv_search_ldexp=$ac_res
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext
9618 if test "${ac_cv_search_ldexp+set}" = set; then :
9619 break
9621 done
9622 if test "${ac_cv_search_ldexp+set}" = set; then :
9624 else
9625 ac_cv_search_ldexp=no
9627 rm conftest.$ac_ext
9628 LIBS=$ac_func_search_save_LIBS
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9631 $as_echo "$ac_cv_search_ldexp" >&6; }
9632 ac_res=$ac_cv_search_ldexp
9633 if test "$ac_res" != no; then :
9634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9638 LDEXP_LIB="$LIBS"
9639 LIBS="$save_LIBS"
9642 # Use <inttypes.h> only if it exists,
9643 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9644 # PRId64
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9646 $as_echo_n "checking for inttypes.h... " >&6; }
9647 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9648 $as_echo_n "(cached) " >&6
9649 else
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9652 #define __STDC_FORMAT_MACROS
9653 #include <sys/types.h>
9654 #include <inttypes.h>
9656 main ()
9658 intmax_t i = -1;
9659 #ifndef PRId64
9660 choke me
9661 #endif
9663 return 0;
9665 _ACEOF
9666 if ac_fn_cxx_try_compile "$LINENO"; then :
9667 gcc_cv_header_inttypes_h=yes
9668 else
9669 gcc_cv_header_inttypes_h=no
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9675 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9676 if test $gcc_cv_header_inttypes_h = yes; then
9678 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9684 for ac_func in times clock kill getrlimit setrlimit atoq \
9685 popen sysconf strsignal getrusage nl_langinfo \
9686 gettimeofday mbstowcs wcswidth mmap setlocale \
9687 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked madvise
9688 do :
9689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9690 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9691 eval as_val=\$$as_ac_var
9692 if test "x$as_val" = x""yes; then :
9693 cat >>confdefs.h <<_ACEOF
9694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9695 _ACEOF
9698 done
9701 if test x$ac_cv_func_mbstowcs = xyes; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9703 $as_echo_n "checking whether mbstowcs works... " >&6; }
9704 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
9706 else
9707 if test "$cross_compiling" = yes; then :
9708 gcc_cv_func_mbstowcs_works=yes
9709 else
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 #include <stdlib.h>
9713 int main()
9715 mbstowcs(0, "", 0);
9716 return 0;
9718 _ACEOF
9719 if ac_fn_cxx_try_run "$LINENO"; then :
9720 gcc_cv_func_mbstowcs_works=yes
9721 else
9722 gcc_cv_func_mbstowcs_works=no
9724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9725 conftest.$ac_objext conftest.beam conftest.$ac_ext
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9730 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9731 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9733 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9738 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9739 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9741 else
9743 cat >>confdefs.h <<_ACEOF
9744 #define ssize_t int
9745 _ACEOF
9749 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9750 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9752 else
9754 cat >>confdefs.h <<_ACEOF
9755 #define caddr_t char *
9756 _ACEOF
9762 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9763 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9764 gcc_header_sys_mman_h=yes
9765 else
9766 gcc_header_sys_mman_h=no
9769 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9770 if test "x$ac_cv_func_mmap" = x""yes; then :
9771 gcc_func_mmap=yes
9772 else
9773 gcc_func_mmap=no
9776 if test "$gcc_header_sys_mman_h" != yes \
9777 || test "$gcc_func_mmap" != yes; then
9778 gcc_cv_func_mmap_file=no
9779 gcc_cv_func_mmap_dev_zero=no
9780 gcc_cv_func_mmap_anon=no
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9783 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9784 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 # Add a system to this blacklist if
9788 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9789 # memory area containing the same data that you'd get if you applied
9790 # read() to the same fd. The only system known to have a problem here
9791 # is VMS, where text files have record structure.
9792 case "$host_os" in
9793 *vms* | ultrix*)
9794 gcc_cv_func_mmap_file=no ;;
9796 gcc_cv_func_mmap_file=yes;;
9797 esac
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9800 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9802 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9803 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 # Add a system to this blacklist if it has mmap() but /dev/zero
9807 # does not exist, or if mmapping /dev/zero does not give anonymous
9808 # zeroed pages with both the following properties:
9809 # 1. If you map N consecutive pages in with one call, and then
9810 # unmap any subset of those pages, the pages that were not
9811 # explicitly unmapped remain accessible.
9812 # 2. If you map two adjacent blocks of memory and then unmap them
9813 # both at once, they must both go away.
9814 # Systems known to be in this category are Windows (all variants),
9815 # VMS, and Darwin.
9816 case "$host_os" in
9817 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9818 gcc_cv_func_mmap_dev_zero=no ;;
9820 gcc_cv_func_mmap_dev_zero=yes;;
9821 esac
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9824 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9826 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9828 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9829 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 #include <sys/types.h>
9835 #include <sys/mman.h>
9836 #include <unistd.h>
9838 #ifndef MAP_ANONYMOUS
9839 #define MAP_ANONYMOUS MAP_ANON
9840 #endif
9843 main ()
9845 int n = MAP_ANONYMOUS;
9847 return 0;
9849 _ACEOF
9850 if ac_fn_cxx_try_compile "$LINENO"; then :
9851 gcc_cv_decl_map_anon=yes
9852 else
9853 gcc_cv_decl_map_anon=no
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9858 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9860 if test $gcc_cv_decl_map_anon = no; then
9861 gcc_cv_func_mmap_anon=no
9862 else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9864 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9865 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9869 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9870 # doesn't give anonymous zeroed pages with the same properties listed
9871 # above for use of /dev/zero.
9872 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9873 case "$host_os" in
9874 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9875 gcc_cv_func_mmap_anon=no ;;
9877 gcc_cv_func_mmap_anon=yes;;
9878 esac
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9881 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9885 if test $gcc_cv_func_mmap_file = yes; then
9887 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9890 if test $gcc_cv_func_mmap_dev_zero = yes; then
9892 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9895 if test $gcc_cv_func_mmap_anon = yes; then
9897 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9902 case "${host}" in
9903 *-*-*vms*)
9904 # Under VMS, vfork works very differently than on Unix. The standard test
9905 # won't work, and it isn't easily adaptable. It makes more sense to
9906 # just force it.
9907 ac_cv_func_vfork_works=yes
9909 esac
9910 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9911 if test "x$ac_cv_type_pid_t" = x""yes; then :
9913 else
9915 cat >>confdefs.h <<_ACEOF
9916 #define pid_t int
9917 _ACEOF
9921 for ac_header in vfork.h
9922 do :
9923 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9924 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9925 cat >>confdefs.h <<_ACEOF
9926 #define HAVE_VFORK_H 1
9927 _ACEOF
9930 done
9932 for ac_func in fork vfork
9933 do :
9934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9935 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9936 eval as_val=\$$as_ac_var
9937 if test "x$as_val" = x""yes; then :
9938 cat >>confdefs.h <<_ACEOF
9939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9940 _ACEOF
9943 done
9945 if test "x$ac_cv_func_fork" = xyes; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9947 $as_echo_n "checking for working fork... " >&6; }
9948 if test "${ac_cv_func_fork_works+set}" = set; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 if test "$cross_compiling" = yes; then :
9952 ac_cv_func_fork_works=cross
9953 else
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 $ac_includes_default
9958 main ()
9961 /* By Ruediger Kuhlmann. */
9962 return fork () < 0;
9965 return 0;
9967 _ACEOF
9968 if ac_fn_cxx_try_run "$LINENO"; then :
9969 ac_cv_func_fork_works=yes
9970 else
9971 ac_cv_func_fork_works=no
9973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9974 conftest.$ac_objext conftest.beam conftest.$ac_ext
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9979 $as_echo "$ac_cv_func_fork_works" >&6; }
9981 else
9982 ac_cv_func_fork_works=$ac_cv_func_fork
9984 if test "x$ac_cv_func_fork_works" = xcross; then
9985 case $host in
9986 *-*-amigaos* | *-*-msdosdjgpp*)
9987 # Override, as these systems have only a dummy fork() stub
9988 ac_cv_func_fork_works=no
9991 ac_cv_func_fork_works=yes
9993 esac
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9995 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9997 ac_cv_func_vfork_works=$ac_cv_func_vfork
9998 if test "x$ac_cv_func_vfork" = xyes; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10000 $as_echo_n "checking for working vfork... " >&6; }
10001 if test "${ac_cv_func_vfork_works+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10004 if test "$cross_compiling" = yes; then :
10005 ac_cv_func_vfork_works=cross
10006 else
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10009 /* Thanks to Paul Eggert for this test. */
10010 $ac_includes_default
10011 #include <sys/wait.h>
10012 #ifdef HAVE_VFORK_H
10013 # include <vfork.h>
10014 #endif
10015 /* On some sparc systems, changes by the child to local and incoming
10016 argument registers are propagated back to the parent. The compiler
10017 is told about this with #include <vfork.h>, but some compilers
10018 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10019 static variable whose address is put into a register that is
10020 clobbered by the vfork. */
10021 static void
10022 #ifdef __cplusplus
10023 sparc_address_test (int arg)
10024 # else
10025 sparc_address_test (arg) int arg;
10026 #endif
10028 static pid_t child;
10029 if (!child) {
10030 child = vfork ();
10031 if (child < 0) {
10032 perror ("vfork");
10033 _exit(2);
10035 if (!child) {
10036 arg = getpid();
10037 write(-1, "", 0);
10038 _exit (arg);
10044 main ()
10046 pid_t parent = getpid ();
10047 pid_t child;
10049 sparc_address_test (0);
10051 child = vfork ();
10053 if (child == 0) {
10054 /* Here is another test for sparc vfork register problems. This
10055 test uses lots of local variables, at least as many local
10056 variables as main has allocated so far including compiler
10057 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10058 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10059 reuse the register of parent for one of the local variables,
10060 since it will think that parent can't possibly be used any more
10061 in this routine. Assigning to the local variable will thus
10062 munge parent in the parent process. */
10063 pid_t
10064 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10065 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10066 /* Convince the compiler that p..p7 are live; otherwise, it might
10067 use the same hardware register for all 8 local variables. */
10068 if (p != p1 || p != p2 || p != p3 || p != p4
10069 || p != p5 || p != p6 || p != p7)
10070 _exit(1);
10072 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10073 from child file descriptors. If the child closes a descriptor
10074 before it execs or exits, this munges the parent's descriptor
10075 as well. Test for this by closing stdout in the child. */
10076 _exit(close(fileno(stdout)) != 0);
10077 } else {
10078 int status;
10079 struct stat st;
10081 while (wait(&status) != child)
10083 return (
10084 /* Was there some problem with vforking? */
10085 child < 0
10087 /* Did the child fail? (This shouldn't happen.) */
10088 || status
10090 /* Did the vfork/compiler bug occur? */
10091 || parent != getpid()
10093 /* Did the file descriptor bug occur? */
10094 || fstat(fileno(stdout), &st) != 0
10098 _ACEOF
10099 if ac_fn_cxx_try_run "$LINENO"; then :
10100 ac_cv_func_vfork_works=yes
10101 else
10102 ac_cv_func_vfork_works=no
10104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10105 conftest.$ac_objext conftest.beam conftest.$ac_ext
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10110 $as_echo "$ac_cv_func_vfork_works" >&6; }
10113 if test "x$ac_cv_func_fork_works" = xcross; then
10114 ac_cv_func_vfork_works=$ac_cv_func_vfork
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10116 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10119 if test "x$ac_cv_func_vfork_works" = xyes; then
10121 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10123 else
10125 $as_echo "#define vfork fork" >>confdefs.h
10128 if test "x$ac_cv_func_fork_works" = xyes; then
10130 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10136 if test "X$prefix" = "XNONE"; then
10137 acl_final_prefix="$ac_default_prefix"
10138 else
10139 acl_final_prefix="$prefix"
10141 if test "X$exec_prefix" = "XNONE"; then
10142 acl_final_exec_prefix='${prefix}'
10143 else
10144 acl_final_exec_prefix="$exec_prefix"
10146 acl_save_prefix="$prefix"
10147 prefix="$acl_final_prefix"
10148 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10149 prefix="$acl_save_prefix"
10152 # Check whether --with-gnu-ld was given.
10153 if test "${with_gnu_ld+set}" = set; then :
10154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10155 else
10156 with_gnu_ld=no
10159 # Prepare PATH_SEPARATOR.
10160 # The user is always right.
10161 if test "${PATH_SEPARATOR+set}" != set; then
10162 echo "#! /bin/sh" >conf$$.sh
10163 echo "exit 0" >>conf$$.sh
10164 chmod +x conf$$.sh
10165 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10166 PATH_SEPARATOR=';'
10167 else
10168 PATH_SEPARATOR=:
10170 rm -f conf$$.sh
10172 ac_prog=ld
10173 if test "$GCC" = yes; then
10174 # Check if gcc -print-prog-name=ld gives a path.
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10176 $as_echo_n "checking for ld used by GCC... " >&6; }
10177 case $host in
10178 *-*-mingw*)
10179 # gcc leaves a trailing carriage return which upsets mingw
10180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10183 esac
10184 case $ac_prog in
10185 # Accept absolute paths.
10186 [\\/]* | [A-Za-z]:[\\/]*)
10187 re_direlt='/[^/][^/]*/\.\./'
10188 # Canonicalize the path of ld
10189 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10190 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10191 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10192 done
10193 test -z "$LD" && LD="$ac_prog"
10196 # If it fails, then pretend we aren't using GCC.
10197 ac_prog=ld
10200 # If it is relative, then search for the first ld in PATH.
10201 with_gnu_ld=unknown
10203 esac
10204 elif test "$with_gnu_ld" = yes; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10206 $as_echo_n "checking for GNU ld... " >&6; }
10207 else
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10209 $as_echo_n "checking for non-GNU ld... " >&6; }
10211 if test "${acl_cv_path_LD+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 if test -z "$LD"; then
10215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10216 for ac_dir in $PATH; do
10217 test -z "$ac_dir" && ac_dir=.
10218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10219 acl_cv_path_LD="$ac_dir/$ac_prog"
10220 # Check to see if the program is GNU ld. I'd rather use --version,
10221 # but apparently some GNU ld's only accept -v.
10222 # Break only if it was the GNU/non-GNU ld that we prefer.
10223 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10224 test "$with_gnu_ld" != no && break
10225 else
10226 test "$with_gnu_ld" != yes && break
10229 done
10230 IFS="$ac_save_ifs"
10231 else
10232 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10236 LD="$acl_cv_path_LD"
10237 if test -n "$LD"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10239 $as_echo "$LD" >&6; }
10240 else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 $as_echo "no" >&6; }
10244 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10247 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10251 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10252 acl_cv_prog_gnu_ld=yes
10253 else
10254 acl_cv_prog_gnu_ld=no
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10258 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10259 with_gnu_ld=$acl_cv_prog_gnu_ld
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10264 $as_echo_n "checking for shared library run path origin... " >&6; }
10265 if test "${acl_cv_rpath+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10269 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10270 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10271 . ./conftest.sh
10272 rm -f ./conftest.sh
10273 acl_cv_rpath=done
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10277 $as_echo "$acl_cv_rpath" >&6; }
10278 wl="$acl_cv_wl"
10279 libext="$acl_cv_libext"
10280 shlibext="$acl_cv_shlibext"
10281 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10282 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10283 hardcode_direct="$acl_cv_hardcode_direct"
10284 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10285 # Check whether --enable-rpath was given.
10286 if test "${enable_rpath+set}" = set; then :
10287 enableval=$enable_rpath; :
10288 else
10289 enable_rpath=yes
10299 use_additional=yes
10301 acl_save_prefix="$prefix"
10302 prefix="$acl_final_prefix"
10303 acl_save_exec_prefix="$exec_prefix"
10304 exec_prefix="$acl_final_exec_prefix"
10306 eval additional_includedir=\"$includedir\"
10307 eval additional_libdir=\"$libdir\"
10309 exec_prefix="$acl_save_exec_prefix"
10310 prefix="$acl_save_prefix"
10313 # Check whether --with-libiconv-prefix was given.
10314 if test "${with_libiconv_prefix+set}" = set; then :
10315 withval=$with_libiconv_prefix;
10316 if test "X$withval" = "Xno"; then
10317 use_additional=no
10318 else
10319 if test "X$withval" = "X"; then
10321 acl_save_prefix="$prefix"
10322 prefix="$acl_final_prefix"
10323 acl_save_exec_prefix="$exec_prefix"
10324 exec_prefix="$acl_final_exec_prefix"
10326 eval additional_includedir=\"$includedir\"
10327 eval additional_libdir=\"$libdir\"
10329 exec_prefix="$acl_save_exec_prefix"
10330 prefix="$acl_save_prefix"
10332 else
10333 additional_includedir="$withval/include"
10334 additional_libdir="$withval/lib"
10340 LIBICONV=
10341 LTLIBICONV=
10342 INCICONV=
10343 rpathdirs=
10344 ltrpathdirs=
10345 names_already_handled=
10346 names_next_round='iconv '
10347 while test -n "$names_next_round"; do
10348 names_this_round="$names_next_round"
10349 names_next_round=
10350 for name in $names_this_round; do
10351 already_handled=
10352 for n in $names_already_handled; do
10353 if test "$n" = "$name"; then
10354 already_handled=yes
10355 break
10357 done
10358 if test -z "$already_handled"; then
10359 names_already_handled="$names_already_handled $name"
10360 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10361 eval value=\"\$HAVE_LIB$uppername\"
10362 if test -n "$value"; then
10363 if test "$value" = yes; then
10364 eval value=\"\$LIB$uppername\"
10365 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10366 eval value=\"\$LTLIB$uppername\"
10367 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10368 else
10371 else
10372 found_dir=
10373 found_la=
10374 found_so=
10375 found_a=
10376 if test $use_additional = yes; then
10377 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10378 found_dir="$additional_libdir"
10379 found_so="$additional_libdir/lib$name.$shlibext"
10380 if test -f "$additional_libdir/lib$name.la"; then
10381 found_la="$additional_libdir/lib$name.la"
10383 else
10384 if test -f "$additional_libdir/lib$name.$libext"; then
10385 found_dir="$additional_libdir"
10386 found_a="$additional_libdir/lib$name.$libext"
10387 if test -f "$additional_libdir/lib$name.la"; then
10388 found_la="$additional_libdir/lib$name.la"
10393 if test "X$found_dir" = "X"; then
10394 for x in $LDFLAGS $LTLIBICONV; do
10396 acl_save_prefix="$prefix"
10397 prefix="$acl_final_prefix"
10398 acl_save_exec_prefix="$exec_prefix"
10399 exec_prefix="$acl_final_exec_prefix"
10400 eval x=\"$x\"
10401 exec_prefix="$acl_save_exec_prefix"
10402 prefix="$acl_save_prefix"
10404 case "$x" in
10405 -L*)
10406 dir=`echo "X$x" | sed -e 's/^X-L//'`
10407 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10408 found_dir="$dir"
10409 found_so="$dir/lib$name.$shlibext"
10410 if test -f "$dir/lib$name.la"; then
10411 found_la="$dir/lib$name.la"
10413 else
10414 if test -f "$dir/lib$name.$libext"; then
10415 found_dir="$dir"
10416 found_a="$dir/lib$name.$libext"
10417 if test -f "$dir/lib$name.la"; then
10418 found_la="$dir/lib$name.la"
10423 esac
10424 if test "X$found_dir" != "X"; then
10425 break
10427 done
10429 if test "X$found_dir" != "X"; then
10430 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10431 if test "X$found_so" != "X"; then
10432 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10434 else
10435 haveit=
10436 for x in $ltrpathdirs; do
10437 if test "X$x" = "X$found_dir"; then
10438 haveit=yes
10439 break
10441 done
10442 if test -z "$haveit"; then
10443 ltrpathdirs="$ltrpathdirs $found_dir"
10445 if test "$hardcode_direct" = yes; then
10446 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10447 else
10448 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10450 haveit=
10451 for x in $rpathdirs; do
10452 if test "X$x" = "X$found_dir"; then
10453 haveit=yes
10454 break
10456 done
10457 if test -z "$haveit"; then
10458 rpathdirs="$rpathdirs $found_dir"
10460 else
10461 haveit=
10462 for x in $LDFLAGS $LIBICONV; do
10464 acl_save_prefix="$prefix"
10465 prefix="$acl_final_prefix"
10466 acl_save_exec_prefix="$exec_prefix"
10467 exec_prefix="$acl_final_exec_prefix"
10468 eval x=\"$x\"
10469 exec_prefix="$acl_save_exec_prefix"
10470 prefix="$acl_save_prefix"
10472 if test "X$x" = "X-L$found_dir"; then
10473 haveit=yes
10474 break
10476 done
10477 if test -z "$haveit"; then
10478 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10480 if test "$hardcode_minus_L" != no; then
10481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10482 else
10483 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10488 else
10489 if test "X$found_a" != "X"; then
10490 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10491 else
10492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10495 additional_includedir=
10496 case "$found_dir" in
10497 */lib | */lib/)
10498 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10499 additional_includedir="$basedir/include"
10501 esac
10502 if test "X$additional_includedir" != "X"; then
10503 if test "X$additional_includedir" != "X/usr/include"; then
10504 haveit=
10505 if test "X$additional_includedir" = "X/usr/local/include"; then
10506 if test -n "$GCC"; then
10507 case $host_os in
10508 linux*) haveit=yes;;
10509 esac
10512 if test -z "$haveit"; then
10513 for x in $CPPFLAGS $INCICONV; do
10515 acl_save_prefix="$prefix"
10516 prefix="$acl_final_prefix"
10517 acl_save_exec_prefix="$exec_prefix"
10518 exec_prefix="$acl_final_exec_prefix"
10519 eval x=\"$x\"
10520 exec_prefix="$acl_save_exec_prefix"
10521 prefix="$acl_save_prefix"
10523 if test "X$x" = "X-I$additional_includedir"; then
10524 haveit=yes
10525 break
10527 done
10528 if test -z "$haveit"; then
10529 if test -d "$additional_includedir"; then
10530 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10536 if test -n "$found_la"; then
10537 save_libdir="$libdir"
10538 case "$found_la" in
10539 */* | *\\*) . "$found_la" ;;
10540 *) . "./$found_la" ;;
10541 esac
10542 libdir="$save_libdir"
10543 for dep in $dependency_libs; do
10544 case "$dep" in
10545 -L*)
10546 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10547 if test "X$additional_libdir" != "X/usr/lib"; then
10548 haveit=
10549 if test "X$additional_libdir" = "X/usr/local/lib"; then
10550 if test -n "$GCC"; then
10551 case $host_os in
10552 linux*) haveit=yes;;
10553 esac
10556 if test -z "$haveit"; then
10557 haveit=
10558 for x in $LDFLAGS $LIBICONV; do
10560 acl_save_prefix="$prefix"
10561 prefix="$acl_final_prefix"
10562 acl_save_exec_prefix="$exec_prefix"
10563 exec_prefix="$acl_final_exec_prefix"
10564 eval x=\"$x\"
10565 exec_prefix="$acl_save_exec_prefix"
10566 prefix="$acl_save_prefix"
10568 if test "X$x" = "X-L$additional_libdir"; then
10569 haveit=yes
10570 break
10572 done
10573 if test -z "$haveit"; then
10574 if test -d "$additional_libdir"; then
10575 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10578 haveit=
10579 for x in $LDFLAGS $LTLIBICONV; do
10581 acl_save_prefix="$prefix"
10582 prefix="$acl_final_prefix"
10583 acl_save_exec_prefix="$exec_prefix"
10584 exec_prefix="$acl_final_exec_prefix"
10585 eval x=\"$x\"
10586 exec_prefix="$acl_save_exec_prefix"
10587 prefix="$acl_save_prefix"
10589 if test "X$x" = "X-L$additional_libdir"; then
10590 haveit=yes
10591 break
10593 done
10594 if test -z "$haveit"; then
10595 if test -d "$additional_libdir"; then
10596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10602 -R*)
10603 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10604 if test "$enable_rpath" != no; then
10605 haveit=
10606 for x in $rpathdirs; do
10607 if test "X$x" = "X$dir"; then
10608 haveit=yes
10609 break
10611 done
10612 if test -z "$haveit"; then
10613 rpathdirs="$rpathdirs $dir"
10615 haveit=
10616 for x in $ltrpathdirs; do
10617 if test "X$x" = "X$dir"; then
10618 haveit=yes
10619 break
10621 done
10622 if test -z "$haveit"; then
10623 ltrpathdirs="$ltrpathdirs $dir"
10627 -l*)
10628 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10630 *.la)
10631 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10634 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10637 esac
10638 done
10640 else
10641 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10646 done
10647 done
10648 if test "X$rpathdirs" != "X"; then
10649 if test -n "$hardcode_libdir_separator"; then
10650 alldirs=
10651 for found_dir in $rpathdirs; do
10652 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10653 done
10654 acl_save_libdir="$libdir"
10655 libdir="$alldirs"
10656 eval flag=\"$hardcode_libdir_flag_spec\"
10657 libdir="$acl_save_libdir"
10658 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10659 else
10660 for found_dir in $rpathdirs; do
10661 acl_save_libdir="$libdir"
10662 libdir="$found_dir"
10663 eval flag=\"$hardcode_libdir_flag_spec\"
10664 libdir="$acl_save_libdir"
10665 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10666 done
10669 if test "X$ltrpathdirs" != "X"; then
10670 for found_dir in $ltrpathdirs; do
10671 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10672 done
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10682 $as_echo_n "checking for iconv... " >&6; }
10683 if test "${am_cv_func_iconv+set}" = set; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10687 am_cv_func_iconv="no, consider installing GNU libiconv"
10688 am_cv_lib_iconv=no
10689 am_save_CPPFLAGS="$CPPFLAGS"
10690 CPPFLAGS="$CPPFLAGS $INCICONV"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 #include <stdlib.h>
10694 #include <iconv.h>
10696 main ()
10698 iconv_t cd = iconv_open("","");
10699 iconv(cd,NULL,NULL,NULL,NULL);
10700 iconv_close(cd);
10702 return 0;
10704 _ACEOF
10705 if ac_fn_cxx_try_link "$LINENO"; then :
10706 am_cv_func_iconv=yes
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 CPPFLAGS="$am_save_CPPFLAGS"
10712 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10713 for _libs in .libs _libs; do
10714 am_save_CPPFLAGS="$CPPFLAGS"
10715 am_save_LIBS="$LIBS"
10716 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10717 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 #include <stdlib.h>
10721 #include <iconv.h>
10723 main ()
10725 iconv_t cd = iconv_open("","");
10726 iconv(cd,NULL,NULL,NULL,NULL);
10727 iconv_close(cd);
10729 return 0;
10731 _ACEOF
10732 if ac_fn_cxx_try_link "$LINENO"; then :
10733 INCICONV="-I../libiconv/include"
10734 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10735 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10736 am_cv_lib_iconv=yes
10737 am_cv_func_iconv=yes
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 CPPFLAGS="$am_save_CPPFLAGS"
10742 LIBS="$am_save_LIBS"
10743 if test "$am_cv_func_iconv" = "yes"; then
10744 break
10746 done
10749 if test "$am_cv_func_iconv" != yes; then
10750 am_save_CPPFLAGS="$CPPFLAGS"
10751 am_save_LIBS="$LIBS"
10752 CPPFLAGS="$LIBS $INCICONV"
10753 LIBS="$LIBS $LIBICONV"
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 #include <stdlib.h>
10757 #include <iconv.h>
10759 main ()
10761 iconv_t cd = iconv_open("","");
10762 iconv(cd,NULL,NULL,NULL,NULL);
10763 iconv_close(cd);
10765 return 0;
10767 _ACEOF
10768 if ac_fn_cxx_try_link "$LINENO"; then :
10769 am_cv_lib_iconv=yes
10770 am_cv_func_iconv=yes
10772 rm -f core conftest.err conftest.$ac_objext \
10773 conftest$ac_exeext conftest.$ac_ext
10774 CPPFLAGS="$am_save_CPPFLAGS"
10775 LIBS="$am_save_LIBS"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10780 $as_echo "$am_cv_func_iconv" >&6; }
10781 if test "$am_cv_func_iconv" = yes; then
10783 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10786 if test "$am_cv_lib_iconv" = yes; then
10788 for element in $INCICONV; do
10789 haveit=
10790 for x in $CPPFLAGS; do
10792 acl_save_prefix="$prefix"
10793 prefix="$acl_final_prefix"
10794 acl_save_exec_prefix="$exec_prefix"
10795 exec_prefix="$acl_final_exec_prefix"
10796 eval x=\"$x\"
10797 exec_prefix="$acl_save_exec_prefix"
10798 prefix="$acl_save_prefix"
10800 if test "X$x" = "X$element"; then
10801 haveit=yes
10802 break
10804 done
10805 if test -z "$haveit"; then
10806 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10808 done
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10811 $as_echo_n "checking how to link with libiconv... " >&6; }
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10813 $as_echo "$LIBICONV" >&6; }
10814 else
10815 LIBICONV=
10816 LTLIBICONV=
10821 if test "$am_cv_func_iconv" = yes; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10823 $as_echo_n "checking for iconv declaration... " >&6; }
10824 if test "${am_cv_proto_iconv+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 #include <stdlib.h>
10832 #include <iconv.h>
10833 extern
10834 #ifdef __cplusplus
10836 #endif
10837 #if defined(__STDC__) || defined(__cplusplus)
10838 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10839 #else
10840 size_t iconv();
10841 #endif
10844 main ()
10848 return 0;
10850 _ACEOF
10851 if ac_fn_cxx_try_compile "$LINENO"; then :
10852 am_cv_proto_iconv_arg1=""
10853 else
10854 am_cv_proto_iconv_arg1="const"
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10860 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10862 }$am_cv_proto_iconv" >&5
10863 $as_echo "${ac_t:-
10864 }$am_cv_proto_iconv" >&6; }
10866 cat >>confdefs.h <<_ACEOF
10867 #define ICONV_CONST $am_cv_proto_iconv_arg1
10868 _ACEOF
10873 # Until we have in-tree GNU iconv:
10874 LIBICONV_DEP=
10875 if test -f "$LTLIBICONV"; then
10876 LIBICONV_DEP=$LTLIBICONV
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10882 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10883 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 #include <locale.h>
10890 main ()
10892 return LC_MESSAGES
10894 return 0;
10896 _ACEOF
10897 if ac_fn_cxx_try_link "$LINENO"; then :
10898 am_cv_val_LC_MESSAGES=yes
10899 else
10900 am_cv_val_LC_MESSAGES=no
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10906 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10907 if test $am_cv_val_LC_MESSAGES = yes; then
10909 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10916 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10917 if test "${am_cv_langinfo_codeset+set}" = set; then :
10918 $as_echo_n "(cached) " >&6
10919 else
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10922 #include <langinfo.h>
10924 main ()
10926 char* cs = nl_langinfo(CODESET);
10928 return 0;
10930 _ACEOF
10931 if ac_fn_cxx_try_link "$LINENO"; then :
10932 am_cv_langinfo_codeset=yes
10933 else
10934 am_cv_langinfo_codeset=no
10936 rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10941 $as_echo "$am_cv_langinfo_codeset" >&6; }
10942 if test $am_cv_langinfo_codeset = yes; then
10944 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10949 # We will need to find libiberty.h and ansidecl.h
10950 saved_CFLAGS="$CFLAGS"
10951 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10952 saved_CXXFLAGS="$CXXFLAGS"
10953 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10955 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10956 # normal autoconf function for these. But force definition of
10957 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10958 # basename handling in libiberty.h.
10959 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10960 #undef HAVE_DECL_BASENAME
10961 #define HAVE_DECL_BASENAME 1
10962 #include \"ansidecl.h\"
10963 #include \"system.h\"
10965 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10966 ac_have_decl=1
10967 else
10968 ac_have_decl=0
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_DECL_BASENAME $ac_have_decl
10973 _ACEOF
10974 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10975 #undef HAVE_DECL_BASENAME
10976 #define HAVE_DECL_BASENAME 1
10977 #include \"ansidecl.h\"
10978 #include \"system.h\"
10980 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10981 ac_have_decl=1
10982 else
10983 ac_have_decl=0
10986 cat >>confdefs.h <<_ACEOF
10987 #define HAVE_DECL_STRSTR $ac_have_decl
10988 _ACEOF
10991 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10992 madvise stpcpy strnlen strsignal strverscmp \
10993 strtol strtoul strtoll strtoull setenv unsetenv \
10994 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10995 free getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10997 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10999 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11000 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 #undef $ac_tr_decl
11006 #define $ac_tr_decl 1
11008 #include "ansidecl.h"
11009 #include "system.h"
11012 main ()
11014 #ifndef $ac_func
11015 char *(*pfn) = (char *(*)) $ac_func ;
11016 #endif
11018 return 0;
11020 _ACEOF
11021 if ac_fn_cxx_try_compile "$LINENO"; then :
11022 eval "gcc_cv_have_decl_$ac_func=yes"
11023 else
11024 eval "gcc_cv_have_decl_$ac_func=no"
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11031 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11032 #define $ac_tr_decl 1
11033 _ACEOF
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11038 #define $ac_tr_decl 0
11039 _ACEOF
11043 done
11046 for ac_func in getrlimit setrlimit getrusage
11048 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11050 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11051 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11056 #undef $ac_tr_decl
11057 #define $ac_tr_decl 1
11059 #include "ansidecl.h"
11060 #include "system.h"
11061 #ifdef HAVE_SYS_RESOURCE_H
11062 #include <sys/resource.h>
11063 #endif
11067 main ()
11069 #ifndef $ac_func
11070 char *(*pfn) = (char *(*)) $ac_func ;
11071 #endif
11073 return 0;
11075 _ACEOF
11076 if ac_fn_cxx_try_compile "$LINENO"; then :
11077 eval "gcc_cv_have_decl_$ac_func=yes"
11078 else
11079 eval "gcc_cv_have_decl_$ac_func=no"
11081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11086 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11087 #define $ac_tr_decl 1
11088 _ACEOF
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11093 #define $ac_tr_decl 0
11094 _ACEOF
11098 done
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11104 #include "ansidecl.h"
11105 #include "system.h"
11106 #ifdef HAVE_SYS_RESOURCE_H
11107 #include <sys/resource.h>
11108 #endif
11111 main ()
11113 rlim_t l = 0;
11115 return 0;
11117 _ACEOF
11118 if ac_fn_cxx_try_compile "$LINENO"; then :
11120 else
11122 $as_echo "#define rlim_t long" >>confdefs.h
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11128 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11129 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11130 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11131 for ac_func in ldgetname
11133 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11135 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11136 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11141 #undef $ac_tr_decl
11142 #define $ac_tr_decl 1
11144 #include "ansidecl.h"
11145 #include "system.h"
11146 #ifdef HAVE_LDFCN_H
11147 #undef FREAD
11148 #undef FWRITE
11149 #include <ldfcn.h>
11150 #endif
11154 main ()
11156 #ifndef $ac_func
11157 char *(*pfn) = (char *(*)) $ac_func ;
11158 #endif
11160 return 0;
11162 _ACEOF
11163 if ac_fn_cxx_try_compile "$LINENO"; then :
11164 eval "gcc_cv_have_decl_$ac_func=yes"
11165 else
11166 eval "gcc_cv_have_decl_$ac_func=no"
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11173 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11174 #define $ac_tr_decl 1
11175 _ACEOF
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11180 #define $ac_tr_decl 0
11181 _ACEOF
11185 done
11188 for ac_func in times
11190 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11192 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11193 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11197 /* end confdefs.h. */
11198 #undef $ac_tr_decl
11199 #define $ac_tr_decl 1
11201 #include "ansidecl.h"
11202 #include "system.h"
11203 #ifdef HAVE_SYS_TIMES_H
11204 #include <sys/times.h>
11205 #endif
11209 main ()
11211 #ifndef $ac_func
11212 char *(*pfn) = (char *(*)) $ac_func ;
11213 #endif
11215 return 0;
11217 _ACEOF
11218 if ac_fn_cxx_try_compile "$LINENO"; then :
11219 eval "gcc_cv_have_decl_$ac_func=yes"
11220 else
11221 eval "gcc_cv_have_decl_$ac_func=no"
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11228 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11229 #define $ac_tr_decl 1
11230 _ACEOF
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11235 #define $ac_tr_decl 0
11236 _ACEOF
11240 done
11243 for ac_func in sigaltstack
11245 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11247 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11248 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253 #undef $ac_tr_decl
11254 #define $ac_tr_decl 1
11256 #include "ansidecl.h"
11257 #include "system.h"
11258 #include <signal.h>
11262 main ()
11264 #ifndef $ac_func
11265 char *(*pfn) = (char *(*)) $ac_func ;
11266 #endif
11268 return 0;
11270 _ACEOF
11271 if ac_fn_cxx_try_compile "$LINENO"; then :
11272 eval "gcc_cv_have_decl_$ac_func=yes"
11273 else
11274 eval "gcc_cv_have_decl_$ac_func=no"
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11281 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11282 #define $ac_tr_decl 1
11283 _ACEOF
11285 else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11288 #define $ac_tr_decl 0
11289 _ACEOF
11293 done
11296 # More time-related stuff.
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11298 $as_echo_n "checking for struct tms... " >&6; }
11299 if test "${ac_cv_struct_tms+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 #include "ansidecl.h"
11307 #include "system.h"
11308 #ifdef HAVE_SYS_TIMES_H
11309 #include <sys/times.h>
11310 #endif
11313 main ()
11315 struct tms tms;
11317 return 0;
11319 _ACEOF
11320 if ac_fn_cxx_try_compile "$LINENO"; then :
11321 ac_cv_struct_tms=yes
11322 else
11323 ac_cv_struct_tms=no
11325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11328 $as_echo "$ac_cv_struct_tms" >&6; }
11329 if test $ac_cv_struct_tms = yes; then
11331 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11335 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11336 # revisit after autoconf 2.50.
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11338 $as_echo_n "checking for clock_t... " >&6; }
11339 if test "${gcc_cv_type_clock_t+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 #include "ansidecl.h"
11347 #include "system.h"
11350 main ()
11352 clock_t x;
11354 return 0;
11356 _ACEOF
11357 if ac_fn_cxx_try_compile "$LINENO"; then :
11358 gcc_cv_type_clock_t=yes
11359 else
11360 gcc_cv_type_clock_t=no
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11365 $as_echo "$gcc_cv_type_clock_t" >&6; }
11366 if test $gcc_cv_type_clock_t = yes; then
11368 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11372 # Check if F_SETLKW is supported by fcntl.
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11374 $as_echo_n "checking for F_SETLKW... " >&6; }
11375 if test "${ac_cv_f_setlkw+set}" = set; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11382 #include <fcntl.h>
11384 main ()
11387 struct flock fl;
11388 fl.l_whence = 0;
11389 fl.l_start = 0;
11390 fl.l_len = 0;
11391 fl.l_pid = 0;
11392 return fcntl (1, F_SETLKW, &fl);
11394 return 0;
11396 _ACEOF
11397 if ac_fn_cxx_try_compile "$LINENO"; then :
11398 ac_cv_f_setlkw=yes
11399 else
11400 ac_cv_f_setlkw=no
11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11405 $as_echo "$ac_cv_f_setlkw" >&6; }
11406 if test $ac_cv_f_setlkw = yes; then
11408 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11412 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11413 CFLAGS="$saved_CFLAGS"
11414 CXXFLAGS="$saved_CXXFLAGS"
11416 # mkdir takes a single argument on some systems.
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11418 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11419 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 #include <sys/types.h>
11426 #ifdef HAVE_SYS_STAT_H
11427 # include <sys/stat.h>
11428 #endif
11429 #ifdef HAVE_UNISTD_H
11430 # include <unistd.h>
11431 #endif
11432 #ifdef HAVE_DIRECT_H
11433 # include <direct.h>
11434 #endif
11436 main ()
11438 mkdir ("foo", 0);
11440 return 0;
11442 _ACEOF
11443 if ac_fn_cxx_try_compile "$LINENO"; then :
11444 gcc_cv_mkdir_takes_one_arg=no
11445 else
11446 gcc_cv_mkdir_takes_one_arg=yes
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11451 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11452 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11454 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11459 # File extensions
11460 manext='.1'
11461 objext='.o'
11465 # With Setjmp/Longjmp based exception handling.
11466 # Check whether --enable-sjlj-exceptions was given.
11467 if test "${enable_sjlj_exceptions+set}" = set; then :
11468 enableval=$enable_sjlj_exceptions; case $target in
11469 *-*-hpux10*)
11470 if test $enableval != yes; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11472 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11473 enableval=yes
11476 esac
11477 force_sjlj_exceptions=yes
11478 else
11479 case $target in
11480 *-*-hpux10*)
11481 force_sjlj_exceptions=yes
11482 enableval=yes
11484 lm32*-*-*)
11485 force_sjlj_exceptions=yes
11486 enableval=yes
11489 force_sjlj_exceptions=no
11491 esac
11494 if test $force_sjlj_exceptions = yes; then
11495 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11497 cat >>confdefs.h <<_ACEOF
11498 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11499 _ACEOF
11503 # --------------------------------------------------------
11504 # Build, host, and target specific configuration fragments
11505 # --------------------------------------------------------
11507 # Collect build-machine-specific information.
11508 . ${srcdir}/config.build
11510 # Collect host-machine-specific information.
11511 . ${srcdir}/config.host
11513 target_gtfiles=
11515 # Collect target-machine-specific information.
11516 . ${srcdir}/config.gcc
11518 extra_objs="${host_extra_objs} ${extra_objs}"
11519 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11521 # Default the target-machine variables that were not explicitly set.
11522 if test x"$tm_file" = x
11523 then tm_file=$cpu_type/$cpu_type.h; fi
11525 if test x"$extra_headers" = x
11526 then extra_headers=; fi
11528 if test x$md_file = x
11529 then md_file=$cpu_type/$cpu_type.md; fi
11531 if test x$out_file = x
11532 then out_file=$cpu_type/$cpu_type.c; fi
11534 if test x"$tmake_file" = x
11535 then tmake_file=$cpu_type/t-$cpu_type
11538 # Support --enable-initfini-array.
11539 if test x$enable_initfini_array != xno; then
11540 tm_file="${tm_file} initfini-array.h"
11543 if test x"$dwarf2" = xyes
11544 then tm_file="$tm_file tm-dwarf2.h"
11547 # Say what files are being used for the output code and MD file.
11548 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11549 echo "Using \`$srcdir/config/$md_file' as machine description file."
11551 # If any of the xm_file variables contain nonexistent files, warn
11552 # about them and drop them.
11555 for x in $build_xm_file; do
11556 if test -f $srcdir/config/$x
11557 then bx="$bx $x"
11558 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11559 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11561 done
11562 build_xm_file="$bx"
11565 for x in $host_xm_file; do
11566 if test -f $srcdir/config/$x
11567 then hx="$hx $x"
11568 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11569 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11571 done
11572 host_xm_file="$hx"
11575 for x in $xm_file; do
11576 if test -f $srcdir/config/$x
11577 then tx="$tx $x"
11578 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11579 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11581 done
11582 xm_file="$tx"
11584 count=a
11585 for f in $tm_file; do
11586 count=${count}x
11587 done
11588 if test $count = ax; then
11589 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11590 else
11591 echo "Using the following target machine macro files:"
11592 for f in $tm_file; do
11593 echo " $srcdir/config/$f"
11594 done
11597 if test x$use_long_long_for_widest_fast_int = xyes; then
11599 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11603 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11605 cat >>confdefs.h <<_ACEOF
11606 #define HAVE_GNU_LD $gnu_ld_bool
11607 _ACEOF
11610 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11612 cat >>confdefs.h <<_ACEOF
11613 #define HAVE_GNU_AS $gnu_as_bool
11614 _ACEOF
11617 count=a
11618 for f in $host_xm_file; do
11619 count=${count}x
11620 done
11621 if test $count = a; then
11623 elif test $count = ax; then
11624 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11625 else
11626 echo "Using the following host machine macro files:"
11627 for f in $host_xm_file; do
11628 echo " $srcdir/config/$f"
11629 done
11631 echo "Using ${out_host_hook_obj} for host machine hooks."
11633 if test "$host_xm_file" != "$build_xm_file"; then
11634 count=a
11635 for f in $build_xm_file; do
11636 count=${count}x
11637 done
11638 if test $count = a; then
11640 elif test $count = ax; then
11641 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11642 else
11643 echo "Using the following build machine macro files:"
11644 for f in $build_xm_file; do
11645 echo " $srcdir/config/$f"
11646 done
11650 if test -n "$configured_native_system_header_dir"; then
11651 native_system_header_dir=$configured_native_system_header_dir
11653 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11656 case ${host} in
11657 powerpc*-*-darwin*)
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11659 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11660 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11666 #include <sys/cdefs.h>
11667 #include <sys/signal.h>
11668 #include <ucontext.h>
11669 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11671 _ACEOF
11672 if ac_fn_cxx_try_compile "$LINENO"; then :
11673 gcc_cv_mcontext_underscores=no
11674 else
11675 gcc_cv_mcontext_underscores=yes
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11680 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11681 if test $gcc_cv_mcontext_underscores = yes; then
11683 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11687 esac
11689 # ---------
11690 # Threading
11691 # ---------
11693 # Check if a valid thread package
11694 case ${enable_threads} in
11695 "" | no)
11696 # No threads
11697 target_thread_file='single'
11699 yes)
11700 # default
11701 target_thread_file='single'
11703 aix | dce | lynx | mipssde | posix | rtems | \
11704 single | tpf | vxworks | win32)
11705 target_thread_file=${enable_threads}
11708 echo "${enable_threads} is an unknown thread package" 1>&2
11709 exit 1
11711 esac
11713 if test x${thread_file} = x; then
11714 # No thread file set by target-specific clauses in config.gcc,
11715 # so use file chosen by default logic above
11716 thread_file=${target_thread_file}
11719 # --------
11720 # UNSORTED
11721 # --------
11723 use_cxa_atexit=no
11724 if test x$enable___cxa_atexit = xyes || \
11725 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11726 if test x$host = x$target; then
11727 case $host in
11728 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11729 # keyed to flag_use_cxa_atexit
11730 *-*-mingw32*)
11731 use_cxa_atexit=yes
11733 powerpc-ibm-aix*)
11734 use_cxa_atexit=yes
11737 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11738 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11739 use_cxa_atexit=yes
11740 else
11741 echo "__cxa_atexit can't be enabled on this target"
11745 esac
11746 else
11747 # We can't check for __cxa_atexit when building a cross, so assume
11748 # it is available
11749 use_cxa_atexit=yes
11751 if test x$use_cxa_atexit = xyes; then
11753 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11758 # Look for a file containing extra machine modes.
11759 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11760 extra_modes_file='$(srcdir)'/config/${extra_modes}
11763 cat >>confdefs.h <<_ACEOF
11764 #define EXTRA_MODES_FILE "config/$extra_modes"
11765 _ACEOF
11769 # Convert extra_options into a form suitable for Makefile use.
11770 extra_opt_files=
11771 all_opt_files=
11772 for f in $extra_options; do
11773 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11774 all_opt_files="$all_opt_files $srcdir/config/$f"
11775 done
11778 # auto-host.h is the file containing items generated by autoconf and is
11779 # the first file included by config.h.
11780 # If host=build, it is correct to have bconfig include auto-host.h
11781 # as well. If host!=build, we are in error and need to do more
11782 # work to find out the build config parameters.
11783 if test x$host = x$build
11784 then
11785 build_auto=auto-host.h
11786 else
11787 # We create a subdir, then run autoconf in the subdir.
11788 # To prevent recursion we set host and build for the new
11789 # invocation of configure to the build for this invocation
11790 # of configure.
11791 tempdir=build.$$
11792 rm -rf $tempdir
11793 mkdir $tempdir
11794 cd $tempdir
11795 case ${srcdir} in
11796 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11797 *) realsrcdir=../${srcdir};;
11798 esac
11799 # Clearing GMPINC is necessary to prevent host headers being
11800 # used by the build compiler. Defining GENERATOR_FILE stops
11801 # system.h from including gmp.h.
11802 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11803 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11804 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11805 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11806 ${realsrcdir}/configure \
11807 --enable-languages=${enable_languages-all} \
11808 --target=$target_alias --host=$build_alias --build=$build_alias
11810 # We just finished tests for the build machine, so rename
11811 # the file auto-build.h in the gcc directory.
11812 mv auto-host.h ../auto-build.h
11813 cd ..
11814 rm -rf $tempdir
11815 build_auto=auto-build.h
11819 tm_file="${tm_file} defaults.h"
11820 tm_p_file="${tm_p_file} tm-preds.h"
11821 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11822 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11823 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11824 # put this back in temporarily.
11825 xm_file="auto-host.h ansidecl.h ${xm_file}"
11827 # --------
11828 # UNSORTED
11829 # --------
11831 # Compile in configure arguments.
11832 if test -f configargs.h ; then
11833 # Being re-configured.
11834 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11835 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11836 else
11837 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11840 # Double all backslashes and backslash all quotes to turn
11841 # gcc_config_arguments into a C string.
11842 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11843 $gcc_config_arguments
11845 gcc_config_arguments_str=`cat conftest.out`
11846 rm -f conftest.out
11848 cat > configargs.h <<EOF
11849 /* Generated automatically. */
11850 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11851 static const char thread_model[] = "$thread_file";
11853 static const struct {
11854 const char *name, *value;
11855 } configure_default_options[] = $configure_default_options;
11858 gcc_BASEVER=`cat $srcdir/BASE-VER`
11859 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11860 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11861 if test -f $srcdir/REVISION ; then
11862 gcc_REVISION=`cat $srcdir/REVISION`
11863 else
11864 gcc_REVISION=""
11866 cat > plugin-version.h <<EOF
11867 #include "configargs.h"
11869 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11870 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11871 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11872 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11874 static char basever[] = "$gcc_BASEVER";
11875 static char datestamp[] = "$gcc_DATESTAMP";
11876 static char devphase[] = "$gcc_DEVPHASE";
11877 static char revision[] = "$gcc_REVISION";
11879 /* FIXME plugins: We should make the version information more precise.
11880 One way to do is to add a checksum. */
11882 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11883 devphase, revision,
11884 configuration_arguments};
11887 # Internationalization
11888 # If we haven't got the data from the intl directory,
11889 # assume NLS is disabled.
11890 USE_NLS=no
11891 LIBINTL=
11892 LIBINTL_DEP=
11893 INCINTL=
11894 XGETTEXT=
11895 GMSGFMT=
11896 POSUB=
11898 if test -f ../intl/config.intl; then
11899 . ../intl/config.intl
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11902 $as_echo_n "checking whether NLS is requested... " >&6; }
11903 if test x"$USE_NLS" != xyes; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11908 $as_echo "yes" >&6; }
11910 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11914 $as_echo_n "checking for catalogs to be installed... " >&6; }
11915 # Look for .po and .gmo files in the source directory.
11916 CATALOGS=
11917 XLINGUAS=
11918 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11919 # If there aren't any .gmo files the shell will give us the
11920 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11921 # weeded out.
11922 case "$cat" in *\**)
11923 continue;;
11924 esac
11925 # The quadruple backslash is collapsed to a double backslash
11926 # by the backticks, then collapsed again by the double quotes,
11927 # leaving us with one backslash in the sed expression (right
11928 # before the dot that mustn't act as a wildcard).
11929 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11930 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11931 # The user is allowed to set LINGUAS to a list of languages to
11932 # install catalogs for. If it's empty that means "all of them."
11933 if test "x$LINGUAS" = x; then
11934 CATALOGS="$CATALOGS $cat"
11935 XLINGUAS="$XLINGUAS $lang"
11936 else
11937 case "$LINGUAS" in *$lang*)
11938 CATALOGS="$CATALOGS $cat"
11939 XLINGUAS="$XLINGUAS $lang"
11941 esac
11943 done
11944 LINGUAS="$XLINGUAS"
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11946 $as_echo "$LINGUAS" >&6; }
11949 DATADIRNAME=share
11951 INSTOBJEXT=.mo
11953 GENCAT=gencat
11955 CATOBJEXT=.gmo
11959 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11960 # -liconv on the link line twice.
11961 case "$LIBINTL" in *$LIBICONV*)
11962 LIBICONV= ;;
11963 esac
11965 # Check whether --enable-secureplt was given.
11966 if test "${enable_secureplt+set}" = set; then :
11967 enableval=$enable_secureplt;
11971 # Check whether --enable-leading-mingw64-underscores was given.
11972 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11973 enableval=$enable_leading_mingw64_underscores;
11976 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11978 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11982 # Check whether --enable-cld was given.
11983 if test "${enable_cld+set}" = set; then :
11984 enableval=$enable_cld;
11985 else
11986 enable_cld=no
11990 # Check whether --enable-frame-pointer was given.
11991 if test "${enable_frame_pointer+set}" = set; then :
11992 enableval=$enable_frame_pointer;
11993 else
11995 case $target_os in
11996 linux* | darwin[8912]*)
11997 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11998 # DWARF2.
11999 enable_frame_pointer=no
12002 enable_frame_pointer=yes
12004 esac
12009 # Windows32 Registry support for specifying GCC installation paths.
12010 # Check whether --enable-win32-registry was given.
12011 if test "${enable_win32_registry+set}" = set; then :
12012 enableval=$enable_win32_registry;
12016 case $host_os in
12017 win32 | pe | cygwin* | mingw32*)
12018 if test "x$enable_win32_registry" != xno; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12020 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12021 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12022 $as_echo_n "(cached) " >&6
12023 else
12024 ac_func_search_save_LIBS=$LIBS
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12028 /* Override any GCC internal prototype to avoid an error.
12029 Use char because int might match the return type of a GCC
12030 builtin and then its argument prototype would still apply. */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 char RegOpenKeyExA ();
12036 main ()
12038 return RegOpenKeyExA ();
12040 return 0;
12042 _ACEOF
12043 for ac_lib in '' advapi32; do
12044 if test -z "$ac_lib"; then
12045 ac_res="none required"
12046 else
12047 ac_res=-l$ac_lib
12048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12050 if ac_fn_cxx_try_link "$LINENO"; then :
12051 ac_cv_search_RegOpenKeyExA=$ac_res
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext
12055 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12056 break
12058 done
12059 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12061 else
12062 ac_cv_search_RegOpenKeyExA=no
12064 rm conftest.$ac_ext
12065 LIBS=$ac_func_search_save_LIBS
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12068 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12069 ac_res=$ac_cv_search_RegOpenKeyExA
12070 if test "$ac_res" != no; then :
12071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12073 else
12074 enable_win32_registry=no
12079 if test "x$enable_win32_registry" != xno; then
12081 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12084 if test "x$enable_win32_registry" != xyes \
12085 && test "x$enable_win32_registry" != x; then
12087 cat >>confdefs.h <<_ACEOF
12088 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12089 _ACEOF
12094 esac
12096 # Get an absolute path to the GCC top-level source directory
12097 holddir=`${PWDCMD-pwd}`
12098 cd $srcdir
12099 topdir=`${PWDCMD-pwd}`
12100 cd $holddir
12102 # Conditionalize the makefile for this host machine.
12103 xmake_file=
12104 for f in ${host_xmake_file}
12106 if test -f ${srcdir}/config/$f
12107 then
12108 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12110 done
12112 # Conditionalize the makefile for this target machine.
12113 tmake_file_=
12114 for f in ${tmake_file}
12116 if test -f ${srcdir}/config/$f
12117 then
12118 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12120 done
12121 tmake_file="${tmake_file_}"
12123 out_object_file=`basename $out_file .c`.o
12124 common_out_object_file=`basename $common_out_file .c`.o
12126 tm_file_list="options.h"
12127 tm_include_list="options.h insn-constants.h"
12128 for f in $tm_file; do
12129 case $f in
12130 ./* )
12131 f=`echo $f | sed 's/^..//'`
12132 tm_file_list="${tm_file_list} $f"
12133 tm_include_list="${tm_include_list} $f"
12135 defaults.h )
12136 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12137 tm_include_list="${tm_include_list} $f"
12140 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12141 tm_include_list="${tm_include_list} config/$f"
12143 esac
12144 done
12146 tm_p_file_list=
12147 tm_p_include_list=
12148 for f in $tm_p_file; do
12149 case $f in
12150 tm-preds.h )
12151 tm_p_file_list="${tm_p_file_list} $f"
12152 tm_p_include_list="${tm_p_include_list} $f"
12155 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12156 tm_p_include_list="${tm_p_include_list} config/$f"
12157 esac
12158 done
12160 xm_file_list=
12161 xm_include_list=
12162 for f in $xm_file; do
12163 case $f in
12164 ansidecl.h )
12165 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12166 xm_include_list="${xm_include_list} $f"
12168 auto-host.h )
12169 xm_file_list="${xm_file_list} $f"
12170 xm_include_list="${xm_include_list} $f"
12173 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12174 xm_include_list="${xm_include_list} config/$f"
12176 esac
12177 done
12179 host_xm_file_list=
12180 host_xm_include_list=
12181 for f in $host_xm_file; do
12182 case $f in
12183 ansidecl.h )
12184 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12185 host_xm_include_list="${host_xm_include_list} $f"
12187 auto-host.h )
12188 host_xm_file_list="${host_xm_file_list} $f"
12189 host_xm_include_list="${host_xm_include_list} $f"
12192 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12193 host_xm_include_list="${host_xm_include_list} config/$f"
12195 esac
12196 done
12198 build_xm_file_list=
12199 for f in $build_xm_file; do
12200 case $f in
12201 ansidecl.h )
12202 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12203 build_xm_include_list="${build_xm_include_list} $f"
12205 auto-build.h | auto-host.h )
12206 build_xm_file_list="${build_xm_file_list} $f"
12207 build_xm_include_list="${build_xm_include_list} $f"
12210 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12211 build_xm_include_list="${build_xm_include_list} config/$f"
12213 esac
12214 done
12216 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12217 # cross-compiler which does not use the native headers and libraries.
12218 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12219 CROSS=
12220 ALL=all.internal
12221 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12223 if test "x$with_build_sysroot" != x; then
12224 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12225 else
12226 # This value is used, even on a native system, because
12227 # CROSS_SYSTEM_HEADER_DIR is just
12228 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12229 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12232 if test x$host != x$target
12233 then
12234 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12235 ALL=all.cross
12236 SYSTEM_HEADER_DIR=$build_system_header_dir
12237 case "$host","$target" in
12238 # Darwin crosses can use the host system's libraries and headers,
12239 # because of the fat library support. Of course, it must be the
12240 # same version of Darwin on both sides. Allow the user to
12241 # just say --target=foo-darwin without a version number to mean
12242 # "the version on this system".
12243 *-*-darwin*,*-*-darwin*)
12244 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12245 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12246 if test $hostos = $targetos -o $targetos = darwin ; then
12247 CROSS=
12248 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12249 with_headers=yes
12253 i?86-*-*,x86_64-*-* \
12254 | powerpc*-*-*,powerpc64*-*-*)
12255 CROSS="$CROSS -DNATIVE_CROSS" ;;
12256 esac
12258 case $target in
12259 *-*-mingw*)
12260 if test "x$with_headers" = x; then
12261 with_headers=yes
12266 esac
12267 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12268 SYSTEM_HEADER_DIR=$build_system_header_dir
12271 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12272 if test "x$with_headers" != x; then
12273 target_header_dir=$with_headers
12274 elif test "x$with_sysroot" = x; then
12275 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12276 elif test "x$with_build_sysroot" != "x"; then
12277 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12278 elif test "x$with_sysroot" = xyes; then
12279 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12280 else
12281 target_header_dir="${with_sysroot}${native_system_header_dir}"
12283 else
12284 target_header_dir=${native_system_header_dir}
12287 # If this is a cross-compiler that does not
12288 # have its own set of headers then define
12289 # inhibit_libc
12291 # If this is using newlib, without having the headers available now,
12292 # then define inhibit_libc in LIBGCC2_CFLAGS.
12293 # This prevents libgcc2 from containing any code which requires libc
12294 # support.
12295 : ${inhibit_libc=false}
12296 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12297 test x$with_newlib = xyes ; } &&
12298 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12299 inhibit_libc=true
12303 # When building gcc with a cross-compiler, we need to adjust things so
12304 # that the generator programs are still built with the native compiler.
12305 # Also, we cannot run fixincludes.
12307 # These are the normal (build=host) settings:
12308 CC_FOR_BUILD='$(CC)'
12309 CXX_FOR_BUILD='$(CXX)'
12310 BUILD_CFLAGS='$(ALL_CFLAGS)'
12311 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12312 BUILD_LDFLAGS='$(LDFLAGS)'
12313 STMP_FIXINC=stmp-fixinc
12315 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12316 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12318 # And these apply if build != host, or we are generating coverage data
12319 if test x$build != x$host || test "x$coverage_flags" != x
12320 then
12321 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12322 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12323 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12325 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12326 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12327 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12328 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12333 # Expand extra_headers to include complete path.
12334 # This substitutes for lots of t-* files.
12335 extra_headers_list=
12336 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12337 for file in ${extra_headers} ; do
12338 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12339 done
12341 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12342 if test x"$use_gcc_tgmath" = xyes
12343 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12346 # Define collect2 in Makefile.
12347 case $host_can_use_collect2 in
12348 no) collect2= ;;
12349 *) collect2='collect2$(exeext)' ;;
12350 esac
12353 # Add a definition of USE_COLLECT2 if system wants one.
12354 case $use_collect2 in
12355 no) use_collect2= ;;
12356 "") ;;
12358 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12359 xm_defines="${xm_defines} USE_COLLECT2"
12360 case $host_can_use_collect2 in
12362 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12364 esac
12366 esac
12369 cat >>confdefs.h <<_ACEOF
12370 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12371 _ACEOF
12374 # ---------------------------
12375 # Assembler & linker features
12376 # ---------------------------
12378 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12379 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12380 # However when ld-new is first executed from the build tree, libtool will
12381 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12382 # to the build tree. While doing this we need to use the previous-stage
12383 # linker, or we have an infinite loop. The presence of a shell script as
12384 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12385 # the gcc/collect-ld script. So we need to know how libtool works, or
12386 # exec-tool will fail.
12389 case `pwd` in
12390 *\ * | *\ *)
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12392 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12393 esac
12397 macro_version='2.2.7a'
12398 macro_revision='1.3134'
12412 ltmain="$ac_aux_dir/ltmain.sh"
12414 # Backslashify metacharacters that are still active within
12415 # double-quoted strings.
12416 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12418 # Same as above, but do not quote variable references.
12419 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12421 # Sed substitution to delay expansion of an escaped shell variable in a
12422 # double_quote_subst'ed string.
12423 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12425 # Sed substitution to delay expansion of an escaped single quote.
12426 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12428 # Sed substitution to avoid accidental globbing in evaled expressions
12429 no_glob_subst='s/\*/\\\*/g'
12431 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12432 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12436 $as_echo_n "checking how to print strings... " >&6; }
12437 # Test print first, because it will be a builtin if present.
12438 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12439 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12440 ECHO='print -r --'
12441 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12442 ECHO='printf %s\n'
12443 else
12444 # Use this function as a fallback that always works.
12445 func_fallback_echo ()
12447 eval 'cat <<_LTECHO_EOF
12449 _LTECHO_EOF'
12451 ECHO='func_fallback_echo'
12454 # func_echo_all arg...
12455 # Invoke $ECHO with all args, space-separated.
12456 func_echo_all ()
12458 $ECHO ""
12461 case "$ECHO" in
12462 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12463 $as_echo "printf" >&6; } ;;
12464 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12465 $as_echo "print -r" >&6; } ;;
12466 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12467 $as_echo "cat" >&6; } ;;
12468 esac
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12484 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12485 if test "${ac_cv_path_SED+set}" = set; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12489 for ac_i in 1 2 3 4 5 6 7; do
12490 ac_script="$ac_script$as_nl$ac_script"
12491 done
12492 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12493 { ac_script=; unset ac_script;}
12494 if test -z "$SED"; then
12495 ac_path_SED_found=false
12496 # Loop through the user's path and test for each of PROGNAME-LIST
12497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_prog in sed gsed; do
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12505 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12506 # Check for GNU ac_path_SED and select it if it is found.
12507 # Check for GNU $ac_path_SED
12508 case `"$ac_path_SED" --version 2>&1` in
12509 *GNU*)
12510 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12512 ac_count=0
12513 $as_echo_n 0123456789 >"conftest.in"
12514 while :
12516 cat "conftest.in" "conftest.in" >"conftest.tmp"
12517 mv "conftest.tmp" "conftest.in"
12518 cp "conftest.in" "conftest.nl"
12519 $as_echo '' >> "conftest.nl"
12520 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12522 as_fn_arith $ac_count + 1 && ac_count=$as_val
12523 if test $ac_count -gt ${ac_path_SED_max-0}; then
12524 # Best one so far, save it but keep looking for a better one
12525 ac_cv_path_SED="$ac_path_SED"
12526 ac_path_SED_max=$ac_count
12528 # 10*(2^10) chars as input seems more than enough
12529 test $ac_count -gt 10 && break
12530 done
12531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12532 esac
12534 $ac_path_SED_found && break 3
12535 done
12536 done
12537 done
12538 IFS=$as_save_IFS
12539 if test -z "$ac_cv_path_SED"; then
12540 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12542 else
12543 ac_cv_path_SED=$SED
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12548 $as_echo "$ac_cv_path_SED" >&6; }
12549 SED="$ac_cv_path_SED"
12550 rm -f conftest.sed
12552 test -z "$SED" && SED=sed
12553 Xsed="$SED -e 1s/^X//"
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12566 $as_echo_n "checking for fgrep... " >&6; }
12567 if test "${ac_cv_path_FGREP+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12571 then ac_cv_path_FGREP="$GREP -F"
12572 else
12573 if test -z "$FGREP"; then
12574 ac_path_FGREP_found=false
12575 # Loop through the user's path and test for each of PROGNAME-LIST
12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12579 IFS=$as_save_IFS
12580 test -z "$as_dir" && as_dir=.
12581 for ac_prog in fgrep; do
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12584 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12585 # Check for GNU ac_path_FGREP and select it if it is found.
12586 # Check for GNU $ac_path_FGREP
12587 case `"$ac_path_FGREP" --version 2>&1` in
12588 *GNU*)
12589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12591 ac_count=0
12592 $as_echo_n 0123456789 >"conftest.in"
12593 while :
12595 cat "conftest.in" "conftest.in" >"conftest.tmp"
12596 mv "conftest.tmp" "conftest.in"
12597 cp "conftest.in" "conftest.nl"
12598 $as_echo 'FGREP' >> "conftest.nl"
12599 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12601 as_fn_arith $ac_count + 1 && ac_count=$as_val
12602 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12603 # Best one so far, save it but keep looking for a better one
12604 ac_cv_path_FGREP="$ac_path_FGREP"
12605 ac_path_FGREP_max=$ac_count
12607 # 10*(2^10) chars as input seems more than enough
12608 test $ac_count -gt 10 && break
12609 done
12610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12611 esac
12613 $ac_path_FGREP_found && break 3
12614 done
12615 done
12616 done
12617 IFS=$as_save_IFS
12618 if test -z "$ac_cv_path_FGREP"; then
12619 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12621 else
12622 ac_cv_path_FGREP=$FGREP
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12628 $as_echo "$ac_cv_path_FGREP" >&6; }
12629 FGREP="$ac_cv_path_FGREP"
12632 test -z "$GREP" && GREP=grep
12652 # Check whether --with-gnu-ld was given.
12653 if test "${with_gnu_ld+set}" = set; then :
12654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12655 else
12656 with_gnu_ld=no
12659 ac_prog=ld
12660 if test "$GCC" = yes; then
12661 # Check if gcc -print-prog-name=ld gives a path.
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12663 $as_echo_n "checking for ld used by $CC... " >&6; }
12664 case $host in
12665 *-*-mingw*)
12666 # gcc leaves a trailing carriage return which upsets mingw
12667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12670 esac
12671 case $ac_prog in
12672 # Accept absolute paths.
12673 [\\/]* | ?:[\\/]*)
12674 re_direlt='/[^/][^/]*/\.\./'
12675 # Canonicalize the pathname of ld
12676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12679 done
12680 test -z "$LD" && LD="$ac_prog"
12683 # If it fails, then pretend we aren't using GCC.
12684 ac_prog=ld
12687 # If it is relative, then search for the first ld in PATH.
12688 with_gnu_ld=unknown
12690 esac
12691 elif test "$with_gnu_ld" = yes; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12693 $as_echo_n "checking for GNU ld... " >&6; }
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12696 $as_echo_n "checking for non-GNU ld... " >&6; }
12698 if test "${lt_cv_path_LD+set}" = set; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 if test -z "$LD"; then
12702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12703 for ac_dir in $PATH; do
12704 IFS="$lt_save_ifs"
12705 test -z "$ac_dir" && ac_dir=.
12706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12707 lt_cv_path_LD="$ac_dir/$ac_prog"
12708 # Check to see if the program is GNU ld. I'd rather use --version,
12709 # but apparently some variants of GNU ld only accept -v.
12710 # Break only if it was the GNU/non-GNU ld that we prefer.
12711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12712 *GNU* | *'with BFD'*)
12713 test "$with_gnu_ld" != no && break
12716 test "$with_gnu_ld" != yes && break
12718 esac
12720 done
12721 IFS="$lt_save_ifs"
12722 else
12723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12727 LD="$lt_cv_path_LD"
12728 if test -n "$LD"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12730 $as_echo "$LD" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12735 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12737 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12738 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12742 case `$LD -v 2>&1 </dev/null` in
12743 *GNU* | *'with BFD'*)
12744 lt_cv_prog_gnu_ld=yes
12747 lt_cv_prog_gnu_ld=no
12749 esac
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12752 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12753 with_gnu_ld=$lt_cv_prog_gnu_ld
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12764 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12765 if test "${lt_cv_path_NM+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 if test -n "$NM"; then
12769 # Let the user override the test.
12770 lt_cv_path_NM="$NM"
12771 else
12772 lt_nm_to_check="${ac_tool_prefix}nm"
12773 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12774 lt_nm_to_check="$lt_nm_to_check nm"
12776 for lt_tmp_nm in $lt_nm_to_check; do
12777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12778 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12779 IFS="$lt_save_ifs"
12780 test -z "$ac_dir" && ac_dir=.
12781 tmp_nm="$ac_dir/$lt_tmp_nm"
12782 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12783 # Check to see if the nm accepts a BSD-compat flag.
12784 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12785 # nm: unknown option "B" ignored
12786 # Tru64's nm complains that /dev/null is an invalid object file
12787 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12788 */dev/null* | *'Invalid file or object type'*)
12789 lt_cv_path_NM="$tmp_nm -B"
12790 break
12793 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12794 */dev/null*)
12795 lt_cv_path_NM="$tmp_nm -p"
12796 break
12799 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12800 continue # so that we can try to find one that supports BSD flags
12802 esac
12804 esac
12806 done
12807 IFS="$lt_save_ifs"
12808 done
12809 : ${lt_cv_path_NM=no}
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12813 $as_echo "$lt_cv_path_NM" >&6; }
12814 if test "$lt_cv_path_NM" != "no"; then
12815 NM="$lt_cv_path_NM"
12816 else
12817 # Didn't find any BSD compatible name lister, look for dumpbin.
12818 if test -n "$DUMPBIN"; then :
12819 # Let the user override the test.
12820 else
12821 if test -n "$ac_tool_prefix"; then
12822 for ac_prog in dumpbin "link -dump"
12824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827 $as_echo_n "checking for $ac_word... " >&6; }
12828 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 if test -n "$DUMPBIN"; then
12832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12833 else
12834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835 for as_dir in $PATH
12837 IFS=$as_save_IFS
12838 test -z "$as_dir" && as_dir=.
12839 for ac_exec_ext in '' $ac_executable_extensions; do
12840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12843 break 2
12845 done
12846 done
12847 IFS=$as_save_IFS
12851 DUMPBIN=$ac_cv_prog_DUMPBIN
12852 if test -n "$DUMPBIN"; then
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12854 $as_echo "$DUMPBIN" >&6; }
12855 else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12861 test -n "$DUMPBIN" && break
12862 done
12864 if test -z "$DUMPBIN"; then
12865 ac_ct_DUMPBIN=$DUMPBIN
12866 for ac_prog in dumpbin "link -dump"
12868 # Extract the first word of "$ac_prog", so it can be a program name with args.
12869 set dummy $ac_prog; ac_word=$2
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871 $as_echo_n "checking for $ac_word... " >&6; }
12872 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 if test -n "$ac_ct_DUMPBIN"; then
12876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12877 else
12878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12881 IFS=$as_save_IFS
12882 test -z "$as_dir" && as_dir=.
12883 for ac_exec_ext in '' $ac_executable_extensions; do
12884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 break 2
12889 done
12890 done
12891 IFS=$as_save_IFS
12895 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12896 if test -n "$ac_ct_DUMPBIN"; then
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12898 $as_echo "$ac_ct_DUMPBIN" >&6; }
12899 else
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901 $as_echo "no" >&6; }
12905 test -n "$ac_ct_DUMPBIN" && break
12906 done
12908 if test "x$ac_ct_DUMPBIN" = x; then
12909 DUMPBIN=":"
12910 else
12911 case $cross_compiling:$ac_tool_warned in
12912 yes:)
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12915 ac_tool_warned=yes ;;
12916 esac
12917 DUMPBIN=$ac_ct_DUMPBIN
12921 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12922 *COFF*)
12923 DUMPBIN="$DUMPBIN -symbols"
12926 DUMPBIN=:
12928 esac
12931 if test "$DUMPBIN" != ":"; then
12932 NM="$DUMPBIN"
12935 test -z "$NM" && NM=nm
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12943 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12944 if test "${lt_cv_nm_interface+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 lt_cv_nm_interface="BSD nm"
12948 echo "int some_variable = 0;" > conftest.$ac_ext
12949 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12950 (eval "$ac_compile" 2>conftest.err)
12951 cat conftest.err >&5
12952 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12953 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12954 cat conftest.err >&5
12955 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12956 cat conftest.out >&5
12957 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12958 lt_cv_nm_interface="MS dumpbin"
12960 rm -f conftest*
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12963 $as_echo "$lt_cv_nm_interface" >&6; }
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12966 $as_echo_n "checking whether ln -s works... " >&6; }
12967 LN_S=$as_ln_s
12968 if test "$LN_S" = "ln -s"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12970 $as_echo "yes" >&6; }
12971 else
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12973 $as_echo "no, using $LN_S" >&6; }
12976 # find the maximum length of command line arguments
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12978 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12979 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12983 teststring="ABCD"
12985 case $build_os in
12986 msdosdjgpp*)
12987 # On DJGPP, this test can blow up pretty badly due to problems in libc
12988 # (any single argument exceeding 2000 bytes causes a buffer overrun
12989 # during glob expansion). Even if it were fixed, the result of this
12990 # check would be larger than it should be.
12991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12994 gnu*)
12995 # Under GNU Hurd, this test is not required because there is
12996 # no limit to the length of command line arguments.
12997 # Libtool will interpret -1 as no limit whatsoever
12998 lt_cv_sys_max_cmd_len=-1;
13001 cygwin* | mingw* | cegcc*)
13002 # On Win9x/ME, this test blows up -- it succeeds, but takes
13003 # about 5 minutes as the teststring grows exponentially.
13004 # Worse, since 9x/ME are not pre-emptively multitasking,
13005 # you end up with a "frozen" computer, even though with patience
13006 # the test eventually succeeds (with a max line length of 256k).
13007 # Instead, let's just punt: use the minimum linelength reported by
13008 # all of the supported platforms: 8192 (on NT/2K/XP).
13009 lt_cv_sys_max_cmd_len=8192;
13012 mint*)
13013 # On MiNT this can take a long time and run out of memory.
13014 lt_cv_sys_max_cmd_len=8192;
13017 amigaos*)
13018 # On AmigaOS with pdksh, this test takes hours, literally.
13019 # So we just punt and use a minimum line length of 8192.
13020 lt_cv_sys_max_cmd_len=8192;
13023 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13024 # This has been around since 386BSD, at least. Likely further.
13025 if test -x /sbin/sysctl; then
13026 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13027 elif test -x /usr/sbin/sysctl; then
13028 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13029 else
13030 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13032 # And add a safety zone
13033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13037 interix*)
13038 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13039 lt_cv_sys_max_cmd_len=196608
13042 osf*)
13043 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13044 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13045 # nice to cause kernel panics so lets avoid the loop below.
13046 # First set a reasonable default.
13047 lt_cv_sys_max_cmd_len=16384
13049 if test -x /sbin/sysconfig; then
13050 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13051 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13052 esac
13055 sco3.2v5*)
13056 lt_cv_sys_max_cmd_len=102400
13058 sysv5* | sco5v6* | sysv4.2uw2*)
13059 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13060 if test -n "$kargmax"; then
13061 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13062 else
13063 lt_cv_sys_max_cmd_len=32768
13067 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13068 if test -n "$lt_cv_sys_max_cmd_len"; then
13069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13071 else
13072 # Make teststring a little bigger before we do anything with it.
13073 # a 1K string should be a reasonable start.
13074 for i in 1 2 3 4 5 6 7 8 ; do
13075 teststring=$teststring$teststring
13076 done
13077 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13078 # If test is not a shell built-in, we'll probably end up computing a
13079 # maximum length that is only half of the actual maximum length, but
13080 # we can't tell.
13081 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13082 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13083 test $i != 17 # 1/2 MB should be enough
13085 i=`expr $i + 1`
13086 teststring=$teststring$teststring
13087 done
13088 # Only check the string length outside the loop.
13089 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13090 teststring=
13091 # Add a significant safety factor because C++ compilers can tack on
13092 # massive amounts of additional arguments before passing them to the
13093 # linker. It appears as though 1/2 is a usable value.
13094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13097 esac
13101 if test -n $lt_cv_sys_max_cmd_len ; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13103 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13104 else
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13106 $as_echo "none" >&6; }
13108 max_cmd_len=$lt_cv_sys_max_cmd_len
13115 : ${CP="cp -f"}
13116 : ${MV="mv -f"}
13117 : ${RM="rm -f"}
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13120 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13121 # Try some XSI features
13122 xsi_shell=no
13123 ( _lt_dummy="a/b/c"
13124 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13125 = c,a/b,, \
13126 && eval 'test $(( 1 + 1 )) -eq 2 \
13127 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13128 && xsi_shell=yes
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13130 $as_echo "$xsi_shell" >&6; }
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13134 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13135 lt_shell_append=no
13136 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13137 >/dev/null 2>&1 \
13138 && lt_shell_append=yes
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13140 $as_echo "$lt_shell_append" >&6; }
13143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13144 lt_unset=unset
13145 else
13146 lt_unset=false
13153 # test EBCDIC or ASCII
13154 case `echo X|tr X '\101'` in
13155 A) # ASCII based system
13156 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13157 lt_SP2NL='tr \040 \012'
13158 lt_NL2SP='tr \015\012 \040\040'
13160 *) # EBCDIC based system
13161 lt_SP2NL='tr \100 \n'
13162 lt_NL2SP='tr \r\n \100\100'
13164 esac
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13175 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13176 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 lt_cv_ld_reload_flag='-r'
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13182 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13183 reload_flag=$lt_cv_ld_reload_flag
13184 case $reload_flag in
13185 "" | " "*) ;;
13186 *) reload_flag=" $reload_flag" ;;
13187 esac
13188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13189 case $host_os in
13190 darwin*)
13191 if test "$GCC" = yes; then
13192 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13193 else
13194 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13197 esac
13207 if test -n "$ac_tool_prefix"; then
13208 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13209 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 if test -n "$OBJDUMP"; then
13216 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13217 else
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in $PATH
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for ac_exec_ext in '' $ac_executable_extensions; do
13224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13225 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227 break 2
13229 done
13230 done
13231 IFS=$as_save_IFS
13235 OBJDUMP=$ac_cv_prog_OBJDUMP
13236 if test -n "$OBJDUMP"; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13238 $as_echo "$OBJDUMP" >&6; }
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13246 if test -z "$ac_cv_prog_OBJDUMP"; then
13247 ac_ct_OBJDUMP=$OBJDUMP
13248 # Extract the first word of "objdump", so it can be a program name with args.
13249 set dummy objdump; ac_word=$2
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251 $as_echo_n "checking for $ac_word... " >&6; }
13252 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 if test -n "$ac_ct_OBJDUMP"; then
13256 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13257 else
13258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13261 IFS=$as_save_IFS
13262 test -z "$as_dir" && as_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13265 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267 break 2
13269 done
13270 done
13271 IFS=$as_save_IFS
13275 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13276 if test -n "$ac_ct_OBJDUMP"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13278 $as_echo "$ac_ct_OBJDUMP" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13284 if test "x$ac_ct_OBJDUMP" = x; then
13285 OBJDUMP="false"
13286 else
13287 case $cross_compiling:$ac_tool_warned in
13288 yes:)
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13291 ac_tool_warned=yes ;;
13292 esac
13293 OBJDUMP=$ac_ct_OBJDUMP
13295 else
13296 OBJDUMP="$ac_cv_prog_OBJDUMP"
13299 test -z "$OBJDUMP" && OBJDUMP=objdump
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13310 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13311 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 lt_cv_file_magic_cmd='$MAGIC_CMD'
13315 lt_cv_file_magic_test_file=
13316 lt_cv_deplibs_check_method='unknown'
13317 # Need to set the preceding variable on all platforms that support
13318 # interlibrary dependencies.
13319 # 'none' -- dependencies not supported.
13320 # `unknown' -- same as none, but documents that we really don't know.
13321 # 'pass_all' -- all dependencies passed with no checks.
13322 # 'test_compile' -- check by making test program.
13323 # 'file_magic [[regex]]' -- check by looking for files in library path
13324 # which responds to the $file_magic_cmd with a given extended regex.
13325 # If you have `file' or equivalent on your system and you're not sure
13326 # whether `pass_all' will *always* work, you probably want this one.
13328 case $host_os in
13329 aix[4-9]*)
13330 lt_cv_deplibs_check_method=pass_all
13333 beos*)
13334 lt_cv_deplibs_check_method=pass_all
13337 bsdi[45]*)
13338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13339 lt_cv_file_magic_cmd='/usr/bin/file -L'
13340 lt_cv_file_magic_test_file=/shlib/libc.so
13343 cygwin*)
13344 # func_win32_libid is a shell function defined in ltmain.sh
13345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13346 lt_cv_file_magic_cmd='func_win32_libid'
13349 mingw* | pw32*)
13350 # Base MSYS/MinGW do not provide the 'file' command needed by
13351 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13352 # unless we find 'file', for example because we are cross-compiling.
13353 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13354 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13355 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13356 lt_cv_file_magic_cmd='func_win32_libid'
13357 else
13358 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13359 lt_cv_file_magic_cmd='$OBJDUMP -f'
13363 cegcc*)
13364 # use the weaker test based on 'objdump'. See mingw*.
13365 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13366 lt_cv_file_magic_cmd='$OBJDUMP -f'
13369 darwin* | rhapsody*)
13370 lt_cv_deplibs_check_method=pass_all
13373 freebsd* | dragonfly*)
13374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13375 case $host_cpu in
13376 i*86 )
13377 # Not sure whether the presence of OpenBSD here was a mistake.
13378 # Let's accept both of them until this is cleared up.
13379 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13380 lt_cv_file_magic_cmd=/usr/bin/file
13381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13383 esac
13384 else
13385 lt_cv_deplibs_check_method=pass_all
13389 gnu*)
13390 lt_cv_deplibs_check_method=pass_all
13393 haiku*)
13394 lt_cv_deplibs_check_method=pass_all
13397 hpux10.20* | hpux11*)
13398 lt_cv_file_magic_cmd=/usr/bin/file
13399 case $host_cpu in
13400 ia64*)
13401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13402 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13404 hppa*64*)
13405 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
13406 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13410 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13412 esac
13415 interix[3-9]*)
13416 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13420 irix5* | irix6* | nonstopux*)
13421 case $LD in
13422 *-32|*"-32 ") libmagic=32-bit;;
13423 *-n32|*"-n32 ") libmagic=N32;;
13424 *-64|*"-64 ") libmagic=64-bit;;
13425 *) libmagic=never-match;;
13426 esac
13427 lt_cv_deplibs_check_method=pass_all
13430 # This must be Linux ELF.
13431 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13432 lt_cv_deplibs_check_method=pass_all
13435 netbsd*)
13436 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13438 else
13439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13443 newos6*)
13444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13445 lt_cv_file_magic_cmd=/usr/bin/file
13446 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13449 *nto* | *qnx*)
13450 lt_cv_deplibs_check_method=pass_all
13453 openbsd*)
13454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13456 else
13457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13461 osf3* | osf4* | osf5*)
13462 lt_cv_deplibs_check_method=pass_all
13465 rdos*)
13466 lt_cv_deplibs_check_method=pass_all
13469 solaris*)
13470 lt_cv_deplibs_check_method=pass_all
13473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13474 lt_cv_deplibs_check_method=pass_all
13477 sysv4 | sysv4.3*)
13478 case $host_vendor in
13479 motorola)
13480 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
13481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13483 ncr)
13484 lt_cv_deplibs_check_method=pass_all
13486 sequent)
13487 lt_cv_file_magic_cmd='/bin/file'
13488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13490 sni)
13491 lt_cv_file_magic_cmd='/bin/file'
13492 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13493 lt_cv_file_magic_test_file=/lib/libc.so
13495 siemens)
13496 lt_cv_deplibs_check_method=pass_all
13499 lt_cv_deplibs_check_method=pass_all
13501 esac
13504 tpf*)
13505 lt_cv_deplibs_check_method=pass_all
13507 esac
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13511 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13512 file_magic_cmd=$lt_cv_file_magic_cmd
13513 deplibs_check_method=$lt_cv_deplibs_check_method
13514 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13527 if test -n "$ac_tool_prefix"; then
13528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13529 set dummy ${ac_tool_prefix}ar; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if test "${ac_cv_prog_AR+set}" = set; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 if test -n "$AR"; then
13536 ac_cv_prog_AR="$AR" # Let the user override the test.
13537 else
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13541 IFS=$as_save_IFS
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
13544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13545 ac_cv_prog_AR="${ac_tool_prefix}ar"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 break 2
13549 done
13550 done
13551 IFS=$as_save_IFS
13555 AR=$ac_cv_prog_AR
13556 if test -n "$AR"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13558 $as_echo "$AR" >&6; }
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13566 if test -z "$ac_cv_prog_AR"; then
13567 ac_ct_AR=$AR
13568 # Extract the first word of "ar", so it can be a program name with args.
13569 set dummy ar; ac_word=$2
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571 $as_echo_n "checking for $ac_word... " >&6; }
13572 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13573 $as_echo_n "(cached) " >&6
13574 else
13575 if test -n "$ac_ct_AR"; then
13576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13577 else
13578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579 for as_dir in $PATH
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
13584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13585 ac_cv_prog_ac_ct_AR="ar"
13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13589 done
13590 done
13591 IFS=$as_save_IFS
13595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13596 if test -n "$ac_ct_AR"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13598 $as_echo "$ac_ct_AR" >&6; }
13599 else
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601 $as_echo "no" >&6; }
13604 if test "x$ac_ct_AR" = x; then
13605 AR="false"
13606 else
13607 case $cross_compiling:$ac_tool_warned in
13608 yes:)
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13611 ac_tool_warned=yes ;;
13612 esac
13613 AR=$ac_ct_AR
13615 else
13616 AR="$ac_cv_prog_AR"
13619 test -z "$AR" && AR=ar
13620 test -z "$AR_FLAGS" && AR_FLAGS=cru
13632 if test -n "$ac_tool_prefix"; then
13633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13634 set dummy ${ac_tool_prefix}strip; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if test "${ac_cv_prog_STRIP+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 if test -n "$STRIP"; then
13641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13642 else
13643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13644 for as_dir in $PATH
13646 IFS=$as_save_IFS
13647 test -z "$as_dir" && as_dir=.
13648 for ac_exec_ext in '' $ac_executable_extensions; do
13649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13652 break 2
13654 done
13655 done
13656 IFS=$as_save_IFS
13660 STRIP=$ac_cv_prog_STRIP
13661 if test -n "$STRIP"; then
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13663 $as_echo "$STRIP" >&6; }
13664 else
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666 $as_echo "no" >&6; }
13671 if test -z "$ac_cv_prog_STRIP"; then
13672 ac_ct_STRIP=$STRIP
13673 # Extract the first word of "strip", so it can be a program name with args.
13674 set dummy strip; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 if test -n "$ac_ct_STRIP"; then
13681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13682 else
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13686 IFS=$as_save_IFS
13687 test -z "$as_dir" && as_dir=.
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13690 ac_cv_prog_ac_ct_STRIP="strip"
13691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13692 break 2
13694 done
13695 done
13696 IFS=$as_save_IFS
13700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13701 if test -n "$ac_ct_STRIP"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13703 $as_echo "$ac_ct_STRIP" >&6; }
13704 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13709 if test "x$ac_ct_STRIP" = x; then
13710 STRIP=":"
13711 else
13712 case $cross_compiling:$ac_tool_warned in
13713 yes:)
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13716 ac_tool_warned=yes ;;
13717 esac
13718 STRIP=$ac_ct_STRIP
13720 else
13721 STRIP="$ac_cv_prog_STRIP"
13724 test -z "$STRIP" && STRIP=:
13731 if test -n "$ac_tool_prefix"; then
13732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13733 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 if test -n "$RANLIB"; then
13740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13741 else
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 break 2
13753 done
13754 done
13755 IFS=$as_save_IFS
13759 RANLIB=$ac_cv_prog_RANLIB
13760 if test -n "$RANLIB"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13762 $as_echo "$RANLIB" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13770 if test -z "$ac_cv_prog_RANLIB"; then
13771 ac_ct_RANLIB=$RANLIB
13772 # Extract the first word of "ranlib", so it can be a program name with args.
13773 set dummy ranlib; ac_word=$2
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775 $as_echo_n "checking for $ac_word... " >&6; }
13776 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 if test -n "$ac_ct_RANLIB"; then
13780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13781 else
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13785 IFS=$as_save_IFS
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13789 ac_cv_prog_ac_ct_RANLIB="ranlib"
13790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13791 break 2
13793 done
13794 done
13795 IFS=$as_save_IFS
13799 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13800 if test -n "$ac_ct_RANLIB"; then
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13802 $as_echo "$ac_ct_RANLIB" >&6; }
13803 else
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805 $as_echo "no" >&6; }
13808 if test "x$ac_ct_RANLIB" = x; then
13809 RANLIB=":"
13810 else
13811 case $cross_compiling:$ac_tool_warned in
13812 yes:)
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13815 ac_tool_warned=yes ;;
13816 esac
13817 RANLIB=$ac_ct_RANLIB
13819 else
13820 RANLIB="$ac_cv_prog_RANLIB"
13823 test -z "$RANLIB" && RANLIB=:
13830 # Determine commands to create old-style static archives.
13831 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13832 old_postinstall_cmds='chmod 644 $oldlib'
13833 old_postuninstall_cmds=
13835 if test -n "$RANLIB"; then
13836 case $host_os in
13837 openbsd*)
13838 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13843 esac
13844 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13847 case $host_os in
13848 darwin*)
13849 lock_old_archive_extraction=yes ;;
13851 lock_old_archive_extraction=no ;;
13852 esac
13892 # If no C compiler was specified, use CC.
13893 LTCC=${LTCC-"$CC"}
13895 # If no C compiler flags were specified, use CFLAGS.
13896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13898 # Allow CC to be a program name with arguments.
13899 compiler=$CC
13902 # Check for command to grab the raw symbol name followed by C symbol from nm.
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13904 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13905 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13909 # These are sane defaults that work on at least a few old systems.
13910 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13912 # Character class describing NM global symbol codes.
13913 symcode='[BCDEGRST]'
13915 # Regexp to match symbols that can be accessed directly from C.
13916 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13918 # Define system-specific variables.
13919 case $host_os in
13920 aix*)
13921 symcode='[BCDT]'
13923 cygwin* | mingw* | pw32* | cegcc*)
13924 symcode='[ABCDGISTW]'
13926 hpux*)
13927 if test "$host_cpu" = ia64; then
13928 symcode='[ABCDEGRST]'
13931 irix* | nonstopux*)
13932 symcode='[BCDEGRST]'
13934 osf*)
13935 symcode='[BCDEGQRST]'
13937 solaris*)
13938 symcode='[BDRT]'
13940 sco3.2v5*)
13941 symcode='[DT]'
13943 sysv4.2uw2*)
13944 symcode='[DT]'
13946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13947 symcode='[ABDT]'
13949 sysv4)
13950 symcode='[DFNSTU]'
13952 esac
13954 # If we're using GNU nm, then use its standard symbol codes.
13955 case `$NM -V 2>&1` in
13956 *GNU* | *'with BFD'*)
13957 symcode='[ABCDGIRSTW]' ;;
13958 esac
13960 # Transform an extracted symbol line into a proper C declaration.
13961 # Some systems (esp. on ia64) link data and code symbols differently,
13962 # so use this general approach.
13963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13965 # Transform an extracted symbol line into symbol name and symbol address
13966 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13967 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
13969 # Handle CRLF in mingw tool chain
13970 opt_cr=
13971 case $build_os in
13972 mingw*)
13973 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13975 esac
13977 # Try without a prefix underscore, then with it.
13978 for ac_symprfx in "" "_"; do
13980 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13981 symxfrm="\\1 $ac_symprfx\\2 \\2"
13983 # Write the raw and C identifiers.
13984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13985 # Fake it for dumpbin and say T for any non-static function
13986 # and D for any global variable.
13987 # Also find C++ and __fastcall symbols from MSVC++,
13988 # which start with @ or ?.
13989 lt_cv_sys_global_symbol_pipe="$AWK '"\
13990 " {last_section=section; section=\$ 3};"\
13991 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13992 " \$ 0!~/External *\|/{next};"\
13993 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13994 " {if(hide[section]) next};"\
13995 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13996 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13997 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13998 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13999 " ' prfx=^$ac_symprfx"
14000 else
14001 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14004 # Check to see that the pipe works correctly.
14005 pipe_works=no
14007 rm -f conftest*
14008 cat > conftest.$ac_ext <<_LT_EOF
14009 #ifdef __cplusplus
14010 extern "C" {
14011 #endif
14012 char nm_test_var;
14013 void nm_test_func(void);
14014 void nm_test_func(void){}
14015 #ifdef __cplusplus
14017 #endif
14018 int main(){nm_test_var='a';nm_test_func();return(0);}
14019 _LT_EOF
14021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14022 (eval $ac_compile) 2>&5
14023 ac_status=$?
14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025 test $ac_status = 0; }; then
14026 # Now try to grab the symbols.
14027 nlist=conftest.nm
14028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14029 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14030 ac_status=$?
14031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; } && test -s "$nlist"; then
14033 # Try sorting and uniquifying the output.
14034 if sort "$nlist" | uniq > "$nlist"T; then
14035 mv -f "$nlist"T "$nlist"
14036 else
14037 rm -f "$nlist"T
14040 # Make sure that we snagged all the symbols we need.
14041 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14042 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14043 cat <<_LT_EOF > conftest.$ac_ext
14044 #ifdef __cplusplus
14045 extern "C" {
14046 #endif
14048 _LT_EOF
14049 # Now generate the symbol file.
14050 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14052 cat <<_LT_EOF >> conftest.$ac_ext
14054 /* The mapping between symbol names and symbols. */
14055 const struct {
14056 const char *name;
14057 void *address;
14059 lt__PROGRAM__LTX_preloaded_symbols[] =
14061 { "@PROGRAM@", (void *) 0 },
14062 _LT_EOF
14063 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14064 cat <<\_LT_EOF >> conftest.$ac_ext
14065 {0, (void *) 0}
14068 /* This works around a problem in FreeBSD linker */
14069 #ifdef FREEBSD_WORKAROUND
14070 static const void *lt_preloaded_setup() {
14071 return lt__PROGRAM__LTX_preloaded_symbols;
14073 #endif
14075 #ifdef __cplusplus
14077 #endif
14078 _LT_EOF
14079 # Now try linking the two files.
14080 mv conftest.$ac_objext conftstm.$ac_objext
14081 lt_save_LIBS="$LIBS"
14082 lt_save_CFLAGS="$CFLAGS"
14083 LIBS="conftstm.$ac_objext"
14084 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14086 (eval $ac_link) 2>&5
14087 ac_status=$?
14088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14089 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14090 pipe_works=yes
14092 LIBS="$lt_save_LIBS"
14093 CFLAGS="$lt_save_CFLAGS"
14094 else
14095 echo "cannot find nm_test_func in $nlist" >&5
14097 else
14098 echo "cannot find nm_test_var in $nlist" >&5
14100 else
14101 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14103 else
14104 echo "$progname: failed program was:" >&5
14105 cat conftest.$ac_ext >&5
14107 rm -rf conftest* conftst*
14109 # Do not use the global_symbol_pipe unless it works.
14110 if test "$pipe_works" = yes; then
14111 break
14112 else
14113 lt_cv_sys_global_symbol_pipe=
14115 done
14119 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14120 lt_cv_sys_global_symbol_to_cdecl=
14122 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14124 $as_echo "failed" >&6; }
14125 else
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14127 $as_echo "ok" >&6; }
14151 # Check whether --enable-libtool-lock was given.
14152 if test "${enable_libtool_lock+set}" = set; then :
14153 enableval=$enable_libtool_lock;
14156 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14158 # Some flags need to be propagated to the compiler or linker for good
14159 # libtool support.
14160 case $host in
14161 ia64-*-hpux*)
14162 # Find out which ABI we are using.
14163 echo 'int i;' > conftest.$ac_ext
14164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
14167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168 test $ac_status = 0; }; then
14169 case `/usr/bin/file conftest.$ac_objext` in
14170 *ELF-32*)
14171 HPUX_IA64_MODE="32"
14173 *ELF-64*)
14174 HPUX_IA64_MODE="64"
14176 esac
14178 rm -rf conftest*
14180 *-*-irix6*)
14181 # Find out which ABI we are using.
14182 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14184 (eval $ac_compile) 2>&5
14185 ac_status=$?
14186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187 test $ac_status = 0; }; then
14188 if test "$lt_cv_prog_gnu_ld" = yes; then
14189 case `/usr/bin/file conftest.$ac_objext` in
14190 *32-bit*)
14191 LD="${LD-ld} -melf32bsmip"
14193 *N32*)
14194 LD="${LD-ld} -melf32bmipn32"
14196 *64-bit*)
14197 LD="${LD-ld} -melf64bmip"
14199 esac
14200 else
14201 case `/usr/bin/file conftest.$ac_objext` in
14202 *32-bit*)
14203 LD="${LD-ld} -32"
14205 *N32*)
14206 LD="${LD-ld} -n32"
14208 *64-bit*)
14209 LD="${LD-ld} -64"
14211 esac
14214 rm -rf conftest*
14217 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14218 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14219 # Find out which ABI we are using.
14220 echo 'int i;' > conftest.$ac_ext
14221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14222 (eval $ac_compile) 2>&5
14223 ac_status=$?
14224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14225 test $ac_status = 0; }; then
14226 case `/usr/bin/file conftest.o` in
14227 *32-bit*)
14228 case $host in
14229 x86_64-*kfreebsd*-gnu)
14230 LD="${LD-ld} -m elf_i386_fbsd"
14232 x86_64-*linux*)
14233 case `/usr/bin/file conftest.o` in
14234 *x86-64*)
14235 LD="${LD-ld} -m elf32_x86_64"
14238 LD="${LD-ld} -m elf_i386"
14240 esac
14242 powerpc64le-*linux*)
14243 LD="${LD-ld} -m elf32lppclinux"
14245 powerpc64-*linux*)
14246 LD="${LD-ld} -m elf32ppclinux"
14248 s390x-*linux*)
14249 LD="${LD-ld} -m elf_s390"
14251 sparc64-*linux*)
14252 LD="${LD-ld} -m elf32_sparc"
14254 esac
14256 *64-bit*)
14257 case $host in
14258 x86_64-*kfreebsd*-gnu)
14259 LD="${LD-ld} -m elf_x86_64_fbsd"
14261 x86_64-*linux*)
14262 LD="${LD-ld} -m elf_x86_64"
14264 powerpcle-*linux*)
14265 LD="${LD-ld} -m elf64lppc"
14267 powerpc-*linux*)
14268 LD="${LD-ld} -m elf64ppc"
14270 s390*-*linux*|s390*-*tpf*)
14271 LD="${LD-ld} -m elf64_s390"
14273 sparc*-*linux*)
14274 LD="${LD-ld} -m elf64_sparc"
14276 esac
14278 esac
14280 rm -rf conftest*
14283 *-*-sco3.2v5*)
14284 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14285 SAVE_CFLAGS="$CFLAGS"
14286 CFLAGS="$CFLAGS -belf"
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14288 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14289 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 ac_ext=c
14293 ac_cpp='$CPP $CPPFLAGS'
14294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14302 main ()
14306 return 0;
14308 _ACEOF
14309 if ac_fn_c_try_link "$LINENO"; then :
14310 lt_cv_cc_needs_belf=yes
14311 else
14312 lt_cv_cc_needs_belf=no
14314 rm -f core conftest.err conftest.$ac_objext \
14315 conftest$ac_exeext conftest.$ac_ext
14316 ac_ext=c
14317 ac_cpp='$CPP $CPPFLAGS'
14318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14324 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14327 CFLAGS="$SAVE_CFLAGS"
14330 sparc*-*solaris*)
14331 # Find out which ABI we are using.
14332 echo 'int i;' > conftest.$ac_ext
14333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14334 (eval $ac_compile) 2>&5
14335 ac_status=$?
14336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14337 test $ac_status = 0; }; then
14338 case `/usr/bin/file conftest.o` in
14339 *64-bit*)
14340 case $lt_cv_prog_gnu_ld in
14341 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14343 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14344 LD="${LD-ld} -64"
14347 esac
14349 esac
14351 rm -rf conftest*
14353 esac
14355 need_locks="$enable_libtool_lock"
14358 case $host_os in
14359 rhapsody* | darwin*)
14360 if test -n "$ac_tool_prefix"; then
14361 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14362 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14364 $as_echo_n "checking for $ac_word... " >&6; }
14365 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 if test -n "$DSYMUTIL"; then
14369 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14370 else
14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $PATH
14374 IFS=$as_save_IFS
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14378 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 break 2
14382 done
14383 done
14384 IFS=$as_save_IFS
14388 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14389 if test -n "$DSYMUTIL"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14391 $as_echo "$DSYMUTIL" >&6; }
14392 else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14399 if test -z "$ac_cv_prog_DSYMUTIL"; then
14400 ac_ct_DSYMUTIL=$DSYMUTIL
14401 # Extract the first word of "dsymutil", so it can be a program name with args.
14402 set dummy dsymutil; ac_word=$2
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14404 $as_echo_n "checking for $ac_word... " >&6; }
14405 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 if test -n "$ac_ct_DSYMUTIL"; then
14409 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14410 else
14411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14412 for as_dir in $PATH
14414 IFS=$as_save_IFS
14415 test -z "$as_dir" && as_dir=.
14416 for ac_exec_ext in '' $ac_executable_extensions; do
14417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14418 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14420 break 2
14422 done
14423 done
14424 IFS=$as_save_IFS
14428 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14429 if test -n "$ac_ct_DSYMUTIL"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14431 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14432 else
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14437 if test "x$ac_ct_DSYMUTIL" = x; then
14438 DSYMUTIL=":"
14439 else
14440 case $cross_compiling:$ac_tool_warned in
14441 yes:)
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14444 ac_tool_warned=yes ;;
14445 esac
14446 DSYMUTIL=$ac_ct_DSYMUTIL
14448 else
14449 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14452 if test -n "$ac_tool_prefix"; then
14453 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14454 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14456 $as_echo_n "checking for $ac_word... " >&6; }
14457 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 if test -n "$NMEDIT"; then
14461 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14462 else
14463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14464 for as_dir in $PATH
14466 IFS=$as_save_IFS
14467 test -z "$as_dir" && as_dir=.
14468 for ac_exec_ext in '' $ac_executable_extensions; do
14469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14470 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14472 break 2
14474 done
14475 done
14476 IFS=$as_save_IFS
14480 NMEDIT=$ac_cv_prog_NMEDIT
14481 if test -n "$NMEDIT"; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14483 $as_echo "$NMEDIT" >&6; }
14484 else
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14491 if test -z "$ac_cv_prog_NMEDIT"; then
14492 ac_ct_NMEDIT=$NMEDIT
14493 # Extract the first word of "nmedit", so it can be a program name with args.
14494 set dummy nmedit; ac_word=$2
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14496 $as_echo_n "checking for $ac_word... " >&6; }
14497 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 if test -n "$ac_ct_NMEDIT"; then
14501 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14502 else
14503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14504 for as_dir in $PATH
14506 IFS=$as_save_IFS
14507 test -z "$as_dir" && as_dir=.
14508 for ac_exec_ext in '' $ac_executable_extensions; do
14509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14510 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14512 break 2
14514 done
14515 done
14516 IFS=$as_save_IFS
14520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14521 if test -n "$ac_ct_NMEDIT"; then
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14523 $as_echo "$ac_ct_NMEDIT" >&6; }
14524 else
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14526 $as_echo "no" >&6; }
14529 if test "x$ac_ct_NMEDIT" = x; then
14530 NMEDIT=":"
14531 else
14532 case $cross_compiling:$ac_tool_warned in
14533 yes:)
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14536 ac_tool_warned=yes ;;
14537 esac
14538 NMEDIT=$ac_ct_NMEDIT
14540 else
14541 NMEDIT="$ac_cv_prog_NMEDIT"
14544 if test -n "$ac_tool_prefix"; then
14545 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14546 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14548 $as_echo_n "checking for $ac_word... " >&6; }
14549 if test "${ac_cv_prog_LIPO+set}" = set; then :
14550 $as_echo_n "(cached) " >&6
14551 else
14552 if test -n "$LIPO"; then
14553 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14554 else
14555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14556 for as_dir in $PATH
14558 IFS=$as_save_IFS
14559 test -z "$as_dir" && as_dir=.
14560 for ac_exec_ext in '' $ac_executable_extensions; do
14561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14562 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14564 break 2
14566 done
14567 done
14568 IFS=$as_save_IFS
14572 LIPO=$ac_cv_prog_LIPO
14573 if test -n "$LIPO"; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14575 $as_echo "$LIPO" >&6; }
14576 else
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578 $as_echo "no" >&6; }
14583 if test -z "$ac_cv_prog_LIPO"; then
14584 ac_ct_LIPO=$LIPO
14585 # Extract the first word of "lipo", so it can be a program name with args.
14586 set dummy lipo; ac_word=$2
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14588 $as_echo_n "checking for $ac_word... " >&6; }
14589 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 if test -n "$ac_ct_LIPO"; then
14593 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14594 else
14595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14596 for as_dir in $PATH
14598 IFS=$as_save_IFS
14599 test -z "$as_dir" && as_dir=.
14600 for ac_exec_ext in '' $ac_executable_extensions; do
14601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14602 ac_cv_prog_ac_ct_LIPO="lipo"
14603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14604 break 2
14606 done
14607 done
14608 IFS=$as_save_IFS
14612 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14613 if test -n "$ac_ct_LIPO"; then
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14615 $as_echo "$ac_ct_LIPO" >&6; }
14616 else
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14618 $as_echo "no" >&6; }
14621 if test "x$ac_ct_LIPO" = x; then
14622 LIPO=":"
14623 else
14624 case $cross_compiling:$ac_tool_warned in
14625 yes:)
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14628 ac_tool_warned=yes ;;
14629 esac
14630 LIPO=$ac_ct_LIPO
14632 else
14633 LIPO="$ac_cv_prog_LIPO"
14636 if test -n "$ac_tool_prefix"; then
14637 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14638 set dummy ${ac_tool_prefix}otool; ac_word=$2
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14640 $as_echo_n "checking for $ac_word... " >&6; }
14641 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14642 $as_echo_n "(cached) " >&6
14643 else
14644 if test -n "$OTOOL"; then
14645 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14646 else
14647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14648 for as_dir in $PATH
14650 IFS=$as_save_IFS
14651 test -z "$as_dir" && as_dir=.
14652 for ac_exec_ext in '' $ac_executable_extensions; do
14653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14654 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14656 break 2
14658 done
14659 done
14660 IFS=$as_save_IFS
14664 OTOOL=$ac_cv_prog_OTOOL
14665 if test -n "$OTOOL"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14667 $as_echo "$OTOOL" >&6; }
14668 else
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14675 if test -z "$ac_cv_prog_OTOOL"; then
14676 ac_ct_OTOOL=$OTOOL
14677 # Extract the first word of "otool", so it can be a program name with args.
14678 set dummy otool; ac_word=$2
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14680 $as_echo_n "checking for $ac_word... " >&6; }
14681 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14683 else
14684 if test -n "$ac_ct_OTOOL"; then
14685 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14686 else
14687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688 for as_dir in $PATH
14690 IFS=$as_save_IFS
14691 test -z "$as_dir" && as_dir=.
14692 for ac_exec_ext in '' $ac_executable_extensions; do
14693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14694 ac_cv_prog_ac_ct_OTOOL="otool"
14695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14696 break 2
14698 done
14699 done
14700 IFS=$as_save_IFS
14704 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14705 if test -n "$ac_ct_OTOOL"; then
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14707 $as_echo "$ac_ct_OTOOL" >&6; }
14708 else
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14710 $as_echo "no" >&6; }
14713 if test "x$ac_ct_OTOOL" = x; then
14714 OTOOL=":"
14715 else
14716 case $cross_compiling:$ac_tool_warned in
14717 yes:)
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14720 ac_tool_warned=yes ;;
14721 esac
14722 OTOOL=$ac_ct_OTOOL
14724 else
14725 OTOOL="$ac_cv_prog_OTOOL"
14728 if test -n "$ac_tool_prefix"; then
14729 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14730 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14732 $as_echo_n "checking for $ac_word... " >&6; }
14733 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 if test -n "$OTOOL64"; then
14737 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14738 else
14739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740 for as_dir in $PATH
14742 IFS=$as_save_IFS
14743 test -z "$as_dir" && as_dir=.
14744 for ac_exec_ext in '' $ac_executable_extensions; do
14745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14746 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14748 break 2
14750 done
14751 done
14752 IFS=$as_save_IFS
14756 OTOOL64=$ac_cv_prog_OTOOL64
14757 if test -n "$OTOOL64"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14759 $as_echo "$OTOOL64" >&6; }
14760 else
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762 $as_echo "no" >&6; }
14767 if test -z "$ac_cv_prog_OTOOL64"; then
14768 ac_ct_OTOOL64=$OTOOL64
14769 # Extract the first word of "otool64", so it can be a program name with args.
14770 set dummy otool64; ac_word=$2
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14772 $as_echo_n "checking for $ac_word... " >&6; }
14773 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14774 $as_echo_n "(cached) " >&6
14775 else
14776 if test -n "$ac_ct_OTOOL64"; then
14777 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14778 else
14779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14780 for as_dir in $PATH
14782 IFS=$as_save_IFS
14783 test -z "$as_dir" && as_dir=.
14784 for ac_exec_ext in '' $ac_executable_extensions; do
14785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14786 ac_cv_prog_ac_ct_OTOOL64="otool64"
14787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14788 break 2
14790 done
14791 done
14792 IFS=$as_save_IFS
14796 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14797 if test -n "$ac_ct_OTOOL64"; then
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14799 $as_echo "$ac_ct_OTOOL64" >&6; }
14800 else
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802 $as_echo "no" >&6; }
14805 if test "x$ac_ct_OTOOL64" = x; then
14806 OTOOL64=":"
14807 else
14808 case $cross_compiling:$ac_tool_warned in
14809 yes:)
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14812 ac_tool_warned=yes ;;
14813 esac
14814 OTOOL64=$ac_ct_OTOOL64
14816 else
14817 OTOOL64="$ac_cv_prog_OTOOL64"
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14847 $as_echo_n "checking for -single_module linker flag... " >&6; }
14848 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 lt_cv_apple_cc_single_mod=no
14852 if test -z "${LT_MULTI_MODULE}"; then
14853 # By default we will add the -single_module flag. You can override
14854 # by either setting the environment variable LT_MULTI_MODULE
14855 # non-empty at configure time, or by adding -multi_module to the
14856 # link flags.
14857 rm -rf libconftest.dylib*
14858 echo "int foo(void){return 1;}" > conftest.c
14859 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14860 -dynamiclib -Wl,-single_module conftest.c" >&5
14861 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14862 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14863 _lt_result=$?
14864 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14865 lt_cv_apple_cc_single_mod=yes
14866 else
14867 cat conftest.err >&5
14869 rm -rf libconftest.dylib*
14870 rm -f conftest.*
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14874 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14876 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14877 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14879 else
14880 lt_cv_ld_exported_symbols_list=no
14881 save_LDFLAGS=$LDFLAGS
14882 echo "_main" > conftest.sym
14883 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14888 main ()
14892 return 0;
14894 _ACEOF
14895 if ac_fn_c_try_link "$LINENO"; then :
14896 lt_cv_ld_exported_symbols_list=yes
14897 else
14898 lt_cv_ld_exported_symbols_list=no
14900 rm -f core conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext conftest.$ac_ext
14902 LDFLAGS="$save_LDFLAGS"
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14906 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14908 $as_echo_n "checking for -force_load linker flag... " >&6; }
14909 if test "${lt_cv_ld_force_load+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 lt_cv_ld_force_load=no
14913 cat > conftest.c << _LT_EOF
14914 int forced_loaded() { return 2;}
14915 _LT_EOF
14916 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14917 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14918 echo "$AR cru libconftest.a conftest.o" >&5
14919 $AR cru libconftest.a conftest.o 2>&5
14920 cat > conftest.c << _LT_EOF
14921 int main() { return 0;}
14922 _LT_EOF
14923 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14924 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14925 _lt_result=$?
14926 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14927 lt_cv_ld_force_load=yes
14928 else
14929 cat conftest.err >&5
14931 rm -f conftest.err libconftest.a conftest conftest.c
14932 rm -rf conftest.dSYM
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14936 $as_echo "$lt_cv_ld_force_load" >&6; }
14937 case $host_os in
14938 rhapsody* | darwin1.[012])
14939 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14940 darwin1.*)
14941 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14942 darwin*) # darwin 5.x on
14943 # if running on 10.5 or later, the deployment target defaults
14944 # to the OS version, if on x86, and 10.4, the deployment
14945 # target defaults to 10.4. Don't you love it?
14946 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14947 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14948 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14949 10.[012][,.]*)
14950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14951 10.*)
14952 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14953 esac
14955 esac
14956 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14957 _lt_dar_single_mod='$single_module'
14959 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14960 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14961 else
14962 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14964 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14965 _lt_dsymutil='~$DSYMUTIL $lib || :'
14966 else
14967 _lt_dsymutil=
14970 esac
14973 for ac_header in dlfcn.h
14974 do :
14975 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14976 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_DLFCN_H 1
14979 _ACEOF
14982 done
14988 # Set options
14992 enable_dlopen=no
14995 enable_win32_dll=no
14998 # Check whether --enable-shared was given.
14999 if test "${enable_shared+set}" = set; then :
15000 enableval=$enable_shared; p=${PACKAGE-default}
15001 case $enableval in
15002 yes) enable_shared=yes ;;
15003 no) enable_shared=no ;;
15005 enable_shared=no
15006 # Look at the argument we got. We use all the common list separators.
15007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15008 for pkg in $enableval; do
15009 IFS="$lt_save_ifs"
15010 if test "X$pkg" = "X$p"; then
15011 enable_shared=yes
15013 done
15014 IFS="$lt_save_ifs"
15016 esac
15017 else
15018 enable_shared=yes
15029 # Check whether --enable-static was given.
15030 if test "${enable_static+set}" = set; then :
15031 enableval=$enable_static; p=${PACKAGE-default}
15032 case $enableval in
15033 yes) enable_static=yes ;;
15034 no) enable_static=no ;;
15036 enable_static=no
15037 # Look at the argument we got. We use all the common list separators.
15038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15039 for pkg in $enableval; do
15040 IFS="$lt_save_ifs"
15041 if test "X$pkg" = "X$p"; then
15042 enable_static=yes
15044 done
15045 IFS="$lt_save_ifs"
15047 esac
15048 else
15049 enable_static=yes
15061 # Check whether --with-pic was given.
15062 if test "${with_pic+set}" = set; then :
15063 withval=$with_pic; pic_mode="$withval"
15064 else
15065 pic_mode=default
15069 test -z "$pic_mode" && pic_mode=default
15077 # Check whether --enable-fast-install was given.
15078 if test "${enable_fast_install+set}" = set; then :
15079 enableval=$enable_fast_install; p=${PACKAGE-default}
15080 case $enableval in
15081 yes) enable_fast_install=yes ;;
15082 no) enable_fast_install=no ;;
15084 enable_fast_install=no
15085 # Look at the argument we got. We use all the common list separators.
15086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15087 for pkg in $enableval; do
15088 IFS="$lt_save_ifs"
15089 if test "X$pkg" = "X$p"; then
15090 enable_fast_install=yes
15092 done
15093 IFS="$lt_save_ifs"
15095 esac
15096 else
15097 enable_fast_install=yes
15110 # This can be used to rebuild libtool when needed
15111 LIBTOOL_DEPS="$ltmain"
15113 # Always use our own libtool.
15114 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15141 test -z "$LN_S" && LN_S="ln -s"
15156 if test -n "${ZSH_VERSION+set}" ; then
15157 setopt NO_GLOB_SUBST
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15161 $as_echo_n "checking for objdir... " >&6; }
15162 if test "${lt_cv_objdir+set}" = set; then :
15163 $as_echo_n "(cached) " >&6
15164 else
15165 rm -f .libs 2>/dev/null
15166 mkdir .libs 2>/dev/null
15167 if test -d .libs; then
15168 lt_cv_objdir=.libs
15169 else
15170 # MS-DOS does not allow filenames that begin with a dot.
15171 lt_cv_objdir=_libs
15173 rmdir .libs 2>/dev/null
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15176 $as_echo "$lt_cv_objdir" >&6; }
15177 objdir=$lt_cv_objdir
15183 cat >>confdefs.h <<_ACEOF
15184 #define LT_OBJDIR "$lt_cv_objdir/"
15185 _ACEOF
15190 case $host_os in
15191 aix3*)
15192 # AIX sometimes has problems with the GCC collect2 program. For some
15193 # reason, if we set the COLLECT_NAMES environment variable, the problems
15194 # vanish in a puff of smoke.
15195 if test "X${COLLECT_NAMES+set}" != Xset; then
15196 COLLECT_NAMES=
15197 export COLLECT_NAMES
15200 esac
15202 # Global variables:
15203 ofile=libtool
15204 can_build_shared=yes
15206 # All known linkers require a `.a' archive for static linking (except MSVC,
15207 # which needs '.lib').
15208 libext=a
15210 with_gnu_ld="$lt_cv_prog_gnu_ld"
15212 old_CC="$CC"
15213 old_CFLAGS="$CFLAGS"
15215 # Set sane defaults for various variables
15216 test -z "$CC" && CC=cc
15217 test -z "$LTCC" && LTCC=$CC
15218 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15219 test -z "$LD" && LD=ld
15220 test -z "$ac_objext" && ac_objext=o
15222 for cc_temp in $compiler""; do
15223 case $cc_temp in
15224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15226 \-*) ;;
15227 *) break;;
15228 esac
15229 done
15230 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15233 # Only perform the check for file, if the check method requires it
15234 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15235 case $deplibs_check_method in
15236 file_magic*)
15237 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15239 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15240 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15241 $as_echo_n "(cached) " >&6
15242 else
15243 case $MAGIC_CMD in
15244 [\\/*] | ?:[\\/]*)
15245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15248 lt_save_MAGIC_CMD="$MAGIC_CMD"
15249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15251 for ac_dir in $ac_dummy; do
15252 IFS="$lt_save_ifs"
15253 test -z "$ac_dir" && ac_dir=.
15254 if test -f $ac_dir/${ac_tool_prefix}file; then
15255 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15256 if test -n "$file_magic_test_file"; then
15257 case $deplibs_check_method in
15258 "file_magic "*)
15259 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15262 $EGREP "$file_magic_regex" > /dev/null; then
15264 else
15265 cat <<_LT_EOF 1>&2
15267 *** Warning: the command libtool uses to detect shared libraries,
15268 *** $file_magic_cmd, produces output that libtool cannot recognize.
15269 *** The result is that libtool may fail to recognize shared libraries
15270 *** as such. This will affect the creation of libtool libraries that
15271 *** depend on shared libraries, but programs linked with such libtool
15272 *** libraries will work regardless of this problem. Nevertheless, you
15273 *** may want to report the problem to your system manager and/or to
15274 *** bug-libtool@gnu.org
15276 _LT_EOF
15277 fi ;;
15278 esac
15280 break
15282 done
15283 IFS="$lt_save_ifs"
15284 MAGIC_CMD="$lt_save_MAGIC_CMD"
15286 esac
15289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15290 if test -n "$MAGIC_CMD"; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15292 $as_echo "$MAGIC_CMD" >&6; }
15293 else
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295 $as_echo "no" >&6; }
15302 if test -z "$lt_cv_path_MAGIC_CMD"; then
15303 if test -n "$ac_tool_prefix"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15305 $as_echo_n "checking for file... " >&6; }
15306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 case $MAGIC_CMD in
15310 [\\/*] | ?:[\\/]*)
15311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15314 lt_save_MAGIC_CMD="$MAGIC_CMD"
15315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15317 for ac_dir in $ac_dummy; do
15318 IFS="$lt_save_ifs"
15319 test -z "$ac_dir" && ac_dir=.
15320 if test -f $ac_dir/file; then
15321 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15322 if test -n "$file_magic_test_file"; then
15323 case $deplibs_check_method in
15324 "file_magic "*)
15325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15328 $EGREP "$file_magic_regex" > /dev/null; then
15330 else
15331 cat <<_LT_EOF 1>&2
15333 *** Warning: the command libtool uses to detect shared libraries,
15334 *** $file_magic_cmd, produces output that libtool cannot recognize.
15335 *** The result is that libtool may fail to recognize shared libraries
15336 *** as such. This will affect the creation of libtool libraries that
15337 *** depend on shared libraries, but programs linked with such libtool
15338 *** libraries will work regardless of this problem. Nevertheless, you
15339 *** may want to report the problem to your system manager and/or to
15340 *** bug-libtool@gnu.org
15342 _LT_EOF
15343 fi ;;
15344 esac
15346 break
15348 done
15349 IFS="$lt_save_ifs"
15350 MAGIC_CMD="$lt_save_MAGIC_CMD"
15352 esac
15355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15356 if test -n "$MAGIC_CMD"; then
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15358 $as_echo "$MAGIC_CMD" >&6; }
15359 else
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 $as_echo "no" >&6; }
15365 else
15366 MAGIC_CMD=:
15372 esac
15374 # Use C for the default configuration in the libtool script
15376 lt_save_CC="$CC"
15377 ac_ext=c
15378 ac_cpp='$CPP $CPPFLAGS'
15379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15384 # Source file extension for C test sources.
15385 ac_ext=c
15387 # Object file extension for compiled C test sources.
15388 objext=o
15389 objext=$objext
15391 # Code to be used in simple compile tests
15392 lt_simple_compile_test_code="int some_variable = 0;"
15394 # Code to be used in simple link tests
15395 lt_simple_link_test_code='int main(){return(0);}'
15403 # If no C compiler was specified, use CC.
15404 LTCC=${LTCC-"$CC"}
15406 # If no C compiler flags were specified, use CFLAGS.
15407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15409 # Allow CC to be a program name with arguments.
15410 compiler=$CC
15412 # Save the default compiler, since it gets overwritten when the other
15413 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15414 compiler_DEFAULT=$CC
15416 # save warnings/boilerplate of simple test code
15417 ac_outfile=conftest.$ac_objext
15418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15420 _lt_compiler_boilerplate=`cat conftest.err`
15421 $RM conftest*
15423 ac_outfile=conftest.$ac_objext
15424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15426 _lt_linker_boilerplate=`cat conftest.err`
15427 $RM -r conftest*
15430 ## CAVEAT EMPTOR:
15431 ## There is no encapsulation within the following macros, do not change
15432 ## the running order or otherwise move them around unless you know exactly
15433 ## what you are doing...
15434 if test -n "$compiler"; then
15436 lt_prog_compiler_no_builtin_flag=
15438 if test "$GCC" = yes; then
15439 case $cc_basename in
15440 nvcc*)
15441 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15443 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15444 esac
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15447 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15448 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15449 $as_echo_n "(cached) " >&6
15450 else
15451 lt_cv_prog_compiler_rtti_exceptions=no
15452 ac_outfile=conftest.$ac_objext
15453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15454 lt_compiler_flag="-fno-rtti -fno-exceptions"
15455 # Insert the option either (1) after the last *FLAGS variable, or
15456 # (2) before a word containing "conftest.", or (3) at the end.
15457 # Note that $ac_compile itself does not contain backslashes and begins
15458 # with a dollar sign (not a hyphen), so the echo should work correctly.
15459 # The option is referenced via a variable to avoid confusing sed.
15460 lt_compile=`echo "$ac_compile" | $SED \
15461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463 -e 's:$: $lt_compiler_flag:'`
15464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15465 (eval "$lt_compile" 2>conftest.err)
15466 ac_status=$?
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 if (exit $ac_status) && test -s "$ac_outfile"; then
15470 # The compiler can only warn and ignore the option if not recognized
15471 # So say no if there are warnings other than the usual output.
15472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15475 lt_cv_prog_compiler_rtti_exceptions=yes
15478 $RM conftest*
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15482 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15484 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15485 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15486 else
15497 lt_prog_compiler_wl=
15498 lt_prog_compiler_pic=
15499 lt_prog_compiler_static=
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15502 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15504 if test "$GCC" = yes; then
15505 lt_prog_compiler_wl='-Wl,'
15506 lt_prog_compiler_static='-static'
15508 case $host_os in
15509 aix*)
15510 # All AIX code is PIC.
15511 if test "$host_cpu" = ia64; then
15512 # AIX 5 now supports IA64 processor
15513 lt_prog_compiler_static='-Bstatic'
15515 lt_prog_compiler_pic='-fPIC'
15518 amigaos*)
15519 case $host_cpu in
15520 powerpc)
15521 # see comment about AmigaOS4 .so support
15522 lt_prog_compiler_pic='-fPIC'
15524 m68k)
15525 # FIXME: we need at least 68020 code to build shared libraries, but
15526 # adding the `-m68020' flag to GCC prevents building anything better,
15527 # like `-m68040'.
15528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15530 esac
15533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15534 # PIC is the default for these OSes.
15537 mingw* | cygwin* | pw32* | os2* | cegcc*)
15538 # This hack is so that the source file can tell whether it is being
15539 # built for inclusion in a dll (and should export symbols for example).
15540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15541 # (--disable-auto-import) libraries
15542 lt_prog_compiler_pic='-DDLL_EXPORT'
15545 darwin* | rhapsody*)
15546 # PIC is the default on this platform
15547 # Common symbols not allowed in MH_DYLIB files
15548 lt_prog_compiler_pic='-fno-common'
15551 haiku*)
15552 # PIC is the default for Haiku.
15553 # The "-static" flag exists, but is broken.
15554 lt_prog_compiler_static=
15557 hpux*)
15558 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15559 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15560 # sets the default TLS model and affects inlining.
15561 case $host_cpu in
15562 hppa*64*)
15563 # +Z the default
15566 lt_prog_compiler_pic='-fPIC'
15568 esac
15571 interix[3-9]*)
15572 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15573 # Instead, we relocate shared libraries at runtime.
15576 msdosdjgpp*)
15577 # Just because we use GCC doesn't mean we suddenly get shared libraries
15578 # on systems that don't support them.
15579 lt_prog_compiler_can_build_shared=no
15580 enable_shared=no
15583 *nto* | *qnx*)
15584 # QNX uses GNU C++, but need to define -shared option too, otherwise
15585 # it will coredump.
15586 lt_prog_compiler_pic='-fPIC -shared'
15589 sysv4*MP*)
15590 if test -d /usr/nec; then
15591 lt_prog_compiler_pic=-Kconform_pic
15596 lt_prog_compiler_pic='-fPIC'
15598 esac
15600 case $cc_basename in
15601 nvcc*) # Cuda Compiler Driver 2.2
15602 lt_prog_compiler_wl='-Xlinker '
15603 lt_prog_compiler_pic='-Xcompiler -fPIC'
15605 esac
15606 else
15607 # PORTME Check for flag to pass linker flags through the system compiler.
15608 case $host_os in
15609 aix*)
15610 lt_prog_compiler_wl='-Wl,'
15611 if test "$host_cpu" = ia64; then
15612 # AIX 5 now supports IA64 processor
15613 lt_prog_compiler_static='-Bstatic'
15614 else
15615 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15619 mingw* | cygwin* | pw32* | os2* | cegcc*)
15620 # This hack is so that the source file can tell whether it is being
15621 # built for inclusion in a dll (and should export symbols for example).
15622 lt_prog_compiler_pic='-DDLL_EXPORT'
15625 hpux9* | hpux10* | hpux11*)
15626 lt_prog_compiler_wl='-Wl,'
15627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15628 # not for PA HP-UX.
15629 case $host_cpu in
15630 hppa*64*|ia64*)
15631 # +Z the default
15634 lt_prog_compiler_pic='+Z'
15636 esac
15637 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15638 lt_prog_compiler_static='${wl}-a ${wl}archive'
15641 irix5* | irix6* | nonstopux*)
15642 lt_prog_compiler_wl='-Wl,'
15643 # PIC (with -KPIC) is the default.
15644 lt_prog_compiler_static='-non_shared'
15647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15648 case $cc_basename in
15649 # old Intel for x86_64 which still supported -KPIC.
15650 ecc*)
15651 lt_prog_compiler_wl='-Wl,'
15652 lt_prog_compiler_pic='-KPIC'
15653 lt_prog_compiler_static='-static'
15655 # icc used to be incompatible with GCC.
15656 # ICC 10 doesn't accept -KPIC any more.
15657 icc* | ifort*)
15658 lt_prog_compiler_wl='-Wl,'
15659 lt_prog_compiler_pic='-fPIC'
15660 lt_prog_compiler_static='-static'
15662 # Lahey Fortran 8.1.
15663 lf95*)
15664 lt_prog_compiler_wl='-Wl,'
15665 lt_prog_compiler_pic='--shared'
15666 lt_prog_compiler_static='--static'
15668 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15669 # Portland Group compilers (*not* the Pentium gcc compiler,
15670 # which looks to be a dead project)
15671 lt_prog_compiler_wl='-Wl,'
15672 lt_prog_compiler_pic='-fpic'
15673 lt_prog_compiler_static='-Bstatic'
15675 ccc*)
15676 lt_prog_compiler_wl='-Wl,'
15677 # All Alpha code is PIC.
15678 lt_prog_compiler_static='-non_shared'
15680 xl* | bgxl* | bgf* | mpixl*)
15681 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15682 lt_prog_compiler_wl='-Wl,'
15683 lt_prog_compiler_pic='-qpic'
15684 lt_prog_compiler_static='-qstaticlink'
15687 case `$CC -V 2>&1 | sed 5q` in
15688 *Sun\ F* | *Sun*Fortran*)
15689 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15690 lt_prog_compiler_pic='-KPIC'
15691 lt_prog_compiler_static='-Bstatic'
15692 lt_prog_compiler_wl=''
15694 *Sun\ C*)
15695 # Sun C 5.9
15696 lt_prog_compiler_pic='-KPIC'
15697 lt_prog_compiler_static='-Bstatic'
15698 lt_prog_compiler_wl='-Wl,'
15700 esac
15702 esac
15705 newsos6)
15706 lt_prog_compiler_pic='-KPIC'
15707 lt_prog_compiler_static='-Bstatic'
15710 *nto* | *qnx*)
15711 # QNX uses GNU C++, but need to define -shared option too, otherwise
15712 # it will coredump.
15713 lt_prog_compiler_pic='-fPIC -shared'
15716 osf3* | osf4* | osf5*)
15717 lt_prog_compiler_wl='-Wl,'
15718 # All OSF/1 code is PIC.
15719 lt_prog_compiler_static='-non_shared'
15722 rdos*)
15723 lt_prog_compiler_static='-non_shared'
15726 solaris*)
15727 lt_prog_compiler_pic='-KPIC'
15728 lt_prog_compiler_static='-Bstatic'
15729 case $cc_basename in
15730 f77* | f90* | f95*)
15731 lt_prog_compiler_wl='-Qoption ld ';;
15733 lt_prog_compiler_wl='-Wl,';;
15734 esac
15737 sunos4*)
15738 lt_prog_compiler_wl='-Qoption ld '
15739 lt_prog_compiler_pic='-PIC'
15740 lt_prog_compiler_static='-Bstatic'
15743 sysv4 | sysv4.2uw2* | sysv4.3*)
15744 lt_prog_compiler_wl='-Wl,'
15745 lt_prog_compiler_pic='-KPIC'
15746 lt_prog_compiler_static='-Bstatic'
15749 sysv4*MP*)
15750 if test -d /usr/nec ;then
15751 lt_prog_compiler_pic='-Kconform_pic'
15752 lt_prog_compiler_static='-Bstatic'
15756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15757 lt_prog_compiler_wl='-Wl,'
15758 lt_prog_compiler_pic='-KPIC'
15759 lt_prog_compiler_static='-Bstatic'
15762 unicos*)
15763 lt_prog_compiler_wl='-Wl,'
15764 lt_prog_compiler_can_build_shared=no
15767 uts4*)
15768 lt_prog_compiler_pic='-pic'
15769 lt_prog_compiler_static='-Bstatic'
15773 lt_prog_compiler_can_build_shared=no
15775 esac
15778 case $host_os in
15779 # For platforms which do not support PIC, -DPIC is meaningless:
15780 *djgpp*)
15781 lt_prog_compiler_pic=
15784 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15786 esac
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15788 $as_echo "$lt_prog_compiler_pic" >&6; }
15796 # Check to make sure the PIC flag actually works.
15798 if test -n "$lt_prog_compiler_pic"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15800 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15801 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15802 $as_echo_n "(cached) " >&6
15803 else
15804 lt_cv_prog_compiler_pic_works=no
15805 ac_outfile=conftest.$ac_objext
15806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15807 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15808 # Insert the option either (1) after the last *FLAGS variable, or
15809 # (2) before a word containing "conftest.", or (3) at the end.
15810 # Note that $ac_compile itself does not contain backslashes and begins
15811 # with a dollar sign (not a hyphen), so the echo should work correctly.
15812 # The option is referenced via a variable to avoid confusing sed.
15813 lt_compile=`echo "$ac_compile" | $SED \
15814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15816 -e 's:$: $lt_compiler_flag:'`
15817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15818 (eval "$lt_compile" 2>conftest.err)
15819 ac_status=$?
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 if (exit $ac_status) && test -s "$ac_outfile"; then
15823 # The compiler can only warn and ignore the option if not recognized
15824 # So say no if there are warnings other than the usual output.
15825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15828 lt_cv_prog_compiler_pic_works=yes
15831 $RM conftest*
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15835 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15837 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15838 case $lt_prog_compiler_pic in
15839 "" | " "*) ;;
15840 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15841 esac
15842 else
15843 lt_prog_compiler_pic=
15844 lt_prog_compiler_can_build_shared=no
15855 # Check to make sure the static flag actually works.
15857 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15859 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15860 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15861 $as_echo_n "(cached) " >&6
15862 else
15863 lt_cv_prog_compiler_static_works=no
15864 save_LDFLAGS="$LDFLAGS"
15865 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15866 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15868 # The linker can only warn and ignore the option if not recognized
15869 # So say no if there are warnings
15870 if test -s conftest.err; then
15871 # Append any errors to the config.log.
15872 cat conftest.err 1>&5
15873 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15875 if diff conftest.exp conftest.er2 >/dev/null; then
15876 lt_cv_prog_compiler_static_works=yes
15878 else
15879 lt_cv_prog_compiler_static_works=yes
15882 $RM -r conftest*
15883 LDFLAGS="$save_LDFLAGS"
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15887 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15889 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15891 else
15892 lt_prog_compiler_static=
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15902 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15903 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15904 $as_echo_n "(cached) " >&6
15905 else
15906 lt_cv_prog_compiler_c_o=no
15907 $RM -r conftest 2>/dev/null
15908 mkdir conftest
15909 cd conftest
15910 mkdir out
15911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15913 lt_compiler_flag="-o out/conftest2.$ac_objext"
15914 # Insert the option either (1) after the last *FLAGS variable, or
15915 # (2) before a word containing "conftest.", or (3) at the end.
15916 # Note that $ac_compile itself does not contain backslashes and begins
15917 # with a dollar sign (not a hyphen), so the echo should work correctly.
15918 lt_compile=`echo "$ac_compile" | $SED \
15919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15921 -e 's:$: $lt_compiler_flag:'`
15922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15923 (eval "$lt_compile" 2>out/conftest.err)
15924 ac_status=$?
15925 cat out/conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15928 then
15929 # The compiler can only warn and ignore the option if not recognized
15930 # So say no if there are warnings
15931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15934 lt_cv_prog_compiler_c_o=yes
15937 chmod u+w . 2>&5
15938 $RM conftest*
15939 # SGI C++ compiler will create directory out/ii_files/ for
15940 # template instantiation
15941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15942 $RM out/* && rmdir out
15943 cd ..
15944 $RM -r conftest
15945 $RM conftest*
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15949 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15958 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961 lt_cv_prog_compiler_c_o=no
15962 $RM -r conftest 2>/dev/null
15963 mkdir conftest
15964 cd conftest
15965 mkdir out
15966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15968 lt_compiler_flag="-o out/conftest2.$ac_objext"
15969 # Insert the option either (1) after the last *FLAGS variable, or
15970 # (2) before a word containing "conftest.", or (3) at the end.
15971 # Note that $ac_compile itself does not contain backslashes and begins
15972 # with a dollar sign (not a hyphen), so the echo should work correctly.
15973 lt_compile=`echo "$ac_compile" | $SED \
15974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15976 -e 's:$: $lt_compiler_flag:'`
15977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15978 (eval "$lt_compile" 2>out/conftest.err)
15979 ac_status=$?
15980 cat out/conftest.err >&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15983 then
15984 # The compiler can only warn and ignore the option if not recognized
15985 # So say no if there are warnings
15986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15989 lt_cv_prog_compiler_c_o=yes
15992 chmod u+w . 2>&5
15993 $RM conftest*
15994 # SGI C++ compiler will create directory out/ii_files/ for
15995 # template instantiation
15996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15997 $RM out/* && rmdir out
15998 cd ..
15999 $RM -r conftest
16000 $RM conftest*
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16004 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16009 hard_links="nottested"
16010 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16011 # do not overwrite the value of need_locks provided by the user
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16013 $as_echo_n "checking if we can lock with hard links... " >&6; }
16014 hard_links=yes
16015 $RM conftest*
16016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16017 touch conftest.a
16018 ln conftest.a conftest.b 2>&5 || hard_links=no
16019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16021 $as_echo "$hard_links" >&6; }
16022 if test "$hard_links" = no; then
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16024 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16025 need_locks=warn
16027 else
16028 need_locks=no
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16037 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16039 runpath_var=
16040 allow_undefined_flag=
16041 always_export_symbols=no
16042 archive_cmds=
16043 archive_expsym_cmds=
16044 compiler_needs_object=no
16045 enable_shared_with_static_runtimes=no
16046 export_dynamic_flag_spec=
16047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16048 hardcode_automatic=no
16049 hardcode_direct=no
16050 hardcode_direct_absolute=no
16051 hardcode_libdir_flag_spec=
16052 hardcode_libdir_flag_spec_ld=
16053 hardcode_libdir_separator=
16054 hardcode_minus_L=no
16055 hardcode_shlibpath_var=unsupported
16056 inherit_rpath=no
16057 link_all_deplibs=unknown
16058 module_cmds=
16059 module_expsym_cmds=
16060 old_archive_from_new_cmds=
16061 old_archive_from_expsyms_cmds=
16062 thread_safe_flag_spec=
16063 whole_archive_flag_spec=
16064 # include_expsyms should be a list of space-separated symbols to be *always*
16065 # included in the symbol list
16066 include_expsyms=
16067 # exclude_expsyms can be an extended regexp of symbols to exclude
16068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16070 # as well as any symbol that contains `d'.
16071 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16073 # platforms (ab)use it in PIC code, but their linkers get confused if
16074 # the symbol is explicitly referenced. Since portable code cannot
16075 # rely on this symbol name, it's probably fine to never include it in
16076 # preloaded symbol tables.
16077 # Exclude shared library initialization/finalization symbols.
16078 extract_expsyms_cmds=
16080 case $host_os in
16081 cygwin* | mingw* | pw32* | cegcc*)
16082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16083 # When not using gcc, we currently assume that we are using
16084 # Microsoft Visual C++.
16085 if test "$GCC" != yes; then
16086 with_gnu_ld=no
16089 interix*)
16090 # we just hope/assume this is gcc and not c89 (= MSVC++)
16091 with_gnu_ld=yes
16093 openbsd*)
16094 with_gnu_ld=no
16096 esac
16098 ld_shlibs=yes
16100 # On some targets, GNU ld is compatible enough with the native linker
16101 # that we're better off using the native interface for both.
16102 lt_use_gnu_ld_interface=no
16103 if test "$with_gnu_ld" = yes; then
16104 case $host_os in
16105 aix*)
16106 # The AIX port of GNU ld has always aspired to compatibility
16107 # with the native linker. However, as the warning in the GNU ld
16108 # block says, versions before 2.19.5* couldn't really create working
16109 # shared libraries, regardless of the interface used.
16110 case `$LD -v 2>&1` in
16111 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16112 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16113 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16115 lt_use_gnu_ld_interface=yes
16117 esac
16120 lt_use_gnu_ld_interface=yes
16122 esac
16125 if test "$lt_use_gnu_ld_interface" = yes; then
16126 # If archive_cmds runs LD, not CC, wlarc should be empty
16127 wlarc='${wl}'
16129 # Set some defaults for GNU ld with shared library support. These
16130 # are reset later if shared libraries are not supported. Putting them
16131 # here allows them to be overridden if necessary.
16132 runpath_var=LD_RUN_PATH
16133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16134 export_dynamic_flag_spec='${wl}--export-dynamic'
16135 # ancient GNU ld didn't support --whole-archive et. al.
16136 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16137 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16138 else
16139 whole_archive_flag_spec=
16141 supports_anon_versioning=no
16142 case `$LD -v 2>&1` in
16143 *GNU\ gold*) supports_anon_versioning=yes ;;
16144 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16145 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16146 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16147 *\ 2.11.*) ;; # other 2.11 versions
16148 *) supports_anon_versioning=yes ;;
16149 esac
16151 # See if GNU ld supports shared libraries.
16152 case $host_os in
16153 aix[3-9]*)
16154 # On AIX/PPC, the GNU linker is very broken
16155 if test "$host_cpu" != ia64; then
16156 ld_shlibs=no
16157 cat <<_LT_EOF 1>&2
16159 *** Warning: the GNU linker, at least up to release 2.19, is reported
16160 *** to be unable to reliably create shared libraries on AIX.
16161 *** Therefore, libtool is disabling shared libraries support. If you
16162 *** really care for shared libraries, you may want to install binutils
16163 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16164 *** You will then need to restart the configuration process.
16166 _LT_EOF
16170 amigaos*)
16171 case $host_cpu in
16172 powerpc)
16173 # see comment about AmigaOS4 .so support
16174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16175 archive_expsym_cmds=''
16177 m68k)
16178 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16179 hardcode_libdir_flag_spec='-L$libdir'
16180 hardcode_minus_L=yes
16182 esac
16185 beos*)
16186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16187 allow_undefined_flag=unsupported
16188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16189 # support --undefined. This deserves some investigation. FIXME
16190 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16191 else
16192 ld_shlibs=no
16196 cygwin* | mingw* | pw32* | cegcc*)
16197 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16198 # as there is no search path for DLLs.
16199 hardcode_libdir_flag_spec='-L$libdir'
16200 export_dynamic_flag_spec='${wl}--export-all-symbols'
16201 allow_undefined_flag=unsupported
16202 always_export_symbols=no
16203 enable_shared_with_static_runtimes=yes
16204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16206 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16208 # If the export-symbols file already is a .def file (1st line
16209 # is EXPORTS), use it as is; otherwise, prepend...
16210 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16211 cp $export_symbols $output_objdir/$soname.def;
16212 else
16213 echo EXPORTS > $output_objdir/$soname.def;
16214 cat $export_symbols >> $output_objdir/$soname.def;
16216 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16217 else
16218 ld_shlibs=no
16222 haiku*)
16223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16224 link_all_deplibs=yes
16227 interix[3-9]*)
16228 hardcode_direct=no
16229 hardcode_shlibpath_var=no
16230 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16231 export_dynamic_flag_spec='${wl}-E'
16232 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16233 # Instead, shared libraries are loaded at an image base (0x10000000 by
16234 # default) and relocated if they conflict, which is a slow very memory
16235 # consuming and fragmenting process. To avoid this, we pick a random,
16236 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16237 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16239 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16242 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16243 tmp_diet=no
16244 if test "$host_os" = linux-dietlibc; then
16245 case $cc_basename in
16246 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16247 esac
16249 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16250 && test "$tmp_diet" = no
16251 then
16252 tmp_addflag=' $pic_flag'
16253 tmp_sharedflag='-shared'
16254 case $cc_basename,$host_cpu in
16255 pgcc*) # Portland Group C compiler
16256 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16257 tmp_addflag=' $pic_flag'
16259 pgf77* | pgf90* | pgf95* | pgfortran*)
16260 # Portland Group f77 and f90 compilers
16261 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16262 tmp_addflag=' $pic_flag -Mnomain' ;;
16263 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16264 tmp_addflag=' -i_dynamic' ;;
16265 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16266 tmp_addflag=' -i_dynamic -nofor_main' ;;
16267 ifc* | ifort*) # Intel Fortran compiler
16268 tmp_addflag=' -nofor_main' ;;
16269 lf95*) # Lahey Fortran 8.1
16270 whole_archive_flag_spec=
16271 tmp_sharedflag='--shared' ;;
16272 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16273 tmp_sharedflag='-qmkshrobj'
16274 tmp_addflag= ;;
16275 nvcc*) # Cuda Compiler Driver 2.2
16276 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16277 compiler_needs_object=yes
16279 esac
16280 case `$CC -V 2>&1 | sed 5q` in
16281 *Sun\ C*) # Sun C 5.9
16282 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16283 compiler_needs_object=yes
16284 tmp_sharedflag='-G' ;;
16285 *Sun\ F*) # Sun Fortran 8.3
16286 tmp_sharedflag='-G' ;;
16287 esac
16288 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16290 if test "x$supports_anon_versioning" = xyes; then
16291 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16292 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16293 echo "local: *; };" >> $output_objdir/$libname.ver~
16294 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16297 case $cc_basename in
16298 xlf* | bgf* | bgxlf* | mpixlf*)
16299 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16300 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16301 hardcode_libdir_flag_spec=
16302 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16303 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16304 if test "x$supports_anon_versioning" = xyes; then
16305 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16307 echo "local: *; };" >> $output_objdir/$libname.ver~
16308 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16311 esac
16312 else
16313 ld_shlibs=no
16317 netbsd*)
16318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16319 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16320 wlarc=
16321 else
16322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16327 solaris*)
16328 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16329 ld_shlibs=no
16330 cat <<_LT_EOF 1>&2
16332 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16333 *** create shared libraries on Solaris systems. Therefore, libtool
16334 *** is disabling shared libraries support. We urge you to upgrade GNU
16335 *** binutils to release 2.9.1 or newer. Another option is to modify
16336 *** your PATH or compiler configuration so that the native linker is
16337 *** used, and then restart.
16339 _LT_EOF
16340 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16343 else
16344 ld_shlibs=no
16348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16349 case `$LD -v 2>&1` in
16350 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16351 ld_shlibs=no
16352 cat <<_LT_EOF 1>&2
16354 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16355 *** reliably create shared libraries on SCO systems. Therefore, libtool
16356 *** is disabling shared libraries support. We urge you to upgrade GNU
16357 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16358 *** your PATH or compiler configuration so that the native linker is
16359 *** used, and then restart.
16361 _LT_EOF
16364 # For security reasons, it is highly recommended that you always
16365 # use absolute paths for naming shared libraries, and exclude the
16366 # DT_RUNPATH tag from executables and libraries. But doing so
16367 # requires that you compile everything twice, which is a pain.
16368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16372 else
16373 ld_shlibs=no
16376 esac
16379 sunos4*)
16380 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16381 wlarc=
16382 hardcode_direct=yes
16383 hardcode_shlibpath_var=no
16387 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16390 else
16391 ld_shlibs=no
16394 esac
16396 if test "$ld_shlibs" = no; then
16397 runpath_var=
16398 hardcode_libdir_flag_spec=
16399 export_dynamic_flag_spec=
16400 whole_archive_flag_spec=
16402 else
16403 # PORTME fill in a description of your system's linker (not GNU ld)
16404 case $host_os in
16405 aix3*)
16406 allow_undefined_flag=unsupported
16407 always_export_symbols=yes
16408 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16409 # Note: this linker hardcodes the directories in LIBPATH if there
16410 # are no directories specified by -L.
16411 hardcode_minus_L=yes
16412 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16413 # Neither direct hardcoding nor static linking is supported with a
16414 # broken collect2.
16415 hardcode_direct=unsupported
16419 aix[4-9]*)
16420 if test "$host_cpu" = ia64; then
16421 # On IA64, the linker does run time linking by default, so we don't
16422 # have to do anything special.
16423 aix_use_runtimelinking=no
16424 exp_sym_flag='-Bexport'
16425 no_entry_flag=""
16426 else
16427 # If we're using GNU nm, then we don't want the "-C" option.
16428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16429 # Also, AIX nm treats weak defined symbols like other global
16430 # defined symbols, whereas GNU nm marks them as "W".
16431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16432 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16433 else
16434 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16436 aix_use_runtimelinking=no
16438 # Test if we are trying to use run time linking or normal
16439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16440 # need to do runtime linking.
16441 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16442 for ld_flag in $LDFLAGS; do
16443 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16444 aix_use_runtimelinking=yes
16445 break
16447 done
16449 esac
16451 exp_sym_flag='-bexport'
16452 no_entry_flag='-bnoentry'
16455 # When large executables or shared objects are built, AIX ld can
16456 # have problems creating the table of contents. If linking a library
16457 # or program results in "error TOC overflow" add -mminimal-toc to
16458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16461 archive_cmds=''
16462 hardcode_direct=yes
16463 hardcode_direct_absolute=yes
16464 hardcode_libdir_separator=':'
16465 link_all_deplibs=yes
16466 file_list_spec='${wl}-f,'
16468 if test "$GCC" = yes; then
16469 case $host_os in aix4.[012]|aix4.[012].*)
16470 # We only want to do this on AIX 4.2 and lower, the check
16471 # below for broken collect2 doesn't work under 4.3+
16472 collect2name=`${CC} -print-prog-name=collect2`
16473 if test -f "$collect2name" &&
16474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16475 then
16476 # We have reworked collect2
16478 else
16479 # We have old collect2
16480 hardcode_direct=unsupported
16481 # It fails to find uninstalled libraries when the uninstalled
16482 # path is not listed in the libpath. Setting hardcode_minus_L
16483 # to unsupported forces relinking
16484 hardcode_minus_L=yes
16485 hardcode_libdir_flag_spec='-L$libdir'
16486 hardcode_libdir_separator=
16489 esac
16490 shared_flag='-shared'
16491 if test "$aix_use_runtimelinking" = yes; then
16492 shared_flag="$shared_flag "'${wl}-G'
16494 else
16495 # not using gcc
16496 if test "$host_cpu" = ia64; then
16497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16498 # chokes on -Wl,-G. The following line is correct:
16499 shared_flag='-G'
16500 else
16501 if test "$aix_use_runtimelinking" = yes; then
16502 shared_flag='${wl}-G'
16503 else
16504 shared_flag='${wl}-bM:SRE'
16509 export_dynamic_flag_spec='${wl}-bexpall'
16510 # It seems that -bexpall does not export symbols beginning with
16511 # underscore (_), so it is better to generate a list of symbols to export.
16512 always_export_symbols=yes
16513 if test "$aix_use_runtimelinking" = yes; then
16514 # Warning - without using the other runtime loading flags (-brtl),
16515 # -berok will link without error, but may produce a broken library.
16516 allow_undefined_flag='-berok'
16517 # Determine the default libpath from the value encoded in an
16518 # empty executable.
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16523 main ()
16527 return 0;
16529 _ACEOF
16530 if ac_fn_c_try_link "$LINENO"; then :
16532 lt_aix_libpath_sed='
16533 /Import File Strings/,/^$/ {
16534 /^0/ {
16535 s/^0 *\(.*\)$/\1/
16539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16540 # Check for a 64-bit object if we didn't find anything.
16541 if test -z "$aix_libpath"; then
16542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16550 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16551 else
16552 if test "$host_cpu" = ia64; then
16553 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16554 allow_undefined_flag="-z nodefs"
16555 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16556 else
16557 # Determine the default libpath from the value encoded in an
16558 # empty executable.
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16563 main ()
16567 return 0;
16569 _ACEOF
16570 if ac_fn_c_try_link "$LINENO"; then :
16572 lt_aix_libpath_sed='
16573 /Import File Strings/,/^$/ {
16574 /^0/ {
16575 s/^0 *\(.*\)$/\1/
16579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16580 # Check for a 64-bit object if we didn't find anything.
16581 if test -z "$aix_libpath"; then
16582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16585 rm -f core conftest.err conftest.$ac_objext \
16586 conftest$ac_exeext conftest.$ac_ext
16587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16590 # Warning - without using the other run time loading flags,
16591 # -berok will link without error, but may produce a broken library.
16592 no_undefined_flag=' ${wl}-bernotok'
16593 allow_undefined_flag=' ${wl}-berok'
16594 if test "$with_gnu_ld" = yes; then
16595 # We only use this code for GNU lds that support --whole-archive.
16596 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16597 else
16598 # Exported symbols can be pulled into shared objects from archives
16599 whole_archive_flag_spec='$convenience'
16601 archive_cmds_need_lc=yes
16602 # This is similar to how AIX traditionally builds its shared libraries.
16603 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16608 amigaos*)
16609 case $host_cpu in
16610 powerpc)
16611 # see comment about AmigaOS4 .so support
16612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16613 archive_expsym_cmds=''
16615 m68k)
16616 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16617 hardcode_libdir_flag_spec='-L$libdir'
16618 hardcode_minus_L=yes
16620 esac
16623 bsdi[45]*)
16624 export_dynamic_flag_spec=-rdynamic
16627 cygwin* | mingw* | pw32* | cegcc*)
16628 # When not using gcc, we currently assume that we are using
16629 # Microsoft Visual C++.
16630 # hardcode_libdir_flag_spec is actually meaningless, as there is
16631 # no search path for DLLs.
16632 hardcode_libdir_flag_spec=' '
16633 allow_undefined_flag=unsupported
16634 # Tell ltmain to make .lib files, not .a files.
16635 libext=lib
16636 # Tell ltmain to make .dll files, not .so files.
16637 shrext_cmds=".dll"
16638 # FIXME: Setting linknames here is a bad hack.
16639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16640 # The linker will automatically build a .lib file if we build a DLL.
16641 old_archive_from_new_cmds='true'
16642 # FIXME: Should let the user specify the lib program.
16643 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16644 fix_srcfile_path='`cygpath -w "$srcfile"`'
16645 enable_shared_with_static_runtimes=yes
16648 darwin* | rhapsody*)
16651 archive_cmds_need_lc=no
16652 hardcode_direct=no
16653 hardcode_automatic=yes
16654 hardcode_shlibpath_var=unsupported
16655 if test "$lt_cv_ld_force_load" = "yes"; then
16656 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
16657 else
16658 whole_archive_flag_spec=''
16660 link_all_deplibs=yes
16661 allow_undefined_flag="$_lt_dar_allow_undefined"
16662 case $cc_basename in
16663 ifort*) _lt_dar_can_shared=yes ;;
16664 *) _lt_dar_can_shared=$GCC ;;
16665 esac
16666 if test "$_lt_dar_can_shared" = "yes"; then
16667 output_verbose_link_cmd=func_echo_all
16668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16670 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16671 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16673 else
16674 ld_shlibs=no
16679 dgux*)
16680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16681 hardcode_libdir_flag_spec='-L$libdir'
16682 hardcode_shlibpath_var=no
16685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16686 # support. Future versions do this automatically, but an explicit c++rt0.o
16687 # does not break anything, and helps significantly (at the cost of a little
16688 # extra space).
16689 freebsd2.2*)
16690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16691 hardcode_libdir_flag_spec='-R$libdir'
16692 hardcode_direct=yes
16693 hardcode_shlibpath_var=no
16696 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16697 freebsd2.*)
16698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16699 hardcode_direct=yes
16700 hardcode_minus_L=yes
16701 hardcode_shlibpath_var=no
16704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16705 freebsd* | dragonfly*)
16706 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16707 hardcode_libdir_flag_spec='-R$libdir'
16708 hardcode_direct=yes
16709 hardcode_shlibpath_var=no
16712 hpux9*)
16713 if test "$GCC" = yes; then
16714 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16715 else
16716 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16719 hardcode_libdir_separator=:
16720 hardcode_direct=yes
16722 # hardcode_minus_L: Not really in the search PATH,
16723 # but as the default location of the library.
16724 hardcode_minus_L=yes
16725 export_dynamic_flag_spec='${wl}-E'
16728 hpux10*)
16729 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16730 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16731 else
16732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16734 if test "$with_gnu_ld" = no; then
16735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16736 hardcode_libdir_flag_spec_ld='+b $libdir'
16737 hardcode_libdir_separator=:
16738 hardcode_direct=yes
16739 hardcode_direct_absolute=yes
16740 export_dynamic_flag_spec='${wl}-E'
16741 # hardcode_minus_L: Not really in the search PATH,
16742 # but as the default location of the library.
16743 hardcode_minus_L=yes
16747 hpux11*)
16748 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16749 case $host_cpu in
16750 hppa*64*)
16751 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16753 ia64*)
16754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16759 esac
16760 else
16761 case $host_cpu in
16762 hppa*64*)
16763 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16765 ia64*)
16766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16770 # Older versions of the 11.00 compiler do not understand -b yet
16771 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16773 $as_echo_n "checking if $CC understands -b... " >&6; }
16774 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16775 $as_echo_n "(cached) " >&6
16776 else
16777 lt_cv_prog_compiler__b=no
16778 save_LDFLAGS="$LDFLAGS"
16779 LDFLAGS="$LDFLAGS -b"
16780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16782 # The linker can only warn and ignore the option if not recognized
16783 # So say no if there are warnings
16784 if test -s conftest.err; then
16785 # Append any errors to the config.log.
16786 cat conftest.err 1>&5
16787 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16789 if diff conftest.exp conftest.er2 >/dev/null; then
16790 lt_cv_prog_compiler__b=yes
16792 else
16793 lt_cv_prog_compiler__b=yes
16796 $RM -r conftest*
16797 LDFLAGS="$save_LDFLAGS"
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16801 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16803 if test x"$lt_cv_prog_compiler__b" = xyes; then
16804 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16805 else
16806 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16810 esac
16812 if test "$with_gnu_ld" = no; then
16813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16814 hardcode_libdir_separator=:
16816 case $host_cpu in
16817 hppa*64*|ia64*)
16818 hardcode_direct=no
16819 hardcode_shlibpath_var=no
16822 hardcode_direct=yes
16823 hardcode_direct_absolute=yes
16824 export_dynamic_flag_spec='${wl}-E'
16826 # hardcode_minus_L: Not really in the search PATH,
16827 # but as the default location of the library.
16828 hardcode_minus_L=yes
16830 esac
16834 irix5* | irix6* | nonstopux*)
16835 if test "$GCC" = yes; then
16836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16837 # Try to use the -exported_symbol ld option, if it does not
16838 # work, assume that -exports_file does not work either and
16839 # implicitly export all symbols.
16840 save_LDFLAGS="$LDFLAGS"
16841 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16844 int foo(void) {}
16845 _ACEOF
16846 if ac_fn_c_try_link "$LINENO"; then :
16847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16850 rm -f core conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16852 LDFLAGS="$save_LDFLAGS"
16853 else
16854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16857 archive_cmds_need_lc='no'
16858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16859 hardcode_libdir_separator=:
16860 inherit_rpath=yes
16861 link_all_deplibs=yes
16864 netbsd*)
16865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16867 else
16868 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16870 hardcode_libdir_flag_spec='-R$libdir'
16871 hardcode_direct=yes
16872 hardcode_shlibpath_var=no
16875 newsos6)
16876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16877 hardcode_direct=yes
16878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16879 hardcode_libdir_separator=:
16880 hardcode_shlibpath_var=no
16883 *nto* | *qnx*)
16886 openbsd*)
16887 if test -f /usr/libexec/ld.so; then
16888 hardcode_direct=yes
16889 hardcode_shlibpath_var=no
16890 hardcode_direct_absolute=yes
16891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16895 export_dynamic_flag_spec='${wl}-E'
16896 else
16897 case $host_os in
16898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16900 hardcode_libdir_flag_spec='-R$libdir'
16903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16906 esac
16908 else
16909 ld_shlibs=no
16913 os2*)
16914 hardcode_libdir_flag_spec='-L$libdir'
16915 hardcode_minus_L=yes
16916 allow_undefined_flag=unsupported
16917 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16918 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16921 osf3*)
16922 if test "$GCC" = yes; then
16923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16924 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16925 else
16926 allow_undefined_flag=' -expect_unresolved \*'
16927 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16929 archive_cmds_need_lc='no'
16930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16931 hardcode_libdir_separator=:
16934 osf4* | osf5*) # as osf3* with the addition of -msym flag
16935 if test "$GCC" = yes; then
16936 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16937 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16939 else
16940 allow_undefined_flag=' -expect_unresolved \*'
16941 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16942 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
16943 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16945 # Both c and cxx compiler support -rpath directly
16946 hardcode_libdir_flag_spec='-rpath $libdir'
16948 archive_cmds_need_lc='no'
16949 hardcode_libdir_separator=:
16952 solaris*)
16953 no_undefined_flag=' -z defs'
16954 if test "$GCC" = yes; then
16955 wlarc='${wl}'
16956 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16958 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16959 else
16960 case `$CC -V 2>&1` in
16961 *"Compilers 5.0"*)
16962 wlarc=''
16963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16968 wlarc='${wl}'
16969 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16971 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16973 esac
16975 hardcode_libdir_flag_spec='-R$libdir'
16976 hardcode_shlibpath_var=no
16977 case $host_os in
16978 solaris2.[0-5] | solaris2.[0-5].*) ;;
16980 # The compiler driver will combine and reorder linker options,
16981 # but understands `-z linker_flag'. GCC discards it without `$wl',
16982 # but is careful enough not to reorder.
16983 # Supported since Solaris 2.6 (maybe 2.5.1?)
16984 if test "$GCC" = yes; then
16985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16986 else
16987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16990 esac
16991 link_all_deplibs=yes
16994 sunos4*)
16995 if test "x$host_vendor" = xsequent; then
16996 # Use $CC to link under sequent, because it throws in some extra .o
16997 # files that make .init and .fini sections work.
16998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16999 else
17000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17002 hardcode_libdir_flag_spec='-L$libdir'
17003 hardcode_direct=yes
17004 hardcode_minus_L=yes
17005 hardcode_shlibpath_var=no
17008 sysv4)
17009 case $host_vendor in
17010 sni)
17011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17012 hardcode_direct=yes # is this really true???
17014 siemens)
17015 ## LD is ld it makes a PLAMLIB
17016 ## CC just makes a GrossModule.
17017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17018 reload_cmds='$CC -r -o $output$reload_objs'
17019 hardcode_direct=no
17021 motorola)
17022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17025 esac
17026 runpath_var='LD_RUN_PATH'
17027 hardcode_shlibpath_var=no
17030 sysv4.3*)
17031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_shlibpath_var=no
17033 export_dynamic_flag_spec='-Bexport'
17036 sysv4*MP*)
17037 if test -d /usr/nec; then
17038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17039 hardcode_shlibpath_var=no
17040 runpath_var=LD_RUN_PATH
17041 hardcode_runpath_var=yes
17042 ld_shlibs=yes
17046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17047 no_undefined_flag='${wl}-z,text'
17048 archive_cmds_need_lc=no
17049 hardcode_shlibpath_var=no
17050 runpath_var='LD_RUN_PATH'
17052 if test "$GCC" = yes; then
17053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 else
17056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17061 sysv5* | sco3.2v5* | sco5v6*)
17062 # Note: We can NOT use -z defs as we might desire, because we do not
17063 # link with -lc, and that would cause any symbols used from libc to
17064 # always be unresolved, which means just about no library would
17065 # ever link correctly. If we're not using GNU ld we use -z text
17066 # though, which does catch some bad symbols but isn't as heavy-handed
17067 # as -z defs.
17068 no_undefined_flag='${wl}-z,text'
17069 allow_undefined_flag='${wl}-z,nodefs'
17070 archive_cmds_need_lc=no
17071 hardcode_shlibpath_var=no
17072 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17073 hardcode_libdir_separator=':'
17074 link_all_deplibs=yes
17075 export_dynamic_flag_spec='${wl}-Bexport'
17076 runpath_var='LD_RUN_PATH'
17078 if test "$GCC" = yes; then
17079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 else
17082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17087 uts4*)
17088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17089 hardcode_libdir_flag_spec='-L$libdir'
17090 hardcode_shlibpath_var=no
17094 ld_shlibs=no
17096 esac
17098 if test x$host_vendor = xsni; then
17099 case $host in
17100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17101 export_dynamic_flag_spec='${wl}-Blargedynsym'
17103 esac
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17108 $as_echo "$ld_shlibs" >&6; }
17109 test "$ld_shlibs" = no && can_build_shared=no
17111 with_gnu_ld=$with_gnu_ld
17128 # Do we need to explicitly link libc?
17130 case "x$archive_cmds_need_lc" in
17131 x|xyes)
17132 # Assume -lc should be added
17133 archive_cmds_need_lc=yes
17135 if test "$enable_shared" = yes && test "$GCC" = yes; then
17136 case $archive_cmds in
17137 *'~'*)
17138 # FIXME: we may have to deal with multi-command sequences.
17140 '$CC '*)
17141 # Test whether the compiler implicitly links with -lc since on some
17142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17143 # to ld, don't add -lc before -lgcc.
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17145 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17146 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17147 $as_echo_n "(cached) " >&6
17148 else
17149 $RM conftest*
17150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17153 (eval $ac_compile) 2>&5
17154 ac_status=$?
17155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17156 test $ac_status = 0; } 2>conftest.err; then
17157 soname=conftest
17158 lib=conftest
17159 libobjs=conftest.$ac_objext
17160 deplibs=
17161 wl=$lt_prog_compiler_wl
17162 pic_flag=$lt_prog_compiler_pic
17163 compiler_flags=-v
17164 linker_flags=-v
17165 verstring=
17166 output_objdir=.
17167 libname=conftest
17168 lt_save_allow_undefined_flag=$allow_undefined_flag
17169 allow_undefined_flag=
17170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17171 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17172 ac_status=$?
17173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17174 test $ac_status = 0; }
17175 then
17176 lt_cv_archive_cmds_need_lc=no
17177 else
17178 lt_cv_archive_cmds_need_lc=yes
17180 allow_undefined_flag=$lt_save_allow_undefined_flag
17181 else
17182 cat conftest.err 1>&5
17184 $RM conftest*
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17188 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17189 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17191 esac
17194 esac
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17353 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17355 if test "$GCC" = yes; then
17356 case $host_os in
17357 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17358 *) lt_awk_arg="/^libraries:/" ;;
17359 esac
17360 case $host_os in
17361 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17362 *) lt_sed_strip_eq="s,=/,/,g" ;;
17363 esac
17364 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17365 case $lt_search_path_spec in
17366 *\;*)
17367 # if the path contains ";" then we assume it to be the separator
17368 # otherwise default to the standard path separator (i.e. ":") - it is
17369 # assumed that no part of a normal pathname contains ";" but that should
17370 # okay in the real world where ";" in dirpaths is itself problematic.
17371 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17376 esac
17377 # Ok, now we have the path, separated by spaces, we can step through it
17378 # and add multilib dir if necessary.
17379 lt_tmp_lt_search_path_spec=
17380 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17381 for lt_sys_path in $lt_search_path_spec; do
17382 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17383 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17384 else
17385 test -d "$lt_sys_path" && \
17386 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17388 done
17389 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17390 BEGIN {RS=" "; FS="/|\n";} {
17391 lt_foo="";
17392 lt_count=0;
17393 for (lt_i = NF; lt_i > 0; lt_i--) {
17394 if ($lt_i != "" && $lt_i != ".") {
17395 if ($lt_i == "..") {
17396 lt_count++;
17397 } else {
17398 if (lt_count == 0) {
17399 lt_foo="/" $lt_i lt_foo;
17400 } else {
17401 lt_count--;
17406 if (lt_foo != "") { lt_freq[lt_foo]++; }
17407 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17409 # AWK program above erroneously prepends '/' to C:/dos/paths
17410 # for these hosts.
17411 case $host_os in
17412 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17413 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17414 esac
17415 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17416 else
17417 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17419 library_names_spec=
17420 libname_spec='lib$name'
17421 soname_spec=
17422 shrext_cmds=".so"
17423 postinstall_cmds=
17424 postuninstall_cmds=
17425 finish_cmds=
17426 finish_eval=
17427 shlibpath_var=
17428 shlibpath_overrides_runpath=unknown
17429 version_type=none
17430 dynamic_linker="$host_os ld.so"
17431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17432 need_lib_prefix=unknown
17433 hardcode_into_libs=no
17435 # when you set need_version to no, make sure it does not cause -set_version
17436 # flags to be left without arguments
17437 need_version=unknown
17439 case $host_os in
17440 aix3*)
17441 version_type=linux
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17443 shlibpath_var=LIBPATH
17445 # AIX 3 has no versioning support, so we append a major version to the name.
17446 soname_spec='${libname}${release}${shared_ext}$major'
17449 aix[4-9]*)
17450 version_type=linux
17451 need_lib_prefix=no
17452 need_version=no
17453 hardcode_into_libs=yes
17454 if test "$host_cpu" = ia64; then
17455 # AIX 5 supports IA64
17456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17457 shlibpath_var=LD_LIBRARY_PATH
17458 else
17459 # With GCC up to 2.95.x, collect2 would create an import file
17460 # for dependence libraries. The import file would start with
17461 # the line `#! .'. This would cause the generated library to
17462 # depend on `.', always an invalid library. This was fixed in
17463 # development snapshots of GCC prior to 3.0.
17464 case $host_os in
17465 aix4 | aix4.[01] | aix4.[01].*)
17466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17467 echo ' yes '
17468 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17470 else
17471 can_build_shared=no
17474 esac
17475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17476 # soname into executable. Probably we can add versioning support to
17477 # collect2, so additional links can be useful in future.
17478 if test "$aix_use_runtimelinking" = yes; then
17479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17480 # instead of lib<name>.a to let people know that these are not
17481 # typical AIX shared libraries.
17482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17483 else
17484 # We preserve .a as extension for shared libraries through AIX4.2
17485 # and later when we are not doing run time linking.
17486 library_names_spec='${libname}${release}.a $libname.a'
17487 soname_spec='${libname}${release}${shared_ext}$major'
17489 shlibpath_var=LIBPATH
17493 amigaos*)
17494 case $host_cpu in
17495 powerpc)
17496 # Since July 2007 AmigaOS4 officially supports .so libraries.
17497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 m68k)
17501 library_names_spec='$libname.ixlibrary $libname.a'
17502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17503 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17505 esac
17508 beos*)
17509 library_names_spec='${libname}${shared_ext}'
17510 dynamic_linker="$host_os ld.so"
17511 shlibpath_var=LIBRARY_PATH
17514 bsdi[45]*)
17515 version_type=linux
17516 need_version=no
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17520 shlibpath_var=LD_LIBRARY_PATH
17521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17523 # the default ld.so.conf also contains /usr/contrib/lib and
17524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17525 # libtool to hard-code these into programs
17528 cygwin* | mingw* | pw32* | cegcc*)
17529 version_type=windows
17530 shrext_cmds=".dll"
17531 need_version=no
17532 need_lib_prefix=no
17534 case $GCC,$host_os in
17535 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17536 library_names_spec='$libname.dll.a'
17537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17538 postinstall_cmds='base_file=`basename \${file}`~
17539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17540 dldir=$destdir/`dirname \$dlpath`~
17541 test -d \$dldir || mkdir -p \$dldir~
17542 $install_prog $dir/$dlname \$dldir/$dlname~
17543 chmod a+x \$dldir/$dlname~
17544 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17545 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17548 dlpath=$dir/\$dldll~
17549 $RM \$dlpath'
17550 shlibpath_overrides_runpath=yes
17552 case $host_os in
17553 cygwin*)
17554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17557 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17559 mingw* | cegcc*)
17560 # MinGW DLLs use traditional 'lib' prefix
17561 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17563 pw32*)
17564 # pw32 DLLs use 'pw' prefix rather than 'lib'
17565 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17567 esac
17571 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17573 esac
17574 dynamic_linker='Win32 ld.exe'
17575 # FIXME: first we should search . and the directory the executable is in
17576 shlibpath_var=PATH
17579 darwin* | rhapsody*)
17580 dynamic_linker="$host_os dyld"
17581 version_type=darwin
17582 need_lib_prefix=no
17583 need_version=no
17584 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17585 soname_spec='${libname}${release}${major}$shared_ext'
17586 shlibpath_overrides_runpath=yes
17587 shlibpath_var=DYLD_LIBRARY_PATH
17588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17590 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17594 dgux*)
17595 version_type=linux
17596 need_lib_prefix=no
17597 need_version=no
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17599 soname_spec='${libname}${release}${shared_ext}$major'
17600 shlibpath_var=LD_LIBRARY_PATH
17603 freebsd* | dragonfly*)
17604 # DragonFly does not have aout. When/if they implement a new
17605 # versioning mechanism, adjust this.
17606 if test -x /usr/bin/objformat; then
17607 objformat=`/usr/bin/objformat`
17608 else
17609 case $host_os in
17610 freebsd[23].*) objformat=aout ;;
17611 *) objformat=elf ;;
17612 esac
17614 version_type=freebsd-$objformat
17615 case $version_type in
17616 freebsd-elf*)
17617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17618 need_version=no
17619 need_lib_prefix=no
17621 freebsd-*)
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17623 need_version=yes
17625 esac
17626 shlibpath_var=LD_LIBRARY_PATH
17627 case $host_os in
17628 freebsd2.*)
17629 shlibpath_overrides_runpath=yes
17631 freebsd3.[01]* | freebsdelf3.[01]*)
17632 shlibpath_overrides_runpath=yes
17633 hardcode_into_libs=yes
17635 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17636 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17637 shlibpath_overrides_runpath=no
17638 hardcode_into_libs=yes
17640 *) # from 4.6 on, and DragonFly
17641 shlibpath_overrides_runpath=yes
17642 hardcode_into_libs=yes
17644 esac
17647 gnu*)
17648 version_type=linux
17649 need_lib_prefix=no
17650 need_version=no
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17652 soname_spec='${libname}${release}${shared_ext}$major'
17653 shlibpath_var=LD_LIBRARY_PATH
17654 hardcode_into_libs=yes
17657 haiku*)
17658 version_type=linux
17659 need_lib_prefix=no
17660 need_version=no
17661 dynamic_linker="$host_os runtime_loader"
17662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17663 soname_spec='${libname}${release}${shared_ext}$major'
17664 shlibpath_var=LIBRARY_PATH
17665 shlibpath_overrides_runpath=yes
17666 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17667 hardcode_into_libs=yes
17670 hpux9* | hpux10* | hpux11*)
17671 # Give a soname corresponding to the major version so that dld.sl refuses to
17672 # link against other versions.
17673 version_type=sunos
17674 need_lib_prefix=no
17675 need_version=no
17676 case $host_cpu in
17677 ia64*)
17678 shrext_cmds='.so'
17679 hardcode_into_libs=yes
17680 dynamic_linker="$host_os dld.so"
17681 shlibpath_var=LD_LIBRARY_PATH
17682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684 soname_spec='${libname}${release}${shared_ext}$major'
17685 if test "X$HPUX_IA64_MODE" = X32; then
17686 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17687 else
17688 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17692 hppa*64*)
17693 shrext_cmds='.sl'
17694 hardcode_into_libs=yes
17695 dynamic_linker="$host_os dld.sl"
17696 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17699 soname_spec='${libname}${release}${shared_ext}$major'
17700 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17704 shrext_cmds='.sl'
17705 dynamic_linker="$host_os dld.sl"
17706 shlibpath_var=SHLIB_PATH
17707 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17709 soname_spec='${libname}${release}${shared_ext}$major'
17711 esac
17712 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17713 postinstall_cmds='chmod 555 $lib'
17714 # or fails outright, so override atomically:
17715 install_override_mode=555
17718 interix[3-9]*)
17719 version_type=linux
17720 need_lib_prefix=no
17721 need_version=no
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17723 soname_spec='${libname}${release}${shared_ext}$major'
17724 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17725 shlibpath_var=LD_LIBRARY_PATH
17726 shlibpath_overrides_runpath=no
17727 hardcode_into_libs=yes
17730 irix5* | irix6* | nonstopux*)
17731 case $host_os in
17732 nonstopux*) version_type=nonstopux ;;
17734 if test "$lt_cv_prog_gnu_ld" = yes; then
17735 version_type=linux
17736 else
17737 version_type=irix
17738 fi ;;
17739 esac
17740 need_lib_prefix=no
17741 need_version=no
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17744 case $host_os in
17745 irix5* | nonstopux*)
17746 libsuff= shlibsuff=
17749 case $LD in # libtool.m4 will add one of these switches to LD
17750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17751 libsuff= shlibsuff= libmagic=32-bit;;
17752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17753 libsuff=32 shlibsuff=N32 libmagic=N32;;
17754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17756 *) libsuff= shlibsuff= libmagic=never-match;;
17757 esac
17759 esac
17760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17761 shlibpath_overrides_runpath=no
17762 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17763 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17764 hardcode_into_libs=yes
17767 # No shared lib support for Linux oldld, aout, or coff.
17768 linux*oldld* | linux*aout* | linux*coff*)
17769 dynamic_linker=no
17772 # This must be Linux ELF.
17773 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17774 version_type=linux
17775 need_lib_prefix=no
17776 need_version=no
17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17780 shlibpath_var=LD_LIBRARY_PATH
17781 shlibpath_overrides_runpath=no
17783 # Some binutils ld are patched to set DT_RUNPATH
17784 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17785 $as_echo_n "(cached) " >&6
17786 else
17787 lt_cv_shlibpath_overrides_runpath=no
17788 save_LDFLAGS=$LDFLAGS
17789 save_libdir=$libdir
17790 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17791 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17796 main ()
17800 return 0;
17802 _ACEOF
17803 if ac_fn_c_try_link "$LINENO"; then :
17804 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17805 lt_cv_shlibpath_overrides_runpath=yes
17808 rm -f core conftest.err conftest.$ac_objext \
17809 conftest$ac_exeext conftest.$ac_ext
17810 LDFLAGS=$save_LDFLAGS
17811 libdir=$save_libdir
17815 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17817 # This implies no fast_install, which is unacceptable.
17818 # Some rework will be needed to allow for fast_install
17819 # before this can be enabled.
17820 hardcode_into_libs=yes
17822 # Append ld.so.conf contents to the search path
17823 if test -f /etc/ld.so.conf; then
17824 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17825 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17828 # We used to test for /lib/ld.so.1 and disable shared libraries on
17829 # powerpc, because MkLinux only supported shared libraries with the
17830 # GNU dynamic linker. Since this was broken with cross compilers,
17831 # most powerpc-linux boxes support dynamic linking these days and
17832 # people can always --disable-shared, the test was removed, and we
17833 # assume the GNU/Linux dynamic linker is in use.
17834 dynamic_linker='GNU/Linux ld.so'
17837 netbsd*)
17838 version_type=sunos
17839 need_lib_prefix=no
17840 need_version=no
17841 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17844 dynamic_linker='NetBSD (a.out) ld.so'
17845 else
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 dynamic_linker='NetBSD ld.elf_so'
17850 shlibpath_var=LD_LIBRARY_PATH
17851 shlibpath_overrides_runpath=yes
17852 hardcode_into_libs=yes
17855 newsos6)
17856 version_type=linux
17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 shlibpath_overrides_runpath=yes
17862 *nto* | *qnx*)
17863 version_type=qnx
17864 need_lib_prefix=no
17865 need_version=no
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17867 soname_spec='${libname}${release}${shared_ext}$major'
17868 shlibpath_var=LD_LIBRARY_PATH
17869 shlibpath_overrides_runpath=no
17870 hardcode_into_libs=yes
17871 dynamic_linker='ldqnx.so'
17874 openbsd*)
17875 version_type=sunos
17876 sys_lib_dlsearch_path_spec="/usr/lib"
17877 need_lib_prefix=no
17878 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17879 case $host_os in
17880 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17881 *) need_version=no ;;
17882 esac
17883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17885 shlibpath_var=LD_LIBRARY_PATH
17886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17887 case $host_os in
17888 openbsd2.[89] | openbsd2.[89].*)
17889 shlibpath_overrides_runpath=no
17892 shlibpath_overrides_runpath=yes
17894 esac
17895 else
17896 shlibpath_overrides_runpath=yes
17900 os2*)
17901 libname_spec='$name'
17902 shrext_cmds=".dll"
17903 need_lib_prefix=no
17904 library_names_spec='$libname${shared_ext} $libname.a'
17905 dynamic_linker='OS/2 ld.exe'
17906 shlibpath_var=LIBPATH
17909 osf3* | osf4* | osf5*)
17910 version_type=osf
17911 need_lib_prefix=no
17912 need_version=no
17913 soname_spec='${libname}${release}${shared_ext}$major'
17914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17915 shlibpath_var=LD_LIBRARY_PATH
17916 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17917 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17920 rdos*)
17921 dynamic_linker=no
17924 solaris*)
17925 version_type=linux
17926 need_lib_prefix=no
17927 need_version=no
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 shlibpath_var=LD_LIBRARY_PATH
17931 shlibpath_overrides_runpath=yes
17932 hardcode_into_libs=yes
17933 # ldd complains unless libraries are executable
17934 postinstall_cmds='chmod +x $lib'
17937 sunos4*)
17938 version_type=sunos
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17940 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17941 shlibpath_var=LD_LIBRARY_PATH
17942 shlibpath_overrides_runpath=yes
17943 if test "$with_gnu_ld" = yes; then
17944 need_lib_prefix=no
17946 need_version=yes
17949 sysv4 | sysv4.3*)
17950 version_type=linux
17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17952 soname_spec='${libname}${release}${shared_ext}$major'
17953 shlibpath_var=LD_LIBRARY_PATH
17954 case $host_vendor in
17955 sni)
17956 shlibpath_overrides_runpath=no
17957 need_lib_prefix=no
17958 runpath_var=LD_RUN_PATH
17960 siemens)
17961 need_lib_prefix=no
17963 motorola)
17964 need_lib_prefix=no
17965 need_version=no
17966 shlibpath_overrides_runpath=no
17967 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17969 esac
17972 sysv4*MP*)
17973 if test -d /usr/nec ;then
17974 version_type=linux
17975 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17976 soname_spec='$libname${shared_ext}.$major'
17977 shlibpath_var=LD_LIBRARY_PATH
17981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17982 version_type=freebsd-elf
17983 need_lib_prefix=no
17984 need_version=no
17985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17986 soname_spec='${libname}${release}${shared_ext}$major'
17987 shlibpath_var=LD_LIBRARY_PATH
17988 shlibpath_overrides_runpath=yes
17989 hardcode_into_libs=yes
17990 if test "$with_gnu_ld" = yes; then
17991 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17992 else
17993 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17994 case $host_os in
17995 sco3.2v5*)
17996 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17998 esac
18000 sys_lib_dlsearch_path_spec='/usr/lib'
18003 tpf*)
18004 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18005 version_type=linux
18006 need_lib_prefix=no
18007 need_version=no
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18009 shlibpath_var=LD_LIBRARY_PATH
18010 shlibpath_overrides_runpath=no
18011 hardcode_into_libs=yes
18014 uts4*)
18015 version_type=linux
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017 soname_spec='${libname}${release}${shared_ext}$major'
18018 shlibpath_var=LD_LIBRARY_PATH
18022 dynamic_linker=no
18024 esac
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18026 $as_echo "$dynamic_linker" >&6; }
18027 test "$dynamic_linker" = no && can_build_shared=no
18029 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18030 if test "$GCC" = yes; then
18031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18034 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18035 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18037 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18038 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18133 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18134 hardcode_action=
18135 if test -n "$hardcode_libdir_flag_spec" ||
18136 test -n "$runpath_var" ||
18137 test "X$hardcode_automatic" = "Xyes" ; then
18139 # We can hardcode non-existent directories.
18140 if test "$hardcode_direct" != no &&
18141 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18142 # have to relink, otherwise we might link with an installed library
18143 # when we should be linking with a yet-to-be-installed one
18144 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18145 test "$hardcode_minus_L" != no; then
18146 # Linking always hardcodes the temporary library directory.
18147 hardcode_action=relink
18148 else
18149 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18150 hardcode_action=immediate
18152 else
18153 # We cannot hardcode anything, or else we can only hardcode existing
18154 # directories.
18155 hardcode_action=unsupported
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18158 $as_echo "$hardcode_action" >&6; }
18160 if test "$hardcode_action" = relink ||
18161 test "$inherit_rpath" = yes; then
18162 # Fast installation is not supported
18163 enable_fast_install=no
18164 elif test "$shlibpath_overrides_runpath" = yes ||
18165 test "$enable_shared" = no; then
18166 # Fast installation is not necessary
18167 enable_fast_install=needless
18175 if test "x$enable_dlopen" != xyes; then
18176 enable_dlopen=unknown
18177 enable_dlopen_self=unknown
18178 enable_dlopen_self_static=unknown
18179 else
18180 lt_cv_dlopen=no
18181 lt_cv_dlopen_libs=
18183 case $host_os in
18184 beos*)
18185 lt_cv_dlopen="load_add_on"
18186 lt_cv_dlopen_libs=
18187 lt_cv_dlopen_self=yes
18190 mingw* | pw32* | cegcc*)
18191 lt_cv_dlopen="LoadLibrary"
18192 lt_cv_dlopen_libs=
18195 cygwin*)
18196 lt_cv_dlopen="dlopen"
18197 lt_cv_dlopen_libs=
18200 darwin*)
18201 # if libdl is installed we need to link against it
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18203 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18204 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-ldl $LIBS"
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18212 /* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18215 #ifdef __cplusplus
18216 extern "C"
18217 #endif
18218 char dlopen ();
18220 main ()
18222 return dlopen ();
18224 return 0;
18226 _ACEOF
18227 if ac_fn_c_try_link "$LINENO"; then :
18228 ac_cv_lib_dl_dlopen=yes
18229 else
18230 ac_cv_lib_dl_dlopen=no
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_check_lib_save_LIBS
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18237 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18238 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18240 else
18242 lt_cv_dlopen="dyld"
18243 lt_cv_dlopen_libs=
18244 lt_cv_dlopen_self=yes
18251 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18252 if test "x$ac_cv_func_shl_load" = x""yes; then :
18253 lt_cv_dlopen="shl_load"
18254 else
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18256 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18257 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18258 $as_echo_n "(cached) " >&6
18259 else
18260 ac_check_lib_save_LIBS=$LIBS
18261 LIBS="-ldld $LIBS"
18262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18263 /* end confdefs.h. */
18265 /* Override any GCC internal prototype to avoid an error.
18266 Use char because int might match the return type of a GCC
18267 builtin and then its argument prototype would still apply. */
18268 #ifdef __cplusplus
18269 extern "C"
18270 #endif
18271 char shl_load ();
18273 main ()
18275 return shl_load ();
18277 return 0;
18279 _ACEOF
18280 if ac_fn_c_try_link "$LINENO"; then :
18281 ac_cv_lib_dld_shl_load=yes
18282 else
18283 ac_cv_lib_dld_shl_load=no
18285 rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287 LIBS=$ac_check_lib_save_LIBS
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18290 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18291 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18292 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18293 else
18294 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18295 if test "x$ac_cv_func_dlopen" = x""yes; then :
18296 lt_cv_dlopen="dlopen"
18297 else
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18299 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18301 $as_echo_n "(cached) " >&6
18302 else
18303 ac_check_lib_save_LIBS=$LIBS
18304 LIBS="-ldl $LIBS"
18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char dlopen ();
18316 main ()
18318 return dlopen ();
18320 return 0;
18322 _ACEOF
18323 if ac_fn_c_try_link "$LINENO"; then :
18324 ac_cv_lib_dl_dlopen=yes
18325 else
18326 ac_cv_lib_dl_dlopen=no
18328 rm -f core conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18333 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18334 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18336 else
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18338 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18339 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18340 $as_echo_n "(cached) " >&6
18341 else
18342 ac_check_lib_save_LIBS=$LIBS
18343 LIBS="-lsvld $LIBS"
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18347 /* Override any GCC internal prototype to avoid an error.
18348 Use char because int might match the return type of a GCC
18349 builtin and then its argument prototype would still apply. */
18350 #ifdef __cplusplus
18351 extern "C"
18352 #endif
18353 char dlopen ();
18355 main ()
18357 return dlopen ();
18359 return 0;
18361 _ACEOF
18362 if ac_fn_c_try_link "$LINENO"; then :
18363 ac_cv_lib_svld_dlopen=yes
18364 else
18365 ac_cv_lib_svld_dlopen=no
18367 rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18369 LIBS=$ac_check_lib_save_LIBS
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18372 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18373 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18375 else
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18377 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18378 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18379 $as_echo_n "(cached) " >&6
18380 else
18381 ac_check_lib_save_LIBS=$LIBS
18382 LIBS="-ldld $LIBS"
18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18384 /* end confdefs.h. */
18386 /* Override any GCC internal prototype to avoid an error.
18387 Use char because int might match the return type of a GCC
18388 builtin and then its argument prototype would still apply. */
18389 #ifdef __cplusplus
18390 extern "C"
18391 #endif
18392 char dld_link ();
18394 main ()
18396 return dld_link ();
18398 return 0;
18400 _ACEOF
18401 if ac_fn_c_try_link "$LINENO"; then :
18402 ac_cv_lib_dld_dld_link=yes
18403 else
18404 ac_cv_lib_dld_dld_link=no
18406 rm -f core conftest.err conftest.$ac_objext \
18407 conftest$ac_exeext conftest.$ac_ext
18408 LIBS=$ac_check_lib_save_LIBS
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18411 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18412 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18413 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18432 esac
18434 if test "x$lt_cv_dlopen" != xno; then
18435 enable_dlopen=yes
18436 else
18437 enable_dlopen=no
18440 case $lt_cv_dlopen in
18441 dlopen)
18442 save_CPPFLAGS="$CPPFLAGS"
18443 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18445 save_LDFLAGS="$LDFLAGS"
18446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18448 save_LIBS="$LIBS"
18449 LIBS="$lt_cv_dlopen_libs $LIBS"
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18452 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18453 if test "${lt_cv_dlopen_self+set}" = set; then :
18454 $as_echo_n "(cached) " >&6
18455 else
18456 if test "$cross_compiling" = yes; then :
18457 lt_cv_dlopen_self=cross
18458 else
18459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18460 lt_status=$lt_dlunknown
18461 cat > conftest.$ac_ext <<_LT_EOF
18462 #line 18462 "configure"
18463 #include "confdefs.h"
18465 #if HAVE_DLFCN_H
18466 #include <dlfcn.h>
18467 #endif
18469 #include <stdio.h>
18471 #ifdef RTLD_GLOBAL
18472 # define LT_DLGLOBAL RTLD_GLOBAL
18473 #else
18474 # ifdef DL_GLOBAL
18475 # define LT_DLGLOBAL DL_GLOBAL
18476 # else
18477 # define LT_DLGLOBAL 0
18478 # endif
18479 #endif
18481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18482 find out it does not work in some platform. */
18483 #ifndef LT_DLLAZY_OR_NOW
18484 # ifdef RTLD_LAZY
18485 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18486 # else
18487 # ifdef DL_LAZY
18488 # define LT_DLLAZY_OR_NOW DL_LAZY
18489 # else
18490 # ifdef RTLD_NOW
18491 # define LT_DLLAZY_OR_NOW RTLD_NOW
18492 # else
18493 # ifdef DL_NOW
18494 # define LT_DLLAZY_OR_NOW DL_NOW
18495 # else
18496 # define LT_DLLAZY_OR_NOW 0
18497 # endif
18498 # endif
18499 # endif
18500 # endif
18501 #endif
18503 /* When -fvisbility=hidden is used, assume the code has been annotated
18504 correspondingly for the symbols needed. */
18505 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18506 void fnord () __attribute__((visibility("default")));
18507 #endif
18509 void fnord () { int i=42; }
18510 int main ()
18512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18513 int status = $lt_dlunknown;
18515 if (self)
18517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18518 else
18520 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18521 else puts (dlerror ());
18523 /* dlclose (self); */
18525 else
18526 puts (dlerror ());
18528 return status;
18530 _LT_EOF
18531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18532 (eval $ac_link) 2>&5
18533 ac_status=$?
18534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18535 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18536 (./conftest; exit; ) >&5 2>/dev/null
18537 lt_status=$?
18538 case x$lt_status in
18539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18541 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18542 esac
18543 else :
18544 # compilation failed
18545 lt_cv_dlopen_self=no
18548 rm -fr conftest*
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18553 $as_echo "$lt_cv_dlopen_self" >&6; }
18555 if test "x$lt_cv_dlopen_self" = xyes; then
18556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18558 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18559 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18560 $as_echo_n "(cached) " >&6
18561 else
18562 if test "$cross_compiling" = yes; then :
18563 lt_cv_dlopen_self_static=cross
18564 else
18565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18566 lt_status=$lt_dlunknown
18567 cat > conftest.$ac_ext <<_LT_EOF
18568 #line 18568 "configure"
18569 #include "confdefs.h"
18571 #if HAVE_DLFCN_H
18572 #include <dlfcn.h>
18573 #endif
18575 #include <stdio.h>
18577 #ifdef RTLD_GLOBAL
18578 # define LT_DLGLOBAL RTLD_GLOBAL
18579 #else
18580 # ifdef DL_GLOBAL
18581 # define LT_DLGLOBAL DL_GLOBAL
18582 # else
18583 # define LT_DLGLOBAL 0
18584 # endif
18585 #endif
18587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18588 find out it does not work in some platform. */
18589 #ifndef LT_DLLAZY_OR_NOW
18590 # ifdef RTLD_LAZY
18591 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18592 # else
18593 # ifdef DL_LAZY
18594 # define LT_DLLAZY_OR_NOW DL_LAZY
18595 # else
18596 # ifdef RTLD_NOW
18597 # define LT_DLLAZY_OR_NOW RTLD_NOW
18598 # else
18599 # ifdef DL_NOW
18600 # define LT_DLLAZY_OR_NOW DL_NOW
18601 # else
18602 # define LT_DLLAZY_OR_NOW 0
18603 # endif
18604 # endif
18605 # endif
18606 # endif
18607 #endif
18609 /* When -fvisbility=hidden is used, assume the code has been annotated
18610 correspondingly for the symbols needed. */
18611 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18612 void fnord () __attribute__((visibility("default")));
18613 #endif
18615 void fnord () { int i=42; }
18616 int main ()
18618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18619 int status = $lt_dlunknown;
18621 if (self)
18623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18624 else
18626 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18627 else puts (dlerror ());
18629 /* dlclose (self); */
18631 else
18632 puts (dlerror ());
18634 return status;
18636 _LT_EOF
18637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18638 (eval $ac_link) 2>&5
18639 ac_status=$?
18640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18641 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18642 (./conftest; exit; ) >&5 2>/dev/null
18643 lt_status=$?
18644 case x$lt_status in
18645 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18646 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18647 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18648 esac
18649 else :
18650 # compilation failed
18651 lt_cv_dlopen_self_static=no
18654 rm -fr conftest*
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18659 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18662 CPPFLAGS="$save_CPPFLAGS"
18663 LDFLAGS="$save_LDFLAGS"
18664 LIBS="$save_LIBS"
18666 esac
18668 case $lt_cv_dlopen_self in
18669 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18670 *) enable_dlopen_self=unknown ;;
18671 esac
18673 case $lt_cv_dlopen_self_static in
18674 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18675 *) enable_dlopen_self_static=unknown ;;
18676 esac
18695 striplib=
18696 old_striplib=
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18698 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18699 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18700 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18701 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18703 $as_echo "yes" >&6; }
18704 else
18705 # FIXME - insert some real tests, host_os isn't really good enough
18706 case $host_os in
18707 darwin*)
18708 if test -n "$STRIP" ; then
18709 striplib="$STRIP -x"
18710 old_striplib="$STRIP -S"
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18712 $as_echo "yes" >&6; }
18713 else
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18715 $as_echo "no" >&6; }
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18720 $as_echo "no" >&6; }
18722 esac
18736 # Report which library types will actually be built
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18738 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18740 $as_echo "$can_build_shared" >&6; }
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18743 $as_echo_n "checking whether to build shared libraries... " >&6; }
18744 test "$can_build_shared" = "no" && enable_shared=no
18746 # On AIX, shared libraries and static libraries use the same namespace, and
18747 # are all built from PIC.
18748 case $host_os in
18749 aix3*)
18750 test "$enable_shared" = yes && enable_static=no
18751 if test -n "$RANLIB"; then
18752 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18753 postinstall_cmds='$RANLIB $lib'
18757 aix[4-9]*)
18758 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18759 test "$enable_shared" = yes && enable_static=no
18762 esac
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18764 $as_echo "$enable_shared" >&6; }
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18767 $as_echo_n "checking whether to build static libraries... " >&6; }
18768 # Make sure either enable_shared or enable_static is yes.
18769 test "$enable_shared" = yes || enable_static=yes
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18771 $as_echo "$enable_static" >&6; }
18777 ac_ext=cpp
18778 ac_cpp='$CXXCPP $CPPFLAGS'
18779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18783 CC="$lt_save_CC"
18785 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18786 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18787 (test "X$CXX" != "Xg++"))) ; then
18788 ac_ext=cpp
18789 ac_cpp='$CXXCPP $CPPFLAGS'
18790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18794 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18795 if test -z "$CXXCPP"; then
18796 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18797 $as_echo_n "(cached) " >&6
18798 else
18799 # Double quotes because CXXCPP needs to be expanded
18800 for CXXCPP in "$CXX -E" "/lib/cpp"
18802 ac_preproc_ok=false
18803 for ac_cxx_preproc_warn_flag in '' yes
18805 # Use a header file that comes with gcc, so configuring glibc
18806 # with a fresh cross-compiler works.
18807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18808 # <limits.h> exists even on freestanding compilers.
18809 # On the NeXT, cc -E runs the code through the compiler's parser,
18810 # not just through cpp. "Syntax error" is here to catch this case.
18811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18812 /* end confdefs.h. */
18813 #ifdef __STDC__
18814 # include <limits.h>
18815 #else
18816 # include <assert.h>
18817 #endif
18818 Syntax error
18819 _ACEOF
18820 if ac_fn_cxx_try_cpp "$LINENO"; then :
18822 else
18823 # Broken: fails on valid input.
18824 continue
18826 rm -f conftest.err conftest.$ac_ext
18828 # OK, works on sane cases. Now check whether nonexistent headers
18829 # can be detected and how.
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832 #include <ac_nonexistent.h>
18833 _ACEOF
18834 if ac_fn_cxx_try_cpp "$LINENO"; then :
18835 # Broken: success on invalid input.
18836 continue
18837 else
18838 # Passes both tests.
18839 ac_preproc_ok=:
18840 break
18842 rm -f conftest.err conftest.$ac_ext
18844 done
18845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18846 rm -f conftest.err conftest.$ac_ext
18847 if $ac_preproc_ok; then :
18848 break
18851 done
18852 ac_cv_prog_CXXCPP=$CXXCPP
18855 CXXCPP=$ac_cv_prog_CXXCPP
18856 else
18857 ac_cv_prog_CXXCPP=$CXXCPP
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18860 $as_echo "$CXXCPP" >&6; }
18861 ac_preproc_ok=false
18862 for ac_cxx_preproc_warn_flag in '' yes
18864 # Use a header file that comes with gcc, so configuring glibc
18865 # with a fresh cross-compiler works.
18866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18867 # <limits.h> exists even on freestanding compilers.
18868 # On the NeXT, cc -E runs the code through the compiler's parser,
18869 # not just through cpp. "Syntax error" is here to catch this case.
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 #ifdef __STDC__
18873 # include <limits.h>
18874 #else
18875 # include <assert.h>
18876 #endif
18877 Syntax error
18878 _ACEOF
18879 if ac_fn_cxx_try_cpp "$LINENO"; then :
18881 else
18882 # Broken: fails on valid input.
18883 continue
18885 rm -f conftest.err conftest.$ac_ext
18887 # OK, works on sane cases. Now check whether nonexistent headers
18888 # can be detected and how.
18889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890 /* end confdefs.h. */
18891 #include <ac_nonexistent.h>
18892 _ACEOF
18893 if ac_fn_cxx_try_cpp "$LINENO"; then :
18894 # Broken: success on invalid input.
18895 continue
18896 else
18897 # Passes both tests.
18898 ac_preproc_ok=:
18899 break
18901 rm -f conftest.err conftest.$ac_ext
18903 done
18904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18905 rm -f conftest.err conftest.$ac_ext
18906 if $ac_preproc_ok; then :
18908 else
18909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18911 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18912 See \`config.log' for more details." "$LINENO" 5; }
18915 ac_ext=cpp
18916 ac_cpp='$CXXCPP $CPPFLAGS'
18917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18921 else
18922 _lt_caught_CXX_error=yes
18925 ac_ext=cpp
18926 ac_cpp='$CXXCPP $CPPFLAGS'
18927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18931 archive_cmds_need_lc_CXX=no
18932 allow_undefined_flag_CXX=
18933 always_export_symbols_CXX=no
18934 archive_expsym_cmds_CXX=
18935 compiler_needs_object_CXX=no
18936 export_dynamic_flag_spec_CXX=
18937 hardcode_direct_CXX=no
18938 hardcode_direct_absolute_CXX=no
18939 hardcode_libdir_flag_spec_CXX=
18940 hardcode_libdir_flag_spec_ld_CXX=
18941 hardcode_libdir_separator_CXX=
18942 hardcode_minus_L_CXX=no
18943 hardcode_shlibpath_var_CXX=unsupported
18944 hardcode_automatic_CXX=no
18945 inherit_rpath_CXX=no
18946 module_cmds_CXX=
18947 module_expsym_cmds_CXX=
18948 link_all_deplibs_CXX=unknown
18949 old_archive_cmds_CXX=$old_archive_cmds
18950 reload_flag_CXX=$reload_flag
18951 reload_cmds_CXX=$reload_cmds
18952 no_undefined_flag_CXX=
18953 whole_archive_flag_spec_CXX=
18954 enable_shared_with_static_runtimes_CXX=no
18956 # Source file extension for C++ test sources.
18957 ac_ext=cpp
18959 # Object file extension for compiled C++ test sources.
18960 objext=o
18961 objext_CXX=$objext
18963 # No sense in running all these tests if we already determined that
18964 # the CXX compiler isn't working. Some variables (like enable_shared)
18965 # are currently assumed to apply to all compilers on this platform,
18966 # and will be corrupted by setting them based on a non-working compiler.
18967 if test "$_lt_caught_CXX_error" != yes; then
18968 # Code to be used in simple compile tests
18969 lt_simple_compile_test_code="int some_variable = 0;"
18971 # Code to be used in simple link tests
18972 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18974 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18981 # If no C compiler was specified, use CC.
18982 LTCC=${LTCC-"$CC"}
18984 # If no C compiler flags were specified, use CFLAGS.
18985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18987 # Allow CC to be a program name with arguments.
18988 compiler=$CC
18991 # save warnings/boilerplate of simple test code
18992 ac_outfile=conftest.$ac_objext
18993 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18995 _lt_compiler_boilerplate=`cat conftest.err`
18996 $RM conftest*
18998 ac_outfile=conftest.$ac_objext
18999 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19001 _lt_linker_boilerplate=`cat conftest.err`
19002 $RM -r conftest*
19005 # Allow CC to be a program name with arguments.
19006 lt_save_CC=$CC
19007 lt_save_LD=$LD
19008 lt_save_GCC=$GCC
19009 GCC=$GXX
19010 lt_save_with_gnu_ld=$with_gnu_ld
19011 lt_save_path_LD=$lt_cv_path_LD
19012 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19013 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19014 else
19015 $as_unset lt_cv_prog_gnu_ld
19017 if test -n "${lt_cv_path_LDCXX+set}"; then
19018 lt_cv_path_LD=$lt_cv_path_LDCXX
19019 else
19020 $as_unset lt_cv_path_LD
19022 test -z "${LDCXX+set}" || LD=$LDCXX
19023 CC=${CXX-"c++"}
19024 compiler=$CC
19025 compiler_CXX=$CC
19026 for cc_temp in $compiler""; do
19027 case $cc_temp in
19028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19030 \-*) ;;
19031 *) break;;
19032 esac
19033 done
19034 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19037 if test -n "$compiler"; then
19038 # We don't want -fno-exception when compiling C++ code, so set the
19039 # no_builtin_flag separately
19040 if test "$GXX" = yes; then
19041 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19042 else
19043 lt_prog_compiler_no_builtin_flag_CXX=
19046 if test "$GXX" = yes; then
19047 # Set up default GNU C++ configuration
19051 # Check whether --with-gnu-ld was given.
19052 if test "${with_gnu_ld+set}" = set; then :
19053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19054 else
19055 with_gnu_ld=no
19058 ac_prog=ld
19059 if test "$GCC" = yes; then
19060 # Check if gcc -print-prog-name=ld gives a path.
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19062 $as_echo_n "checking for ld used by $CC... " >&6; }
19063 case $host in
19064 *-*-mingw*)
19065 # gcc leaves a trailing carriage return which upsets mingw
19066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19069 esac
19070 case $ac_prog in
19071 # Accept absolute paths.
19072 [\\/]* | ?:[\\/]*)
19073 re_direlt='/[^/][^/]*/\.\./'
19074 # Canonicalize the pathname of ld
19075 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19076 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19077 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19078 done
19079 test -z "$LD" && LD="$ac_prog"
19082 # If it fails, then pretend we aren't using GCC.
19083 ac_prog=ld
19086 # If it is relative, then search for the first ld in PATH.
19087 with_gnu_ld=unknown
19089 esac
19090 elif test "$with_gnu_ld" = yes; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19092 $as_echo_n "checking for GNU ld... " >&6; }
19093 else
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19095 $as_echo_n "checking for non-GNU ld... " >&6; }
19097 if test "${lt_cv_path_LD+set}" = set; then :
19098 $as_echo_n "(cached) " >&6
19099 else
19100 if test -z "$LD"; then
19101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19102 for ac_dir in $PATH; do
19103 IFS="$lt_save_ifs"
19104 test -z "$ac_dir" && ac_dir=.
19105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19106 lt_cv_path_LD="$ac_dir/$ac_prog"
19107 # Check to see if the program is GNU ld. I'd rather use --version,
19108 # but apparently some variants of GNU ld only accept -v.
19109 # Break only if it was the GNU/non-GNU ld that we prefer.
19110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19111 *GNU* | *'with BFD'*)
19112 test "$with_gnu_ld" != no && break
19115 test "$with_gnu_ld" != yes && break
19117 esac
19119 done
19120 IFS="$lt_save_ifs"
19121 else
19122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19126 LD="$lt_cv_path_LD"
19127 if test -n "$LD"; then
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19129 $as_echo "$LD" >&6; }
19130 else
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19132 $as_echo "no" >&6; }
19134 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19136 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19137 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19138 $as_echo_n "(cached) " >&6
19139 else
19140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19141 case `$LD -v 2>&1 </dev/null` in
19142 *GNU* | *'with BFD'*)
19143 lt_cv_prog_gnu_ld=yes
19146 lt_cv_prog_gnu_ld=no
19148 esac
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19151 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19152 with_gnu_ld=$lt_cv_prog_gnu_ld
19160 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19161 # archiving commands below assume that GNU ld is being used.
19162 if test "$with_gnu_ld" = yes; then
19163 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19164 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19167 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19169 # If archive_cmds runs LD, not CC, wlarc should be empty
19170 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19171 # investigate it a little bit more. (MM)
19172 wlarc='${wl}'
19174 # ancient GNU ld didn't support --whole-archive et. al.
19175 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19176 $GREP 'no-whole-archive' > /dev/null; then
19177 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19178 else
19179 whole_archive_flag_spec_CXX=
19181 else
19182 with_gnu_ld=no
19183 wlarc=
19185 # A generic and very simple default shared library creation
19186 # command for GNU C++ for the case where it uses the native
19187 # linker, instead of GNU ld. If possible, this setting should
19188 # overridden to take advantage of the native linker features on
19189 # the platform it is being used on.
19190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19193 # Commands to make compiler produce verbose output that lists
19194 # what "hidden" libraries, object files and flags are used when
19195 # linking a shared library.
19196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19198 else
19199 GXX=no
19200 with_gnu_ld=no
19201 wlarc=
19204 # PORTME: fill in a description of your system's C++ link characteristics
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19206 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19207 ld_shlibs_CXX=yes
19208 case $host_os in
19209 aix3*)
19210 # FIXME: insert proper C++ library support
19211 ld_shlibs_CXX=no
19213 aix[4-9]*)
19214 if test "$host_cpu" = ia64; then
19215 # On IA64, the linker does run time linking by default, so we don't
19216 # have to do anything special.
19217 aix_use_runtimelinking=no
19218 exp_sym_flag='-Bexport'
19219 no_entry_flag=""
19220 else
19221 aix_use_runtimelinking=no
19223 # Test if we are trying to use run time linking or normal
19224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19225 # need to do runtime linking.
19226 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19227 for ld_flag in $LDFLAGS; do
19228 case $ld_flag in
19229 *-brtl*)
19230 aix_use_runtimelinking=yes
19231 break
19233 esac
19234 done
19236 esac
19238 exp_sym_flag='-bexport'
19239 no_entry_flag='-bnoentry'
19242 # When large executables or shared objects are built, AIX ld can
19243 # have problems creating the table of contents. If linking a library
19244 # or program results in "error TOC overflow" add -mminimal-toc to
19245 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19246 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19248 archive_cmds_CXX=''
19249 hardcode_direct_CXX=yes
19250 hardcode_direct_absolute_CXX=yes
19251 hardcode_libdir_separator_CXX=':'
19252 link_all_deplibs_CXX=yes
19253 file_list_spec_CXX='${wl}-f,'
19255 if test "$GXX" = yes; then
19256 case $host_os in aix4.[012]|aix4.[012].*)
19257 # We only want to do this on AIX 4.2 and lower, the check
19258 # below for broken collect2 doesn't work under 4.3+
19259 collect2name=`${CC} -print-prog-name=collect2`
19260 if test -f "$collect2name" &&
19261 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19262 then
19263 # We have reworked collect2
19265 else
19266 # We have old collect2
19267 hardcode_direct_CXX=unsupported
19268 # It fails to find uninstalled libraries when the uninstalled
19269 # path is not listed in the libpath. Setting hardcode_minus_L
19270 # to unsupported forces relinking
19271 hardcode_minus_L_CXX=yes
19272 hardcode_libdir_flag_spec_CXX='-L$libdir'
19273 hardcode_libdir_separator_CXX=
19275 esac
19276 shared_flag='-shared'
19277 if test "$aix_use_runtimelinking" = yes; then
19278 shared_flag="$shared_flag "'${wl}-G'
19280 else
19281 # not using gcc
19282 if test "$host_cpu" = ia64; then
19283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19284 # chokes on -Wl,-G. The following line is correct:
19285 shared_flag='-G'
19286 else
19287 if test "$aix_use_runtimelinking" = yes; then
19288 shared_flag='${wl}-G'
19289 else
19290 shared_flag='${wl}-bM:SRE'
19295 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19296 # It seems that -bexpall does not export symbols beginning with
19297 # underscore (_), so it is better to generate a list of symbols to
19298 # export.
19299 always_export_symbols_CXX=yes
19300 if test "$aix_use_runtimelinking" = yes; then
19301 # Warning - without using the other runtime loading flags (-brtl),
19302 # -berok will link without error, but may produce a broken library.
19303 allow_undefined_flag_CXX='-berok'
19304 # Determine the default libpath from the value encoded in an empty
19305 # executable.
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19310 main ()
19314 return 0;
19316 _ACEOF
19317 if ac_fn_cxx_try_link "$LINENO"; then :
19319 lt_aix_libpath_sed='
19320 /Import File Strings/,/^$/ {
19321 /^0/ {
19322 s/^0 *\(.*\)$/\1/
19326 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19327 # Check for a 64-bit object if we didn't find anything.
19328 if test -z "$aix_libpath"; then
19329 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19332 rm -f core conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext conftest.$ac_ext
19334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19336 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19338 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19339 else
19340 if test "$host_cpu" = ia64; then
19341 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19342 allow_undefined_flag_CXX="-z nodefs"
19343 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19344 else
19345 # Determine the default libpath from the value encoded in an
19346 # empty executable.
19347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h. */
19351 main ()
19355 return 0;
19357 _ACEOF
19358 if ac_fn_cxx_try_link "$LINENO"; then :
19360 lt_aix_libpath_sed='
19361 /Import File Strings/,/^$/ {
19362 /^0/ {
19363 s/^0 *\(.*\)$/\1/
19367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19368 # Check for a 64-bit object if we didn't find anything.
19369 if test -z "$aix_libpath"; then
19370 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19373 rm -f core conftest.err conftest.$ac_objext \
19374 conftest$ac_exeext conftest.$ac_ext
19375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19377 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19378 # Warning - without using the other run time loading flags,
19379 # -berok will link without error, but may produce a broken library.
19380 no_undefined_flag_CXX=' ${wl}-bernotok'
19381 allow_undefined_flag_CXX=' ${wl}-berok'
19382 if test "$with_gnu_ld" = yes; then
19383 # We only use this code for GNU lds that support --whole-archive.
19384 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19385 else
19386 # Exported symbols can be pulled into shared objects from archives
19387 whole_archive_flag_spec_CXX='$convenience'
19389 archive_cmds_need_lc_CXX=yes
19390 # This is similar to how AIX traditionally builds its shared
19391 # libraries.
19392 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19397 beos*)
19398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19399 allow_undefined_flag_CXX=unsupported
19400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19401 # support --undefined. This deserves some investigation. FIXME
19402 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19403 else
19404 ld_shlibs_CXX=no
19408 chorus*)
19409 case $cc_basename in
19411 # FIXME: insert proper C++ library support
19412 ld_shlibs_CXX=no
19414 esac
19417 cygwin* | mingw* | pw32* | cegcc*)
19418 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19419 # as there is no search path for DLLs.
19420 hardcode_libdir_flag_spec_CXX='-L$libdir'
19421 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19422 allow_undefined_flag_CXX=unsupported
19423 always_export_symbols_CXX=no
19424 enable_shared_with_static_runtimes_CXX=yes
19426 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19427 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19428 # If the export-symbols file already is a .def file (1st line
19429 # is EXPORTS), use it as is; otherwise, prepend...
19430 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19431 cp $export_symbols $output_objdir/$soname.def;
19432 else
19433 echo EXPORTS > $output_objdir/$soname.def;
19434 cat $export_symbols >> $output_objdir/$soname.def;
19436 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19437 else
19438 ld_shlibs_CXX=no
19441 darwin* | rhapsody*)
19444 archive_cmds_need_lc_CXX=no
19445 hardcode_direct_CXX=no
19446 hardcode_automatic_CXX=yes
19447 hardcode_shlibpath_var_CXX=unsupported
19448 if test "$lt_cv_ld_force_load" = "yes"; then
19449 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19450 else
19451 whole_archive_flag_spec_CXX=''
19453 link_all_deplibs_CXX=yes
19454 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19455 case $cc_basename in
19456 ifort*) _lt_dar_can_shared=yes ;;
19457 *) _lt_dar_can_shared=$GCC ;;
19458 esac
19459 if test "$_lt_dar_can_shared" = "yes"; then
19460 output_verbose_link_cmd=func_echo_all
19461 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19462 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19463 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19464 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19465 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19466 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19467 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19470 else
19471 ld_shlibs_CXX=no
19476 dgux*)
19477 case $cc_basename in
19478 ec++*)
19479 # FIXME: insert proper C++ library support
19480 ld_shlibs_CXX=no
19482 ghcx*)
19483 # Green Hills C++ Compiler
19484 # FIXME: insert proper C++ library support
19485 ld_shlibs_CXX=no
19488 # FIXME: insert proper C++ library support
19489 ld_shlibs_CXX=no
19491 esac
19494 freebsd2.*)
19495 # C++ shared libraries reported to be fairly broken before
19496 # switch to ELF
19497 ld_shlibs_CXX=no
19500 freebsd-elf*)
19501 archive_cmds_need_lc_CXX=no
19504 freebsd* | dragonfly*)
19505 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19506 # conventions
19507 ld_shlibs_CXX=yes
19510 gnu*)
19513 haiku*)
19514 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19515 link_all_deplibs_CXX=yes
19518 hpux9*)
19519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19520 hardcode_libdir_separator_CXX=:
19521 export_dynamic_flag_spec_CXX='${wl}-E'
19522 hardcode_direct_CXX=yes
19523 hardcode_minus_L_CXX=yes # Not in the search PATH,
19524 # but as the default
19525 # location of the library.
19527 case $cc_basename in
19528 CC*)
19529 # FIXME: insert proper C++ library support
19530 ld_shlibs_CXX=no
19532 aCC*)
19533 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19534 # Commands to make compiler produce verbose output that lists
19535 # what "hidden" libraries, object files and flags are used when
19536 # linking a shared library.
19538 # There doesn't appear to be a way to prevent this compiler from
19539 # explicitly linking system object files so we need to strip them
19540 # from the output so that they don't get included in the library
19541 # dependencies.
19542 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19545 if test "$GXX" = yes; then
19546 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19547 else
19548 # FIXME: insert proper C++ library support
19549 ld_shlibs_CXX=no
19552 esac
19555 hpux10*|hpux11*)
19556 if test $with_gnu_ld = no; then
19557 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19558 hardcode_libdir_separator_CXX=:
19560 case $host_cpu in
19561 hppa*64*|ia64*)
19564 export_dynamic_flag_spec_CXX='${wl}-E'
19566 esac
19568 case $host_cpu in
19569 hppa*64*|ia64*)
19570 hardcode_direct_CXX=no
19571 hardcode_shlibpath_var_CXX=no
19574 hardcode_direct_CXX=yes
19575 hardcode_direct_absolute_CXX=yes
19576 hardcode_minus_L_CXX=yes # Not in the search PATH,
19577 # but as the default
19578 # location of the library.
19580 esac
19582 case $cc_basename in
19583 CC*)
19584 # FIXME: insert proper C++ library support
19585 ld_shlibs_CXX=no
19587 aCC*)
19588 case $host_cpu in
19589 hppa*64*)
19590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19592 ia64*)
19593 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19596 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19598 esac
19599 # Commands to make compiler produce verbose output that lists
19600 # what "hidden" libraries, object files and flags are used when
19601 # linking a shared library.
19603 # There doesn't appear to be a way to prevent this compiler from
19604 # explicitly linking system object files so we need to strip them
19605 # from the output so that they don't get included in the library
19606 # dependencies.
19607 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19610 if test "$GXX" = yes; then
19611 if test $with_gnu_ld = no; then
19612 case $host_cpu in
19613 hppa*64*)
19614 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19616 ia64*)
19617 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19620 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19622 esac
19624 else
19625 # FIXME: insert proper C++ library support
19626 ld_shlibs_CXX=no
19629 esac
19632 interix[3-9]*)
19633 hardcode_direct_CXX=no
19634 hardcode_shlibpath_var_CXX=no
19635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19636 export_dynamic_flag_spec_CXX='${wl}-E'
19637 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19638 # Instead, shared libraries are loaded at an image base (0x10000000 by
19639 # default) and relocated if they conflict, which is a slow very memory
19640 # consuming and fragmenting process. To avoid this, we pick a random,
19641 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19642 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19643 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19644 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19646 irix5* | irix6*)
19647 case $cc_basename in
19648 CC*)
19649 # SGI C++
19650 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19652 # Archives containing C++ object files must be created using
19653 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19654 # necessary to make sure instantiated templates are included
19655 # in the archive.
19656 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19659 if test "$GXX" = yes; then
19660 if test "$with_gnu_ld" = no; then
19661 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19662 else
19663 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
19666 link_all_deplibs_CXX=yes
19668 esac
19669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19670 hardcode_libdir_separator_CXX=:
19671 inherit_rpath_CXX=yes
19674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19675 case $cc_basename in
19676 KCC*)
19677 # Kuck and Associates, Inc. (KAI) C++ Compiler
19679 # KCC will only create a shared library if the output file
19680 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19681 # to its proper name (with version) after linking.
19682 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19683 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19684 # Commands to make compiler produce verbose output that lists
19685 # what "hidden" libraries, object files and flags are used when
19686 # linking a shared library.
19688 # There doesn't appear to be a way to prevent this compiler from
19689 # explicitly linking system object files so we need to strip them
19690 # from the output so that they don't get included in the library
19691 # dependencies.
19692 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19694 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19695 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19697 # Archives containing C++ object files must be created using
19698 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19699 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19701 icpc* | ecpc* )
19702 # Intel C++
19703 with_gnu_ld=yes
19704 # version 8.0 and above of icpc choke on multiply defined symbols
19705 # if we add $predep_objects and $postdep_objects, however 7.1 and
19706 # earlier do not add the objects themselves.
19707 case `$CC -V 2>&1` in
19708 *"Version 7."*)
19709 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19710 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19712 *) # Version 8.0 or newer
19713 tmp_idyn=
19714 case $host_cpu in
19715 ia64*) tmp_idyn=' -i_dynamic';;
19716 esac
19717 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19718 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19720 esac
19721 archive_cmds_need_lc_CXX=no
19722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19724 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19726 pgCC* | pgcpp*)
19727 # Portland Group C++ compiler
19728 case `$CC -V` in
19729 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19730 prelink_cmds_CXX='tpldir=Template.dir~
19731 rm -rf $tpldir~
19732 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19733 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19734 old_archive_cmds_CXX='tpldir=Template.dir~
19735 rm -rf $tpldir~
19736 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19737 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19738 $RANLIB $oldlib'
19739 archive_cmds_CXX='tpldir=Template.dir~
19740 rm -rf $tpldir~
19741 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19742 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19743 archive_expsym_cmds_CXX='tpldir=Template.dir~
19744 rm -rf $tpldir~
19745 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19746 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19748 *) # Version 6 and above use weak symbols
19749 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19750 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19752 esac
19754 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19756 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19758 cxx*)
19759 # Compaq C++
19760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19761 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19763 runpath_var=LD_RUN_PATH
19764 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19765 hardcode_libdir_separator_CXX=:
19767 # Commands to make compiler produce verbose output that lists
19768 # what "hidden" libraries, object files and flags are used when
19769 # linking a shared library.
19771 # There doesn't appear to be a way to prevent this compiler from
19772 # explicitly linking system object files so we need to strip them
19773 # from the output so that they don't get included in the library
19774 # dependencies.
19775 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
19777 xl* | mpixl* | bgxl*)
19778 # IBM XL 8.0 on PPC, with GNU ld
19779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19780 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19781 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19782 if test "x$supports_anon_versioning" = xyes; then
19783 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19785 echo "local: *; };" >> $output_objdir/$libname.ver~
19786 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19790 case `$CC -V 2>&1 | sed 5q` in
19791 *Sun\ C*)
19792 # Sun C++ 5.9
19793 no_undefined_flag_CXX=' -zdefs'
19794 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19795 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19796 hardcode_libdir_flag_spec_CXX='-R$libdir'
19797 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
19798 compiler_needs_object_CXX=yes
19800 # Not sure whether something based on
19801 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19802 # would be better.
19803 output_verbose_link_cmd='func_echo_all'
19805 # Archives containing C++ object files must be created using
19806 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19807 # necessary to make sure instantiated templates are included
19808 # in the archive.
19809 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19811 esac
19813 esac
19816 lynxos*)
19817 # FIXME: insert proper C++ library support
19818 ld_shlibs_CXX=no
19821 m88k*)
19822 # FIXME: insert proper C++ library support
19823 ld_shlibs_CXX=no
19826 mvs*)
19827 case $cc_basename in
19828 cxx*)
19829 # FIXME: insert proper C++ library support
19830 ld_shlibs_CXX=no
19833 # FIXME: insert proper C++ library support
19834 ld_shlibs_CXX=no
19836 esac
19839 netbsd*)
19840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19841 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19842 wlarc=
19843 hardcode_libdir_flag_spec_CXX='-R$libdir'
19844 hardcode_direct_CXX=yes
19845 hardcode_shlibpath_var_CXX=no
19847 # Workaround some broken pre-1.5 toolchains
19848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19851 *nto* | *qnx*)
19852 ld_shlibs_CXX=yes
19855 openbsd2*)
19856 # C++ shared libraries are fairly broken
19857 ld_shlibs_CXX=no
19860 openbsd*)
19861 if test -f /usr/libexec/ld.so; then
19862 hardcode_direct_CXX=yes
19863 hardcode_shlibpath_var_CXX=no
19864 hardcode_direct_absolute_CXX=yes
19865 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19867 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19868 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19869 export_dynamic_flag_spec_CXX='${wl}-E'
19870 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19872 output_verbose_link_cmd=func_echo_all
19873 else
19874 ld_shlibs_CXX=no
19878 osf3* | osf4* | osf5*)
19879 case $cc_basename in
19880 KCC*)
19881 # Kuck and Associates, Inc. (KAI) C++ Compiler
19883 # KCC will only create a shared library if the output file
19884 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19885 # to its proper name (with version) after linking.
19886 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19889 hardcode_libdir_separator_CXX=:
19891 # Archives containing C++ object files must be created using
19892 # the KAI C++ compiler.
19893 case $host in
19894 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19895 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19896 esac
19898 RCC*)
19899 # Rational C++ 2.4.1
19900 # FIXME: insert proper C++ library support
19901 ld_shlibs_CXX=no
19903 cxx*)
19904 case $host in
19905 osf3*)
19906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19907 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19908 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19911 allow_undefined_flag_CXX=' -expect_unresolved \*'
19912 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19913 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19914 echo "-hidden">> $lib.exp~
19915 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19916 $RM $lib.exp'
19917 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19919 esac
19921 hardcode_libdir_separator_CXX=:
19923 # Commands to make compiler produce verbose output that lists
19924 # what "hidden" libraries, object files and flags are used when
19925 # linking a shared library.
19927 # There doesn't appear to be a way to prevent this compiler from
19928 # explicitly linking system object files so we need to strip them
19929 # from the output so that they don't get included in the library
19930 # dependencies.
19931 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19936 case $host in
19937 osf3*)
19938 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19941 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19943 esac
19945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19946 hardcode_libdir_separator_CXX=:
19948 # Commands to make compiler produce verbose output that lists
19949 # what "hidden" libraries, object files and flags are used when
19950 # linking a shared library.
19951 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19953 else
19954 # FIXME: insert proper C++ library support
19955 ld_shlibs_CXX=no
19958 esac
19961 psos*)
19962 # FIXME: insert proper C++ library support
19963 ld_shlibs_CXX=no
19966 sunos4*)
19967 case $cc_basename in
19968 CC*)
19969 # Sun C++ 4.x
19970 # FIXME: insert proper C++ library support
19971 ld_shlibs_CXX=no
19973 lcc*)
19974 # Lucid
19975 # FIXME: insert proper C++ library support
19976 ld_shlibs_CXX=no
19979 # FIXME: insert proper C++ library support
19980 ld_shlibs_CXX=no
19982 esac
19985 solaris*)
19986 case $cc_basename in
19987 CC*)
19988 # Sun C++ 4.2, 5.x and Centerline C++
19989 archive_cmds_need_lc_CXX=yes
19990 no_undefined_flag_CXX=' -zdefs'
19991 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19992 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19993 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19995 hardcode_libdir_flag_spec_CXX='-R$libdir'
19996 hardcode_shlibpath_var_CXX=no
19997 case $host_os in
19998 solaris2.[0-5] | solaris2.[0-5].*) ;;
20000 # The compiler driver will combine and reorder linker options,
20001 # but understands `-z linker_flag'.
20002 # Supported since Solaris 2.6 (maybe 2.5.1?)
20003 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20005 esac
20006 link_all_deplibs_CXX=yes
20008 output_verbose_link_cmd='func_echo_all'
20010 # Archives containing C++ object files must be created using
20011 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20012 # necessary to make sure instantiated templates are included
20013 # in the archive.
20014 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20016 gcx*)
20017 # Green Hills C++ Compiler
20018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20020 # The C++ compiler must be used to create the archive.
20021 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20024 # GNU C++ compiler with Solaris linker
20025 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20026 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20027 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20028 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20029 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20030 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20032 # Commands to make compiler produce verbose output that lists
20033 # what "hidden" libraries, object files and flags are used when
20034 # linking a shared library.
20035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20036 else
20037 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20038 # platform.
20039 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20040 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20041 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20043 # Commands to make compiler produce verbose output that lists
20044 # what "hidden" libraries, object files and flags are used when
20045 # linking a shared library.
20046 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20049 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20050 case $host_os in
20051 solaris2.[0-5] | solaris2.[0-5].*) ;;
20053 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20055 esac
20058 esac
20061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20062 no_undefined_flag_CXX='${wl}-z,text'
20063 archive_cmds_need_lc_CXX=no
20064 hardcode_shlibpath_var_CXX=no
20065 runpath_var='LD_RUN_PATH'
20067 case $cc_basename in
20068 CC*)
20069 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20070 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20073 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20074 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20076 esac
20079 sysv5* | sco3.2v5* | sco5v6*)
20080 # Note: We can NOT use -z defs as we might desire, because we do not
20081 # link with -lc, and that would cause any symbols used from libc to
20082 # always be unresolved, which means just about no library would
20083 # ever link correctly. If we're not using GNU ld we use -z text
20084 # though, which does catch some bad symbols but isn't as heavy-handed
20085 # as -z defs.
20086 no_undefined_flag_CXX='${wl}-z,text'
20087 allow_undefined_flag_CXX='${wl}-z,nodefs'
20088 archive_cmds_need_lc_CXX=no
20089 hardcode_shlibpath_var_CXX=no
20090 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20091 hardcode_libdir_separator_CXX=':'
20092 link_all_deplibs_CXX=yes
20093 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20094 runpath_var='LD_RUN_PATH'
20096 case $cc_basename in
20097 CC*)
20098 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20099 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20100 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20101 '"$old_archive_cmds_CXX"
20102 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20103 '"$reload_cmds_CXX"
20106 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20107 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20109 esac
20112 tandem*)
20113 case $cc_basename in
20114 NCC*)
20115 # NonStop-UX NCC 3.20
20116 # FIXME: insert proper C++ library support
20117 ld_shlibs_CXX=no
20120 # FIXME: insert proper C++ library support
20121 ld_shlibs_CXX=no
20123 esac
20126 vxworks*)
20127 # FIXME: insert proper C++ library support
20128 ld_shlibs_CXX=no
20132 # FIXME: insert proper C++ library support
20133 ld_shlibs_CXX=no
20135 esac
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20138 $as_echo "$ld_shlibs_CXX" >&6; }
20139 test "$ld_shlibs_CXX" = no && can_build_shared=no
20141 GCC_CXX="$GXX"
20142 LD_CXX="$LD"
20144 ## CAVEAT EMPTOR:
20145 ## There is no encapsulation within the following macros, do not change
20146 ## the running order or otherwise move them around unless you know exactly
20147 ## what you are doing...
20148 # Dependencies to place before and after the object being linked:
20149 predep_objects_CXX=
20150 postdep_objects_CXX=
20151 predeps_CXX=
20152 postdeps_CXX=
20153 compiler_lib_search_path_CXX=
20155 cat > conftest.$ac_ext <<_LT_EOF
20156 class Foo
20158 public:
20159 Foo (void) { a = 0; }
20160 private:
20161 int a;
20163 _LT_EOF
20165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20166 (eval $ac_compile) 2>&5
20167 ac_status=$?
20168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20169 test $ac_status = 0; }; then
20170 # Parse the compiler output and extract the necessary
20171 # objects, libraries and library flags.
20173 # Sentinel used to keep track of whether or not we are before
20174 # the conftest object file.
20175 pre_test_object_deps_done=no
20177 for p in `eval "$output_verbose_link_cmd"`; do
20178 case $p in
20180 -L* | -R* | -l*)
20181 # Some compilers place space between "-{L,R}" and the path.
20182 # Remove the space.
20183 if test $p = "-L" ||
20184 test $p = "-R"; then
20185 prev=$p
20186 continue
20187 else
20188 prev=
20191 if test "$pre_test_object_deps_done" = no; then
20192 case $p in
20193 -L* | -R*)
20194 # Internal compiler library paths should come after those
20195 # provided the user. The postdeps already come after the
20196 # user supplied libs so there is no need to process them.
20197 if test -z "$compiler_lib_search_path_CXX"; then
20198 compiler_lib_search_path_CXX="${prev}${p}"
20199 else
20200 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20203 # The "-l" case would never come before the object being
20204 # linked, so don't bother handling this case.
20205 esac
20206 else
20207 if test -z "$postdeps_CXX"; then
20208 postdeps_CXX="${prev}${p}"
20209 else
20210 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20215 *.$objext)
20216 # This assumes that the test object file only shows up
20217 # once in the compiler output.
20218 if test "$p" = "conftest.$objext"; then
20219 pre_test_object_deps_done=yes
20220 continue
20223 if test "$pre_test_object_deps_done" = no; then
20224 if test -z "$predep_objects_CXX"; then
20225 predep_objects_CXX="$p"
20226 else
20227 predep_objects_CXX="$predep_objects_CXX $p"
20229 else
20230 if test -z "$postdep_objects_CXX"; then
20231 postdep_objects_CXX="$p"
20232 else
20233 postdep_objects_CXX="$postdep_objects_CXX $p"
20238 *) ;; # Ignore the rest.
20240 esac
20241 done
20243 # Clean up.
20244 rm -f a.out a.exe
20245 else
20246 echo "libtool.m4: error: problem compiling CXX test program"
20249 $RM -f confest.$objext
20251 # PORTME: override above test on systems where it is broken
20252 case $host_os in
20253 interix[3-9]*)
20254 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20255 # hack all around it, let's just trust "g++" to DTRT.
20256 predep_objects_CXX=
20257 postdep_objects_CXX=
20258 postdeps_CXX=
20261 linux*)
20262 case `$CC -V 2>&1 | sed 5q` in
20263 *Sun\ C*)
20264 # Sun C++ 5.9
20266 # The more standards-conforming stlport4 library is
20267 # incompatible with the Cstd library. Avoid specifying
20268 # it if it's in CXXFLAGS. Ignore libCrun as
20269 # -library=stlport4 depends on it.
20270 case " $CXX $CXXFLAGS " in
20271 *" -library=stlport4 "*)
20272 solaris_use_stlport4=yes
20274 esac
20276 if test "$solaris_use_stlport4" != yes; then
20277 postdeps_CXX='-library=Cstd -library=Crun'
20280 esac
20283 solaris*)
20284 case $cc_basename in
20285 CC*)
20286 # The more standards-conforming stlport4 library is
20287 # incompatible with the Cstd library. Avoid specifying
20288 # it if it's in CXXFLAGS. Ignore libCrun as
20289 # -library=stlport4 depends on it.
20290 case " $CXX $CXXFLAGS " in
20291 *" -library=stlport4 "*)
20292 solaris_use_stlport4=yes
20294 esac
20296 # Adding this requires a known-good setup of shared libraries for
20297 # Sun compiler versions before 5.6, else PIC objects from an old
20298 # archive will be linked into the output, leading to subtle bugs.
20299 if test "$solaris_use_stlport4" != yes; then
20300 postdeps_CXX='-library=Cstd -library=Crun'
20303 esac
20305 esac
20308 case " $postdeps_CXX " in
20309 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20310 esac
20311 compiler_lib_search_dirs_CXX=
20312 if test -n "${compiler_lib_search_path_CXX}"; then
20313 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20346 lt_prog_compiler_wl_CXX=
20347 lt_prog_compiler_pic_CXX=
20348 lt_prog_compiler_static_CXX=
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20351 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20353 # C++ specific cases for pic, static, wl, etc.
20354 if test "$GXX" = yes; then
20355 lt_prog_compiler_wl_CXX='-Wl,'
20356 lt_prog_compiler_static_CXX='-static'
20358 case $host_os in
20359 aix*)
20360 # All AIX code is PIC.
20361 if test "$host_cpu" = ia64; then
20362 # AIX 5 now supports IA64 processor
20363 lt_prog_compiler_static_CXX='-Bstatic'
20365 lt_prog_compiler_pic_CXX='-fPIC'
20368 amigaos*)
20369 case $host_cpu in
20370 powerpc)
20371 # see comment about AmigaOS4 .so support
20372 lt_prog_compiler_pic_CXX='-fPIC'
20374 m68k)
20375 # FIXME: we need at least 68020 code to build shared libraries, but
20376 # adding the `-m68020' flag to GCC prevents building anything better,
20377 # like `-m68040'.
20378 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20380 esac
20383 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20384 # PIC is the default for these OSes.
20386 mingw* | cygwin* | os2* | pw32* | cegcc*)
20387 # This hack is so that the source file can tell whether it is being
20388 # built for inclusion in a dll (and should export symbols for example).
20389 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20390 # (--disable-auto-import) libraries
20391 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20393 darwin* | rhapsody*)
20394 # PIC is the default on this platform
20395 # Common symbols not allowed in MH_DYLIB files
20396 lt_prog_compiler_pic_CXX='-fno-common'
20398 *djgpp*)
20399 # DJGPP does not support shared libraries at all
20400 lt_prog_compiler_pic_CXX=
20402 haiku*)
20403 # PIC is the default for Haiku.
20404 # The "-static" flag exists, but is broken.
20405 lt_prog_compiler_static_CXX=
20407 interix[3-9]*)
20408 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20409 # Instead, we relocate shared libraries at runtime.
20411 sysv4*MP*)
20412 if test -d /usr/nec; then
20413 lt_prog_compiler_pic_CXX=-Kconform_pic
20416 hpux*)
20417 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20418 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20419 # sets the default TLS model and affects inlining.
20420 case $host_cpu in
20421 hppa*64*)
20424 lt_prog_compiler_pic_CXX='-fPIC'
20426 esac
20428 *qnx* | *nto*)
20429 # QNX uses GNU C++, but need to define -shared option too, otherwise
20430 # it will coredump.
20431 lt_prog_compiler_pic_CXX='-fPIC -shared'
20434 lt_prog_compiler_pic_CXX='-fPIC'
20436 esac
20437 else
20438 case $host_os in
20439 aix[4-9]*)
20440 # All AIX code is PIC.
20441 if test "$host_cpu" = ia64; then
20442 # AIX 5 now supports IA64 processor
20443 lt_prog_compiler_static_CXX='-Bstatic'
20444 else
20445 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20448 chorus*)
20449 case $cc_basename in
20450 cxch68*)
20451 # Green Hills C++ Compiler
20452 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20454 esac
20456 dgux*)
20457 case $cc_basename in
20458 ec++*)
20459 lt_prog_compiler_pic_CXX='-KPIC'
20461 ghcx*)
20462 # Green Hills C++ Compiler
20463 lt_prog_compiler_pic_CXX='-pic'
20467 esac
20469 freebsd* | dragonfly*)
20470 # FreeBSD uses GNU C++
20472 hpux9* | hpux10* | hpux11*)
20473 case $cc_basename in
20474 CC*)
20475 lt_prog_compiler_wl_CXX='-Wl,'
20476 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20477 if test "$host_cpu" != ia64; then
20478 lt_prog_compiler_pic_CXX='+Z'
20481 aCC*)
20482 lt_prog_compiler_wl_CXX='-Wl,'
20483 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20484 case $host_cpu in
20485 hppa*64*|ia64*)
20486 # +Z the default
20489 lt_prog_compiler_pic_CXX='+Z'
20491 esac
20495 esac
20497 interix*)
20498 # This is c89, which is MS Visual C++ (no shared libs)
20499 # Anyone wants to do a port?
20501 irix5* | irix6* | nonstopux*)
20502 case $cc_basename in
20503 CC*)
20504 lt_prog_compiler_wl_CXX='-Wl,'
20505 lt_prog_compiler_static_CXX='-non_shared'
20506 # CC pic flag -KPIC is the default.
20510 esac
20512 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20513 case $cc_basename in
20514 KCC*)
20515 # KAI C++ Compiler
20516 lt_prog_compiler_wl_CXX='--backend -Wl,'
20517 lt_prog_compiler_pic_CXX='-fPIC'
20519 ecpc* )
20520 # old Intel C++ for x86_64 which still supported -KPIC.
20521 lt_prog_compiler_wl_CXX='-Wl,'
20522 lt_prog_compiler_pic_CXX='-KPIC'
20523 lt_prog_compiler_static_CXX='-static'
20525 icpc* )
20526 # Intel C++, used to be incompatible with GCC.
20527 # ICC 10 doesn't accept -KPIC any more.
20528 lt_prog_compiler_wl_CXX='-Wl,'
20529 lt_prog_compiler_pic_CXX='-fPIC'
20530 lt_prog_compiler_static_CXX='-static'
20532 pgCC* | pgcpp*)
20533 # Portland Group C++ compiler
20534 lt_prog_compiler_wl_CXX='-Wl,'
20535 lt_prog_compiler_pic_CXX='-fpic'
20536 lt_prog_compiler_static_CXX='-Bstatic'
20538 cxx*)
20539 # Compaq C++
20540 # Make sure the PIC flag is empty. It appears that all Alpha
20541 # Linux and Compaq Tru64 Unix objects are PIC.
20542 lt_prog_compiler_pic_CXX=
20543 lt_prog_compiler_static_CXX='-non_shared'
20545 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20546 # IBM XL 8.0, 9.0 on PPC and BlueGene
20547 lt_prog_compiler_wl_CXX='-Wl,'
20548 lt_prog_compiler_pic_CXX='-qpic'
20549 lt_prog_compiler_static_CXX='-qstaticlink'
20552 case `$CC -V 2>&1 | sed 5q` in
20553 *Sun\ C*)
20554 # Sun C++ 5.9
20555 lt_prog_compiler_pic_CXX='-KPIC'
20556 lt_prog_compiler_static_CXX='-Bstatic'
20557 lt_prog_compiler_wl_CXX='-Qoption ld '
20559 esac
20561 esac
20563 lynxos*)
20565 m88k*)
20567 mvs*)
20568 case $cc_basename in
20569 cxx*)
20570 lt_prog_compiler_pic_CXX='-W c,exportall'
20574 esac
20576 netbsd*)
20578 *qnx* | *nto*)
20579 # QNX uses GNU C++, but need to define -shared option too, otherwise
20580 # it will coredump.
20581 lt_prog_compiler_pic_CXX='-fPIC -shared'
20583 osf3* | osf4* | osf5*)
20584 case $cc_basename in
20585 KCC*)
20586 lt_prog_compiler_wl_CXX='--backend -Wl,'
20588 RCC*)
20589 # Rational C++ 2.4.1
20590 lt_prog_compiler_pic_CXX='-pic'
20592 cxx*)
20593 # Digital/Compaq C++
20594 lt_prog_compiler_wl_CXX='-Wl,'
20595 # Make sure the PIC flag is empty. It appears that all Alpha
20596 # Linux and Compaq Tru64 Unix objects are PIC.
20597 lt_prog_compiler_pic_CXX=
20598 lt_prog_compiler_static_CXX='-non_shared'
20602 esac
20604 psos*)
20606 solaris*)
20607 case $cc_basename in
20608 CC*)
20609 # Sun C++ 4.2, 5.x and Centerline C++
20610 lt_prog_compiler_pic_CXX='-KPIC'
20611 lt_prog_compiler_static_CXX='-Bstatic'
20612 lt_prog_compiler_wl_CXX='-Qoption ld '
20614 gcx*)
20615 # Green Hills C++ Compiler
20616 lt_prog_compiler_pic_CXX='-PIC'
20620 esac
20622 sunos4*)
20623 case $cc_basename in
20624 CC*)
20625 # Sun C++ 4.x
20626 lt_prog_compiler_pic_CXX='-pic'
20627 lt_prog_compiler_static_CXX='-Bstatic'
20629 lcc*)
20630 # Lucid
20631 lt_prog_compiler_pic_CXX='-pic'
20635 esac
20637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20638 case $cc_basename in
20639 CC*)
20640 lt_prog_compiler_wl_CXX='-Wl,'
20641 lt_prog_compiler_pic_CXX='-KPIC'
20642 lt_prog_compiler_static_CXX='-Bstatic'
20644 esac
20646 tandem*)
20647 case $cc_basename in
20648 NCC*)
20649 # NonStop-UX NCC 3.20
20650 lt_prog_compiler_pic_CXX='-KPIC'
20654 esac
20656 vxworks*)
20659 lt_prog_compiler_can_build_shared_CXX=no
20661 esac
20664 case $host_os in
20665 # For platforms which do not support PIC, -DPIC is meaningless:
20666 *djgpp*)
20667 lt_prog_compiler_pic_CXX=
20670 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20672 esac
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20674 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20679 # Check to make sure the PIC flag actually works.
20681 if test -n "$lt_prog_compiler_pic_CXX"; then
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20683 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20684 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20685 $as_echo_n "(cached) " >&6
20686 else
20687 lt_cv_prog_compiler_pic_works_CXX=no
20688 ac_outfile=conftest.$ac_objext
20689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20690 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20691 # Insert the option either (1) after the last *FLAGS variable, or
20692 # (2) before a word containing "conftest.", or (3) at the end.
20693 # Note that $ac_compile itself does not contain backslashes and begins
20694 # with a dollar sign (not a hyphen), so the echo should work correctly.
20695 # The option is referenced via a variable to avoid confusing sed.
20696 lt_compile=`echo "$ac_compile" | $SED \
20697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20699 -e 's:$: $lt_compiler_flag:'`
20700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20701 (eval "$lt_compile" 2>conftest.err)
20702 ac_status=$?
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 if (exit $ac_status) && test -s "$ac_outfile"; then
20706 # The compiler can only warn and ignore the option if not recognized
20707 # So say no if there are warnings other than the usual output.
20708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20711 lt_cv_prog_compiler_pic_works_CXX=yes
20714 $RM conftest*
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20718 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20720 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20721 case $lt_prog_compiler_pic_CXX in
20722 "" | " "*) ;;
20723 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20724 esac
20725 else
20726 lt_prog_compiler_pic_CXX=
20727 lt_prog_compiler_can_build_shared_CXX=no
20735 # Check to make sure the static flag actually works.
20737 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20739 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20740 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20741 $as_echo_n "(cached) " >&6
20742 else
20743 lt_cv_prog_compiler_static_works_CXX=no
20744 save_LDFLAGS="$LDFLAGS"
20745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20746 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20748 # The linker can only warn and ignore the option if not recognized
20749 # So say no if there are warnings
20750 if test -s conftest.err; then
20751 # Append any errors to the config.log.
20752 cat conftest.err 1>&5
20753 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20755 if diff conftest.exp conftest.er2 >/dev/null; then
20756 lt_cv_prog_compiler_static_works_CXX=yes
20758 else
20759 lt_cv_prog_compiler_static_works_CXX=yes
20762 $RM -r conftest*
20763 LDFLAGS="$save_LDFLAGS"
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20767 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20769 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20771 else
20772 lt_prog_compiler_static_CXX=
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20779 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20780 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20781 $as_echo_n "(cached) " >&6
20782 else
20783 lt_cv_prog_compiler_c_o_CXX=no
20784 $RM -r conftest 2>/dev/null
20785 mkdir conftest
20786 cd conftest
20787 mkdir out
20788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20790 lt_compiler_flag="-o out/conftest2.$ac_objext"
20791 # Insert the option either (1) after the last *FLAGS variable, or
20792 # (2) before a word containing "conftest.", or (3) at the end.
20793 # Note that $ac_compile itself does not contain backslashes and begins
20794 # with a dollar sign (not a hyphen), so the echo should work correctly.
20795 lt_compile=`echo "$ac_compile" | $SED \
20796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20798 -e 's:$: $lt_compiler_flag:'`
20799 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20800 (eval "$lt_compile" 2>out/conftest.err)
20801 ac_status=$?
20802 cat out/conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20805 then
20806 # The compiler can only warn and ignore the option if not recognized
20807 # So say no if there are warnings
20808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20811 lt_cv_prog_compiler_c_o_CXX=yes
20814 chmod u+w . 2>&5
20815 $RM conftest*
20816 # SGI C++ compiler will create directory out/ii_files/ for
20817 # template instantiation
20818 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20819 $RM out/* && rmdir out
20820 cd ..
20821 $RM -r conftest
20822 $RM conftest*
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20826 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20831 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20832 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20834 else
20835 lt_cv_prog_compiler_c_o_CXX=no
20836 $RM -r conftest 2>/dev/null
20837 mkdir conftest
20838 cd conftest
20839 mkdir out
20840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20842 lt_compiler_flag="-o out/conftest2.$ac_objext"
20843 # Insert the option either (1) after the last *FLAGS variable, or
20844 # (2) before a word containing "conftest.", or (3) at the end.
20845 # Note that $ac_compile itself does not contain backslashes and begins
20846 # with a dollar sign (not a hyphen), so the echo should work correctly.
20847 lt_compile=`echo "$ac_compile" | $SED \
20848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20850 -e 's:$: $lt_compiler_flag:'`
20851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20852 (eval "$lt_compile" 2>out/conftest.err)
20853 ac_status=$?
20854 cat out/conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20857 then
20858 # The compiler can only warn and ignore the option if not recognized
20859 # So say no if there are warnings
20860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20863 lt_cv_prog_compiler_c_o_CXX=yes
20866 chmod u+w . 2>&5
20867 $RM conftest*
20868 # SGI C++ compiler will create directory out/ii_files/ for
20869 # template instantiation
20870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20871 $RM out/* && rmdir out
20872 cd ..
20873 $RM -r conftest
20874 $RM conftest*
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20878 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20883 hard_links="nottested"
20884 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20885 # do not overwrite the value of need_locks provided by the user
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20887 $as_echo_n "checking if we can lock with hard links... " >&6; }
20888 hard_links=yes
20889 $RM conftest*
20890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20891 touch conftest.a
20892 ln conftest.a conftest.b 2>&5 || hard_links=no
20893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20895 $as_echo "$hard_links" >&6; }
20896 if test "$hard_links" = no; then
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20898 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20899 need_locks=warn
20901 else
20902 need_locks=no
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20908 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20910 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20911 case $host_os in
20912 aix[4-9]*)
20913 # If we're using GNU nm, then we don't want the "-C" option.
20914 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20915 # Also, AIX nm treats weak defined symbols like other global defined
20916 # symbols, whereas GNU nm marks them as "W".
20917 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20918 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20919 else
20920 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20923 pw32*)
20924 export_symbols_cmds_CXX="$ltdll_cmds"
20926 cygwin* | mingw* | cegcc*)
20927 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20930 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20932 esac
20933 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20936 $as_echo "$ld_shlibs_CXX" >&6; }
20937 test "$ld_shlibs_CXX" = no && can_build_shared=no
20939 with_gnu_ld_CXX=$with_gnu_ld
20947 # Do we need to explicitly link libc?
20949 case "x$archive_cmds_need_lc_CXX" in
20950 x|xyes)
20951 # Assume -lc should be added
20952 archive_cmds_need_lc_CXX=yes
20954 if test "$enable_shared" = yes && test "$GCC" = yes; then
20955 case $archive_cmds_CXX in
20956 *'~'*)
20957 # FIXME: we may have to deal with multi-command sequences.
20959 '$CC '*)
20960 # Test whether the compiler implicitly links with -lc since on some
20961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20962 # to ld, don't add -lc before -lgcc.
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20964 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20965 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20966 $as_echo_n "(cached) " >&6
20967 else
20968 $RM conftest*
20969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20972 (eval $ac_compile) 2>&5
20973 ac_status=$?
20974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20975 test $ac_status = 0; } 2>conftest.err; then
20976 soname=conftest
20977 lib=conftest
20978 libobjs=conftest.$ac_objext
20979 deplibs=
20980 wl=$lt_prog_compiler_wl_CXX
20981 pic_flag=$lt_prog_compiler_pic_CXX
20982 compiler_flags=-v
20983 linker_flags=-v
20984 verstring=
20985 output_objdir=.
20986 libname=conftest
20987 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20988 allow_undefined_flag_CXX=
20989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20990 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20991 ac_status=$?
20992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20993 test $ac_status = 0; }
20994 then
20995 lt_cv_archive_cmds_need_lc_CXX=no
20996 else
20997 lt_cv_archive_cmds_need_lc_CXX=yes
20999 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21000 else
21001 cat conftest.err 1>&5
21003 $RM conftest*
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21007 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21008 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21010 esac
21013 esac
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21079 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21081 library_names_spec=
21082 libname_spec='lib$name'
21083 soname_spec=
21084 shrext_cmds=".so"
21085 postinstall_cmds=
21086 postuninstall_cmds=
21087 finish_cmds=
21088 finish_eval=
21089 shlibpath_var=
21090 shlibpath_overrides_runpath=unknown
21091 version_type=none
21092 dynamic_linker="$host_os ld.so"
21093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21094 need_lib_prefix=unknown
21095 hardcode_into_libs=no
21097 # when you set need_version to no, make sure it does not cause -set_version
21098 # flags to be left without arguments
21099 need_version=unknown
21101 case $host_os in
21102 aix3*)
21103 version_type=linux
21104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21105 shlibpath_var=LIBPATH
21107 # AIX 3 has no versioning support, so we append a major version to the name.
21108 soname_spec='${libname}${release}${shared_ext}$major'
21111 aix[4-9]*)
21112 version_type=linux
21113 need_lib_prefix=no
21114 need_version=no
21115 hardcode_into_libs=yes
21116 if test "$host_cpu" = ia64; then
21117 # AIX 5 supports IA64
21118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21119 shlibpath_var=LD_LIBRARY_PATH
21120 else
21121 # With GCC up to 2.95.x, collect2 would create an import file
21122 # for dependence libraries. The import file would start with
21123 # the line `#! .'. This would cause the generated library to
21124 # depend on `.', always an invalid library. This was fixed in
21125 # development snapshots of GCC prior to 3.0.
21126 case $host_os in
21127 aix4 | aix4.[01] | aix4.[01].*)
21128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21129 echo ' yes '
21130 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21132 else
21133 can_build_shared=no
21136 esac
21137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21138 # soname into executable. Probably we can add versioning support to
21139 # collect2, so additional links can be useful in future.
21140 if test "$aix_use_runtimelinking" = yes; then
21141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21142 # instead of lib<name>.a to let people know that these are not
21143 # typical AIX shared libraries.
21144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21145 else
21146 # We preserve .a as extension for shared libraries through AIX4.2
21147 # and later when we are not doing run time linking.
21148 library_names_spec='${libname}${release}.a $libname.a'
21149 soname_spec='${libname}${release}${shared_ext}$major'
21151 shlibpath_var=LIBPATH
21155 amigaos*)
21156 case $host_cpu in
21157 powerpc)
21158 # Since July 2007 AmigaOS4 officially supports .so libraries.
21159 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21162 m68k)
21163 library_names_spec='$libname.ixlibrary $libname.a'
21164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21165 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21167 esac
21170 beos*)
21171 library_names_spec='${libname}${shared_ext}'
21172 dynamic_linker="$host_os ld.so"
21173 shlibpath_var=LIBRARY_PATH
21176 bsdi[45]*)
21177 version_type=linux
21178 need_version=no
21179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21180 soname_spec='${libname}${release}${shared_ext}$major'
21181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21182 shlibpath_var=LD_LIBRARY_PATH
21183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21185 # the default ld.so.conf also contains /usr/contrib/lib and
21186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21187 # libtool to hard-code these into programs
21190 cygwin* | mingw* | pw32* | cegcc*)
21191 version_type=windows
21192 shrext_cmds=".dll"
21193 need_version=no
21194 need_lib_prefix=no
21196 case $GCC,$host_os in
21197 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21198 library_names_spec='$libname.dll.a'
21199 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21200 postinstall_cmds='base_file=`basename \${file}`~
21201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21202 dldir=$destdir/`dirname \$dlpath`~
21203 test -d \$dldir || mkdir -p \$dldir~
21204 $install_prog $dir/$dlname \$dldir/$dlname~
21205 chmod a+x \$dldir/$dlname~
21206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21210 dlpath=$dir/\$dldll~
21211 $RM \$dlpath'
21212 shlibpath_overrides_runpath=yes
21214 case $host_os in
21215 cygwin*)
21216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21220 mingw* | cegcc*)
21221 # MinGW DLLs use traditional 'lib' prefix
21222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21224 pw32*)
21225 # pw32 DLLs use 'pw' prefix rather than 'lib'
21226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21228 esac
21232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21234 esac
21235 dynamic_linker='Win32 ld.exe'
21236 # FIXME: first we should search . and the directory the executable is in
21237 shlibpath_var=PATH
21240 darwin* | rhapsody*)
21241 dynamic_linker="$host_os dyld"
21242 version_type=darwin
21243 need_lib_prefix=no
21244 need_version=no
21245 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21246 soname_spec='${libname}${release}${major}$shared_ext'
21247 shlibpath_overrides_runpath=yes
21248 shlibpath_var=DYLD_LIBRARY_PATH
21249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21251 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21254 dgux*)
21255 version_type=linux
21256 need_lib_prefix=no
21257 need_version=no
21258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21259 soname_spec='${libname}${release}${shared_ext}$major'
21260 shlibpath_var=LD_LIBRARY_PATH
21263 freebsd* | dragonfly*)
21264 # DragonFly does not have aout. When/if they implement a new
21265 # versioning mechanism, adjust this.
21266 if test -x /usr/bin/objformat; then
21267 objformat=`/usr/bin/objformat`
21268 else
21269 case $host_os in
21270 freebsd[23].*) objformat=aout ;;
21271 *) objformat=elf ;;
21272 esac
21274 version_type=freebsd-$objformat
21275 case $version_type in
21276 freebsd-elf*)
21277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21278 need_version=no
21279 need_lib_prefix=no
21281 freebsd-*)
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21283 need_version=yes
21285 esac
21286 shlibpath_var=LD_LIBRARY_PATH
21287 case $host_os in
21288 freebsd2.*)
21289 shlibpath_overrides_runpath=yes
21291 freebsd3.[01]* | freebsdelf3.[01]*)
21292 shlibpath_overrides_runpath=yes
21293 hardcode_into_libs=yes
21295 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21296 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21297 shlibpath_overrides_runpath=no
21298 hardcode_into_libs=yes
21300 *) # from 4.6 on, and DragonFly
21301 shlibpath_overrides_runpath=yes
21302 hardcode_into_libs=yes
21304 esac
21307 gnu*)
21308 version_type=linux
21309 need_lib_prefix=no
21310 need_version=no
21311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21312 soname_spec='${libname}${release}${shared_ext}$major'
21313 shlibpath_var=LD_LIBRARY_PATH
21314 hardcode_into_libs=yes
21317 haiku*)
21318 version_type=linux
21319 need_lib_prefix=no
21320 need_version=no
21321 dynamic_linker="$host_os runtime_loader"
21322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21323 soname_spec='${libname}${release}${shared_ext}$major'
21324 shlibpath_var=LIBRARY_PATH
21325 shlibpath_overrides_runpath=yes
21326 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21327 hardcode_into_libs=yes
21330 hpux9* | hpux10* | hpux11*)
21331 # Give a soname corresponding to the major version so that dld.sl refuses to
21332 # link against other versions.
21333 version_type=sunos
21334 need_lib_prefix=no
21335 need_version=no
21336 case $host_cpu in
21337 ia64*)
21338 shrext_cmds='.so'
21339 hardcode_into_libs=yes
21340 dynamic_linker="$host_os dld.so"
21341 shlibpath_var=LD_LIBRARY_PATH
21342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21344 soname_spec='${libname}${release}${shared_ext}$major'
21345 if test "X$HPUX_IA64_MODE" = X32; then
21346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21347 else
21348 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21352 hppa*64*)
21353 shrext_cmds='.sl'
21354 hardcode_into_libs=yes
21355 dynamic_linker="$host_os dld.sl"
21356 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21359 soname_spec='${libname}${release}${shared_ext}$major'
21360 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21364 shrext_cmds='.sl'
21365 dynamic_linker="$host_os dld.sl"
21366 shlibpath_var=SHLIB_PATH
21367 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21369 soname_spec='${libname}${release}${shared_ext}$major'
21371 esac
21372 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21373 postinstall_cmds='chmod 555 $lib'
21374 # or fails outright, so override atomically:
21375 install_override_mode=555
21378 interix[3-9]*)
21379 version_type=linux
21380 need_lib_prefix=no
21381 need_version=no
21382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21383 soname_spec='${libname}${release}${shared_ext}$major'
21384 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21385 shlibpath_var=LD_LIBRARY_PATH
21386 shlibpath_overrides_runpath=no
21387 hardcode_into_libs=yes
21390 irix5* | irix6* | nonstopux*)
21391 case $host_os in
21392 nonstopux*) version_type=nonstopux ;;
21394 if test "$lt_cv_prog_gnu_ld" = yes; then
21395 version_type=linux
21396 else
21397 version_type=irix
21398 fi ;;
21399 esac
21400 need_lib_prefix=no
21401 need_version=no
21402 soname_spec='${libname}${release}${shared_ext}$major'
21403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21404 case $host_os in
21405 irix5* | nonstopux*)
21406 libsuff= shlibsuff=
21409 case $LD in # libtool.m4 will add one of these switches to LD
21410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21411 libsuff= shlibsuff= libmagic=32-bit;;
21412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21413 libsuff=32 shlibsuff=N32 libmagic=N32;;
21414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21415 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21416 *) libsuff= shlibsuff= libmagic=never-match;;
21417 esac
21419 esac
21420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21421 shlibpath_overrides_runpath=no
21422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21424 hardcode_into_libs=yes
21427 # No shared lib support for Linux oldld, aout, or coff.
21428 linux*oldld* | linux*aout* | linux*coff*)
21429 dynamic_linker=no
21432 # This must be Linux ELF.
21433 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21434 version_type=linux
21435 need_lib_prefix=no
21436 need_version=no
21437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21438 soname_spec='${libname}${release}${shared_ext}$major'
21439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21440 shlibpath_var=LD_LIBRARY_PATH
21441 shlibpath_overrides_runpath=no
21443 # Some binutils ld are patched to set DT_RUNPATH
21444 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21445 $as_echo_n "(cached) " >&6
21446 else
21447 lt_cv_shlibpath_overrides_runpath=no
21448 save_LDFLAGS=$LDFLAGS
21449 save_libdir=$libdir
21450 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21451 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h. */
21456 main ()
21460 return 0;
21462 _ACEOF
21463 if ac_fn_cxx_try_link "$LINENO"; then :
21464 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21465 lt_cv_shlibpath_overrides_runpath=yes
21468 rm -f core conftest.err conftest.$ac_objext \
21469 conftest$ac_exeext conftest.$ac_ext
21470 LDFLAGS=$save_LDFLAGS
21471 libdir=$save_libdir
21475 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21477 # This implies no fast_install, which is unacceptable.
21478 # Some rework will be needed to allow for fast_install
21479 # before this can be enabled.
21480 hardcode_into_libs=yes
21482 # Append ld.so.conf contents to the search path
21483 if test -f /etc/ld.so.conf; then
21484 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
21485 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21488 # We used to test for /lib/ld.so.1 and disable shared libraries on
21489 # powerpc, because MkLinux only supported shared libraries with the
21490 # GNU dynamic linker. Since this was broken with cross compilers,
21491 # most powerpc-linux boxes support dynamic linking these days and
21492 # people can always --disable-shared, the test was removed, and we
21493 # assume the GNU/Linux dynamic linker is in use.
21494 dynamic_linker='GNU/Linux ld.so'
21497 netbsd*)
21498 version_type=sunos
21499 need_lib_prefix=no
21500 need_version=no
21501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21504 dynamic_linker='NetBSD (a.out) ld.so'
21505 else
21506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21507 soname_spec='${libname}${release}${shared_ext}$major'
21508 dynamic_linker='NetBSD ld.elf_so'
21510 shlibpath_var=LD_LIBRARY_PATH
21511 shlibpath_overrides_runpath=yes
21512 hardcode_into_libs=yes
21515 newsos6)
21516 version_type=linux
21517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21518 shlibpath_var=LD_LIBRARY_PATH
21519 shlibpath_overrides_runpath=yes
21522 *nto* | *qnx*)
21523 version_type=qnx
21524 need_lib_prefix=no
21525 need_version=no
21526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21527 soname_spec='${libname}${release}${shared_ext}$major'
21528 shlibpath_var=LD_LIBRARY_PATH
21529 shlibpath_overrides_runpath=no
21530 hardcode_into_libs=yes
21531 dynamic_linker='ldqnx.so'
21534 openbsd*)
21535 version_type=sunos
21536 sys_lib_dlsearch_path_spec="/usr/lib"
21537 need_lib_prefix=no
21538 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21539 case $host_os in
21540 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21541 *) need_version=no ;;
21542 esac
21543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21545 shlibpath_var=LD_LIBRARY_PATH
21546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21547 case $host_os in
21548 openbsd2.[89] | openbsd2.[89].*)
21549 shlibpath_overrides_runpath=no
21552 shlibpath_overrides_runpath=yes
21554 esac
21555 else
21556 shlibpath_overrides_runpath=yes
21560 os2*)
21561 libname_spec='$name'
21562 shrext_cmds=".dll"
21563 need_lib_prefix=no
21564 library_names_spec='$libname${shared_ext} $libname.a'
21565 dynamic_linker='OS/2 ld.exe'
21566 shlibpath_var=LIBPATH
21569 osf3* | osf4* | osf5*)
21570 version_type=osf
21571 need_lib_prefix=no
21572 need_version=no
21573 soname_spec='${libname}${release}${shared_ext}$major'
21574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21575 shlibpath_var=LD_LIBRARY_PATH
21576 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21577 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21580 rdos*)
21581 dynamic_linker=no
21584 solaris*)
21585 version_type=linux
21586 need_lib_prefix=no
21587 need_version=no
21588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21589 soname_spec='${libname}${release}${shared_ext}$major'
21590 shlibpath_var=LD_LIBRARY_PATH
21591 shlibpath_overrides_runpath=yes
21592 hardcode_into_libs=yes
21593 # ldd complains unless libraries are executable
21594 postinstall_cmds='chmod +x $lib'
21597 sunos4*)
21598 version_type=sunos
21599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21600 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21601 shlibpath_var=LD_LIBRARY_PATH
21602 shlibpath_overrides_runpath=yes
21603 if test "$with_gnu_ld" = yes; then
21604 need_lib_prefix=no
21606 need_version=yes
21609 sysv4 | sysv4.3*)
21610 version_type=linux
21611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21612 soname_spec='${libname}${release}${shared_ext}$major'
21613 shlibpath_var=LD_LIBRARY_PATH
21614 case $host_vendor in
21615 sni)
21616 shlibpath_overrides_runpath=no
21617 need_lib_prefix=no
21618 runpath_var=LD_RUN_PATH
21620 siemens)
21621 need_lib_prefix=no
21623 motorola)
21624 need_lib_prefix=no
21625 need_version=no
21626 shlibpath_overrides_runpath=no
21627 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21629 esac
21632 sysv4*MP*)
21633 if test -d /usr/nec ;then
21634 version_type=linux
21635 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21636 soname_spec='$libname${shared_ext}.$major'
21637 shlibpath_var=LD_LIBRARY_PATH
21641 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21642 version_type=freebsd-elf
21643 need_lib_prefix=no
21644 need_version=no
21645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21646 soname_spec='${libname}${release}${shared_ext}$major'
21647 shlibpath_var=LD_LIBRARY_PATH
21648 shlibpath_overrides_runpath=yes
21649 hardcode_into_libs=yes
21650 if test "$with_gnu_ld" = yes; then
21651 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21652 else
21653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21654 case $host_os in
21655 sco3.2v5*)
21656 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21658 esac
21660 sys_lib_dlsearch_path_spec='/usr/lib'
21663 tpf*)
21664 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21665 version_type=linux
21666 need_lib_prefix=no
21667 need_version=no
21668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21669 shlibpath_var=LD_LIBRARY_PATH
21670 shlibpath_overrides_runpath=no
21671 hardcode_into_libs=yes
21674 uts4*)
21675 version_type=linux
21676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21677 soname_spec='${libname}${release}${shared_ext}$major'
21678 shlibpath_var=LD_LIBRARY_PATH
21682 dynamic_linker=no
21684 esac
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21686 $as_echo "$dynamic_linker" >&6; }
21687 test "$dynamic_linker" = no && can_build_shared=no
21689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21690 if test "$GCC" = yes; then
21691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21694 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21695 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21697 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21698 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21739 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21740 hardcode_action_CXX=
21741 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21742 test -n "$runpath_var_CXX" ||
21743 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21745 # We can hardcode non-existent directories.
21746 if test "$hardcode_direct_CXX" != no &&
21747 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21748 # have to relink, otherwise we might link with an installed library
21749 # when we should be linking with a yet-to-be-installed one
21750 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21751 test "$hardcode_minus_L_CXX" != no; then
21752 # Linking always hardcodes the temporary library directory.
21753 hardcode_action_CXX=relink
21754 else
21755 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21756 hardcode_action_CXX=immediate
21758 else
21759 # We cannot hardcode anything, or else we can only hardcode existing
21760 # directories.
21761 hardcode_action_CXX=unsupported
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21764 $as_echo "$hardcode_action_CXX" >&6; }
21766 if test "$hardcode_action_CXX" = relink ||
21767 test "$inherit_rpath_CXX" = yes; then
21768 # Fast installation is not supported
21769 enable_fast_install=no
21770 elif test "$shlibpath_overrides_runpath" = yes ||
21771 test "$enable_shared" = no; then
21772 # Fast installation is not necessary
21773 enable_fast_install=needless
21782 fi # test -n "$compiler"
21784 CC=$lt_save_CC
21785 LDCXX=$LD
21786 LD=$lt_save_LD
21787 GCC=$lt_save_GCC
21788 with_gnu_ld=$lt_save_with_gnu_ld
21789 lt_cv_path_LDCXX=$lt_cv_path_LD
21790 lt_cv_path_LD=$lt_save_path_LD
21791 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21792 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21793 fi # test "$_lt_caught_CXX_error" != yes
21795 ac_ext=cpp
21796 ac_cpp='$CXXCPP $CPPFLAGS'
21797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21816 # Only expand once:
21822 # Identify the assembler which will work hand-in-glove with the newly
21823 # built GCC, so that we can examine its features. This is the assembler
21824 # which will be driven by the driver program.
21826 # If build != host, and we aren't building gas in-tree, we identify a
21827 # build->target assembler and hope that it will have the same features
21828 # as the host->target assembler we'll be using.
21829 gcc_cv_gas_major_version=
21830 gcc_cv_gas_minor_version=
21831 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21833 if test "${gcc_cv_as+set}" = set; then :
21835 else
21837 if test -x "$DEFAULT_ASSEMBLER"; then
21838 gcc_cv_as="$DEFAULT_ASSEMBLER"
21839 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21840 && test -f ../gas/Makefile \
21841 && test x$build = x$host; then
21842 gcc_cv_as=../gas/as-new$build_exeext
21843 elif test -x as$build_exeext; then
21844 # Build using assembler in the current directory.
21845 gcc_cv_as=./as$build_exeext
21846 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21847 gcc_cv_as="$AS_FOR_TARGET"
21848 else
21849 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21850 set dummy $AS_FOR_TARGET; ac_word=$2
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21852 $as_echo_n "checking for $ac_word... " >&6; }
21853 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21854 $as_echo_n "(cached) " >&6
21855 else
21856 case $gcc_cv_as in
21857 [\\/]* | ?:[\\/]*)
21858 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21862 for as_dir in $PATH
21864 IFS=$as_save_IFS
21865 test -z "$as_dir" && as_dir=.
21866 for ac_exec_ext in '' $ac_executable_extensions; do
21867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21868 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21870 break 2
21872 done
21873 done
21874 IFS=$as_save_IFS
21877 esac
21879 gcc_cv_as=$ac_cv_path_gcc_cv_as
21880 if test -n "$gcc_cv_as"; then
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21882 $as_echo "$gcc_cv_as" >&6; }
21883 else
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21885 $as_echo "no" >&6; }
21892 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21894 case "$ORIGINAL_AS_FOR_TARGET" in
21895 ./as | ./as$build_exeext) ;;
21896 *) ac_config_files="$ac_config_files as:exec-tool.in"
21898 esac
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21901 $as_echo_n "checking what assembler to use... " >&6; }
21902 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21903 # Single tree build which includes gas. We want to prefer it
21904 # over whatever linker top-level may have detected, since
21905 # we'll use what we're building after installation anyway.
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21907 $as_echo "newly built gas" >&6; }
21908 in_tree_gas=yes
21909 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21910 for f in $gcc_cv_as_bfd_srcdir/configure \
21911 $gcc_cv_as_gas_srcdir/configure \
21912 $gcc_cv_as_gas_srcdir/configure.ac \
21913 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21914 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21915 if test x$gcc_cv_gas_version != x; then
21916 break
21918 done
21919 case $gcc_cv_gas_version in
21920 VERSION=[0-9]*) ;;
21921 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21922 esac
21923 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21924 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21925 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21926 case $gcc_cv_gas_patch_version in
21927 "") gcc_cv_gas_patch_version="0" ;;
21928 esac
21929 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21930 + $gcc_cv_gas_minor_version \) \* 1000 \
21931 + $gcc_cv_gas_patch_version`
21933 in_tree_gas_is_elf=no
21934 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21935 || (grep 'obj_format = multi' ../gas/Makefile \
21936 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21937 then
21938 in_tree_gas_is_elf=yes
21940 else
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21942 $as_echo "$gcc_cv_as" >&6; }
21943 in_tree_gas=no
21946 default_ld=
21947 # Check whether --enable-ld was given.
21948 if test "${enable_ld+set}" = set; then :
21949 enableval=$enable_ld; case "${enableval}" in
21951 default_ld=ld.gold
21953 esac
21957 install_gold_as_default=no
21958 # Check whether --enable-gold was given.
21959 if test "${enable_gold+set}" = set; then :
21960 enableval=$enable_gold; case "${enableval}" in
21961 default)
21962 install_gold_as_default=yes
21964 yes)
21965 if test x${default_ld} != x; then
21966 install_gold_as_default=yes
21972 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21974 esac
21978 # Identify the linker which will work hand-in-glove with the newly
21979 # built GCC, so that we can examine its features. This is the linker
21980 # which will be driven by the driver program.
21982 # If build != host, and we aren't building gas in-tree, we identify a
21983 # build->target linker and hope that it will have the same features
21984 # as the host->target linker we'll be using.
21985 gcc_cv_gld_major_version=
21986 gcc_cv_gld_minor_version=
21987 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21988 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21989 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21991 if test "${gcc_cv_ld+set}" = set; then :
21993 else
21995 if test -x "$DEFAULT_LINKER"; then
21996 gcc_cv_ld="$DEFAULT_LINKER"
21997 elif test $install_gold_as_default = yes \
21998 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21999 && test -f ../gold/Makefile \
22000 && test x$build = x$host; then
22001 gcc_cv_ld=../gold/ld-new$build_exeext
22002 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22003 && test -f ../ld/Makefile \
22004 && test x$build = x$host; then
22005 gcc_cv_ld=../ld/ld-new$build_exeext
22006 elif test -x collect-ld$build_exeext; then
22007 # Build using linker in the current directory.
22008 gcc_cv_ld=./collect-ld$build_exeext
22009 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22010 gcc_cv_ld="$LD_FOR_TARGET"
22011 else
22012 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22013 set dummy $LD_FOR_TARGET; ac_word=$2
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22015 $as_echo_n "checking for $ac_word... " >&6; }
22016 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22017 $as_echo_n "(cached) " >&6
22018 else
22019 case $gcc_cv_ld in
22020 [\\/]* | ?:[\\/]*)
22021 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22025 for as_dir in $PATH
22027 IFS=$as_save_IFS
22028 test -z "$as_dir" && as_dir=.
22029 for ac_exec_ext in '' $ac_executable_extensions; do
22030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22031 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22033 break 2
22035 done
22036 done
22037 IFS=$as_save_IFS
22040 esac
22042 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22043 if test -n "$gcc_cv_ld"; then
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22045 $as_echo "$gcc_cv_ld" >&6; }
22046 else
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22048 $as_echo "no" >&6; }
22055 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22056 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22057 # if the PLUGIN_LD is set ld-new, just have it as ld
22058 # as that is the installed named.
22059 if test x$PLUGIN_LD_SUFFIX = xld-new \
22060 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22061 PLUGIN_LD_SUFFIX=ld
22064 # Check whether --with-plugin-ld was given.
22065 if test "${with_plugin_ld+set}" = set; then :
22066 withval=$with_plugin_ld; if test x"$withval" != x; then
22067 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22068 PLUGIN_LD_SUFFIX="$withval"
22074 cat >>confdefs.h <<_ACEOF
22075 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22076 _ACEOF
22079 # Check to see if we are using gold instead of ld
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22081 $as_echo_n "checking whether we are using gold... " >&6; }
22082 ld_is_gold=no
22083 if test x$gcc_cv_ld != x; then
22084 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22085 | grep "GNU gold" > /dev/null; then
22086 ld_is_gold=yes
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22090 $as_echo "$ld_is_gold" >&6; }
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22093 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22094 # Check to see if default ld is not gold, but gold is
22095 # available and has support for split stack. If gcc was configured
22096 # with gold then no checking is done.
22098 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22100 # For platforms other than powerpc64*, enable as appropriate.
22102 gold_non_default=no
22103 ld_gold=`which ${gcc_cv_ld}.gold`
22104 # Make sure this gold has minimal split stack support
22105 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22106 ld_vers=`$ld_gold --version | sed 1q`
22107 gold_vers=`echo $ld_vers | sed -n \
22108 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22109 case $target in
22110 # check that the gold version contains the complete split stack support
22111 # on powerpc64 big and little endian
22112 powerpc64*-*-*)
22113 case "$gold_vers" in
22114 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22116 *) gold_non_default=no
22118 esac
22120 esac
22122 if test $gold_non_default = yes; then
22124 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22129 $as_echo "$gold_non_default" >&6; }
22131 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22133 case "$ORIGINAL_LD_FOR_TARGET" in
22134 ./collect-ld | ./collect-ld$build_exeext) ;;
22135 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22137 esac
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22140 $as_echo_n "checking what linker to use... " >&6; }
22141 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22142 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22143 # Single tree build which includes ld. We want to prefer it
22144 # over whatever linker top-level may have detected, since
22145 # we'll use what we're building after installation anyway.
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22147 $as_echo "newly built ld" >&6; }
22148 in_tree_ld=yes
22149 in_tree_ld_is_elf=no
22150 if (grep 'EMUL = .*elf' ../ld/Makefile \
22151 || grep 'EMUL = .*linux' ../ld/Makefile \
22152 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22153 in_tree_ld_is_elf=yes
22154 elif test "$ld_is_gold" = yes; then
22155 in_tree_ld_is_elf=yes
22157 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
22159 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22160 if test x$gcc_cv_gld_version != x; then
22161 break
22163 done
22164 case $gcc_cv_gld_version in
22165 VERSION=[0-9]*) ;;
22166 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22167 esac
22168 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22169 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22170 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22171 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22172 else
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22174 $as_echo "$gcc_cv_ld" >&6; }
22175 in_tree_ld=no
22176 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22177 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22178 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22184 # Figure out what nm we will be using.
22185 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22186 if test "${gcc_cv_nm+set}" = set; then :
22188 else
22190 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22191 && test -f ../binutils/Makefile \
22192 && test x$build = x$host; then
22193 gcc_cv_nm=../binutils/nm-new$build_exeext
22194 elif test -x nm$build_exeext; then
22195 gcc_cv_nm=./nm$build_exeext
22196 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22197 gcc_cv_nm="$NM_FOR_TARGET"
22198 else
22199 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22200 set dummy $NM_FOR_TARGET; ac_word=$2
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22202 $as_echo_n "checking for $ac_word... " >&6; }
22203 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22204 $as_echo_n "(cached) " >&6
22205 else
22206 case $gcc_cv_nm in
22207 [\\/]* | ?:[\\/]*)
22208 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22212 for as_dir in $PATH
22214 IFS=$as_save_IFS
22215 test -z "$as_dir" && as_dir=.
22216 for ac_exec_ext in '' $ac_executable_extensions; do
22217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22218 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22220 break 2
22222 done
22223 done
22224 IFS=$as_save_IFS
22227 esac
22229 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22230 if test -n "$gcc_cv_nm"; then
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22232 $as_echo "$gcc_cv_nm" >&6; }
22233 else
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22235 $as_echo "no" >&6; }
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22243 $as_echo_n "checking what nm to use... " >&6; }
22244 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22245 # Single tree build which includes binutils.
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22247 $as_echo "newly built nm" >&6; }
22248 in_tree_nm=yes
22249 else
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22251 $as_echo "$gcc_cv_nm" >&6; }
22252 in_tree_nm=no
22255 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22257 case "$ORIGINAL_NM_FOR_TARGET" in
22258 ./nm | ./nm$build_exeext) ;;
22259 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22261 esac
22264 # Figure out what objdump we will be using.
22265 if test "${gcc_cv_objdump+set}" = set; then :
22267 else
22269 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22270 && test -f ../binutils/Makefile \
22271 && test x$build = x$host; then
22272 # Single tree build which includes binutils.
22273 gcc_cv_objdump=../binutils/objdump$build_exeext
22274 elif test -x objdump$build_exeext; then
22275 gcc_cv_objdump=./objdump$build_exeext
22276 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22277 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22278 else
22279 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22280 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22282 $as_echo_n "checking for $ac_word... " >&6; }
22283 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22284 $as_echo_n "(cached) " >&6
22285 else
22286 case $gcc_cv_objdump in
22287 [\\/]* | ?:[\\/]*)
22288 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22292 for as_dir in $PATH
22294 IFS=$as_save_IFS
22295 test -z "$as_dir" && as_dir=.
22296 for ac_exec_ext in '' $ac_executable_extensions; do
22297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22298 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22300 break 2
22302 done
22303 done
22304 IFS=$as_save_IFS
22307 esac
22309 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22310 if test -n "$gcc_cv_objdump"; then
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22312 $as_echo "$gcc_cv_objdump" >&6; }
22313 else
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22315 $as_echo "no" >&6; }
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22323 $as_echo_n "checking what objdump to use... " >&6; }
22324 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22325 # Single tree build which includes binutils.
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22327 $as_echo "newly built objdump" >&6; }
22328 elif test x$gcc_cv_objdump = x; then
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22330 $as_echo "not found" >&6; }
22331 else
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22333 $as_echo "$gcc_cv_objdump" >&6; }
22336 # Figure out what readelf we will be using.
22337 if test "${gcc_cv_readelf+set}" = set; then :
22339 else
22341 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22342 && test -f ../binutils/Makefile \
22343 && test x$build = x$host; then
22344 # Single tree build which includes binutils.
22345 gcc_cv_readelf=../binutils/readelf$build_exeext
22346 elif test -x readelf$build_exeext; then
22347 gcc_cv_readelf=./readelf$build_exeext
22348 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22349 gcc_cv_readelf="$READELF_FOR_TARGET"
22350 else
22351 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22352 set dummy $READELF_FOR_TARGET; ac_word=$2
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22354 $as_echo_n "checking for $ac_word... " >&6; }
22355 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22356 $as_echo_n "(cached) " >&6
22357 else
22358 case $gcc_cv_readelf in
22359 [\\/]* | ?:[\\/]*)
22360 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22364 for as_dir in $PATH
22366 IFS=$as_save_IFS
22367 test -z "$as_dir" && as_dir=.
22368 for ac_exec_ext in '' $ac_executable_extensions; do
22369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22370 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22372 break 2
22374 done
22375 done
22376 IFS=$as_save_IFS
22379 esac
22381 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22382 if test -n "$gcc_cv_readelf"; then
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22384 $as_echo "$gcc_cv_readelf" >&6; }
22385 else
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22387 $as_echo "no" >&6; }
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22395 $as_echo_n "checking what readelf to use... " >&6; }
22396 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22397 # Single tree build which includes binutils.
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22399 $as_echo "newly built readelf" >&6; }
22400 elif test x$gcc_cv_readelf = x; then
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22402 $as_echo "not found" >&6; }
22403 else
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22405 $as_echo "$gcc_cv_readelf" >&6; }
22408 # Figure out what assembler alignment features are present.
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22410 $as_echo_n "checking assembler flags... " >&6; }
22411 if test "${gcc_cv_as_flags+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22413 else
22414 case "$target" in
22415 i[34567]86-*-linux*)
22416 gcc_cv_as_flags=--32
22418 x86_64-*-linux-gnux32)
22419 gcc_cv_as_flags=--x32
22421 x86_64-*-linux*)
22422 gcc_cv_as_flags=--64
22424 powerpc*-*-darwin*)
22425 gcc_cv_as_flags="-arch ppc"
22428 gcc_cv_as_flags=" "
22430 esac
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22433 $as_echo "$gcc_cv_as_flags" >&6; }
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22436 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22437 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22439 else
22440 gcc_cv_as_balign_and_p2align=no
22441 if test $in_tree_gas = yes; then
22442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22443 then gcc_cv_as_balign_and_p2align=yes
22445 elif test x$gcc_cv_as != x; then
22446 $as_echo '.balign 4
22447 .p2align 2' > conftest.s
22448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22450 (eval $ac_try) 2>&5
22451 ac_status=$?
22452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22453 test $ac_status = 0; }; }
22454 then
22455 gcc_cv_as_balign_and_p2align=yes
22456 else
22457 echo "configure: failed program was" >&5
22458 cat conftest.s >&5
22460 rm -f conftest.o conftest.s
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22464 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22465 if test $gcc_cv_as_balign_and_p2align = yes; then
22467 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22472 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22473 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 gcc_cv_as_max_skip_p2align=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22479 then gcc_cv_as_max_skip_p2align=yes
22481 elif test x$gcc_cv_as != x; then
22482 $as_echo '.p2align 4,,7' > conftest.s
22483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22485 (eval $ac_try) 2>&5
22486 ac_status=$?
22487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22488 test $ac_status = 0; }; }
22489 then
22490 gcc_cv_as_max_skip_p2align=yes
22491 else
22492 echo "configure: failed program was" >&5
22493 cat conftest.s >&5
22495 rm -f conftest.o conftest.s
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22499 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22500 if test $gcc_cv_as_max_skip_p2align = yes; then
22502 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22507 $as_echo_n "checking assembler for .literal16... " >&6; }
22508 if test "${gcc_cv_as_literal16+set}" = set; then :
22509 $as_echo_n "(cached) " >&6
22510 else
22511 gcc_cv_as_literal16=no
22512 if test $in_tree_gas = yes; then
22513 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22514 then gcc_cv_as_literal16=yes
22516 elif test x$gcc_cv_as != x; then
22517 $as_echo '.literal16' > conftest.s
22518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22520 (eval $ac_try) 2>&5
22521 ac_status=$?
22522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22523 test $ac_status = 0; }; }
22524 then
22525 gcc_cv_as_literal16=yes
22526 else
22527 echo "configure: failed program was" >&5
22528 cat conftest.s >&5
22530 rm -f conftest.o conftest.s
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22534 $as_echo "$gcc_cv_as_literal16" >&6; }
22535 if test $gcc_cv_as_literal16 = yes; then
22537 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22542 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22543 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22544 $as_echo_n "(cached) " >&6
22545 else
22546 gcc_cv_as_subsection_m1=no
22547 if test $in_tree_gas = yes; then
22548 if test $in_tree_gas_is_elf = yes \
22549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22550 then gcc_cv_as_subsection_m1=yes
22552 elif test x$gcc_cv_as != x; then
22553 $as_echo 'conftest_label1: .word 0
22554 .subsection -1
22555 conftest_label2: .word 0
22556 .previous' > conftest.s
22557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22559 (eval $ac_try) 2>&5
22560 ac_status=$?
22561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22562 test $ac_status = 0; }; }
22563 then
22564 if test x$gcc_cv_nm != x; then
22565 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22566 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22567 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22568 then :
22569 else gcc_cv_as_subsection_m1=yes
22571 rm -f conftest.nm1 conftest.nm2
22573 else
22574 echo "configure: failed program was" >&5
22575 cat conftest.s >&5
22577 rm -f conftest.o conftest.s
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22581 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22582 if test $gcc_cv_as_subsection_m1 = yes; then
22584 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22589 $as_echo_n "checking assembler for .weak... " >&6; }
22590 if test "${gcc_cv_as_weak+set}" = set; then :
22591 $as_echo_n "(cached) " >&6
22592 else
22593 gcc_cv_as_weak=no
22594 if test $in_tree_gas = yes; then
22595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22596 then gcc_cv_as_weak=yes
22598 elif test x$gcc_cv_as != x; then
22599 $as_echo ' .weak foobar' > conftest.s
22600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22602 (eval $ac_try) 2>&5
22603 ac_status=$?
22604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22605 test $ac_status = 0; }; }
22606 then
22607 gcc_cv_as_weak=yes
22608 else
22609 echo "configure: failed program was" >&5
22610 cat conftest.s >&5
22612 rm -f conftest.o conftest.s
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22616 $as_echo "$gcc_cv_as_weak" >&6; }
22617 if test $gcc_cv_as_weak = yes; then
22619 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22624 $as_echo_n "checking assembler for .weakref... " >&6; }
22625 if test "${gcc_cv_as_weakref+set}" = set; then :
22626 $as_echo_n "(cached) " >&6
22627 else
22628 gcc_cv_as_weakref=no
22629 if test $in_tree_gas = yes; then
22630 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22631 then gcc_cv_as_weakref=yes
22633 elif test x$gcc_cv_as != x; then
22634 $as_echo ' .weakref foobar, barfnot' > conftest.s
22635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22640 test $ac_status = 0; }; }
22641 then
22642 gcc_cv_as_weakref=yes
22643 else
22644 echo "configure: failed program was" >&5
22645 cat conftest.s >&5
22647 rm -f conftest.o conftest.s
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22651 $as_echo "$gcc_cv_as_weakref" >&6; }
22652 if test $gcc_cv_as_weakref = yes; then
22654 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22659 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22660 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22661 $as_echo_n "(cached) " >&6
22662 else
22663 gcc_cv_as_nsubspa_comdat=no
22664 if test $in_tree_gas = yes; then
22665 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22666 then gcc_cv_as_nsubspa_comdat=yes
22668 elif test x$gcc_cv_as != x; then
22669 $as_echo ' .SPACE $TEXT$
22670 .NSUBSPA $CODE$,COMDAT' > conftest.s
22671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22673 (eval $ac_try) 2>&5
22674 ac_status=$?
22675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22676 test $ac_status = 0; }; }
22677 then
22678 gcc_cv_as_nsubspa_comdat=yes
22679 else
22680 echo "configure: failed program was" >&5
22681 cat conftest.s >&5
22683 rm -f conftest.o conftest.s
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22687 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22688 if test $gcc_cv_as_nsubspa_comdat = yes; then
22690 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22694 # .hidden needs to be supported in both the assembler and the linker,
22695 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22696 # This is irritatingly difficult to feature test for; we have to check the
22697 # date string after the version number. If we've got an in-tree
22698 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22699 # to be safe.
22700 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22702 $as_echo_n "checking assembler for .hidden... " >&6; }
22703 if test "${gcc_cv_as_hidden+set}" = set; then :
22704 $as_echo_n "(cached) " >&6
22705 else
22706 gcc_cv_as_hidden=no
22707 if test $in_tree_gas = yes; then
22708 if test $in_tree_gas_is_elf = yes \
22709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22710 then gcc_cv_as_hidden=yes
22712 elif test x$gcc_cv_as != x; then
22713 $as_echo ' .hidden foobar
22714 foobar:' > conftest.s
22715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22720 test $ac_status = 0; }; }
22721 then
22722 gcc_cv_as_hidden=yes
22723 else
22724 echo "configure: failed program was" >&5
22725 cat conftest.s >&5
22727 rm -f conftest.o conftest.s
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22731 $as_echo "$gcc_cv_as_hidden" >&6; }
22733 case "${target}" in
22734 *-*-darwin*)
22735 # Darwin as has some visibility support, though with a different syntax.
22736 gcc_cv_as_hidden=yes
22738 esac
22740 # gnu_indirect_function type is an extension proposed at
22741 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22742 # selection of function implementation
22743 # Check whether --enable-gnu-indirect-function was given.
22744 if test "${enable_gnu_indirect_function+set}" = set; then :
22745 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22746 yes | no) ;;
22747 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22748 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22749 esac
22750 else
22751 enable_gnu_indirect_function="$default_gnu_indirect_function"
22755 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22757 cat >>confdefs.h <<_ACEOF
22758 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22759 _ACEOF
22763 if test $in_tree_ld != yes ; then
22764 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22765 if echo "$ld_ver" | grep GNU > /dev/null; then
22766 if test x"$ld_is_gold" = xyes; then
22767 # GNU gold --version looks like this:
22769 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22771 # We extract the binutils version which is more familiar and specific
22772 # than the gold version.
22773 ld_vers=`echo $ld_ver | sed -n \
22774 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22775 else
22776 # GNU ld --version looks like this:
22778 # GNU ld (GNU Binutils) 2.21.51.20110225
22779 ld_vers=`echo $ld_ver | sed -n \
22780 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22782 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22783 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22784 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22785 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22786 else
22787 case "${target}" in
22788 *-*-solaris2*)
22789 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22790 # format.
22792 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22793 # /usr/ccs/bin/ld has been configured.
22794 ld_ver=`$gcc_cv_ld -V 2>&1`
22795 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22796 ld_vers=`echo $ld_ver | sed -n \
22797 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22798 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22799 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22802 esac
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22807 $as_echo_n "checking linker for .hidden support... " >&6; }
22808 if test "${gcc_cv_ld_hidden+set}" = set; then :
22809 $as_echo_n "(cached) " >&6
22810 else
22811 if test $in_tree_ld = yes ; then
22812 gcc_cv_ld_hidden=no
22813 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
22814 && test $in_tree_ld_is_elf = yes; then
22815 gcc_cv_ld_hidden=yes
22817 else
22818 gcc_cv_ld_hidden=yes
22819 if test x"$ld_is_gold" = xyes; then
22821 elif echo "$ld_ver" | grep GNU > /dev/null; then
22822 case "${target}" in
22823 mmix-knuth-mmixware)
22824 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22825 gcc_cv_ld_hidden=no
22827 esac
22828 if test 0"$ld_date" -lt 20020404; then
22829 if test -n "$ld_date"; then
22830 # If there was date string, but was earlier than 2002-04-04, fail
22831 gcc_cv_ld_hidden=no
22832 elif test -z "$ld_vers"; then
22833 # If there was no date string nor ld version number, something is wrong
22834 gcc_cv_ld_hidden=no
22835 else
22836 test -z "$ld_vers_patch" && ld_vers_patch=0
22837 if test "$ld_vers_major" -lt 2; then
22838 gcc_cv_ld_hidden=no
22839 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22840 gcc_cv_ld_hidden="no"
22841 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22842 gcc_cv_ld_hidden=no
22846 else
22847 case "${target}" in
22848 *-*-darwin*)
22849 # Darwin ld has some visibility support.
22850 gcc_cv_ld_hidden=yes
22852 hppa64*-*-hpux* | ia64*-*-hpux*)
22853 gcc_cv_ld_hidden=yes
22855 *-*-solaris2.1[0-9]*)
22856 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22857 # .symbolic was only added in Solaris 9 12/02.
22858 gcc_cv_ld_hidden=yes
22861 gcc_cv_ld_hidden=no
22863 esac
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22868 $as_echo "$gcc_cv_ld_hidden" >&6; }
22869 libgcc_visibility=no
22872 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22873 libgcc_visibility=yes
22875 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22880 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22881 gcc_cv_ld_ro_rw_mix=unknown
22882 if test $in_tree_ld = yes ; then
22883 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
22884 && test $in_tree_ld_is_elf = yes; then
22885 gcc_cv_ld_ro_rw_mix=read-write
22887 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22888 echo '.section myfoosect, "a"' > conftest1.s
22889 echo '.section myfoosect, "aw"' > conftest2.s
22890 echo '.byte 1' >> conftest2.s
22891 echo '.section myfoosect, "a"' > conftest3.s
22892 echo '.byte 0' >> conftest3.s
22893 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22894 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22895 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22896 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22897 conftest2.o conftest3.o > /dev/null 2>&1; then
22898 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22899 | sed -e '/myfoosect/!d' -e N`
22900 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22901 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22902 gcc_cv_ld_ro_rw_mix=read-only
22903 else
22904 gcc_cv_ld_ro_rw_mix=read-write
22908 rm -f conftest.* conftest[123].*
22910 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22912 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22916 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22918 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22919 case "${target}" in
22920 *-*-solaris2*)
22922 # Solaris 2 ld -V output looks like this for a regular version:
22924 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22926 # but test versions add stuff at the end:
22928 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22930 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22931 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22932 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22933 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22934 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22935 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22938 esac
22941 # Check whether --enable-initfini-array was given.
22942 if test "${enable_initfini_array+set}" = set; then :
22943 enableval=$enable_initfini_array;
22944 else
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22947 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22948 if test "${gcc_cv_initfini_array+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22952 case "${target}" in
22953 ia64-*)
22954 if test "$cross_compiling" = yes; then :
22955 gcc_cv_initfini_array=no
22956 else
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22960 #ifndef __ELF__
22961 #error Not an ELF OS
22962 #endif
22963 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22964 if it can be used. */
22965 static int x = -1;
22966 int main (void) { return x; }
22967 int foo (void) { x = 0; }
22968 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22970 _ACEOF
22971 if ac_fn_cxx_try_run "$LINENO"; then :
22972 gcc_cv_initfini_array=yes
22973 else
22974 gcc_cv_initfini_array=no
22976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22977 conftest.$ac_objext conftest.beam conftest.$ac_ext
22981 gcc_cv_initfini_array=no
22982 if test $in_tree_ld = yes ; then
22983 if test "$gcc_cv_gld_major_version" -eq 2 \
22984 -a "$gcc_cv_gld_minor_version" -ge 22 \
22985 -o "$gcc_cv_gld_major_version" -gt 2 \
22986 && test $in_tree_ld_is_elf = yes; then
22987 gcc_cv_initfini_array=yes
22989 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22990 case $target:$gas in
22991 *:yes)
22992 sh_flags='"a"'
22993 sh_type='%progbits'
22995 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22996 sh_flags='"a"'
22997 sh_type='@progbits'
22999 sparc*-*-solaris2*:no)
23000 sh_flags='#alloc'
23001 sh_type='#progbits'
23002 sh_quote='"'
23004 esac
23005 case "$target:$gnu_ld" in
23006 *:yes)
23007 cat > conftest.s <<EOF
23008 .section .dtors,$sh_flags,$sh_type
23009 .balign 4
23010 .byte 'A', 'A', 'A', 'A'
23011 .section .ctors,$sh_flags,$sh_type
23012 .balign 4
23013 .byte 'B', 'B', 'B', 'B'
23014 .section .fini_array.65530,$sh_flags,$sh_type
23015 .balign 4
23016 .byte 'C', 'C', 'C', 'C'
23017 .section .init_array.65530,$sh_flags,$sh_type
23018 .balign 4
23019 .byte 'D', 'D', 'D', 'D'
23020 .section .dtors.64528,$sh_flags,$sh_type
23021 .balign 4
23022 .byte 'E', 'E', 'E', 'E'
23023 .section .ctors.64528,$sh_flags,$sh_type
23024 .balign 4
23025 .byte 'F', 'F', 'F', 'F'
23026 .section .fini_array.01005,$sh_flags,$sh_type
23027 .balign 4
23028 .byte 'G', 'G', 'G', 'G'
23029 .section .init_array.01005,$sh_flags,$sh_type
23030 .balign 4
23031 .byte 'H', 'H', 'H', 'H'
23032 .text
23033 .globl _start
23034 _start:
23036 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23037 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23038 && $gcc_cv_objdump -s -j .init_array conftest \
23039 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23040 && $gcc_cv_objdump -s -j .fini_array conftest \
23041 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23042 gcc_cv_initfini_array=yes
23045 *-*-solaris2*:no)
23046 # When Solaris ld added constructor priority support, it was
23047 # decided to only handle .init_array.N/.fini_array.N since
23048 # there was no need for backwards compatibility with
23049 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23050 # sections with correct execution order resp. to
23051 # .init_array/.fini_array, while gld merges them into
23052 # .init_array/.fini_array.
23053 cat > conftest.s <<EOF
23054 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23055 .align 4
23056 .byte 'C', 'C', 'C', 'C'
23057 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23058 .align 4
23059 .byte 'D', 'D', 'D', 'D'
23060 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23061 .align 4
23062 .byte 'G', 'G', 'G', 'G'
23063 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23064 .align 4
23065 .byte 'H', 'H', 'H', 'H'
23066 .text
23067 .globl _start
23068 _start:
23070 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23071 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23072 && $gcc_cv_objdump -s -j .init_array conftest \
23073 | grep HHHHDDDD > /dev/null 2>&1 \
23074 && $gcc_cv_objdump -s -j .fini_array conftest \
23075 | grep GGGGCCCC > /dev/null 2>&1; then
23076 gcc_cv_initfini_array=yes
23079 esac
23080 rm -f conftest conftest.*
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23085 #ifndef __ELF__
23086 # error Not an ELF OS
23087 #endif
23088 #include <stdlib.h>
23089 #if defined __GLIBC_PREREQ
23090 # if __GLIBC_PREREQ (2, 4)
23091 # else
23092 # error GLIBC 2.4 required
23093 # endif
23094 #else
23095 # if defined __sun__ && defined __svr4__
23096 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23097 # else
23098 # error The C library not known to support .init_array/.fini_array
23099 # endif
23100 #endif
23102 _ACEOF
23103 if ac_fn_cxx_try_cpp "$LINENO"; then :
23105 else
23106 gcc_cv_initfini_array=no
23108 rm -f conftest.err conftest.$ac_ext;;
23109 esac
23110 else
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23112 $as_echo_n "checking cross compile... guessing... " >&6; }
23113 gcc_cv_initfini_array=no
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23117 $as_echo "$gcc_cv_initfini_array" >&6; }
23118 enable_initfini_array=$gcc_cv_initfini_array
23123 cat >>confdefs.h <<_ACEOF
23124 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23125 _ACEOF
23129 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23131 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23132 if test "${gcc_cv_as_leb128+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23134 else
23135 gcc_cv_as_leb128=no
23136 if test $in_tree_gas = yes; then
23137 if test $in_tree_gas_is_elf = yes \
23138 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23139 then gcc_cv_as_leb128=yes
23141 elif test x$gcc_cv_as != x; then
23142 $as_echo ' .data
23143 .uleb128 L2 - L1
23145 .uleb128 1280
23146 .sleb128 -1010
23147 L2:' > conftest.s
23148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23154 then
23155 # GAS versions before 2.11 do not support uleb128,
23156 # despite appearing to.
23157 # ??? There exists an elf-specific test that will crash
23158 # the assembler. Perhaps it's better to figure out whether
23159 # arbitrary sections are supported and try the test.
23160 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23161 if echo "$as_ver" | grep GNU > /dev/null; then
23162 as_vers=`echo $as_ver | sed -n \
23163 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23164 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23165 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23166 if test $as_major -eq 2 && test $as_minor -lt 11
23167 then :
23168 else gcc_cv_as_leb128=yes
23171 else
23172 echo "configure: failed program was" >&5
23173 cat conftest.s >&5
23175 rm -f conftest.o conftest.s
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23179 $as_echo "$gcc_cv_as_leb128" >&6; }
23180 if test $gcc_cv_as_leb128 = yes; then
23182 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23186 # Check if we have assembler support for unwind directives.
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23188 $as_echo_n "checking assembler for cfi directives... " >&6; }
23189 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23190 $as_echo_n "(cached) " >&6
23191 else
23192 gcc_cv_as_cfi_directive=no
23193 if test x$gcc_cv_as != x; then
23194 $as_echo ' .text
23195 .cfi_startproc
23196 .cfi_offset 0, 0
23197 .cfi_same_value 1
23198 .cfi_def_cfa 1, 2
23199 .cfi_escape 1, 2, 3, 4, 5
23200 .cfi_endproc' > conftest.s
23201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23203 (eval $ac_try) 2>&5
23204 ac_status=$?
23205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23206 test $ac_status = 0; }; }
23207 then
23208 case "$target" in
23209 *-*-solaris*)
23210 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23211 # read-only and read-write sections, we need to make sure that the
23212 # assembler used emits read-write .eh_frame sections.
23213 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23214 if test "x$gcc_cv_objdump" != x; then
23215 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23216 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23217 gcc_cv_as_cfi_directive=no
23218 else
23219 case "$target" in
23220 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23221 # On Solaris/x86, make sure that GCC and assembler agree on using
23222 # read-only .eh_frame sections for 64-bit.
23223 if test x$gas = xyes; then
23224 as_ix86_64_opt="--64"
23225 else
23226 as_ix86_64_opt="-xarch=amd64"
23228 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23229 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23230 sed -e /.eh_frame/!d -e N | \
23231 grep READONLY > /dev/null; then
23232 gcc_cv_as_cfi_directive=yes
23233 else
23234 gcc_cv_as_cfi_directive=no
23238 gcc_cv_as_cfi_directive=yes
23240 esac
23242 else
23243 # no objdump, err on the side of caution
23244 gcc_cv_as_cfi_directive=no
23246 else
23247 gcc_cv_as_cfi_directive=yes
23250 *-*-*)
23251 gcc_cv_as_cfi_directive=yes
23253 esac
23254 else
23255 echo "configure: failed program was" >&5
23256 cat conftest.s >&5
23258 rm -f conftest.o conftest.s
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23262 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23264 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23266 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23267 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23268 $as_echo_n "(cached) " >&6
23269 else
23270 gcc_cv_as_cfi_advance_working=no
23271 if test x$gcc_cv_as != x; then
23272 $as_echo ' .text
23273 .cfi_startproc
23274 .cfi_adjust_cfa_offset 64
23275 .skip 75040, 0
23276 .cfi_adjust_cfa_offset 128
23277 .cfi_endproc' > conftest.s
23278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23280 (eval $ac_try) 2>&5
23281 ac_status=$?
23282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23283 test $ac_status = 0; }; }
23284 then
23286 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23287 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23288 gcc_cv_as_cfi_advance_working=yes
23291 else
23292 echo "configure: failed program was" >&5
23293 cat conftest.s >&5
23295 rm -f conftest.o conftest.s
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23299 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23301 else
23302 # no objdump, err on the side of caution
23303 gcc_cv_as_cfi_advance_working=no
23307 cat >>confdefs.h <<_ACEOF
23308 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23309 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23310 _ACEOF
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23315 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23316 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23319 gcc_cv_as_cfi_personality_directive=no
23320 if test x$gcc_cv_as != x; then
23321 $as_echo ' .text
23322 .cfi_startproc
23323 .cfi_personality 0, symbol
23324 .cfi_endproc' > conftest.s
23325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23327 (eval $ac_try) 2>&5
23328 ac_status=$?
23329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23330 test $ac_status = 0; }; }
23331 then
23332 gcc_cv_as_cfi_personality_directive=yes
23333 else
23334 echo "configure: failed program was" >&5
23335 cat conftest.s >&5
23337 rm -f conftest.o conftest.s
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23341 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23344 cat >>confdefs.h <<_ACEOF
23345 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23346 then echo 1; else echo 0; fi`
23347 _ACEOF
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23351 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23352 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23353 $as_echo_n "(cached) " >&6
23354 else
23355 gcc_cv_as_cfi_sections_directive=no
23356 if test x$gcc_cv_as != x; then
23357 $as_echo ' .text
23358 .cfi_sections .debug_frame, .eh_frame
23359 .cfi_startproc
23360 .cfi_endproc' > conftest.s
23361 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23363 (eval $ac_try) 2>&5
23364 ac_status=$?
23365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23366 test $ac_status = 0; }; }
23367 then
23368 case $target_os in
23369 win32 | pe | cygwin* | mingw32*)
23370 # Need to check that we generated the correct relocation for the
23371 # .debug_frame section. This was fixed for binutils 2.21.
23372 gcc_cv_as_cfi_sections_directive=no
23373 if test "x$gcc_cv_objdump" != x; then
23374 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23375 grep secrel > /dev/null; then
23376 gcc_cv_as_cfi_sections_directive=yes
23381 gcc_cv_as_cfi_sections_directive=yes
23383 esac
23384 else
23385 echo "configure: failed program was" >&5
23386 cat conftest.s >&5
23388 rm -f conftest.o conftest.s
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23392 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23396 cat >>confdefs.h <<_ACEOF
23397 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23398 then echo 1; else echo 0; fi`
23399 _ACEOF
23402 # GAS versions up to and including 2.11.0 may mis-optimize
23403 # .eh_frame data.
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23405 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23406 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23407 $as_echo_n "(cached) " >&6
23408 else
23409 gcc_cv_as_eh_frame=no
23410 if test $in_tree_gas = yes; then
23411 if test $in_tree_gas_is_elf = yes \
23412 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23413 then gcc_cv_as_eh_frame=yes
23415 elif test x$gcc_cv_as != x; then
23416 $as_echo ' .text
23417 .LFB1:
23418 .4byte 0
23419 .L1:
23420 .4byte 0
23421 .LFE1:
23422 .section .eh_frame,"aw",@progbits
23423 __FRAME_BEGIN__:
23424 .4byte .LECIE1-.LSCIE1
23425 .LSCIE1:
23426 .4byte 0x0
23427 .byte 0x1
23428 .ascii "z\0"
23429 .byte 0x1
23430 .byte 0x78
23431 .byte 0x1a
23432 .byte 0x0
23433 .byte 0x4
23434 .4byte 1
23435 .p2align 1
23436 .LECIE1:
23437 .LSFDE1:
23438 .4byte .LEFDE1-.LASFDE1
23439 .LASFDE1:
23440 .4byte .LASFDE1-__FRAME_BEGIN__
23441 .4byte .LFB1
23442 .4byte .LFE1-.LFB1
23443 .byte 0x4
23444 .4byte .LFE1-.LFB1
23445 .byte 0x4
23446 .4byte .L1-.LFB1
23447 .LEFDE1:' > conftest.s
23448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23450 (eval $ac_try) 2>&5
23451 ac_status=$?
23452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23453 test $ac_status = 0; }; }
23454 then
23455 cat > conftest.lit <<EOF
23456 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23457 0010 01000000 12000000 18000000 00000000 ................
23458 0020 08000000 04080000 0044 .........D
23460 cat > conftest.big <<EOF
23461 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23462 0010 00000001 00000012 00000018 00000000 ................
23463 0020 00000008 04000000 0844 .........D
23465 # If the assembler didn't choke, and we can objdump,
23466 # and we got the correct data, then succeed.
23467 # The text in the here-document typically retains its unix-style line
23468 # endings, while the output of objdump will use host line endings.
23469 # Therefore, use diff -b for the comparisons.
23470 if test x$gcc_cv_objdump != x \
23471 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23472 | tail -3 > conftest.got \
23473 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23474 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23475 then
23476 gcc_cv_as_eh_frame=yes
23477 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23479 (eval $ac_try) 2>&5
23480 ac_status=$?
23481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23482 test $ac_status = 0; }; }; then
23483 gcc_cv_as_eh_frame=buggy
23484 else
23485 # Uh oh, what do we do now?
23486 gcc_cv_as_eh_frame=no
23488 else
23489 echo "configure: failed program was" >&5
23490 cat conftest.s >&5
23492 rm -f conftest.o conftest.s
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23496 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23499 if test $gcc_cv_as_eh_frame = buggy; then
23501 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23506 $as_echo_n "checking assembler for section merging support... " >&6; }
23507 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23508 $as_echo_n "(cached) " >&6
23509 else
23510 gcc_cv_as_shf_merge=no
23511 if test $in_tree_gas = yes; then
23512 if test $in_tree_gas_is_elf = yes \
23513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23514 then gcc_cv_as_shf_merge=yes
23516 elif test x$gcc_cv_as != x; then
23517 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23523 test $ac_status = 0; }; }
23524 then
23525 gcc_cv_as_shf_merge=yes
23526 else
23527 echo "configure: failed program was" >&5
23528 cat conftest.s >&5
23530 rm -f conftest.o conftest.s
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23534 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23536 if test $gcc_cv_as_shf_merge = no; then
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23538 $as_echo_n "checking assembler for section merging support... " >&6; }
23539 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23540 $as_echo_n "(cached) " >&6
23541 else
23542 gcc_cv_as_shf_merge=no
23543 if test $in_tree_gas = yes; then
23544 if test $in_tree_gas_is_elf = yes \
23545 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23546 then gcc_cv_as_shf_merge=yes
23548 elif test x$gcc_cv_as != x; then
23549 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }
23556 then
23557 gcc_cv_as_shf_merge=yes
23558 else
23559 echo "configure: failed program was" >&5
23560 cat conftest.s >&5
23562 rm -f conftest.o conftest.s
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23566 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23570 cat >>confdefs.h <<_ACEOF
23571 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23572 _ACEOF
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23576 $as_echo_n "checking assembler for stabs directive... " >&6; }
23577 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23578 $as_echo_n "(cached) " >&6
23579 else
23580 gcc_cv_as_stabs_directive=no
23581 if test x$gcc_cv_as != x; then
23582 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23585 (eval $ac_try) 2>&5
23586 ac_status=$?
23587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23588 test $ac_status = 0; }; }
23589 then
23590 gcc_cv_as_stabs_directive=yes
23591 else
23592 echo "configure: failed program was" >&5
23593 cat conftest.s >&5
23595 rm -f conftest.o conftest.s
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23599 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23600 if test $gcc_cv_as_stabs_directive = yes; then
23602 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23607 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23608 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23609 $as_echo_n "(cached) " >&6
23610 else
23611 gcc_cv_as_comdat_group=no
23612 if test $in_tree_gas = yes; then
23613 if test $in_tree_gas_is_elf = yes \
23614 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23615 then gcc_cv_as_comdat_group=yes
23617 elif test x$gcc_cv_as != x; then
23618 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23619 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23621 (eval $ac_try) 2>&5
23622 ac_status=$?
23623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23624 test $ac_status = 0; }; }
23625 then
23626 gcc_cv_as_comdat_group=yes
23627 else
23628 echo "configure: failed program was" >&5
23629 cat conftest.s >&5
23631 rm -f conftest.o conftest.s
23634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23635 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23637 if test $gcc_cv_as_comdat_group = yes; then
23638 gcc_cv_as_comdat_group_percent=no
23639 gcc_cv_as_comdat_group_group=no
23640 else
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23642 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23643 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23644 $as_echo_n "(cached) " >&6
23645 else
23646 gcc_cv_as_comdat_group_percent=no
23647 if test $in_tree_gas = yes; then
23648 if test $in_tree_gas_is_elf = yes \
23649 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23650 then gcc_cv_as_comdat_group_percent=yes
23652 elif test x$gcc_cv_as != x; then
23653 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23654 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23659 test $ac_status = 0; }; }
23660 then
23661 gcc_cv_as_comdat_group_percent=yes
23662 else
23663 echo "configure: failed program was" >&5
23664 cat conftest.s >&5
23666 rm -f conftest.o conftest.s
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23670 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23672 if test $gcc_cv_as_comdat_group_percent = yes; then
23673 gcc_cv_as_comdat_group_group=no
23674 else
23675 case "${target}" in
23676 # Sun as uses a completely different syntax.
23677 *-*-solaris2*)
23678 case "${target}" in
23679 sparc*-*-solaris2*)
23680 conftest_s='
23681 .group foo,".text%foo",#comdat
23682 .section ".text%foo", #alloc,#execinstr,#progbits
23683 .globl foo
23684 foo:
23687 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23688 conftest_s='
23689 .group foo,.text%foo,#comdat
23690 .section .text%foo, "ax", @progbits
23691 .globl foo
23692 foo:
23695 esac
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23697 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23698 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23699 $as_echo_n "(cached) " >&6
23700 else
23701 gcc_cv_as_comdat_group_group=no
23702 if test x$gcc_cv_as != x; then
23703 $as_echo "$conftest_s" > conftest.s
23704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23706 (eval $ac_try) 2>&5
23707 ac_status=$?
23708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23709 test $ac_status = 0; }; }
23710 then
23711 gcc_cv_as_comdat_group_group=yes
23712 else
23713 echo "configure: failed program was" >&5
23714 cat conftest.s >&5
23716 rm -f conftest.o conftest.s
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23720 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23723 esac
23724 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23725 gcc_cv_as_comdat_group_group=no
23729 if test x"$ld_is_gold" = xyes; then
23730 comdat_group=yes
23731 elif test $in_tree_ld = yes ; then
23732 comdat_group=no
23733 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
23734 && test $in_tree_ld_is_elf = yes; then
23735 comdat_group=yes
23737 elif echo "$ld_ver" | grep GNU > /dev/null; then
23738 comdat_group=yes
23739 if test 0"$ld_date" -lt 20050308; then
23740 if test -n "$ld_date"; then
23741 # If there was date string, but was earlier than 2005-03-08, fail
23742 comdat_group=no
23743 elif test "$ld_vers_major" -lt 2; then
23744 comdat_group=no
23745 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23746 comdat_group=no
23749 else
23750 case "${target}" in
23751 *-*-solaris2.1[1-9]*)
23752 comdat_group=no
23753 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23754 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23755 # version 1.688.
23757 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23758 # least ld version 1.2267.
23759 if test "$ld_vers_major" -gt 1; then
23760 comdat_group=yes
23761 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23762 comdat_group=yes
23763 elif test "$ld_vers_minor" -ge 2267; then
23764 comdat_group=yes
23768 # Assume linkers other than GNU ld don't support COMDAT group.
23769 comdat_group=no
23771 esac
23773 # Allow overriding the automatic COMDAT group tests above.
23774 # Check whether --enable-comdat was given.
23775 if test "${enable_comdat+set}" = set; then :
23776 enableval=$enable_comdat; comdat_group="$enable_comdat"
23779 if test $comdat_group = no; then
23780 gcc_cv_as_comdat_group=no
23781 gcc_cv_as_comdat_group_percent=no
23782 gcc_cv_as_comdat_group_group=no
23785 cat >>confdefs.h <<_ACEOF
23786 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23787 || test $gcc_cv_as_comdat_group_percent = yes \
23788 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23789 _ACEOF
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23793 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23794 if test "${gcc_cv_as_discriminator+set}" = set; then :
23795 $as_echo_n "(cached) " >&6
23796 else
23797 gcc_cv_as_discriminator=no
23798 if test $in_tree_gas = yes; then
23799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23800 then gcc_cv_as_discriminator=yes
23802 elif test x$gcc_cv_as != x; then
23803 $as_echo ' .text
23804 .file 1 "conf.c"
23805 .loc 1 1 0 discriminator 1' > conftest.s
23806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23808 (eval $ac_try) 2>&5
23809 ac_status=$?
23810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23811 test $ac_status = 0; }; }
23812 then
23813 gcc_cv_as_discriminator=yes
23814 else
23815 echo "configure: failed program was" >&5
23816 cat conftest.s >&5
23818 rm -f conftest.o conftest.s
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23822 $as_echo "$gcc_cv_as_discriminator" >&6; }
23823 if test $gcc_cv_as_discriminator = yes; then
23825 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23829 # Thread-local storage - the check is heavily parameterized.
23830 conftest_s=
23831 tls_first_major=
23832 tls_first_minor=
23833 tls_as_opt=
23834 case "$target" in
23835 alpha*-*-*)
23836 conftest_s='
23837 .section ".tdata","awT",@progbits
23838 foo: .long 25
23839 .text
23840 ldq $27,__tls_get_addr($29) !literal!1
23841 lda $16,foo($29) !tlsgd!1
23842 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23843 ldq $27,__tls_get_addr($29) !literal!2
23844 lda $16,foo($29) !tlsldm!2
23845 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23846 ldq $1,foo($29) !gotdtprel
23847 ldah $2,foo($29) !dtprelhi
23848 lda $3,foo($2) !dtprello
23849 lda $4,foo($29) !dtprel
23850 ldq $1,foo($29) !gottprel
23851 ldah $2,foo($29) !tprelhi
23852 lda $3,foo($2) !tprello
23853 lda $4,foo($29) !tprel'
23854 tls_first_major=2
23855 tls_first_minor=13
23856 tls_as_opt=--fatal-warnings
23858 arc*-*-*)
23859 conftest_s='
23860 add_s r0,r0, @foo@tpoff'
23861 tls_first_major=2
23862 tls_first_minor=23
23864 cris-*-*|crisv32-*-*)
23865 conftest_s='
23866 .section ".tdata","awT",@progbits
23867 x: .long 25
23868 .text
23869 move.d x:IE,$r10
23870 nop'
23871 tls_first_major=2
23872 tls_first_minor=20
23873 tls_as_opt=--fatal-warnings
23875 frv*-*-*)
23876 conftest_s='
23877 .section ".tdata","awT",@progbits
23878 x: .long 25
23879 .text
23880 call #gettlsoff(x)'
23881 tls_first_major=2
23882 tls_first_minor=14
23884 hppa*-*-linux*)
23885 conftest_s='
23886 t1: .reg %r20
23887 t2: .reg %r21
23888 gp: .reg %r19
23889 .section ".tdata","awT",@progbits
23890 foo: .long 25
23891 .text
23892 .align 4
23893 addil LT%foo-$tls_gdidx$,gp
23894 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23895 b __tls_get_addr
23897 addil LT%foo-$tls_ldidx$,gp
23898 b __tls_get_addr
23899 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23900 addil LR%foo-$tls_dtpoff$,%ret0
23901 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23902 mfctl %cr27,%t1
23903 addil LT%foo-$tls_ieoff$,gp
23904 ldw RT%foo-$tls_ieoff$(%r1),%t2
23905 add %t1,%t2,%t3
23906 mfctl %cr27,%t1
23907 addil LR%foo-$tls_leoff$,%t1
23908 ldo RR%foo-$tls_leoff$(%r1),%t2'
23909 tls_first_major=2
23910 tls_first_minor=15
23911 tls_as_opt=--fatal-warnings
23913 arm*-*-*)
23914 conftest_s='
23915 .section ".tdata","awT",%progbits
23916 foo: .long 25
23917 .text
23918 .word foo(gottpoff)
23919 .word foo(tpoff)
23920 .word foo(tlsgd)
23921 .word foo(tlsldm)
23922 .word foo(tlsldo)'
23923 tls_first_major=2
23924 tls_first_minor=17
23926 i[34567]86-*-* | x86_64-*-*)
23927 case "$target" in
23928 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23929 on_solaris=yes
23932 on_solaris=no
23934 esac
23935 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23936 conftest_s='
23937 .section .tdata,"awt",@progbits'
23938 tls_first_major=0
23939 tls_first_minor=0
23940 tls_section_flag=t
23942 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23944 else
23945 conftest_s='
23946 .section ".tdata","awT",@progbits'
23947 tls_first_major=2
23948 tls_first_minor=14
23949 tls_section_flag=T
23950 tls_as_opt="--fatal-warnings"
23952 case "$target" in
23953 i[34567]86-*-*)
23954 conftest_s="$conftest_s
23955 foo: .long 25
23956 .text
23957 movl %gs:0, %eax
23958 leal foo@tlsgd(,%ebx,1), %eax
23959 leal foo@tlsldm(%ebx), %eax
23960 leal foo@dtpoff(%eax), %edx
23961 movl foo@gottpoff(%ebx), %eax
23962 subl foo@gottpoff(%ebx), %eax
23963 addl foo@gotntpoff(%ebx), %eax
23964 movl foo@indntpoff, %eax
23965 movl \$foo@tpoff, %eax
23966 subl \$foo@tpoff, %eax
23967 leal foo@ntpoff(%ecx), %eax"
23969 x86_64-*-*)
23970 if test x$on_solaris = xyes; then
23971 case $gas_flag in
23972 yes) tls_as_opt="$tls_as_opt --64" ;;
23973 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23974 esac
23976 conftest_s="$conftest_s
23977 foo: .long 25
23978 .text
23979 movq %fs:0, %rax
23980 leaq foo@tlsgd(%rip), %rdi
23981 leaq foo@tlsld(%rip), %rdi
23982 leaq foo@dtpoff(%rax), %rdx
23983 movq foo@gottpoff(%rip), %rax
23984 movq \$foo@tpoff, %rax"
23986 esac
23988 ia64-*-*)
23989 conftest_s='
23990 .section ".tdata","awT",@progbits
23991 foo: data8 25
23992 .text
23993 addl r16 = @ltoff(@dtpmod(foo#)), gp
23994 addl r17 = @ltoff(@dtprel(foo#)), gp
23995 addl r18 = @ltoff(@tprel(foo#)), gp
23996 addl r19 = @dtprel(foo#), gp
23997 adds r21 = @dtprel(foo#), r13
23998 movl r23 = @dtprel(foo#)
23999 addl r20 = @tprel(foo#), gp
24000 adds r22 = @tprel(foo#), r13
24001 movl r24 = @tprel(foo#)'
24002 tls_first_major=2
24003 tls_first_minor=13
24004 tls_as_opt=--fatal-warnings
24006 microblaze*-*-*)
24007 conftest_s='
24008 .section .tdata,"awT",@progbits
24010 .word 2
24011 .text
24012 addik r5,r20,x@TLSGD
24013 addik r5,r20,x@TLSLDM'
24014 tls_first_major=2
24015 tls_first_minor=20
24016 tls_as_opt='--fatal-warnings'
24018 mips*-*-*)
24019 conftest_s='
24020 .section .tdata,"awT",@progbits
24022 .word 2
24023 .text
24024 addiu $4, $28, %tlsgd(x)
24025 addiu $4, $28, %tlsldm(x)
24026 lui $4, %dtprel_hi(x)
24027 addiu $4, $4, %dtprel_lo(x)
24028 lw $4, %gottprel(x)($28)
24029 lui $4, %tprel_hi(x)
24030 addiu $4, $4, %tprel_lo(x)'
24031 tls_first_major=2
24032 tls_first_minor=16
24033 tls_as_opt='-32 --fatal-warnings'
24035 m68k-*-*)
24036 conftest_s='
24037 .section .tdata,"awT",@progbits
24039 .word 2
24040 .text
24041 foo:
24042 move.l x@TLSGD(%a5),%a0
24043 move.l x@TLSLDM(%a5),%a0
24044 move.l x@TLSLDO(%a5),%a0
24045 move.l x@TLSIE(%a5),%a0
24046 move.l x@TLSLE(%a5),%a0'
24047 tls_first_major=2
24048 tls_first_minor=19
24049 tls_as_opt='--fatal-warnings'
24051 nios2-*-*)
24052 conftest_s='
24053 .section ".tdata","awT",@progbits'
24054 tls_first_major=2
24055 tls_first_minor=23
24056 tls_as_opt="--fatal-warnings"
24058 aarch64*-*-*)
24059 conftest_s='
24060 .section ".tdata","awT",%progbits
24061 foo: .long 25
24062 .text
24063 adrp x0, :tlsgd:x
24064 add x0, x0, #:tlsgd_lo12:x
24065 bl __tls_get_addr
24066 nop'
24067 tls_first_major=2
24068 tls_first_minor=20
24069 tls_as_opt='--fatal-warnings'
24071 powerpc-ibm-aix*)
24072 conftest_s='
24073 .extern __get_tpointer
24074 .toc
24075 LC..1:
24076 .tc a[TC],a[TL]@le
24077 .csect .text[PR]
24078 .tlstest:
24079 lwz 9,LC..1(2)
24080 bla __get_tpointer
24081 lwzx 3,9,3
24082 .globl a
24083 .csect a[TL],4
24085 .space 4'
24086 tls_first_major=0
24087 tls_first_minor=0
24089 powerpc64*-*-*)
24090 conftest_s='
24091 .section ".tdata","awT",@progbits
24092 .align 3
24093 ld0: .space 8
24094 ld1: .space 8
24095 x1: .space 8
24096 x2: .space 8
24097 x3: .space 8
24098 .text
24099 addi 3,2,ld0@got@tlsgd
24100 bl .__tls_get_addr
24102 addi 3,2,ld1@toc
24103 bl .__tls_get_addr
24105 addi 3,2,x1@got@tlsld
24106 bl .__tls_get_addr
24108 addi 9,3,x1@dtprel
24109 bl .__tls_get_addr
24111 addis 9,3,x2@dtprel@ha
24112 addi 9,9,x2@dtprel@l
24113 bl .__tls_get_addr
24115 ld 9,x3@got@dtprel(2)
24116 add 9,9,3
24117 bl .__tls_get_addr
24118 nop'
24119 tls_first_major=2
24120 tls_first_minor=14
24121 tls_as_opt="-a64 --fatal-warnings"
24123 powerpc*-*-*)
24124 conftest_s='
24125 .section ".tdata","awT",@progbits
24126 .align 2
24127 ld0: .space 4
24128 ld1: .space 4
24129 x1: .space 4
24130 x2: .space 4
24131 x3: .space 4
24132 .text
24133 addi 3,31,ld0@got@tlsgd
24134 bl __tls_get_addr
24135 addi 3,31,x1@got@tlsld
24136 bl __tls_get_addr
24137 addi 9,3,x1@dtprel
24138 addis 9,3,x2@dtprel@ha
24139 addi 9,9,x2@dtprel@l
24140 lwz 9,x3@got@tprel(31)
24141 add 9,9,x@tls
24142 addi 9,2,x1@tprel
24143 addis 9,2,x2@tprel@ha
24144 addi 9,9,x2@tprel@l'
24145 tls_first_major=2
24146 tls_first_minor=14
24147 tls_as_opt="-a32 --fatal-warnings"
24149 s390-*-*)
24150 conftest_s='
24151 .section ".tdata","awT",@progbits
24152 foo: .long 25
24153 .text
24154 .long foo@TLSGD
24155 .long foo@TLSLDM
24156 .long foo@DTPOFF
24157 .long foo@NTPOFF
24158 .long foo@GOTNTPOFF
24159 .long foo@INDNTPOFF
24160 l %r1,foo@GOTNTPOFF(%r12)
24161 l %r1,0(%r1):tls_load:foo
24162 bas %r14,0(%r1,%r13):tls_gdcall:foo
24163 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24164 tls_first_major=2
24165 tls_first_minor=14
24166 tls_as_opt="-m31 --fatal-warnings"
24168 s390x-*-*)
24169 conftest_s='
24170 .section ".tdata","awT",@progbits
24171 foo: .long 25
24172 .text
24173 .quad foo@TLSGD
24174 .quad foo@TLSLDM
24175 .quad foo@DTPOFF
24176 .quad foo@NTPOFF
24177 .quad foo@GOTNTPOFF
24178 lg %r1,foo@GOTNTPOFF(%r12)
24179 larl %r1,foo@INDNTPOFF
24180 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24181 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24182 tls_first_major=2
24183 tls_first_minor=14
24184 tls_as_opt="-m64 -Aesame --fatal-warnings"
24186 sh-*-* | sh[123456789lbe]*-*-*)
24187 conftest_s='
24188 .section ".tdata","awT",@progbits
24189 foo: .long 25
24190 .text
24191 .long foo@TLSGD
24192 .long foo@TLSLDM
24193 .long foo@DTPOFF
24194 .long foo@GOTTPOFF
24195 .long foo@TPOFF'
24196 tls_first_major=2
24197 tls_first_minor=13
24198 tls_as_opt=--fatal-warnings
24200 sparc*-*-*)
24201 case "$target" in
24202 sparc*-sun-solaris2.*)
24203 on_solaris=yes
24206 on_solaris=no
24208 esac
24209 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24210 conftest_s='
24211 .section ".tdata",#alloc,#write,#tls'
24212 tls_first_major=0
24213 tls_first_minor=0
24214 else
24215 conftest_s='
24216 .section ".tdata","awT",@progbits'
24217 tls_first_major=2
24218 tls_first_minor=14
24219 tls_as_opt="-32 --fatal-warnings"
24221 conftest_s="$conftest_s
24222 foo: .long 25
24223 .text
24224 sethi %tgd_hi22(foo), %o0
24225 add %o0, %tgd_lo10(foo), %o1
24226 add %l7, %o1, %o0, %tgd_add(foo)
24227 call __tls_get_addr, %tgd_call(foo)
24228 sethi %tldm_hi22(foo), %l1
24229 add %l1, %tldm_lo10(foo), %l2
24230 add %l7, %l2, %o0, %tldm_add(foo)
24231 call __tls_get_addr, %tldm_call(foo)
24232 sethi %tldo_hix22(foo), %l3
24233 xor %l3, %tldo_lox10(foo), %l4
24234 add %o0, %l4, %l5, %tldo_add(foo)
24235 sethi %tie_hi22(foo), %o3
24236 add %o3, %tie_lo10(foo), %o3
24237 ld [%l7 + %o3], %o2, %tie_ld(foo)
24238 add %g7, %o2, %o4, %tie_add(foo)
24239 sethi %tle_hix22(foo), %l1
24240 xor %l1, %tle_lox10(foo), %o5
24241 ld [%g7 + %o5], %o1"
24243 tilepro*-*-*)
24244 conftest_s='
24245 .section ".tdata","awT",@progbits
24246 foo: .long 25
24247 .text
24248 addli r0, zero, tls_gd(foo)
24249 auli r0, zero, tls_gd_ha16(foo)
24250 addli r0, r0, tls_gd_lo16(foo)
24251 jal __tls_get_addr
24252 addli r0, zero, tls_ie(foo)
24253 auli r0, r0, tls_ie_ha16(foo)
24254 addli r0, r0, tls_ie_lo16(foo)'
24255 tls_first_major=2
24256 tls_first_minor=22
24257 tls_as_opt="--fatal-warnings"
24259 tilegx*-*-*)
24260 conftest_s='
24261 .section ".tdata","awT",@progbits
24262 foo: .long 25
24263 .text
24264 shl16insli r0, zero, hw0_last_tls_gd(foo)
24265 shl16insli r0, zero, hw1_last_tls_gd(foo)
24266 shl16insli r0, r0, hw0_tls_gd(foo)
24267 jal __tls_get_addr
24268 shl16insli r0, zero, hw1_last_tls_ie(foo)
24269 shl16insli r0, r0, hw0_tls_ie(foo)'
24270 tls_first_major=2
24271 tls_first_minor=22
24272 tls_as_opt="--fatal-warnings"
24274 xtensa*-*-*)
24275 conftest_s='
24276 .section ".tdata","awT",@progbits
24277 foo: .long 25
24278 .text
24279 movi a8, foo@TLSFUNC
24280 movi a10, foo@TLSARG
24281 callx8.tls a8, foo@TLSCALL'
24282 tls_first_major=2
24283 tls_first_minor=19
24285 esac
24286 set_have_as_tls=no
24287 if test "x$enable_tls" = xno ; then
24288 : # TLS explicitly disabled.
24289 elif test "x$enable_tls" = xyes ; then
24290 set_have_as_tls=yes # TLS explicitly enabled.
24291 elif test -z "$tls_first_major"; then
24292 : # If we don't have a check, assume no support.
24293 else
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24295 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24296 if test "${gcc_cv_as_tls+set}" = set; then :
24297 $as_echo_n "(cached) " >&6
24298 else
24299 gcc_cv_as_tls=no
24300 if test $in_tree_gas = yes; then
24301 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24302 then gcc_cv_as_tls=yes
24304 elif test x$gcc_cv_as != x; then
24305 $as_echo "$conftest_s" > conftest.s
24306 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24311 test $ac_status = 0; }; }
24312 then
24313 gcc_cv_as_tls=yes
24314 else
24315 echo "configure: failed program was" >&5
24316 cat conftest.s >&5
24318 rm -f conftest.o conftest.s
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24322 $as_echo "$gcc_cv_as_tls" >&6; }
24323 if test $gcc_cv_as_tls = yes; then
24324 set_have_as_tls=yes
24327 if test $set_have_as_tls = yes ; then
24329 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24333 # Target-specific assembler checks.
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24336 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24337 gcc_cv_ld_static_dynamic=no
24338 gcc_cv_ld_static_option='-Bstatic'
24339 gcc_cv_ld_dynamic_option='-Bdynamic'
24340 if test $in_tree_ld = yes ; then
24341 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
24342 gcc_cv_ld_static_dynamic=yes
24344 elif test x$gcc_cv_ld != x; then
24345 # Check if linker supports -Bstatic/-Bdynamic option
24346 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24347 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24348 gcc_cv_ld_static_dynamic=yes
24349 else
24350 case "$target" in
24351 # AIX ld uses -b flags
24352 *-*-aix4.[23]* | *-*-aix[5-9]*)
24353 gcc_cv_ld_static_dynamic=yes
24354 gcc_cv_ld_static_option="-bstatic"
24355 gcc_cv_ld_dynamic_option="-bdynamic"
24357 # HP-UX ld uses -a flags to select between shared and archive.
24358 *-*-hpux*)
24359 if test x"$gnu_ld" = xno; then
24360 gcc_cv_ld_static_dynamic=yes
24361 gcc_cv_ld_static_option="-aarchive_shared"
24362 gcc_cv_ld_dynamic_option="-adefault"
24365 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24366 *-*-solaris2*)
24367 gcc_cv_ld_static_dynamic=yes
24369 esac
24372 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24374 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24377 cat >>confdefs.h <<_ACEOF
24378 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24379 _ACEOF
24382 cat >>confdefs.h <<_ACEOF
24383 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24384 _ACEOF
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24388 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24390 if test x"$demangler_in_ld" = xyes; then
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24392 $as_echo_n "checking linker --demangle support... " >&6; }
24393 gcc_cv_ld_demangle=no
24394 if test $in_tree_ld = yes; then
24395 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
24396 gcc_cv_ld_demangle=yes
24398 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24399 # Check if the GNU linker supports --demangle option
24400 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24401 gcc_cv_ld_demangle=yes
24404 if test x"$gcc_cv_ld_demangle" = xyes; then
24406 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24410 $as_echo "$gcc_cv_ld_demangle" >&6; }
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24414 $as_echo_n "checking linker plugin support... " >&6; }
24415 gcc_cv_lto_plugin=0
24416 if test -f liblto_plugin.la; then
24417 save_ld_ver="$ld_ver"
24418 save_ld_vers_major="$ld_vers_major"
24419 save_ld_vers_minor="$ld_vers_minor"
24420 save_ld_is_gold="$ld_is_gold"
24422 ld_is_gold=no
24424 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24425 ld_ver="GNU ld"
24426 # FIXME: ld_is_gold?
24427 ld_vers_major="$gcc_cv_gld_major_version"
24428 ld_vers_minor="$gcc_cv_gld_minor_version"
24429 else
24430 # Determine plugin linker version.
24431 # FIXME: Partial duplicate from above, generalize.
24432 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24433 if echo "$ld_ver" | grep GNU > /dev/null; then
24434 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24435 ld_is_gold=yes
24436 ld_vers=`echo $ld_ver | sed -n \
24437 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24438 else
24439 ld_vers=`echo $ld_ver | sed -n \
24440 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24442 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24443 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24447 # Determine plugin support.
24448 if echo "$ld_ver" | grep GNU > /dev/null; then
24449 # Require GNU ld or gold 2.21+ for plugin support by default.
24450 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24451 gcc_cv_lto_plugin=2
24452 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24453 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24454 gcc_cv_lto_plugin=1
24458 ld_ver="$save_ld_ver"
24459 ld_vers_major="$save_ld_vers_major"
24460 ld_vers_minor="$save_ld_vers_minor"
24461 ld_is_gold="$save_ld_is_gold"
24464 cat >>confdefs.h <<_ACEOF
24465 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24466 _ACEOF
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24469 $as_echo "$gcc_cv_lto_plugin" >&6; }
24471 case "$target" in
24472 aarch64*-*-*)
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24474 $as_echo_n "checking assembler for -mabi option... " >&6; }
24475 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24477 else
24478 gcc_cv_as_aarch64_mabi=no
24479 if test x$gcc_cv_as != x; then
24480 $as_echo '.text' > conftest.s
24481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24483 (eval $ac_try) 2>&5
24484 ac_status=$?
24485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24486 test $ac_status = 0; }; }
24487 then
24488 gcc_cv_as_aarch64_mabi=yes
24489 else
24490 echo "configure: failed program was" >&5
24491 cat conftest.s >&5
24493 rm -f conftest.o conftest.s
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24497 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24499 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24501 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24503 else
24504 if test x$with_abi = xilp32; then
24505 as_fn_error "Assembler does not support -mabi=ilp32.\
24506 Upgrade the Assembler." "$LINENO" 5
24508 if test x"$with_multilib_list" = xdefault; then
24509 TM_MULTILIB_CONFIG=lp64
24510 else
24511 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24512 for aarch64_multilib in ${aarch64_multilibs}; do
24513 case ${aarch64_multilib} in
24514 ilp32)
24515 as_fn_error "Assembler does not support -mabi=ilp32.\
24516 Upgrade the Assembler." "$LINENO" 5
24520 esac
24521 done
24524 # Check if we have binutils support for relocations types needed by -fpic
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24526 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24527 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24528 $as_echo_n "(cached) " >&6
24529 else
24530 gcc_cv_as_aarch64_picreloc=no
24531 if test x$gcc_cv_as != x; then
24532 $as_echo '
24533 .text
24534 ldr x0, [x2, #:gotpage_lo15:globalsym]
24535 ' > conftest.s
24536 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24538 (eval $ac_try) 2>&5
24539 ac_status=$?
24540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24541 test $ac_status = 0; }; }
24542 then
24543 gcc_cv_as_aarch64_picreloc=yes
24544 else
24545 echo "configure: failed program was" >&5
24546 cat conftest.s >&5
24548 rm -f conftest.o conftest.s
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24552 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24553 if test $gcc_cv_as_aarch64_picreloc = yes; then
24555 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24558 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24559 # Check whether --enable-fix-cortex-a53-835769 was given.
24560 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24561 enableval=$enable_fix_cortex_a53_835769;
24562 case $enableval in
24563 yes)
24564 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24569 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24570 Valid choices are 'yes' and 'no'." "$LINENO" 5
24573 esac
24577 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24578 # Check whether --enable-fix-cortex-a53-843419 was given.
24579 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24580 enableval=$enable_fix_cortex_a53_843419;
24581 case $enableval in
24582 yes)
24583 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24588 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24589 Valid choices are 'yes' and 'no'." "$LINENO" 5
24592 esac
24598 # All TARGET_ABI_OSF targets.
24599 alpha*-*-linux* | alpha*-*-*bsd*)
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24601 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24602 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 gcc_cv_as_alpha_explicit_relocs=no
24606 if test $in_tree_gas = yes; then
24607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24608 then gcc_cv_as_alpha_explicit_relocs=yes
24610 elif test x$gcc_cv_as != x; then
24611 $as_echo ' .set nomacro
24612 .text
24613 extbl $3, $2, $3 !lituse_bytoff!1
24614 ldq $2, a($29) !literal!1
24615 ldq $4, b($29) !literal!2
24616 ldq_u $3, 0($2) !lituse_base!1
24617 ldq $27, f($29) !literal!5
24618 jsr $26, ($27), f !lituse_jsr!5
24619 ldah $29, 0($26) !gpdisp!3
24620 lda $0, c($29) !gprel
24621 ldah $1, d($29) !gprelhigh
24622 lda $1, d($1) !gprellow
24623 lda $29, 0($29) !gpdisp!3' > conftest.s
24624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24626 (eval $ac_try) 2>&5
24627 ac_status=$?
24628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24629 test $ac_status = 0; }; }
24630 then
24631 gcc_cv_as_alpha_explicit_relocs=yes
24632 else
24633 echo "configure: failed program was" >&5
24634 cat conftest.s >&5
24636 rm -f conftest.o conftest.s
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24640 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24641 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24643 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24647 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24648 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24649 $as_echo_n "(cached) " >&6
24650 else
24651 gcc_cv_as_alpha_jsrdirect_relocs=no
24652 if test $in_tree_gas = yes; then
24653 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24654 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24656 elif test x$gcc_cv_as != x; then
24657 $as_echo ' .set nomacro
24658 .text
24659 ldq $27, a($29) !literal!1
24660 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24667 then
24668 gcc_cv_as_alpha_jsrdirect_relocs=yes
24669 else
24670 echo "configure: failed program was" >&5
24671 cat conftest.s >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24677 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24678 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24680 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24685 avr-*-*)
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24687 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24688 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24690 else
24691 gcc_cv_as_avr_mlink_relax=no
24692 if test x$gcc_cv_as != x; then
24693 $as_echo '.text' > conftest.s
24694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24696 (eval $ac_try) 2>&5
24697 ac_status=$?
24698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24699 test $ac_status = 0; }; }
24700 then
24701 gcc_cv_as_avr_mlink_relax=yes
24702 else
24703 echo "configure: failed program was" >&5
24704 cat conftest.s >&5
24706 rm -f conftest.o conftest.s
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24710 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24711 if test $gcc_cv_as_avr_mlink_relax = yes; then
24713 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24718 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24719 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
24721 else
24722 gcc_cv_as_avr_mrmw=no
24723 if test x$gcc_cv_as != x; then
24724 $as_echo '.text' > conftest.s
24725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24730 test $ac_status = 0; }; }
24731 then
24732 gcc_cv_as_avr_mrmw=yes
24733 else
24734 echo "configure: failed program was" >&5
24735 cat conftest.s >&5
24737 rm -f conftest.o conftest.s
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24741 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24742 if test $gcc_cv_as_avr_mrmw = yes; then
24744 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24749 cris-*-*)
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24751 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24752 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24754 else
24755 gcc_cv_as_cris_no_mul_bug=no
24756 if test $in_tree_gas = yes; then
24757 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24758 then gcc_cv_as_cris_no_mul_bug=yes
24760 elif test x$gcc_cv_as != x; then
24761 $as_echo '.text' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24768 then
24769 gcc_cv_as_cris_no_mul_bug=yes
24770 else
24771 echo "configure: failed program was" >&5
24772 cat conftest.s >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24778 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24779 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24781 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24786 sparc*-*-*)
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24788 $as_echo_n "checking assembler for .register... " >&6; }
24789 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24791 else
24792 gcc_cv_as_sparc_register_op=no
24793 if test x$gcc_cv_as != x; then
24794 $as_echo '.register %g2, #scratch' > conftest.s
24795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24797 (eval $ac_try) 2>&5
24798 ac_status=$?
24799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24800 test $ac_status = 0; }; }
24801 then
24802 gcc_cv_as_sparc_register_op=yes
24803 else
24804 echo "configure: failed program was" >&5
24805 cat conftest.s >&5
24807 rm -f conftest.o conftest.s
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24811 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24812 if test $gcc_cv_as_sparc_register_op = yes; then
24814 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24819 $as_echo_n "checking assembler for -relax option... " >&6; }
24820 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24821 $as_echo_n "(cached) " >&6
24822 else
24823 gcc_cv_as_sparc_relax=no
24824 if test x$gcc_cv_as != x; then
24825 $as_echo '.text' > conftest.s
24826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24828 (eval $ac_try) 2>&5
24829 ac_status=$?
24830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24831 test $ac_status = 0; }; }
24832 then
24833 gcc_cv_as_sparc_relax=yes
24834 else
24835 echo "configure: failed program was" >&5
24836 cat conftest.s >&5
24838 rm -f conftest.o conftest.s
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24842 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24843 if test $gcc_cv_as_sparc_relax = yes; then
24845 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24850 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24851 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24852 $as_echo_n "(cached) " >&6
24853 else
24854 gcc_cv_as_sparc_gotdata_op=no
24855 if test x$gcc_cv_as != x; then
24856 $as_echo '.text
24857 .align 4
24858 foo:
24860 bar:
24861 sethi %gdop_hix22(foo), %g1
24862 xor %g1, %gdop_lox10(foo), %g1
24863 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24867 ac_status=$?
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }
24870 then
24871 if test x$gcc_cv_ld != x \
24872 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24873 if test x$gcc_cv_objdump != x; then
24874 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24875 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24876 gcc_cv_as_sparc_gotdata_op=no
24877 else
24878 gcc_cv_as_sparc_gotdata_op=yes
24882 rm -f conftest
24883 else
24884 echo "configure: failed program was" >&5
24885 cat conftest.s >&5
24887 rm -f conftest.o conftest.s
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24891 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24892 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24894 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24899 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24900 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24901 $as_echo_n "(cached) " >&6
24902 else
24903 gcc_cv_as_sparc_ua_pcrel=no
24904 if test x$gcc_cv_as != x; then
24905 $as_echo '.text
24906 foo:
24908 .data
24909 .align 4
24910 .byte 0
24911 .uaword %r_disp32(foo)' > conftest.s
24912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24918 then
24919 if test x$gcc_cv_ld != x \
24920 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24921 gcc_cv_as_sparc_ua_pcrel=yes
24923 rm -f conftest
24924 else
24925 echo "configure: failed program was" >&5
24926 cat conftest.s >&5
24928 rm -f conftest.o conftest.s
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24932 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24933 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24935 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24939 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24940 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24941 $as_echo_n "(cached) " >&6
24942 else
24943 gcc_cv_as_sparc_ua_pcrel_hidden=no
24944 if test x$gcc_cv_as != x; then
24945 $as_echo '.data
24946 .align 4
24947 .byte 0x31
24948 .uaword %r_disp32(foo)
24949 .byte 0x32, 0x33, 0x34
24950 .global foo
24951 .hidden foo
24952 foo:
24953 .skip 4' > conftest.s
24954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24959 test $ac_status = 0; }; }
24960 then
24961 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24962 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24963 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24964 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24965 if $gcc_cv_objdump -R conftest 2> /dev/null \
24966 | grep 'DISP32' > /dev/null 2>&1; then
24968 else
24969 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24972 rm -f conftest
24973 else
24974 echo "configure: failed program was" >&5
24975 cat conftest.s >&5
24977 rm -f conftest.o conftest.s
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24981 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24982 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24984 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24988 fi # unaligned pcrel relocs
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24991 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24992 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24993 $as_echo_n "(cached) " >&6
24994 else
24995 gcc_cv_as_sparc_offsetable_lo10=no
24996 if test x$gcc_cv_as != x; then
24997 $as_echo '.text
24998 or %g1, %lo(ab) + 12, %g1
24999 or %g1, %lo(ab + 12), %g1' > conftest.s
25000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25002 (eval $ac_try) 2>&5
25003 ac_status=$?
25004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25005 test $ac_status = 0; }; }
25006 then
25007 if test x$gcc_cv_objdump != x \
25008 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25009 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25010 gcc_cv_as_sparc_offsetable_lo10=yes
25012 else
25013 echo "configure: failed program was" >&5
25014 cat conftest.s >&5
25016 rm -f conftest.o conftest.s
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25020 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25021 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25023 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25028 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25029 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25030 $as_echo_n "(cached) " >&6
25031 else
25032 gcc_cv_as_sparc_fmaf=no
25033 if test x$gcc_cv_as != x; then
25034 $as_echo '.text
25035 .register %g2, #scratch
25036 .register %g3, #scratch
25037 .align 4
25038 fmaddd %f0, %f2, %f4, %f6
25039 addxccc %g1, %g2, %g3
25040 fsrl32 %f2, %f4, %f8
25041 fnaddd %f10, %f12, %f14' > conftest.s
25042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25044 (eval $ac_try) 2>&5
25045 ac_status=$?
25046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25047 test $ac_status = 0; }; }
25048 then
25049 gcc_cv_as_sparc_fmaf=yes
25050 else
25051 echo "configure: failed program was" >&5
25052 cat conftest.s >&5
25054 rm -f conftest.o conftest.s
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25058 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25059 if test $gcc_cv_as_sparc_fmaf = yes; then
25061 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25066 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25067 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25068 $as_echo_n "(cached) " >&6
25069 else
25070 gcc_cv_as_sparc_sparc4=no
25071 if test x$gcc_cv_as != x; then
25072 $as_echo '.text
25073 .register %g2, #scratch
25074 .register %g3, #scratch
25075 .align 4
25076 cxbe %g2, %g3, 1f
25077 1: cwbneg %g2, %g3, 1f
25078 1: sha1
25080 aes_kexpand0 %f4, %f6, %f8
25081 des_round %f38, %f40, %f42, %f44
25082 camellia_f %f54, %f56, %f58, %f60
25083 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25086 (eval $ac_try) 2>&5
25087 ac_status=$?
25088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25089 test $ac_status = 0; }; }
25090 then
25091 gcc_cv_as_sparc_sparc4=yes
25092 else
25093 echo "configure: failed program was" >&5
25094 cat conftest.s >&5
25096 rm -f conftest.o conftest.s
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25100 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25101 if test $gcc_cv_as_sparc_sparc4 = yes; then
25103 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25108 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25109 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25110 $as_echo_n "(cached) " >&6
25111 else
25112 gcc_cv_as_sparc_leon=no
25113 if test x$gcc_cv_as != x; then
25114 $as_echo '.text
25115 .register %g2, #scratch
25116 .register %g3, #scratch
25117 .align 4
25118 smac %g2, %g3, %g1
25119 umac %g2, %g3, %g1
25120 casa [%g2] 0xb, %g3, %g1' > conftest.s
25121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25127 then
25128 gcc_cv_as_sparc_leon=yes
25129 else
25130 echo "configure: failed program was" >&5
25131 cat conftest.s >&5
25133 rm -f conftest.o conftest.s
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25137 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25138 if test $gcc_cv_as_sparc_leon = yes; then
25140 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25145 i[34567]86-*-* | x86_64-*-*)
25146 case $target_os in
25147 cygwin*)
25148 # Full C++ conformance when using a shared libstdc++-v3 requires some
25149 # support from the Cygwin DLL, which in more recent versions exports
25150 # wrappers to aid in interposing and redirecting operators new, delete,
25151 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25152 # are configuring for a version of Cygwin that exports the wrappers.
25153 if test x$host = x$target && test x$host_cpu = xi686; then
25154 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25155 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25156 gcc_ac_cygwin_dll_wrappers=yes
25157 else
25158 gcc_ac_cygwin_dll_wrappers=no
25161 else
25162 # Can't check presence of libc functions during cross-compile, so
25163 # we just have to assume we're building for an up-to-date target.
25164 gcc_ac_cygwin_dll_wrappers=yes
25167 cat >>confdefs.h <<_ACEOF
25168 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25169 _ACEOF
25171 esac
25172 case $target_os in
25173 cygwin* | pe | mingw32* | interix*)
25174 # Recent binutils allows the three-operand form of ".comm" on PE. This
25175 # definition is used unconditionally to initialise the default state of
25176 # the target option variable that governs usage of the feature.
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25178 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25179 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 gcc_cv_as_comm_has_align=no
25183 if test $in_tree_gas = yes; then
25184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25185 then gcc_cv_as_comm_has_align=yes
25187 elif test x$gcc_cv_as != x; then
25188 $as_echo '.comm foo,1,32' > conftest.s
25189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25194 test $ac_status = 0; }; }
25195 then
25196 gcc_cv_as_comm_has_align=yes
25197 else
25198 echo "configure: failed program was" >&5
25199 cat conftest.s >&5
25201 rm -f conftest.o conftest.s
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25205 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25208 cat >>confdefs.h <<_ACEOF
25209 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25210 _ACEOF
25212 # Used for DWARF 2 in PE
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25214 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25215 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25216 $as_echo_n "(cached) " >&6
25217 else
25218 gcc_cv_as_ix86_pe_secrel32=no
25219 if test $in_tree_gas = yes; then
25220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25221 then gcc_cv_as_ix86_pe_secrel32=yes
25223 elif test x$gcc_cv_as != x; then
25224 $as_echo '.text
25225 foo: nop
25226 .data
25227 .secrel32 foo' > conftest.s
25228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25233 test $ac_status = 0; }; }
25234 then
25235 if test x$gcc_cv_ld != x \
25236 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25237 gcc_cv_as_ix86_pe_secrel32=yes
25239 rm -f conftest
25240 else
25241 echo "configure: failed program was" >&5
25242 cat conftest.s >&5
25244 rm -f conftest.o conftest.s
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25248 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25249 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25251 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25254 # Test if the assembler supports the extended form of the .section
25255 # directive that specifies section alignment. LTO support uses this,
25256 # but normally only after installation, so we warn but don't fail the
25257 # configure if LTO is enabled but the assembler does not support it.
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25259 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25260 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25261 $as_echo_n "(cached) " >&6
25262 else
25263 gcc_cv_as_section_has_align=no
25264 if test $in_tree_gas = yes; then
25265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25266 then gcc_cv_as_section_has_align=yes
25268 elif test x$gcc_cv_as != x; then
25269 $as_echo '.section lto_test,"dr0"' > conftest.s
25270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25272 (eval $ac_try) 2>&5
25273 ac_status=$?
25274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25275 test $ac_status = 0; }; }
25276 then
25277 gcc_cv_as_section_has_align=yes
25278 else
25279 echo "configure: failed program was" >&5
25280 cat conftest.s >&5
25282 rm -f conftest.o conftest.s
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25286 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25288 if test x$gcc_cv_as_section_has_align != xyes; then
25289 case ",$enable_languages," in
25290 *,lto,*)
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
25292 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
25294 esac
25297 esac
25299 # Test if the assembler supports the section flag 'e' for specifying
25300 # an excluded section.
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25302 $as_echo_n "checking assembler for .section with e... " >&6; }
25303 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25305 else
25306 gcc_cv_as_section_has_e=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25309 then gcc_cv_as_section_has_e=yes
25311 elif test x$gcc_cv_as != x; then
25312 $as_echo '.section foo1,"e"
25313 .byte 0,0,0,0' > conftest.s
25314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25316 (eval $ac_try) 2>&5
25317 ac_status=$?
25318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25319 test $ac_status = 0; }; }
25320 then
25321 gcc_cv_as_section_has_e=yes
25322 else
25323 echo "configure: failed program was" >&5
25324 cat conftest.s >&5
25326 rm -f conftest.o conftest.s
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25330 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25333 cat >>confdefs.h <<_ACEOF
25334 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25335 _ACEOF
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25339 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25340 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25342 else
25343 gcc_cv_as_ix86_filds=no
25344 if test x$gcc_cv_as != x; then
25345 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25348 (eval $ac_try) 2>&5
25349 ac_status=$?
25350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25351 test $ac_status = 0; }; }
25352 then
25353 gcc_cv_as_ix86_filds=yes
25354 else
25355 echo "configure: failed program was" >&5
25356 cat conftest.s >&5
25358 rm -f conftest.o conftest.s
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25362 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25363 if test $gcc_cv_as_ix86_filds = yes; then
25365 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25370 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25371 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25372 $as_echo_n "(cached) " >&6
25373 else
25374 gcc_cv_as_ix86_fildq=no
25375 if test x$gcc_cv_as != x; then
25376 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25379 (eval $ac_try) 2>&5
25380 ac_status=$?
25381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25382 test $ac_status = 0; }; }
25383 then
25384 gcc_cv_as_ix86_fildq=yes
25385 else
25386 echo "configure: failed program was" >&5
25387 cat conftest.s >&5
25389 rm -f conftest.o conftest.s
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25393 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25394 if test $gcc_cv_as_ix86_fildq = yes; then
25396 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25401 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25402 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25403 $as_echo_n "(cached) " >&6
25404 else
25405 gcc_cv_as_ix86_cmov_sun_syntax=no
25406 if test x$gcc_cv_as != x; then
25407 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; }
25414 then
25415 gcc_cv_as_ix86_cmov_sun_syntax=yes
25416 else
25417 echo "configure: failed program was" >&5
25418 cat conftest.s >&5
25420 rm -f conftest.o conftest.s
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25424 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25425 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25427 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25432 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25433 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25434 $as_echo_n "(cached) " >&6
25435 else
25436 gcc_cv_as_ix86_ffreep=no
25437 if test x$gcc_cv_as != x; then
25438 $as_echo 'ffreep %st(1)' > conftest.s
25439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25442 ac_status=$?
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25445 then
25446 gcc_cv_as_ix86_ffreep=yes
25447 else
25448 echo "configure: failed program was" >&5
25449 cat conftest.s >&5
25451 rm -f conftest.o conftest.s
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25455 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25456 if test $gcc_cv_as_ix86_ffreep = yes; then
25458 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25463 $as_echo_n "checking assembler for .quad directive... " >&6; }
25464 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25465 $as_echo_n "(cached) " >&6
25466 else
25467 gcc_cv_as_ix86_quad=no
25468 if test x$gcc_cv_as != x; then
25469 $as_echo '.quad 0' > conftest.s
25470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25475 test $ac_status = 0; }; }
25476 then
25477 gcc_cv_as_ix86_quad=yes
25478 else
25479 echo "configure: failed program was" >&5
25480 cat conftest.s >&5
25482 rm -f conftest.o conftest.s
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25486 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25487 if test $gcc_cv_as_ix86_quad = yes; then
25489 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25494 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25495 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25496 $as_echo_n "(cached) " >&6
25497 else
25498 gcc_cv_as_ix86_sahf=no
25499 if test x$gcc_cv_as != x; then
25500 $as_echo '.code64
25501 sahf' > conftest.s
25502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25504 (eval $ac_try) 2>&5
25505 ac_status=$?
25506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25507 test $ac_status = 0; }; }
25508 then
25509 gcc_cv_as_ix86_sahf=yes
25510 else
25511 echo "configure: failed program was" >&5
25512 cat conftest.s >&5
25514 rm -f conftest.o conftest.s
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25518 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25519 if test $gcc_cv_as_ix86_sahf = yes; then
25521 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25526 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25527 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25528 $as_echo_n "(cached) " >&6
25529 else
25530 gcc_cv_as_ix86_interunit_movq=no
25531 if test x$gcc_cv_as != x; then
25532 $as_echo '.code64
25533 movq %mm0, %rax
25534 movq %rax, %xmm0' > conftest.s
25535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25537 (eval $ac_try) 2>&5
25538 ac_status=$?
25539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25540 test $ac_status = 0; }; }
25541 then
25542 gcc_cv_as_ix86_interunit_movq=yes
25543 else
25544 echo "configure: failed program was" >&5
25545 cat conftest.s >&5
25547 rm -f conftest.o conftest.s
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25551 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25554 cat >>confdefs.h <<_ACEOF
25555 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25556 _ACEOF
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25560 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25561 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25562 $as_echo_n "(cached) " >&6
25563 else
25564 gcc_cv_as_ix86_hle=no
25565 if test x$gcc_cv_as != x; then
25566 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25572 test $ac_status = 0; }; }
25573 then
25574 gcc_cv_as_ix86_hle=yes
25575 else
25576 echo "configure: failed program was" >&5
25577 cat conftest.s >&5
25579 rm -f conftest.o conftest.s
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25583 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25584 if test $gcc_cv_as_ix86_hle = yes; then
25586 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25591 $as_echo_n "checking assembler for swap suffix... " >&6; }
25592 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25593 $as_echo_n "(cached) " >&6
25594 else
25595 gcc_cv_as_ix86_swap=no
25596 if test x$gcc_cv_as != x; then
25597 $as_echo 'movl.s %esp, %ebp' > conftest.s
25598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25603 test $ac_status = 0; }; }
25604 then
25605 gcc_cv_as_ix86_swap=yes
25606 else
25607 echo "configure: failed program was" >&5
25608 cat conftest.s >&5
25610 rm -f conftest.o conftest.s
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25614 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25615 if test $gcc_cv_as_ix86_swap = yes; then
25617 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25622 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25623 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25624 $as_echo_n "(cached) " >&6
25625 else
25626 gcc_cv_as_ix86_diff_sect_delta=no
25627 if test x$gcc_cv_as != x; then
25628 $as_echo '.section .rodata
25629 .L1:
25630 .long .L2-.L1
25631 .long .L3-.L1
25632 .text
25633 .L3: nop
25634 .L2: nop' > conftest.s
25635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25637 (eval $ac_try) 2>&5
25638 ac_status=$?
25639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25640 test $ac_status = 0; }; }
25641 then
25642 gcc_cv_as_ix86_diff_sect_delta=yes
25643 else
25644 echo "configure: failed program was" >&5
25645 cat conftest.s >&5
25647 rm -f conftest.o conftest.s
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25651 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25652 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25654 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25658 # These two are used unconditionally by i386.[ch]; it is to be defined
25659 # to 1 if the feature is present, 0 otherwise.
25660 as_ix86_gotoff_in_data_opt=
25661 if test x$gas = xyes; then
25662 as_ix86_gotoff_in_data_opt="--32"
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25665 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25666 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25667 $as_echo_n "(cached) " >&6
25668 else
25669 gcc_cv_as_ix86_gotoff_in_data=no
25670 if test $in_tree_gas = yes; then
25671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25672 then gcc_cv_as_ix86_gotoff_in_data=yes
25674 elif test x$gcc_cv_as != x; then
25675 $as_echo ' .text
25676 .L0:
25678 .data
25679 .long .L0@GOTOFF' > conftest.s
25680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25682 (eval $ac_try) 2>&5
25683 ac_status=$?
25684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25685 test $ac_status = 0; }; }
25686 then
25687 gcc_cv_as_ix86_gotoff_in_data=yes
25688 else
25689 echo "configure: failed program was" >&5
25690 cat conftest.s >&5
25692 rm -f conftest.o conftest.s
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25696 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25699 cat >>confdefs.h <<_ACEOF
25700 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25701 _ACEOF
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25705 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25706 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25707 $as_echo_n "(cached) " >&6
25708 else
25709 gcc_cv_as_ix86_rep_lock_prefix=no
25710 if test x$gcc_cv_as != x; then
25711 $as_echo 'rep movsl
25712 rep ret
25713 rep nop
25714 rep bsf %ecx, %eax
25715 rep bsr %ecx, %eax
25716 lock addl %edi, (%eax,%esi)
25717 lock orl $0, (%esp)' > conftest.s
25718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720 (eval $ac_try) 2>&5
25721 ac_status=$?
25722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723 test $ac_status = 0; }; }
25724 then
25725 gcc_cv_as_ix86_rep_lock_prefix=yes
25726 else
25727 echo "configure: failed program was" >&5
25728 cat conftest.s >&5
25730 rm -f conftest.o conftest.s
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25734 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25735 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25737 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25742 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25743 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25744 $as_echo_n "(cached) " >&6
25745 else
25746 gcc_cv_as_ix86_ud2=no
25747 if test x$gcc_cv_as != x; then
25748 $as_echo 'ud2' > conftest.s
25749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; }
25755 then
25756 gcc_cv_as_ix86_ud2=yes
25757 else
25758 echo "configure: failed program was" >&5
25759 cat conftest.s >&5
25761 rm -f conftest.o conftest.s
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25765 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25766 if test $gcc_cv_as_ix86_ud2 = yes; then
25768 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25773 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25774 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25775 $as_echo_n "(cached) " >&6
25776 else
25777 gcc_cv_as_ix86_tlsgdplt=no
25778 if test x$gcc_cv_as != x; then
25779 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785 test $ac_status = 0; }; }
25786 then
25787 if test x$gcc_cv_ld != x \
25788 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25789 gcc_cv_as_ix86_tlsgdplt=yes
25791 rm -f conftest
25792 else
25793 echo "configure: failed program was" >&5
25794 cat conftest.s >&5
25796 rm -f conftest.o conftest.s
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25800 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25801 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25803 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25807 conftest_s='
25808 .section .tdata,"aw'$tls_section_flag'",@progbits
25809 tls_ld:
25810 .section .text,"ax",@progbits
25811 call tls_ld@tlsldmplt'
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25813 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25814 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25815 $as_echo_n "(cached) " >&6
25816 else
25817 gcc_cv_as_ix86_tlsldmplt=no
25818 if test x$gcc_cv_as != x; then
25819 $as_echo "$conftest_s" > conftest.s
25820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25822 (eval $ac_try) 2>&5
25823 ac_status=$?
25824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25825 test $ac_status = 0; }; }
25826 then
25827 if test x$gcc_cv_ld != x \
25828 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25829 gcc_cv_as_ix86_tlsldmplt=yes
25831 rm -f conftest
25832 else
25833 echo "configure: failed program was" >&5
25834 cat conftest.s >&5
25836 rm -f conftest.o conftest.s
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25840 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25843 cat >>confdefs.h <<_ACEOF
25844 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25845 _ACEOF
25848 # Enforce 32-bit output with gas and gld.
25849 if test x$gas = xyes; then
25850 as_ix86_tls_ldm_opt="--32"
25852 if echo "$ld_ver" | grep GNU > /dev/null; then
25853 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25854 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25855 else
25856 ld_ix86_tls_ldm_opt="-melf_i386"
25859 conftest_s='
25860 .section .text,"ax",@progbits
25861 .globl _start
25862 .type _start, @function
25863 _start:
25864 leal value@tlsldm(%ebx), %eax
25865 call ___tls_get_addr@plt
25867 .section .tdata,"aw'$tls_section_flag'",@progbits
25868 .type value, @object
25869 value:'
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25871 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25872 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25873 $as_echo_n "(cached) " >&6
25874 else
25875 gcc_cv_as_ix86_tlsldm=no
25876 if test x$gcc_cv_as != x; then
25877 $as_echo "$conftest_s" > conftest.s
25878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25880 (eval $ac_try) 2>&5
25881 ac_status=$?
25882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25883 test $ac_status = 0; }; }
25884 then
25885 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25886 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25887 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25888 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25889 gcc_cv_as_ix86_tlsldm=yes
25892 rm -f conftest
25893 else
25894 echo "configure: failed program was" >&5
25895 cat conftest.s >&5
25897 rm -f conftest.o conftest.s
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25901 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25904 cat >>confdefs.h <<_ACEOF
25905 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25906 _ACEOF
25911 ia64*-*-*)
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25913 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25914 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25915 $as_echo_n "(cached) " >&6
25916 else
25917 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25918 if test $in_tree_gas = yes; then
25919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25920 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25922 elif test x$gcc_cv_as != x; then
25923 $as_echo ' .text
25924 addl r15 = @ltoffx(x#), gp
25926 ld8.mov r16 = [r15], x#' > conftest.s
25927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25929 (eval $ac_try) 2>&5
25930 ac_status=$?
25931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25932 test $ac_status = 0; }; }
25933 then
25934 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25935 else
25936 echo "configure: failed program was" >&5
25937 cat conftest.s >&5
25939 rm -f conftest.o conftest.s
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25943 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25944 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25946 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25952 powerpc*-*-*)
25954 case $target in
25955 *-*-darwin*)
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25957 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25958 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25959 $as_echo_n "(cached) " >&6
25960 else
25961 gcc_cv_as_machine_directive=no
25962 if test x$gcc_cv_as != x; then
25963 $as_echo ' .machine ppc7400' > conftest.s
25964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25966 (eval $ac_try) 2>&5
25967 ac_status=$?
25968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25969 test $ac_status = 0; }; }
25970 then
25971 gcc_cv_as_machine_directive=yes
25972 else
25973 echo "configure: failed program was" >&5
25974 cat conftest.s >&5
25976 rm -f conftest.o conftest.s
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25980 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25982 if test x$gcc_cv_as_machine_directive != xyes; then
25983 echo "*** This target requires an assembler supporting \".machine\"" >&2
25984 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25985 test x$build = x$target && exit 1
25988 esac
25990 case $target in
25991 *-*-aix*) conftest_s=' .machine "pwr5"
25992 .csect .text[PR]
25993 mfcr 3,128';;
25994 *-*-darwin*) conftest_s=' .text
25995 mfcr r3,128';;
25996 *) conftest_s=' .machine power4
25997 .text
25998 mfcr 3,128';;
25999 esac
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26002 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26003 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26004 $as_echo_n "(cached) " >&6
26005 else
26006 gcc_cv_as_powerpc_mfcrf=no
26007 if test $in_tree_gas = yes; then
26008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26009 then gcc_cv_as_powerpc_mfcrf=yes
26011 elif test x$gcc_cv_as != x; then
26012 $as_echo "$conftest_s" > conftest.s
26013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26018 test $ac_status = 0; }; }
26019 then
26020 gcc_cv_as_powerpc_mfcrf=yes
26021 else
26022 echo "configure: failed program was" >&5
26023 cat conftest.s >&5
26025 rm -f conftest.o conftest.s
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26029 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26030 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26032 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26036 case $target in
26037 *-*-aix*) conftest_s=' .machine "pwr5"
26038 .csect .text[PR]
26039 popcntb 3,3';;
26040 *) conftest_s=' .machine power5
26041 .text
26042 popcntb 3,3';;
26043 esac
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26046 $as_echo_n "checking assembler for popcntb support... " >&6; }
26047 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26049 else
26050 gcc_cv_as_powerpc_popcntb=no
26051 if test $in_tree_gas = yes; then
26052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26053 then gcc_cv_as_powerpc_popcntb=yes
26055 elif test x$gcc_cv_as != x; then
26056 $as_echo "$conftest_s" > conftest.s
26057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26059 (eval $ac_try) 2>&5
26060 ac_status=$?
26061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26062 test $ac_status = 0; }; }
26063 then
26064 gcc_cv_as_powerpc_popcntb=yes
26065 else
26066 echo "configure: failed program was" >&5
26067 cat conftest.s >&5
26069 rm -f conftest.o conftest.s
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26073 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26074 if test $gcc_cv_as_powerpc_popcntb = yes; then
26076 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26080 case $target in
26081 *-*-aix*) conftest_s=' .machine "pwr5x"
26082 .csect .text[PR]
26083 frin 1,1';;
26084 *) conftest_s=' .machine power5
26085 .text
26086 frin 1,1';;
26087 esac
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26090 $as_echo_n "checking assembler for fp round support... " >&6; }
26091 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26092 $as_echo_n "(cached) " >&6
26093 else
26094 gcc_cv_as_powerpc_fprnd=no
26095 if test $in_tree_gas = yes; then
26096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26097 then gcc_cv_as_powerpc_fprnd=yes
26099 elif test x$gcc_cv_as != x; then
26100 $as_echo "$conftest_s" > conftest.s
26101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26103 (eval $ac_try) 2>&5
26104 ac_status=$?
26105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26106 test $ac_status = 0; }; }
26107 then
26108 gcc_cv_as_powerpc_fprnd=yes
26109 else
26110 echo "configure: failed program was" >&5
26111 cat conftest.s >&5
26113 rm -f conftest.o conftest.s
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26117 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26118 if test $gcc_cv_as_powerpc_fprnd = yes; then
26120 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26124 case $target in
26125 *-*-aix*) conftest_s=' .machine "pwr6"
26126 .csect .text[PR]
26127 mffgpr 1,3';;
26128 *) conftest_s=' .machine power6
26129 .text
26130 mffgpr 1,3';;
26131 esac
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26134 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26135 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26136 $as_echo_n "(cached) " >&6
26137 else
26138 gcc_cv_as_powerpc_mfpgpr=no
26139 if test $in_tree_gas = yes; then
26140 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26141 then gcc_cv_as_powerpc_mfpgpr=yes
26143 elif test x$gcc_cv_as != x; then
26144 $as_echo "$conftest_s" > conftest.s
26145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26150 test $ac_status = 0; }; }
26151 then
26152 gcc_cv_as_powerpc_mfpgpr=yes
26153 else
26154 echo "configure: failed program was" >&5
26155 cat conftest.s >&5
26157 rm -f conftest.o conftest.s
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26161 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26162 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26164 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26168 case $target in
26169 *-*-aix*) conftest_s=' .csect .text[PR]
26170 LCF..0:
26171 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26172 *-*-darwin*)
26173 conftest_s=' .text
26174 LCF0:
26175 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26176 *) conftest_s=' .text
26177 .LCF0:
26178 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26179 esac
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26182 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26183 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26184 $as_echo_n "(cached) " >&6
26185 else
26186 gcc_cv_as_powerpc_rel16=no
26187 if test $in_tree_gas = yes; then
26188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26189 then gcc_cv_as_powerpc_rel16=yes
26191 elif test x$gcc_cv_as != x; then
26192 $as_echo "$conftest_s" > conftest.s
26193 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26196 ac_status=$?
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26199 then
26200 gcc_cv_as_powerpc_rel16=yes
26201 else
26202 echo "configure: failed program was" >&5
26203 cat conftest.s >&5
26205 rm -f conftest.o conftest.s
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26209 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26210 if test $gcc_cv_as_powerpc_rel16 = yes; then
26212 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26216 case $target in
26217 *-*-aix*) conftest_s=' .machine "pwr6"
26218 .csect .text[PR]
26219 cmpb 3,4,5';;
26220 *) conftest_s=' .machine power6
26221 .text
26222 cmpb 3,4,5';;
26223 esac
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26226 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26227 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26228 $as_echo_n "(cached) " >&6
26229 else
26230 gcc_cv_as_powerpc_cmpb=no
26231 if test $in_tree_gas = yes; then
26232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26233 then gcc_cv_as_powerpc_cmpb=yes
26235 elif test x$gcc_cv_as != x; then
26236 $as_echo "$conftest_s" > conftest.s
26237 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26239 (eval $ac_try) 2>&5
26240 ac_status=$?
26241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26242 test $ac_status = 0; }; }
26243 then
26244 gcc_cv_as_powerpc_cmpb=yes
26245 else
26246 echo "configure: failed program was" >&5
26247 cat conftest.s >&5
26249 rm -f conftest.o conftest.s
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26253 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26254 if test $gcc_cv_as_powerpc_cmpb = yes; then
26256 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26260 case $target in
26261 *-*-aix*) conftest_s=' .machine "pwr6"
26262 .csect .text[PR]
26263 dadd 1,2,3';;
26264 *) conftest_s=' .machine power6
26265 .text
26266 dadd 1,2,3';;
26267 esac
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26270 $as_echo_n "checking assembler for decimal float support... " >&6; }
26271 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26272 $as_echo_n "(cached) " >&6
26273 else
26274 gcc_cv_as_powerpc_dfp=no
26275 if test $in_tree_gas = yes; then
26276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26277 then gcc_cv_as_powerpc_dfp=yes
26279 elif test x$gcc_cv_as != x; then
26280 $as_echo "$conftest_s" > conftest.s
26281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26283 (eval $ac_try) 2>&5
26284 ac_status=$?
26285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26286 test $ac_status = 0; }; }
26287 then
26288 gcc_cv_as_powerpc_dfp=yes
26289 else
26290 echo "configure: failed program was" >&5
26291 cat conftest.s >&5
26293 rm -f conftest.o conftest.s
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26297 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26298 if test $gcc_cv_as_powerpc_dfp = yes; then
26300 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26304 case $target in
26305 *-*-aix*) conftest_s=' .machine "pwr7"
26306 .csect .text[PR]
26307 lxvd2x 1,2,3';;
26308 *) conftest_s=' .machine power7
26309 .text
26310 lxvd2x 1,2,3';;
26311 esac
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26314 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26315 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26316 $as_echo_n "(cached) " >&6
26317 else
26318 gcc_cv_as_powerpc_vsx=no
26319 if test $in_tree_gas = yes; then
26320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26321 then gcc_cv_as_powerpc_vsx=yes
26323 elif test x$gcc_cv_as != x; then
26324 $as_echo "$conftest_s" > conftest.s
26325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26331 then
26332 gcc_cv_as_powerpc_vsx=yes
26333 else
26334 echo "configure: failed program was" >&5
26335 cat conftest.s >&5
26337 rm -f conftest.o conftest.s
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26341 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26342 if test $gcc_cv_as_powerpc_vsx = yes; then
26344 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26348 case $target in
26349 *-*-aix*) conftest_s=' .machine "pwr7"
26350 .csect .text[PR]
26351 popcntd 3,3';;
26352 *) conftest_s=' .machine power7
26353 .text
26354 popcntd 3,3';;
26355 esac
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26358 $as_echo_n "checking assembler for popcntd support... " >&6; }
26359 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26360 $as_echo_n "(cached) " >&6
26361 else
26362 gcc_cv_as_powerpc_popcntd=no
26363 if test $in_tree_gas = yes; then
26364 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26365 then gcc_cv_as_powerpc_popcntd=yes
26367 elif test x$gcc_cv_as != x; then
26368 $as_echo "$conftest_s" > conftest.s
26369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26371 (eval $ac_try) 2>&5
26372 ac_status=$?
26373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26374 test $ac_status = 0; }; }
26375 then
26376 gcc_cv_as_powerpc_popcntd=yes
26377 else
26378 echo "configure: failed program was" >&5
26379 cat conftest.s >&5
26381 rm -f conftest.o conftest.s
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26385 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26386 if test $gcc_cv_as_powerpc_popcntd = yes; then
26388 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26392 case $target in
26393 *-*-aix*) conftest_s=' .machine "pwr8"
26394 .csect .text[PR]';;
26395 *) conftest_s=' .machine power8
26396 .text';;
26397 esac
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26400 $as_echo_n "checking assembler for power8 support... " >&6; }
26401 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26402 $as_echo_n "(cached) " >&6
26403 else
26404 gcc_cv_as_powerpc_power8=no
26405 if test $in_tree_gas = yes; then
26406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26407 then gcc_cv_as_powerpc_power8=yes
26409 elif test x$gcc_cv_as != x; then
26410 $as_echo "$conftest_s" > conftest.s
26411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26416 test $ac_status = 0; }; }
26417 then
26418 gcc_cv_as_powerpc_power8=yes
26419 else
26420 echo "configure: failed program was" >&5
26421 cat conftest.s >&5
26423 rm -f conftest.o conftest.s
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26427 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26428 if test $gcc_cv_as_powerpc_power8 = yes; then
26430 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26434 case $target in
26435 *-*-aix*) conftest_s=' .machine "pwr9"
26436 .csect .text[PR]';;
26437 *) conftest_s=' .machine power9
26438 .text';;
26439 esac
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26442 $as_echo_n "checking assembler for power9 support... " >&6; }
26443 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26444 $as_echo_n "(cached) " >&6
26445 else
26446 gcc_cv_as_powerpc_power9=no
26447 if test $in_tree_gas = yes; then
26448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26449 then gcc_cv_as_powerpc_power9=yes
26451 elif test x$gcc_cv_as != x; then
26452 $as_echo "$conftest_s" > conftest.s
26453 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26458 test $ac_status = 0; }; }
26459 then
26460 gcc_cv_as_powerpc_power9=yes
26461 else
26462 echo "configure: failed program was" >&5
26463 cat conftest.s >&5
26465 rm -f conftest.o conftest.s
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26469 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26470 if test $gcc_cv_as_powerpc_power9 = yes; then
26472 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26476 case $target in
26477 *-*-aix*) conftest_s=' .csect .text[PR]
26478 lwsync';;
26479 *) conftest_s=' .text
26480 lwsync';;
26481 esac
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26484 $as_echo_n "checking assembler for lwsync support... " >&6; }
26485 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26486 $as_echo_n "(cached) " >&6
26487 else
26488 gcc_cv_as_powerpc_lwsync=no
26489 if test $in_tree_gas = yes; then
26490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26491 then gcc_cv_as_powerpc_lwsync=yes
26493 elif test x$gcc_cv_as != x; then
26494 $as_echo "$conftest_s" > conftest.s
26495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26500 test $ac_status = 0; }; }
26501 then
26502 gcc_cv_as_powerpc_lwsync=yes
26503 else
26504 echo "configure: failed program was" >&5
26505 cat conftest.s >&5
26507 rm -f conftest.o conftest.s
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26511 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26512 if test $gcc_cv_as_powerpc_lwsync = yes; then
26514 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26518 case $target in
26519 *-*-aix*) conftest_s=' .machine "476"
26520 .csect .text[PR]
26521 dci 0';;
26522 *) conftest_s=' .machine "476"
26523 .text
26524 dci 0';;
26525 esac
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26528 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26529 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26530 $as_echo_n "(cached) " >&6
26531 else
26532 gcc_cv_as_powerpc_dci=no
26533 if test $in_tree_gas = yes; then
26534 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26535 then gcc_cv_as_powerpc_dci=yes
26537 elif test x$gcc_cv_as != x; then
26538 $as_echo "$conftest_s" > conftest.s
26539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26541 (eval $ac_try) 2>&5
26542 ac_status=$?
26543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26544 test $ac_status = 0; }; }
26545 then
26546 gcc_cv_as_powerpc_dci=yes
26547 else
26548 echo "configure: failed program was" >&5
26549 cat conftest.s >&5
26551 rm -f conftest.o conftest.s
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26555 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26556 if test $gcc_cv_as_powerpc_dci = yes; then
26558 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26563 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26564 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26565 $as_echo_n "(cached) " >&6
26566 else
26567 gcc_cv_as_powerpc_gnu_attribute=no
26568 if test $in_tree_gas = yes; then
26569 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26570 then gcc_cv_as_powerpc_gnu_attribute=yes
26572 elif test x$gcc_cv_as != x; then
26573 $as_echo '.gnu_attribute 4,1' > conftest.s
26574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26576 (eval $ac_try) 2>&5
26577 ac_status=$?
26578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26579 test $ac_status = 0; }; }
26580 then
26581 gcc_cv_as_powerpc_gnu_attribute=yes
26582 else
26583 echo "configure: failed program was" >&5
26584 cat conftest.s >&5
26586 rm -f conftest.o conftest.s
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26590 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26591 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26593 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26598 $as_echo_n "checking assembler for tls marker support... " >&6; }
26599 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26600 $as_echo_n "(cached) " >&6
26601 else
26602 gcc_cv_as_powerpc_tls_markers=no
26603 if test $in_tree_gas = yes; then
26604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26605 then gcc_cv_as_powerpc_tls_markers=yes
26607 elif test x$gcc_cv_as != x; then
26608 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26614 test $ac_status = 0; }; }
26615 then
26616 gcc_cv_as_powerpc_tls_markers=yes
26617 else
26618 echo "configure: failed program was" >&5
26619 cat conftest.s >&5
26621 rm -f conftest.o conftest.s
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26625 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26626 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26628 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26633 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26634 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26635 $as_echo_n "(cached) " >&6
26636 else
26637 gcc_cv_as_powerpc_entry_markers=no
26638 if test $in_tree_gas = yes; then
26639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26640 then gcc_cv_as_powerpc_entry_markers=yes
26642 elif test x$gcc_cv_as != x; then
26643 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26650 then
26651 gcc_cv_as_powerpc_entry_markers=yes
26652 else
26653 echo "configure: failed program was" >&5
26654 cat conftest.s >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26660 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26661 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26663 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26667 case $target in
26668 *-*-aix*)
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26670 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26671 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26672 $as_echo_n "(cached) " >&6
26673 else
26674 gcc_cv_as_aix_ref=no
26675 if test $in_tree_gas = yes; then
26676 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26677 then gcc_cv_as_aix_ref=yes
26679 elif test x$gcc_cv_as != x; then
26680 $as_echo ' .csect stuff[rw]
26681 stuff:
26682 .long 1
26683 .extern sym
26684 .ref sym
26685 ' > conftest.s
26686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26688 (eval $ac_try) 2>&5
26689 ac_status=$?
26690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26691 test $ac_status = 0; }; }
26692 then
26693 gcc_cv_as_aix_ref=yes
26694 else
26695 echo "configure: failed program was" >&5
26696 cat conftest.s >&5
26698 rm -f conftest.o conftest.s
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26702 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26703 if test $gcc_cv_as_aix_ref = yes; then
26705 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26710 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26711 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26712 $as_echo_n "(cached) " >&6
26713 else
26714 gcc_cv_as_aix_dwloc=no
26715 if test $in_tree_gas = yes; then
26716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26717 then gcc_cv_as_aix_dwloc=yes
26719 elif test x$gcc_cv_as != x; then
26720 $as_echo ' .dwsect 0xA0000
26721 Lframe..0:
26722 .vbyte 4,Lframe..0:
26723 ' > conftest.s
26724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26727 ac_status=$?
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26730 then
26731 gcc_cv_as_aix_dwloc=yes
26732 else
26733 echo "configure: failed program was" >&5
26734 cat conftest.s >&5
26736 rm -f conftest.o conftest.s
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26740 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26741 if test $gcc_cv_as_aix_dwloc = yes; then
26743 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26747 esac
26750 mips*-*-*)
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26752 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26753 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26754 $as_echo_n "(cached) " >&6
26755 else
26756 gcc_cv_as_mips_explicit_relocs=no
26757 if test $in_tree_gas = yes; then
26758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26759 then gcc_cv_as_mips_explicit_relocs=yes
26761 elif test x$gcc_cv_as != x; then
26762 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26768 test $ac_status = 0; }; }
26769 then
26770 gcc_cv_as_mips_explicit_relocs=yes
26771 else
26772 echo "configure: failed program was" >&5
26773 cat conftest.s >&5
26775 rm -f conftest.o conftest.s
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26779 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26780 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26781 if test x$target_cpu_default = x
26782 then target_cpu_default=MASK_EXPLICIT_RELOCS
26783 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26788 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26789 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26790 $as_echo_n "(cached) " >&6
26791 else
26792 gcc_cv_as_mips_no_shared=no
26793 if test $in_tree_gas = yes; then
26794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26795 then gcc_cv_as_mips_no_shared=yes
26797 elif test x$gcc_cv_as != x; then
26798 $as_echo 'nop' > conftest.s
26799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26804 test $ac_status = 0; }; }
26805 then
26806 gcc_cv_as_mips_no_shared=yes
26807 else
26808 echo "configure: failed program was" >&5
26809 cat conftest.s >&5
26811 rm -f conftest.o conftest.s
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26815 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26816 if test $gcc_cv_as_mips_no_shared = yes; then
26818 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26823 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26824 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26825 $as_echo_n "(cached) " >&6
26826 else
26827 gcc_cv_as_mips_gnu_attribute=no
26828 if test $in_tree_gas = yes; then
26829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26830 then gcc_cv_as_mips_gnu_attribute=yes
26832 elif test x$gcc_cv_as != x; then
26833 $as_echo '.gnu_attribute 4,1' > conftest.s
26834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26836 (eval $ac_try) 2>&5
26837 ac_status=$?
26838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26839 test $ac_status = 0; }; }
26840 then
26841 gcc_cv_as_mips_gnu_attribute=yes
26842 else
26843 echo "configure: failed program was" >&5
26844 cat conftest.s >&5
26846 rm -f conftest.o conftest.s
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26850 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26851 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26853 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26858 $as_echo_n "checking assembler for .module support... " >&6; }
26859 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26860 $as_echo_n "(cached) " >&6
26861 else
26862 gcc_cv_as_mips_dot_module=no
26863 if test x$gcc_cv_as != x; then
26864 $as_echo '.module mips2
26865 .module fp=xx' > conftest.s
26866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26868 (eval $ac_try) 2>&5
26869 ac_status=$?
26870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26871 test $ac_status = 0; }; }
26872 then
26873 gcc_cv_as_mips_dot_module=yes
26874 else
26875 echo "configure: failed program was" >&5
26876 cat conftest.s >&5
26878 rm -f conftest.o conftest.s
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26882 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26883 if test $gcc_cv_as_mips_dot_module = yes; then
26885 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26888 if test x$gcc_cv_as_mips_dot_module = xno \
26889 && test x$with_fp_32 != x; then
26890 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26894 $as_echo_n "checking assembler for .micromips support... " >&6; }
26895 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26896 $as_echo_n "(cached) " >&6
26897 else
26898 gcc_cv_as_micromips_support=no
26899 if test x$gcc_cv_as != x; then
26900 $as_echo '.set micromips' > conftest.s
26901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26903 (eval $ac_try) 2>&5
26904 ac_status=$?
26905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26906 test $ac_status = 0; }; }
26907 then
26908 gcc_cv_as_micromips_support=yes
26909 else
26910 echo "configure: failed program was" >&5
26911 cat conftest.s >&5
26913 rm -f conftest.o conftest.s
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26917 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26918 if test $gcc_cv_as_micromips_support = yes; then
26920 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26925 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26926 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26927 $as_echo_n "(cached) " >&6
26928 else
26929 gcc_cv_as_mips_dtprelword=no
26930 if test $in_tree_gas = yes; then
26931 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26932 then gcc_cv_as_mips_dtprelword=yes
26934 elif test x$gcc_cv_as != x; then
26935 $as_echo '.section .tdata,"awT",@progbits
26937 .word 2
26938 .text
26939 .dtprelword x+0x8000' > conftest.s
26940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26942 (eval $ac_try) 2>&5
26943 ac_status=$?
26944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26945 test $ac_status = 0; }; }
26946 then
26947 gcc_cv_as_mips_dtprelword=yes
26948 else
26949 echo "configure: failed program was" >&5
26950 cat conftest.s >&5
26952 rm -f conftest.o conftest.s
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26956 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26957 if test $gcc_cv_as_mips_dtprelword = yes; then
26959 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26964 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26965 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26966 $as_echo_n "(cached) " >&6
26967 else
26968 gcc_cv_as_mips_dspr1_mult=no
26969 if test x$gcc_cv_as != x; then
26970 $as_echo ' .set mips32r2
26971 .set nodspr2
26972 .set dsp
26973 madd $ac3,$4,$5
26974 maddu $ac3,$4,$5
26975 msub $ac3,$4,$5
26976 msubu $ac3,$4,$5
26977 mult $ac3,$4,$5
26978 multu $ac3,$4,$5' > conftest.s
26979 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26982 ac_status=$?
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }
26985 then
26986 gcc_cv_as_mips_dspr1_mult=yes
26987 else
26988 echo "configure: failed program was" >&5
26989 cat conftest.s >&5
26991 rm -f conftest.o conftest.s
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26995 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26996 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26998 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27003 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27004 gcc_cv_as_ld_jalr_reloc=no
27005 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27006 if test $in_tree_ld = yes ; then
27007 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
27008 && test $in_tree_ld_is_elf = yes; then
27009 gcc_cv_as_ld_jalr_reloc=yes
27011 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27012 echo ' .ent x' > conftest.s
27013 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27014 echo ' lw $25,%call16(y)($28)' >> conftest.s
27015 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27016 echo '1: jalr $25' >> conftest.s
27017 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27018 echo '1: jalr $25' >> conftest.s
27019 echo ' .end x' >> conftest.s
27020 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27021 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27022 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27023 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27024 gcc_cv_as_ld_jalr_reloc=yes
27027 rm -f conftest.*
27030 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27031 if test x$target_cpu_default = x; then
27032 target_cpu_default=MASK_RELAX_PIC_CALLS
27033 else
27034 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27038 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27041 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27042 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27043 $as_echo_n "(cached) " >&6
27044 else
27045 gcc_cv_ld_mips_personality_relaxation=no
27046 if test $in_tree_ld = yes ; then
27047 if test "$gcc_cv_gld_major_version" -eq 2 \
27048 -a "$gcc_cv_gld_minor_version" -ge 21 \
27049 -o "$gcc_cv_gld_major_version" -gt 2; then
27050 gcc_cv_ld_mips_personality_relaxation=yes
27052 elif test x$gcc_cv_as != x \
27053 -a x$gcc_cv_ld != x \
27054 -a x$gcc_cv_readelf != x ; then
27055 cat > conftest.s <<EOF
27056 .cfi_startproc
27057 .cfi_personality 0x80,indirect_ptr
27058 .ent test
27059 test:
27061 .end test
27062 .cfi_endproc
27064 .section .data,"aw",@progbits
27065 indirect_ptr:
27066 .dc.a personality
27068 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27069 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27070 if $gcc_cv_readelf -d conftest 2>&1 \
27071 | grep TEXTREL > /dev/null 2>&1; then
27073 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27074 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27076 else
27077 gcc_cv_ld_mips_personality_relaxation=yes
27081 rm -f conftest.s conftest.o conftest
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27084 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27085 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27087 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27092 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27093 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27094 $as_echo_n "(cached) " >&6
27095 else
27096 gcc_cv_as_mips_nan=no
27097 if test x$gcc_cv_as != x; then
27098 $as_echo '' > conftest.s
27099 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27101 (eval $ac_try) 2>&5
27102 ac_status=$?
27103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27104 test $ac_status = 0; }; }
27105 then
27106 gcc_cv_as_mips_nan=yes
27107 else
27108 echo "configure: failed program was" >&5
27109 cat conftest.s >&5
27111 rm -f conftest.o conftest.s
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27115 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27116 if test $gcc_cv_as_mips_nan = yes; then
27118 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27121 if test x$gcc_cv_as_mips_nan = xno \
27122 && test x$with_nan != x; then
27123 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27126 s390*-*-*)
27127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27128 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27129 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27130 $as_echo_n "(cached) " >&6
27131 else
27132 gcc_cv_as_s390_gnu_attribute=no
27133 if test $in_tree_gas = yes; then
27134 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27135 then gcc_cv_as_s390_gnu_attribute=yes
27137 elif test x$gcc_cv_as != x; then
27138 $as_echo '.gnu_attribute 8,1' > conftest.s
27139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27144 test $ac_status = 0; }; }
27145 then
27146 gcc_cv_as_s390_gnu_attribute=yes
27147 else
27148 echo "configure: failed program was" >&5
27149 cat conftest.s >&5
27151 rm -f conftest.o conftest.s
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27155 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27156 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27158 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27162 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27163 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27164 $as_echo_n "(cached) " >&6
27165 else
27166 gcc_cv_as_s390_machine_machinemode=no
27167 if test $in_tree_gas = yes; then
27168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27169 then gcc_cv_as_s390_machine_machinemode=yes
27171 elif test x$gcc_cv_as != x; then
27172 $as_echo ' .machinemode push
27173 .machinemode pop
27174 .machine push
27175 .machine pop' > conftest.s
27176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27178 (eval $ac_try) 2>&5
27179 ac_status=$?
27180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27181 test $ac_status = 0; }; }
27182 then
27183 gcc_cv_as_s390_machine_machinemode=yes
27184 else
27185 echo "configure: failed program was" >&5
27186 cat conftest.s >&5
27188 rm -f conftest.o conftest.s
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27192 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27193 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27195 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27199 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27200 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27201 $as_echo_n "(cached) " >&6
27202 else
27203 gcc_cv_as_s390_architecture_modifiers=no
27204 if test $in_tree_gas = yes; then
27205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27206 then gcc_cv_as_s390_architecture_modifiers=yes
27208 elif test x$gcc_cv_as != x; then
27209 $as_echo ' .machine z13+vx ' > conftest.s
27210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27212 (eval $ac_try) 2>&5
27213 ac_status=$?
27214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27215 test $ac_status = 0; }; }
27216 then
27217 gcc_cv_as_s390_architecture_modifiers=yes
27218 else
27219 echo "configure: failed program was" >&5
27220 cat conftest.s >&5
27222 rm -f conftest.o conftest.s
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27226 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27227 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27229 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27233 esac
27235 # Mips and HP-UX need the GNU assembler.
27236 # Linux on IA64 might be able to use the Intel assembler.
27238 case "$target" in
27239 mips*-*-* | *-*-hpux* )
27240 if test x$gas_flag = xyes \
27241 || test x"$host" != x"$build" \
27242 || test ! -x "$gcc_cv_as" \
27243 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27245 else
27246 echo "*** This configuration requires the GNU assembler" >&2
27247 exit 1
27250 esac
27252 # ??? Not all targets support dwarf2 debug_line, even within a version
27253 # of gas. Moreover, we need to emit a valid instruction to trigger any
27254 # info to the output file. So, as supported targets are added to gas 2.11,
27255 # add some instruction here to (also) show we expect this might work.
27256 # ??? Once 2.11 is released, probably need to add first known working
27257 # version to the per-target configury.
27258 case "$cpu_type" in
27259 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27260 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27261 | visium | xstormy16 | xtensa)
27262 insn="nop"
27264 ia64 | s390)
27265 insn="nop 0"
27267 mmix)
27268 insn="swym 0"
27270 esac
27271 if test x"$insn" != x; then
27272 conftest_s="\
27273 .file 1 \"conftest.s\"
27274 .loc 1 3 0
27275 $insn"
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27277 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27278 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27279 $as_echo_n "(cached) " >&6
27280 else
27281 gcc_cv_as_dwarf2_debug_line=no
27282 if test $in_tree_gas = yes; then
27283 if test $in_tree_gas_is_elf = yes \
27284 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27285 then gcc_cv_as_dwarf2_debug_line=yes
27287 elif test x$gcc_cv_as != x; then
27288 $as_echo "$conftest_s" > conftest.s
27289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27291 (eval $ac_try) 2>&5
27292 ac_status=$?
27293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27294 test $ac_status = 0; }; }
27295 then
27296 if test x$gcc_cv_objdump != x \
27297 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27298 | grep debug_line > /dev/null 2>&1; then
27299 gcc_cv_as_dwarf2_debug_line=yes
27301 else
27302 echo "configure: failed program was" >&5
27303 cat conftest.s >&5
27305 rm -f conftest.o conftest.s
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27309 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27312 # The .debug_line file table must be in the exact order that
27313 # we specified the files, since these indices are also used
27314 # by DW_AT_decl_file. Approximate this test by testing if
27315 # the assembler bitches if the same index is assigned twice.
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27317 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27318 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27319 $as_echo_n "(cached) " >&6
27320 else
27321 gcc_cv_as_dwarf2_file_buggy=no
27322 if test x$gcc_cv_as != x; then
27323 $as_echo ' .file 1 "foo.s"
27324 .file 1 "bar.s"' > conftest.s
27325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27327 (eval $ac_try) 2>&5
27328 ac_status=$?
27329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27330 test $ac_status = 0; }; }
27331 then
27332 gcc_cv_as_dwarf2_file_buggy=yes
27333 else
27334 echo "configure: failed program was" >&5
27335 cat conftest.s >&5
27337 rm -f conftest.o conftest.s
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27341 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27344 if test $gcc_cv_as_dwarf2_debug_line = yes \
27345 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27347 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27352 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27353 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27354 $as_echo_n "(cached) " >&6
27355 else
27356 gcc_cv_as_gdwarf2_flag=no
27357 if test $in_tree_gas = yes; then
27358 if test $in_tree_gas_is_elf = yes \
27359 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27360 then gcc_cv_as_gdwarf2_flag=yes
27362 elif test x$gcc_cv_as != x; then
27363 $as_echo "$insn" > conftest.s
27364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27366 (eval $ac_try) 2>&5
27367 ac_status=$?
27368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27369 test $ac_status = 0; }; }
27370 then
27371 gcc_cv_as_gdwarf2_flag=yes
27372 else
27373 echo "configure: failed program was" >&5
27374 cat conftest.s >&5
27376 rm -f conftest.o conftest.s
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27380 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27381 if test $gcc_cv_as_gdwarf2_flag = yes; then
27383 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27388 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27389 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27390 $as_echo_n "(cached) " >&6
27391 else
27392 gcc_cv_as_gstabs_flag=no
27393 if test $in_tree_gas = yes; then
27394 if test $in_tree_gas_is_elf = yes \
27395 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27396 then gcc_cv_as_gstabs_flag=yes
27398 elif test x$gcc_cv_as != x; then
27399 $as_echo "$insn" > conftest.s
27400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27402 (eval $ac_try) 2>&5
27403 ac_status=$?
27404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27405 test $ac_status = 0; }; }
27406 then
27407 gcc_cv_as_gstabs_flag=yes
27408 else
27409 echo "configure: failed program was" >&5
27410 cat conftest.s >&5
27412 rm -f conftest.o conftest.s
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27416 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27417 if test $gcc_cv_as_gstabs_flag = yes; then
27419 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27424 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27425 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27426 $as_echo_n "(cached) " >&6
27427 else
27428 gcc_cv_as_debug_prefix_map_flag=no
27429 if test $in_tree_gas = yes; then
27430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27431 then gcc_cv_as_debug_prefix_map_flag=yes
27433 elif test x$gcc_cv_as != x; then
27434 $as_echo "$insn" > conftest.s
27435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27437 (eval $ac_try) 2>&5
27438 ac_status=$?
27439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27440 test $ac_status = 0; }; }
27441 then
27442 gcc_cv_as_debug_prefix_map_flag=yes
27443 else
27444 echo "configure: failed program was" >&5
27445 cat conftest.s >&5
27447 rm -f conftest.o conftest.s
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27451 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27452 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27454 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27460 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27461 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27462 $as_echo_n "(cached) " >&6
27463 else
27464 gcc_cv_as_compress_debug=no
27465 if test x$gcc_cv_as != x; then
27466 $as_echo '' > conftest.s
27467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27469 (eval $ac_try) 2>&5
27470 ac_status=$?
27471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27472 test $ac_status = 0; }; }
27473 then
27474 # gas compiled without zlib cannot compress debug sections and warns
27475 # about it, but still exits successfully. So check for this, too.
27476 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27477 then
27478 gcc_cv_as_compress_debug=0
27479 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27480 then
27481 gcc_cv_as_compress_debug=1
27482 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27483 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27484 else
27485 gcc_cv_as_compress_debug=0
27486 # FIXME: Future gas versions will support ELF gABI style via
27487 # --compress-debug-sections[=type].
27489 else
27490 echo "configure: failed program was" >&5
27491 cat conftest.s >&5
27493 rm -f conftest.o conftest.s
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27497 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27500 cat >>confdefs.h <<_ACEOF
27501 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27502 _ACEOF
27505 cat >>confdefs.h <<_ACEOF
27506 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27507 _ACEOF
27510 cat >>confdefs.h <<_ACEOF
27511 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27512 _ACEOF
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27516 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27517 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27518 $as_echo_n "(cached) " >&6
27519 else
27520 gcc_cv_as_lcomm_with_alignment=no
27521 if test x$gcc_cv_as != x; then
27522 $as_echo '.lcomm bar,4,16' > conftest.s
27523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27528 test $ac_status = 0; }; }
27529 then
27530 gcc_cv_as_lcomm_with_alignment=yes
27531 else
27532 echo "configure: failed program was" >&5
27533 cat conftest.s >&5
27535 rm -f conftest.o conftest.s
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27539 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27540 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27542 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27546 if test x$with_sysroot = x && test x$host = x$target \
27547 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27548 && test "$prefix" != "NONE"; then
27550 cat >>confdefs.h <<_ACEOF
27551 #define PREFIX_INCLUDE_DIR "$prefix/include"
27552 _ACEOF
27556 # Determine the version of glibc, if any, used on the target.
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27558 $as_echo_n "checking for target glibc version... " >&6; }
27560 # Check whether --with-glibc-version was given.
27561 if test "${with_glibc_version+set}" = set; then :
27562 withval=$with_glibc_version;
27563 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27564 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27565 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27566 else
27567 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27569 else
27571 glibc_version_major=0
27572 glibc_version_minor=0
27573 if test -f $target_header_dir/features.h \
27574 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27575 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27576 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27577 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27582 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27584 cat >>confdefs.h <<_ACEOF
27585 #define TARGET_GLIBC_MAJOR $glibc_version_major
27586 _ACEOF
27589 cat >>confdefs.h <<_ACEOF
27590 #define TARGET_GLIBC_MINOR $glibc_version_minor
27591 _ACEOF
27594 # Check whether --enable-gnu-unique-object was given.
27595 if test "${enable_gnu_unique_object+set}" = set; then :
27596 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27597 yes | no) ;;
27598 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27599 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27600 esac
27601 else
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27603 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27604 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27605 $as_echo_n "(cached) " >&6
27606 else
27607 gcc_cv_as_gnu_unique_object=no
27608 if test $in_tree_gas = yes; then
27609 if test $in_tree_gas_is_elf = yes \
27610 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27611 then gcc_cv_as_gnu_unique_object=yes
27613 elif test x$gcc_cv_as != x; then
27614 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27617 (eval $ac_try) 2>&5
27618 ac_status=$?
27619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27620 test $ac_status = 0; }; }
27621 then
27622 gcc_cv_as_gnu_unique_object=yes
27623 else
27624 echo "configure: failed program was" >&5
27625 cat conftest.s >&5
27627 rm -f conftest.o conftest.s
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27631 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27632 if test $gcc_cv_as_gnu_unique_object = yes; then
27633 # We need to unquote above to to use the definition from config.gcc.
27634 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27636 if test $glibc_version_major -gt 2 \
27637 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27638 enable_gnu_unique_object=yes
27644 if test x$enable_gnu_unique_object = xyes; then
27646 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27651 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27652 if test "${gcc_cv_as_line_zero+set}" = set; then :
27653 $as_echo_n "(cached) " >&6
27654 else
27655 gcc_cv_as_line_zero=no
27656 if test $in_tree_gas = yes; then
27657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27658 then gcc_cv_as_line_zero=yes
27660 elif test "x$gcc_cv_as" != x; then
27661 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27662 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27664 (eval $ac_try) 2>&5
27665 ac_status=$?
27666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27667 test $ac_status = 0; }; } &&
27668 test "x`cat conftest.out`" = x
27669 then
27670 gcc_cv_as_line_zero=yes
27671 else
27672 echo "configure: failed program was" >&5
27673 cat conftest.s >&5
27674 echo "configure: error output was" >&5
27675 cat conftest.out >&5
27677 rm -f conftest.o conftest.s conftest.out
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27681 $as_echo "$gcc_cv_as_line_zero" >&6; }
27682 if test "x$gcc_cv_as_line_zero" = xyes; then
27684 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27689 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27690 gcc_cv_ld_eh_frame_hdr=no
27691 if test $in_tree_ld = yes ; then
27692 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
27693 && test $in_tree_ld_is_elf = yes; then
27694 gcc_cv_ld_eh_frame_hdr=yes
27696 elif test x$gcc_cv_ld != x; then
27697 if echo "$ld_ver" | grep GNU > /dev/null; then
27698 # Check if linker supports --eh-frame-hdr option
27699 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27700 gcc_cv_ld_eh_frame_hdr=yes
27702 else
27703 case "$target" in
27704 *-*-solaris2*)
27705 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27706 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27707 gcc_cv_ld_eh_frame_hdr=yes
27710 esac
27714 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27716 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27720 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27723 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27724 gcc_cv_ld_eh_frame_ciev3=no
27725 if test $in_tree_ld = yes ; then
27726 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
27727 && test $in_tree_ld_is_elf = yes; then
27728 gcc_cv_ld_eh_frame_ciev3=yes
27730 elif test x$gcc_cv_ld != x; then
27731 if echo "$ld_ver" | grep GNU > /dev/null; then
27732 gcc_cv_ld_eh_frame_ciev3=yes
27733 if test 0"$ld_date" -lt 20040513; then
27734 if test -n "$ld_date"; then
27735 # If there was date string, but was earlier than 2004-05-13, fail
27736 gcc_cv_ld_eh_frame_ciev3=no
27737 elif test "$ld_vers_major" -lt 2; then
27738 gcc_cv_ld_eh_frame_ciev3=no
27739 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27740 gcc_cv_ld_eh_frame_ciev3=no
27743 else
27744 case "$target" in
27745 *-*-solaris2*)
27746 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27747 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27748 gcc_cv_ld_eh_frame_ciev3=yes
27751 esac
27755 cat >>confdefs.h <<_ACEOF
27756 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27757 _ACEOF
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27760 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27763 $as_echo_n "checking linker position independent executable support... " >&6; }
27764 gcc_cv_ld_pie=no
27765 if test $in_tree_ld = yes ; then
27766 case "$target" in
27767 # Full PIE support on Solaris was only introduced in gld 2.26.
27768 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27769 *) gcc_gld_pie_min_version=15 ;;
27770 esac
27771 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
27772 && test $in_tree_ld_is_elf = yes; then
27773 gcc_cv_ld_pie=yes
27775 elif test x$gcc_cv_ld != x; then
27776 # Check if linker supports -pie option
27777 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27778 gcc_cv_ld_pie=yes
27779 case "$target" in
27780 *-*-solaris2*)
27781 if echo "$ld_ver" | grep GNU > /dev/null \
27782 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27783 gcc_cv_ld_pie=no
27786 esac
27787 else
27788 case "$target" in
27789 *-*-solaris2.1[1-9]*)
27790 # Solaris 11.x and Solaris 12 added PIE support.
27791 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27792 gcc_cv_ld_pie=yes
27795 esac
27798 if test x"$gcc_cv_ld_pie" = xyes; then
27800 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27804 $as_echo "$gcc_cv_ld_pie" >&6; }
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27807 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27808 gcc_cv_ld_pie_copyreloc=no
27809 if test $gcc_cv_ld_pie = yes ; then
27810 if test $in_tree_ld = yes ; then
27811 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27812 gcc_cv_ld_pie_copyreloc=yes
27814 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27815 # Check if linker supports -pie option with copy reloc
27816 case "$target" in
27817 i?86-*-linux* | x86_64-*-linux*)
27818 cat > conftest1.s <<EOF
27819 .globl a_glob
27820 .data
27821 .type a_glob, @object
27822 .size a_glob, 4
27823 a_glob:
27824 .long 2
27826 cat > conftest2.s <<EOF
27827 .text
27828 .globl main
27829 .type main, @function
27830 main:
27831 movl %eax, a_glob(%rip)
27832 .size main, .-main
27833 .globl ptr
27834 .section .data.rel,"aw",@progbits
27835 .type ptr, @object
27836 ptr:
27837 .quad a_glob
27839 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27840 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27841 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27842 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27843 gcc_cv_ld_pie_copyreloc=yes
27845 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27847 esac
27851 cat >>confdefs.h <<_ACEOF
27852 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27853 _ACEOF
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27856 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27859 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27860 gcc_cv_ld_eh_gc_sections=no
27861 if test $in_tree_ld = yes ; then
27862 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
27863 && test $in_tree_ld_is_elf = yes; then
27864 gcc_cv_ld_eh_gc_sections=yes
27866 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27867 cat > conftest.s <<EOF
27868 .section .text
27869 .globl _start
27870 .type _start, @function
27871 _start:
27872 .long foo
27873 .size _start, .-_start
27874 .section .text.foo,"ax",@progbits
27875 .type foo, @function
27876 foo:
27877 .long 0
27878 .size foo, .-foo
27879 .section .gcc_except_table.foo,"a",@progbits
27880 .L0:
27881 .long 0
27882 .section .eh_frame,"a",@progbits
27883 .long .L0
27885 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27886 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27887 | grep "gc-sections option ignored" > /dev/null; then
27888 gcc_cv_ld_eh_gc_sections=no
27889 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27890 | grep gcc_except_table > /dev/null; then
27891 gcc_cv_ld_eh_gc_sections=yes
27892 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27893 if test x$gcc_cv_as_comdat_group != xyes; then
27894 gcc_cv_ld_eh_gc_sections=no
27895 cat > conftest.s <<EOF
27896 .section .text
27897 .globl _start
27898 .type _start, @function
27899 _start:
27900 .long foo
27901 .size _start, .-_start
27902 .section .gnu.linkonce.t.foo,"ax",@progbits
27903 .type foo, @function
27904 foo:
27905 .long 0
27906 .size foo, .-foo
27907 .section .gcc_except_table.foo,"a",@progbits
27908 .L0:
27909 .long 0
27910 .section .eh_frame,"a",@progbits
27911 .long .L0
27913 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27914 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27915 | grep "gc-sections option ignored" > /dev/null; then
27916 gcc_cv_ld_eh_gc_sections=no
27917 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27918 | grep gcc_except_table > /dev/null; then
27919 gcc_cv_ld_eh_gc_sections=yes
27925 rm -f conftest.s conftest.o conftest
27927 case "$target" in
27928 hppa*-*-linux*)
27929 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27930 gcc_cv_ld_eh_gc_sections=no
27932 esac
27933 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27935 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27939 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27942 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27943 gcc_cv_ld_eh_gc_sections_bug=no
27944 if test $in_tree_ld = yes ; then
27945 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
27946 && test $in_tree_ld_is_elf = yes; then
27947 gcc_cv_ld_eh_gc_sections_bug=yes
27949 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
27950 gcc_cv_ld_eh_gc_sections_bug=yes
27951 cat > conftest.s <<EOF
27952 .section .text
27953 .globl _start
27954 .type _start, @function
27955 _start:
27956 .long foo
27957 .size _start, .-_start
27958 .section .text.startup.foo,"ax",@progbits
27959 .type foo, @function
27960 foo:
27961 .long 0
27962 .size foo, .-foo
27963 .section .gcc_except_table.foo,"a",@progbits
27964 .L0:
27965 .long 0
27966 .section .eh_frame,"a",@progbits
27967 .long .L0
27969 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27970 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27971 | grep "gc-sections option ignored" > /dev/null; then
27973 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27974 | grep gcc_except_table > /dev/null; then
27975 gcc_cv_ld_eh_gc_sections_bug=no
27978 rm -f conftest.s conftest.o conftest
27980 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27982 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27986 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27989 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27990 # gold/gld support compressed debug sections since binutils 2.19/2.21
27991 if test $in_tree_ld = yes ; then
27992 gcc_cv_ld_compress_debug=0
27993 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27994 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27995 gcc_cv_ld_compress_debug=2
27996 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27997 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27998 && test $in_tree_ld_is_elf = yes; then
27999 gcc_cv_ld_compress_debug=1
28001 elif echo "$ld_ver" | grep GNU > /dev/null; then
28002 gcc_cv_ld_compress_debug=1
28003 if test 0"$ld_date" -lt 20050308; then
28004 if test -n "$ld_date"; then
28005 # If there was date string, but was earlier than 2005-03-08, fail
28006 gcc_cv_ld_compress_debug=0
28007 elif test "$ld_vers_major" -lt 2; then
28008 gcc_cv_ld_compress_debug=0
28009 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28010 gcc_cv_ld_compress_debug=0
28013 if test $ld_is_gold = yes; then
28014 gcc_cv_ld_compress_debug=2
28015 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28017 else
28018 case "${target}" in
28019 *-*-solaris2*)
28020 # Introduced in Solaris 11.2.
28021 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28022 gcc_cv_ld_compress_debug=3
28023 gcc_cv_ld_compress_debug_option="-z compress-sections"
28024 else
28025 gcc_cv_ld_compress_debug=0
28029 # Assume linkers other than GNU ld don't support compessed debug
28030 # sections.
28031 gcc_cv_ld_compress_debug=0
28033 esac
28036 cat >>confdefs.h <<_ACEOF
28037 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28038 _ACEOF
28041 cat >>confdefs.h <<_ACEOF
28042 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28043 _ACEOF
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28046 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28048 # --------
28049 # UNSORTED
28050 # --------
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28053 $as_echo_n "checking linker --as-needed support... " >&6; }
28054 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28055 $as_echo_n "(cached) " >&6
28056 else
28057 gcc_cv_ld_as_needed=no
28058 gcc_cv_ld_as_needed_option='--as-needed'
28059 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28060 if test $in_tree_ld = yes ; then
28061 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
28062 && test $in_tree_ld_is_elf = yes; then
28063 gcc_cv_ld_as_needed=yes
28065 elif test x$gcc_cv_ld != x; then
28066 # Check if linker supports --as-needed and --no-as-needed options
28067 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28068 gcc_cv_ld_as_needed=yes
28069 else
28070 case "$target" in
28071 # Solaris 2 ld always supports -z ignore/-z record.
28072 *-*-solaris2*)
28073 gcc_cv_ld_as_needed=yes
28074 gcc_cv_ld_as_needed_option="-z ignore"
28075 gcc_cv_ld_no_as_needed_option="-z record"
28077 esac
28080 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28081 # dl_iterate_phdr, i.e. since Solaris 11.
28082 case "$target" in
28083 *-*-solaris2.1[1-9]*)
28084 case "$target" in
28085 i?86-*-* | x86_64-*-*)
28086 if echo "$ld_ver" | grep GNU > /dev/null; then
28087 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28088 gcc_cv_ld_as_needed=no
28091 esac
28093 *-*-solaris2*)
28094 gcc_cv_ld_as_needed=no
28096 esac
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28100 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28101 if test x"$gcc_cv_ld_as_needed" = xyes; then
28103 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28106 cat >>confdefs.h <<_ACEOF
28107 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28108 _ACEOF
28111 cat >>confdefs.h <<_ACEOF
28112 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28113 _ACEOF
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28118 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28119 saved_LDFLAGS="$LDFLAGS"
28120 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28121 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28123 /* end confdefs.h. */
28124 int main(void) {return 0;}
28125 _ACEOF
28126 if ac_fn_cxx_try_link "$LINENO"; then :
28127 gcc_cv_ld_clearcap=yes; break
28128 else
28129 gcc_cv_ld_clearcap=no
28131 rm -f core conftest.err conftest.$ac_objext \
28132 conftest$ac_exeext conftest.$ac_ext
28133 done
28134 LDFLAGS="$saved_LDFLAGS"
28135 if test "x$gcc_cv_ld_clearcap" = xyes; then
28137 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28139 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28143 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28145 case "$target:$tm_file" in
28146 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28147 case "$target" in
28148 *le-*-linux*)
28149 emul_name="-melf64lppc"
28151 *-*-linux*)
28152 emul_name="-melf64ppc"
28154 *-*-freebsd*)
28155 emul_name="-melf64ppc_fbsd"
28157 esac
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28159 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28160 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28161 $as_echo_n "(cached) " >&6
28162 else
28163 gcc_cv_ld_no_dot_syms=no
28164 if test x"$ld_is_gold" = xyes; then
28165 gcc_cv_ld_no_dot_syms=yes
28166 elif test $in_tree_ld = yes ; then
28167 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
28168 gcc_cv_ld_no_dot_syms=yes
28170 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28171 cat > conftest1.s <<EOF
28172 .text
28173 bl .foo
28175 cat > conftest2.s <<EOF
28176 .section ".opd","aw"
28177 .align 3
28178 .globl foo
28179 .type foo,@function
28180 foo:
28181 .quad .LEfoo,.TOC.@tocbase,0
28182 .text
28183 .LEfoo:
28185 .size foo,.-.LEfoo
28187 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28188 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28189 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28190 gcc_cv_ld_no_dot_syms=yes
28192 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28197 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28198 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28200 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28205 $as_echo_n "checking linker large toc support... " >&6; }
28206 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28207 $as_echo_n "(cached) " >&6
28208 else
28209 gcc_cv_ld_large_toc=no
28210 if test x"$ld_is_gold" = xyes; then
28211 gcc_cv_ld_large_toc=yes
28212 elif test $in_tree_ld = yes ; then
28213 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
28214 gcc_cv_ld_large_toc=yes
28216 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28217 cat > conftest.s <<EOF
28218 .section ".tbss","awT",@nobits
28219 .align 3
28220 ie0: .space 8
28221 .global _start
28222 .text
28223 _start:
28224 addis 9,13,ie0@got@tprel@ha
28225 ld 9,ie0@got@tprel@l(9)
28227 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28228 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28229 gcc_cv_ld_large_toc=yes
28231 rm -f conftest conftest.o conftest.s
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28236 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28237 if test x"$gcc_cv_ld_large_toc" = xyes; then
28239 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28244 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28245 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28246 $as_echo_n "(cached) " >&6
28247 else
28248 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28249 cat > conftest.s <<EOF
28250 .global _start
28251 .text
28252 _start:
28253 addis 9,2,x@got@ha
28254 .section .data.rel.ro,"aw",@progbits
28255 .p2align 16
28256 .space 32768
28257 x: .quad .TOC.
28259 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28260 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28261 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
28263 rm -f conftest conftest.o conftest.s
28267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28268 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28269 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28271 cat >>confdefs.h <<_ACEOF
28272 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28273 _ACEOF
28277 esac
28279 case "$target" in
28280 *-*-aix*)
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28282 $as_echo_n "checking linker large toc support... " >&6; }
28283 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28284 $as_echo_n "(cached) " >&6
28285 else
28286 gcc_cv_ld_large_toc=no
28287 if test x$gcc_cv_as != x ; then
28288 cat > conftest.s <<EOF
28289 .toc
28290 LC..1:
28291 .tc a[TC],a[RW]
28292 .extern a[RW]
28293 .csect .text[PR]
28294 .largetoctest:
28295 addis 9,LC..1@u(2)
28296 ld 3,LC..1@l(9)
28298 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28299 gcc_cv_ld_large_toc=yes
28301 rm -f conftest conftest.o conftest.s
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28306 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28307 if test x"$gcc_cv_ld_large_toc" = xyes; then
28309 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28313 esac
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28316 $as_echo_n "checking linker --build-id support... " >&6; }
28317 if test "${gcc_cv_ld_buildid+set}" = set; then :
28318 $as_echo_n "(cached) " >&6
28319 else
28320 gcc_cv_ld_buildid=no
28321 if test $in_tree_ld = yes ; then
28322 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28323 "$gcc_cv_gld_minor_version" -ge 18 -o \
28324 "$gcc_cv_gld_major_version" -gt 2 \
28325 && test $in_tree_ld_is_elf = yes; then
28326 gcc_cv_ld_buildid=yes
28328 elif test x$gcc_cv_ld != x; then
28329 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28330 gcc_cv_ld_buildid=yes
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28335 $as_echo "$gcc_cv_ld_buildid" >&6; }
28336 if test x"$gcc_cv_ld_buildid" = xyes; then
28338 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28342 # Check whether --enable-linker-build-id was given.
28343 if test "${enable_linker_build_id+set}" = set; then :
28344 enableval=$enable_linker_build_id;
28345 else
28346 enable_linker_build_id=no
28350 if test x"$enable_linker_build_id" = xyes; then
28351 if test x"$gcc_cv_ld_buildid" = xyes; then
28353 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28355 else
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28357 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28361 # In binutils 2.21, GNU ld gained support for new emulations fully
28362 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28364 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28365 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28366 $as_echo_n "(cached) " >&6
28367 else
28368 gcc_cv_ld_sol2_emulation=no
28369 if test $in_tree_ld = yes ; then
28370 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28371 "$gcc_cv_gld_minor_version" -ge 21 -o \
28372 "$gcc_cv_gld_major_version" -gt 2 \
28373 && test $in_tree_ld_is_elf = yes; then
28374 gcc_cv_ld_sol2_emulation=yes
28376 elif test x$gcc_cv_ld != x; then
28377 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28378 grep _sol2 > /dev/null; then
28379 gcc_cv_ld_sol2_emulation=yes
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28384 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28385 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28387 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28392 $as_echo_n "checking linker --sysroot support... " >&6; }
28393 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28394 $as_echo_n "(cached) " >&6
28395 else
28396 gcc_cv_ld_sysroot=no
28397 if test $in_tree_ld = yes ; then
28398 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
28399 gcc_cv_ld_sysroot=yes
28401 elif test x$gcc_cv_ld != x; then
28402 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28403 gcc_cv_ld_sysroot=yes
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28408 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28409 if test x"$gcc_cv_ld_sysroot" = xyes; then
28411 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28415 case $target in
28416 *-*-solaris2*)
28417 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28419 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28420 if test "${gcc_cv_solaris_crts+set}" = set; then :
28421 $as_echo_n "(cached) " >&6
28422 else
28423 gcc_cv_solaris_crts=no
28424 if test x$host != x$target; then
28425 if test "x$with_sysroot" = xyes; then
28426 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28427 else
28428 target_sysroot="${with_sysroot}"
28431 target_libdir="$target_sysroot/usr/lib"
28432 # At the time they were added, gcrt1.o became a symlink for backwards
28433 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28434 case $target in
28435 i?86-*-solaris2* | x86_64-*-solaris2*)
28436 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28438 sparc*-*-solaris2*)
28439 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28441 esac
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28444 $as_echo "$gcc_cv_solaris_crts" >&6; }
28446 esac
28447 if test x$gcc_cv_solaris_crts = xyes; then
28449 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28453 # Test for stack protector support in target C library.
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28455 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28456 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28457 $as_echo_n "(cached) " >&6
28458 else
28459 gcc_cv_libc_provides_ssp=no
28460 case "$target" in
28461 *-*-musl*)
28462 # All versions of musl provide stack protector
28463 gcc_cv_libc_provides_ssp=yes;;
28464 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28465 # glibc 2.4 and later provides __stack_chk_fail and
28466 # either __stack_chk_guard, or TLS access to stack guard canary.
28468 if test $glibc_version_major -gt 2 \
28469 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28470 gcc_cv_libc_provides_ssp=yes
28471 else
28473 if test -f $target_header_dir/features.h \
28474 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28475 $target_header_dir/features.h > /dev/null; then
28476 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28477 $target_header_dir/features.h > /dev/null && \
28478 test -f $target_header_dir/bits/uClibc_config.h && \
28479 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28480 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28481 gcc_cv_libc_provides_ssp=yes
28483 # all versions of Bionic support stack protector
28484 elif test -f $target_header_dir/sys/cdefs.h \
28485 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28486 $target_header_dir/sys/cdefs.h > /dev/null; then
28487 gcc_cv_libc_provides_ssp=yes
28491 *-*-gnu*)
28492 # Avoid complicated tests (see
28493 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28494 # simply assert that glibc does provide this, which is true for all
28495 # realistically usable GNU/Hurd configurations.
28496 # All supported versions of musl provide it as well
28497 gcc_cv_libc_provides_ssp=yes;;
28498 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28499 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28500 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28501 gcc_cv_libc_provides_ssp=yes
28502 else
28503 echo "no __stack_chk_fail on this target"
28507 *) gcc_cv_libc_provides_ssp=no ;;
28508 esac
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28511 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28513 if test x$gcc_cv_libc_provides_ssp = xyes; then
28515 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28519 # Check whether --enable-default-ssp was given.
28520 # Check whether --enable-default-ssp was given.
28521 if test "${enable_default_ssp+set}" = set; then :
28522 enableval=$enable_default_ssp;
28523 if test x$gcc_cv_libc_provides_ssp = xyes; then
28524 case "$target" in
28525 ia64*-*-*) enable_default_ssp=no ;;
28526 *) enable_default_ssp=$enableval ;;
28527 esac
28528 else
28529 enable_default_ssp=no
28531 else
28532 enable_default_ssp=no
28535 if test x$enable_default_ssp = xyes ; then
28537 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28542 # Test for <sys/sdt.h> on the target.
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28545 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28546 have_sys_sdt_h=no
28547 if test -f $target_header_dir/sys/sdt.h; then
28548 have_sys_sdt_h=yes
28550 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28554 $as_echo "$have_sys_sdt_h" >&6; }
28556 # Check if TFmode long double should be used by default or not.
28557 # Some glibc targets used DFmode long double, but with glibc 2.4
28558 # and later they can use TFmode.
28559 case "$target" in
28560 powerpc*-*-linux* | \
28561 sparc*-*-linux* | \
28562 s390*-*-linux* | \
28563 alpha*-*-linux*)
28565 # Check whether --with-long-double-128 was given.
28566 if test "${with_long_double_128+set}" = set; then :
28567 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28568 else
28570 if test $glibc_version_major -gt 2 \
28571 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28572 gcc_cv_target_ldbl128=yes
28573 else
28575 gcc_cv_target_ldbl128=no
28576 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28577 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28578 && gcc_cv_target_ldbl128=yes
28584 esac
28585 if test x$gcc_cv_target_ldbl128 = xyes; then
28587 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28591 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28592 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28593 gcc_cv_libc_provides_hwcap_in_tcb=no
28594 case "$target" in
28595 powerpc*-*-linux*)
28597 if test $glibc_version_major -gt 2 \
28598 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28599 gcc_cv_libc_provides_hwcap_in_tcb=yes
28602 esac
28603 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28605 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28610 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28611 gcc_cv_target_dl_iterate_phdr=unknown
28612 case "$target" in
28613 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28614 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28615 # libdl there, both complicating its use and breaking compatibility
28616 # between Solaris 10 updates.
28617 *-*-solaris2.1[1-9]*)
28618 # <link.h> needs both a dl_iterate_phdr declaration and support for
28619 # compilation with largefile support.
28620 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28621 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28622 gcc_cv_target_dl_iterate_phdr=yes
28623 else
28624 gcc_cv_target_dl_iterate_phdr=no
28627 *-*-dragonfly* | *-*-freebsd*)
28628 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28629 gcc_cv_target_dl_iterate_phdr=yes
28630 else
28631 gcc_cv_target_dl_iterate_phdr=no
28634 *-linux-musl*)
28635 gcc_cv_target_dl_iterate_phdr=yes
28637 esac
28639 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28641 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28645 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28647 # We no longer support different GC mechanisms. Emit an error if
28648 # the user configures with --with-gc.
28650 # Check whether --with-gc was given.
28651 if test "${with_gc+set}" = set; then :
28652 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28656 # Libraries to use on the host. This will normally be set by the top
28657 # level Makefile. Here we simply capture the value for our Makefile.
28658 if test -z "${HOST_LIBS+set}"; then
28659 HOST_LIBS=
28663 # Use the system's zlib library.
28665 # Use the system's zlib library.
28666 zlibdir="-L\$(top_builddir)/../zlib"
28667 zlibinc="-I\$(top_srcdir)/../zlib"
28669 # Check whether --with-system-zlib was given.
28670 if test "${with_system_zlib+set}" = set; then :
28671 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28672 zlibdir=
28673 zlibinc=
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28684 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28685 # Check whether --enable-maintainer-mode was given.
28686 if test "${enable_maintainer_mode+set}" = set; then :
28687 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28688 else
28689 maintainer_mode=no
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28694 $as_echo "$maintainer_mode" >&6; }
28696 if test "$maintainer_mode" = "yes"; then
28697 MAINT=''
28698 else
28699 MAINT='#'
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28704 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28705 # Check whether --enable-link-mutex was given.
28706 if test "${enable_link_mutex+set}" = set; then :
28707 enableval=$enable_link_mutex; do_link_mutex=$enableval
28708 else
28709 do_link_mutex=no
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28713 $as_echo "$do_link_mutex" >&6; }
28715 if test "$do_link_mutex" = "yes"; then
28716 DO_LINK_MUTEX=true
28717 else
28718 DO_LINK_MUTEX=false
28722 # --------------
28723 # Language hooks
28724 # --------------
28726 # Make empty files to contain the specs and options for each language.
28727 # Then add #include lines to for a compiler that has specs and/or options.
28729 subdirs=
28730 lang_opt_files=
28731 lang_specs_files=
28732 lang_tree_files=
28733 # These (without "all_") are set in each config-lang.in.
28734 # `language' must be a single word so is spelled singularly.
28735 all_languages=
28736 all_compilers=
28737 all_outputs='Makefile'
28738 # List of language makefile fragments.
28739 all_lang_makefrags=
28740 # Additional files for gengtype
28741 all_gtfiles="$target_gtfiles"
28743 # These are the languages that are set in --enable-languages,
28744 # and are available in the GCC tree.
28745 all_selected_languages=
28747 # Add the language fragments.
28748 # Languages are added via two mechanisms. Some information must be
28749 # recorded in makefile variables, these are defined in config-lang.in.
28750 # We accumulate them and plug them into the main Makefile.
28751 # The other mechanism is a set of hooks for each of the main targets
28752 # like `clean', `install', etc.
28754 language_hooks="Make-hooks"
28756 for lang in ${srcdir}/*/config-lang.in
28758 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28760 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28761 if test "x$lang_alias" = x
28762 then
28763 echo "$lang doesn't set \$language." 1>&2
28764 exit 1
28766 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28767 subdirs="$subdirs $subdir"
28769 # $gcc_subdir is where the gcc integration files are to be found
28770 # for a language, both for internal compiler purposes (compiler
28771 # sources implementing front-end to GCC tree converters), and for
28772 # build infrastructure purposes (Make-lang.in, etc.)
28774 # This will be <subdir> (relative to $srcdir) if a line like
28775 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28776 # is found in <langdir>/config-lang.in, and will remain <langdir>
28777 # otherwise.
28779 # Except for the language alias (fetched above), the regular
28780 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28781 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28782 # only this and the language alias.
28784 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28785 if [ "$gcc_subdir" = "" ]; then
28786 gcc_subdir="$subdir"
28789 case ",$enable_languages," in
28790 *,$lang_alias,*)
28791 all_selected_languages="$all_selected_languages $lang_alias"
28792 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28793 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28796 esac
28798 language=
28799 boot_language=
28800 compilers=
28801 outputs=
28802 gtfiles=
28803 subdir_requires=
28804 . ${srcdir}/$gcc_subdir/config-lang.in
28805 if test "x$language" = x
28806 then
28807 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28808 exit 1
28811 ok=:
28812 case ",$enable_languages," in
28813 *,$lang_alias,*) ;;
28815 for i in $subdir_requires; do
28816 test -f "${srcdir}/$i/config-lang.in" && continue
28817 ok=false
28818 break
28819 done
28821 esac
28822 $ok || continue
28824 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28825 if test -f $srcdir/$gcc_subdir/lang.opt; then
28826 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28827 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28829 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28830 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28832 all_languages="$all_languages $language"
28833 all_compilers="$all_compilers $compilers"
28834 all_outputs="$all_outputs $outputs"
28835 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28836 case ",$enable_languages," in
28837 *,lto,*)
28839 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28841 enable_lto=yes
28844 *) ;;
28845 esac
28846 done
28848 check_languages=
28849 for language in $all_selected_languages
28851 check_languages="$check_languages check-$language"
28852 done
28854 # We link each language in with a set of hooks, reached indirectly via
28855 # lang.${target}. Only do so for selected languages.
28857 rm -f Make-hooks
28858 touch Make-hooks
28859 target_list="all.cross start.encap rest.encap tags \
28860 install-common install-man install-info install-pdf install-html dvi \
28861 pdf html uninstall info man srcextra srcman srcinfo \
28862 mostlyclean clean distclean maintainer-clean install-plugin"
28864 for t in $target_list
28867 for lang in $all_selected_languages
28869 x="$x $lang.$t"
28870 done
28871 echo "lang.$t: $x" >> Make-hooks
28872 done
28874 # --------
28875 # Option include files
28876 # --------
28878 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28879 option_includes="option-includes.mk"
28882 # --------
28883 # UNSORTED
28884 # --------
28886 # Create .gdbinit.
28888 echo "dir ." > .gdbinit
28889 echo "dir ${srcdir}" >> .gdbinit
28890 if test x$gdb_needs_out_file_path = xyes
28891 then
28892 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28894 if test "x$subdirs" != x; then
28895 for s in $subdirs
28897 echo "dir ${srcdir}/$s" >> .gdbinit
28898 done
28900 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28901 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28903 # Put a breakpoint on __asan_report_error to help with debugging buffer
28904 # overflow.
28905 case "$CFLAGS" in
28906 *-fsanitize=address*)
28907 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28909 esac
28911 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28915 # Find a directory in which to install a shared libgcc.
28917 # Check whether --enable-version-specific-runtime-libs was given.
28918 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28919 enableval=$enable_version_specific_runtime_libs;
28923 # Substitute configuration variables
28986 # Echo link setup.
28987 if test x${build} = x${host} ; then
28988 if test x${host} = x${target} ; then
28989 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28990 else
28991 echo "Links are now set up to build a cross-compiler" 1>&2
28992 echo " from ${host} to ${target}." 1>&2
28994 else
28995 if test x${host} = x${target} ; then
28996 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28997 echo " for ${target}." 1>&2
28998 else
28999 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29000 echo " from ${host} to ${target}." 1>&2
29009 if test "x${ISLLIBS}" != "x" ; then
29011 $as_echo "#define HAVE_isl 1" >>confdefs.h
29015 # Check whether isl_options_set_schedule_serialize_sccs is available;
29016 # it's new in isl 0.15.
29017 if test "x${ISLLIBS}" != "x" ; then
29018 saved_CXXFLAGS="$CXXFLAGS"
29019 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29020 saved_LIBS="$LIBS"
29021 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29024 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29026 /* end confdefs.h. */
29027 #include <isl/schedule.h>
29029 main ()
29031 isl_options_set_schedule_serialize_sccs (NULL, 0);
29033 return 0;
29035 _ACEOF
29036 if ac_fn_cxx_try_link "$LINENO"; then :
29037 ac_has_isl_options_set_schedule_serialize_sccs=yes
29038 else
29039 ac_has_isl_options_set_schedule_serialize_sccs=no
29041 rm -f core conftest.err conftest.$ac_objext \
29042 conftest$ac_exeext conftest.$ac_ext
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29044 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29046 LIBS="$saved_LIBS"
29047 CXXFLAGS="$saved_CXXFLAGS"
29049 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29051 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29056 # Check for plugin support
29057 # Check whether --enable-plugin was given.
29058 if test "${enable_plugin+set}" = set; then :
29059 enableval=$enable_plugin; enable_plugin=$enableval
29060 else
29061 enable_plugin=yes; default_plugin=yes
29065 pluginlibs=
29067 case "${host}" in
29068 *-*-darwin*)
29069 if test x$build = x$host; then
29070 export_sym_check="nm${exeext} -g"
29071 elif test x$host = x$target; then
29072 export_sym_check="$gcc_cv_nm -g"
29073 else
29074 export_sym_check=
29078 if test x$build = x$host; then
29079 export_sym_check="objdump${exeext} -T"
29080 elif test x$host = x$target; then
29081 export_sym_check="$gcc_cv_objdump -T"
29082 else
29083 export_sym_check=
29086 esac
29088 if test x"$enable_plugin" = x"yes"; then
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29091 $as_echo_n "checking for exported symbols... " >&6; }
29092 if test "x$export_sym_check" != x; then
29093 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29094 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29095 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29096 : # No need to use a flag
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29098 $as_echo "yes" >&6; }
29099 else
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29101 $as_echo "yes" >&6; }
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29103 $as_echo_n "checking for -rdynamic... " >&6; }
29104 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29105 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29106 plugin_rdynamic=yes
29107 pluginlibs="-rdynamic"
29108 else
29109 plugin_rdynamic=no
29110 enable_plugin=no
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29113 $as_echo "$plugin_rdynamic" >&6; }
29115 else
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29117 $as_echo "unable to check" >&6; }
29120 # Check -ldl
29121 saved_LIBS="$LIBS"
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29123 $as_echo_n "checking for library containing dlopen... " >&6; }
29124 if test "${ac_cv_search_dlopen+set}" = set; then :
29125 $as_echo_n "(cached) " >&6
29126 else
29127 ac_func_search_save_LIBS=$LIBS
29128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29129 /* end confdefs.h. */
29131 /* Override any GCC internal prototype to avoid an error.
29132 Use char because int might match the return type of a GCC
29133 builtin and then its argument prototype would still apply. */
29134 #ifdef __cplusplus
29135 extern "C"
29136 #endif
29137 char dlopen ();
29139 main ()
29141 return dlopen ();
29143 return 0;
29145 _ACEOF
29146 for ac_lib in '' dl; do
29147 if test -z "$ac_lib"; then
29148 ac_res="none required"
29149 else
29150 ac_res=-l$ac_lib
29151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29153 if ac_fn_cxx_try_link "$LINENO"; then :
29154 ac_cv_search_dlopen=$ac_res
29156 rm -f core conftest.err conftest.$ac_objext \
29157 conftest$ac_exeext
29158 if test "${ac_cv_search_dlopen+set}" = set; then :
29159 break
29161 done
29162 if test "${ac_cv_search_dlopen+set}" = set; then :
29164 else
29165 ac_cv_search_dlopen=no
29167 rm conftest.$ac_ext
29168 LIBS=$ac_func_search_save_LIBS
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29171 $as_echo "$ac_cv_search_dlopen" >&6; }
29172 ac_res=$ac_cv_search_dlopen
29173 if test "$ac_res" != no; then :
29174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29178 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29179 pluginlibs="$pluginlibs -ldl"
29181 LIBS="$saved_LIBS"
29183 # Check that we can build shared objects with -fPIC -shared
29184 saved_LDFLAGS="$LDFLAGS"
29185 saved_CFLAGS="$CFLAGS"
29186 case "${host}" in
29187 *-*-darwin*)
29188 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29189 CFLAGS="$CFLAGS -fPIC"
29190 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29193 CFLAGS="$CFLAGS -fPIC"
29194 LDFLAGS="$LDFLAGS -fPIC -shared"
29196 esac
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29198 $as_echo_n "checking for -fPIC -shared... " >&6; }
29199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29200 /* end confdefs.h. */
29201 extern int X;
29203 main ()
29205 return X == 0;
29207 return 0;
29209 _ACEOF
29210 if ac_fn_cxx_try_link "$LINENO"; then :
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29212 $as_echo "yes" >&6; }; have_pic_shared=yes
29213 else
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29215 $as_echo "no" >&6; }; have_pic_shared=no
29217 rm -f core conftest.err conftest.$ac_objext \
29218 conftest$ac_exeext conftest.$ac_ext
29219 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29220 pluginlibs=
29221 enable_plugin=no
29223 LDFLAGS="$saved_LDFLAGS"
29224 CFLAGS="$saved_CFLAGS"
29226 # If plugin support had been requested but not available, fail.
29227 if test x"$enable_plugin" = x"no" ; then
29228 if test x"$default_plugin" != x"yes"; then
29229 as_fn_error "
29230 Building GCC with plugin support requires a host that supports
29231 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29238 if test x"$enable_plugin" = x"yes"; then
29240 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29245 # Enable --enable-host-shared
29246 # Check whether --enable-host-shared was given.
29247 if test "${enable_host_shared+set}" = set; then :
29248 enableval=$enable_host_shared; PICFLAG=-fPIC
29249 else
29250 PICFLAG=
29257 # Check whether --enable-libquadmath-support was given.
29258 if test "${enable_libquadmath_support+set}" = set; then :
29259 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29260 else
29261 ENABLE_LIBQUADMATH_SUPPORT=yes
29264 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29266 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29271 # Specify what hash style to use by default.
29273 # Check whether --with-linker-hash-style was given.
29274 if test "${with_linker_hash_style+set}" = set; then :
29275 withval=$with_linker_hash_style; case x"$withval" in
29276 xsysv)
29277 LINKER_HASH_STYLE=sysv
29279 xgnu)
29280 LINKER_HASH_STYLE=gnu
29282 xboth)
29283 LINKER_HASH_STYLE=both
29286 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29288 esac
29289 else
29290 LINKER_HASH_STYLE=''
29293 if test x"${LINKER_HASH_STYLE}" != x; then
29295 cat >>confdefs.h <<_ACEOF
29296 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29297 _ACEOF
29301 # Specify what should be the default of -fdiagnostics-color option.
29303 # Check whether --with-diagnostics-color was given.
29304 if test "${with_diagnostics_color+set}" = set; then :
29305 withval=$with_diagnostics_color; case x"$withval" in
29306 xnever)
29307 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29309 xauto)
29310 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29312 xauto-if-env)
29313 DIAGNOSTICS_COLOR_DEFAULT=-1
29315 xalways)
29316 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29319 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29321 esac
29322 else
29323 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29327 cat >>confdefs.h <<_ACEOF
29328 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29329 _ACEOF
29332 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29333 # of jit/jit-playback.c.
29334 cat > gcc-driver-name.h <<EOF
29335 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29338 # Check whether --enable-default-pie was given.
29339 # Check whether --enable-default-pie was given.
29340 if test "${enable_default_pie+set}" = set; then :
29341 enableval=$enable_default_pie; enable_default_pie=$enableval
29342 else
29343 enable_default_pie=no
29346 if test x$enable_default_pie = xyes ; then
29348 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29353 # Check if -fno-PIE works.
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29355 $as_echo_n "checking for -fno-PIE option... " >&6; }
29356 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29357 $as_echo_n "(cached) " >&6
29358 else
29359 saved_CXXFLAGS="$CXXFLAGS"
29360 CXXFLAGS="$CXXFLAGS -fno-PIE"
29361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29362 /* end confdefs.h. */
29363 int main(void) {return 0;}
29364 _ACEOF
29365 if ac_fn_cxx_try_compile "$LINENO"; then :
29366 gcc_cv_c_no_fpie=yes
29367 else
29368 gcc_cv_c_no_fpie=no
29370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29371 CXXFLAGS="$saved_CXXFLAGS"
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29374 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29375 if test "$gcc_cv_c_no_fpie" = "yes"; then
29376 NO_PIE_CFLAGS="-fno-PIE"
29380 # Check if -no-pie works.
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29382 $as_echo_n "checking for -no-pie option... " >&6; }
29383 if test "${gcc_cv_no_pie+set}" = set; then :
29384 $as_echo_n "(cached) " >&6
29385 else
29386 saved_LDFLAGS="$LDFLAGS"
29387 LDFLAGS="$LDFLAGS -no-pie"
29388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29389 /* end confdefs.h. */
29390 int main(void) {return 0;}
29391 _ACEOF
29392 if ac_fn_cxx_try_link "$LINENO"; then :
29393 gcc_cv_no_pie=yes
29394 else
29395 gcc_cv_no_pie=no
29397 rm -f core conftest.err conftest.$ac_objext \
29398 conftest$ac_exeext conftest.$ac_ext
29399 LDFLAGS="$saved_LDFLAGS"
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29402 $as_echo "$gcc_cv_no_pie" >&6; }
29403 if test "$gcc_cv_no_pie" = "yes"; then
29404 NO_PIE_FLAG="-no-pie"
29408 # Check linker supports '-z bndplt'
29409 ld_bndplt_support=no
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29411 $as_echo_n "checking linker -z bndplt option... " >&6; }
29412 if test x"$ld_is_gold" = xno; then
29413 if test $in_tree_ld = yes ; then
29414 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
29415 ld_bndplt_support=yes
29417 elif test x$gcc_cv_ld != x; then
29418 # Check if linker supports -a bndplt option
29419 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29420 ld_bndplt_support=yes
29424 if test x"$ld_bndplt_support" = xyes; then
29426 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29430 $as_echo "$ld_bndplt_support" >&6; }
29432 # Configure the subdirectories
29433 # AC_CONFIG_SUBDIRS($subdirs)
29435 # Create the Makefile
29436 # and configure language subdirectories
29437 ac_config_files="$ac_config_files $all_outputs"
29440 ac_config_commands="$ac_config_commands default"
29442 cat >confcache <<\_ACEOF
29443 # This file is a shell script that caches the results of configure
29444 # tests run on this system so they can be shared between configure
29445 # scripts and configure runs, see configure's option --config-cache.
29446 # It is not useful on other systems. If it contains results you don't
29447 # want to keep, you may remove or edit it.
29449 # config.status only pays attention to the cache file if you give it
29450 # the --recheck option to rerun configure.
29452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29454 # following values.
29456 _ACEOF
29458 # The following way of writing the cache mishandles newlines in values,
29459 # but we know of no workaround that is simple, portable, and efficient.
29460 # So, we kill variables containing newlines.
29461 # Ultrix sh set writes to stderr and can't be redirected directly,
29462 # and sets the high bit in the cache file unless we assign to the vars.
29464 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29465 eval ac_val=\$$ac_var
29466 case $ac_val in #(
29467 *${as_nl}*)
29468 case $ac_var in #(
29469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29471 esac
29472 case $ac_var in #(
29473 _ | IFS | as_nl) ;; #(
29474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29475 *) { eval $ac_var=; unset $ac_var;} ;;
29476 esac ;;
29477 esac
29478 done
29480 (set) 2>&1 |
29481 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29482 *${as_nl}ac_space=\ *)
29483 # `set' does not quote correctly, so add quotes: double-quote
29484 # substitution turns \\\\ into \\, and sed turns \\ into \.
29485 sed -n \
29486 "s/'/'\\\\''/g;
29487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29488 ;; #(
29490 # `set' quotes correctly as required by POSIX, so do not add quotes.
29491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29493 esac |
29494 sort
29496 sed '
29497 /^ac_cv_env_/b end
29498 t clear
29499 :clear
29500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29501 t end
29502 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29503 :end' >>confcache
29504 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29505 if test -w "$cache_file"; then
29506 test "x$cache_file" != "x/dev/null" &&
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29508 $as_echo "$as_me: updating cache $cache_file" >&6;}
29509 cat confcache >$cache_file
29510 else
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29512 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29515 rm -f confcache
29517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29518 # Let make expand exec_prefix.
29519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29521 DEFS=-DHAVE_CONFIG_H
29523 ac_libobjs=
29524 ac_ltlibobjs=
29525 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29526 # 1. Remove the extension, and $U if already installed.
29527 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29528 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29529 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29530 # will be set to the directory where LIBOBJS objects are built.
29531 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29532 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29533 done
29534 LIBOBJS=$ac_libobjs
29536 LTLIBOBJS=$ac_ltlibobjs
29541 : ${CONFIG_STATUS=./config.status}
29542 ac_write_fail=0
29543 ac_clean_files_save=$ac_clean_files
29544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29546 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29547 as_write_fail=0
29548 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29549 #! $SHELL
29550 # Generated by $as_me.
29551 # Run this file to recreate the current configuration.
29552 # Compiler output produced by configure, useful for debugging
29553 # configure, is in config.log if it exists.
29555 debug=false
29556 ac_cs_recheck=false
29557 ac_cs_silent=false
29559 SHELL=\${CONFIG_SHELL-$SHELL}
29560 export SHELL
29561 _ASEOF
29562 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29563 ## -------------------- ##
29564 ## M4sh Initialization. ##
29565 ## -------------------- ##
29567 # Be more Bourne compatible
29568 DUALCASE=1; export DUALCASE # for MKS sh
29569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29570 emulate sh
29571 NULLCMD=:
29572 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29573 # is contrary to our usage. Disable this feature.
29574 alias -g '${1+"$@"}'='"$@"'
29575 setopt NO_GLOB_SUBST
29576 else
29577 case `(set -o) 2>/dev/null` in #(
29578 *posix*) :
29579 set -o posix ;; #(
29580 *) :
29582 esac
29586 as_nl='
29588 export as_nl
29589 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29590 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29593 # Prefer a ksh shell builtin over an external printf program on Solaris,
29594 # but without wasting forks for bash or zsh.
29595 if test -z "$BASH_VERSION$ZSH_VERSION" \
29596 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29597 as_echo='print -r --'
29598 as_echo_n='print -rn --'
29599 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29600 as_echo='printf %s\n'
29601 as_echo_n='printf %s'
29602 else
29603 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29604 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29605 as_echo_n='/usr/ucb/echo -n'
29606 else
29607 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29608 as_echo_n_body='eval
29609 arg=$1;
29610 case $arg in #(
29611 *"$as_nl"*)
29612 expr "X$arg" : "X\\(.*\\)$as_nl";
29613 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29614 esac;
29615 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29617 export as_echo_n_body
29618 as_echo_n='sh -c $as_echo_n_body as_echo'
29620 export as_echo_body
29621 as_echo='sh -c $as_echo_body as_echo'
29624 # The user is always right.
29625 if test "${PATH_SEPARATOR+set}" != set; then
29626 PATH_SEPARATOR=:
29627 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29628 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29629 PATH_SEPARATOR=';'
29634 # IFS
29635 # We need space, tab and new line, in precisely that order. Quoting is
29636 # there to prevent editors from complaining about space-tab.
29637 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29638 # splitting by setting IFS to empty value.)
29639 IFS=" "" $as_nl"
29641 # Find who we are. Look in the path if we contain no directory separator.
29642 case $0 in #((
29643 *[\\/]* ) as_myself=$0 ;;
29644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29645 for as_dir in $PATH
29647 IFS=$as_save_IFS
29648 test -z "$as_dir" && as_dir=.
29649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29650 done
29651 IFS=$as_save_IFS
29654 esac
29655 # We did not find ourselves, most probably we were run as `sh COMMAND'
29656 # in which case we are not to be found in the path.
29657 if test "x$as_myself" = x; then
29658 as_myself=$0
29660 if test ! -f "$as_myself"; then
29661 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29662 exit 1
29665 # Unset variables that we do not need and which cause bugs (e.g. in
29666 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29667 # suppresses any "Segmentation fault" message there. '((' could
29668 # trigger a bug in pdksh 5.2.14.
29669 for as_var in BASH_ENV ENV MAIL MAILPATH
29670 do eval test x\${$as_var+set} = xset \
29671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29672 done
29673 PS1='$ '
29674 PS2='> '
29675 PS4='+ '
29677 # NLS nuisances.
29678 LC_ALL=C
29679 export LC_ALL
29680 LANGUAGE=C
29681 export LANGUAGE
29683 # CDPATH.
29684 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29687 # as_fn_error ERROR [LINENO LOG_FD]
29688 # ---------------------------------
29689 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29690 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29691 # script with status $?, using 1 if that was 0.
29692 as_fn_error ()
29694 as_status=$?; test $as_status -eq 0 && as_status=1
29695 if test "$3"; then
29696 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29697 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29699 $as_echo "$as_me: error: $1" >&2
29700 as_fn_exit $as_status
29701 } # as_fn_error
29704 # as_fn_set_status STATUS
29705 # -----------------------
29706 # Set $? to STATUS, without forking.
29707 as_fn_set_status ()
29709 return $1
29710 } # as_fn_set_status
29712 # as_fn_exit STATUS
29713 # -----------------
29714 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29715 as_fn_exit ()
29717 set +e
29718 as_fn_set_status $1
29719 exit $1
29720 } # as_fn_exit
29722 # as_fn_unset VAR
29723 # ---------------
29724 # Portably unset VAR.
29725 as_fn_unset ()
29727 { eval $1=; unset $1;}
29729 as_unset=as_fn_unset
29730 # as_fn_append VAR VALUE
29731 # ----------------------
29732 # Append the text in VALUE to the end of the definition contained in VAR. Take
29733 # advantage of any shell optimizations that allow amortized linear growth over
29734 # repeated appends, instead of the typical quadratic growth present in naive
29735 # implementations.
29736 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29737 eval 'as_fn_append ()
29739 eval $1+=\$2
29741 else
29742 as_fn_append ()
29744 eval $1=\$$1\$2
29746 fi # as_fn_append
29748 # as_fn_arith ARG...
29749 # ------------------
29750 # Perform arithmetic evaluation on the ARGs, and store the result in the
29751 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29752 # must be portable across $(()) and expr.
29753 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29754 eval 'as_fn_arith ()
29756 as_val=$(( $* ))
29758 else
29759 as_fn_arith ()
29761 as_val=`expr "$@" || test $? -eq 1`
29763 fi # as_fn_arith
29766 if expr a : '\(a\)' >/dev/null 2>&1 &&
29767 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29768 as_expr=expr
29769 else
29770 as_expr=false
29773 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29774 as_basename=basename
29775 else
29776 as_basename=false
29779 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29780 as_dirname=dirname
29781 else
29782 as_dirname=false
29785 as_me=`$as_basename -- "$0" ||
29786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29787 X"$0" : 'X\(//\)$' \| \
29788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29789 $as_echo X/"$0" |
29790 sed '/^.*\/\([^/][^/]*\)\/*$/{
29791 s//\1/
29794 /^X\/\(\/\/\)$/{
29795 s//\1/
29798 /^X\/\(\/\).*/{
29799 s//\1/
29802 s/.*/./; q'`
29804 # Avoid depending upon Character Ranges.
29805 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29806 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29807 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29808 as_cr_digits='0123456789'
29809 as_cr_alnum=$as_cr_Letters$as_cr_digits
29811 ECHO_C= ECHO_N= ECHO_T=
29812 case `echo -n x` in #(((((
29813 -n*)
29814 case `echo 'xy\c'` in
29815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29816 xy) ECHO_C='\c';;
29817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29818 ECHO_T=' ';;
29819 esac;;
29821 ECHO_N='-n';;
29822 esac
29824 rm -f conf$$ conf$$.exe conf$$.file
29825 if test -d conf$$.dir; then
29826 rm -f conf$$.dir/conf$$.file
29827 else
29828 rm -f conf$$.dir
29829 mkdir conf$$.dir 2>/dev/null
29831 if (echo >conf$$.file) 2>/dev/null; then
29832 if ln -s conf$$.file conf$$ 2>/dev/null; then
29833 as_ln_s='ln -s'
29834 # ... but there are two gotchas:
29835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29837 # In both cases, we have to default to `cp -p'.
29838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29839 as_ln_s='cp -p'
29840 elif ln conf$$.file conf$$ 2>/dev/null; then
29841 as_ln_s=ln
29842 else
29843 as_ln_s='cp -p'
29845 else
29846 as_ln_s='cp -p'
29848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29849 rmdir conf$$.dir 2>/dev/null
29852 # as_fn_mkdir_p
29853 # -------------
29854 # Create "$as_dir" as a directory, including parents if necessary.
29855 as_fn_mkdir_p ()
29858 case $as_dir in #(
29859 -*) as_dir=./$as_dir;;
29860 esac
29861 test -d "$as_dir" || eval $as_mkdir_p || {
29862 as_dirs=
29863 while :; do
29864 case $as_dir in #(
29865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29866 *) as_qdir=$as_dir;;
29867 esac
29868 as_dirs="'$as_qdir' $as_dirs"
29869 as_dir=`$as_dirname -- "$as_dir" ||
29870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29871 X"$as_dir" : 'X\(//\)[^/]' \| \
29872 X"$as_dir" : 'X\(//\)$' \| \
29873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29874 $as_echo X"$as_dir" |
29875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29876 s//\1/
29879 /^X\(\/\/\)[^/].*/{
29880 s//\1/
29883 /^X\(\/\/\)$/{
29884 s//\1/
29887 /^X\(\/\).*/{
29888 s//\1/
29891 s/.*/./; q'`
29892 test -d "$as_dir" && break
29893 done
29894 test -z "$as_dirs" || eval "mkdir $as_dirs"
29895 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29898 } # as_fn_mkdir_p
29899 if mkdir -p . 2>/dev/null; then
29900 as_mkdir_p='mkdir -p "$as_dir"'
29901 else
29902 test -d ./-p && rmdir ./-p
29903 as_mkdir_p=false
29906 if test -x / >/dev/null 2>&1; then
29907 as_test_x='test -x'
29908 else
29909 if ls -dL / >/dev/null 2>&1; then
29910 as_ls_L_option=L
29911 else
29912 as_ls_L_option=
29914 as_test_x='
29915 eval sh -c '\''
29916 if test -d "$1"; then
29917 test -d "$1/.";
29918 else
29919 case $1 in #(
29920 -*)set "./$1";;
29921 esac;
29922 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29923 ???[sx]*):;;*)false;;esac;fi
29924 '\'' sh
29927 as_executable_p=$as_test_x
29929 # Sed expression to map a string onto a valid CPP name.
29930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29932 # Sed expression to map a string onto a valid variable name.
29933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29936 exec 6>&1
29937 ## ----------------------------------- ##
29938 ## Main body of $CONFIG_STATUS script. ##
29939 ## ----------------------------------- ##
29940 _ASEOF
29941 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29944 # Save the log message, to keep $0 and so on meaningful, and to
29945 # report actual input values of CONFIG_FILES etc. instead of their
29946 # values after options handling.
29947 ac_log="
29948 This file was extended by $as_me, which was
29949 generated by GNU Autoconf 2.64. Invocation command line was
29951 CONFIG_FILES = $CONFIG_FILES
29952 CONFIG_HEADERS = $CONFIG_HEADERS
29953 CONFIG_LINKS = $CONFIG_LINKS
29954 CONFIG_COMMANDS = $CONFIG_COMMANDS
29955 $ $0 $@
29957 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29960 _ACEOF
29962 case $ac_config_files in *"
29963 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29964 esac
29966 case $ac_config_headers in *"
29967 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29968 esac
29971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29972 # Files that config.status was made for.
29973 config_files="$ac_config_files"
29974 config_headers="$ac_config_headers"
29975 config_links="$ac_config_links"
29976 config_commands="$ac_config_commands"
29978 _ACEOF
29980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29981 ac_cs_usage="\
29982 \`$as_me' instantiates files and other configuration actions
29983 from templates according to the current configuration. Unless the files
29984 and actions are specified as TAGs, all are instantiated by default.
29986 Usage: $0 [OPTION]... [TAG]...
29988 -h, --help print this help, then exit
29989 -V, --version print version number and configuration settings, then exit
29990 -q, --quiet, --silent
29991 do not print progress messages
29992 -d, --debug don't remove temporary files
29993 --recheck update $as_me by reconfiguring in the same conditions
29994 --file=FILE[:TEMPLATE]
29995 instantiate the configuration file FILE
29996 --header=FILE[:TEMPLATE]
29997 instantiate the configuration header FILE
29999 Configuration files:
30000 $config_files
30002 Configuration headers:
30003 $config_headers
30005 Configuration links:
30006 $config_links
30008 Configuration commands:
30009 $config_commands
30011 Report bugs to the package provider."
30013 _ACEOF
30014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30015 ac_cs_version="\\
30016 config.status
30017 configured by $0, generated by GNU Autoconf 2.64,
30018 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30020 Copyright (C) 2009 Free Software Foundation, Inc.
30021 This config.status script is free software; the Free Software Foundation
30022 gives unlimited permission to copy, distribute and modify it."
30024 ac_pwd='$ac_pwd'
30025 srcdir='$srcdir'
30026 AWK='$AWK'
30027 test -n "\$AWK" || AWK=awk
30028 _ACEOF
30030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30031 # The default lists apply if the user does not specify any file.
30032 ac_need_defaults=:
30033 while test $# != 0
30035 case $1 in
30036 --*=*)
30037 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30038 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30039 ac_shift=:
30042 ac_option=$1
30043 ac_optarg=$2
30044 ac_shift=shift
30046 esac
30048 case $ac_option in
30049 # Handling of the options.
30050 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30051 ac_cs_recheck=: ;;
30052 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30053 $as_echo "$ac_cs_version"; exit ;;
30054 --debug | --debu | --deb | --de | --d | -d )
30055 debug=: ;;
30056 --file | --fil | --fi | --f )
30057 $ac_shift
30058 case $ac_optarg in
30059 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30060 esac
30061 as_fn_append CONFIG_FILES " '$ac_optarg'"
30062 ac_need_defaults=false;;
30063 --header | --heade | --head | --hea )
30064 $ac_shift
30065 case $ac_optarg in
30066 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30067 esac
30068 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30069 ac_need_defaults=false;;
30070 --he | --h)
30071 # Conflict between --help and --header
30072 as_fn_error "ambiguous option: \`$1'
30073 Try \`$0 --help' for more information.";;
30074 --help | --hel | -h )
30075 $as_echo "$ac_cs_usage"; exit ;;
30076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30077 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30078 ac_cs_silent=: ;;
30080 # This is an error.
30081 -*) as_fn_error "unrecognized option: \`$1'
30082 Try \`$0 --help' for more information." ;;
30084 *) as_fn_append ac_config_targets " $1"
30085 ac_need_defaults=false ;;
30087 esac
30088 shift
30089 done
30091 ac_configure_extra_args=
30093 if $ac_cs_silent; then
30094 exec 6>/dev/null
30095 ac_configure_extra_args="$ac_configure_extra_args --silent"
30098 _ACEOF
30099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30100 if \$ac_cs_recheck; then
30101 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30102 shift
30103 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30104 CONFIG_SHELL='$SHELL'
30105 export CONFIG_SHELL
30106 exec "\$@"
30109 _ACEOF
30110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30111 exec 5>>config.log
30113 echo
30114 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30115 ## Running $as_me. ##
30116 _ASBOX
30117 $as_echo "$ac_log"
30118 } >&5
30120 _ACEOF
30121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30123 # INIT-COMMANDS
30125 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30126 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30127 subdirs='$subdirs'
30129 _ACEOF
30131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30133 # Handling of arguments.
30134 for ac_config_target in $ac_config_targets
30136 case $ac_config_target in
30137 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30138 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30139 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30140 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30141 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30142 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30143 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30144 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30145 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30147 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30148 esac
30149 done
30152 # If the user did not use the arguments to specify the items to instantiate,
30153 # then the envvar interface is used. Set only those that are not.
30154 # We use the long form for the default assignment because of an extremely
30155 # bizarre bug on SunOS 4.1.3.
30156 if $ac_need_defaults; then
30157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30159 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30160 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30163 # Have a temporary directory for convenience. Make it in the build tree
30164 # simply because there is no reason against having it here, and in addition,
30165 # creating and moving files from /tmp can sometimes cause problems.
30166 # Hook for its removal unless debugging.
30167 # Note that there is a small window in which the directory will not be cleaned:
30168 # after its creation but before its name has been assigned to `$tmp'.
30169 $debug ||
30171 tmp=
30172 trap 'exit_status=$?
30173 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30175 trap 'as_fn_exit 1' 1 2 13 15
30177 # Create a (secure) tmp directory for tmp files.
30180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30181 test -n "$tmp" && test -d "$tmp"
30182 } ||
30184 tmp=./conf$$-$RANDOM
30185 (umask 077 && mkdir "$tmp")
30186 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30188 # Set up the scripts for CONFIG_FILES section.
30189 # No need to generate them if there are no CONFIG_FILES.
30190 # This happens for instance with `./config.status config.h'.
30191 if test -n "$CONFIG_FILES"; then
30193 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30194 ac_cs_awk_getline=:
30195 ac_cs_awk_pipe_init=
30196 ac_cs_awk_read_file='
30197 while ((getline aline < (F[key])) > 0)
30198 print(aline)
30199 close(F[key])'
30200 ac_cs_awk_pipe_fini=
30201 else
30202 ac_cs_awk_getline=false
30203 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30204 ac_cs_awk_read_file='
30205 print "|#_!!_#|"
30206 print "cat " F[key] " &&"
30207 '$ac_cs_awk_pipe_init
30208 # The final `:' finishes the AND list.
30209 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30211 ac_cr=`echo X | tr X '\015'`
30212 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30213 # But we know of no other shell where ac_cr would be empty at this
30214 # point, so we can use a bashism as a fallback.
30215 if test "x$ac_cr" = x; then
30216 eval ac_cr=\$\'\\r\'
30218 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30219 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30220 ac_cs_awk_cr='\r'
30221 else
30222 ac_cs_awk_cr=$ac_cr
30225 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30226 _ACEOF
30228 # Create commands to substitute file output variables.
30230 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30231 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30232 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30233 echo "_ACAWK" &&
30234 echo "_ACEOF"
30235 } >conf$$files.sh &&
30236 . ./conf$$files.sh ||
30237 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30238 rm -f conf$$files.sh
30241 echo "cat >conf$$subs.awk <<_ACEOF" &&
30242 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30243 echo "_ACEOF"
30244 } >conf$$subs.sh ||
30245 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30246 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30247 ac_delim='%!_!# '
30248 for ac_last_try in false false false false false :; do
30249 . ./conf$$subs.sh ||
30250 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30252 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30253 if test $ac_delim_n = $ac_delim_num; then
30254 break
30255 elif $ac_last_try; then
30256 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30257 else
30258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30260 done
30261 rm -f conf$$subs.sh
30263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30264 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30265 _ACEOF
30266 sed -n '
30268 s/^/S["/; s/!.*/"]=/
30271 s/^[^!]*!//
30272 :repl
30273 t repl
30274 s/'"$ac_delim"'$//
30275 t delim
30278 s/\(.\{148\}\).*/\1/
30279 t more1
30280 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30283 b repl
30284 :more1
30285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30288 s/.\{148\}//
30289 t nl
30290 :delim
30292 s/\(.\{148\}\).*/\1/
30293 t more2
30294 s/["\\]/\\&/g; s/^/"/; s/$/"/
30297 :more2
30298 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30301 s/.\{148\}//
30302 t delim
30303 ' <conf$$subs.awk | sed '
30304 /^[^""]/{
30306 s/\n//
30308 ' >>$CONFIG_STATUS || ac_write_fail=1
30309 rm -f conf$$subs.awk
30310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30311 _ACAWK
30312 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30313 for (key in S) S_is_set[key] = 1
30314 FS = "\a"
30315 \$ac_cs_awk_pipe_init
30318 line = $ 0
30319 nfields = split(line, field, "@")
30320 substed = 0
30321 len = length(field[1])
30322 for (i = 2; i < nfields; i++) {
30323 key = field[i]
30324 keylen = length(key)
30325 if (S_is_set[key]) {
30326 value = S[key]
30327 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30328 len += length(value) + length(field[++i])
30329 substed = 1
30330 } else
30331 len += 1 + keylen
30333 if (nfields == 3 && !substed) {
30334 key = field[2]
30335 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30336 \$ac_cs_awk_read_file
30337 next
30340 print line
30342 \$ac_cs_awk_pipe_fini
30343 _ACAWK
30344 _ACEOF
30345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30346 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30347 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30348 else
30350 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30351 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30352 _ACEOF
30354 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30355 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30356 # trailing colons and then remove the whole line if VPATH becomes empty
30357 # (actually we leave an empty line to preserve line numbers).
30358 if test "x$srcdir" = x.; then
30359 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30360 s/:*\$(srcdir):*/:/
30361 s/:*\${srcdir}:*/:/
30362 s/:*@srcdir@:*/:/
30363 s/^\([^=]*=[ ]*\):*/\1/
30364 s/:*$//
30365 s/^[^=]*=[ ]*$//
30369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30370 fi # test -n "$CONFIG_FILES"
30372 # Set up the scripts for CONFIG_HEADERS section.
30373 # No need to generate them if there are no CONFIG_HEADERS.
30374 # This happens for instance with `./config.status Makefile'.
30375 if test -n "$CONFIG_HEADERS"; then
30376 cat >"$tmp/defines.awk" <<\_ACAWK ||
30377 BEGIN {
30378 _ACEOF
30380 # Transform confdefs.h into an awk script `defines.awk', embedded as
30381 # here-document in config.status, that substitutes the proper values into
30382 # config.h.in to produce config.h.
30384 # Create a delimiter string that does not exist in confdefs.h, to ease
30385 # handling of long lines.
30386 ac_delim='%!_!# '
30387 for ac_last_try in false false :; do
30388 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30389 if test -z "$ac_t"; then
30390 break
30391 elif $ac_last_try; then
30392 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30393 else
30394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30396 done
30398 # For the awk script, D is an array of macro values keyed by name,
30399 # likewise P contains macro parameters if any. Preserve backslash
30400 # newline sequences.
30402 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30403 sed -n '
30404 s/.\{148\}/&'"$ac_delim"'/g
30405 t rset
30406 :rset
30407 s/^[ ]*#[ ]*define[ ][ ]*/ /
30408 t def
30410 :def
30411 s/\\$//
30412 t bsnl
30413 s/["\\]/\\&/g
30414 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30415 D["\1"]=" \3"/p
30416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30418 :bsnl
30419 s/["\\]/\\&/g
30420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30421 D["\1"]=" \3\\\\\\n"\\/p
30422 t cont
30423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30424 t cont
30426 :cont
30428 s/.\{148\}/&'"$ac_delim"'/g
30429 t clear
30430 :clear
30431 s/\\$//
30432 t bsnlc
30433 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30435 :bsnlc
30436 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30437 b cont
30438 ' <confdefs.h | sed '
30439 s/'"$ac_delim"'/"\\\
30440 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30443 for (key in D) D_is_set[key] = 1
30444 FS = "\a"
30446 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30447 line = \$ 0
30448 split(line, arg, " ")
30449 if (arg[1] == "#") {
30450 defundef = arg[2]
30451 mac1 = arg[3]
30452 } else {
30453 defundef = substr(arg[1], 2)
30454 mac1 = arg[2]
30456 split(mac1, mac2, "(") #)
30457 macro = mac2[1]
30458 prefix = substr(line, 1, index(line, defundef) - 1)
30459 if (D_is_set[macro]) {
30460 # Preserve the white space surrounding the "#".
30461 print prefix "define", macro P[macro] D[macro]
30462 next
30463 } else {
30464 # Replace #undef with comments. This is necessary, for example,
30465 # in the case of _POSIX_SOURCE, which is predefined and required
30466 # on some systems where configure will not decide to define it.
30467 if (defundef == "undef") {
30468 print "/*", prefix defundef, macro, "*/"
30469 next
30473 { print }
30474 _ACAWK
30475 _ACEOF
30476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30477 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30478 fi # test -n "$CONFIG_HEADERS"
30481 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30482 shift
30483 for ac_tag
30485 case $ac_tag in
30486 :[FHLC]) ac_mode=$ac_tag; continue;;
30487 esac
30488 case $ac_mode$ac_tag in
30489 :[FHL]*:*);;
30490 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30491 :[FH]-) ac_tag=-:-;;
30492 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30493 esac
30494 ac_save_IFS=$IFS
30495 IFS=:
30496 set x $ac_tag
30497 IFS=$ac_save_IFS
30498 shift
30499 ac_file=$1
30500 shift
30502 case $ac_mode in
30503 :L) ac_source=$1;;
30504 :[FH])
30505 ac_file_inputs=
30506 for ac_f
30508 case $ac_f in
30509 -) ac_f="$tmp/stdin";;
30510 *) # Look for the file first in the build tree, then in the source tree
30511 # (if the path is not absolute). The absolute path cannot be DOS-style,
30512 # because $ac_f cannot contain `:'.
30513 test -f "$ac_f" ||
30514 case $ac_f in
30515 [\\/$]*) false;;
30516 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30517 esac ||
30518 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30519 esac
30520 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30521 as_fn_append ac_file_inputs " '$ac_f'"
30522 done
30524 # Let's still pretend it is `configure' which instantiates (i.e., don't
30525 # use $as_me), people would be surprised to read:
30526 # /* config.h. Generated by config.status. */
30527 configure_input='Generated from '`
30528 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30529 `' by configure.'
30530 if test x"$ac_file" != x-; then
30531 configure_input="$ac_file. $configure_input"
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30533 $as_echo "$as_me: creating $ac_file" >&6;}
30535 # Neutralize special characters interpreted by sed in replacement strings.
30536 case $configure_input in #(
30537 *\&* | *\|* | *\\* )
30538 ac_sed_conf_input=`$as_echo "$configure_input" |
30539 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30540 *) ac_sed_conf_input=$configure_input;;
30541 esac
30543 case $ac_tag in
30544 *:-:* | *:-) cat >"$tmp/stdin" \
30545 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30546 esac
30548 esac
30550 ac_dir=`$as_dirname -- "$ac_file" ||
30551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30552 X"$ac_file" : 'X\(//\)[^/]' \| \
30553 X"$ac_file" : 'X\(//\)$' \| \
30554 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30555 $as_echo X"$ac_file" |
30556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30557 s//\1/
30560 /^X\(\/\/\)[^/].*/{
30561 s//\1/
30564 /^X\(\/\/\)$/{
30565 s//\1/
30568 /^X\(\/\).*/{
30569 s//\1/
30572 s/.*/./; q'`
30573 as_dir="$ac_dir"; as_fn_mkdir_p
30574 ac_builddir=.
30576 case "$ac_dir" in
30577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30580 # A ".." for each directory in $ac_dir_suffix.
30581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30582 case $ac_top_builddir_sub in
30583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30585 esac ;;
30586 esac
30587 ac_abs_top_builddir=$ac_pwd
30588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30589 # for backward compatibility:
30590 ac_top_builddir=$ac_top_build_prefix
30592 case $srcdir in
30593 .) # We are building in place.
30594 ac_srcdir=.
30595 ac_top_srcdir=$ac_top_builddir_sub
30596 ac_abs_top_srcdir=$ac_pwd ;;
30597 [\\/]* | ?:[\\/]* ) # Absolute name.
30598 ac_srcdir=$srcdir$ac_dir_suffix;
30599 ac_top_srcdir=$srcdir
30600 ac_abs_top_srcdir=$srcdir ;;
30601 *) # Relative name.
30602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30603 ac_top_srcdir=$ac_top_build_prefix$srcdir
30604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30605 esac
30606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30609 case $ac_mode in
30612 # CONFIG_FILE
30615 _ACEOF
30617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30618 # If the template does not know about datarootdir, expand it.
30619 # FIXME: This hack should be removed a few years after 2.60.
30620 ac_datarootdir_hack=; ac_datarootdir_seen=
30621 ac_sed_dataroot='
30622 /datarootdir/ {
30626 /@datadir@/p
30627 /@docdir@/p
30628 /@infodir@/p
30629 /@localedir@/p
30630 /@mandir@/p'
30631 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30632 *datarootdir*) ac_datarootdir_seen=yes;;
30633 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30635 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30636 _ACEOF
30637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30638 ac_datarootdir_hack='
30639 s&@datadir@&$datadir&g
30640 s&@docdir@&$docdir&g
30641 s&@infodir@&$infodir&g
30642 s&@localedir@&$localedir&g
30643 s&@mandir@&$mandir&g
30644 s&\\\${datarootdir}&$datarootdir&g' ;;
30645 esac
30646 _ACEOF
30648 # Neutralize VPATH when `$srcdir' = `.'.
30649 # Shell code in configure.ac might set extrasub.
30650 # FIXME: do we really want to maintain this feature?
30651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30652 ac_sed_extra="$ac_vpsub
30653 $extrasub
30654 _ACEOF
30655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30658 s|@configure_input@|$ac_sed_conf_input|;t t
30659 s&@top_builddir@&$ac_top_builddir_sub&;t t
30660 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30661 s&@srcdir@&$ac_srcdir&;t t
30662 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30663 s&@top_srcdir@&$ac_top_srcdir&;t t
30664 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30665 s&@builddir@&$ac_builddir&;t t
30666 s&@abs_builddir@&$ac_abs_builddir&;t t
30667 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30668 $ac_datarootdir_hack
30670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30671 if $ac_cs_awk_getline; then
30672 $AWK -f "$tmp/subs.awk"
30673 else
30674 $AWK -f "$tmp/subs.awk" | $SHELL
30675 fi >$tmp/out \
30676 || as_fn_error "could not create $ac_file" "$LINENO" 5
30678 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30679 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30680 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30682 which seems to be undefined. Please make sure it is defined." >&5
30683 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30684 which seems to be undefined. Please make sure it is defined." >&2;}
30686 rm -f "$tmp/stdin"
30687 case $ac_file in
30688 -) cat "$tmp/out" && rm -f "$tmp/out";;
30689 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30690 esac \
30691 || as_fn_error "could not create $ac_file" "$LINENO" 5
30695 # CONFIG_HEADER
30697 if test x"$ac_file" != x-; then
30699 $as_echo "/* $configure_input */" \
30700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30701 } >"$tmp/config.h" \
30702 || as_fn_error "could not create $ac_file" "$LINENO" 5
30703 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30705 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30706 else
30707 rm -f "$ac_file"
30708 mv "$tmp/config.h" "$ac_file" \
30709 || as_fn_error "could not create $ac_file" "$LINENO" 5
30711 else
30712 $as_echo "/* $configure_input */" \
30713 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30714 || as_fn_error "could not create -" "$LINENO" 5
30719 # CONFIG_LINK
30722 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30724 else
30725 # Prefer the file from the source tree if names are identical.
30726 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30727 ac_source=$srcdir/$ac_source
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30731 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30733 if test ! -r "$ac_source"; then
30734 as_fn_error "$ac_source: file not found" "$LINENO" 5
30736 rm -f "$ac_file"
30738 # Try a relative symlink, then a hard link, then a copy.
30739 case $srcdir in
30740 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30741 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30742 esac
30743 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30744 ln "$ac_source" "$ac_file" 2>/dev/null ||
30745 cp -p "$ac_source" "$ac_file" ||
30746 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30749 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30750 $as_echo "$as_me: executing $ac_file commands" >&6;}
30752 esac
30755 case $ac_file$ac_mode in
30756 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30757 "gccdepdir":C)
30758 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30759 for lang in $subdirs c-family common
30761 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30762 done ;;
30763 "as":F) chmod +x as ;;
30764 "collect-ld":F) chmod +x collect-ld ;;
30765 "nm":F) chmod +x nm ;;
30766 "default":C)
30767 case ${CONFIG_HEADERS} in
30768 *auto-host.h:config.in*)
30769 echo > cstamp-h ;;
30770 esac
30771 # Make sure all the subdirs exist.
30772 for d in $subdirs doc build common c-family
30774 test -d $d || mkdir $d
30775 done
30778 esac
30779 done # for ac_tag
30782 as_fn_exit 0
30783 _ACEOF
30784 ac_clean_files=$ac_clean_files_save
30786 test $ac_write_fail = 0 ||
30787 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30790 # configure is writing to config.log, and then calls config.status.
30791 # config.status does its own redirection, appending to config.log.
30792 # Unfortunately, on DOS this fails, as config.log is still kept open
30793 # by configure, so config.status won't be able to write to it; its
30794 # output is simply discarded. So we exec the FD to /dev/null,
30795 # effectively closing config.log, so it can be properly (re)opened and
30796 # appended to by config.status. When coming back to configure, we
30797 # need to make the FD available again.
30798 if test "$no_create" != yes; then
30799 ac_cs_success=:
30800 ac_config_status_args=
30801 test "$silent" = yes &&
30802 ac_config_status_args="$ac_config_status_args --quiet"
30803 exec 5>/dev/null
30804 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30805 exec 5>>config.log
30806 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30807 # would make configure fail if this is the last instruction.
30808 $ac_cs_success || as_fn_exit $?
30810 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30812 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}