* fold-const.c (c_getstr): Clamp STRING_LENGTH to STRING_SIZE.
[official-gcc.git] / gcc / configure
blob5ae43ec891778aec955e36b67f5e4bb47f790cc4
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 thin_archive_support
683 ld_soname_option
684 ld_version_script_option
685 libgcc_visibility
686 gcc_cv_readelf
687 gcc_cv_objdump
688 ORIGINAL_NM_FOR_TARGET
689 gcc_cv_nm
690 ORIGINAL_LD_GOLD_FOR_TARGET
691 ORIGINAL_LD_BFD_FOR_TARGET
692 ORIGINAL_LD_FOR_TARGET
693 ORIGINAL_PLUGIN_LD_FOR_TARGET
694 gcc_cv_ld
695 ORIGINAL_AS_FOR_TARGET
696 gcc_cv_as
697 enable_fast_install
698 objdir
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 STRIP
705 OBJDUMP
706 ac_ct_DUMPBIN
707 DUMPBIN
709 FGREP
711 LIBTOOL
712 collect2
713 NO_PIE_FLAG_FOR_BUILD
714 NO_PIE_CFLAGS_FOR_BUILD
715 BUILD_NO_PIE_FLAG
716 BUILD_NO_PIE_CFLAGS
717 STMP_FIXINC
718 BUILD_LDFLAGS
719 BUILD_CXXFLAGS
720 BUILD_CFLAGS
721 CXX_FOR_BUILD
722 CC_FOR_BUILD
723 inhibit_libc
724 BUILD_SYSTEM_HEADER_DIR
725 SYSTEM_HEADER_DIR
727 CROSS
728 CATOBJEXT
729 GENCAT
730 INSTOBJEXT
731 DATADIRNAME
732 CATALOGS
733 POSUB
734 GMSGFMT
735 XGETTEXT
736 INCINTL
737 LIBINTL_DEP
738 LIBINTL
739 USE_NLS
740 get_gcc_base_ver
741 extra_opt_files
742 extra_modes_file
743 NATIVE_SYSTEM_HEADER_DIR
744 objext
745 manext
746 LIBICONV_DEP
747 LTLIBICONV
748 LIBICONV
749 LDEXP_LIB
750 EXTRA_GCC_LIBS
751 GNAT_LIBEXC
752 COLLECT2_LIBS
753 CXXDEPMODE
754 DEPDIR
755 am__leading_dot
756 doc_build_sys
759 BISON
760 FLEX
761 GENERATED_MANPAGES
762 BUILD_INFO
763 MAKEINFO
764 have_mktemp_command
765 make_compare_target
766 INSTALL_DATA
767 INSTALL_PROGRAM
768 INSTALL
769 ranlib_flags
770 RANLIB
772 LN_S
774 SET_MAKE
775 accel_dir_suffix
776 real_target_noncanonical
777 enable_as_accelerator
778 REPORT_BUGS_TEXI
779 REPORT_BUGS_TO
780 PKGVERSION
781 CONFIGURE_SPECS
782 enable_gcov
783 enable_shared
784 enable_fixed_point
785 enable_decimal_float
786 with_float
787 with_cpu
788 enable_multiarch
789 enable_multilib
790 coverage_flags
791 valgrind_command
792 valgrind_path_defines
793 valgrind_path
794 TREECHECKING
795 nocommon_flag
796 noexception_flags
797 warn_cxxflags
798 warn_cflags
799 c_strict_warn
800 strict_warn
801 c_loose_warn
802 loose_warn
803 aliasing_flags
805 EGREP
806 GREP
807 CXXCPP
808 PICFLAG_FOR_TARGET
809 GNATMAKE
810 GNATBIND
811 ac_ct_CXX
812 CXXFLAGS
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
821 GENINSRC
822 CROSS_SYSTEM_HEADER_DIR
823 TARGET_SYSTEM_ROOT_DEFINE
824 TARGET_SYSTEM_ROOT
825 SYSROOT_CFLAGS_FOR_TARGET
826 target_subdir
827 host_subdir
828 build_subdir
829 build_libsubdir
830 target_noncanonical
831 host_noncanonical
832 target_os
833 target_vendor
834 target_cpu
835 target
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 target_alias
845 host_alias
846 build_alias
847 LIBS
848 ECHO_T
849 ECHO_N
850 ECHO_C
851 DEFS
852 mandir
853 localedir
854 libdir
855 psdir
856 pdfdir
857 dvidir
858 htmldir
859 infodir
860 docdir
861 oldincludedir
862 includedir
863 localstatedir
864 sharedstatedir
865 sysconfdir
866 datadir
867 datarootdir
868 libexecdir
869 sbindir
870 bindir
871 program_transform_name
872 prefix
873 exec_prefix
874 PACKAGE_URL
875 PACKAGE_BUGREPORT
876 PACKAGE_STRING
877 PACKAGE_VERSION
878 PACKAGE_TARNAME
879 PACKAGE_NAME
880 PATH_SEPARATOR
881 SHELL'
882 ac_subst_files='option_includes
883 language_hooks'
884 ac_user_opts='
885 enable_option_checking
886 with_build_libsubdir
887 with_local_prefix
888 with_native_system_header_dir
889 with_build_sysroot
890 with_sysroot
891 with_gxx_include_dir
892 with_cpp_install_dir
893 enable_generated_files_in_srcdir
894 with_gnu_ld
895 with_ld
896 with_demangler_in_ld
897 with_gnu_as
898 with_as
899 enable_largefile
900 enable_build_format_warnings
901 enable_werror_always
902 enable_checking
903 enable_coverage
904 enable_gather_detailed_mem_stats
905 enable_valgrind_annotations
906 with_stabs
907 enable_multilib
908 enable_multiarch
909 enable___cxa_atexit
910 enable_decimal_float
911 enable_fixed_point
912 enable_threads
913 enable_tls
914 enable_vtable_verify
915 enable_objc_gc
916 with_dwarf2
917 enable_shared
918 enable_gcov
919 with_specs
920 with_pkgversion
921 with_bugurl
922 enable_languages
923 with_multilib_list
924 enable_rpath
925 with_libiconv_prefix
926 enable_sjlj_exceptions
927 with_gcc_major_version_only
928 enable_secureplt
929 enable_mingw_wildcard
930 enable_leading_mingw64_underscores
931 enable_cld
932 enable_frame_pointer
933 enable_win32_registry
934 enable_static
935 with_pic
936 enable_fast_install
937 enable_libtool_lock
938 enable_ld
939 enable_gold
940 with_plugin_ld
941 enable_gnu_indirect_function
942 enable_initfini_array
943 enable_comdat
944 enable_fix_cortex_a53_835769
945 enable_fix_cortex_a53_843419
946 with_glibc_version
947 enable_gnu_unique_object
948 enable_linker_build_id
949 enable_libssp
950 enable_default_ssp
951 with_long_double_128
952 with_long_double_format
953 with_gc
954 with_system_zlib
955 enable_maintainer_mode
956 enable_link_mutex
957 enable_version_specific_runtime_libs
958 enable_plugin
959 enable_host_shared
960 enable_libquadmath_support
961 with_linker_hash_style
962 with_diagnostics_color
963 enable_default_pie
965 ac_precious_vars='build_alias
966 host_alias
967 target_alias
969 CFLAGS
970 LDFLAGS
971 LIBS
972 CPPFLAGS
974 CXXFLAGS
976 CXXCPP
978 GMPLIBS
979 GMPINC
980 ISLLIBS
981 ISLINC'
984 # Initialize some variables set by options.
985 ac_init_help=
986 ac_init_version=false
987 ac_unrecognized_opts=
988 ac_unrecognized_sep=
989 # The variables have the same names as the options, with
990 # dashes changed to underlines.
991 cache_file=/dev/null
992 exec_prefix=NONE
993 no_create=
994 no_recursion=
995 prefix=NONE
996 program_prefix=NONE
997 program_suffix=NONE
998 program_transform_name=s,x,x,
999 silent=
1000 site=
1001 srcdir=
1002 verbose=
1003 x_includes=NONE
1004 x_libraries=NONE
1006 # Installation directory options.
1007 # These are left unexpanded so users can "make install exec_prefix=/foo"
1008 # and all the variables that are supposed to be based on exec_prefix
1009 # by default will actually change.
1010 # Use braces instead of parens because sh, perl, etc. also accept them.
1011 # (The list follows the same order as the GNU Coding Standards.)
1012 bindir='${exec_prefix}/bin'
1013 sbindir='${exec_prefix}/sbin'
1014 libexecdir='${exec_prefix}/libexec'
1015 datarootdir='${prefix}/share'
1016 datadir='${datarootdir}'
1017 sysconfdir='${prefix}/etc'
1018 sharedstatedir='${prefix}/com'
1019 localstatedir='${prefix}/var'
1020 includedir='${prefix}/include'
1021 oldincludedir='/usr/include'
1022 docdir='${datarootdir}/doc/${PACKAGE}'
1023 infodir='${datarootdir}/info'
1024 htmldir='${docdir}'
1025 dvidir='${docdir}'
1026 pdfdir='${docdir}'
1027 psdir='${docdir}'
1028 libdir='${exec_prefix}/lib'
1029 localedir='${datarootdir}/locale'
1030 mandir='${datarootdir}/man'
1032 ac_prev=
1033 ac_dashdash=
1034 for ac_option
1036 # If the previous option needs an argument, assign it.
1037 if test -n "$ac_prev"; then
1038 eval $ac_prev=\$ac_option
1039 ac_prev=
1040 continue
1043 case $ac_option in
1044 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045 *) ac_optarg=yes ;;
1046 esac
1048 # Accept the important Cygnus configure options, so we can diagnose typos.
1050 case $ac_dashdash$ac_option in
1052 ac_dashdash=yes ;;
1054 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055 ac_prev=bindir ;;
1056 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057 bindir=$ac_optarg ;;
1059 -build | --build | --buil | --bui | --bu)
1060 ac_prev=build_alias ;;
1061 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062 build_alias=$ac_optarg ;;
1064 -cache-file | --cache-file | --cache-fil | --cache-fi \
1065 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066 ac_prev=cache_file ;;
1067 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069 cache_file=$ac_optarg ;;
1071 --config-cache | -C)
1072 cache_file=config.cache ;;
1074 -datadir | --datadir | --datadi | --datad)
1075 ac_prev=datadir ;;
1076 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1077 datadir=$ac_optarg ;;
1079 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080 | --dataroo | --dataro | --datar)
1081 ac_prev=datarootdir ;;
1082 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084 datarootdir=$ac_optarg ;;
1086 -disable-* | --disable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=no ;;
1102 -docdir | --docdir | --docdi | --doc | --do)
1103 ac_prev=docdir ;;
1104 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1105 docdir=$ac_optarg ;;
1107 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1108 ac_prev=dvidir ;;
1109 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1110 dvidir=$ac_optarg ;;
1112 -enable-* | --enable-*)
1113 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116 as_fn_error "invalid feature name: $ac_useropt"
1117 ac_useropt_orig=$ac_useropt
1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1121 "enable_$ac_useropt"
1122 "*) ;;
1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124 ac_unrecognized_sep=', ';;
1125 esac
1126 eval enable_$ac_useropt=\$ac_optarg ;;
1128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130 | --exec | --exe | --ex)
1131 ac_prev=exec_prefix ;;
1132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134 | --exec=* | --exe=* | --ex=*)
1135 exec_prefix=$ac_optarg ;;
1137 -gas | --gas | --ga | --g)
1138 # Obsolete; use --with-gas.
1139 with_gas=yes ;;
1141 -help | --help | --hel | --he | -h)
1142 ac_init_help=long ;;
1143 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144 ac_init_help=recursive ;;
1145 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146 ac_init_help=short ;;
1148 -host | --host | --hos | --ho)
1149 ac_prev=host_alias ;;
1150 -host=* | --host=* | --hos=* | --ho=*)
1151 host_alias=$ac_optarg ;;
1153 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154 ac_prev=htmldir ;;
1155 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156 | --ht=*)
1157 htmldir=$ac_optarg ;;
1159 -includedir | --includedir | --includedi | --included | --include \
1160 | --includ | --inclu | --incl | --inc)
1161 ac_prev=includedir ;;
1162 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163 | --includ=* | --inclu=* | --incl=* | --inc=*)
1164 includedir=$ac_optarg ;;
1166 -infodir | --infodir | --infodi | --infod | --info | --inf)
1167 ac_prev=infodir ;;
1168 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169 infodir=$ac_optarg ;;
1171 -libdir | --libdir | --libdi | --libd)
1172 ac_prev=libdir ;;
1173 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174 libdir=$ac_optarg ;;
1176 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177 | --libexe | --libex | --libe)
1178 ac_prev=libexecdir ;;
1179 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180 | --libexe=* | --libex=* | --libe=*)
1181 libexecdir=$ac_optarg ;;
1183 -localedir | --localedir | --localedi | --localed | --locale)
1184 ac_prev=localedir ;;
1185 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186 localedir=$ac_optarg ;;
1188 -localstatedir | --localstatedir | --localstatedi | --localstated \
1189 | --localstate | --localstat | --localsta | --localst | --locals)
1190 ac_prev=localstatedir ;;
1191 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193 localstatedir=$ac_optarg ;;
1195 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196 ac_prev=mandir ;;
1197 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198 mandir=$ac_optarg ;;
1200 -nfp | --nfp | --nf)
1201 # Obsolete; use --without-fp.
1202 with_fp=no ;;
1204 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205 | --no-cr | --no-c | -n)
1206 no_create=yes ;;
1208 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210 no_recursion=yes ;;
1212 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214 | --oldin | --oldi | --old | --ol | --o)
1215 ac_prev=oldincludedir ;;
1216 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219 oldincludedir=$ac_optarg ;;
1221 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222 ac_prev=prefix ;;
1223 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224 prefix=$ac_optarg ;;
1226 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227 | --program-pre | --program-pr | --program-p)
1228 ac_prev=program_prefix ;;
1229 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231 program_prefix=$ac_optarg ;;
1233 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234 | --program-suf | --program-su | --program-s)
1235 ac_prev=program_suffix ;;
1236 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238 program_suffix=$ac_optarg ;;
1240 -program-transform-name | --program-transform-name \
1241 | --program-transform-nam | --program-transform-na \
1242 | --program-transform-n | --program-transform- \
1243 | --program-transform | --program-transfor \
1244 | --program-transfo | --program-transf \
1245 | --program-trans | --program-tran \
1246 | --progr-tra | --program-tr | --program-t)
1247 ac_prev=program_transform_name ;;
1248 -program-transform-name=* | --program-transform-name=* \
1249 | --program-transform-nam=* | --program-transform-na=* \
1250 | --program-transform-n=* | --program-transform-=* \
1251 | --program-transform=* | --program-transfor=* \
1252 | --program-transfo=* | --program-transf=* \
1253 | --program-trans=* | --program-tran=* \
1254 | --progr-tra=* | --program-tr=* | --program-t=*)
1255 program_transform_name=$ac_optarg ;;
1257 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258 ac_prev=pdfdir ;;
1259 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260 pdfdir=$ac_optarg ;;
1262 -psdir | --psdir | --psdi | --psd | --ps)
1263 ac_prev=psdir ;;
1264 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265 psdir=$ac_optarg ;;
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1269 silent=yes ;;
1271 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272 ac_prev=sbindir ;;
1273 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274 | --sbi=* | --sb=*)
1275 sbindir=$ac_optarg ;;
1277 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279 | --sharedst | --shareds | --shared | --share | --shar \
1280 | --sha | --sh)
1281 ac_prev=sharedstatedir ;;
1282 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285 | --sha=* | --sh=*)
1286 sharedstatedir=$ac_optarg ;;
1288 -site | --site | --sit)
1289 ac_prev=site ;;
1290 -site=* | --site=* | --sit=*)
1291 site=$ac_optarg ;;
1293 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294 ac_prev=srcdir ;;
1295 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296 srcdir=$ac_optarg ;;
1298 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299 | --syscon | --sysco | --sysc | --sys | --sy)
1300 ac_prev=sysconfdir ;;
1301 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303 sysconfdir=$ac_optarg ;;
1305 -target | --target | --targe | --targ | --tar | --ta | --t)
1306 ac_prev=target_alias ;;
1307 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308 target_alias=$ac_optarg ;;
1310 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311 verbose=yes ;;
1313 -version | --version | --versio | --versi | --vers | -V)
1314 ac_init_version=: ;;
1316 -with-* | --with-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 as_fn_error "invalid package name: $ac_useropt"
1321 ac_useropt_orig=$ac_useropt
1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323 case $ac_user_opts in
1325 "with_$ac_useropt"
1326 "*) ;;
1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328 ac_unrecognized_sep=', ';;
1329 esac
1330 eval with_$ac_useropt=\$ac_optarg ;;
1332 -without-* | --without-*)
1333 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336 as_fn_error "invalid package name: $ac_useropt"
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1341 "with_$ac_useropt"
1342 "*) ;;
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1345 esac
1346 eval with_$ac_useropt=no ;;
1348 --x)
1349 # Obsolete; use --with-x.
1350 with_x=yes ;;
1352 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353 | --x-incl | --x-inc | --x-in | --x-i)
1354 ac_prev=x_includes ;;
1355 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357 x_includes=$ac_optarg ;;
1359 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1360 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361 ac_prev=x_libraries ;;
1362 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364 x_libraries=$ac_optarg ;;
1366 -*) as_fn_error "unrecognized option: \`$ac_option'
1367 Try \`$0 --help' for more information."
1370 *=*)
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 case $ac_envvar in #(
1374 '' | [0-9]* | *[!_$as_cr_alnum]* )
1375 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1376 esac
1377 eval $ac_envvar=\$ac_optarg
1378 export $ac_envvar ;;
1381 # FIXME: should be removed in autoconf 3.0.
1382 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1385 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388 esac
1389 done
1391 if test -n "$ac_prev"; then
1392 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1393 as_fn_error "missing argument to $ac_option"
1396 if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1398 no) ;;
1399 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1400 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401 esac
1404 # Check all directory arguments for consistency.
1405 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1406 datadir sysconfdir sharedstatedir localstatedir includedir \
1407 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1408 libdir localedir mandir
1410 eval ac_val=\$$ac_var
1411 # Remove trailing slashes.
1412 case $ac_val in
1413 */ )
1414 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1415 eval $ac_var=\$ac_val;;
1416 esac
1417 # Be sure to have absolute directory names.
1418 case $ac_val in
1419 [\\/$]* | ?:[\\/]* ) continue;;
1420 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1421 esac
1422 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1423 done
1425 # There might be people who depend on the old broken behavior: `$host'
1426 # used to hold the argument of --host etc.
1427 # FIXME: To remove some day.
1428 build=$build_alias
1429 host=$host_alias
1430 target=$target_alias
1432 # FIXME: To remove some day.
1433 if test "x$host_alias" != x; then
1434 if test "x$build_alias" = x; then
1435 cross_compiling=maybe
1436 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1437 If a cross compiler is detected then cross compile mode will be used." >&2
1438 elif test "x$build_alias" != "x$host_alias"; then
1439 cross_compiling=yes
1443 ac_tool_prefix=
1444 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1446 test "$silent" = yes && exec 6>/dev/null
1449 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450 ac_ls_di=`ls -di .` &&
1451 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452 as_fn_error "working directory cannot be determined"
1453 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454 as_fn_error "pwd does not report name of working directory"
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459 ac_srcdir_defaulted=yes
1460 # Try the directory containing this script, then the parent directory.
1461 ac_confdir=`$as_dirname -- "$as_myself" ||
1462 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463 X"$as_myself" : 'X\(//\)[^/]' \| \
1464 X"$as_myself" : 'X\(//\)$' \| \
1465 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466 $as_echo X"$as_myself" |
1467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 s//\1/
1471 /^X\(\/\/\)[^/].*/{
1472 s//\1/
1475 /^X\(\/\/\)$/{
1476 s//\1/
1479 /^X\(\/\).*/{
1480 s//\1/
1483 s/.*/./; q'`
1484 srcdir=$ac_confdir
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 srcdir=..
1488 else
1489 ac_srcdir_defaulted=no
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1493 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1495 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496 ac_abs_confdir=`(
1497 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1498 pwd)`
1499 # When building in place, set srcdir=.
1500 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 srcdir=.
1503 # Remove unnecessary trailing slashes from srcdir.
1504 # Double slashes in file names in object file debugging info
1505 # mess up M-x gdb in Emacs.
1506 case $srcdir in
1507 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508 esac
1509 for ac_var in $ac_precious_vars; do
1510 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_env_${ac_var}_value=\$${ac_var}
1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 done
1517 # Report the --help message.
1519 if test "$ac_init_help" = "long"; then
1520 # Omit some internal or obsolete options to make the list less imposing.
1521 # This message is too long to be a string in the A/UX 3.1 sh.
1522 cat <<_ACEOF
1523 \`configure' configures this package to adapt to many kinds of systems.
1525 Usage: $0 [OPTION]... [VAR=VALUE]...
1527 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528 VAR=VALUE. See below for descriptions of some of the useful variables.
1530 Defaults for the options are specified in brackets.
1532 Configuration:
1533 -h, --help display this help and exit
1534 --help=short display options specific to this package
1535 --help=recursive display the short help of all the included packages
1536 -V, --version display version information and exit
1537 -q, --quiet, --silent do not print \`checking...' messages
1538 --cache-file=FILE cache test results in FILE [disabled]
1539 -C, --config-cache alias for \`--cache-file=config.cache'
1540 -n, --no-create do not create output files
1541 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1543 Installation directories:
1544 --prefix=PREFIX install architecture-independent files in PREFIX
1545 [$ac_default_prefix]
1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 [PREFIX]
1549 By default, \`make install' will install all the files in
1550 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1551 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552 for instance \`--prefix=\$HOME'.
1554 For better control, use the options below.
1556 Fine tuning of the installation directories:
1557 --bindir=DIR user executables [EPREFIX/bin]
1558 --sbindir=DIR system admin executables [EPREFIX/sbin]
1559 --libexecdir=DIR program executables [EPREFIX/libexec]
1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1563 --libdir=DIR object code libraries [EPREFIX/lib]
1564 --includedir=DIR C header files [PREFIX/include]
1565 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1566 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1567 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1568 --infodir=DIR info documentation [DATAROOTDIR/info]
1569 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1570 --mandir=DIR man documentation [DATAROOTDIR/man]
1571 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1572 --htmldir=DIR html documentation [DOCDIR]
1573 --dvidir=DIR dvi documentation [DOCDIR]
1574 --pdfdir=DIR pdf documentation [DOCDIR]
1575 --psdir=DIR ps documentation [DOCDIR]
1576 _ACEOF
1578 cat <<\_ACEOF
1580 Program names:
1581 --program-prefix=PREFIX prepend PREFIX to installed program names
1582 --program-suffix=SUFFIX append SUFFIX to installed program names
1583 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1585 System types:
1586 --build=BUILD configure for building on BUILD [guessed]
1587 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1588 --target=TARGET configure for building compilers for TARGET [HOST]
1589 _ACEOF
1592 if test -n "$ac_init_help"; then
1594 cat <<\_ACEOF
1596 Optional Features:
1597 --disable-option-checking ignore unrecognized --enable/--with options
1598 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1599 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1600 --enable-generated-files-in-srcdir
1601 put copies of generated files in source dir intended
1602 for creating source tarballs for users without
1603 texinfo bison or flex
1604 --disable-largefile omit support for large files
1605 --disable-build-format-warnings
1606 don't use -Wformat while building GCC
1607 --enable-werror-always enable -Werror despite compiler version
1608 --enable-checking[=LIST]
1609 enable expensive run-time checks. With LIST, enable
1610 only specific categories of checks. Categories are:
1611 yes,no,all,none,release. Flags are:
1612 assert,df,extra,fold,gc,gcac,gimple,misc,
1613 rtlflag,rtl,runtime,tree,valgrind,types
1614 --enable-coverage[=LEVEL]
1615 enable compiler's code coverage collection. Use to
1616 measure compiler performance and locate unused parts
1617 of the compiler. With LEVEL, specify optimization.
1618 Values are opt, noopt, default is noopt
1619 --enable-gather-detailed-mem-stats
1620 enable detailed memory allocation stats gathering
1621 --enable-valgrind-annotations
1622 enable valgrind runtime interaction
1623 --enable-multilib enable library support for multiple ABIs
1624 --enable-multiarch enable support for multiarch paths
1625 --enable-__cxa_atexit enable __cxa_atexit for C++
1626 --enable-decimal-float={no,yes,bid,dpd}
1627 enable decimal float extension to C. Selecting 'bid'
1628 or 'dpd' choses which decimal floating point format
1629 to use
1630 --enable-fixed-point enable fixed-point arithmetic extension to C
1631 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1632 package
1633 --enable-tls enable or disable generation of tls code overriding
1634 the assembler check for tls support
1635 --enable-vtable-verify enable vtable verification feature
1636 --enable-objc-gc enable the use of Boehm's garbage collector with the
1637 GNU Objective-C runtime
1638 --disable-shared don't provide a shared libgcc
1639 --disable-gcov don't provide libgcov and related host tools
1640 --enable-languages=LIST specify which front-ends to build
1641 --disable-rpath do not hardcode runtime library paths
1642 --enable-sjlj-exceptions
1643 arrange to use setjmp/longjmp exception handling
1644 --enable-secureplt enable -msecure-plt by default for PowerPC
1645 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1646 Default to platform configuration
1647 --enable-leading-mingw64-underscores
1648 enable leading underscores on 64 bit mingw targets
1649 --enable-cld enable -mcld by default for 32bit x86
1650 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1652 --disable-win32-registry
1653 disable lookup of installation paths in the Registry
1654 on Windows hosts
1655 --enable-win32-registry enable registry lookup (default)
1656 --enable-win32-registry=KEY
1657 use KEY instead of GCC version as the last portion
1658 of the registry key
1659 --enable-shared[=PKGS] build shared libraries [default=yes]
1660 --enable-static[=PKGS] build static libraries [default=yes]
1661 --enable-fast-install[=PKGS]
1662 optimize for fast installation [default=yes]
1663 --disable-libtool-lock avoid locking (might break parallel builds)
1664 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1665 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1666 --enable-gnu-indirect-function
1667 enable the use of the @gnu_indirect_function to
1668 glibc systems
1669 --enable-initfini-array use .init_array/.fini_array sections
1670 --enable-comdat enable COMDAT group support
1672 --enable-fix-cortex-a53-835769
1673 enable workaround for AArch64 Cortex-A53 erratum
1674 835769 by default
1675 --disable-fix-cortex-a53-835769
1676 disable workaround for AArch64 Cortex-A53 erratum
1677 835769 by default
1680 --enable-fix-cortex-a53-843419
1681 enable workaround for AArch64 Cortex-A53 erratum
1682 843419 by default
1683 --disable-fix-cortex-a53-843419
1684 disable workaround for AArch64 Cortex-A53 erratum
1685 843419 by default
1687 --enable-gnu-unique-object
1688 enable the use of the @gnu_unique_object ELF
1689 extension on glibc systems
1690 --enable-linker-build-id
1691 compiler will always pass --build-id to linker
1692 --enable-libssp enable linking against libssp
1693 --enable-default-ssp enable Stack Smashing Protection as default
1694 --enable-maintainer-mode
1695 enable make rules and dependencies not useful (and
1696 sometimes confusing) to the casual installer
1697 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1698 thrashing on the build machine
1699 --enable-version-specific-runtime-libs
1700 specify that runtime libraries should be installed
1701 in a compiler-specific directory
1702 --enable-plugin enable plugin support
1703 --enable-host-shared build host code as shared libraries
1704 --disable-libquadmath-support
1705 disable libquadmath support for Fortran
1706 --enable-default-pie enable Position Independent Executable as default
1708 Optional Packages:
1709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1711 --with-build-libsubdir=DIR Directory where to find libraries for build system
1712 --with-local-prefix=DIR specifies directory to put local include
1713 --with-native-system-header-dir=dir
1714 use dir as the directory to look for standard
1715 system header files in. Defaults to /usr/include.
1716 --with-build-sysroot=sysroot
1717 use sysroot as the system root during the build
1718 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1719 --with-gxx-include-dir=DIR
1720 specifies directory to put g++ header files
1721 --with-cpp-install-dir=DIR
1722 install the user visible C preprocessor in DIR
1723 (relative to PREFIX) as well as PREFIX/bin
1724 --with-gnu-ld arrange to work with GNU ld
1725 --with-ld arrange to use the specified ld (full pathname)
1726 --with-demangler-in-ld try to use demangler in GNU ld
1727 --with-gnu-as arrange to work with GNU as
1728 --with-as arrange to use the specified as (full pathname)
1729 --with-stabs arrange to use stabs instead of host debug format
1730 --with-dwarf2 force the default debug format to be DWARF 2
1731 --with-specs=SPECS add SPECS to driver command-line processing
1732 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1733 --with-bugurl=URL Direct users to URL to report a bug
1734 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1735 --with-gnu-ld assume the C compiler uses GNU ld default=no
1736 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1737 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1738 --with-gcc-major-version-only
1739 use only GCC major number in filesystem paths
1740 --with-pic try to use only PIC/non-PIC objects [default=use
1741 both]
1742 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1743 --with-plugin-ld=[ARG] specify the plugin linker
1744 --with-glibc-version=M.N
1745 assume GCC used with glibc version M.N or later
1746 --with-long-double-128 use 128-bit long double by default
1747 --with-long-double-format={ieee,ibm}
1748 Specify whether PowerPC long double uses IEEE or IBM format
1750 --with-gc={page,zone} this option is not supported anymore. It used to
1751 choose the garbage collection mechanism to use with
1752 the compiler
1753 --with-system-zlib use installed libz
1754 --with-linker-hash-style={sysv,gnu,both}
1755 specify the linker hash style
1756 --with-diagnostics-color={never,auto,auto-if-env,always}
1757 specify the default of -fdiagnostics-color option
1758 auto-if-env stands for -fdiagnostics-color=auto if
1759 GCC_COLOR environment variable is present and
1760 -fdiagnostics-color=never otherwise
1762 Some influential environment variables:
1763 CC C compiler command
1764 CFLAGS C compiler flags
1765 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1766 nonstandard directory <lib dir>
1767 LIBS libraries to pass to the linker, e.g. -l<library>
1768 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1769 you have headers in a nonstandard directory <include dir>
1770 CXX C++ compiler command
1771 CXXFLAGS C++ compiler flags
1772 CXXCPP C++ preprocessor
1773 CPP C preprocessor
1774 GMPLIBS How to link GMP
1775 GMPINC How to find GMP include files
1776 ISLLIBS How to link isl
1777 ISLINC How to find isl include files
1779 Use these variables to override the choices made by `configure' or to help
1780 it to find libraries and programs with nonstandard names/locations.
1782 Report bugs to the package provider.
1783 _ACEOF
1784 ac_status=$?
1787 if test "$ac_init_help" = "recursive"; then
1788 # If there are subdirs, report their specific --help.
1789 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1790 test -d "$ac_dir" ||
1791 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1792 continue
1793 ac_builddir=.
1795 case "$ac_dir" in
1796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1799 # A ".." for each directory in $ac_dir_suffix.
1800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1801 case $ac_top_builddir_sub in
1802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1804 esac ;;
1805 esac
1806 ac_abs_top_builddir=$ac_pwd
1807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1808 # for backward compatibility:
1809 ac_top_builddir=$ac_top_build_prefix
1811 case $srcdir in
1812 .) # We are building in place.
1813 ac_srcdir=.
1814 ac_top_srcdir=$ac_top_builddir_sub
1815 ac_abs_top_srcdir=$ac_pwd ;;
1816 [\\/]* | ?:[\\/]* ) # Absolute name.
1817 ac_srcdir=$srcdir$ac_dir_suffix;
1818 ac_top_srcdir=$srcdir
1819 ac_abs_top_srcdir=$srcdir ;;
1820 *) # Relative name.
1821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1822 ac_top_srcdir=$ac_top_build_prefix$srcdir
1823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1824 esac
1825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1827 cd "$ac_dir" || { ac_status=$?; continue; }
1828 # Check for guested configure.
1829 if test -f "$ac_srcdir/configure.gnu"; then
1830 echo &&
1831 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1832 elif test -f "$ac_srcdir/configure"; then
1833 echo &&
1834 $SHELL "$ac_srcdir/configure" --help=recursive
1835 else
1836 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1837 fi || ac_status=$?
1838 cd "$ac_pwd" || { ac_status=$?; break; }
1839 done
1842 test -n "$ac_init_help" && exit $ac_status
1843 if $ac_init_version; then
1844 cat <<\_ACEOF
1845 configure
1846 generated by GNU Autoconf 2.64
1848 Copyright (C) 2009 Free Software Foundation, Inc.
1849 This configure script is free software; the Free Software Foundation
1850 gives unlimited permission to copy, distribute and modify it.
1851 _ACEOF
1852 exit
1855 ## ------------------------ ##
1856 ## Autoconf initialization. ##
1857 ## ------------------------ ##
1859 # ac_fn_c_try_compile LINENO
1860 # --------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=1
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 return $ac_retval
1895 } # ac_fn_c_try_compile
1897 # ac_fn_cxx_try_compile LINENO
1898 # ----------------------------
1899 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_compile ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext
1904 if { { ac_try="$ac_compile"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_compile") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest.$ac_objext; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931 return $ac_retval
1933 } # ac_fn_cxx_try_compile
1935 # ac_fn_cxx_try_cpp LINENO
1936 # ------------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_cxx_try_cpp ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } >/dev/null && {
1957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958 test ! -s conftest.err
1959 }; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1965 ac_retval=1
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 return $ac_retval
1970 } # ac_fn_cxx_try_cpp
1972 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1973 # ---------------------------------------------------------
1974 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975 # the include files in INCLUDES and setting the cache variable VAR
1976 # accordingly.
1977 ac_fn_cxx_check_header_mongrel ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 $as_echo_n "(cached) " >&6
1986 eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 else
1990 # Is the header compilable?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992 $as_echo_n "checking $2 usability... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_cxx_try_compile "$LINENO"; then :
1999 ac_header_compiler=yes
2000 else
2001 ac_header_compiler=no
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005 $as_echo "$ac_header_compiler" >&6; }
2007 # Is the header present?
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009 $as_echo_n "checking $2 presence... " >&6; }
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_cxx_try_cpp "$LINENO"; then :
2015 ac_header_preproc=yes
2016 else
2017 ac_header_preproc=no
2019 rm -f conftest.err conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021 $as_echo "$ac_header_preproc" >&6; }
2023 # So? What about this header?
2024 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2025 yes:no: )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031 no:yes:* )
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2035 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2039 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 esac
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2047 $as_echo_n "(cached) " >&6
2048 else
2049 eval "$3=\$ac_header_compiler"
2051 eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 } # ac_fn_cxx_check_header_mongrel
2059 # ac_fn_cxx_try_run LINENO
2060 # ------------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2062 # that executables *can* be run.
2063 ac_fn_cxx_try_run ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>&5
2074 ac_status=$?
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2077 { { case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_try") 2>&5
2084 ac_status=$?
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; }; }; then :
2087 ac_retval=0
2088 else
2089 $as_echo "$as_me: program exited with status $ac_status" >&5
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2093 ac_retval=$ac_status
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097 return $ac_retval
2099 } # ac_fn_cxx_try_run
2101 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2102 # ---------------------------------------------------------
2103 # Tests whether HEADER exists and can be compiled using the include files in
2104 # INCLUDES, setting the cache variable VAR accordingly.
2105 ac_fn_cxx_check_header_compile ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2111 $as_echo_n "(cached) " >&6
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2116 #include <$2>
2117 _ACEOF
2118 if ac_fn_cxx_try_compile "$LINENO"; then :
2119 eval "$3=yes"
2120 else
2121 eval "$3=no"
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 } # ac_fn_cxx_check_header_compile
2132 # ac_fn_c_try_cpp LINENO
2133 # ----------------------
2134 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_c_try_cpp ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 if { { ac_try="$ac_cpp conftest.$ac_ext"
2139 case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2146 ac_status=$?
2147 if test -s conftest.err; then
2148 grep -v '^ *+' conftest.err >conftest.er1
2149 cat conftest.er1 >&5
2150 mv -f conftest.er1 conftest.err
2152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; } >/dev/null && {
2154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2155 test ! -s conftest.err
2156 }; then :
2157 ac_retval=0
2158 else
2159 $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 ac_retval=1
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 return $ac_retval
2167 } # ac_fn_c_try_cpp
2169 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2170 # ----------------------------------------------
2171 # Tries to find the compile-time value of EXPR in a program that includes
2172 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2173 # computed
2174 ac_fn_cxx_compute_int ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if test "$cross_compiling" = yes; then
2178 # Depending upon the size, compute the lo and hi bounds.
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2183 main ()
2185 static int test_array [1 - 2 * !(($2) >= 0)];
2186 test_array [0] = 0
2189 return 0;
2191 _ACEOF
2192 if ac_fn_cxx_try_compile "$LINENO"; then :
2193 ac_lo=0 ac_mid=0
2194 while :; do
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2199 main ()
2201 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2202 test_array [0] = 0
2205 return 0;
2207 _ACEOF
2208 if ac_fn_cxx_try_compile "$LINENO"; then :
2209 ac_hi=$ac_mid; break
2210 else
2211 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2212 if test $ac_lo -le $ac_mid; then
2213 ac_lo= ac_hi=
2214 break
2216 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 done
2220 else
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2225 main ()
2227 static int test_array [1 - 2 * !(($2) < 0)];
2228 test_array [0] = 0
2231 return 0;
2233 _ACEOF
2234 if ac_fn_cxx_try_compile "$LINENO"; then :
2235 ac_hi=-1 ac_mid=-1
2236 while :; do
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2241 main ()
2243 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2244 test_array [0] = 0
2247 return 0;
2249 _ACEOF
2250 if ac_fn_cxx_try_compile "$LINENO"; then :
2251 ac_lo=$ac_mid; break
2252 else
2253 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2254 if test $ac_mid -le $ac_hi; then
2255 ac_lo= ac_hi=
2256 break
2258 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 done
2262 else
2263 ac_lo= ac_hi=
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 # Binary search between lo and hi bounds.
2269 while test "x$ac_lo" != "x$ac_hi"; do
2270 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2275 main ()
2277 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2278 test_array [0] = 0
2281 return 0;
2283 _ACEOF
2284 if ac_fn_cxx_try_compile "$LINENO"; then :
2285 ac_hi=$ac_mid
2286 else
2287 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 done
2291 case $ac_lo in #((
2292 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293 '') ac_retval=1 ;;
2294 esac
2295 else
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2299 static long int longval () { return $2; }
2300 static unsigned long int ulongval () { return $2; }
2301 #include <stdio.h>
2302 #include <stdlib.h>
2304 main ()
2307 FILE *f = fopen ("conftest.val", "w");
2308 if (! f)
2309 return 1;
2310 if (($2) < 0)
2312 long int i = longval ();
2313 if (i != ($2))
2314 return 1;
2315 fprintf (f, "%ld", i);
2317 else
2319 unsigned long int i = ulongval ();
2320 if (i != ($2))
2321 return 1;
2322 fprintf (f, "%lu", i);
2324 /* Do not output a trailing newline, as this causes \r\n confusion
2325 on some platforms. */
2326 return ferror (f) || fclose (f) != 0;
2329 return 0;
2331 _ACEOF
2332 if ac_fn_cxx_try_run "$LINENO"; then :
2333 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334 else
2335 ac_retval=1
2337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2338 conftest.$ac_objext conftest.beam conftest.$ac_ext
2339 rm -f conftest.val
2342 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343 return $ac_retval
2345 } # ac_fn_cxx_compute_int
2347 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2348 # ---------------------------------------------
2349 # Tests whether TYPE exists after having included INCLUDES, setting cache
2350 # variable VAR accordingly.
2351 ac_fn_cxx_check_type ()
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 eval "$3=no"
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2364 main ()
2366 if (sizeof ($2))
2367 return 0;
2369 return 0;
2371 _ACEOF
2372 if ac_fn_cxx_try_compile "$LINENO"; then :
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2377 main ()
2379 if (sizeof (($2)))
2380 return 0;
2382 return 0;
2384 _ACEOF
2385 if ac_fn_cxx_try_compile "$LINENO"; then :
2387 else
2388 eval "$3=yes"
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 eval ac_res=\$$3
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396 $as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 } # ac_fn_cxx_check_type
2401 # ac_fn_c_find_intX_t LINENO BITS VAR
2402 # -----------------------------------
2403 # Finds a signed integer type with width BITS, setting cache variable VAR
2404 # accordingly.
2405 ac_fn_c_find_intX_t ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2409 $as_echo_n "checking for int$2_t... " >&6; }
2410 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 eval "$3=no"
2414 for ac_type in int$2_t 'int' 'long int' \
2415 'long long int' 'short int' 'signed char'; do
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $ac_includes_default
2420 main ()
2422 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2423 test_array [0] = 0
2426 return 0;
2428 _ACEOF
2429 if ac_fn_cxx_try_compile "$LINENO"; then :
2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2432 $ac_includes_default
2434 main ()
2436 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2437 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2438 test_array [0] = 0
2441 return 0;
2443 _ACEOF
2444 if ac_fn_cxx_try_compile "$LINENO"; then :
2446 else
2447 case $ac_type in #(
2448 int$2_t) :
2449 eval "$3=yes" ;; #(
2450 *) :
2451 eval "$3=\$ac_type" ;;
2452 esac
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 eval as_val=\$$3
2458 if test "x$as_val" = x""no; then :
2460 else
2461 break
2463 done
2465 eval ac_res=\$$3
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470 } # ac_fn_c_find_intX_t
2472 # ac_fn_cxx_try_link LINENO
2473 # -------------------------
2474 # Try to link conftest.$ac_ext, and return whether this succeeded.
2475 ac_fn_cxx_try_link ()
2477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { { ac_try="$ac_link"
2480 case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483 esac
2484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485 $as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_link") 2>conftest.err
2487 ac_status=$?
2488 if test -s conftest.err; then
2489 grep -v '^ *+' conftest.err >conftest.er1
2490 cat conftest.er1 >&5
2491 mv -f conftest.er1 conftest.err
2493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494 test $ac_status = 0; } && {
2495 test -z "$ac_cxx_werror_flag" ||
2496 test ! -s conftest.err
2497 } && test -s conftest$ac_exeext && {
2498 test "$cross_compiling" = yes ||
2499 $as_test_x conftest$ac_exeext
2500 }; then :
2501 ac_retval=0
2502 else
2503 $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2506 ac_retval=1
2508 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2509 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2510 # interfere with the next link command; also delete a directory that is
2511 # left behind by Apple's compiler. We do this before executing the actions.
2512 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514 return $ac_retval
2516 } # ac_fn_cxx_try_link
2518 # ac_fn_c_find_uintX_t LINENO BITS VAR
2519 # ------------------------------------
2520 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2521 # accordingly.
2522 ac_fn_c_find_uintX_t ()
2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2526 $as_echo_n "checking for uint$2_t... " >&6; }
2527 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 eval "$3=no"
2531 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2532 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2535 $ac_includes_default
2537 main ()
2539 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2540 test_array [0] = 0
2543 return 0;
2545 _ACEOF
2546 if ac_fn_cxx_try_compile "$LINENO"; then :
2547 case $ac_type in #(
2548 uint$2_t) :
2549 eval "$3=yes" ;; #(
2550 *) :
2551 eval "$3=\$ac_type" ;;
2552 esac
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 eval as_val=\$$3
2556 if test "x$as_val" = x""no; then :
2558 else
2559 break
2561 done
2563 eval ac_res=\$$3
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568 } # ac_fn_c_find_uintX_t
2570 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2571 # ------------------------------------------------
2572 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2573 ac_fn_cxx_check_header_preproc ()
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2577 $as_echo_n "checking for $2... " >&6; }
2578 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2583 #include <$2>
2584 _ACEOF
2585 if ac_fn_cxx_try_cpp "$LINENO"; then :
2586 eval "$3=yes"
2587 else
2588 eval "$3=no"
2590 rm -f conftest.err conftest.$ac_ext
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2597 } # ac_fn_cxx_check_header_preproc
2599 # ac_fn_cxx_check_func LINENO FUNC VAR
2600 # ------------------------------------
2601 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2602 ac_fn_cxx_check_func ()
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606 $as_echo_n "checking for $2... " >&6; }
2607 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2612 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2614 #define $2 innocuous_$2
2616 /* System header to define __stub macros and hopefully few prototypes,
2617 which can conflict with char $2 (); below.
2618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2619 <limits.h> exists even on freestanding compilers. */
2621 #ifdef __STDC__
2622 # include <limits.h>
2623 #else
2624 # include <assert.h>
2625 #endif
2627 #undef $2
2629 /* Override any GCC internal prototype to avoid an error.
2630 Use char because int might match the return type of a GCC
2631 builtin and then its argument prototype would still apply. */
2632 #ifdef __cplusplus
2633 extern "C"
2634 #endif
2635 char $2 ();
2636 /* The GNU C library defines this for functions which it implements
2637 to always fail with ENOSYS. Some functions are actually named
2638 something starting with __ and the normal name is an alias. */
2639 #if defined __stub_$2 || defined __stub___$2
2640 choke me
2641 #endif
2644 main ()
2646 return $2 ();
2648 return 0;
2650 _ACEOF
2651 if ac_fn_cxx_try_link "$LINENO"; then :
2652 eval "$3=yes"
2653 else
2654 eval "$3=no"
2656 rm -f core conftest.err conftest.$ac_objext \
2657 conftest$ac_exeext conftest.$ac_ext
2659 eval ac_res=\$$3
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664 } # ac_fn_cxx_check_func
2666 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2667 # --------------------------------------
2668 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2669 ac_fn_cxx_check_decl ()
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 as_decl_name=`echo $2|sed 's/ *(.*//'`
2673 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2675 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2683 main ()
2685 #ifndef $as_decl_name
2686 #ifdef __cplusplus
2687 (void) $as_decl_use;
2688 #else
2689 (void) $as_decl_name;
2690 #endif
2691 #endif
2694 return 0;
2696 _ACEOF
2697 if ac_fn_cxx_try_compile "$LINENO"; then :
2698 eval "$3=yes"
2699 else
2700 eval "$3=no"
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704 eval ac_res=\$$3
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2709 } # ac_fn_cxx_check_decl
2711 # ac_fn_c_try_link LINENO
2712 # -----------------------
2713 # Try to link conftest.$ac_ext, and return whether this succeeded.
2714 ac_fn_c_try_link ()
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 rm -f conftest.$ac_objext conftest$ac_exeext
2718 if { { ac_try="$ac_link"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2724 $as_echo "$ac_try_echo"; } >&5
2725 (eval "$ac_link") 2>conftest.err
2726 ac_status=$?
2727 if test -s conftest.err; then
2728 grep -v '^ *+' conftest.err >conftest.er1
2729 cat conftest.er1 >&5
2730 mv -f conftest.er1 conftest.err
2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; } && {
2734 test -z "$ac_c_werror_flag" ||
2735 test ! -s conftest.err
2736 } && test -s conftest$ac_exeext && {
2737 test "$cross_compiling" = yes ||
2738 $as_test_x conftest$ac_exeext
2739 }; then :
2740 ac_retval=0
2741 else
2742 $as_echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2745 ac_retval=1
2747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2749 # interfere with the next link command; also delete a directory that is
2750 # left behind by Apple's compiler. We do this before executing the actions.
2751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2753 return $ac_retval
2755 } # ac_fn_c_try_link
2757 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2758 # ----------------------------------------------
2759 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2760 ac_fn_c_check_header_preproc ()
2762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2764 $as_echo_n "checking for $2... " >&6; }
2765 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769 /* end confdefs.h. */
2770 #include <$2>
2771 _ACEOF
2772 if ac_fn_c_try_cpp "$LINENO"; then :
2773 eval "$3=yes"
2774 else
2775 eval "$3=no"
2777 rm -f conftest.err conftest.$ac_ext
2779 eval ac_res=\$$3
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2781 $as_echo "$ac_res" >&6; }
2782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2784 } # ac_fn_c_check_header_preproc
2786 # ac_fn_c_check_func LINENO FUNC VAR
2787 # ----------------------------------
2788 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2789 ac_fn_c_check_func ()
2791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2793 $as_echo_n "checking for $2... " >&6; }
2794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2798 /* end confdefs.h. */
2799 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2801 #define $2 innocuous_$2
2803 /* System header to define __stub macros and hopefully few prototypes,
2804 which can conflict with char $2 (); below.
2805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2806 <limits.h> exists even on freestanding compilers. */
2808 #ifdef __STDC__
2809 # include <limits.h>
2810 #else
2811 # include <assert.h>
2812 #endif
2814 #undef $2
2816 /* Override any GCC internal prototype to avoid an error.
2817 Use char because int might match the return type of a GCC
2818 builtin and then its argument prototype would still apply. */
2819 #ifdef __cplusplus
2820 extern "C"
2821 #endif
2822 char $2 ();
2823 /* The GNU C library defines this for functions which it implements
2824 to always fail with ENOSYS. Some functions are actually named
2825 something starting with __ and the normal name is an alias. */
2826 #if defined __stub_$2 || defined __stub___$2
2827 choke me
2828 #endif
2831 main ()
2833 return $2 ();
2835 return 0;
2837 _ACEOF
2838 if ac_fn_c_try_link "$LINENO"; then :
2839 eval "$3=yes"
2840 else
2841 eval "$3=no"
2843 rm -f core conftest.err conftest.$ac_objext \
2844 conftest$ac_exeext conftest.$ac_ext
2846 eval ac_res=\$$3
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2851 } # ac_fn_c_check_func
2852 cat >config.log <<_ACEOF
2853 This file contains any messages produced by compilers while
2854 running configure, to aid debugging if configure makes a mistake.
2856 It was created by $as_me, which was
2857 generated by GNU Autoconf 2.64. Invocation command line was
2859 $ $0 $@
2861 _ACEOF
2862 exec 5>>config.log
2864 cat <<_ASUNAME
2865 ## --------- ##
2866 ## Platform. ##
2867 ## --------- ##
2869 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2870 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2871 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2872 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2873 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2875 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2876 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2878 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2879 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2880 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2881 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2882 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2883 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2884 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2886 _ASUNAME
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 $as_echo "PATH: $as_dir"
2894 done
2895 IFS=$as_save_IFS
2897 } >&5
2899 cat >&5 <<_ACEOF
2902 ## ----------- ##
2903 ## Core tests. ##
2904 ## ----------- ##
2906 _ACEOF
2909 # Keep a trace of the command line.
2910 # Strip out --no-create and --no-recursion so they do not pile up.
2911 # Strip out --silent because we don't want to record it for future runs.
2912 # Also quote any args containing shell meta-characters.
2913 # Make two passes to allow for proper duplicate-argument suppression.
2914 ac_configure_args=
2915 ac_configure_args0=
2916 ac_configure_args1=
2917 ac_must_keep_next=false
2918 for ac_pass in 1 2
2920 for ac_arg
2922 case $ac_arg in
2923 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2925 | -silent | --silent | --silen | --sile | --sil)
2926 continue ;;
2927 *\'*)
2928 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2929 esac
2930 case $ac_pass in
2931 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2933 as_fn_append ac_configure_args1 " '$ac_arg'"
2934 if test $ac_must_keep_next = true; then
2935 ac_must_keep_next=false # Got value, back to normal.
2936 else
2937 case $ac_arg in
2938 *=* | --config-cache | -C | -disable-* | --disable-* \
2939 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2940 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2941 | -with-* | --with-* | -without-* | --without-* | --x)
2942 case "$ac_configure_args0 " in
2943 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2944 esac
2946 -* ) ac_must_keep_next=true ;;
2947 esac
2949 as_fn_append ac_configure_args " '$ac_arg'"
2951 esac
2952 done
2953 done
2954 { ac_configure_args0=; unset ac_configure_args0;}
2955 { ac_configure_args1=; unset ac_configure_args1;}
2957 # When interrupted or exit'd, cleanup temporary files, and complete
2958 # config.log. We remove comments because anyway the quotes in there
2959 # would cause problems or look ugly.
2960 # WARNING: Use '\'' to represent an apostrophe within the trap.
2961 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2962 trap 'exit_status=$?
2963 # Save into config.log some information that might help in debugging.
2965 echo
2967 cat <<\_ASBOX
2968 ## ---------------- ##
2969 ## Cache variables. ##
2970 ## ---------------- ##
2971 _ASBOX
2972 echo
2973 # The following way of writing the cache mishandles newlines in values,
2975 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2976 eval ac_val=\$$ac_var
2977 case $ac_val in #(
2978 *${as_nl}*)
2979 case $ac_var in #(
2980 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2981 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2982 esac
2983 case $ac_var in #(
2984 _ | IFS | as_nl) ;; #(
2985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2986 *) { eval $ac_var=; unset $ac_var;} ;;
2987 esac ;;
2988 esac
2989 done
2990 (set) 2>&1 |
2991 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2992 *${as_nl}ac_space=\ *)
2993 sed -n \
2994 "s/'\''/'\''\\\\'\'''\''/g;
2995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2996 ;; #(
2998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3000 esac |
3001 sort
3003 echo
3005 cat <<\_ASBOX
3006 ## ----------------- ##
3007 ## Output variables. ##
3008 ## ----------------- ##
3009 _ASBOX
3010 echo
3011 for ac_var in $ac_subst_vars
3013 eval ac_val=\$$ac_var
3014 case $ac_val in
3015 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3016 esac
3017 $as_echo "$ac_var='\''$ac_val'\''"
3018 done | sort
3019 echo
3021 if test -n "$ac_subst_files"; then
3022 cat <<\_ASBOX
3023 ## ------------------- ##
3024 ## File substitutions. ##
3025 ## ------------------- ##
3026 _ASBOX
3027 echo
3028 for ac_var in $ac_subst_files
3030 eval ac_val=\$$ac_var
3031 case $ac_val in
3032 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3033 esac
3034 $as_echo "$ac_var='\''$ac_val'\''"
3035 done | sort
3036 echo
3039 if test -s confdefs.h; then
3040 cat <<\_ASBOX
3041 ## ----------- ##
3042 ## confdefs.h. ##
3043 ## ----------- ##
3044 _ASBOX
3045 echo
3046 cat confdefs.h
3047 echo
3049 test "$ac_signal" != 0 &&
3050 $as_echo "$as_me: caught signal $ac_signal"
3051 $as_echo "$as_me: exit $exit_status"
3052 } >&5
3053 rm -f core *.core core.conftest.* &&
3054 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3055 exit $exit_status
3057 for ac_signal in 1 2 13 15; do
3058 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3059 done
3060 ac_signal=0
3062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3063 rm -f -r conftest* confdefs.h
3065 $as_echo "/* confdefs.h */" > confdefs.h
3067 # Predefined preprocessor variables.
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_NAME "$PACKAGE_NAME"
3071 _ACEOF
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3075 _ACEOF
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3079 _ACEOF
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_STRING "$PACKAGE_STRING"
3083 _ACEOF
3085 cat >>confdefs.h <<_ACEOF
3086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3087 _ACEOF
3089 cat >>confdefs.h <<_ACEOF
3090 #define PACKAGE_URL "$PACKAGE_URL"
3091 _ACEOF
3094 # Let the site file select an alternate cache file if it wants to.
3095 # Prefer an explicitly selected file to automatically selected ones.
3096 ac_site_file1=NONE
3097 ac_site_file2=NONE
3098 if test -n "$CONFIG_SITE"; then
3099 ac_site_file1=$CONFIG_SITE
3100 elif test "x$prefix" != xNONE; then
3101 ac_site_file1=$prefix/share/config.site
3102 ac_site_file2=$prefix/etc/config.site
3103 else
3104 ac_site_file1=$ac_default_prefix/share/config.site
3105 ac_site_file2=$ac_default_prefix/etc/config.site
3107 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3109 test "x$ac_site_file" = xNONE && continue
3110 if test -r "$ac_site_file"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3112 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3113 sed 's/^/| /' "$ac_site_file" >&5
3114 . "$ac_site_file"
3116 done
3118 if test -r "$cache_file"; then
3119 # Some versions of bash will fail to source /dev/null (special
3120 # files actually), so we avoid doing that.
3121 if test -f "$cache_file"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3123 $as_echo "$as_me: loading cache $cache_file" >&6;}
3124 case $cache_file in
3125 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3126 *) . "./$cache_file";;
3127 esac
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3131 $as_echo "$as_me: creating cache $cache_file" >&6;}
3132 >$cache_file
3135 # Check that the precious variables saved in the cache have kept the same
3136 # value.
3137 ac_cache_corrupted=false
3138 for ac_var in $ac_precious_vars; do
3139 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3140 eval ac_new_set=\$ac_env_${ac_var}_set
3141 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3142 eval ac_new_val=\$ac_env_${ac_var}_value
3143 case $ac_old_set,$ac_new_set in
3144 set,)
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3146 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3147 ac_cache_corrupted=: ;;
3148 ,set)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3150 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3151 ac_cache_corrupted=: ;;
3152 ,);;
3154 if test "x$ac_old_val" != "x$ac_new_val"; then
3155 # differences in whitespace do not lead to failure.
3156 ac_old_val_w=`echo x $ac_old_val`
3157 ac_new_val_w=`echo x $ac_new_val`
3158 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3160 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3161 ac_cache_corrupted=:
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3164 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3165 eval $ac_var=\$ac_old_val
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3168 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3170 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3171 fi;;
3172 esac
3173 # Pass precious variables to config.status.
3174 if test "$ac_new_set" = set; then
3175 case $ac_new_val in
3176 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3177 *) ac_arg=$ac_var=$ac_new_val ;;
3178 esac
3179 case " $ac_configure_args " in
3180 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3181 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3182 esac
3184 done
3185 if $ac_cache_corrupted; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3189 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3190 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3192 ## -------------------- ##
3193 ## Main body of script. ##
3194 ## -------------------- ##
3196 ac_ext=c
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3210 gcc_version=`cat $srcdir/BASE-VER`
3212 # Determine the host, build, and target systems
3213 ac_aux_dir=
3214 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3215 for ac_t in install-sh install.sh shtool; do
3216 if test -f "$ac_dir/$ac_t"; then
3217 ac_aux_dir=$ac_dir
3218 ac_install_sh="$ac_aux_dir/$ac_t -c"
3219 break 2
3221 done
3222 done
3223 if test -z "$ac_aux_dir"; then
3224 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3227 # These three variables are undocumented and unsupported,
3228 # and are intended to be withdrawn in a future Autoconf release.
3229 # They can cause serious problems if a builder's source tree is in a directory
3230 # whose full name contains unusual characters.
3231 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3232 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3233 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3236 # Make sure we can run config.sub.
3237 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3238 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3241 $as_echo_n "checking build system type... " >&6; }
3242 if test "${ac_cv_build+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 ac_build_alias=$build_alias
3246 test "x$ac_build_alias" = x &&
3247 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3248 test "x$ac_build_alias" = x &&
3249 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3250 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3251 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3255 $as_echo "$ac_cv_build" >&6; }
3256 case $ac_cv_build in
3257 *-*-*) ;;
3258 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3259 esac
3260 build=$ac_cv_build
3261 ac_save_IFS=$IFS; IFS='-'
3262 set x $ac_cv_build
3263 shift
3264 build_cpu=$1
3265 build_vendor=$2
3266 shift; shift
3267 # Remember, the first character of IFS is used to create $*,
3268 # except with old shells:
3269 build_os=$*
3270 IFS=$ac_save_IFS
3271 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3275 $as_echo_n "checking host system type... " >&6; }
3276 if test "${ac_cv_host+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if test "x$host_alias" = x; then
3280 ac_cv_host=$ac_cv_build
3281 else
3282 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3283 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3288 $as_echo "$ac_cv_host" >&6; }
3289 case $ac_cv_host in
3290 *-*-*) ;;
3291 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3292 esac
3293 host=$ac_cv_host
3294 ac_save_IFS=$IFS; IFS='-'
3295 set x $ac_cv_host
3296 shift
3297 host_cpu=$1
3298 host_vendor=$2
3299 shift; shift
3300 # Remember, the first character of IFS is used to create $*,
3301 # except with old shells:
3302 host_os=$*
3303 IFS=$ac_save_IFS
3304 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3308 $as_echo_n "checking target system type... " >&6; }
3309 if test "${ac_cv_target+set}" = set; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 if test "x$target_alias" = x; then
3313 ac_cv_target=$ac_cv_host
3314 else
3315 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3316 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3321 $as_echo "$ac_cv_target" >&6; }
3322 case $ac_cv_target in
3323 *-*-*) ;;
3324 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3325 esac
3326 target=$ac_cv_target
3327 ac_save_IFS=$IFS; IFS='-'
3328 set x $ac_cv_target
3329 shift
3330 target_cpu=$1
3331 target_vendor=$2
3332 shift; shift
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3335 target_os=$*
3336 IFS=$ac_save_IFS
3337 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3340 # The aliases save the names the user supplied, while $host etc.
3341 # will get canonicalized.
3342 test -n "$target_alias" &&
3343 test "$program_prefix$program_suffix$program_transform_name" = \
3344 NONENONEs,x,x, &&
3345 program_prefix=${target_alias}-
3347 # Determine the noncanonical host name, for Ada.
3348 case ${build_alias} in
3349 "") build_noncanonical=${build} ;;
3350 *) build_noncanonical=${build_alias} ;;
3351 esac
3353 case ${host_alias} in
3354 "") host_noncanonical=${build_noncanonical} ;;
3355 *) host_noncanonical=${host_alias} ;;
3356 esac
3361 # Determine the noncanonical target name, for directory use.
3362 case ${target_alias} in
3363 "") target_noncanonical=${host_noncanonical} ;;
3364 *) target_noncanonical=${target_alias} ;;
3365 esac
3370 # Used for constructing correct paths for offload compilers.
3371 real_target_noncanonical=${target_noncanonical}
3372 accel_dir_suffix=
3374 # Determine the target- and build-specific subdirectories
3376 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3377 # have matching libraries, they should use host libraries: Makefile.tpl
3378 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3379 # However, they still use the build modules, because the corresponding
3380 # host modules (e.g. bison) are only built for the host when bootstrap
3381 # finishes. So:
3382 # - build_subdir is where we find build modules, and never changes.
3383 # - build_libsubdir is where we find build libraries, and can be overridden.
3385 # Prefix 'build-' so this never conflicts with target_subdir.
3386 build_subdir="build-${build_noncanonical}"
3388 # Check whether --with-build-libsubdir was given.
3389 if test "${with_build_libsubdir+set}" = set; then :
3390 withval=$with_build_libsubdir; build_libsubdir="$withval"
3391 else
3392 build_libsubdir="$build_subdir"
3395 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3396 if ( test $srcdir = . && test -d gcc ) \
3397 || test -d $srcdir/../host-${host_noncanonical}; then
3398 host_subdir="host-${host_noncanonical}"
3399 else
3400 host_subdir=.
3402 # No prefix.
3403 target_subdir=${target_noncanonical}
3406 # Set program_transform_name
3407 test "$program_prefix" != NONE &&
3408 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3409 # Use a double $ so make ignores it.
3410 test "$program_suffix" != NONE &&
3411 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3412 # Double any \ or $.
3413 # By default was `s,x,x', remove it if useless.
3414 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3415 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3418 # Check for bogus environment variables.
3419 # Test if LIBRARY_PATH contains the notation for the current directory
3420 # since this would lead to problems installing/building glibc.
3421 # LIBRARY_PATH contains the current directory if one of the following
3422 # is true:
3423 # - one of the terminals (":" and ";") is the first or last sign
3424 # - two terminals occur directly after each other
3425 # - the path contains an element with a dot in it
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3427 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3428 case ${LIBRARY_PATH} in
3429 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3430 library_path_setting="contains current directory"
3433 library_path_setting="ok"
3435 esac
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3437 $as_echo "$library_path_setting" >&6; }
3438 if test "$library_path_setting" != "ok"; then
3439 as_fn_error "
3440 *** LIBRARY_PATH shouldn't contain the current directory when
3441 *** building gcc. Please change the environment variable
3442 *** and run configure again." "$LINENO" 5
3445 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3446 # since this would lead to problems installing/building glibc.
3447 # GCC_EXEC_PREFIX contains the current directory if one of the following
3448 # is true:
3449 # - one of the terminals (":" and ";") is the first or last sign
3450 # - two terminals occur directly after each other
3451 # - the path contains an element with a dot in it
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3453 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3454 case ${GCC_EXEC_PREFIX} in
3455 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3456 gcc_exec_prefix_setting="contains current directory"
3459 gcc_exec_prefix_setting="ok"
3461 esac
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3463 $as_echo "$gcc_exec_prefix_setting" >&6; }
3464 if test "$gcc_exec_prefix_setting" != "ok"; then
3465 as_fn_error "
3466 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3467 *** building gcc. Please change the environment variable
3468 *** and run configure again." "$LINENO" 5
3471 # -----------
3472 # Directories
3473 # -----------
3475 # Specify the local prefix
3476 local_prefix=
3478 # Check whether --with-local-prefix was given.
3479 if test "${with_local_prefix+set}" = set; then :
3480 withval=$with_local_prefix; case "${withval}" in
3481 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3482 no) ;;
3483 *) local_prefix=$with_local_prefix ;;
3484 esac
3488 # Default local prefix if it is empty
3489 if test x$local_prefix = x; then
3490 local_prefix=/usr/local
3494 # Check whether --with-native-system-header-dir was given.
3495 if test "${with_native_system_header_dir+set}" = set; then :
3496 withval=$with_native_system_header_dir;
3497 case ${with_native_system_header_dir} in
3498 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3499 /* | [A-Za-z]:[\\/]*) ;;
3500 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3501 esac
3502 configured_native_system_header_dir="${withval}"
3504 else
3505 configured_native_system_header_dir=
3510 # Check whether --with-build-sysroot was given.
3511 if test "${with_build_sysroot+set}" = set; then :
3512 withval=$with_build_sysroot; if test x"$withval" != x ; then
3513 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3515 else
3516 SYSROOT_CFLAGS_FOR_TARGET=
3521 if test "x$prefix" = xNONE; then
3522 test_prefix=/usr/local
3523 else
3524 test_prefix=$prefix
3526 if test "x$exec_prefix" = xNONE; then
3527 test_exec_prefix=$test_prefix
3528 else
3529 test_exec_prefix=$exec_prefix
3533 # Check whether --with-sysroot was given.
3534 if test "${with_sysroot+set}" = set; then :
3535 withval=$with_sysroot;
3536 case ${with_sysroot} in
3537 /) ;;
3538 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3539 esac
3540 case ${with_sysroot} in
3541 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3542 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3543 esac
3545 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3546 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3548 case ${TARGET_SYSTEM_ROOT} in
3549 "${test_prefix}"|"${test_prefix}/"*|\
3550 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3551 '${prefix}'|'${prefix}/'*|\
3552 '${exec_prefix}'|'${exec_prefix}/'*)
3553 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3554 TARGET_SYSTEM_ROOT_DEFINE="$t"
3556 esac
3558 else
3560 TARGET_SYSTEM_ROOT=
3561 TARGET_SYSTEM_ROOT_DEFINE=
3562 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3570 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3571 # passed in by the toplevel make and thus we'd get different behavior
3572 # depending on where we built the sources.
3573 gcc_gxx_include_dir=
3574 # Specify the g++ header file directory
3576 # Check whether --with-gxx-include-dir was given.
3577 if test "${with_gxx_include_dir+set}" = set; then :
3578 withval=$with_gxx_include_dir; case "${withval}" in
3579 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3580 no) ;;
3581 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3582 esac
3586 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3587 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3588 # relative to the sysroot.
3589 gcc_gxx_include_dir_add_sysroot=0
3591 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3592 if test x${gcc_gxx_include_dir} = x; then
3593 if test x${enable_version_specific_runtime_libs} = xyes; then
3594 gcc_gxx_include_dir='${libsubdir}/include/c++'
3595 else
3596 libstdcxx_incdir='include/c++/$(version)'
3597 if test x$host != x$target; then
3598 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3600 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3602 elif test "${with_sysroot+set}" = set; then
3603 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3604 if test "${gcc_gxx_without_sysroot}"; then
3605 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3606 gcc_gxx_include_dir_add_sysroot=1
3611 # Check whether --with-cpp_install_dir was given.
3612 if test "${with_cpp_install_dir+set}" = set; then :
3613 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3614 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3615 elif test x$withval != xno; then
3616 cpp_install_dir=$withval
3621 # We would like to our source tree to be readonly. However when releases or
3622 # pre-releases are generated, the flex/bison generated files as well as the
3623 # various formats of manuals need to be included along with the rest of the
3624 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3625 # just that.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3628 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3629 # Check whether --enable-generated-files-in-srcdir was given.
3630 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3631 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3632 else
3633 generated_files_in_srcdir=no
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3638 $as_echo "$generated_files_in_srcdir" >&6; }
3640 if test "$generated_files_in_srcdir" = "yes"; then
3641 GENINSRC=''
3642 else
3643 GENINSRC='#'
3647 # -------------------
3648 # Find default linker
3649 # -------------------
3651 # With GNU ld
3653 # Check whether --with-gnu-ld was given.
3654 if test "${with_gnu_ld+set}" = set; then :
3655 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3656 else
3657 gnu_ld_flag=no
3661 case $target in
3662 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3663 *) ld64_flag=no;;
3664 esac
3666 # With pre-defined ld
3668 # Check whether --with-ld was given.
3669 if test "${with_ld+set}" = set; then :
3670 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3673 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3674 if test ! -x "$DEFAULT_LINKER"; then
3675 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3676 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3677 gnu_ld_flag=yes
3678 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3679 ld64_flag=yes
3682 cat >>confdefs.h <<_ACEOF
3683 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3684 _ACEOF
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3689 $as_echo_n "checking whether a default linker was specified... " >&6; }
3690 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3691 if test x"$gnu_ld_flag" = x"no"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3693 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3694 else
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3696 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3703 # With demangler in GNU ld
3705 # Check whether --with-demangler-in-ld was given.
3706 if test "${with_demangler_in_ld+set}" = set; then :
3707 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3708 else
3709 demangler_in_ld=yes
3713 # ----------------------
3714 # Find default assembler
3715 # ----------------------
3717 # With GNU as
3719 # Check whether --with-gnu-as was given.
3720 if test "${with_gnu_as+set}" = set; then :
3721 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3722 else
3723 gas_flag=no
3728 # Check whether --with-as was given.
3729 if test "${with_as+set}" = set; then :
3730 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3733 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3734 if test ! -x "$DEFAULT_ASSEMBLER"; then
3735 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3736 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3737 gas_flag=yes
3740 cat >>confdefs.h <<_ACEOF
3741 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3742 _ACEOF
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3747 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3748 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3749 if test x"$gas_flag" = x"no"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3751 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3752 else
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3754 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3761 # ---------------
3762 # Find C compiler
3763 # ---------------
3765 # If a non-executable a.out is present (e.g. created by GNU as above even if
3766 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3767 # file, even when creating an executable, so an execution test fails.
3768 # Remove possible default executable files to avoid this.
3770 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3771 # Autoconf includes it.
3772 rm -f a.out a.exe b.out
3774 # Find the native compiler
3775 ac_ext=c
3776 ac_cpp='$CPP $CPPFLAGS'
3777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 if test -n "$ac_tool_prefix"; then
3781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3784 $as_echo_n "checking for $ac_word... " >&6; }
3785 if test "${ac_cv_prog_CC+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3787 else
3788 if test -n "$CC"; then
3789 ac_cv_prog_CC="$CC" # Let the user override the test.
3790 else
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 break 2
3802 done
3803 done
3804 IFS=$as_save_IFS
3808 CC=$ac_cv_prog_CC
3809 if test -n "$CC"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3811 $as_echo "$CC" >&6; }
3812 else
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3819 if test -z "$ac_cv_prog_CC"; then
3820 ac_ct_CC=$CC
3821 # Extract the first word of "gcc", so it can be a program name with args.
3822 set dummy gcc; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 if test -n "$ac_ct_CC"; then
3829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838 ac_cv_prog_ac_ct_CC="gcc"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3842 done
3843 done
3844 IFS=$as_save_IFS
3848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3849 if test -n "$ac_ct_CC"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3851 $as_echo "$ac_ct_CC" >&6; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3857 if test "x$ac_ct_CC" = x; then
3858 CC=""
3859 else
3860 case $cross_compiling:$ac_tool_warned in
3861 yes:)
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864 ac_tool_warned=yes ;;
3865 esac
3866 CC=$ac_ct_CC
3868 else
3869 CC="$ac_cv_prog_CC"
3872 if test -z "$CC"; then
3873 if test -n "$ac_tool_prefix"; then
3874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3875 set dummy ${ac_tool_prefix}cc; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if test "${ac_cv_prog_CC+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 if test -n "$CC"; then
3882 ac_cv_prog_CC="$CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_prog_CC="${ac_tool_prefix}cc"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3895 done
3896 done
3897 IFS=$as_save_IFS
3901 CC=$ac_cv_prog_CC
3902 if test -n "$CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3904 $as_echo "$CC" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3913 if test -z "$CC"; then
3914 # Extract the first word of "cc", so it can be a program name with args.
3915 set dummy cc; ac_word=$2
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 $as_echo_n "checking for $ac_word... " >&6; }
3918 if test "${ac_cv_prog_CC+set}" = set; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 if test -n "$CC"; then
3922 ac_cv_prog_CC="$CC" # Let the user override the test.
3923 else
3924 ac_prog_rejected=no
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3933 ac_prog_rejected=yes
3934 continue
3936 ac_cv_prog_CC="cc"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3940 done
3941 done
3942 IFS=$as_save_IFS
3944 if test $ac_prog_rejected = yes; then
3945 # We found a bogon in the path, so make sure we never use it.
3946 set dummy $ac_cv_prog_CC
3947 shift
3948 if test $# != 0; then
3949 # We chose a different compiler from the bogus one.
3950 # However, it has the same basename, so the bogon will be chosen
3951 # first if we set CC to just the basename; use the full file name.
3952 shift
3953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3958 CC=$ac_cv_prog_CC
3959 if test -n "$CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3961 $as_echo "$CC" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3969 if test -z "$CC"; then
3970 if test -n "$ac_tool_prefix"; then
3971 for ac_prog in cl.exe
3973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_prog_CC+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -n "$CC"; then
3981 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3994 done
3995 done
3996 IFS=$as_save_IFS
4000 CC=$ac_cv_prog_CC
4001 if test -n "$CC"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 $as_echo "$CC" >&6; }
4004 else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4010 test -n "$CC" && break
4011 done
4013 if test -z "$CC"; then
4014 ac_ct_CC=$CC
4015 for ac_prog in cl.exe
4017 # Extract the first word of "$ac_prog", so it can be a program name with args.
4018 set dummy $ac_prog; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -n "$ac_ct_CC"; then
4025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4034 ac_cv_prog_ac_ct_CC="$ac_prog"
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4038 done
4039 done
4040 IFS=$as_save_IFS
4044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4045 if test -n "$ac_ct_CC"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4047 $as_echo "$ac_ct_CC" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4054 test -n "$ac_ct_CC" && break
4055 done
4057 if test "x$ac_ct_CC" = x; then
4058 CC=""
4059 else
4060 case $cross_compiling:$ac_tool_warned in
4061 yes:)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064 ac_tool_warned=yes ;;
4065 esac
4066 CC=$ac_ct_CC
4073 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error "no acceptable C compiler found in \$PATH
4076 See \`config.log' for more details." "$LINENO" 5; }
4078 # Provide some information about the compiler.
4079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4080 set X $ac_compile
4081 ac_compiler=$2
4082 for ac_option in --version -v -V -qversion; do
4083 { { ac_try="$ac_compiler $ac_option >&5"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4091 ac_status=$?
4092 if test -s conftest.err; then
4093 sed '10a\
4094 ... rest of stderr output deleted ...
4095 10q' conftest.err >conftest.er1
4096 cat conftest.er1 >&5
4097 rm -f conftest.er1 conftest.err
4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100 test $ac_status = 0; }
4101 done
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 main ()
4111 return 0;
4113 _ACEOF
4114 ac_clean_files_save=$ac_clean_files
4115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4116 # Try to create an executable without -o first, disregard a.out.
4117 # It will help us diagnose broken compilers, and finding out an intuition
4118 # of exeext.
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4120 $as_echo_n "checking for C compiler default output file name... " >&6; }
4121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4123 # The possible output files:
4124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4126 ac_rmfiles=
4127 for ac_file in $ac_files
4129 case $ac_file in
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4132 esac
4133 done
4134 rm -f $ac_rmfiles
4136 if { { ac_try="$ac_link_default"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142 $as_echo "$ac_try_echo"; } >&5
4143 (eval "$ac_link_default") 2>&5
4144 ac_status=$?
4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }; then :
4147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4149 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4150 # so that the user can short-circuit this test for compilers unknown to
4151 # Autoconf.
4152 for ac_file in $ac_files ''
4154 test -f "$ac_file" || continue
4155 case $ac_file in
4156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4158 [ab].out )
4159 # We found the default executable, but exeext='' is most
4160 # certainly right.
4161 break;;
4162 *.* )
4163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4164 then :; else
4165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4167 # We set ac_cv_exeext here because the later test for it is not
4168 # safe: cross compilers may not add the suffix if given an `-o'
4169 # argument, so we may need to know it at that point already.
4170 # Even if this section looks crufty: it has the advantage of
4171 # actually working.
4172 break;;
4174 break;;
4175 esac
4176 done
4177 test "$ac_cv_exeext" = no && ac_cv_exeext=
4179 else
4180 ac_file=''
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4183 $as_echo "$ac_file" >&6; }
4184 if test -z "$ac_file"; then :
4185 $as_echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4190 { as_fn_set_status 77
4191 as_fn_error "C compiler cannot create executables
4192 See \`config.log' for more details." "$LINENO" 5; }; }
4194 ac_exeext=$ac_cv_exeext
4196 # Check that the compiler produces executables we can run. If not, either
4197 # the compiler is broken, or we cross compile.
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4199 $as_echo_n "checking whether the C compiler works... " >&6; }
4200 # If not cross compiling, check that we can run a simple program.
4201 if test "$cross_compiling" != yes; then
4202 if { ac_try='./$ac_file'
4203 { { case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_try") 2>&5
4210 ac_status=$?
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; }; then
4213 cross_compiling=no
4214 else
4215 if test "$cross_compiling" = maybe; then
4216 cross_compiling=yes
4217 else
4218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220 as_fn_error "cannot run C compiled programs.
4221 If you meant to cross compile, use \`--host'.
4222 See \`config.log' for more details." "$LINENO" 5; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4227 $as_echo "yes" >&6; }
4229 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4230 ac_clean_files=$ac_clean_files_save
4231 # Check that the compiler produces executables we can run. If not, either
4232 # the compiler is broken, or we cross compile.
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4234 $as_echo_n "checking whether we are cross compiling... " >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4236 $as_echo "$cross_compiling" >&6; }
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4239 $as_echo_n "checking for suffix of executables... " >&6; }
4240 if { { ac_try="$ac_link"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_link") 2>&5
4248 ac_status=$?
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }; then :
4251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4253 # work properly (i.e., refer to `conftest.exe'), while it won't with
4254 # `rm'.
4255 for ac_file in conftest.exe conftest conftest.*; do
4256 test -f "$ac_file" || continue
4257 case $ac_file in
4258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4260 break;;
4261 * ) break;;
4262 esac
4263 done
4264 else
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error "cannot compute suffix of executables: cannot compile and link
4268 See \`config.log' for more details." "$LINENO" 5; }
4270 rm -f conftest$ac_cv_exeext
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4272 $as_echo "$ac_cv_exeext" >&6; }
4274 rm -f conftest.$ac_ext
4275 EXEEXT=$ac_cv_exeext
4276 ac_exeext=$EXEEXT
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4278 $as_echo_n "checking for suffix of object files... " >&6; }
4279 if test "${ac_cv_objext+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4286 main ()
4290 return 0;
4292 _ACEOF
4293 rm -f conftest.o conftest.obj
4294 if { { ac_try="$ac_compile"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_compile") 2>&5
4302 ac_status=$?
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; }; then :
4305 for ac_file in conftest.o conftest.obj conftest.*; do
4306 test -f "$ac_file" || continue;
4307 case $ac_file in
4308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4310 break;;
4311 esac
4312 done
4313 else
4314 $as_echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4319 as_fn_error "cannot compute suffix of object files: cannot compile
4320 See \`config.log' for more details." "$LINENO" 5; }
4322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4325 $as_echo "$ac_cv_objext" >&6; }
4326 OBJEXT=$ac_cv_objext
4327 ac_objext=$OBJEXT
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4329 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4330 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4337 main ()
4339 #ifndef __GNUC__
4340 choke me
4341 #endif
4344 return 0;
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_compiler_gnu=yes
4349 else
4350 ac_compiler_gnu=no
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4357 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4358 if test $ac_compiler_gnu = yes; then
4359 GCC=yes
4360 else
4361 GCC=
4363 ac_test_CFLAGS=${CFLAGS+set}
4364 ac_save_CFLAGS=$CFLAGS
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4366 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4367 if test "${ac_cv_prog_cc_g+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 ac_save_c_werror_flag=$ac_c_werror_flag
4371 ac_c_werror_flag=yes
4372 ac_cv_prog_cc_g=no
4373 CFLAGS="-g"
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4378 main ()
4382 return 0;
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4386 ac_cv_prog_cc_g=yes
4387 else
4388 CFLAGS=""
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4393 main ()
4397 return 0;
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4402 else
4403 ac_c_werror_flag=$ac_save_c_werror_flag
4404 CFLAGS="-g"
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4409 main ()
4413 return 0;
4415 _ACEOF
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_prog_cc_g=yes
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_c_werror_flag=$ac_save_c_werror_flag
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4427 $as_echo "$ac_cv_prog_cc_g" >&6; }
4428 if test "$ac_test_CFLAGS" = set; then
4429 CFLAGS=$ac_save_CFLAGS
4430 elif test $ac_cv_prog_cc_g = yes; then
4431 if test "$GCC" = yes; then
4432 CFLAGS="-g -O2"
4433 else
4434 CFLAGS="-g"
4436 else
4437 if test "$GCC" = yes; then
4438 CFLAGS="-O2"
4439 else
4440 CFLAGS=
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4444 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4445 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 ac_cv_prog_cc_c89=no
4449 ac_save_CC=$CC
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <stdarg.h>
4453 #include <stdio.h>
4454 #include <sys/types.h>
4455 #include <sys/stat.h>
4456 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4457 struct buf { int x; };
4458 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4459 static char *e (p, i)
4460 char **p;
4461 int i;
4463 return p[i];
4465 static char *f (char * (*g) (char **, int), char **p, ...)
4467 char *s;
4468 va_list v;
4469 va_start (v,p);
4470 s = g (p, va_arg (v,int));
4471 va_end (v);
4472 return s;
4475 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4476 function prototypes and stuff, but not '\xHH' hex character constants.
4477 These don't provoke an error unfortunately, instead are silently treated
4478 as 'x'. The following induces an error, until -std is added to get
4479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4480 array size at least. It's necessary to write '\x00'==0 to get something
4481 that's true only with -std. */
4482 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4484 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4485 inside strings and character constants. */
4486 #define FOO(x) 'x'
4487 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4489 int test (int i, double x);
4490 struct s1 {int (*f) (int a);};
4491 struct s2 {int (*f) (double a);};
4492 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4493 int argc;
4494 char **argv;
4496 main ()
4498 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4500 return 0;
4502 _ACEOF
4503 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4504 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4506 CC="$ac_save_CC $ac_arg"
4507 if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_cv_prog_cc_c89=$ac_arg
4510 rm -f core conftest.err conftest.$ac_objext
4511 test "x$ac_cv_prog_cc_c89" != "xno" && break
4512 done
4513 rm -f conftest.$ac_ext
4514 CC=$ac_save_CC
4517 # AC_CACHE_VAL
4518 case "x$ac_cv_prog_cc_c89" in
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4521 $as_echo "none needed" >&6; } ;;
4522 xno)
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4524 $as_echo "unsupported" >&6; } ;;
4526 CC="$CC $ac_cv_prog_cc_c89"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4528 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4529 esac
4530 if test "x$ac_cv_prog_cc_c89" != xno; then :
4534 ac_ext=c
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 ac_ext=cpp
4541 ac_cpp='$CXXCPP $CPPFLAGS'
4542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4545 if test -z "$CXX"; then
4546 if test -n "$CCC"; then
4547 CXX=$CCC
4548 else
4549 if test -n "$ac_tool_prefix"; then
4550 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_CXX+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if test -n "$CXX"; then
4560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4573 done
4574 done
4575 IFS=$as_save_IFS
4579 CXX=$ac_cv_prog_CXX
4580 if test -n "$CXX"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4582 $as_echo "$CXX" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4589 test -n "$CXX" && break
4590 done
4592 if test -z "$CXX"; then
4593 ac_ct_CXX=$CXX
4594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4596 # Extract the first word of "$ac_prog", so it can be a program name with args.
4597 set dummy $ac_prog; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test -n "$ac_ct_CXX"; then
4604 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_ac_ct_CXX="$ac_prog"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4623 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4624 if test -n "$ac_ct_CXX"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4626 $as_echo "$ac_ct_CXX" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$ac_ct_CXX" && break
4634 done
4636 if test "x$ac_ct_CXX" = x; then
4637 CXX="g++"
4638 else
4639 case $cross_compiling:$ac_tool_warned in
4640 yes:)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4644 esac
4645 CXX=$ac_ct_CXX
4651 # Provide some information about the compiler.
4652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4653 set X $ac_compile
4654 ac_compiler=$2
4655 for ac_option in --version -v -V -qversion; do
4656 { { ac_try="$ac_compiler $ac_option >&5"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662 $as_echo "$ac_try_echo"; } >&5
4663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4664 ac_status=$?
4665 if test -s conftest.err; then
4666 sed '10a\
4667 ... rest of stderr output deleted ...
4668 10q' conftest.err >conftest.er1
4669 cat conftest.er1 >&5
4670 rm -f conftest.er1 conftest.err
4672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4673 test $ac_status = 0; }
4674 done
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4677 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4678 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4685 main ()
4687 #ifndef __GNUC__
4688 choke me
4689 #endif
4692 return 0;
4694 _ACEOF
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4696 ac_compiler_gnu=yes
4697 else
4698 ac_compiler_gnu=no
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4705 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4706 if test $ac_compiler_gnu = yes; then
4707 GXX=yes
4708 else
4709 GXX=
4711 ac_test_CXXFLAGS=${CXXFLAGS+set}
4712 ac_save_CXXFLAGS=$CXXFLAGS
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4714 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4715 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4719 ac_cxx_werror_flag=yes
4720 ac_cv_prog_cxx_g=no
4721 CXXFLAGS="-g"
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4726 main ()
4730 return 0;
4732 _ACEOF
4733 if ac_fn_cxx_try_compile "$LINENO"; then :
4734 ac_cv_prog_cxx_g=yes
4735 else
4736 CXXFLAGS=""
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4741 main ()
4745 return 0;
4747 _ACEOF
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4750 else
4751 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4752 CXXFLAGS="-g"
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4757 main ()
4761 return 0;
4763 _ACEOF
4764 if ac_fn_cxx_try_compile "$LINENO"; then :
4765 ac_cv_prog_cxx_g=yes
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4775 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4776 if test "$ac_test_CXXFLAGS" = set; then
4777 CXXFLAGS=$ac_save_CXXFLAGS
4778 elif test $ac_cv_prog_cxx_g = yes; then
4779 if test "$GXX" = yes; then
4780 CXXFLAGS="-g -O2"
4781 else
4782 CXXFLAGS="-g"
4784 else
4785 if test "$GXX" = yes; then
4786 CXXFLAGS="-O2"
4787 else
4788 CXXFLAGS=
4791 ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800 if test -n "$ac_tool_prefix"; then
4801 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4802 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$GNATBIND"; then
4809 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4822 done
4823 done
4824 IFS=$as_save_IFS
4828 GNATBIND=$ac_cv_prog_GNATBIND
4829 if test -n "$GNATBIND"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4831 $as_echo "$GNATBIND" >&6; }
4832 else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4839 if test -z "$ac_cv_prog_GNATBIND"; then
4840 ac_ct_GNATBIND=$GNATBIND
4841 # Extract the first word of "gnatbind", so it can be a program name with args.
4842 set dummy gnatbind; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_GNATBIND"; then
4849 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4869 if test -n "$ac_ct_GNATBIND"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4871 $as_echo "$ac_ct_GNATBIND" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4877 if test "x$ac_ct_GNATBIND" = x; then
4878 GNATBIND="no"
4879 else
4880 case $cross_compiling:$ac_tool_warned in
4881 yes:)
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4885 esac
4886 GNATBIND=$ac_ct_GNATBIND
4888 else
4889 GNATBIND="$ac_cv_prog_GNATBIND"
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$GNATMAKE"; then
4901 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4920 GNATMAKE=$ac_cv_prog_GNATMAKE
4921 if test -n "$GNATMAKE"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4923 $as_echo "$GNATMAKE" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4931 if test -z "$ac_cv_prog_GNATMAKE"; then
4932 ac_ct_GNATMAKE=$GNATMAKE
4933 # Extract the first word of "gnatmake", so it can be a program name with args.
4934 set dummy gnatmake; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$ac_ct_GNATMAKE"; then
4941 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4960 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4961 if test -n "$ac_ct_GNATMAKE"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4963 $as_echo "$ac_ct_GNATMAKE" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4969 if test "x$ac_ct_GNATMAKE" = x; then
4970 GNATMAKE="no"
4971 else
4972 case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978 GNATMAKE=$ac_ct_GNATMAKE
4980 else
4981 GNATMAKE="$ac_cv_prog_GNATMAKE"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4985 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4986 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 cat >conftest.adb <<EOF
4990 procedure conftest is begin null; end conftest;
4992 acx_cv_cc_gcc_supports_ada=no
4993 # There is a bug in old released versions of GCC which causes the
4994 # driver to exit successfully when the appropriate language module
4995 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4996 # Therefore we must check for the error message as well as an
4997 # unsuccessful exit.
4998 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4999 # given a .adb file, but produce no object file. So we must check
5000 # if an object file was really produced to guard against this.
5001 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5002 if test x"$errors" = x && test -f conftest.$ac_objext; then
5003 acx_cv_cc_gcc_supports_ada=yes
5005 rm -f conftest.*
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5008 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5010 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5011 have_gnat=yes
5012 else
5013 have_gnat=no
5017 # Do configure tests with the C++ compiler, since that's what we build with.
5018 ac_ext=cpp
5019 ac_cpp='$CXXCPP $CPPFLAGS'
5020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5025 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5026 # optimizations to be activated explicitly by the toplevel.
5027 case "$CC" in
5028 */prev-gcc/xgcc*) ;;
5029 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5030 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5031 esac
5035 # Determine PICFLAG for target gnatlib.
5040 case "${target}" in
5041 # PIC is the default on some targets or must not be used.
5042 *-*-darwin*)
5043 # For darwin, common symbols are not allowed in MH_DYLIB files
5044 case "${CFLAGS}" in
5045 # If we are using a compiler supporting mdynamic-no-pic
5046 # and the option has been tested as safe to add, then cancel
5047 # it here, since the code generated is incompatible with shared
5048 # libs.
5049 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5050 *) PICFLAG_FOR_TARGET=-fno-common ;;
5051 esac
5053 alpha*-dec-osf5*)
5054 # PIC is the default.
5056 hppa*64*-*-hpux*)
5057 # PIC is the default for 64-bit PA HP-UX.
5059 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5061 i[34567]86-*-mingw* | x86_64-*-mingw*)
5063 i[34567]86-*-interix[3-9]*)
5064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5065 # Instead, we relocate shared libraries at runtime.
5067 i[34567]86-*-nto-qnx*)
5068 # QNX uses GNU C++, but need to define -shared option too, otherwise
5069 # it will coredump.
5070 PICFLAG_FOR_TARGET='-fPIC -shared'
5072 i[34567]86-pc-msdosdjgpp*)
5073 # DJGPP does not support shared libraries at all.
5075 ia64*-*-hpux*)
5076 # On IA64 HP-UX, PIC is the default but the pic flag
5077 # sets the default TLS model and affects inlining.
5078 PICFLAG_FOR_TARGET=-fPIC
5080 mips-sgi-irix6*)
5081 # PIC is the default.
5083 rs6000-ibm-aix* | powerpc-ibm-aix*)
5084 # All AIX code is PIC.
5087 # Some targets support both -fPIC and -fpic, but prefer the latter.
5088 # FIXME: Why?
5089 i[34567]86-*-* | x86_64-*-*)
5090 PICFLAG_FOR_TARGET=-fpic
5092 # FIXME: Override -fPIC default in libgcc only?
5093 sh-*-linux* | sh[2346lbe]*-*-linux*)
5094 PICFLAG_FOR_TARGET=-fpic
5096 # FIXME: Simplify to sh*-*-netbsd*?
5097 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5098 sh64-*-netbsd* | sh64l*-*-netbsd*)
5099 PICFLAG_FOR_TARGET=-fpic
5101 # Default to -fPIC unless specified otherwise.
5103 PICFLAG_FOR_TARGET=-fPIC
5105 esac
5107 # If the user explicitly uses -fpic/-fPIC, keep that.
5108 case "${CFLAGS_FOR_TARGET}" in
5109 *-fpic*)
5110 PICFLAG_FOR_TARGET=-fpic
5112 *-fPIC*)
5113 PICFLAG_FOR_TARGET=-fPIC
5115 esac
5119 # -------------------------
5120 # Check C compiler features
5121 # -------------------------
5124 ac_ext=cpp
5125 ac_cpp='$CXXCPP $CPPFLAGS'
5126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5130 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5131 if test -z "$CXXCPP"; then
5132 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 # Double quotes because CXXCPP needs to be expanded
5136 for CXXCPP in "$CXX -E" "/lib/cpp"
5138 ac_preproc_ok=false
5139 for ac_cxx_preproc_warn_flag in '' yes
5141 # Use a header file that comes with gcc, so configuring glibc
5142 # with a fresh cross-compiler works.
5143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5144 # <limits.h> exists even on freestanding compilers.
5145 # On the NeXT, cc -E runs the code through the compiler's parser,
5146 # not just through cpp. "Syntax error" is here to catch this case.
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154 Syntax error
5155 _ACEOF
5156 if ac_fn_cxx_try_cpp "$LINENO"; then :
5158 else
5159 # Broken: fails on valid input.
5160 continue
5162 rm -f conftest.err conftest.$ac_ext
5164 # OK, works on sane cases. Now check whether nonexistent headers
5165 # can be detected and how.
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <ac_nonexistent.h>
5169 _ACEOF
5170 if ac_fn_cxx_try_cpp "$LINENO"; then :
5171 # Broken: success on invalid input.
5172 continue
5173 else
5174 # Passes both tests.
5175 ac_preproc_ok=:
5176 break
5178 rm -f conftest.err conftest.$ac_ext
5180 done
5181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5182 rm -f conftest.err conftest.$ac_ext
5183 if $ac_preproc_ok; then :
5184 break
5187 done
5188 ac_cv_prog_CXXCPP=$CXXCPP
5191 CXXCPP=$ac_cv_prog_CXXCPP
5192 else
5193 ac_cv_prog_CXXCPP=$CXXCPP
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5196 $as_echo "$CXXCPP" >&6; }
5197 ac_preproc_ok=false
5198 for ac_cxx_preproc_warn_flag in '' yes
5200 # Use a header file that comes with gcc, so configuring glibc
5201 # with a fresh cross-compiler works.
5202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5203 # <limits.h> exists even on freestanding compilers.
5204 # On the NeXT, cc -E runs the code through the compiler's parser,
5205 # not just through cpp. "Syntax error" is here to catch this case.
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5208 #ifdef __STDC__
5209 # include <limits.h>
5210 #else
5211 # include <assert.h>
5212 #endif
5213 Syntax error
5214 _ACEOF
5215 if ac_fn_cxx_try_cpp "$LINENO"; then :
5217 else
5218 # Broken: fails on valid input.
5219 continue
5221 rm -f conftest.err conftest.$ac_ext
5223 # OK, works on sane cases. Now check whether nonexistent headers
5224 # can be detected and how.
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 #include <ac_nonexistent.h>
5228 _ACEOF
5229 if ac_fn_cxx_try_cpp "$LINENO"; then :
5230 # Broken: success on invalid input.
5231 continue
5232 else
5233 # Passes both tests.
5234 ac_preproc_ok=:
5235 break
5237 rm -f conftest.err conftest.$ac_ext
5239 done
5240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5241 rm -f conftest.err conftest.$ac_ext
5242 if $ac_preproc_ok; then :
5244 else
5245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5247 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5248 See \`config.log' for more details." "$LINENO" 5; }
5251 ac_ext=cpp
5252 ac_cpp='$CXXCPP $CPPFLAGS'
5253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5259 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5260 if test "${ac_cv_path_GREP+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -z "$GREP"; then
5264 ac_path_GREP_found=false
5265 # Loop through the user's path and test for each of PROGNAME-LIST
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_prog in grep ggrep; do
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5274 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5275 # Check for GNU ac_path_GREP and select it if it is found.
5276 # Check for GNU $ac_path_GREP
5277 case `"$ac_path_GREP" --version 2>&1` in
5278 *GNU*)
5279 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5281 ac_count=0
5282 $as_echo_n 0123456789 >"conftest.in"
5283 while :
5285 cat "conftest.in" "conftest.in" >"conftest.tmp"
5286 mv "conftest.tmp" "conftest.in"
5287 cp "conftest.in" "conftest.nl"
5288 $as_echo 'GREP' >> "conftest.nl"
5289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5291 as_fn_arith $ac_count + 1 && ac_count=$as_val
5292 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5293 # Best one so far, save it but keep looking for a better one
5294 ac_cv_path_GREP="$ac_path_GREP"
5295 ac_path_GREP_max=$ac_count
5297 # 10*(2^10) chars as input seems more than enough
5298 test $ac_count -gt 10 && break
5299 done
5300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5301 esac
5303 $ac_path_GREP_found && break 3
5304 done
5305 done
5306 done
5307 IFS=$as_save_IFS
5308 if test -z "$ac_cv_path_GREP"; then
5309 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5311 else
5312 ac_cv_path_GREP=$GREP
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5317 $as_echo "$ac_cv_path_GREP" >&6; }
5318 GREP="$ac_cv_path_GREP"
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5322 $as_echo_n "checking for egrep... " >&6; }
5323 if test "${ac_cv_path_EGREP+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5327 then ac_cv_path_EGREP="$GREP -E"
5328 else
5329 if test -z "$EGREP"; then
5330 ac_path_EGREP_found=false
5331 # Loop through the user's path and test for each of PROGNAME-LIST
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_prog in egrep; do
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5340 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5341 # Check for GNU ac_path_EGREP and select it if it is found.
5342 # Check for GNU $ac_path_EGREP
5343 case `"$ac_path_EGREP" --version 2>&1` in
5344 *GNU*)
5345 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5347 ac_count=0
5348 $as_echo_n 0123456789 >"conftest.in"
5349 while :
5351 cat "conftest.in" "conftest.in" >"conftest.tmp"
5352 mv "conftest.tmp" "conftest.in"
5353 cp "conftest.in" "conftest.nl"
5354 $as_echo 'EGREP' >> "conftest.nl"
5355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5357 as_fn_arith $ac_count + 1 && ac_count=$as_val
5358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5359 # Best one so far, save it but keep looking for a better one
5360 ac_cv_path_EGREP="$ac_path_EGREP"
5361 ac_path_EGREP_max=$ac_count
5363 # 10*(2^10) chars as input seems more than enough
5364 test $ac_count -gt 10 && break
5365 done
5366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5367 esac
5369 $ac_path_EGREP_found && break 3
5370 done
5371 done
5372 done
5373 IFS=$as_save_IFS
5374 if test -z "$ac_cv_path_EGREP"; then
5375 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5377 else
5378 ac_cv_path_EGREP=$EGREP
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5384 $as_echo "$ac_cv_path_EGREP" >&6; }
5385 EGREP="$ac_cv_path_EGREP"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5389 $as_echo_n "checking for ANSI C header files... " >&6; }
5390 if test "${ac_cv_header_stdc+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <stdlib.h>
5396 #include <stdarg.h>
5397 #include <string.h>
5398 #include <float.h>
5401 main ()
5405 return 0;
5407 _ACEOF
5408 if ac_fn_cxx_try_compile "$LINENO"; then :
5409 ac_cv_header_stdc=yes
5410 else
5411 ac_cv_header_stdc=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 if test $ac_cv_header_stdc = yes; then
5416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <string.h>
5421 _ACEOF
5422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5423 $EGREP "memchr" >/dev/null 2>&1; then :
5425 else
5426 ac_cv_header_stdc=no
5428 rm -f conftest*
5432 if test $ac_cv_header_stdc = yes; then
5433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #include <stdlib.h>
5438 _ACEOF
5439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5440 $EGREP "free" >/dev/null 2>&1; then :
5442 else
5443 ac_cv_header_stdc=no
5445 rm -f conftest*
5449 if test $ac_cv_header_stdc = yes; then
5450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5451 if test "$cross_compiling" = yes; then :
5453 else
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 #include <ctype.h>
5457 #include <stdlib.h>
5458 #if ((' ' & 0x0FF) == 0x020)
5459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5461 #else
5462 # define ISLOWER(c) \
5463 (('a' <= (c) && (c) <= 'i') \
5464 || ('j' <= (c) && (c) <= 'r') \
5465 || ('s' <= (c) && (c) <= 'z'))
5466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5467 #endif
5469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5471 main ()
5473 int i;
5474 for (i = 0; i < 256; i++)
5475 if (XOR (islower (i), ISLOWER (i))
5476 || toupper (i) != TOUPPER (i))
5477 return 2;
5478 return 0;
5480 _ACEOF
5481 if ac_fn_cxx_try_run "$LINENO"; then :
5483 else
5484 ac_cv_header_stdc=no
5486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5487 conftest.$ac_objext conftest.beam conftest.$ac_ext
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5493 $as_echo "$ac_cv_header_stdc" >&6; }
5494 if test $ac_cv_header_stdc = yes; then
5496 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5500 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5501 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5502 inttypes.h stdint.h unistd.h
5503 do :
5504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5507 eval as_val=\$$as_ac_Header
5508 if test "x$as_val" = x""yes; then :
5509 cat >>confdefs.h <<_ACEOF
5510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5511 _ACEOF
5515 done
5519 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5520 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5521 MINIX=yes
5522 else
5523 MINIX=
5527 if test "$MINIX" = yes; then
5529 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5532 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5535 $as_echo "#define _MINIX 1" >>confdefs.h
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5541 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5542 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5548 # define __EXTENSIONS__ 1
5549 $ac_includes_default
5551 main ()
5555 return 0;
5557 _ACEOF
5558 if ac_fn_cxx_try_compile "$LINENO"; then :
5559 ac_cv_safe_to_define___extensions__=yes
5560 else
5561 ac_cv_safe_to_define___extensions__=no
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5566 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5567 test $ac_cv_safe_to_define___extensions__ = yes &&
5568 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5570 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5572 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5574 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5576 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5579 ac_ext=c
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5585 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5586 # On Suns, sometimes $CPP names a directory.
5587 if test -n "$CPP" && test -d "$CPP"; then
5588 CPP=
5590 if test -z "$CPP"; then
5591 if test "${ac_cv_prog_CPP+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 # Double quotes because CPP needs to be expanded
5595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5597 ac_preproc_ok=false
5598 for ac_c_preproc_warn_flag in '' yes
5600 # Use a header file that comes with gcc, so configuring glibc
5601 # with a fresh cross-compiler works.
5602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 # <limits.h> exists even on freestanding compilers.
5604 # On the NeXT, cc -E runs the code through the compiler's parser,
5605 # not just through cpp. "Syntax error" is here to catch this case.
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #ifdef __STDC__
5609 # include <limits.h>
5610 #else
5611 # include <assert.h>
5612 #endif
5613 Syntax error
5614 _ACEOF
5615 if ac_fn_c_try_cpp "$LINENO"; then :
5617 else
5618 # Broken: fails on valid input.
5619 continue
5621 rm -f conftest.err conftest.$ac_ext
5623 # OK, works on sane cases. Now check whether nonexistent headers
5624 # can be detected and how.
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 #include <ac_nonexistent.h>
5628 _ACEOF
5629 if ac_fn_c_try_cpp "$LINENO"; then :
5630 # Broken: success on invalid input.
5631 continue
5632 else
5633 # Passes both tests.
5634 ac_preproc_ok=:
5635 break
5637 rm -f conftest.err conftest.$ac_ext
5639 done
5640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5641 rm -f conftest.err conftest.$ac_ext
5642 if $ac_preproc_ok; then :
5643 break
5646 done
5647 ac_cv_prog_CPP=$CPP
5650 CPP=$ac_cv_prog_CPP
5651 else
5652 ac_cv_prog_CPP=$CPP
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5655 $as_echo "$CPP" >&6; }
5656 ac_preproc_ok=false
5657 for ac_c_preproc_warn_flag in '' yes
5659 # Use a header file that comes with gcc, so configuring glibc
5660 # with a fresh cross-compiler works.
5661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5662 # <limits.h> exists even on freestanding compilers.
5663 # On the NeXT, cc -E runs the code through the compiler's parser,
5664 # not just through cpp. "Syntax error" is here to catch this case.
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #ifdef __STDC__
5668 # include <limits.h>
5669 #else
5670 # include <assert.h>
5671 #endif
5672 Syntax error
5673 _ACEOF
5674 if ac_fn_c_try_cpp "$LINENO"; then :
5676 else
5677 # Broken: fails on valid input.
5678 continue
5680 rm -f conftest.err conftest.$ac_ext
5682 # OK, works on sane cases. Now check whether nonexistent headers
5683 # can be detected and how.
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <ac_nonexistent.h>
5687 _ACEOF
5688 if ac_fn_c_try_cpp "$LINENO"; then :
5689 # Broken: success on invalid input.
5690 continue
5691 else
5692 # Passes both tests.
5693 ac_preproc_ok=:
5694 break
5696 rm -f conftest.err conftest.$ac_ext
5698 done
5699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5700 rm -f conftest.err conftest.$ac_ext
5701 if $ac_preproc_ok; then :
5703 else
5704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5706 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5707 See \`config.log' for more details." "$LINENO" 5; }
5710 ac_ext=cpp
5711 ac_cpp='$CXXCPP $CPPFLAGS'
5712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5717 $as_echo_n "checking for inline... " >&6; }
5718 if test "${ac_cv_c_inline+set}" = set; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 ac_cv_c_inline=no
5722 for ac_kw in inline __inline__ __inline; do
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #ifndef __cplusplus
5726 typedef int foo_t;
5727 static $ac_kw foo_t static_foo () {return 0; }
5728 $ac_kw foo_t foo () {return 0; }
5729 #endif
5731 _ACEOF
5732 if ac_fn_cxx_try_compile "$LINENO"; then :
5733 ac_cv_c_inline=$ac_kw
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 test "$ac_cv_c_inline" != no && break
5737 done
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5741 $as_echo "$ac_cv_c_inline" >&6; }
5743 case $ac_cv_c_inline in
5744 inline | yes) ;;
5746 case $ac_cv_c_inline in
5747 no) ac_val=;;
5748 *) ac_val=$ac_cv_c_inline;;
5749 esac
5750 cat >>confdefs.h <<_ACEOF
5751 #ifndef __cplusplus
5752 #define inline $ac_val
5753 #endif
5754 _ACEOF
5756 esac
5759 # Check whether --enable-largefile was given.
5760 if test "${enable_largefile+set}" = set; then :
5761 enableval=$enable_largefile;
5764 if test "$enable_largefile" != no; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5767 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5768 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 ac_cv_sys_largefile_CC=no
5772 if test "$GCC" != yes; then
5773 ac_save_CC=$CC
5774 while :; do
5775 # IRIX 6.2 and later do not support large files by default,
5776 # so use the C compiler's -n32 option if that helps.
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 #include <sys/types.h>
5780 /* Check that off_t can represent 2**63 - 1 correctly.
5781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5782 since some C++ compilers masquerading as C compilers
5783 incorrectly reject 9223372036854775807. */
5784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5786 && LARGE_OFF_T % 2147483647 == 1)
5787 ? 1 : -1];
5789 main ()
5793 return 0;
5795 _ACEOF
5796 if ac_fn_cxx_try_compile "$LINENO"; then :
5797 break
5799 rm -f core conftest.err conftest.$ac_objext
5800 CC="$CC -n32"
5801 if ac_fn_cxx_try_compile "$LINENO"; then :
5802 ac_cv_sys_largefile_CC=' -n32'; break
5804 rm -f core conftest.err conftest.$ac_objext
5805 break
5806 done
5807 CC=$ac_save_CC
5808 rm -f conftest.$ac_ext
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5812 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5813 if test "$ac_cv_sys_largefile_CC" != no; then
5814 CC=$CC$ac_cv_sys_largefile_CC
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5818 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 while :; do
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 #include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5828 since some C++ compilers masquerading as C compilers
5829 incorrectly reject 9223372036854775807. */
5830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5832 && LARGE_OFF_T % 2147483647 == 1)
5833 ? 1 : -1];
5835 main ()
5839 return 0;
5841 _ACEOF
5842 if ac_fn_cxx_try_compile "$LINENO"; then :
5843 ac_cv_sys_file_offset_bits=no; break
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 #define _FILE_OFFSET_BITS 64
5849 #include <sys/types.h>
5850 /* Check that off_t can represent 2**63 - 1 correctly.
5851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5852 since some C++ compilers masquerading as C compilers
5853 incorrectly reject 9223372036854775807. */
5854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5856 && LARGE_OFF_T % 2147483647 == 1)
5857 ? 1 : -1];
5859 main ()
5863 return 0;
5865 _ACEOF
5866 if ac_fn_cxx_try_compile "$LINENO"; then :
5867 ac_cv_sys_file_offset_bits=64; break
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 ac_cv_sys_file_offset_bits=unknown
5871 break
5872 done
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5875 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5876 case $ac_cv_sys_file_offset_bits in #(
5877 no | unknown) ;;
5879 cat >>confdefs.h <<_ACEOF
5880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5881 _ACEOF
5883 esac
5884 rm -rf conftest*
5885 if test $ac_cv_sys_file_offset_bits = unknown; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5887 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5888 if test "${ac_cv_sys_large_files+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 while :; do
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #include <sys/types.h>
5895 /* Check that off_t can represent 2**63 - 1 correctly.
5896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5897 since some C++ compilers masquerading as C compilers
5898 incorrectly reject 9223372036854775807. */
5899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5901 && LARGE_OFF_T % 2147483647 == 1)
5902 ? 1 : -1];
5904 main ()
5908 return 0;
5910 _ACEOF
5911 if ac_fn_cxx_try_compile "$LINENO"; then :
5912 ac_cv_sys_large_files=no; break
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5917 #define _LARGE_FILES 1
5918 #include <sys/types.h>
5919 /* Check that off_t can represent 2**63 - 1 correctly.
5920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5921 since some C++ compilers masquerading as C compilers
5922 incorrectly reject 9223372036854775807. */
5923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5925 && LARGE_OFF_T % 2147483647 == 1)
5926 ? 1 : -1];
5928 main ()
5932 return 0;
5934 _ACEOF
5935 if ac_fn_cxx_try_compile "$LINENO"; then :
5936 ac_cv_sys_large_files=1; break
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 ac_cv_sys_large_files=unknown
5940 break
5941 done
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5944 $as_echo "$ac_cv_sys_large_files" >&6; }
5945 case $ac_cv_sys_large_files in #(
5946 no | unknown) ;;
5948 cat >>confdefs.h <<_ACEOF
5949 #define _LARGE_FILES $ac_cv_sys_large_files
5950 _ACEOF
5952 esac
5953 rm -rf conftest*
5958 # sizeof(char) is 1 by definition.
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 void *" >&5
5964 $as_echo_n "checking size of void *... " >&6; }
5965 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5970 else
5971 if test "$ac_cv_type_void_p" = 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 (void *)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5977 else
5978 ac_cv_sizeof_void_p=0
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5984 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5988 cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
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 short" >&5
5998 $as_echo_n "checking size of short... " >&6; }
5999 if test "${ac_cv_sizeof_short+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6004 else
6005 if test "$ac_cv_type_short" = 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 (short)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof_short=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6018 $as_echo "$ac_cv_sizeof_short" >&6; }
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF_SHORT $ac_cv_sizeof_short
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 int" >&5
6032 $as_echo_n "checking size of int... " >&6; }
6033 if test "${ac_cv_sizeof_int+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6038 else
6039 if test "$ac_cv_type_int" = 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 (int)
6044 See \`config.log' for more details." "$LINENO" 5; }; }
6045 else
6046 ac_cv_sizeof_int=0
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6052 $as_echo "$ac_cv_sizeof_int" >&6; }
6056 cat >>confdefs.h <<_ACEOF
6057 #define SIZEOF_INT $ac_cv_sizeof_int
6058 _ACEOF
6061 # The cast to long int works around a bug in the HP C Compiler
6062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6064 # This bug is HP SR number 8606223364.
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6066 $as_echo_n "checking size of long... " >&6; }
6067 if test "${ac_cv_sizeof_long+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6072 else
6073 if test "$ac_cv_type_long" = yes; then
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 { as_fn_set_status 77
6077 as_fn_error "cannot compute sizeof (long)
6078 See \`config.log' for more details." "$LINENO" 5; }; }
6079 else
6080 ac_cv_sizeof_long=0
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6086 $as_echo "$ac_cv_sizeof_long" >&6; }
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF_LONG $ac_cv_sizeof_long
6092 _ACEOF
6095 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6096 if test "x$ac_cv_type_long_long" = x""yes; then :
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_LONG_LONG 1
6100 _ACEOF
6102 # The cast to long int works around a bug in the HP C Compiler
6103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6105 # This bug is HP SR number 8606223364.
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6107 $as_echo_n "checking size of long long... " >&6; }
6108 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6113 else
6114 if test "$ac_cv_type_long_long" = yes; then
6115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6117 { as_fn_set_status 77
6118 as_fn_error "cannot compute sizeof (long long)
6119 See \`config.log' for more details." "$LINENO" 5; }; }
6120 else
6121 ac_cv_sizeof_long_long=0
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6127 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6131 cat >>confdefs.h <<_ACEOF
6132 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6133 _ACEOF
6138 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6139 case $ac_cv_c_int8_t in #(
6140 no|yes) ;; #(
6143 cat >>confdefs.h <<_ACEOF
6144 #define int8_t $ac_cv_c_int8_t
6145 _ACEOF
6147 esac
6149 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6150 case $ac_cv_c_int16_t in #(
6151 no|yes) ;; #(
6154 cat >>confdefs.h <<_ACEOF
6155 #define int16_t $ac_cv_c_int16_t
6156 _ACEOF
6158 esac
6160 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6161 case $ac_cv_c_int32_t in #(
6162 no|yes) ;; #(
6165 cat >>confdefs.h <<_ACEOF
6166 #define int32_t $ac_cv_c_int32_t
6167 _ACEOF
6169 esac
6171 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6172 case $ac_cv_c_int64_t in #(
6173 no|yes) ;; #(
6176 cat >>confdefs.h <<_ACEOF
6177 #define int64_t $ac_cv_c_int64_t
6178 _ACEOF
6180 esac
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6184 $as_echo_n "checking for long long int... " >&6; }
6185 if test "${ac_cv_type_long_long_int+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6191 /* For now, do not test the preprocessor; as of 2007 there are too many
6192 implementations with broken preprocessors. Perhaps this can
6193 be revisited in 2012. In the meantime, code should not expect
6194 #if to work with literals wider than 32 bits. */
6195 /* Test literals. */
6196 long long int ll = 9223372036854775807ll;
6197 long long int nll = -9223372036854775807LL;
6198 unsigned long long int ull = 18446744073709551615ULL;
6199 /* Test constant expressions. */
6200 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6201 ? 1 : -1)];
6202 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6203 ? 1 : -1)];
6204 int i = 63;
6206 main ()
6208 /* Test availability of runtime routines for shift and division. */
6209 long long int llmax = 9223372036854775807ll;
6210 unsigned long long int ullmax = 18446744073709551615ull;
6211 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6212 | (llmax / ll) | (llmax % ll)
6213 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6214 | (ullmax / ull) | (ullmax % ull));
6216 return 0;
6219 _ACEOF
6220 if ac_fn_cxx_try_link "$LINENO"; then :
6221 if test "$cross_compiling" = yes; then :
6222 ac_cv_type_long_long_int=yes
6223 else
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #include <limits.h>
6227 #ifndef LLONG_MAX
6228 # define HALF \
6229 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6230 # define LLONG_MAX (HALF - 1 + HALF)
6231 #endif
6233 main ()
6235 long long int n = 1;
6236 int i;
6237 for (i = 0; ; i++)
6239 long long int m = n << i;
6240 if (m >> i != n)
6241 return 1;
6242 if (LLONG_MAX / 2 < m)
6243 break;
6245 return 0;
6247 return 0;
6249 _ACEOF
6250 if ac_fn_cxx_try_run "$LINENO"; then :
6251 ac_cv_type_long_long_int=yes
6252 else
6253 ac_cv_type_long_long_int=no
6255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6256 conftest.$ac_objext conftest.beam conftest.$ac_ext
6259 else
6260 ac_cv_type_long_long_int=no
6262 rm -f core conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext conftest.$ac_ext
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6266 $as_echo "$ac_cv_type_long_long_int" >&6; }
6267 if test $ac_cv_type_long_long_int = yes; then
6269 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6275 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6276 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6278 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6280 else
6281 test $ac_cv_type_long_long_int = yes \
6282 && ac_type='long long int' \
6283 || ac_type='long int'
6285 cat >>confdefs.h <<_ACEOF
6286 #define intmax_t $ac_type
6287 _ACEOF
6293 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6294 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6296 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6298 else
6299 for ac_type in 'int' 'long int' 'long long int'; do
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302 $ac_includes_default
6304 main ()
6306 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6307 test_array [0] = 0
6310 return 0;
6312 _ACEOF
6313 if ac_fn_cxx_try_compile "$LINENO"; then :
6315 cat >>confdefs.h <<_ACEOF
6316 #define intptr_t $ac_type
6317 _ACEOF
6319 ac_type=
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 test -z "$ac_type" && break
6323 done
6327 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6328 case $ac_cv_c_uint8_t in #(
6329 no|yes) ;; #(
6332 $as_echo "#define _UINT8_T 1" >>confdefs.h
6335 cat >>confdefs.h <<_ACEOF
6336 #define uint8_t $ac_cv_c_uint8_t
6337 _ACEOF
6339 esac
6341 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6342 case $ac_cv_c_uint16_t in #(
6343 no|yes) ;; #(
6347 cat >>confdefs.h <<_ACEOF
6348 #define uint16_t $ac_cv_c_uint16_t
6349 _ACEOF
6351 esac
6353 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6354 case $ac_cv_c_uint32_t in #(
6355 no|yes) ;; #(
6358 $as_echo "#define _UINT32_T 1" >>confdefs.h
6361 cat >>confdefs.h <<_ACEOF
6362 #define uint32_t $ac_cv_c_uint32_t
6363 _ACEOF
6365 esac
6367 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6368 case $ac_cv_c_uint64_t in #(
6369 no|yes) ;; #(
6372 $as_echo "#define _UINT64_T 1" >>confdefs.h
6375 cat >>confdefs.h <<_ACEOF
6376 #define uint64_t $ac_cv_c_uint64_t
6377 _ACEOF
6379 esac
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6383 $as_echo_n "checking for unsigned long long int... " >&6; }
6384 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6390 /* For now, do not test the preprocessor; as of 2007 there are too many
6391 implementations with broken preprocessors. Perhaps this can
6392 be revisited in 2012. In the meantime, code should not expect
6393 #if to work with literals wider than 32 bits. */
6394 /* Test literals. */
6395 long long int ll = 9223372036854775807ll;
6396 long long int nll = -9223372036854775807LL;
6397 unsigned long long int ull = 18446744073709551615ULL;
6398 /* Test constant expressions. */
6399 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6400 ? 1 : -1)];
6401 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6402 ? 1 : -1)];
6403 int i = 63;
6405 main ()
6407 /* Test availability of runtime routines for shift and division. */
6408 long long int llmax = 9223372036854775807ll;
6409 unsigned long long int ullmax = 18446744073709551615ull;
6410 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6411 | (llmax / ll) | (llmax % ll)
6412 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6413 | (ullmax / ull) | (ullmax % ull));
6415 return 0;
6418 _ACEOF
6419 if ac_fn_cxx_try_link "$LINENO"; then :
6420 ac_cv_type_unsigned_long_long_int=yes
6421 else
6422 ac_cv_type_unsigned_long_long_int=no
6424 rm -f core conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6428 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6429 if test $ac_cv_type_unsigned_long_long_int = yes; then
6431 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6437 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6438 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6440 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6442 else
6443 test $ac_cv_type_unsigned_long_long_int = yes \
6444 && ac_type='unsigned long long int' \
6445 || ac_type='unsigned long int'
6447 cat >>confdefs.h <<_ACEOF
6448 #define uintmax_t $ac_type
6449 _ACEOF
6455 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6456 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6458 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6460 else
6461 for ac_type in 'unsigned int' 'unsigned long int' \
6462 'unsigned long long int'; do
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 $ac_includes_default
6467 main ()
6469 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6470 test_array [0] = 0
6473 return 0;
6475 _ACEOF
6476 if ac_fn_cxx_try_compile "$LINENO"; then :
6478 cat >>confdefs.h <<_ACEOF
6479 #define uintptr_t $ac_type
6480 _ACEOF
6482 ac_type=
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 test -z "$ac_type" && break
6486 done
6502 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6503 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6506 # check what underlying integer type int64_t uses
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6508 $as_echo_n "checking for int64_t underlying type... " >&6; }
6509 if test "${ac_cv_int64_t_type+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6516 #ifdef HAVE_STDINT_H
6517 #include <stdint.h>
6518 #endif
6519 template <typename T> struct X { };
6520 template <>
6521 struct X<long> { typedef long t; };
6524 main ()
6526 X<int64_t>::t x;
6528 return 0;
6530 _ACEOF
6531 if ac_fn_cxx_try_compile "$LINENO"; then :
6532 ac_cv_int64_t_type=long
6533 else
6534 ac_cv_int64_t_type="long long"
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6539 $as_echo "$ac_cv_int64_t_type" >&6; }
6540 if test "$ac_cv_int64_t_type" = "long"; then
6542 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6544 else
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6548 #ifdef HAVE_STDINT_H
6549 #include <stdint.h>
6550 #endif
6551 template <typename T> struct X { };
6552 template <>
6553 struct X<long long> { typedef long long t; };
6556 main ()
6558 X<int64_t>::t x;
6560 return 0;
6562 _ACEOF
6563 if ac_fn_cxx_try_compile "$LINENO"; then :
6565 else
6566 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6572 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6573 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6580 #include <utility>
6583 main ()
6585 int a, b; std::swap(a,b);
6587 return 0;
6589 _ACEOF
6590 if ac_fn_cxx_try_compile "$LINENO"; then :
6591 ac_cv_std_swap_in_utility=yes
6592 else
6593 ac_cv_std_swap_in_utility=no
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6598 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6599 if test $ac_cv_std_swap_in_utility = yes; then
6601 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6605 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6606 # If the host compiler is affected by the bug, and we build with optimization
6607 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6608 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6609 # Since there is no reliable feature check for the presence of this bug,
6610 # we simply use a GCC version number check. (This should never trigger for
6611 # stages 2 or 3 of a native bootstrap.)
6612 aliasing_flags=
6613 if test "$GCC" = yes; then
6614 saved_CXXFLAGS="$CXXFLAGS"
6616 # The following test compilation will succeed if and only if $CXX accepts
6617 # -fno-strict-aliasing *and* is older than GCC 4.3.
6618 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6620 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6624 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6625 #error compiler not affected by placement new aliasing bug
6626 #endif
6628 _ACEOF
6629 if ac_fn_cxx_try_compile "$LINENO"; then :
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6631 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638 CXXFLAGS="$saved_CXXFLAGS"
6644 # ---------------------
6645 # Warnings and checking
6646 # ---------------------
6648 # Check $CC warning features (if it's GCC).
6649 # We want to use -pedantic, but we don't want warnings about
6650 # * 'long long'
6651 # * variadic macros
6652 # * overlong strings
6653 # * C++11 narrowing conversions in { }
6654 # So, we only use -pedantic if we can disable those warnings.
6656 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6657 # Check whether --enable-build-format-warnings was given.
6658 if test "${enable_build_format_warnings+set}" = set; then :
6659 enableval=$enable_build_format_warnings;
6660 else
6661 enable_build_format_warnings=yes
6664 if test $enable_build_format_warnings = no; then :
6665 wf_opt=-Wno-format
6666 else
6667 wf_opt=
6669 ac_ext=cpp
6670 ac_cpp='$CXXCPP $CPPFLAGS'
6671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6675 loose_warn=
6676 save_CXXFLAGS="$CXXFLAGS"
6677 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6678 # Do the check with the no- prefix removed since gcc silently
6679 # accepts any -Wno-* option on purpose
6680 case $real_option in
6681 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6682 *) option=$real_option ;;
6683 esac
6684 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6687 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6688 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 CXXFLAGS="$option"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6696 main ()
6700 return 0;
6702 _ACEOF
6703 if ac_fn_cxx_try_compile "$LINENO"; then :
6704 eval "$as_acx_Woption=yes"
6705 else
6706 eval "$as_acx_Woption=no"
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 eval ac_res=\$$as_acx_Woption
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6713 $as_echo "$ac_res" >&6; }
6714 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6715 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6717 done
6718 CXXFLAGS="$save_CXXFLAGS"
6719 ac_ext=cpp
6720 ac_cpp='$CXXCPP $CPPFLAGS'
6721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6727 ac_ext=c
6728 ac_cpp='$CPP $CPPFLAGS'
6729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733 c_loose_warn=
6734 save_CFLAGS="$CFLAGS"
6735 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6736 # Do the check with the no- prefix removed since gcc silently
6737 # accepts any -Wno-* option on purpose
6738 case $real_option in
6739 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6740 *) option=$real_option ;;
6741 esac
6742 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6745 $as_echo_n "checking whether $CC supports $option... " >&6; }
6746 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 CFLAGS="$option"
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6754 main ()
6758 return 0;
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 eval "$as_acx_Woption=yes"
6763 else
6764 eval "$as_acx_Woption=no"
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 eval ac_res=\$$as_acx_Woption
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6771 $as_echo "$ac_res" >&6; }
6772 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6773 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6775 done
6776 CFLAGS="$save_CFLAGS"
6777 ac_ext=cpp
6778 ac_cpp='$CXXCPP $CPPFLAGS'
6779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6784 ac_ext=cpp
6785 ac_cpp='$CXXCPP $CPPFLAGS'
6786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6790 strict_warn=
6791 save_CXXFLAGS="$CXXFLAGS"
6792 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6793 # Do the check with the no- prefix removed since gcc silently
6794 # accepts any -Wno-* option on purpose
6795 case $real_option in
6796 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6797 *) option=$real_option ;;
6798 esac
6799 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6802 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6803 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 CXXFLAGS="$option"
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6811 main ()
6815 return 0;
6817 _ACEOF
6818 if ac_fn_cxx_try_compile "$LINENO"; then :
6819 eval "$as_acx_Woption=yes"
6820 else
6821 eval "$as_acx_Woption=no"
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826 eval ac_res=\$$as_acx_Woption
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6828 $as_echo "$ac_res" >&6; }
6829 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6830 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6832 done
6833 CXXFLAGS="$save_CXXFLAGS"
6834 ac_ext=cpp
6835 ac_cpp='$CXXCPP $CPPFLAGS'
6836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6841 ac_ext=c
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6847 c_strict_warn=
6848 save_CFLAGS="$CFLAGS"
6849 for real_option in -Wold-style-definition -Wc++-compat; do
6850 # Do the check with the no- prefix removed since gcc silently
6851 # accepts any -Wno-* option on purpose
6852 case $real_option in
6853 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6854 *) option=$real_option ;;
6855 esac
6856 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6859 $as_echo_n "checking whether $CC supports $option... " >&6; }
6860 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 CFLAGS="$option"
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6868 main ()
6872 return 0;
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 eval "$as_acx_Woption=yes"
6877 else
6878 eval "$as_acx_Woption=no"
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6883 eval ac_res=\$$as_acx_Woption
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6885 $as_echo "$ac_res" >&6; }
6886 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6887 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6889 done
6890 CFLAGS="$save_CFLAGS"
6891 ac_ext=cpp
6892 ac_cpp='$CXXCPP $CPPFLAGS'
6893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6898 ac_ext=cpp
6899 ac_cpp='$CXXCPP $CPPFLAGS'
6900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6904 # Do the check with the no- prefix removed from the warning options
6905 # since gcc silently accepts any -Wno-* option on purpose
6906 if test "$GXX" = yes; then :
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6908 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6909 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 save_CXXFLAGS="$CXXFLAGS"
6913 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6918 main ()
6922 return 0;
6924 _ACEOF
6925 if ac_fn_cxx_try_compile "$LINENO"; then :
6926 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6927 else
6928 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 CXXFLAGS="$save_CXXFLAGS"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6934 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6935 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6936 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6940 ac_ext=cpp
6941 ac_cpp='$CXXCPP $CPPFLAGS'
6942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6947 ac_ext=cpp
6948 ac_cpp='$CXXCPP $CPPFLAGS'
6949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953 # Check whether --enable-werror-always was given.
6954 if test "${enable_werror_always+set}" = set; then :
6955 enableval=$enable_werror_always;
6956 else
6957 enable_werror_always=no
6960 if test $enable_werror_always = yes; then :
6961 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6964 ac_ext=cpp
6965 ac_cpp='$CXXCPP $CPPFLAGS'
6966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6972 # The above macros do nothing if the compiler is not GCC. However, the
6973 # Makefile has more goo to add other flags, so these variables are used
6974 # to enable warnings only for GCC.
6975 warn_cflags=
6976 warn_cxxflags=
6977 if test "x$GCC" = "xyes"; then
6978 warn_cflags='$(GCC_WARN_CFLAGS)'
6979 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6984 # Disable exceptions and RTTI if building with g++
6985 ac_ext=c
6986 ac_cpp='$CPP $CPPFLAGS'
6987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6991 noexception_flags=
6992 save_CFLAGS="$CFLAGS"
6993 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6994 # Do the check with the no- prefix removed since gcc silently
6995 # accepts any -Wno-* option on purpose
6996 case $real_option in
6997 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6998 *) option=$real_option ;;
6999 esac
7000 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7003 $as_echo_n "checking whether $CC supports $option... " >&6; }
7004 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 CFLAGS="$option"
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7012 main ()
7016 return 0;
7018 _ACEOF
7019 if ac_fn_c_try_compile "$LINENO"; then :
7020 eval "$as_acx_Woption=yes"
7021 else
7022 eval "$as_acx_Woption=no"
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 eval ac_res=\$$as_acx_Woption
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7029 $as_echo "$ac_res" >&6; }
7030 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7031 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7033 done
7034 CFLAGS="$save_CFLAGS"
7035 ac_ext=cpp
7036 ac_cpp='$CXXCPP $CPPFLAGS'
7037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7043 # Enable expensive internal checks
7044 is_release=
7045 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7046 is_release=yes
7049 # Check whether --enable-checking was given.
7050 if test "${enable_checking+set}" = set; then :
7051 enableval=$enable_checking; ac_checking_flags="${enableval}"
7052 else
7054 # Determine the default checks.
7055 if test x$is_release = x ; then
7056 ac_checking_flags=yes,extra
7057 else
7058 ac_checking_flags=release
7062 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7063 for check in release $ac_checking_flags
7065 case $check in
7066 # these set all the flags to specific states
7067 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7068 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7069 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7070 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7071 ac_tree_checking=1 ; ac_valgrind_checking= ;
7072 ac_types_checking=1 ;;
7073 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7074 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7075 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7076 ac_rtlflag_checking= ; ac_runtime_checking= ;
7077 ac_tree_checking= ; ac_valgrind_checking= ;
7078 ac_types_checking= ;;
7079 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7080 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7081 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7082 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7083 ac_tree_checking=1 ; ac_valgrind_checking= ;
7084 ac_types_checking=1 ;;
7085 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7086 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7087 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7088 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7089 ac_tree_checking= ; ac_valgrind_checking= ;
7090 ac_types_checking= ;;
7091 # these enable particular checks
7092 assert) ac_assert_checking=1 ;;
7093 df) ac_df_checking=1 ;;
7094 extra) ac_extra_checking=1 ;;
7095 fold) ac_fold_checking=1 ;;
7096 gc) ac_gc_checking=1 ;;
7097 gcac) ac_gc_always_collect=1 ;;
7098 gimple) ac_gimple_checking=1 ;;
7099 misc) ac_checking=1 ;;
7100 rtl) ac_rtl_checking=1 ;;
7101 rtlflag) ac_rtlflag_checking=1 ;;
7102 runtime) ac_runtime_checking=1 ;;
7103 tree) ac_tree_checking=1 ;;
7104 types) ac_types_checking=1 ;;
7105 valgrind) ac_valgrind_checking=1 ;;
7106 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7107 esac
7108 done
7109 IFS="$ac_save_IFS"
7111 nocommon_flag=""
7112 if test x$ac_checking != x ; then
7114 $as_echo "#define CHECKING_P 1" >>confdefs.h
7116 nocommon_flag=-fno-common
7117 else
7118 $as_echo "#define CHECKING_P 0" >>confdefs.h
7122 if test x$ac_extra_checking != x ; then
7124 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7126 else
7127 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7130 if test x$ac_df_checking != x ; then
7132 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7135 if test x$ac_assert_checking != x ; then
7137 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7140 if test x$ac_gimple_checking != x ; then
7142 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7146 if test x$ac_runtime_checking != x ; then
7148 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7151 if test x$ac_tree_checking != x ; then
7153 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7155 TREECHECKING=yes
7157 if test x$ac_types_checking != x ; then
7159 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7163 if test x$ac_rtl_checking != x ; then
7165 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7168 if test x$ac_rtlflag_checking != x ; then
7170 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7173 if test x$ac_gc_checking != x ; then
7175 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7178 if test x$ac_gc_always_collect != x ; then
7180 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7183 if test x$ac_fold_checking != x ; then
7185 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7188 valgrind_path_defines=
7189 valgrind_command=
7191 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7192 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7193 have_valgrind_h=yes
7194 else
7195 have_valgrind_h=no
7200 # It is certainly possible that there's valgrind but no valgrind.h.
7201 # GCC relies on making annotations so we must have both.
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7203 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #include <valgrind/memcheck.h>
7207 #ifndef VALGRIND_DISCARD
7208 #error VALGRIND_DISCARD not defined
7209 #endif
7210 _ACEOF
7211 if ac_fn_cxx_try_cpp "$LINENO"; then :
7212 gcc_cv_header_valgrind_memcheck_h=yes
7213 else
7214 gcc_cv_header_valgrind_memcheck_h=no
7216 rm -f conftest.err conftest.$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7218 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7220 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 #include <memcheck.h>
7224 #ifndef VALGRIND_DISCARD
7225 #error VALGRIND_DISCARD not defined
7226 #endif
7227 _ACEOF
7228 if ac_fn_cxx_try_cpp "$LINENO"; then :
7229 gcc_cv_header_memcheck_h=yes
7230 else
7231 gcc_cv_header_memcheck_h=no
7233 rm -f conftest.err conftest.$ac_ext
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7235 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7236 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7238 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7241 if test $gcc_cv_header_memcheck_h = yes; then
7243 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7247 if test x$ac_valgrind_checking != x ; then
7249 # Prepare PATH_SEPARATOR.
7250 # The user is always right.
7251 if test "${PATH_SEPARATOR+set}" != set; then
7252 echo "#! /bin/sh" >conf$$.sh
7253 echo "exit 0" >>conf$$.sh
7254 chmod +x conf$$.sh
7255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7256 PATH_SEPARATOR=';'
7257 else
7258 PATH_SEPARATOR=:
7260 rm -f conf$$.sh
7263 # Find out how to test for executable files. Don't use a zero-byte file,
7264 # as systems may use methods other than mode bits to determine executability.
7265 cat >conf$$.file <<_ASEOF
7266 #! /bin/sh
7267 exit 0
7268 _ASEOF
7269 chmod +x conf$$.file
7270 if test -x conf$$.file >/dev/null 2>&1; then
7271 ac_executable_p="test -x"
7272 else
7273 ac_executable_p="test -f"
7275 rm -f conf$$.file
7277 # Extract the first word of "valgrind", so it can be a program name with args.
7278 set dummy valgrind; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 case "$valgrind_path" in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7289 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7290 for ac_dir in $PATH; do
7291 IFS="$ac_save_IFS"
7292 test -z "$ac_dir" && ac_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7295 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7296 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7297 break 2
7300 done
7301 done
7302 IFS="$ac_save_IFS"
7304 esac
7306 valgrind_path="$ac_cv_path_valgrind_path"
7307 if test -n "$valgrind_path"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7309 $as_echo "$valgrind_path" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7315 if test "x$valgrind_path" = "x" \
7316 || (test $have_valgrind_h = no \
7317 && test $gcc_cv_header_memcheck_h = no \
7318 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7319 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7321 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7322 valgrind_command="$valgrind_path -q"
7324 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7330 # Enable code coverage collection
7331 # Check whether --enable-coverage was given.
7332 if test "${enable_coverage+set}" = set; then :
7333 enableval=$enable_coverage; case "${enableval}" in
7334 yes|noopt)
7335 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7337 opt)
7338 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7341 # a.k.a. --disable-coverage
7342 coverage_flags=""
7345 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7347 esac
7348 else
7349 coverage_flags=""
7354 # Check whether --enable-gather-detailed-mem-stats was given.
7355 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7356 enableval=$enable_gather_detailed_mem_stats;
7357 else
7358 enable_gather_detailed_mem_stats=no
7361 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7363 cat >>confdefs.h <<_ACEOF
7364 #define GATHER_STATISTICS $gather_stats
7365 _ACEOF
7368 # Check whether --enable-valgrind-annotations was given.
7369 if test "${enable_valgrind_annotations+set}" = set; then :
7370 enableval=$enable_valgrind_annotations;
7371 else
7372 enable_valgrind_annotations=no
7375 if test x$enable_valgrind_annotations != xno \
7376 || test x$ac_valgrind_checking != x; then
7377 if (test $have_valgrind_h = no \
7378 && test $gcc_cv_header_memcheck_h = no \
7379 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7380 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7383 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7387 # -------------------------------
7388 # Miscenalleous configure options
7389 # -------------------------------
7391 # With stabs
7393 # Check whether --with-stabs was given.
7394 if test "${with_stabs+set}" = set; then :
7395 withval=$with_stabs; stabs="$with_stabs"
7396 else
7397 stabs=no
7401 # Determine whether or not multilibs are enabled.
7402 # Check whether --enable-multilib was given.
7403 if test "${enable_multilib+set}" = set; then :
7404 enableval=$enable_multilib;
7405 else
7406 enable_multilib=yes
7411 # Determine whether or not multiarch is enabled.
7412 # Check whether --enable-multiarch was given.
7413 if test "${enable_multiarch+set}" = set; then :
7414 enableval=$enable_multiarch; case "${enableval}" in
7415 yes|no|auto) enable_multiarch=$enableval;;
7416 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7417 esac
7418 else
7419 enable_multiarch=auto
7422 if test x${enable_multiarch} = xauto; then
7423 if test x${with_native_system_header_dir} != x; then
7424 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7425 enable_multiarch=no
7427 if test x$host != x$target && test "x$with_sysroot" = x; then
7428 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7429 enable_multiarch=no
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7433 $as_echo_n "checking for multiarch configuration... " >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7436 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7438 # needed for setting the multiarch name for soft-float/hard-float ABIs
7442 # Enable __cxa_atexit for C++.
7443 # Check whether --enable-__cxa_atexit was given.
7444 if test "${enable___cxa_atexit+set}" = set; then :
7445 enableval=$enable___cxa_atexit;
7449 # Enable C extension for decimal float if target supports it.
7451 # Check whether --enable-decimal-float was given.
7452 if test "${enable_decimal_float+set}" = set; then :
7453 enableval=$enable_decimal_float;
7454 case $enable_decimal_float in
7455 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7456 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7457 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7458 esac
7460 else
7462 case $target in
7463 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7464 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7465 i?86*-*-mingw* | x86_64*-*-mingw* | \
7466 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7467 enable_decimal_float=yes
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7471 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7472 enable_decimal_float=no
7474 esac
7479 # x86's use BID format instead of DPD
7480 case x$enable_decimal_float in
7481 xyes)
7482 case $target in
7483 i?86*-*-* | x86_64*-*-*)
7484 enable_decimal_float=bid
7487 enable_decimal_float=dpd
7489 esac
7490 default_decimal_float=$enable_decimal_float
7492 xno)
7493 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7494 # dependency on libdecnumber.
7495 default_decimal_float=dpd
7497 esac
7502 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7504 cat >>confdefs.h <<_ACEOF
7505 #define ENABLE_DECIMAL_FLOAT $dfp
7506 _ACEOF
7509 # Use default_decimal_float for dependency.
7510 enable_decimal_float=$default_decimal_float
7512 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7514 cat >>confdefs.h <<_ACEOF
7515 #define ENABLE_DECIMAL_BID_FORMAT $bid
7516 _ACEOF
7519 # Enable C extension for fixed-point arithmetic.
7520 # Check whether --enable-fixed-point was given.
7521 if test "${enable_fixed_point+set}" = set; then :
7522 enableval=$enable_fixed_point;
7523 else
7525 case $target in
7526 arm*)
7527 enable_fixed_point=yes
7530 mips*-*-*)
7531 enable_fixed_point=yes
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7535 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7536 enable_fixed_point=no
7538 esac
7544 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7546 cat >>confdefs.h <<_ACEOF
7547 #define ENABLE_FIXED_POINT $fixedpoint
7548 _ACEOF
7551 # Enable threads
7552 # Pass with no value to take the default
7553 # Pass with a value to specify a thread package
7554 # Check whether --enable-threads was given.
7555 if test "${enable_threads+set}" = set; then :
7556 enableval=$enable_threads;
7557 else
7558 enable_threads=''
7562 # Check whether --enable-tls was given.
7563 if test "${enable_tls+set}" = set; then :
7564 enableval=$enable_tls;
7565 case $enable_tls in
7566 yes | no) ;;
7567 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7568 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7569 esac
7571 else
7572 enable_tls=''
7576 # Check whether --enable-vtable-verify was given.
7577 if test "${enable_vtable_verify+set}" = set; then :
7578 enableval=$enable_vtable_verify;
7579 else
7580 enable_vtable_verify=no
7583 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7585 cat >>confdefs.h <<_ACEOF
7586 #define ENABLE_VTABLE_VERIFY $vtable_verify
7587 _ACEOF
7590 # Check whether --enable-objc-gc was given.
7591 if test "${enable_objc_gc+set}" = set; then :
7592 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7593 objc_boehm_gc=''
7594 else
7595 objc_boehm_gc=1
7597 else
7598 objc_boehm_gc=''
7603 # Check whether --with-dwarf2 was given.
7604 if test "${with_dwarf2+set}" = set; then :
7605 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7606 else
7607 dwarf2=no
7611 # Check whether --enable-shared was given.
7612 if test "${enable_shared+set}" = set; then :
7613 enableval=$enable_shared;
7614 case $enable_shared in
7615 yes | no) ;;
7617 enable_shared=no
7618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7619 for pkg in $enableval; do
7620 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7621 enable_shared=yes
7623 done
7624 IFS="$ac_save_ifs"
7626 esac
7628 else
7629 enable_shared=yes
7634 # Check whether --enable-gcov was given.
7635 if test "${enable_gcov+set}" = set; then :
7636 enableval=$enable_gcov;
7637 else
7638 enable_gcov=yes
7644 # Check whether --with-specs was given.
7645 if test "${with_specs+set}" = set; then :
7646 withval=$with_specs; CONFIGURE_SPECS=$withval
7647 else
7648 CONFIGURE_SPECS=
7656 # Check whether --with-pkgversion was given.
7657 if test "${with_pkgversion+set}" = set; then :
7658 withval=$with_pkgversion; case "$withval" in
7659 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7660 no) PKGVERSION= ;;
7661 *) PKGVERSION="($withval) " ;;
7662 esac
7663 else
7664 PKGVERSION="(GCC) "
7672 # Check whether --with-bugurl was given.
7673 if test "${with_bugurl+set}" = set; then :
7674 withval=$with_bugurl; case "$withval" in
7675 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7676 no) BUGURL=
7678 *) BUGURL="$withval"
7680 esac
7681 else
7682 BUGURL="https://gcc.gnu.org/bugs/"
7686 case ${BUGURL} in
7688 REPORT_BUGS_TO=
7689 REPORT_BUGS_TEXI=
7692 REPORT_BUGS_TO="<$BUGURL>"
7693 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7695 esac;
7700 # Sanity check enable_languages in case someone does not run the toplevel
7701 # configure # script.
7702 # Check whether --enable-languages was given.
7703 if test "${enable_languages+set}" = set; then :
7704 enableval=$enable_languages; case ,${enable_languages}, in
7705 ,,|,yes,)
7706 # go safe -- we cannot be much sure without the toplevel
7707 # configure's
7708 # analysis of which target libs are present and usable
7709 enable_languages=c
7711 *,all,*)
7712 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7714 *,c,*)
7717 enable_languages=c,${enable_languages}
7719 esac
7720 else
7721 enable_languages=c
7725 if test x"$enable_as_accelerator_for" != x; then
7727 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7729 enable_as_accelerator=yes
7730 case "${target}" in
7731 *-intelmicemul-*)
7732 # In this case we expect offload compiler to be built as native, so we
7733 # need to rename the driver to avoid clashes with host's drivers.
7734 program_transform_name="s&^&${target}-&" ;;
7735 esac
7736 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7737 program_transform_name=`echo $program_transform_name | sed $sedscript`
7738 accel_dir_suffix=/accel/${target_noncanonical}
7739 real_target_noncanonical=${enable_as_accelerator_for}
7745 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7746 tgt=`echo $tgt | sed 's/=.*//'`
7748 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7749 enable_hsa=1
7750 else
7751 enable_offloading=1
7754 if test x"$offload_targets" = x; then
7755 offload_targets=$tgt
7756 else
7757 offload_targets="$offload_targets,$tgt"
7759 done
7761 cat >>confdefs.h <<_ACEOF
7762 #define OFFLOAD_TARGETS "$offload_targets"
7763 _ACEOF
7765 if test x"$enable_offloading" != x; then
7767 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7769 else
7771 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7775 if test x"$enable_hsa" = x1 ; then
7777 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7782 # Check whether --with-multilib-list was given.
7783 if test "${with_multilib_list+set}" = set; then :
7784 withval=$with_multilib_list; :
7785 else
7786 with_multilib_list=default
7790 # -------------------------
7791 # Checks for other programs
7792 # -------------------------
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7795 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7796 set x ${MAKE-make}
7797 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7798 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 cat >conftest.make <<\_ACEOF
7802 SHELL = /bin/sh
7803 all:
7804 @echo '@@@%%%=$(MAKE)=@@@%%%'
7805 _ACEOF
7806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7807 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7808 *@@@%%%=?*=@@@%%%*)
7809 eval ac_cv_prog_make_${ac_make}_set=yes;;
7811 eval ac_cv_prog_make_${ac_make}_set=no;;
7812 esac
7813 rm -f conftest.make
7815 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7817 $as_echo "yes" >&6; }
7818 SET_MAKE=
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 SET_MAKE="MAKE=${MAKE-make}"
7826 # Find some useful tools
7827 for ac_prog in gawk mawk nawk awk
7829 # Extract the first word of "$ac_prog", so it can be a program name with args.
7830 set dummy $ac_prog; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if test "${ac_cv_prog_AWK+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$AWK"; then
7837 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_prog_AWK="$ac_prog"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7850 done
7851 done
7852 IFS=$as_save_IFS
7856 AWK=$ac_cv_prog_AWK
7857 if test -n "$AWK"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7859 $as_echo "$AWK" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7866 test -n "$AWK" && break
7867 done
7869 # We need awk to create options.c and options.h.
7870 # Bail out if it's missing.
7871 case ${AWK} in
7872 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7873 esac
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7876 $as_echo_n "checking whether ln -s works... " >&6; }
7877 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 rm -f conftestdata_t
7881 echo >conftestdata_f
7882 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7883 then
7884 gcc_cv_prog_LN_S="ln -s"
7885 else
7886 if ln conftestdata_f conftestdata_t 2>/dev/null
7887 then
7888 gcc_cv_prog_LN_S=ln
7889 else
7890 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7891 then
7892 gcc_cv_prog_LN_S="cp -p"
7893 else
7894 gcc_cv_prog_LN_S=cp
7898 rm -f conftestdata_f conftestdata_t
7901 LN_S="$gcc_cv_prog_LN_S"
7902 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7904 $as_echo "yes" >&6; }
7905 else
7906 if test "$gcc_cv_prog_LN_S" = "ln"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7908 $as_echo "no, using ln" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7911 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7916 $as_echo_n "checking whether ln works... " >&6; }
7917 if test "${acx_cv_prog_LN+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 rm -f conftestdata_t
7921 echo >conftestdata_f
7922 if ln conftestdata_f conftestdata_t 2>/dev/null
7923 then
7924 acx_cv_prog_LN=ln
7925 else
7926 acx_cv_prog_LN=no
7928 rm -f conftestdata_f conftestdata_t
7931 if test $acx_cv_prog_LN = no; then
7932 LN="$LN_S"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7934 $as_echo "no, using $LN" >&6; }
7935 else
7936 LN="$acx_cv_prog_LN"
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938 $as_echo "yes" >&6; }
7941 if test -n "$ac_tool_prefix"; then
7942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$RANLIB"; then
7950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7963 done
7964 done
7965 IFS=$as_save_IFS
7969 RANLIB=$ac_cv_prog_RANLIB
7970 if test -n "$RANLIB"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7972 $as_echo "$RANLIB" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7980 if test -z "$ac_cv_prog_RANLIB"; then
7981 ac_ct_RANLIB=$RANLIB
7982 # Extract the first word of "ranlib", so it can be a program name with args.
7983 set dummy ranlib; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$ac_ct_RANLIB"; then
7990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_ac_ct_RANLIB="ranlib"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8010 if test -n "$ac_ct_RANLIB"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8012 $as_echo "$ac_ct_RANLIB" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8018 if test "x$ac_ct_RANLIB" = x; then
8019 RANLIB=":"
8020 else
8021 case $cross_compiling:$ac_tool_warned in
8022 yes:)
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8025 ac_tool_warned=yes ;;
8026 esac
8027 RANLIB=$ac_ct_RANLIB
8029 else
8030 RANLIB="$ac_cv_prog_RANLIB"
8033 ranlib_flags=""
8036 # Find a good install program. We prefer a C program (faster),
8037 # so one script is as good as another. But avoid the broken or
8038 # incompatible versions:
8039 # SysV /etc/install, /usr/sbin/install
8040 # SunOS /usr/etc/install
8041 # IRIX /sbin/install
8042 # AIX /bin/install
8043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8045 # ./install, which can be erroneously created by make from ./install.sh.
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8047 $as_echo_n "checking for a BSD compatible install... " >&6; }
8048 if test -z "$INSTALL"; then
8049 if test "${ac_cv_path_install+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8053 for ac_dir in $PATH; do
8054 # Account for people who put trailing slashes in PATH elements.
8055 case "$ac_dir/" in
8056 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8058 # OSF1 and SCO ODT 3.0 have their own names for install.
8059 for ac_prog in ginstall scoinst install; do
8060 if test -f $ac_dir/$ac_prog; then
8061 if test $ac_prog = install &&
8062 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8063 # AIX install. It has an incompatible calling convention.
8064 # OSF/1 installbsd also uses dspmsg, but is usable.
8066 else
8067 ac_cv_path_install="$ac_dir/$ac_prog -c"
8068 break 2
8071 done
8073 esac
8074 done
8075 IFS="$ac_save_IFS"
8078 if test "${ac_cv_path_install+set}" = set; then
8079 INSTALL="$ac_cv_path_install"
8080 else
8081 # As a last resort, use the slow shell script. We don't cache a
8082 # path for INSTALL within a source directory, because that will
8083 # break other packages using the cache if that directory is
8084 # removed, or if the path is relative.
8085 INSTALL="$ac_install_sh"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8089 $as_echo "$INSTALL" >&6; }
8091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8092 # It thinks the first close brace ends the variable substitution.
8093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8098 # See if cmp has --ignore-initial.
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8100 $as_echo_n "checking for cmp's capabilities... " >&6; }
8101 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 echo abfoo >t1
8105 echo cdfoo >t2
8106 gcc_cv_prog_cmp_skip=slowcompare
8107 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8108 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8110 else
8111 gcc_cv_prog_cmp_skip=gnucompare
8114 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8115 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8116 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8118 else
8119 gcc_cv_prog_cmp_skip=fastcompare
8123 rm t1 t2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8127 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8128 make_compare_target=$gcc_cv_prog_cmp_skip
8132 # See if we have the mktemp command.
8133 # Extract the first word of "mktemp", so it can be a program name with args.
8134 set dummy mktemp; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 if test -n "$have_mktemp_command"; then
8141 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150 ac_cv_prog_have_mktemp_command="yes"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 break 2
8154 done
8155 done
8156 IFS=$as_save_IFS
8158 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8161 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8162 if test -n "$have_mktemp_command"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8164 $as_echo "$have_mktemp_command" >&6; }
8165 else
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8172 # See if makeinfo has been installed and is modern enough
8173 # that we can use it.
8175 # Extract the first word of "makeinfo", so it can be a program name with args.
8176 set dummy makeinfo; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 if test -n "$MAKEINFO"; then
8183 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8192 ac_cv_prog_MAKEINFO="makeinfo"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8196 done
8197 done
8198 IFS=$as_save_IFS
8202 MAKEINFO=$ac_cv_prog_MAKEINFO
8203 if test -n "$MAKEINFO"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8205 $as_echo "$MAKEINFO" >&6; }
8206 else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8212 if test -n "$MAKEINFO"; then
8213 # Found it, now check the version.
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8215 $as_echo_n "checking for modern makeinfo... " >&6; }
8216 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8220 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8222 case $ac_prog_version in
8223 '') gcc_cv_prog_makeinfo_modern=no;;
8224 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8225 *) gcc_cv_prog_makeinfo_modern=no;;
8226 esac
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8230 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8231 else
8232 gcc_cv_prog_makeinfo_modern=no
8234 if test $gcc_cv_prog_makeinfo_modern = no; then
8235 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8238 if test $gcc_cv_prog_makeinfo_modern = no; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8240 *** Makeinfo is missing or too old.
8241 *** Info documentation will not be built." >&5
8242 $as_echo "$as_me: WARNING:
8243 *** Makeinfo is missing or too old.
8244 *** Info documentation will not be built." >&2;}
8245 BUILD_INFO=
8246 else
8247 BUILD_INFO=info
8251 # Is pod2man recent enough to regenerate manpages?
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8253 $as_echo_n "checking for recent Pod::Man... " >&6; }
8254 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8256 $as_echo "yes" >&6; }
8257 GENERATED_MANPAGES=generated-manpages
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 GENERATED_MANPAGES=
8265 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8267 # How about lex?
8268 for ac_prog in flex
8270 # Extract the first word of "$ac_prog", so it can be a program name with args.
8271 set dummy $ac_prog; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_FLEX+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 if test -n "$FLEX"; then
8278 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8279 else
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_FLEX="$ac_prog"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8291 done
8292 done
8293 IFS=$as_save_IFS
8297 FLEX=$ac_cv_prog_FLEX
8298 if test -n "$FLEX"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8300 $as_echo "$FLEX" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8307 test -n "$FLEX" && break
8308 done
8309 test -n "$FLEX" || FLEX="$MISSING flex"
8312 # Bison?
8313 for ac_prog in bison
8315 # Extract the first word of "$ac_prog", so it can be a program name with args.
8316 set dummy $ac_prog; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_BISON+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$BISON"; then
8323 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_BISON="$ac_prog"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8336 done
8337 done
8338 IFS=$as_save_IFS
8342 BISON=$ac_cv_prog_BISON
8343 if test -n "$BISON"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8345 $as_echo "$BISON" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8352 test -n "$BISON" && break
8353 done
8354 test -n "$BISON" || BISON="$MISSING bison"
8357 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8358 # check for build == host before using them.
8360 # NM
8361 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8362 && test -d ../binutils ; then
8363 NM='${objdir}/../binutils/nm-new'
8364 else
8365 # Extract the first word of "nm", so it can be a program name with args.
8366 set dummy nm; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if test "${ac_cv_prog_NM+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 if test -n "$NM"; then
8373 ac_cv_prog_NM="$NM" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8378 IFS=$as_save_IFS
8379 test -z "$as_dir" && as_dir=.
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382 ac_cv_prog_NM="nm"
8383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384 break 2
8386 done
8387 done
8388 IFS=$as_save_IFS
8390 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8393 NM=$ac_cv_prog_NM
8394 if test -n "$NM"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8396 $as_echo "$NM" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8405 # AR
8406 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8407 && test -d ../binutils ; then
8408 AR='${objdir}/../binutils/ar'
8409 else
8410 # Extract the first word of "ar", so it can be a program name with args.
8411 set dummy ar; ac_word=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if test "${ac_cv_prog_AR+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 if test -n "$AR"; then
8418 ac_cv_prog_AR="$AR" # Let the user override the test.
8419 else
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_prog_AR="ar"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8431 done
8432 done
8433 IFS=$as_save_IFS
8435 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8438 AR=$ac_cv_prog_AR
8439 if test -n "$AR"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8441 $as_echo "$AR" >&6; }
8442 else
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8450 # The jit documentation looks better if built with sphinx, but can be
8451 # built with texinfo if sphinx is not available.
8452 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8453 # Extract the first word of "sphinx-build", so it can be a program name with args.
8454 set dummy sphinx-build; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 if test -n "$doc_build_sys"; then
8461 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470 ac_cv_prog_doc_build_sys="sphinx"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8474 done
8475 done
8476 IFS=$as_save_IFS
8478 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8481 doc_build_sys=$ac_cv_prog_doc_build_sys
8482 if test -n "$doc_build_sys"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8484 $as_echo "$doc_build_sys" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8492 # --------------------
8493 # Checks for C headers
8494 # --------------------
8496 # Need to reject headers which give warnings, so that the -Werror bootstrap
8497 # works later. *sigh* This needs to come before all header checks.
8499 ac_c_preproc_warn_flag=yes
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8502 $as_echo_n "checking for ANSI C header files... " >&6; }
8503 if test "${ac_cv_header_stdc+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <stdlib.h>
8509 #include <stdarg.h>
8510 #include <string.h>
8511 #include <float.h>
8514 main ()
8518 return 0;
8520 _ACEOF
8521 if ac_fn_cxx_try_compile "$LINENO"; then :
8522 ac_cv_header_stdc=yes
8523 else
8524 ac_cv_header_stdc=no
8526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 if test $ac_cv_header_stdc = yes; then
8529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 #include <string.h>
8534 _ACEOF
8535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8536 $EGREP "memchr" >/dev/null 2>&1; then :
8538 else
8539 ac_cv_header_stdc=no
8541 rm -f conftest*
8545 if test $ac_cv_header_stdc = yes; then
8546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <stdlib.h>
8551 _ACEOF
8552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8553 $EGREP "free" >/dev/null 2>&1; then :
8555 else
8556 ac_cv_header_stdc=no
8558 rm -f conftest*
8562 if test $ac_cv_header_stdc = yes; then
8563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8564 if test "$cross_compiling" = yes; then :
8566 else
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 #include <ctype.h>
8570 #include <stdlib.h>
8571 #if ((' ' & 0x0FF) == 0x020)
8572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8574 #else
8575 # define ISLOWER(c) \
8576 (('a' <= (c) && (c) <= 'i') \
8577 || ('j' <= (c) && (c) <= 'r') \
8578 || ('s' <= (c) && (c) <= 'z'))
8579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8580 #endif
8582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8584 main ()
8586 int i;
8587 for (i = 0; i < 256; i++)
8588 if (XOR (islower (i), ISLOWER (i))
8589 || toupper (i) != TOUPPER (i))
8590 return 2;
8591 return 0;
8593 _ACEOF
8594 if ac_fn_cxx_try_run "$LINENO"; then :
8596 else
8597 ac_cv_header_stdc=no
8599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8600 conftest.$ac_objext conftest.beam conftest.$ac_ext
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8606 $as_echo "$ac_cv_header_stdc" >&6; }
8607 if test $ac_cv_header_stdc = yes; then
8609 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8614 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8615 if test "${ac_cv_header_time+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <sys/time.h>
8622 #include <time.h>
8625 main ()
8627 if ((struct tm *) 0)
8628 return 0;
8630 return 0;
8632 _ACEOF
8633 if ac_fn_cxx_try_compile "$LINENO"; then :
8634 ac_cv_header_time=yes
8635 else
8636 ac_cv_header_time=no
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8641 $as_echo "$ac_cv_header_time" >&6; }
8642 if test $ac_cv_header_time = yes; then
8644 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8649 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8650 if test "${gcc_cv_header_string+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 #include <string.h>
8656 #include <strings.h>
8658 main ()
8662 return 0;
8664 _ACEOF
8665 if ac_fn_cxx_try_compile "$LINENO"; then :
8666 gcc_cv_header_string=yes
8667 else
8668 gcc_cv_header_string=no
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8673 $as_echo "$gcc_cv_header_string" >&6; }
8674 if test $gcc_cv_header_string = yes; then
8676 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8681 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8682 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <sys/types.h>
8688 #include <sys/wait.h>
8689 #ifndef WEXITSTATUS
8690 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8691 #endif
8692 #ifndef WIFEXITED
8693 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8694 #endif
8697 main ()
8699 int s;
8700 wait (&s);
8701 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8703 return 0;
8705 _ACEOF
8706 if ac_fn_cxx_try_compile "$LINENO"; then :
8707 ac_cv_header_sys_wait_h=yes
8708 else
8709 ac_cv_header_sys_wait_h=no
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8714 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8715 if test $ac_cv_header_sys_wait_h = yes; then
8717 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8722 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8723 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8725 else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 #include <sys/types.h>
8729 #include <termios.h>
8730 #ifdef TIOCGWINSZ
8732 #endif
8734 _ACEOF
8735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8736 $EGREP "yes" >/dev/null 2>&1; then :
8737 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8738 else
8739 ac_cv_sys_tiocgwinsz_in_termios_h=no
8741 rm -f conftest*
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8745 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8747 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8749 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8750 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755 #include <sys/types.h>
8756 #include <sys/ioctl.h>
8757 #ifdef TIOCGWINSZ
8759 #endif
8761 _ACEOF
8762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8763 $EGREP "yes" >/dev/null 2>&1; then :
8764 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8765 else
8766 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8768 rm -f conftest*
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8772 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8774 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8776 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8781 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8782 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8783 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8784 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8785 do :
8786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8787 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8788 eval as_val=\$$as_ac_Header
8789 if test "x$as_val" = x""yes; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8792 _ACEOF
8795 done
8798 # Check for thread headers.
8799 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8800 if test "x$ac_cv_header_thread_h" = x""yes; then :
8801 have_thread_h=yes
8802 else
8803 have_thread_h=
8806 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8807 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8808 have_pthread_h=yes
8809 else
8810 have_pthread_h=
8814 # These tests can't be done till we know if we have limits.h.
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8816 $as_echo_n "checking for CHAR_BIT... " >&6; }
8817 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h. */
8822 #ifdef HAVE_LIMITS_H
8823 #include <limits.h>
8824 #endif
8825 #ifdef CHAR_BIT
8826 found
8827 #endif
8828 _ACEOF
8829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8830 $EGREP "found" >/dev/null 2>&1; then :
8831 gcc_cv_decl_char_bit=yes
8832 else
8833 gcc_cv_decl_char_bit=no
8835 rm -f conftest*
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8840 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8841 if test $gcc_cv_decl_char_bit = no; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8843 $as_echo_n "checking number of bits in a byte... " >&6; }
8844 if test "${gcc_cv_c_nbby+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8848 gcc_cv_c_nbby=
8849 while test $i -lt 65; do
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8854 main ()
8856 switch(0) {
8857 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8858 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8861 return 0;
8863 _ACEOF
8864 if ac_fn_cxx_try_compile "$LINENO"; then :
8865 gcc_cv_c_nbby=$i; break
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 i=`expr $i + 1`
8869 done
8870 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8874 $as_echo "$gcc_cv_c_nbby" >&6; }
8875 if test $gcc_cv_c_nbby = failed; then
8876 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8877 else
8879 cat >>confdefs.h <<_ACEOF
8880 #define CHAR_BIT $gcc_cv_c_nbby
8881 _ACEOF
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8886 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8887 if test "${ac_cv_c_bigendian+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 ac_cv_c_bigendian=unknown
8891 # See if we're dealing with a universal compiler.
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8894 #ifndef __APPLE_CC__
8895 not a universal capable compiler
8896 #endif
8897 typedef int dummy;
8899 _ACEOF
8900 if ac_fn_cxx_try_compile "$LINENO"; then :
8902 # Check for potential -arch flags. It is not universal unless
8903 # there are at least two -arch flags with different values.
8904 ac_arch=
8905 ac_prev=
8906 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8907 if test -n "$ac_prev"; then
8908 case $ac_word in
8909 i?86 | x86_64 | ppc | ppc64)
8910 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8911 ac_arch=$ac_word
8912 else
8913 ac_cv_c_bigendian=universal
8914 break
8917 esac
8918 ac_prev=
8919 elif test "x$ac_word" = "x-arch"; then
8920 ac_prev=arch
8922 done
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 if test $ac_cv_c_bigendian = unknown; then
8926 # See if sys/param.h defines the BYTE_ORDER macro.
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #include <sys/types.h>
8930 #include <sys/param.h>
8933 main ()
8935 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8936 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8937 && LITTLE_ENDIAN)
8938 bogus endian macros
8939 #endif
8942 return 0;
8944 _ACEOF
8945 if ac_fn_cxx_try_compile "$LINENO"; then :
8946 # It does; now see whether it defined to BIG_ENDIAN or not.
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #include <sys/types.h>
8950 #include <sys/param.h>
8953 main ()
8955 #if BYTE_ORDER != BIG_ENDIAN
8956 not big endian
8957 #endif
8960 return 0;
8962 _ACEOF
8963 if ac_fn_cxx_try_compile "$LINENO"; then :
8964 ac_cv_c_bigendian=yes
8965 else
8966 ac_cv_c_bigendian=no
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 if test $ac_cv_c_bigendian = unknown; then
8973 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #include <limits.h>
8979 main ()
8981 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8982 bogus endian macros
8983 #endif
8986 return 0;
8988 _ACEOF
8989 if ac_fn_cxx_try_compile "$LINENO"; then :
8990 # It does; now see whether it defined to _BIG_ENDIAN or not.
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993 #include <limits.h>
8996 main ()
8998 #ifndef _BIG_ENDIAN
8999 not big endian
9000 #endif
9003 return 0;
9005 _ACEOF
9006 if ac_fn_cxx_try_compile "$LINENO"; then :
9007 ac_cv_c_bigendian=yes
9008 else
9009 ac_cv_c_bigendian=no
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 if test $ac_cv_c_bigendian = unknown; then
9016 # Compile a test program.
9017 if test "$cross_compiling" = yes; then :
9018 # Try to guess by grepping values from an object file.
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9021 short int ascii_mm[] =
9022 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9023 short int ascii_ii[] =
9024 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9025 int use_ascii (int i) {
9026 return ascii_mm[i] + ascii_ii[i];
9028 short int ebcdic_ii[] =
9029 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9030 short int ebcdic_mm[] =
9031 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9032 int use_ebcdic (int i) {
9033 return ebcdic_mm[i] + ebcdic_ii[i];
9035 extern int foo;
9038 main ()
9040 return use_ascii (foo) == use_ebcdic (foo);
9042 return 0;
9044 _ACEOF
9045 if ac_fn_cxx_try_compile "$LINENO"; then :
9046 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9047 ac_cv_c_bigendian=yes
9049 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9050 if test "$ac_cv_c_bigendian" = unknown; then
9051 ac_cv_c_bigendian=no
9052 else
9053 # finding both strings is unlikely to happen, but who knows?
9054 ac_cv_c_bigendian=unknown
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 else
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 $ac_includes_default
9064 main ()
9067 /* Are we little or big endian? From Harbison&Steele. */
9068 union
9070 long int l;
9071 char c[sizeof (long int)];
9072 } u;
9073 u.l = 1;
9074 return u.c[sizeof (long int) - 1] == 1;
9077 return 0;
9079 _ACEOF
9080 if ac_fn_cxx_try_run "$LINENO"; then :
9081 ac_cv_c_bigendian=no
9082 else
9083 ac_cv_c_bigendian=yes
9085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9086 conftest.$ac_objext conftest.beam conftest.$ac_ext
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9092 $as_echo "$ac_cv_c_bigendian" >&6; }
9093 case $ac_cv_c_bigendian in #(
9094 yes)
9095 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9096 ;; #(
9098 ;; #(
9099 universal)
9101 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9103 ;; #(
9105 as_fn_error "unknown endianness
9106 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9107 esac
9110 # ----------------------
9111 # Checks for C++ headers
9112 # ----------------------
9114 ac_ext=cpp
9115 ac_cpp='$CXXCPP $CPPFLAGS'
9116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9120 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9121 if test -z "$CXXCPP"; then
9122 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 # Double quotes because CXXCPP needs to be expanded
9126 for CXXCPP in "$CXX -E" "/lib/cpp"
9128 ac_preproc_ok=false
9129 for ac_cxx_preproc_warn_flag in '' yes
9131 # Use a header file that comes with gcc, so configuring glibc
9132 # with a fresh cross-compiler works.
9133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9134 # <limits.h> exists even on freestanding compilers.
9135 # On the NeXT, cc -E runs the code through the compiler's parser,
9136 # not just through cpp. "Syntax error" is here to catch this case.
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 #ifdef __STDC__
9140 # include <limits.h>
9141 #else
9142 # include <assert.h>
9143 #endif
9144 Syntax error
9145 _ACEOF
9146 if ac_fn_cxx_try_cpp "$LINENO"; then :
9148 else
9149 # Broken: fails on valid input.
9150 continue
9152 rm -f conftest.err conftest.$ac_ext
9154 # OK, works on sane cases. Now check whether nonexistent headers
9155 # can be detected and how.
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 #include <ac_nonexistent.h>
9159 _ACEOF
9160 if ac_fn_cxx_try_cpp "$LINENO"; then :
9161 # Broken: success on invalid input.
9162 continue
9163 else
9164 # Passes both tests.
9165 ac_preproc_ok=:
9166 break
9168 rm -f conftest.err conftest.$ac_ext
9170 done
9171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9172 rm -f conftest.err conftest.$ac_ext
9173 if $ac_preproc_ok; then :
9174 break
9177 done
9178 ac_cv_prog_CXXCPP=$CXXCPP
9181 CXXCPP=$ac_cv_prog_CXXCPP
9182 else
9183 ac_cv_prog_CXXCPP=$CXXCPP
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9186 $as_echo "$CXXCPP" >&6; }
9187 ac_preproc_ok=false
9188 for ac_cxx_preproc_warn_flag in '' yes
9190 # Use a header file that comes with gcc, so configuring glibc
9191 # with a fresh cross-compiler works.
9192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9193 # <limits.h> exists even on freestanding compilers.
9194 # On the NeXT, cc -E runs the code through the compiler's parser,
9195 # not just through cpp. "Syntax error" is here to catch this case.
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #ifdef __STDC__
9199 # include <limits.h>
9200 #else
9201 # include <assert.h>
9202 #endif
9203 Syntax error
9204 _ACEOF
9205 if ac_fn_cxx_try_cpp "$LINENO"; then :
9207 else
9208 # Broken: fails on valid input.
9209 continue
9211 rm -f conftest.err conftest.$ac_ext
9213 # OK, works on sane cases. Now check whether nonexistent headers
9214 # can be detected and how.
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217 #include <ac_nonexistent.h>
9218 _ACEOF
9219 if ac_fn_cxx_try_cpp "$LINENO"; then :
9220 # Broken: success on invalid input.
9221 continue
9222 else
9223 # Passes both tests.
9224 ac_preproc_ok=:
9225 break
9227 rm -f conftest.err conftest.$ac_ext
9229 done
9230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9231 rm -f conftest.err conftest.$ac_ext
9232 if $ac_preproc_ok; then :
9234 else
9235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9238 See \`config.log' for more details." >&5
9239 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9240 See \`config.log' for more details." >&2;}; }
9243 ac_ext=cpp
9244 ac_cpp='$CXXCPP $CPPFLAGS'
9245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9250 for ac_header in unordered_map
9251 do :
9252 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9253 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9254 cat >>confdefs.h <<_ACEOF
9255 #define HAVE_UNORDERED_MAP 1
9256 _ACEOF
9259 done
9261 for ac_header in tr1/unordered_map
9262 do :
9263 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9264 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9265 cat >>confdefs.h <<_ACEOF
9266 #define HAVE_TR1_UNORDERED_MAP 1
9267 _ACEOF
9270 done
9272 for ac_header in ext/hash_map
9273 do :
9274 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9275 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9276 cat >>confdefs.h <<_ACEOF
9277 #define HAVE_EXT_HASH_MAP 1
9278 _ACEOF
9281 done
9284 # --------
9285 # Dependency checking.
9286 # --------
9288 rm -rf .tst 2>/dev/null
9289 mkdir .tst 2>/dev/null
9290 if test -d .tst; then
9291 am__leading_dot=.
9292 else
9293 am__leading_dot=_
9295 rmdir .tst 2>/dev/null
9297 DEPDIR="${am__leading_dot}deps"
9299 ac_config_commands="$ac_config_commands depdir"
9302 ac_config_commands="$ac_config_commands gccdepdir"
9305 depcc="$CXX" am_compiler_list=
9307 am_depcomp=$ac_aux_dir/depcomp
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9309 $as_echo_n "checking dependency style of $depcc... " >&6; }
9310 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 if test -f "$am_depcomp"; then
9314 # We make a subdir and do the tests there. Otherwise we can end up
9315 # making bogus files that we don't know about and never remove. For
9316 # instance it was reported that on HP-UX the gcc test will end up
9317 # making a dummy file named `D' -- because `-MD' means `put the output
9318 # in D'.
9319 mkdir conftest.dir
9320 # Copy depcomp to subdir because otherwise we won't find it if we're
9321 # using a relative directory.
9322 cp "$am_depcomp" conftest.dir
9323 cd conftest.dir
9324 # We will build objects and dependencies in a subdirectory because
9325 # it helps to detect inapplicable dependency modes. For instance
9326 # both Tru64's cc and ICC support -MD to output dependencies as a
9327 # side effect of compilation, but ICC will put the dependencies in
9328 # the current directory while Tru64 will put them in the object
9329 # directory.
9330 mkdir sub
9332 am_cv_CXX_dependencies_compiler_type=none
9333 if test "$am_compiler_list" = ""; then
9334 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9336 for depmode in $am_compiler_list; do
9337 if test $depmode = none; then break; fi
9339 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9340 # Setup a source with many dependencies, because some compilers
9341 # like to wrap large dependency lists on column 80 (with \), and
9342 # we should not choose a depcomp mode which is confused by this.
9344 # We need to recreate these files for each test, as the compiler may
9345 # overwrite some of them when testing with obscure command lines.
9346 # This happens at least with the AIX C compiler.
9347 : > sub/conftest.c
9348 for i in 1 2 3 4 5 6; do
9349 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9350 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9351 # Solaris 8's {/usr,}/bin/sh.
9352 touch sub/conftst$i.h
9353 done
9354 echo "include sub/conftest.Po" > confmf
9356 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9357 # mode. It turns out that the SunPro C++ compiler does not properly
9358 # handle `-M -o', and we need to detect this.
9359 depcmd="depmode=$depmode \
9360 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9361 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9362 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9363 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9364 if env $depcmd > conftest.err 2>&1 &&
9365 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9366 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9367 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9368 # icc doesn't choke on unknown options, it will just issue warnings
9369 # or remarks (even with -Werror). So we grep stderr for any message
9370 # that says an option was ignored or not supported.
9371 # When given -MP, icc 7.0 and 7.1 complain thusly:
9372 # icc: Command line warning: ignoring option '-M'; no argument required
9373 # The diagnosis changed in icc 8.0:
9374 # icc: Command line remark: option '-MP' not supported
9375 if (grep 'ignoring option' conftest.err ||
9376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9377 am_cv_CXX_dependencies_compiler_type=$depmode
9378 $as_echo "$as_me:$LINENO: success" >&5
9379 break
9382 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9383 sed -e 's/^/| /' < conftest.err >&5
9384 done
9386 cd ..
9387 rm -rf conftest.dir
9388 else
9389 am_cv_CXX_dependencies_compiler_type=none
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9394 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9395 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9396 then as_fn_error "no usable dependency style found" "$LINENO" 5
9397 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9402 # --------
9403 # UNSORTED
9404 # --------
9407 # These libraries may be used by collect2.
9408 # We may need a special search path to get them linked.
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9410 $as_echo_n "checking for collect2 libraries... " >&6; }
9411 if test "${gcc_cv_collect2_libs+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 save_LIBS="$LIBS"
9415 for libs in '' -lld -lmld \
9416 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9417 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9419 LIBS="$libs"
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9426 #ifdef __cplusplus
9427 extern "C"
9428 #endif
9429 char ldopen ();
9431 main ()
9433 return ldopen ();
9435 return 0;
9437 _ACEOF
9438 if ac_fn_cxx_try_link "$LINENO"; then :
9439 gcc_cv_collect2_libs="$libs"; break
9441 rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
9443 done
9444 LIBS="$save_LIBS"
9445 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9448 $as_echo "$gcc_cv_collect2_libs" >&6; }
9449 case $gcc_cv_collect2_libs in
9450 "none required") ;;
9451 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9452 esac
9455 # When building Ada code on Alpha, we need exc_resume which is usually in
9456 # -lexc. So test for it.
9457 save_LIBS="$LIBS"
9458 LIBS=
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9460 $as_echo_n "checking for library containing exc_resume... " >&6; }
9461 if test "${ac_cv_search_exc_resume+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 ac_func_search_save_LIBS=$LIBS
9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h. */
9468 /* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9471 #ifdef __cplusplus
9472 extern "C"
9473 #endif
9474 char exc_resume ();
9476 main ()
9478 return exc_resume ();
9480 return 0;
9482 _ACEOF
9483 for ac_lib in '' exc; do
9484 if test -z "$ac_lib"; then
9485 ac_res="none required"
9486 else
9487 ac_res=-l$ac_lib
9488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9490 if ac_fn_cxx_try_link "$LINENO"; then :
9491 ac_cv_search_exc_resume=$ac_res
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext
9495 if test "${ac_cv_search_exc_resume+set}" = set; then :
9496 break
9498 done
9499 if test "${ac_cv_search_exc_resume+set}" = set; then :
9501 else
9502 ac_cv_search_exc_resume=no
9504 rm conftest.$ac_ext
9505 LIBS=$ac_func_search_save_LIBS
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9508 $as_echo "$ac_cv_search_exc_resume" >&6; }
9509 ac_res=$ac_cv_search_exc_resume
9510 if test "$ac_res" != no; then :
9511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9515 GNAT_LIBEXC="$LIBS"
9516 LIBS="$save_LIBS"
9519 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9520 save_LIBS="$LIBS"
9521 LIBS=
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9523 $as_echo_n "checking for library containing kstat_open... " >&6; }
9524 if test "${ac_cv_search_kstat_open+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 ac_func_search_save_LIBS=$LIBS
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9531 /* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
9534 #ifdef __cplusplus
9535 extern "C"
9536 #endif
9537 char kstat_open ();
9539 main ()
9541 return kstat_open ();
9543 return 0;
9545 _ACEOF
9546 for ac_lib in '' kstat; do
9547 if test -z "$ac_lib"; then
9548 ac_res="none required"
9549 else
9550 ac_res=-l$ac_lib
9551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9553 if ac_fn_cxx_try_link "$LINENO"; then :
9554 ac_cv_search_kstat_open=$ac_res
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext
9558 if test "${ac_cv_search_kstat_open+set}" = set; then :
9559 break
9561 done
9562 if test "${ac_cv_search_kstat_open+set}" = set; then :
9564 else
9565 ac_cv_search_kstat_open=no
9567 rm conftest.$ac_ext
9568 LIBS=$ac_func_search_save_LIBS
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9571 $as_echo "$ac_cv_search_kstat_open" >&6; }
9572 ac_res=$ac_cv_search_kstat_open
9573 if test "$ac_res" != no; then :
9574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9578 EXTRA_GCC_LIBS="$LIBS"
9579 LIBS="$save_LIBS"
9582 # Some systems put ldexp and frexp in libm instead of libc; assume
9583 # they're both in the same place. jcf-dump needs them.
9584 save_LIBS="$LIBS"
9585 LIBS=
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9587 $as_echo_n "checking for library containing ldexp... " >&6; }
9588 if test "${ac_cv_search_ldexp+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 ac_func_search_save_LIBS=$LIBS
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char ldexp ();
9603 main ()
9605 return ldexp ();
9607 return 0;
9609 _ACEOF
9610 for ac_lib in '' m; do
9611 if test -z "$ac_lib"; then
9612 ac_res="none required"
9613 else
9614 ac_res=-l$ac_lib
9615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9617 if ac_fn_cxx_try_link "$LINENO"; then :
9618 ac_cv_search_ldexp=$ac_res
9620 rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext
9622 if test "${ac_cv_search_ldexp+set}" = set; then :
9623 break
9625 done
9626 if test "${ac_cv_search_ldexp+set}" = set; then :
9628 else
9629 ac_cv_search_ldexp=no
9631 rm conftest.$ac_ext
9632 LIBS=$ac_func_search_save_LIBS
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9635 $as_echo "$ac_cv_search_ldexp" >&6; }
9636 ac_res=$ac_cv_search_ldexp
9637 if test "$ac_res" != no; then :
9638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9642 LDEXP_LIB="$LIBS"
9643 LIBS="$save_LIBS"
9646 # Use <inttypes.h> only if it exists,
9647 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9648 # PRId64
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9650 $as_echo_n "checking for inttypes.h... " >&6; }
9651 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 #define __STDC_FORMAT_MACROS
9657 #include <sys/types.h>
9658 #include <inttypes.h>
9660 main ()
9662 intmax_t i = -1;
9663 #ifndef PRId64
9664 choke me
9665 #endif
9667 return 0;
9669 _ACEOF
9670 if ac_fn_cxx_try_compile "$LINENO"; then :
9671 gcc_cv_header_inttypes_h=yes
9672 else
9673 gcc_cv_header_inttypes_h=no
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9679 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9680 if test $gcc_cv_header_inttypes_h = yes; then
9682 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9688 for ac_func in times clock kill getrlimit setrlimit atoq \
9689 popen sysconf strsignal getrusage nl_langinfo \
9690 gettimeofday mbstowcs wcswidth mmap setlocale \
9691 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
9692 do :
9693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9694 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9695 eval as_val=\$$as_ac_var
9696 if test "x$as_val" = x""yes; then :
9697 cat >>confdefs.h <<_ACEOF
9698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9699 _ACEOF
9702 done
9705 if test x$ac_cv_func_mbstowcs = xyes; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9707 $as_echo_n "checking whether mbstowcs works... " >&6; }
9708 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9709 $as_echo_n "(cached) " >&6
9710 else
9711 if test "$cross_compiling" = yes; then :
9712 gcc_cv_func_mbstowcs_works=yes
9713 else
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9716 #include <stdlib.h>
9717 int main()
9719 mbstowcs(0, "", 0);
9720 return 0;
9722 _ACEOF
9723 if ac_fn_cxx_try_run "$LINENO"; then :
9724 gcc_cv_func_mbstowcs_works=yes
9725 else
9726 gcc_cv_func_mbstowcs_works=no
9728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9729 conftest.$ac_objext conftest.beam conftest.$ac_ext
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9734 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9735 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9737 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9742 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9743 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9745 else
9747 cat >>confdefs.h <<_ACEOF
9748 #define ssize_t int
9749 _ACEOF
9753 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9754 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9756 else
9758 cat >>confdefs.h <<_ACEOF
9759 #define caddr_t char *
9760 _ACEOF
9766 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9767 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9768 gcc_header_sys_mman_h=yes
9769 else
9770 gcc_header_sys_mman_h=no
9773 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9774 if test "x$ac_cv_func_mmap" = x""yes; then :
9775 gcc_func_mmap=yes
9776 else
9777 gcc_func_mmap=no
9780 if test "$gcc_header_sys_mman_h" != yes \
9781 || test "$gcc_func_mmap" != yes; then
9782 gcc_cv_func_mmap_file=no
9783 gcc_cv_func_mmap_dev_zero=no
9784 gcc_cv_func_mmap_anon=no
9785 else
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9787 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9788 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 # Add a system to this blacklist if
9792 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9793 # memory area containing the same data that you'd get if you applied
9794 # read() to the same fd. The only system known to have a problem here
9795 # is VMS, where text files have record structure.
9796 case "$host_os" in
9797 *vms* | ultrix*)
9798 gcc_cv_func_mmap_file=no ;;
9800 gcc_cv_func_mmap_file=yes;;
9801 esac
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9804 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9806 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9807 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 # Add a system to this blacklist if it has mmap() but /dev/zero
9811 # does not exist, or if mmapping /dev/zero does not give anonymous
9812 # zeroed pages with both the following properties:
9813 # 1. If you map N consecutive pages in with one call, and then
9814 # unmap any subset of those pages, the pages that were not
9815 # explicitly unmapped remain accessible.
9816 # 2. If you map two adjacent blocks of memory and then unmap them
9817 # both at once, they must both go away.
9818 # Systems known to be in this category are Windows (all variants),
9819 # VMS, and Darwin.
9820 case "$host_os" in
9821 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9822 gcc_cv_func_mmap_dev_zero=no ;;
9824 gcc_cv_func_mmap_dev_zero=yes;;
9825 esac
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9828 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9830 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9832 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9833 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 #include <sys/types.h>
9839 #include <sys/mman.h>
9840 #include <unistd.h>
9842 #ifndef MAP_ANONYMOUS
9843 #define MAP_ANONYMOUS MAP_ANON
9844 #endif
9847 main ()
9849 int n = MAP_ANONYMOUS;
9851 return 0;
9853 _ACEOF
9854 if ac_fn_cxx_try_compile "$LINENO"; then :
9855 gcc_cv_decl_map_anon=yes
9856 else
9857 gcc_cv_decl_map_anon=no
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9862 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9864 if test $gcc_cv_decl_map_anon = no; then
9865 gcc_cv_func_mmap_anon=no
9866 else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9868 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9869 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9873 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9874 # doesn't give anonymous zeroed pages with the same properties listed
9875 # above for use of /dev/zero.
9876 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9877 case "$host_os" in
9878 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9879 gcc_cv_func_mmap_anon=no ;;
9881 gcc_cv_func_mmap_anon=yes;;
9882 esac
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9885 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9889 if test $gcc_cv_func_mmap_file = yes; then
9891 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9894 if test $gcc_cv_func_mmap_dev_zero = yes; then
9896 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9899 if test $gcc_cv_func_mmap_anon = yes; then
9901 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9906 case "${host}" in
9907 *-*-*vms*)
9908 # Under VMS, vfork works very differently than on Unix. The standard test
9909 # won't work, and it isn't easily adaptable. It makes more sense to
9910 # just force it.
9911 ac_cv_func_vfork_works=yes
9913 esac
9914 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9915 if test "x$ac_cv_type_pid_t" = x""yes; then :
9917 else
9919 cat >>confdefs.h <<_ACEOF
9920 #define pid_t int
9921 _ACEOF
9925 for ac_header in vfork.h
9926 do :
9927 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9928 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9929 cat >>confdefs.h <<_ACEOF
9930 #define HAVE_VFORK_H 1
9931 _ACEOF
9934 done
9936 for ac_func in fork vfork
9937 do :
9938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9940 eval as_val=\$$as_ac_var
9941 if test "x$as_val" = x""yes; then :
9942 cat >>confdefs.h <<_ACEOF
9943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9944 _ACEOF
9947 done
9949 if test "x$ac_cv_func_fork" = xyes; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9951 $as_echo_n "checking for working fork... " >&6; }
9952 if test "${ac_cv_func_fork_works+set}" = set; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 if test "$cross_compiling" = yes; then :
9956 ac_cv_func_fork_works=cross
9957 else
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960 $ac_includes_default
9962 main ()
9965 /* By Ruediger Kuhlmann. */
9966 return fork () < 0;
9969 return 0;
9971 _ACEOF
9972 if ac_fn_cxx_try_run "$LINENO"; then :
9973 ac_cv_func_fork_works=yes
9974 else
9975 ac_cv_func_fork_works=no
9977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9978 conftest.$ac_objext conftest.beam conftest.$ac_ext
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9983 $as_echo "$ac_cv_func_fork_works" >&6; }
9985 else
9986 ac_cv_func_fork_works=$ac_cv_func_fork
9988 if test "x$ac_cv_func_fork_works" = xcross; then
9989 case $host in
9990 *-*-amigaos* | *-*-msdosdjgpp*)
9991 # Override, as these systems have only a dummy fork() stub
9992 ac_cv_func_fork_works=no
9995 ac_cv_func_fork_works=yes
9997 esac
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9999 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10001 ac_cv_func_vfork_works=$ac_cv_func_vfork
10002 if test "x$ac_cv_func_vfork" = xyes; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10004 $as_echo_n "checking for working vfork... " >&6; }
10005 if test "${ac_cv_func_vfork_works+set}" = set; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 if test "$cross_compiling" = yes; then :
10009 ac_cv_func_vfork_works=cross
10010 else
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 /* Thanks to Paul Eggert for this test. */
10014 $ac_includes_default
10015 #include <sys/wait.h>
10016 #ifdef HAVE_VFORK_H
10017 # include <vfork.h>
10018 #endif
10019 /* On some sparc systems, changes by the child to local and incoming
10020 argument registers are propagated back to the parent. The compiler
10021 is told about this with #include <vfork.h>, but some compilers
10022 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10023 static variable whose address is put into a register that is
10024 clobbered by the vfork. */
10025 static void
10026 #ifdef __cplusplus
10027 sparc_address_test (int arg)
10028 # else
10029 sparc_address_test (arg) int arg;
10030 #endif
10032 static pid_t child;
10033 if (!child) {
10034 child = vfork ();
10035 if (child < 0) {
10036 perror ("vfork");
10037 _exit(2);
10039 if (!child) {
10040 arg = getpid();
10041 write(-1, "", 0);
10042 _exit (arg);
10048 main ()
10050 pid_t parent = getpid ();
10051 pid_t child;
10053 sparc_address_test (0);
10055 child = vfork ();
10057 if (child == 0) {
10058 /* Here is another test for sparc vfork register problems. This
10059 test uses lots of local variables, at least as many local
10060 variables as main has allocated so far including compiler
10061 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10062 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10063 reuse the register of parent for one of the local variables,
10064 since it will think that parent can't possibly be used any more
10065 in this routine. Assigning to the local variable will thus
10066 munge parent in the parent process. */
10067 pid_t
10068 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10069 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10070 /* Convince the compiler that p..p7 are live; otherwise, it might
10071 use the same hardware register for all 8 local variables. */
10072 if (p != p1 || p != p2 || p != p3 || p != p4
10073 || p != p5 || p != p6 || p != p7)
10074 _exit(1);
10076 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10077 from child file descriptors. If the child closes a descriptor
10078 before it execs or exits, this munges the parent's descriptor
10079 as well. Test for this by closing stdout in the child. */
10080 _exit(close(fileno(stdout)) != 0);
10081 } else {
10082 int status;
10083 struct stat st;
10085 while (wait(&status) != child)
10087 return (
10088 /* Was there some problem with vforking? */
10089 child < 0
10091 /* Did the child fail? (This shouldn't happen.) */
10092 || status
10094 /* Did the vfork/compiler bug occur? */
10095 || parent != getpid()
10097 /* Did the file descriptor bug occur? */
10098 || fstat(fileno(stdout), &st) != 0
10102 _ACEOF
10103 if ac_fn_cxx_try_run "$LINENO"; then :
10104 ac_cv_func_vfork_works=yes
10105 else
10106 ac_cv_func_vfork_works=no
10108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10109 conftest.$ac_objext conftest.beam conftest.$ac_ext
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10114 $as_echo "$ac_cv_func_vfork_works" >&6; }
10117 if test "x$ac_cv_func_fork_works" = xcross; then
10118 ac_cv_func_vfork_works=$ac_cv_func_vfork
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10120 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10123 if test "x$ac_cv_func_vfork_works" = xyes; then
10125 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10127 else
10129 $as_echo "#define vfork fork" >>confdefs.h
10132 if test "x$ac_cv_func_fork_works" = xyes; then
10134 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10140 if test "X$prefix" = "XNONE"; then
10141 acl_final_prefix="$ac_default_prefix"
10142 else
10143 acl_final_prefix="$prefix"
10145 if test "X$exec_prefix" = "XNONE"; then
10146 acl_final_exec_prefix='${prefix}'
10147 else
10148 acl_final_exec_prefix="$exec_prefix"
10150 acl_save_prefix="$prefix"
10151 prefix="$acl_final_prefix"
10152 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10153 prefix="$acl_save_prefix"
10156 # Check whether --with-gnu-ld was given.
10157 if test "${with_gnu_ld+set}" = set; then :
10158 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10159 else
10160 with_gnu_ld=no
10163 # Prepare PATH_SEPARATOR.
10164 # The user is always right.
10165 if test "${PATH_SEPARATOR+set}" != set; then
10166 echo "#! /bin/sh" >conf$$.sh
10167 echo "exit 0" >>conf$$.sh
10168 chmod +x conf$$.sh
10169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10170 PATH_SEPARATOR=';'
10171 else
10172 PATH_SEPARATOR=:
10174 rm -f conf$$.sh
10176 ac_prog=ld
10177 if test "$GCC" = yes; then
10178 # Check if gcc -print-prog-name=ld gives a path.
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10180 $as_echo_n "checking for ld used by GCC... " >&6; }
10181 case $host in
10182 *-*-mingw*)
10183 # gcc leaves a trailing carriage return which upsets mingw
10184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10187 esac
10188 case $ac_prog in
10189 # Accept absolute paths.
10190 [\\/]* | [A-Za-z]:[\\/]*)
10191 re_direlt='/[^/][^/]*/\.\./'
10192 # Canonicalize the path of ld
10193 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10195 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10196 done
10197 test -z "$LD" && LD="$ac_prog"
10200 # If it fails, then pretend we aren't using GCC.
10201 ac_prog=ld
10204 # If it is relative, then search for the first ld in PATH.
10205 with_gnu_ld=unknown
10207 esac
10208 elif test "$with_gnu_ld" = yes; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10210 $as_echo_n "checking for GNU ld... " >&6; }
10211 else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10213 $as_echo_n "checking for non-GNU ld... " >&6; }
10215 if test "${acl_cv_path_LD+set}" = set; then :
10216 $as_echo_n "(cached) " >&6
10217 else
10218 if test -z "$LD"; then
10219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10220 for ac_dir in $PATH; do
10221 test -z "$ac_dir" && ac_dir=.
10222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10223 acl_cv_path_LD="$ac_dir/$ac_prog"
10224 # Check to see if the program is GNU ld. I'd rather use --version,
10225 # but apparently some GNU ld's only accept -v.
10226 # Break only if it was the GNU/non-GNU ld that we prefer.
10227 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10228 test "$with_gnu_ld" != no && break
10229 else
10230 test "$with_gnu_ld" != yes && break
10233 done
10234 IFS="$ac_save_ifs"
10235 else
10236 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10240 LD="$acl_cv_path_LD"
10241 if test -n "$LD"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10243 $as_echo "$LD" >&6; }
10244 else
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10248 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10251 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10255 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10256 acl_cv_prog_gnu_ld=yes
10257 else
10258 acl_cv_prog_gnu_ld=no
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10262 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10263 with_gnu_ld=$acl_cv_prog_gnu_ld
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10268 $as_echo_n "checking for shared library run path origin... " >&6; }
10269 if test "${acl_cv_rpath+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10273 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10274 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10275 . ./conftest.sh
10276 rm -f ./conftest.sh
10277 acl_cv_rpath=done
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10281 $as_echo "$acl_cv_rpath" >&6; }
10282 wl="$acl_cv_wl"
10283 libext="$acl_cv_libext"
10284 shlibext="$acl_cv_shlibext"
10285 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10286 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10287 hardcode_direct="$acl_cv_hardcode_direct"
10288 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10289 # Check whether --enable-rpath was given.
10290 if test "${enable_rpath+set}" = set; then :
10291 enableval=$enable_rpath; :
10292 else
10293 enable_rpath=yes
10303 use_additional=yes
10305 acl_save_prefix="$prefix"
10306 prefix="$acl_final_prefix"
10307 acl_save_exec_prefix="$exec_prefix"
10308 exec_prefix="$acl_final_exec_prefix"
10310 eval additional_includedir=\"$includedir\"
10311 eval additional_libdir=\"$libdir\"
10313 exec_prefix="$acl_save_exec_prefix"
10314 prefix="$acl_save_prefix"
10317 # Check whether --with-libiconv-prefix was given.
10318 if test "${with_libiconv_prefix+set}" = set; then :
10319 withval=$with_libiconv_prefix;
10320 if test "X$withval" = "Xno"; then
10321 use_additional=no
10322 else
10323 if test "X$withval" = "X"; then
10325 acl_save_prefix="$prefix"
10326 prefix="$acl_final_prefix"
10327 acl_save_exec_prefix="$exec_prefix"
10328 exec_prefix="$acl_final_exec_prefix"
10330 eval additional_includedir=\"$includedir\"
10331 eval additional_libdir=\"$libdir\"
10333 exec_prefix="$acl_save_exec_prefix"
10334 prefix="$acl_save_prefix"
10336 else
10337 additional_includedir="$withval/include"
10338 additional_libdir="$withval/lib"
10344 LIBICONV=
10345 LTLIBICONV=
10346 INCICONV=
10347 rpathdirs=
10348 ltrpathdirs=
10349 names_already_handled=
10350 names_next_round='iconv '
10351 while test -n "$names_next_round"; do
10352 names_this_round="$names_next_round"
10353 names_next_round=
10354 for name in $names_this_round; do
10355 already_handled=
10356 for n in $names_already_handled; do
10357 if test "$n" = "$name"; then
10358 already_handled=yes
10359 break
10361 done
10362 if test -z "$already_handled"; then
10363 names_already_handled="$names_already_handled $name"
10364 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10365 eval value=\"\$HAVE_LIB$uppername\"
10366 if test -n "$value"; then
10367 if test "$value" = yes; then
10368 eval value=\"\$LIB$uppername\"
10369 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10370 eval value=\"\$LTLIB$uppername\"
10371 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10372 else
10375 else
10376 found_dir=
10377 found_la=
10378 found_so=
10379 found_a=
10380 if test $use_additional = yes; then
10381 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10382 found_dir="$additional_libdir"
10383 found_so="$additional_libdir/lib$name.$shlibext"
10384 if test -f "$additional_libdir/lib$name.la"; then
10385 found_la="$additional_libdir/lib$name.la"
10387 else
10388 if test -f "$additional_libdir/lib$name.$libext"; then
10389 found_dir="$additional_libdir"
10390 found_a="$additional_libdir/lib$name.$libext"
10391 if test -f "$additional_libdir/lib$name.la"; then
10392 found_la="$additional_libdir/lib$name.la"
10397 if test "X$found_dir" = "X"; then
10398 for x in $LDFLAGS $LTLIBICONV; do
10400 acl_save_prefix="$prefix"
10401 prefix="$acl_final_prefix"
10402 acl_save_exec_prefix="$exec_prefix"
10403 exec_prefix="$acl_final_exec_prefix"
10404 eval x=\"$x\"
10405 exec_prefix="$acl_save_exec_prefix"
10406 prefix="$acl_save_prefix"
10408 case "$x" in
10409 -L*)
10410 dir=`echo "X$x" | sed -e 's/^X-L//'`
10411 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10412 found_dir="$dir"
10413 found_so="$dir/lib$name.$shlibext"
10414 if test -f "$dir/lib$name.la"; then
10415 found_la="$dir/lib$name.la"
10417 else
10418 if test -f "$dir/lib$name.$libext"; then
10419 found_dir="$dir"
10420 found_a="$dir/lib$name.$libext"
10421 if test -f "$dir/lib$name.la"; then
10422 found_la="$dir/lib$name.la"
10427 esac
10428 if test "X$found_dir" != "X"; then
10429 break
10431 done
10433 if test "X$found_dir" != "X"; then
10434 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10435 if test "X$found_so" != "X"; then
10436 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10437 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10438 else
10439 haveit=
10440 for x in $ltrpathdirs; do
10441 if test "X$x" = "X$found_dir"; then
10442 haveit=yes
10443 break
10445 done
10446 if test -z "$haveit"; then
10447 ltrpathdirs="$ltrpathdirs $found_dir"
10449 if test "$hardcode_direct" = yes; then
10450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10451 else
10452 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10454 haveit=
10455 for x in $rpathdirs; do
10456 if test "X$x" = "X$found_dir"; then
10457 haveit=yes
10458 break
10460 done
10461 if test -z "$haveit"; then
10462 rpathdirs="$rpathdirs $found_dir"
10464 else
10465 haveit=
10466 for x in $LDFLAGS $LIBICONV; do
10468 acl_save_prefix="$prefix"
10469 prefix="$acl_final_prefix"
10470 acl_save_exec_prefix="$exec_prefix"
10471 exec_prefix="$acl_final_exec_prefix"
10472 eval x=\"$x\"
10473 exec_prefix="$acl_save_exec_prefix"
10474 prefix="$acl_save_prefix"
10476 if test "X$x" = "X-L$found_dir"; then
10477 haveit=yes
10478 break
10480 done
10481 if test -z "$haveit"; then
10482 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10484 if test "$hardcode_minus_L" != no; then
10485 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10486 else
10487 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10492 else
10493 if test "X$found_a" != "X"; then
10494 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10495 else
10496 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10499 additional_includedir=
10500 case "$found_dir" in
10501 */lib | */lib/)
10502 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10503 additional_includedir="$basedir/include"
10505 esac
10506 if test "X$additional_includedir" != "X"; then
10507 if test "X$additional_includedir" != "X/usr/include"; then
10508 haveit=
10509 if test "X$additional_includedir" = "X/usr/local/include"; then
10510 if test -n "$GCC"; then
10511 case $host_os in
10512 linux*) haveit=yes;;
10513 esac
10516 if test -z "$haveit"; then
10517 for x in $CPPFLAGS $INCICONV; do
10519 acl_save_prefix="$prefix"
10520 prefix="$acl_final_prefix"
10521 acl_save_exec_prefix="$exec_prefix"
10522 exec_prefix="$acl_final_exec_prefix"
10523 eval x=\"$x\"
10524 exec_prefix="$acl_save_exec_prefix"
10525 prefix="$acl_save_prefix"
10527 if test "X$x" = "X-I$additional_includedir"; then
10528 haveit=yes
10529 break
10531 done
10532 if test -z "$haveit"; then
10533 if test -d "$additional_includedir"; then
10534 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10540 if test -n "$found_la"; then
10541 save_libdir="$libdir"
10542 case "$found_la" in
10543 */* | *\\*) . "$found_la" ;;
10544 *) . "./$found_la" ;;
10545 esac
10546 libdir="$save_libdir"
10547 for dep in $dependency_libs; do
10548 case "$dep" in
10549 -L*)
10550 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10551 if test "X$additional_libdir" != "X/usr/lib"; then
10552 haveit=
10553 if test "X$additional_libdir" = "X/usr/local/lib"; then
10554 if test -n "$GCC"; then
10555 case $host_os in
10556 linux*) haveit=yes;;
10557 esac
10560 if test -z "$haveit"; then
10561 haveit=
10562 for x in $LDFLAGS $LIBICONV; do
10564 acl_save_prefix="$prefix"
10565 prefix="$acl_final_prefix"
10566 acl_save_exec_prefix="$exec_prefix"
10567 exec_prefix="$acl_final_exec_prefix"
10568 eval x=\"$x\"
10569 exec_prefix="$acl_save_exec_prefix"
10570 prefix="$acl_save_prefix"
10572 if test "X$x" = "X-L$additional_libdir"; then
10573 haveit=yes
10574 break
10576 done
10577 if test -z "$haveit"; then
10578 if test -d "$additional_libdir"; then
10579 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10582 haveit=
10583 for x in $LDFLAGS $LTLIBICONV; do
10585 acl_save_prefix="$prefix"
10586 prefix="$acl_final_prefix"
10587 acl_save_exec_prefix="$exec_prefix"
10588 exec_prefix="$acl_final_exec_prefix"
10589 eval x=\"$x\"
10590 exec_prefix="$acl_save_exec_prefix"
10591 prefix="$acl_save_prefix"
10593 if test "X$x" = "X-L$additional_libdir"; then
10594 haveit=yes
10595 break
10597 done
10598 if test -z "$haveit"; then
10599 if test -d "$additional_libdir"; then
10600 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10606 -R*)
10607 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10608 if test "$enable_rpath" != no; then
10609 haveit=
10610 for x in $rpathdirs; do
10611 if test "X$x" = "X$dir"; then
10612 haveit=yes
10613 break
10615 done
10616 if test -z "$haveit"; then
10617 rpathdirs="$rpathdirs $dir"
10619 haveit=
10620 for x in $ltrpathdirs; do
10621 if test "X$x" = "X$dir"; then
10622 haveit=yes
10623 break
10625 done
10626 if test -z "$haveit"; then
10627 ltrpathdirs="$ltrpathdirs $dir"
10631 -l*)
10632 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10634 *.la)
10635 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10638 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10639 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10641 esac
10642 done
10644 else
10645 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10650 done
10651 done
10652 if test "X$rpathdirs" != "X"; then
10653 if test -n "$hardcode_libdir_separator"; then
10654 alldirs=
10655 for found_dir in $rpathdirs; do
10656 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10657 done
10658 acl_save_libdir="$libdir"
10659 libdir="$alldirs"
10660 eval flag=\"$hardcode_libdir_flag_spec\"
10661 libdir="$acl_save_libdir"
10662 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10663 else
10664 for found_dir in $rpathdirs; do
10665 acl_save_libdir="$libdir"
10666 libdir="$found_dir"
10667 eval flag=\"$hardcode_libdir_flag_spec\"
10668 libdir="$acl_save_libdir"
10669 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10670 done
10673 if test "X$ltrpathdirs" != "X"; then
10674 for found_dir in $ltrpathdirs; do
10675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10676 done
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10686 $as_echo_n "checking for iconv... " >&6; }
10687 if test "${am_cv_func_iconv+set}" = set; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10691 am_cv_func_iconv="no, consider installing GNU libiconv"
10692 am_cv_lib_iconv=no
10693 am_save_CPPFLAGS="$CPPFLAGS"
10694 CPPFLAGS="$CPPFLAGS $INCICONV"
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include <stdlib.h>
10698 #include <iconv.h>
10700 main ()
10702 iconv_t cd = iconv_open("","");
10703 iconv(cd,NULL,NULL,NULL,NULL);
10704 iconv_close(cd);
10706 return 0;
10708 _ACEOF
10709 if ac_fn_cxx_try_link "$LINENO"; then :
10710 am_cv_func_iconv=yes
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 CPPFLAGS="$am_save_CPPFLAGS"
10716 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10717 for _libs in .libs _libs; do
10718 am_save_CPPFLAGS="$CPPFLAGS"
10719 am_save_LIBS="$LIBS"
10720 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10721 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 #include <stdlib.h>
10725 #include <iconv.h>
10727 main ()
10729 iconv_t cd = iconv_open("","");
10730 iconv(cd,NULL,NULL,NULL,NULL);
10731 iconv_close(cd);
10733 return 0;
10735 _ACEOF
10736 if ac_fn_cxx_try_link "$LINENO"; then :
10737 INCICONV="-I../libiconv/include"
10738 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10739 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10740 am_cv_lib_iconv=yes
10741 am_cv_func_iconv=yes
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 CPPFLAGS="$am_save_CPPFLAGS"
10746 LIBS="$am_save_LIBS"
10747 if test "$am_cv_func_iconv" = "yes"; then
10748 break
10750 done
10753 if test "$am_cv_func_iconv" != yes; then
10754 am_save_CPPFLAGS="$CPPFLAGS"
10755 am_save_LIBS="$LIBS"
10756 CPPFLAGS="$LIBS $INCICONV"
10757 LIBS="$LIBS $LIBICONV"
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 #include <stdlib.h>
10761 #include <iconv.h>
10763 main ()
10765 iconv_t cd = iconv_open("","");
10766 iconv(cd,NULL,NULL,NULL,NULL);
10767 iconv_close(cd);
10769 return 0;
10771 _ACEOF
10772 if ac_fn_cxx_try_link "$LINENO"; then :
10773 am_cv_lib_iconv=yes
10774 am_cv_func_iconv=yes
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10778 CPPFLAGS="$am_save_CPPFLAGS"
10779 LIBS="$am_save_LIBS"
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10784 $as_echo "$am_cv_func_iconv" >&6; }
10785 if test "$am_cv_func_iconv" = yes; then
10787 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10790 if test "$am_cv_lib_iconv" = yes; then
10792 for element in $INCICONV; do
10793 haveit=
10794 for x in $CPPFLAGS; do
10796 acl_save_prefix="$prefix"
10797 prefix="$acl_final_prefix"
10798 acl_save_exec_prefix="$exec_prefix"
10799 exec_prefix="$acl_final_exec_prefix"
10800 eval x=\"$x\"
10801 exec_prefix="$acl_save_exec_prefix"
10802 prefix="$acl_save_prefix"
10804 if test "X$x" = "X$element"; then
10805 haveit=yes
10806 break
10808 done
10809 if test -z "$haveit"; then
10810 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10812 done
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10815 $as_echo_n "checking how to link with libiconv... " >&6; }
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10817 $as_echo "$LIBICONV" >&6; }
10818 else
10819 LIBICONV=
10820 LTLIBICONV=
10825 if test "$am_cv_func_iconv" = yes; then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10827 $as_echo_n "checking for iconv declaration... " >&6; }
10828 if test "${am_cv_proto_iconv+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10835 #include <stdlib.h>
10836 #include <iconv.h>
10837 extern
10838 #ifdef __cplusplus
10840 #endif
10841 #if defined(__STDC__) || defined(__cplusplus)
10842 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10843 #else
10844 size_t iconv();
10845 #endif
10848 main ()
10852 return 0;
10854 _ACEOF
10855 if ac_fn_cxx_try_compile "$LINENO"; then :
10856 am_cv_proto_iconv_arg1=""
10857 else
10858 am_cv_proto_iconv_arg1="const"
10860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10861 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);"
10864 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10866 }$am_cv_proto_iconv" >&5
10867 $as_echo "${ac_t:-
10868 }$am_cv_proto_iconv" >&6; }
10870 cat >>confdefs.h <<_ACEOF
10871 #define ICONV_CONST $am_cv_proto_iconv_arg1
10872 _ACEOF
10877 # Until we have in-tree GNU iconv:
10878 LIBICONV_DEP=
10879 if test -f "$LTLIBICONV"; then
10880 LIBICONV_DEP=$LTLIBICONV
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10886 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10887 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <locale.h>
10894 main ()
10896 return LC_MESSAGES
10898 return 0;
10900 _ACEOF
10901 if ac_fn_cxx_try_link "$LINENO"; then :
10902 am_cv_val_LC_MESSAGES=yes
10903 else
10904 am_cv_val_LC_MESSAGES=no
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10910 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10911 if test $am_cv_val_LC_MESSAGES = yes; then
10913 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10920 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10921 if test "${am_cv_langinfo_codeset+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 #include <langinfo.h>
10928 main ()
10930 char* cs = nl_langinfo(CODESET);
10932 return 0;
10934 _ACEOF
10935 if ac_fn_cxx_try_link "$LINENO"; then :
10936 am_cv_langinfo_codeset=yes
10937 else
10938 am_cv_langinfo_codeset=no
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10945 $as_echo "$am_cv_langinfo_codeset" >&6; }
10946 if test $am_cv_langinfo_codeset = yes; then
10948 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10953 # We will need to find libiberty.h and ansidecl.h
10954 saved_CFLAGS="$CFLAGS"
10955 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10956 saved_CXXFLAGS="$CXXFLAGS"
10957 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10959 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10960 # normal autoconf function for these. But force definition of
10961 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10962 # basename handling in libiberty.h.
10963 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10964 #undef HAVE_DECL_BASENAME
10965 #define HAVE_DECL_BASENAME 1
10966 #include \"ansidecl.h\"
10967 #include \"system.h\"
10969 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10970 ac_have_decl=1
10971 else
10972 ac_have_decl=0
10975 cat >>confdefs.h <<_ACEOF
10976 #define HAVE_DECL_BASENAME $ac_have_decl
10977 _ACEOF
10978 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10979 #undef HAVE_DECL_BASENAME
10980 #define HAVE_DECL_BASENAME 1
10981 #include \"ansidecl.h\"
10982 #include \"system.h\"
10984 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10985 ac_have_decl=1
10986 else
10987 ac_have_decl=0
10990 cat >>confdefs.h <<_ACEOF
10991 #define HAVE_DECL_STRSTR $ac_have_decl
10992 _ACEOF
10995 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10996 madvise stpcpy strnlen strsignal strverscmp \
10997 strtol strtoul strtoll strtoull setenv unsetenv \
10998 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10999 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
11001 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11003 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11004 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11009 #undef $ac_tr_decl
11010 #define $ac_tr_decl 1
11012 #include "ansidecl.h"
11013 #include "system.h"
11016 main ()
11018 #ifndef $ac_func
11019 char *(*pfn) = (char *(*)) $ac_func ;
11020 #endif
11022 return 0;
11024 _ACEOF
11025 if ac_fn_cxx_try_compile "$LINENO"; then :
11026 eval "gcc_cv_have_decl_$ac_func=yes"
11027 else
11028 eval "gcc_cv_have_decl_$ac_func=no"
11030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11035 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11036 #define $ac_tr_decl 1
11037 _ACEOF
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11042 #define $ac_tr_decl 0
11043 _ACEOF
11047 done
11050 for ac_func in getrlimit setrlimit getrusage
11052 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11054 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11055 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060 #undef $ac_tr_decl
11061 #define $ac_tr_decl 1
11063 #include "ansidecl.h"
11064 #include "system.h"
11065 #ifdef HAVE_SYS_RESOURCE_H
11066 #include <sys/resource.h>
11067 #endif
11071 main ()
11073 #ifndef $ac_func
11074 char *(*pfn) = (char *(*)) $ac_func ;
11075 #endif
11077 return 0;
11079 _ACEOF
11080 if ac_fn_cxx_try_compile "$LINENO"; then :
11081 eval "gcc_cv_have_decl_$ac_func=yes"
11082 else
11083 eval "gcc_cv_have_decl_$ac_func=no"
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11088 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11090 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11091 #define $ac_tr_decl 1
11092 _ACEOF
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11097 #define $ac_tr_decl 0
11098 _ACEOF
11102 done
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11108 #include "ansidecl.h"
11109 #include "system.h"
11110 #ifdef HAVE_SYS_RESOURCE_H
11111 #include <sys/resource.h>
11112 #endif
11115 main ()
11117 rlim_t l = 0;
11119 return 0;
11121 _ACEOF
11122 if ac_fn_cxx_try_compile "$LINENO"; then :
11124 else
11126 $as_echo "#define rlim_t long" >>confdefs.h
11129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11132 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11133 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11134 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11135 for ac_func in ldgetname
11137 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11139 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11140 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145 #undef $ac_tr_decl
11146 #define $ac_tr_decl 1
11148 #include "ansidecl.h"
11149 #include "system.h"
11150 #ifdef HAVE_LDFCN_H
11151 #undef FREAD
11152 #undef FWRITE
11153 #include <ldfcn.h>
11154 #endif
11158 main ()
11160 #ifndef $ac_func
11161 char *(*pfn) = (char *(*)) $ac_func ;
11162 #endif
11164 return 0;
11166 _ACEOF
11167 if ac_fn_cxx_try_compile "$LINENO"; then :
11168 eval "gcc_cv_have_decl_$ac_func=yes"
11169 else
11170 eval "gcc_cv_have_decl_$ac_func=no"
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11177 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11178 #define $ac_tr_decl 1
11179 _ACEOF
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11184 #define $ac_tr_decl 0
11185 _ACEOF
11189 done
11192 for ac_func in times
11194 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11196 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11197 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11198 $as_echo_n "(cached) " >&6
11199 else
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11202 #undef $ac_tr_decl
11203 #define $ac_tr_decl 1
11205 #include "ansidecl.h"
11206 #include "system.h"
11207 #ifdef HAVE_SYS_TIMES_H
11208 #include <sys/times.h>
11209 #endif
11213 main ()
11215 #ifndef $ac_func
11216 char *(*pfn) = (char *(*)) $ac_func ;
11217 #endif
11219 return 0;
11221 _ACEOF
11222 if ac_fn_cxx_try_compile "$LINENO"; then :
11223 eval "gcc_cv_have_decl_$ac_func=yes"
11224 else
11225 eval "gcc_cv_have_decl_$ac_func=no"
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11230 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11232 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11233 #define $ac_tr_decl 1
11234 _ACEOF
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11239 #define $ac_tr_decl 0
11240 _ACEOF
11244 done
11247 for ac_func in sigaltstack
11249 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11251 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11252 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11253 $as_echo_n "(cached) " >&6
11254 else
11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11257 #undef $ac_tr_decl
11258 #define $ac_tr_decl 1
11260 #include "ansidecl.h"
11261 #include "system.h"
11262 #include <signal.h>
11266 main ()
11268 #ifndef $ac_func
11269 char *(*pfn) = (char *(*)) $ac_func ;
11270 #endif
11272 return 0;
11274 _ACEOF
11275 if ac_fn_cxx_try_compile "$LINENO"; then :
11276 eval "gcc_cv_have_decl_$ac_func=yes"
11277 else
11278 eval "gcc_cv_have_decl_$ac_func=no"
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11285 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11286 #define $ac_tr_decl 1
11287 _ACEOF
11289 else
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11292 #define $ac_tr_decl 0
11293 _ACEOF
11297 done
11300 # More time-related stuff.
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11302 $as_echo_n "checking for struct tms... " >&6; }
11303 if test "${ac_cv_struct_tms+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11310 #include "ansidecl.h"
11311 #include "system.h"
11312 #ifdef HAVE_SYS_TIMES_H
11313 #include <sys/times.h>
11314 #endif
11317 main ()
11319 struct tms tms;
11321 return 0;
11323 _ACEOF
11324 if ac_fn_cxx_try_compile "$LINENO"; then :
11325 ac_cv_struct_tms=yes
11326 else
11327 ac_cv_struct_tms=no
11329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11332 $as_echo "$ac_cv_struct_tms" >&6; }
11333 if test $ac_cv_struct_tms = yes; then
11335 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11339 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11340 # revisit after autoconf 2.50.
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11342 $as_echo_n "checking for clock_t... " >&6; }
11343 if test "${gcc_cv_type_clock_t+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11350 #include "ansidecl.h"
11351 #include "system.h"
11354 main ()
11356 clock_t x;
11358 return 0;
11360 _ACEOF
11361 if ac_fn_cxx_try_compile "$LINENO"; then :
11362 gcc_cv_type_clock_t=yes
11363 else
11364 gcc_cv_type_clock_t=no
11366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11369 $as_echo "$gcc_cv_type_clock_t" >&6; }
11370 if test $gcc_cv_type_clock_t = yes; then
11372 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11376 # Check if F_SETLKW is supported by fcntl.
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11378 $as_echo_n "checking for F_SETLKW... " >&6; }
11379 if test "${ac_cv_f_setlkw+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11386 #include <fcntl.h>
11388 main ()
11391 struct flock fl;
11392 fl.l_whence = 0;
11393 fl.l_start = 0;
11394 fl.l_len = 0;
11395 fl.l_pid = 0;
11396 return fcntl (1, F_SETLKW, &fl);
11398 return 0;
11400 _ACEOF
11401 if ac_fn_cxx_try_compile "$LINENO"; then :
11402 ac_cv_f_setlkw=yes
11403 else
11404 ac_cv_f_setlkw=no
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11409 $as_echo "$ac_cv_f_setlkw" >&6; }
11410 if test $ac_cv_f_setlkw = yes; then
11412 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11416 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11417 CFLAGS="$saved_CFLAGS"
11418 CXXFLAGS="$saved_CXXFLAGS"
11420 # mkdir takes a single argument on some systems.
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11422 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11423 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11429 #include <sys/types.h>
11430 #ifdef HAVE_SYS_STAT_H
11431 # include <sys/stat.h>
11432 #endif
11433 #ifdef HAVE_UNISTD_H
11434 # include <unistd.h>
11435 #endif
11436 #ifdef HAVE_DIRECT_H
11437 # include <direct.h>
11438 #endif
11440 main ()
11442 mkdir ("foo", 0);
11444 return 0;
11446 _ACEOF
11447 if ac_fn_cxx_try_compile "$LINENO"; then :
11448 gcc_cv_mkdir_takes_one_arg=no
11449 else
11450 gcc_cv_mkdir_takes_one_arg=yes
11452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11455 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11456 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11458 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11463 # File extensions
11464 manext='.1'
11465 objext='.o'
11469 # With Setjmp/Longjmp based exception handling.
11470 # Check whether --enable-sjlj-exceptions was given.
11471 if test "${enable_sjlj_exceptions+set}" = set; then :
11472 enableval=$enable_sjlj_exceptions; case $target in
11473 *-*-hpux10*)
11474 if test $enableval != yes; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11476 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11477 enableval=yes
11480 esac
11481 force_sjlj_exceptions=yes
11482 else
11483 case $target in
11484 *-*-hpux10*)
11485 force_sjlj_exceptions=yes
11486 enableval=yes
11488 lm32*-*-*)
11489 force_sjlj_exceptions=yes
11490 enableval=yes
11493 force_sjlj_exceptions=no
11495 esac
11498 if test $force_sjlj_exceptions = yes; then
11499 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11501 cat >>confdefs.h <<_ACEOF
11502 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11503 _ACEOF
11507 # --------------------------------------------------------
11508 # Build, host, and target specific configuration fragments
11509 # --------------------------------------------------------
11511 # Collect build-machine-specific information.
11512 . ${srcdir}/config.build || exit 1
11514 # Collect host-machine-specific information.
11515 . ${srcdir}/config.host || exit 1
11517 target_gtfiles=
11519 # Collect target-machine-specific information.
11520 . ${srcdir}/config.gcc || exit 1
11522 extra_objs="${host_extra_objs} ${extra_objs}"
11523 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11525 # Default the target-machine variables that were not explicitly set.
11526 if test x"$tm_file" = x
11527 then tm_file=$cpu_type/$cpu_type.h; fi
11529 if test x"$extra_headers" = x
11530 then extra_headers=; fi
11532 if test x$md_file = x
11533 then md_file=$cpu_type/$cpu_type.md; fi
11535 if test x$out_file = x
11536 then out_file=$cpu_type/$cpu_type.c; fi
11538 if test x"$tmake_file" = x
11539 then tmake_file=$cpu_type/t-$cpu_type
11542 # Support --enable-initfini-array.
11543 if test x$enable_initfini_array != xno; then
11544 tm_file="${tm_file} initfini-array.h"
11547 if test x"$dwarf2" = xyes
11548 then tm_file="$tm_file tm-dwarf2.h"
11551 # Say what files are being used for the output code and MD file.
11552 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11553 echo "Using \`$srcdir/config/$md_file' as machine description file."
11555 # If any of the xm_file variables contain nonexistent files, warn
11556 # about them and drop them.
11559 for x in $build_xm_file; do
11560 if test -f $srcdir/config/$x
11561 then bx="$bx $x"
11562 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11563 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11565 done
11566 build_xm_file="$bx"
11569 for x in $host_xm_file; do
11570 if test -f $srcdir/config/$x
11571 then hx="$hx $x"
11572 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11573 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11575 done
11576 host_xm_file="$hx"
11579 for x in $xm_file; do
11580 if test -f $srcdir/config/$x
11581 then tx="$tx $x"
11582 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11583 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11585 done
11586 xm_file="$tx"
11588 count=a
11589 for f in $tm_file; do
11590 count=${count}x
11591 done
11592 if test $count = ax; then
11593 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11594 else
11595 echo "Using the following target machine macro files:"
11596 for f in $tm_file; do
11597 echo " $srcdir/config/$f"
11598 done
11601 if test x$use_long_long_for_widest_fast_int = xyes; then
11603 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11607 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11609 cat >>confdefs.h <<_ACEOF
11610 #define HAVE_GNU_LD $gnu_ld_bool
11611 _ACEOF
11614 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11616 cat >>confdefs.h <<_ACEOF
11617 #define HAVE_GNU_AS $gnu_as_bool
11618 _ACEOF
11621 count=a
11622 for f in $host_xm_file; do
11623 count=${count}x
11624 done
11625 if test $count = a; then
11627 elif test $count = ax; then
11628 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11629 else
11630 echo "Using the following host machine macro files:"
11631 for f in $host_xm_file; do
11632 echo " $srcdir/config/$f"
11633 done
11635 echo "Using ${out_host_hook_obj} for host machine hooks."
11637 if test "$host_xm_file" != "$build_xm_file"; then
11638 count=a
11639 for f in $build_xm_file; do
11640 count=${count}x
11641 done
11642 if test $count = a; then
11644 elif test $count = ax; then
11645 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11646 else
11647 echo "Using the following build machine macro files:"
11648 for f in $build_xm_file; do
11649 echo " $srcdir/config/$f"
11650 done
11654 if test -n "$configured_native_system_header_dir"; then
11655 native_system_header_dir=$configured_native_system_header_dir
11657 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11660 case ${host} in
11661 powerpc*-*-darwin*)
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11663 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11664 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11670 #include <sys/cdefs.h>
11671 #include <sys/signal.h>
11672 #include <ucontext.h>
11673 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11675 _ACEOF
11676 if ac_fn_cxx_try_compile "$LINENO"; then :
11677 gcc_cv_mcontext_underscores=no
11678 else
11679 gcc_cv_mcontext_underscores=yes
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11684 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11685 if test $gcc_cv_mcontext_underscores = yes; then
11687 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11691 esac
11693 # ---------
11694 # Threading
11695 # ---------
11697 # Check if a valid thread package
11698 case ${enable_threads} in
11699 "" | no)
11700 # No threads
11701 target_thread_file='single'
11703 yes)
11704 # default
11705 target_thread_file='single'
11707 aix | dce | lynx | mipssde | posix | rtems | \
11708 single | tpf | vxworks | win32)
11709 target_thread_file=${enable_threads}
11712 echo "${enable_threads} is an unknown thread package" 1>&2
11713 exit 1
11715 esac
11717 if test x${thread_file} = x; then
11718 # No thread file set by target-specific clauses in config.gcc,
11719 # so use file chosen by default logic above
11720 thread_file=${target_thread_file}
11723 # --------
11724 # UNSORTED
11725 # --------
11727 use_cxa_atexit=no
11728 if test x$enable___cxa_atexit = xyes || \
11729 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11730 if test x$host = x$target; then
11731 case $host in
11732 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11733 # keyed to flag_use_cxa_atexit
11734 *-*-mingw32*)
11735 use_cxa_atexit=yes
11737 powerpc-ibm-aix*)
11738 use_cxa_atexit=yes
11741 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11742 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11743 use_cxa_atexit=yes
11744 else
11745 echo "__cxa_atexit can't be enabled on this target"
11749 esac
11750 else
11751 # We can't check for __cxa_atexit when building a cross, so assume
11752 # it is available
11753 use_cxa_atexit=yes
11755 if test x$use_cxa_atexit = xyes; then
11757 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11762 # Look for a file containing extra machine modes.
11763 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11764 extra_modes_file='$(srcdir)'/config/${extra_modes}
11767 cat >>confdefs.h <<_ACEOF
11768 #define EXTRA_MODES_FILE "config/$extra_modes"
11769 _ACEOF
11773 # Convert extra_options into a form suitable for Makefile use.
11774 extra_opt_files=
11775 all_opt_files=
11776 for f in $extra_options; do
11777 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11778 all_opt_files="$all_opt_files $srcdir/config/$f"
11779 done
11782 # auto-host.h is the file containing items generated by autoconf and is
11783 # the first file included by config.h.
11784 # If host=build, it is correct to have bconfig include auto-host.h
11785 # as well. If host!=build, we are in error and need to do more
11786 # work to find out the build config parameters.
11787 if test x$host = x$build
11788 then
11789 build_auto=auto-host.h
11790 else
11791 # We create a subdir, then run autoconf in the subdir.
11792 # To prevent recursion we set host and build for the new
11793 # invocation of configure to the build for this invocation
11794 # of configure.
11795 tempdir=build.$$
11796 rm -rf $tempdir
11797 mkdir $tempdir
11798 cd $tempdir
11799 case ${srcdir} in
11800 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11801 *) realsrcdir=../${srcdir};;
11802 esac
11803 # Clearing GMPINC is necessary to prevent host headers being
11804 # used by the build compiler. Defining GENERATOR_FILE stops
11805 # system.h from including gmp.h.
11806 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11807 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11808 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11809 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11810 ${realsrcdir}/configure \
11811 --enable-languages=${enable_languages-all} \
11812 --target=$target_alias --host=$build_alias --build=$build_alias
11814 # We just finished tests for the build machine, so rename
11815 # the file auto-build.h in the gcc directory.
11816 mv auto-host.h ../auto-build.h
11817 cd ..
11818 rm -rf $tempdir
11819 build_auto=auto-build.h
11823 tm_file="${tm_file} defaults.h"
11824 tm_p_file="${tm_p_file} tm-preds.h"
11825 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11826 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11827 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11828 # put this back in temporarily.
11829 xm_file="auto-host.h ansidecl.h ${xm_file}"
11831 # --------
11832 # UNSORTED
11833 # --------
11835 # Compile in configure arguments.
11836 if test -f configargs.h ; then
11837 # Being re-configured.
11838 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11839 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11840 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11841 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11843 else
11844 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11847 # Double all backslashes and backslash all quotes to turn
11848 # gcc_config_arguments into a C string.
11849 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11850 $gcc_config_arguments
11852 gcc_config_arguments_str=`cat conftest.out`
11853 rm -f conftest.out
11855 cat > configargs.h <<EOF
11856 /* Generated automatically. */
11857 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11858 static const char thread_model[] = "$thread_file";
11860 static const struct {
11861 const char *name, *value;
11862 } configure_default_options[] = $configure_default_options;
11865 gcc_BASEVER=`cat $srcdir/BASE-VER`
11866 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11867 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11868 if test -f $srcdir/REVISION ; then
11869 gcc_REVISION=`cat $srcdir/REVISION`
11870 else
11871 gcc_REVISION=""
11873 cat > plugin-version.h <<EOF
11874 #include "configargs.h"
11876 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11877 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11878 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11879 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11881 static char basever[] = "$gcc_BASEVER";
11882 static char datestamp[] = "$gcc_DATESTAMP";
11883 static char devphase[] = "$gcc_DEVPHASE";
11884 static char revision[] = "$gcc_REVISION";
11886 /* FIXME plugins: We should make the version information more precise.
11887 One way to do is to add a checksum. */
11889 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11890 devphase, revision,
11891 configuration_arguments};
11894 # Determine what GCC version number to use in filesystem paths.
11896 get_gcc_base_ver="cat"
11898 # Check whether --with-gcc-major-version-only was given.
11899 if test "${with_gcc_major_version_only+set}" = set; then :
11900 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11901 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11909 # Internationalization
11910 # If we haven't got the data from the intl directory,
11911 # assume NLS is disabled.
11912 USE_NLS=no
11913 LIBINTL=
11914 LIBINTL_DEP=
11915 INCINTL=
11916 XGETTEXT=
11917 GMSGFMT=
11918 POSUB=
11920 if test -f ../intl/config.intl; then
11921 . ../intl/config.intl
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11924 $as_echo_n "checking whether NLS is requested... " >&6; }
11925 if test x"$USE_NLS" != xyes; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; }
11932 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11936 $as_echo_n "checking for catalogs to be installed... " >&6; }
11937 # Look for .po and .gmo files in the source directory.
11938 CATALOGS=
11939 XLINGUAS=
11940 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11941 # If there aren't any .gmo files the shell will give us the
11942 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11943 # weeded out.
11944 case "$cat" in *\**)
11945 continue;;
11946 esac
11947 # The quadruple backslash is collapsed to a double backslash
11948 # by the backticks, then collapsed again by the double quotes,
11949 # leaving us with one backslash in the sed expression (right
11950 # before the dot that mustn't act as a wildcard).
11951 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11952 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11953 # The user is allowed to set LINGUAS to a list of languages to
11954 # install catalogs for. If it's empty that means "all of them."
11955 if test "x$LINGUAS" = x; then
11956 CATALOGS="$CATALOGS $cat"
11957 XLINGUAS="$XLINGUAS $lang"
11958 else
11959 case "$LINGUAS" in *$lang*)
11960 CATALOGS="$CATALOGS $cat"
11961 XLINGUAS="$XLINGUAS $lang"
11963 esac
11965 done
11966 LINGUAS="$XLINGUAS"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11968 $as_echo "$LINGUAS" >&6; }
11971 DATADIRNAME=share
11973 INSTOBJEXT=.mo
11975 GENCAT=gencat
11977 CATOBJEXT=.gmo
11981 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11982 # -liconv on the link line twice.
11983 case "$LIBINTL" in *$LIBICONV*)
11984 LIBICONV= ;;
11985 esac
11987 # Check whether --enable-secureplt was given.
11988 if test "${enable_secureplt+set}" = set; then :
11989 enableval=$enable_secureplt;
11993 # Check whether --enable-mingw-wildcard was given.
11994 if test "${enable_mingw_wildcard+set}" = set; then :
11995 enableval=$enable_mingw_wildcard;
11996 else
11997 enable_mingw_wildcard=platform
12000 if test x"$enable_mingw_wildcard" != xplatform ; then :
12002 cat >>confdefs.h <<_ACEOF
12003 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12004 _ACEOF
12008 # Check whether --enable-leading-mingw64-underscores was given.
12009 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12010 enableval=$enable_leading_mingw64_underscores;
12013 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12015 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12019 # Check whether --enable-cld was given.
12020 if test "${enable_cld+set}" = set; then :
12021 enableval=$enable_cld;
12022 else
12023 enable_cld=no
12027 # Check whether --enable-frame-pointer was given.
12028 if test "${enable_frame_pointer+set}" = set; then :
12029 enableval=$enable_frame_pointer;
12030 else
12032 case $target_os in
12033 linux* | darwin[8912]*)
12034 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12035 # DWARF2.
12036 enable_frame_pointer=no
12039 enable_frame_pointer=yes
12041 esac
12046 # Windows32 Registry support for specifying GCC installation paths.
12047 # Check whether --enable-win32-registry was given.
12048 if test "${enable_win32_registry+set}" = set; then :
12049 enableval=$enable_win32_registry;
12053 case $host_os in
12054 win32 | pe | cygwin* | mingw32*)
12055 if test "x$enable_win32_registry" != xno; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12057 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12058 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 ac_func_search_save_LIBS=$LIBS
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12068 #ifdef __cplusplus
12069 extern "C"
12070 #endif
12071 char RegOpenKeyExA ();
12073 main ()
12075 return RegOpenKeyExA ();
12077 return 0;
12079 _ACEOF
12080 for ac_lib in '' advapi32; do
12081 if test -z "$ac_lib"; then
12082 ac_res="none required"
12083 else
12084 ac_res=-l$ac_lib
12085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12087 if ac_fn_cxx_try_link "$LINENO"; then :
12088 ac_cv_search_RegOpenKeyExA=$ac_res
12090 rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext
12092 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12093 break
12095 done
12096 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12098 else
12099 ac_cv_search_RegOpenKeyExA=no
12101 rm conftest.$ac_ext
12102 LIBS=$ac_func_search_save_LIBS
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12105 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12106 ac_res=$ac_cv_search_RegOpenKeyExA
12107 if test "$ac_res" != no; then :
12108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12110 else
12111 enable_win32_registry=no
12116 if test "x$enable_win32_registry" != xno; then
12118 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12121 if test "x$enable_win32_registry" != xyes \
12122 && test "x$enable_win32_registry" != x; then
12124 cat >>confdefs.h <<_ACEOF
12125 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12126 _ACEOF
12131 esac
12133 # Get an absolute path to the GCC top-level source directory
12134 holddir=`${PWDCMD-pwd}`
12135 cd $srcdir
12136 topdir=`${PWDCMD-pwd}`
12137 cd $holddir
12139 # Conditionalize the makefile for this host machine.
12140 xmake_file=
12141 for f in ${host_xmake_file}
12143 if test -f ${srcdir}/config/$f
12144 then
12145 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12147 done
12149 # Conditionalize the makefile for this target machine.
12150 tmake_file_=
12151 for f in ${tmake_file}
12153 if test -f ${srcdir}/config/$f
12154 then
12155 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12157 done
12158 tmake_file="${tmake_file_}"
12160 out_object_file=`basename $out_file .c`.o
12161 common_out_object_file=`basename $common_out_file .c`.o
12163 tm_file_list="options.h"
12164 tm_include_list="options.h insn-constants.h"
12165 for f in $tm_file; do
12166 case $f in
12167 ./* )
12168 f=`echo $f | sed 's/^..//'`
12169 tm_file_list="${tm_file_list} $f"
12170 tm_include_list="${tm_include_list} $f"
12172 defaults.h )
12173 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12174 tm_include_list="${tm_include_list} $f"
12177 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12178 tm_include_list="${tm_include_list} config/$f"
12180 esac
12181 done
12183 tm_p_file_list=
12184 tm_p_include_list=
12185 for f in $tm_p_file; do
12186 case $f in
12187 tm-preds.h )
12188 tm_p_file_list="${tm_p_file_list} $f"
12189 tm_p_include_list="${tm_p_include_list} $f"
12192 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12193 tm_p_include_list="${tm_p_include_list} config/$f"
12194 esac
12195 done
12197 xm_file_list=
12198 xm_include_list=
12199 for f in $xm_file; do
12200 case $f in
12201 ansidecl.h )
12202 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12203 xm_include_list="${xm_include_list} $f"
12205 auto-host.h )
12206 xm_file_list="${xm_file_list} $f"
12207 xm_include_list="${xm_include_list} $f"
12210 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12211 xm_include_list="${xm_include_list} config/$f"
12213 esac
12214 done
12216 host_xm_file_list=
12217 host_xm_include_list=
12218 for f in $host_xm_file; do
12219 case $f in
12220 ansidecl.h )
12221 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12222 host_xm_include_list="${host_xm_include_list} $f"
12224 auto-host.h )
12225 host_xm_file_list="${host_xm_file_list} $f"
12226 host_xm_include_list="${host_xm_include_list} $f"
12229 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12230 host_xm_include_list="${host_xm_include_list} config/$f"
12232 esac
12233 done
12235 build_xm_file_list=
12236 for f in $build_xm_file; do
12237 case $f in
12238 ansidecl.h )
12239 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12240 build_xm_include_list="${build_xm_include_list} $f"
12242 auto-build.h | auto-host.h )
12243 build_xm_file_list="${build_xm_file_list} $f"
12244 build_xm_include_list="${build_xm_include_list} $f"
12247 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12248 build_xm_include_list="${build_xm_include_list} config/$f"
12250 esac
12251 done
12253 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12254 # cross-compiler which does not use the native headers and libraries.
12255 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12256 CROSS=
12257 ALL=all.internal
12258 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12259 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12261 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12262 test x$build != x$host || test "x$with_build_sysroot" != x; then
12263 if test "x$with_build_sysroot" != x; then
12264 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12265 else
12266 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12269 if test x$host != x$target
12270 then
12271 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12272 ALL=all.cross
12273 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12274 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12275 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12278 if test "x$with_build_sysroot" != "x"; then
12279 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12280 elif test "x$with_sysroot" = x; then
12281 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12282 elif test "x$with_sysroot" = xyes; then
12283 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12284 else
12285 target_header_dir="${with_sysroot}${native_system_header_dir}"
12287 else
12288 target_header_dir=${native_system_header_dir}
12291 # If this is a cross-compiler that does not
12292 # have its own set of headers then define
12293 # inhibit_libc
12295 # If this is using newlib, without having the headers available now,
12296 # then define inhibit_libc in LIBGCC2_CFLAGS.
12297 # This prevents libgcc2 from containing any code which requires libc
12298 # support.
12299 : ${inhibit_libc=false}
12300 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12301 test x$with_newlib = xyes ; } &&
12302 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12303 inhibit_libc=true
12307 # When building gcc with a cross-compiler, we need to adjust things so
12308 # that the generator programs are still built with the native compiler.
12309 # Also, we cannot run fixincludes.
12311 # These are the normal (build=host) settings:
12312 CC_FOR_BUILD='$(CC)'
12313 CXX_FOR_BUILD='$(CXX)'
12314 BUILD_CFLAGS='$(ALL_CFLAGS)'
12315 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12316 BUILD_LDFLAGS='$(LDFLAGS)'
12317 STMP_FIXINC=stmp-fixinc
12319 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12320 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12322 # And these apply if build != host, or we are generating coverage data
12323 if test x$build != x$host || test "x$coverage_flags" != x
12324 then
12325 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12326 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12327 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12329 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12330 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12331 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12332 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12337 # Expand extra_headers to include complete path.
12338 # This substitutes for lots of t-* files.
12339 extra_headers_list=
12340 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12341 for file in ${extra_headers} ; do
12342 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12343 done
12345 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12346 if test x"$use_gcc_tgmath" = xyes
12347 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12350 # Define collect2 in Makefile.
12351 case $host_can_use_collect2 in
12352 no) collect2= ;;
12353 *) collect2='collect2$(exeext)' ;;
12354 esac
12357 # Add a definition of USE_COLLECT2 if system wants one.
12358 case $use_collect2 in
12359 no) use_collect2= ;;
12360 "") ;;
12362 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12363 xm_defines="${xm_defines} USE_COLLECT2"
12364 case $host_can_use_collect2 in
12366 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12368 esac
12370 esac
12373 cat >>confdefs.h <<_ACEOF
12374 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12375 _ACEOF
12378 # ---------------------------
12379 # Assembler & linker features
12380 # ---------------------------
12382 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12383 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12384 # However when ld-new is first executed from the build tree, libtool will
12385 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12386 # to the build tree. While doing this we need to use the previous-stage
12387 # linker, or we have an infinite loop. The presence of a shell script as
12388 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12389 # the gcc/collect-ld script. So we need to know how libtool works, or
12390 # exec-tool will fail.
12393 case `pwd` in
12394 *\ * | *\ *)
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12396 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12397 esac
12401 macro_version='2.2.7a'
12402 macro_revision='1.3134'
12416 ltmain="$ac_aux_dir/ltmain.sh"
12418 # Backslashify metacharacters that are still active within
12419 # double-quoted strings.
12420 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12422 # Same as above, but do not quote variable references.
12423 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12425 # Sed substitution to delay expansion of an escaped shell variable in a
12426 # double_quote_subst'ed string.
12427 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12429 # Sed substitution to delay expansion of an escaped single quote.
12430 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12432 # Sed substitution to avoid accidental globbing in evaled expressions
12433 no_glob_subst='s/\*/\\\*/g'
12435 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12436 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12440 $as_echo_n "checking how to print strings... " >&6; }
12441 # Test print first, because it will be a builtin if present.
12442 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12443 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12444 ECHO='print -r --'
12445 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12446 ECHO='printf %s\n'
12447 else
12448 # Use this function as a fallback that always works.
12449 func_fallback_echo ()
12451 eval 'cat <<_LTECHO_EOF
12453 _LTECHO_EOF'
12455 ECHO='func_fallback_echo'
12458 # func_echo_all arg...
12459 # Invoke $ECHO with all args, space-separated.
12460 func_echo_all ()
12462 $ECHO ""
12465 case "$ECHO" in
12466 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12467 $as_echo "printf" >&6; } ;;
12468 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12469 $as_echo "print -r" >&6; } ;;
12470 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12471 $as_echo "cat" >&6; } ;;
12472 esac
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12488 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12489 if test "${ac_cv_path_SED+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12493 for ac_i in 1 2 3 4 5 6 7; do
12494 ac_script="$ac_script$as_nl$ac_script"
12495 done
12496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12497 { ac_script=; unset ac_script;}
12498 if test -z "$SED"; then
12499 ac_path_SED_found=false
12500 # Loop through the user's path and test for each of PROGNAME-LIST
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_prog in sed gsed; do
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12509 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12510 # Check for GNU ac_path_SED and select it if it is found.
12511 # Check for GNU $ac_path_SED
12512 case `"$ac_path_SED" --version 2>&1` in
12513 *GNU*)
12514 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12516 ac_count=0
12517 $as_echo_n 0123456789 >"conftest.in"
12518 while :
12520 cat "conftest.in" "conftest.in" >"conftest.tmp"
12521 mv "conftest.tmp" "conftest.in"
12522 cp "conftest.in" "conftest.nl"
12523 $as_echo '' >> "conftest.nl"
12524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12526 as_fn_arith $ac_count + 1 && ac_count=$as_val
12527 if test $ac_count -gt ${ac_path_SED_max-0}; then
12528 # Best one so far, save it but keep looking for a better one
12529 ac_cv_path_SED="$ac_path_SED"
12530 ac_path_SED_max=$ac_count
12532 # 10*(2^10) chars as input seems more than enough
12533 test $ac_count -gt 10 && break
12534 done
12535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12536 esac
12538 $ac_path_SED_found && break 3
12539 done
12540 done
12541 done
12542 IFS=$as_save_IFS
12543 if test -z "$ac_cv_path_SED"; then
12544 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12546 else
12547 ac_cv_path_SED=$SED
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12552 $as_echo "$ac_cv_path_SED" >&6; }
12553 SED="$ac_cv_path_SED"
12554 rm -f conftest.sed
12556 test -z "$SED" && SED=sed
12557 Xsed="$SED -e 1s/^X//"
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12570 $as_echo_n "checking for fgrep... " >&6; }
12571 if test "${ac_cv_path_FGREP+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12575 then ac_cv_path_FGREP="$GREP -F"
12576 else
12577 if test -z "$FGREP"; then
12578 ac_path_FGREP_found=false
12579 # Loop through the user's path and test for each of PROGNAME-LIST
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12583 IFS=$as_save_IFS
12584 test -z "$as_dir" && as_dir=.
12585 for ac_prog in fgrep; do
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12588 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12589 # Check for GNU ac_path_FGREP and select it if it is found.
12590 # Check for GNU $ac_path_FGREP
12591 case `"$ac_path_FGREP" --version 2>&1` in
12592 *GNU*)
12593 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12595 ac_count=0
12596 $as_echo_n 0123456789 >"conftest.in"
12597 while :
12599 cat "conftest.in" "conftest.in" >"conftest.tmp"
12600 mv "conftest.tmp" "conftest.in"
12601 cp "conftest.in" "conftest.nl"
12602 $as_echo 'FGREP' >> "conftest.nl"
12603 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12605 as_fn_arith $ac_count + 1 && ac_count=$as_val
12606 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12607 # Best one so far, save it but keep looking for a better one
12608 ac_cv_path_FGREP="$ac_path_FGREP"
12609 ac_path_FGREP_max=$ac_count
12611 # 10*(2^10) chars as input seems more than enough
12612 test $ac_count -gt 10 && break
12613 done
12614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12615 esac
12617 $ac_path_FGREP_found && break 3
12618 done
12619 done
12620 done
12621 IFS=$as_save_IFS
12622 if test -z "$ac_cv_path_FGREP"; then
12623 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12625 else
12626 ac_cv_path_FGREP=$FGREP
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12632 $as_echo "$ac_cv_path_FGREP" >&6; }
12633 FGREP="$ac_cv_path_FGREP"
12636 test -z "$GREP" && GREP=grep
12656 # Check whether --with-gnu-ld was given.
12657 if test "${with_gnu_ld+set}" = set; then :
12658 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12659 else
12660 with_gnu_ld=no
12663 ac_prog=ld
12664 if test "$GCC" = yes; then
12665 # Check if gcc -print-prog-name=ld gives a path.
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12667 $as_echo_n "checking for ld used by $CC... " >&6; }
12668 case $host in
12669 *-*-mingw*)
12670 # gcc leaves a trailing carriage return which upsets mingw
12671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12674 esac
12675 case $ac_prog in
12676 # Accept absolute paths.
12677 [\\/]* | ?:[\\/]*)
12678 re_direlt='/[^/][^/]*/\.\./'
12679 # Canonicalize the pathname of ld
12680 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12681 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12682 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12683 done
12684 test -z "$LD" && LD="$ac_prog"
12687 # If it fails, then pretend we aren't using GCC.
12688 ac_prog=ld
12691 # If it is relative, then search for the first ld in PATH.
12692 with_gnu_ld=unknown
12694 esac
12695 elif test "$with_gnu_ld" = yes; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12697 $as_echo_n "checking for GNU ld... " >&6; }
12698 else
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12700 $as_echo_n "checking for non-GNU ld... " >&6; }
12702 if test "${lt_cv_path_LD+set}" = set; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 if test -z "$LD"; then
12706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12707 for ac_dir in $PATH; do
12708 IFS="$lt_save_ifs"
12709 test -z "$ac_dir" && ac_dir=.
12710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12711 lt_cv_path_LD="$ac_dir/$ac_prog"
12712 # Check to see if the program is GNU ld. I'd rather use --version,
12713 # but apparently some variants of GNU ld only accept -v.
12714 # Break only if it was the GNU/non-GNU ld that we prefer.
12715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12716 *GNU* | *'with BFD'*)
12717 test "$with_gnu_ld" != no && break
12720 test "$with_gnu_ld" != yes && break
12722 esac
12724 done
12725 IFS="$lt_save_ifs"
12726 else
12727 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12731 LD="$lt_cv_path_LD"
12732 if test -n "$LD"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12734 $as_echo "$LD" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12739 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12742 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12746 case `$LD -v 2>&1 </dev/null` in
12747 *GNU* | *'with BFD'*)
12748 lt_cv_prog_gnu_ld=yes
12751 lt_cv_prog_gnu_ld=no
12753 esac
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12756 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12757 with_gnu_ld=$lt_cv_prog_gnu_ld
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12768 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12769 if test "${lt_cv_path_NM+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 if test -n "$NM"; then
12773 # Let the user override the test.
12774 lt_cv_path_NM="$NM"
12775 else
12776 lt_nm_to_check="${ac_tool_prefix}nm"
12777 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12778 lt_nm_to_check="$lt_nm_to_check nm"
12780 for lt_tmp_nm in $lt_nm_to_check; do
12781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12782 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12783 IFS="$lt_save_ifs"
12784 test -z "$ac_dir" && ac_dir=.
12785 tmp_nm="$ac_dir/$lt_tmp_nm"
12786 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12787 # Check to see if the nm accepts a BSD-compat flag.
12788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12789 # nm: unknown option "B" ignored
12790 # Tru64's nm complains that /dev/null is an invalid object file
12791 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12792 */dev/null* | *'Invalid file or object type'*)
12793 lt_cv_path_NM="$tmp_nm -B"
12794 break
12797 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12798 */dev/null*)
12799 lt_cv_path_NM="$tmp_nm -p"
12800 break
12803 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12804 continue # so that we can try to find one that supports BSD flags
12806 esac
12808 esac
12810 done
12811 IFS="$lt_save_ifs"
12812 done
12813 : ${lt_cv_path_NM=no}
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12817 $as_echo "$lt_cv_path_NM" >&6; }
12818 if test "$lt_cv_path_NM" != "no"; then
12819 NM="$lt_cv_path_NM"
12820 else
12821 # Didn't find any BSD compatible name lister, look for dumpbin.
12822 if test -n "$DUMPBIN"; then :
12823 # Let the user override the test.
12824 else
12825 if test -n "$ac_tool_prefix"; then
12826 for ac_prog in dumpbin "link -dump"
12828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 if test -n "$DUMPBIN"; then
12836 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12837 else
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in $PATH
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
12844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12845 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 break 2
12849 done
12850 done
12851 IFS=$as_save_IFS
12855 DUMPBIN=$ac_cv_prog_DUMPBIN
12856 if test -n "$DUMPBIN"; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12858 $as_echo "$DUMPBIN" >&6; }
12859 else
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861 $as_echo "no" >&6; }
12865 test -n "$DUMPBIN" && break
12866 done
12868 if test -z "$DUMPBIN"; then
12869 ac_ct_DUMPBIN=$DUMPBIN
12870 for ac_prog in dumpbin "link -dump"
12872 # Extract the first word of "$ac_prog", so it can be a program name with args.
12873 set dummy $ac_prog; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 if test -n "$ac_ct_DUMPBIN"; then
12880 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12881 else
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12889 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12893 done
12894 done
12895 IFS=$as_save_IFS
12899 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12900 if test -n "$ac_ct_DUMPBIN"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12902 $as_echo "$ac_ct_DUMPBIN" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12909 test -n "$ac_ct_DUMPBIN" && break
12910 done
12912 if test "x$ac_ct_DUMPBIN" = x; then
12913 DUMPBIN=":"
12914 else
12915 case $cross_compiling:$ac_tool_warned in
12916 yes:)
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12919 ac_tool_warned=yes ;;
12920 esac
12921 DUMPBIN=$ac_ct_DUMPBIN
12925 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12926 *COFF*)
12927 DUMPBIN="$DUMPBIN -symbols"
12930 DUMPBIN=:
12932 esac
12935 if test "$DUMPBIN" != ":"; then
12936 NM="$DUMPBIN"
12939 test -z "$NM" && NM=nm
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12947 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12948 if test "${lt_cv_nm_interface+set}" = set; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 lt_cv_nm_interface="BSD nm"
12952 echo "int some_variable = 0;" > conftest.$ac_ext
12953 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12954 (eval "$ac_compile" 2>conftest.err)
12955 cat conftest.err >&5
12956 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12957 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12958 cat conftest.err >&5
12959 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12960 cat conftest.out >&5
12961 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12962 lt_cv_nm_interface="MS dumpbin"
12964 rm -f conftest*
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12967 $as_echo "$lt_cv_nm_interface" >&6; }
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12970 $as_echo_n "checking whether ln -s works... " >&6; }
12971 LN_S=$as_ln_s
12972 if test "$LN_S" = "ln -s"; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12974 $as_echo "yes" >&6; }
12975 else
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12977 $as_echo "no, using $LN_S" >&6; }
12980 # find the maximum length of command line arguments
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12982 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12983 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12987 teststring="ABCD"
12989 case $build_os in
12990 msdosdjgpp*)
12991 # On DJGPP, this test can blow up pretty badly due to problems in libc
12992 # (any single argument exceeding 2000 bytes causes a buffer overrun
12993 # during glob expansion). Even if it were fixed, the result of this
12994 # check would be larger than it should be.
12995 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12998 gnu*)
12999 # Under GNU Hurd, this test is not required because there is
13000 # no limit to the length of command line arguments.
13001 # Libtool will interpret -1 as no limit whatsoever
13002 lt_cv_sys_max_cmd_len=-1;
13005 cygwin* | mingw* | cegcc*)
13006 # On Win9x/ME, this test blows up -- it succeeds, but takes
13007 # about 5 minutes as the teststring grows exponentially.
13008 # Worse, since 9x/ME are not pre-emptively multitasking,
13009 # you end up with a "frozen" computer, even though with patience
13010 # the test eventually succeeds (with a max line length of 256k).
13011 # Instead, let's just punt: use the minimum linelength reported by
13012 # all of the supported platforms: 8192 (on NT/2K/XP).
13013 lt_cv_sys_max_cmd_len=8192;
13016 mint*)
13017 # On MiNT this can take a long time and run out of memory.
13018 lt_cv_sys_max_cmd_len=8192;
13021 amigaos*)
13022 # On AmigaOS with pdksh, this test takes hours, literally.
13023 # So we just punt and use a minimum line length of 8192.
13024 lt_cv_sys_max_cmd_len=8192;
13027 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13028 # This has been around since 386BSD, at least. Likely further.
13029 if test -x /sbin/sysctl; then
13030 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13031 elif test -x /usr/sbin/sysctl; then
13032 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13033 else
13034 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13036 # And add a safety zone
13037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13041 interix*)
13042 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13043 lt_cv_sys_max_cmd_len=196608
13046 osf*)
13047 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13048 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13049 # nice to cause kernel panics so lets avoid the loop below.
13050 # First set a reasonable default.
13051 lt_cv_sys_max_cmd_len=16384
13053 if test -x /sbin/sysconfig; then
13054 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13055 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13056 esac
13059 sco3.2v5*)
13060 lt_cv_sys_max_cmd_len=102400
13062 sysv5* | sco5v6* | sysv4.2uw2*)
13063 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13064 if test -n "$kargmax"; then
13065 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13066 else
13067 lt_cv_sys_max_cmd_len=32768
13071 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13072 if test -n "$lt_cv_sys_max_cmd_len"; then
13073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13075 else
13076 # Make teststring a little bigger before we do anything with it.
13077 # a 1K string should be a reasonable start.
13078 for i in 1 2 3 4 5 6 7 8 ; do
13079 teststring=$teststring$teststring
13080 done
13081 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13082 # If test is not a shell built-in, we'll probably end up computing a
13083 # maximum length that is only half of the actual maximum length, but
13084 # we can't tell.
13085 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13086 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13087 test $i != 17 # 1/2 MB should be enough
13089 i=`expr $i + 1`
13090 teststring=$teststring$teststring
13091 done
13092 # Only check the string length outside the loop.
13093 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13094 teststring=
13095 # Add a significant safety factor because C++ compilers can tack on
13096 # massive amounts of additional arguments before passing them to the
13097 # linker. It appears as though 1/2 is a usable value.
13098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13101 esac
13105 if test -n $lt_cv_sys_max_cmd_len ; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13107 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13108 else
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13110 $as_echo "none" >&6; }
13112 max_cmd_len=$lt_cv_sys_max_cmd_len
13119 : ${CP="cp -f"}
13120 : ${MV="mv -f"}
13121 : ${RM="rm -f"}
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13124 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13125 # Try some XSI features
13126 xsi_shell=no
13127 ( _lt_dummy="a/b/c"
13128 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13129 = c,a/b,, \
13130 && eval 'test $(( 1 + 1 )) -eq 2 \
13131 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13132 && xsi_shell=yes
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13134 $as_echo "$xsi_shell" >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13138 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13139 lt_shell_append=no
13140 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13141 >/dev/null 2>&1 \
13142 && lt_shell_append=yes
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13144 $as_echo "$lt_shell_append" >&6; }
13147 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13148 lt_unset=unset
13149 else
13150 lt_unset=false
13157 # test EBCDIC or ASCII
13158 case `echo X|tr X '\101'` in
13159 A) # ASCII based system
13160 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13161 lt_SP2NL='tr \040 \012'
13162 lt_NL2SP='tr \015\012 \040\040'
13164 *) # EBCDIC based system
13165 lt_SP2NL='tr \100 \n'
13166 lt_NL2SP='tr \r\n \100\100'
13168 esac
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13179 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13180 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 lt_cv_ld_reload_flag='-r'
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13186 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13187 reload_flag=$lt_cv_ld_reload_flag
13188 case $reload_flag in
13189 "" | " "*) ;;
13190 *) reload_flag=" $reload_flag" ;;
13191 esac
13192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13193 case $host_os in
13194 darwin*)
13195 if test "$GCC" = yes; then
13196 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13197 else
13198 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13201 esac
13211 if test -n "$ac_tool_prefix"; then
13212 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13213 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215 $as_echo_n "checking for $ac_word... " >&6; }
13216 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 if test -n "$OBJDUMP"; then
13220 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13221 else
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13229 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13233 done
13234 done
13235 IFS=$as_save_IFS
13239 OBJDUMP=$ac_cv_prog_OBJDUMP
13240 if test -n "$OBJDUMP"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13242 $as_echo "$OBJDUMP" >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13250 if test -z "$ac_cv_prog_OBJDUMP"; then
13251 ac_ct_OBJDUMP=$OBJDUMP
13252 # Extract the first word of "objdump", so it can be a program name with args.
13253 set dummy objdump; ac_word=$2
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13255 $as_echo_n "checking for $ac_word... " >&6; }
13256 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 if test -n "$ac_ct_OBJDUMP"; then
13260 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13261 else
13262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13263 for as_dir in $PATH
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13273 done
13274 done
13275 IFS=$as_save_IFS
13279 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13280 if test -n "$ac_ct_OBJDUMP"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13282 $as_echo "$ac_ct_OBJDUMP" >&6; }
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13288 if test "x$ac_ct_OBJDUMP" = x; then
13289 OBJDUMP="false"
13290 else
13291 case $cross_compiling:$ac_tool_warned in
13292 yes:)
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13295 ac_tool_warned=yes ;;
13296 esac
13297 OBJDUMP=$ac_ct_OBJDUMP
13299 else
13300 OBJDUMP="$ac_cv_prog_OBJDUMP"
13303 test -z "$OBJDUMP" && OBJDUMP=objdump
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13314 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13315 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 lt_cv_file_magic_cmd='$MAGIC_CMD'
13319 lt_cv_file_magic_test_file=
13320 lt_cv_deplibs_check_method='unknown'
13321 # Need to set the preceding variable on all platforms that support
13322 # interlibrary dependencies.
13323 # 'none' -- dependencies not supported.
13324 # `unknown' -- same as none, but documents that we really don't know.
13325 # 'pass_all' -- all dependencies passed with no checks.
13326 # 'test_compile' -- check by making test program.
13327 # 'file_magic [[regex]]' -- check by looking for files in library path
13328 # which responds to the $file_magic_cmd with a given extended regex.
13329 # If you have `file' or equivalent on your system and you're not sure
13330 # whether `pass_all' will *always* work, you probably want this one.
13332 case $host_os in
13333 aix[4-9]*)
13334 lt_cv_deplibs_check_method=pass_all
13337 beos*)
13338 lt_cv_deplibs_check_method=pass_all
13341 bsdi[45]*)
13342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13343 lt_cv_file_magic_cmd='/usr/bin/file -L'
13344 lt_cv_file_magic_test_file=/shlib/libc.so
13347 cygwin*)
13348 # func_win32_libid is a shell function defined in ltmain.sh
13349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13350 lt_cv_file_magic_cmd='func_win32_libid'
13353 mingw* | pw32*)
13354 # Base MSYS/MinGW do not provide the 'file' command needed by
13355 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13356 # unless we find 'file', for example because we are cross-compiling.
13357 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13358 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13359 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13360 lt_cv_file_magic_cmd='func_win32_libid'
13361 else
13362 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13363 lt_cv_file_magic_cmd='$OBJDUMP -f'
13367 cegcc*)
13368 # use the weaker test based on 'objdump'. See mingw*.
13369 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13370 lt_cv_file_magic_cmd='$OBJDUMP -f'
13373 darwin* | rhapsody*)
13374 lt_cv_deplibs_check_method=pass_all
13377 freebsd* | dragonfly*)
13378 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13379 case $host_cpu in
13380 i*86 )
13381 # Not sure whether the presence of OpenBSD here was a mistake.
13382 # Let's accept both of them until this is cleared up.
13383 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13384 lt_cv_file_magic_cmd=/usr/bin/file
13385 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13387 esac
13388 else
13389 lt_cv_deplibs_check_method=pass_all
13393 gnu*)
13394 lt_cv_deplibs_check_method=pass_all
13397 haiku*)
13398 lt_cv_deplibs_check_method=pass_all
13401 hpux10.20* | hpux11*)
13402 lt_cv_file_magic_cmd=/usr/bin/file
13403 case $host_cpu in
13404 ia64*)
13405 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13406 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13408 hppa*64*)
13409 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]'
13410 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13413 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13414 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13416 esac
13419 interix[3-9]*)
13420 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13424 irix5* | irix6* | nonstopux*)
13425 case $LD in
13426 *-32|*"-32 ") libmagic=32-bit;;
13427 *-n32|*"-n32 ") libmagic=N32;;
13428 *-64|*"-64 ") libmagic=64-bit;;
13429 *) libmagic=never-match;;
13430 esac
13431 lt_cv_deplibs_check_method=pass_all
13434 # This must be Linux ELF.
13435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13436 lt_cv_deplibs_check_method=pass_all
13439 netbsd*)
13440 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13442 else
13443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13447 newos6*)
13448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13449 lt_cv_file_magic_cmd=/usr/bin/file
13450 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13453 *nto* | *qnx*)
13454 lt_cv_deplibs_check_method=pass_all
13457 openbsd*)
13458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13460 else
13461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13465 osf3* | osf4* | osf5*)
13466 lt_cv_deplibs_check_method=pass_all
13469 rdos*)
13470 lt_cv_deplibs_check_method=pass_all
13473 solaris*)
13474 lt_cv_deplibs_check_method=pass_all
13477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13478 lt_cv_deplibs_check_method=pass_all
13481 sysv4 | sysv4.3*)
13482 case $host_vendor in
13483 motorola)
13484 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]'
13485 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13487 ncr)
13488 lt_cv_deplibs_check_method=pass_all
13490 sequent)
13491 lt_cv_file_magic_cmd='/bin/file'
13492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13494 sni)
13495 lt_cv_file_magic_cmd='/bin/file'
13496 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13497 lt_cv_file_magic_test_file=/lib/libc.so
13499 siemens)
13500 lt_cv_deplibs_check_method=pass_all
13503 lt_cv_deplibs_check_method=pass_all
13505 esac
13508 tpf*)
13509 lt_cv_deplibs_check_method=pass_all
13511 esac
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13515 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13516 file_magic_cmd=$lt_cv_file_magic_cmd
13517 deplibs_check_method=$lt_cv_deplibs_check_method
13518 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13531 if test -n "$ac_tool_prefix"; then
13532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13533 set dummy ${ac_tool_prefix}ar; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if test "${ac_cv_prog_AR+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 if test -n "$AR"; then
13540 ac_cv_prog_AR="$AR" # Let the user override the test.
13541 else
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13545 IFS=$as_save_IFS
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13549 ac_cv_prog_AR="${ac_tool_prefix}ar"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 break 2
13553 done
13554 done
13555 IFS=$as_save_IFS
13559 AR=$ac_cv_prog_AR
13560 if test -n "$AR"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13562 $as_echo "$AR" >&6; }
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13570 if test -z "$ac_cv_prog_AR"; then
13571 ac_ct_AR=$AR
13572 # Extract the first word of "ar", so it can be a program name with args.
13573 set dummy ar; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 if test -n "$ac_ct_AR"; then
13580 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13581 else
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13585 IFS=$as_save_IFS
13586 test -z "$as_dir" && as_dir=.
13587 for ac_exec_ext in '' $ac_executable_extensions; do
13588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13589 ac_cv_prog_ac_ct_AR="ar"
13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 break 2
13593 done
13594 done
13595 IFS=$as_save_IFS
13599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13600 if test -n "$ac_ct_AR"; then
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13602 $as_echo "$ac_ct_AR" >&6; }
13603 else
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13608 if test "x$ac_ct_AR" = x; then
13609 AR="false"
13610 else
13611 case $cross_compiling:$ac_tool_warned in
13612 yes:)
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13615 ac_tool_warned=yes ;;
13616 esac
13617 AR=$ac_ct_AR
13619 else
13620 AR="$ac_cv_prog_AR"
13623 test -z "$AR" && AR=ar
13624 test -z "$AR_FLAGS" && AR_FLAGS=cru
13636 if test -n "$ac_tool_prefix"; then
13637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13638 set dummy ${ac_tool_prefix}strip; ac_word=$2
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640 $as_echo_n "checking for $ac_word... " >&6; }
13641 if test "${ac_cv_prog_STRIP+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 if test -n "$STRIP"; then
13645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13646 else
13647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648 for as_dir in $PATH
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
13653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13658 done
13659 done
13660 IFS=$as_save_IFS
13664 STRIP=$ac_cv_prog_STRIP
13665 if test -n "$STRIP"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13667 $as_echo "$STRIP" >&6; }
13668 else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13675 if test -z "$ac_cv_prog_STRIP"; then
13676 ac_ct_STRIP=$STRIP
13677 # Extract the first word of "strip", so it can be a program name with args.
13678 set dummy strip; ac_word=$2
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13680 $as_echo_n "checking for $ac_word... " >&6; }
13681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13682 $as_echo_n "(cached) " >&6
13683 else
13684 if test -n "$ac_ct_STRIP"; then
13685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13686 else
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH
13690 IFS=$as_save_IFS
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13694 ac_cv_prog_ac_ct_STRIP="strip"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13696 break 2
13698 done
13699 done
13700 IFS=$as_save_IFS
13704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13705 if test -n "$ac_ct_STRIP"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13707 $as_echo "$ac_ct_STRIP" >&6; }
13708 else
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13713 if test "x$ac_ct_STRIP" = x; then
13714 STRIP=":"
13715 else
13716 case $cross_compiling:$ac_tool_warned in
13717 yes:)
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13720 ac_tool_warned=yes ;;
13721 esac
13722 STRIP=$ac_ct_STRIP
13724 else
13725 STRIP="$ac_cv_prog_STRIP"
13728 test -z "$STRIP" && STRIP=:
13735 if test -n "$ac_tool_prefix"; then
13736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739 $as_echo_n "checking for $ac_word... " >&6; }
13740 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13741 $as_echo_n "(cached) " >&6
13742 else
13743 if test -n "$RANLIB"; then
13744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13745 else
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747 for as_dir in $PATH
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13755 break 2
13757 done
13758 done
13759 IFS=$as_save_IFS
13763 RANLIB=$ac_cv_prog_RANLIB
13764 if test -n "$RANLIB"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13766 $as_echo "$RANLIB" >&6; }
13767 else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13774 if test -z "$ac_cv_prog_RANLIB"; then
13775 ac_ct_RANLIB=$RANLIB
13776 # Extract the first word of "ranlib", so it can be a program name with args.
13777 set dummy ranlib; ac_word=$2
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779 $as_echo_n "checking for $ac_word... " >&6; }
13780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 if test -n "$ac_ct_RANLIB"; then
13784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13785 else
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13793 ac_cv_prog_ac_ct_RANLIB="ranlib"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13797 done
13798 done
13799 IFS=$as_save_IFS
13803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13804 if test -n "$ac_ct_RANLIB"; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13806 $as_echo "$ac_ct_RANLIB" >&6; }
13807 else
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 $as_echo "no" >&6; }
13812 if test "x$ac_ct_RANLIB" = x; then
13813 RANLIB=":"
13814 else
13815 case $cross_compiling:$ac_tool_warned in
13816 yes:)
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13819 ac_tool_warned=yes ;;
13820 esac
13821 RANLIB=$ac_ct_RANLIB
13823 else
13824 RANLIB="$ac_cv_prog_RANLIB"
13827 test -z "$RANLIB" && RANLIB=:
13834 # Determine commands to create old-style static archives.
13835 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13836 old_postinstall_cmds='chmod 644 $oldlib'
13837 old_postuninstall_cmds=
13839 if test -n "$RANLIB"; then
13840 case $host_os in
13841 openbsd*)
13842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13847 esac
13848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13851 case $host_os in
13852 darwin*)
13853 lock_old_archive_extraction=yes ;;
13855 lock_old_archive_extraction=no ;;
13856 esac
13896 # If no C compiler was specified, use CC.
13897 LTCC=${LTCC-"$CC"}
13899 # If no C compiler flags were specified, use CFLAGS.
13900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13902 # Allow CC to be a program name with arguments.
13903 compiler=$CC
13906 # Check for command to grab the raw symbol name followed by C symbol from nm.
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13908 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13909 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13913 # These are sane defaults that work on at least a few old systems.
13914 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13916 # Character class describing NM global symbol codes.
13917 symcode='[BCDEGRST]'
13919 # Regexp to match symbols that can be accessed directly from C.
13920 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13922 # Define system-specific variables.
13923 case $host_os in
13924 aix*)
13925 symcode='[BCDT]'
13927 cygwin* | mingw* | pw32* | cegcc*)
13928 symcode='[ABCDGISTW]'
13930 hpux*)
13931 if test "$host_cpu" = ia64; then
13932 symcode='[ABCDEGRST]'
13935 irix* | nonstopux*)
13936 symcode='[BCDEGRST]'
13938 osf*)
13939 symcode='[BCDEGQRST]'
13941 solaris*)
13942 symcode='[BDRT]'
13944 sco3.2v5*)
13945 symcode='[DT]'
13947 sysv4.2uw2*)
13948 symcode='[DT]'
13950 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13951 symcode='[ABDT]'
13953 sysv4)
13954 symcode='[DFNSTU]'
13956 esac
13958 # If we're using GNU nm, then use its standard symbol codes.
13959 case `$NM -V 2>&1` in
13960 *GNU* | *'with BFD'*)
13961 symcode='[ABCDGIRSTW]' ;;
13962 esac
13964 # Transform an extracted symbol line into a proper C declaration.
13965 # Some systems (esp. on ia64) link data and code symbols differently,
13966 # so use this general approach.
13967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13969 # Transform an extracted symbol line into symbol name and symbol address
13970 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13971 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'"
13973 # Handle CRLF in mingw tool chain
13974 opt_cr=
13975 case $build_os in
13976 mingw*)
13977 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13979 esac
13981 # Try without a prefix underscore, then with it.
13982 for ac_symprfx in "" "_"; do
13984 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13985 symxfrm="\\1 $ac_symprfx\\2 \\2"
13987 # Write the raw and C identifiers.
13988 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13989 # Fake it for dumpbin and say T for any non-static function
13990 # and D for any global variable.
13991 # Also find C++ and __fastcall symbols from MSVC++,
13992 # which start with @ or ?.
13993 lt_cv_sys_global_symbol_pipe="$AWK '"\
13994 " {last_section=section; section=\$ 3};"\
13995 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13996 " \$ 0!~/External *\|/{next};"\
13997 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13998 " {if(hide[section]) next};"\
13999 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14000 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14001 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14002 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14003 " ' prfx=^$ac_symprfx"
14004 else
14005 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14008 # Check to see that the pipe works correctly.
14009 pipe_works=no
14011 rm -f conftest*
14012 cat > conftest.$ac_ext <<_LT_EOF
14013 #ifdef __cplusplus
14014 extern "C" {
14015 #endif
14016 char nm_test_var;
14017 void nm_test_func(void);
14018 void nm_test_func(void){}
14019 #ifdef __cplusplus
14021 #endif
14022 int main(){nm_test_var='a';nm_test_func();return(0);}
14023 _LT_EOF
14025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14026 (eval $ac_compile) 2>&5
14027 ac_status=$?
14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029 test $ac_status = 0; }; then
14030 # Now try to grab the symbols.
14031 nlist=conftest.nm
14032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14033 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14034 ac_status=$?
14035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14036 test $ac_status = 0; } && test -s "$nlist"; then
14037 # Try sorting and uniquifying the output.
14038 if sort "$nlist" | uniq > "$nlist"T; then
14039 mv -f "$nlist"T "$nlist"
14040 else
14041 rm -f "$nlist"T
14044 # Make sure that we snagged all the symbols we need.
14045 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14046 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14047 cat <<_LT_EOF > conftest.$ac_ext
14048 #ifdef __cplusplus
14049 extern "C" {
14050 #endif
14052 _LT_EOF
14053 # Now generate the symbol file.
14054 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14056 cat <<_LT_EOF >> conftest.$ac_ext
14058 /* The mapping between symbol names and symbols. */
14059 const struct {
14060 const char *name;
14061 void *address;
14063 lt__PROGRAM__LTX_preloaded_symbols[] =
14065 { "@PROGRAM@", (void *) 0 },
14066 _LT_EOF
14067 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14068 cat <<\_LT_EOF >> conftest.$ac_ext
14069 {0, (void *) 0}
14072 /* This works around a problem in FreeBSD linker */
14073 #ifdef FREEBSD_WORKAROUND
14074 static const void *lt_preloaded_setup() {
14075 return lt__PROGRAM__LTX_preloaded_symbols;
14077 #endif
14079 #ifdef __cplusplus
14081 #endif
14082 _LT_EOF
14083 # Now try linking the two files.
14084 mv conftest.$ac_objext conftstm.$ac_objext
14085 lt_save_LIBS="$LIBS"
14086 lt_save_CFLAGS="$CFLAGS"
14087 LIBS="conftstm.$ac_objext"
14088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14090 (eval $ac_link) 2>&5
14091 ac_status=$?
14092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14093 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14094 pipe_works=yes
14096 LIBS="$lt_save_LIBS"
14097 CFLAGS="$lt_save_CFLAGS"
14098 else
14099 echo "cannot find nm_test_func in $nlist" >&5
14101 else
14102 echo "cannot find nm_test_var in $nlist" >&5
14104 else
14105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14107 else
14108 echo "$progname: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14111 rm -rf conftest* conftst*
14113 # Do not use the global_symbol_pipe unless it works.
14114 if test "$pipe_works" = yes; then
14115 break
14116 else
14117 lt_cv_sys_global_symbol_pipe=
14119 done
14123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14124 lt_cv_sys_global_symbol_to_cdecl=
14126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14128 $as_echo "failed" >&6; }
14129 else
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14131 $as_echo "ok" >&6; }
14155 # Check whether --enable-libtool-lock was given.
14156 if test "${enable_libtool_lock+set}" = set; then :
14157 enableval=$enable_libtool_lock;
14160 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14162 # Some flags need to be propagated to the compiler or linker for good
14163 # libtool support.
14164 case $host in
14165 ia64-*-hpux*)
14166 # Find out which ABI we are using.
14167 echo 'int i;' > conftest.$ac_ext
14168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14169 (eval $ac_compile) 2>&5
14170 ac_status=$?
14171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14172 test $ac_status = 0; }; then
14173 case `/usr/bin/file conftest.$ac_objext` in
14174 *ELF-32*)
14175 HPUX_IA64_MODE="32"
14177 *ELF-64*)
14178 HPUX_IA64_MODE="64"
14180 esac
14182 rm -rf conftest*
14184 *-*-irix6*)
14185 # Find out which ABI we are using.
14186 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14188 (eval $ac_compile) 2>&5
14189 ac_status=$?
14190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14191 test $ac_status = 0; }; then
14192 if test "$lt_cv_prog_gnu_ld" = yes; then
14193 case `/usr/bin/file conftest.$ac_objext` in
14194 *32-bit*)
14195 LD="${LD-ld} -melf32bsmip"
14197 *N32*)
14198 LD="${LD-ld} -melf32bmipn32"
14200 *64-bit*)
14201 LD="${LD-ld} -melf64bmip"
14203 esac
14204 else
14205 case `/usr/bin/file conftest.$ac_objext` in
14206 *32-bit*)
14207 LD="${LD-ld} -32"
14209 *N32*)
14210 LD="${LD-ld} -n32"
14212 *64-bit*)
14213 LD="${LD-ld} -64"
14215 esac
14218 rm -rf conftest*
14221 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14222 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14223 # Find out which ABI we are using.
14224 echo 'int i;' > conftest.$ac_ext
14225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14226 (eval $ac_compile) 2>&5
14227 ac_status=$?
14228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14229 test $ac_status = 0; }; then
14230 case `/usr/bin/file conftest.o` in
14231 *32-bit*)
14232 case $host in
14233 x86_64-*kfreebsd*-gnu)
14234 LD="${LD-ld} -m elf_i386_fbsd"
14236 x86_64-*linux*)
14237 case `/usr/bin/file conftest.o` in
14238 *x86-64*)
14239 LD="${LD-ld} -m elf32_x86_64"
14242 LD="${LD-ld} -m elf_i386"
14244 esac
14246 powerpc64le-*linux*)
14247 LD="${LD-ld} -m elf32lppclinux"
14249 powerpc64-*linux*)
14250 LD="${LD-ld} -m elf32ppclinux"
14252 s390x-*linux*)
14253 LD="${LD-ld} -m elf_s390"
14255 sparc64-*linux*)
14256 LD="${LD-ld} -m elf32_sparc"
14258 esac
14260 *64-bit*)
14261 case $host in
14262 x86_64-*kfreebsd*-gnu)
14263 LD="${LD-ld} -m elf_x86_64_fbsd"
14265 x86_64-*linux*)
14266 LD="${LD-ld} -m elf_x86_64"
14268 powerpcle-*linux*)
14269 LD="${LD-ld} -m elf64lppc"
14271 powerpc-*linux*)
14272 LD="${LD-ld} -m elf64ppc"
14274 s390*-*linux*|s390*-*tpf*)
14275 LD="${LD-ld} -m elf64_s390"
14277 sparc*-*linux*)
14278 LD="${LD-ld} -m elf64_sparc"
14280 esac
14282 esac
14284 rm -rf conftest*
14287 *-*-sco3.2v5*)
14288 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14289 SAVE_CFLAGS="$CFLAGS"
14290 CFLAGS="$CFLAGS -belf"
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14292 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14293 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 ac_ext=c
14297 ac_cpp='$CPP $CPPFLAGS'
14298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14306 main ()
14310 return 0;
14312 _ACEOF
14313 if ac_fn_c_try_link "$LINENO"; then :
14314 lt_cv_cc_needs_belf=yes
14315 else
14316 lt_cv_cc_needs_belf=no
14318 rm -f core conftest.err conftest.$ac_objext \
14319 conftest$ac_exeext conftest.$ac_ext
14320 ac_ext=c
14321 ac_cpp='$CPP $CPPFLAGS'
14322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14328 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14329 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14331 CFLAGS="$SAVE_CFLAGS"
14334 sparc*-*solaris*)
14335 # Find out which ABI we are using.
14336 echo 'int i;' > conftest.$ac_ext
14337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14338 (eval $ac_compile) 2>&5
14339 ac_status=$?
14340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14341 test $ac_status = 0; }; then
14342 case `/usr/bin/file conftest.o` in
14343 *64-bit*)
14344 case $lt_cv_prog_gnu_ld in
14345 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14347 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14348 LD="${LD-ld} -64"
14351 esac
14353 esac
14355 rm -rf conftest*
14357 esac
14359 need_locks="$enable_libtool_lock"
14362 case $host_os in
14363 rhapsody* | darwin*)
14364 if test -n "$ac_tool_prefix"; then
14365 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14366 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14368 $as_echo_n "checking for $ac_word... " >&6; }
14369 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
14371 else
14372 if test -n "$DSYMUTIL"; then
14373 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14374 else
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14378 IFS=$as_save_IFS
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14382 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 break 2
14386 done
14387 done
14388 IFS=$as_save_IFS
14392 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14393 if test -n "$DSYMUTIL"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14395 $as_echo "$DSYMUTIL" >&6; }
14396 else
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14403 if test -z "$ac_cv_prog_DSYMUTIL"; then
14404 ac_ct_DSYMUTIL=$DSYMUTIL
14405 # Extract the first word of "dsymutil", so it can be a program name with args.
14406 set dummy dsymutil; ac_word=$2
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408 $as_echo_n "checking for $ac_word... " >&6; }
14409 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 if test -n "$ac_ct_DSYMUTIL"; then
14413 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14414 else
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14418 IFS=$as_save_IFS
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
14421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14422 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14424 break 2
14426 done
14427 done
14428 IFS=$as_save_IFS
14432 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14433 if test -n "$ac_ct_DSYMUTIL"; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14435 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14436 else
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438 $as_echo "no" >&6; }
14441 if test "x$ac_ct_DSYMUTIL" = x; then
14442 DSYMUTIL=":"
14443 else
14444 case $cross_compiling:$ac_tool_warned in
14445 yes:)
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14448 ac_tool_warned=yes ;;
14449 esac
14450 DSYMUTIL=$ac_ct_DSYMUTIL
14452 else
14453 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14456 if test -n "$ac_tool_prefix"; then
14457 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14458 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14460 $as_echo_n "checking for $ac_word... " >&6; }
14461 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14462 $as_echo_n "(cached) " >&6
14463 else
14464 if test -n "$NMEDIT"; then
14465 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14466 else
14467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14468 for as_dir in $PATH
14470 IFS=$as_save_IFS
14471 test -z "$as_dir" && as_dir=.
14472 for ac_exec_ext in '' $ac_executable_extensions; do
14473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14474 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14476 break 2
14478 done
14479 done
14480 IFS=$as_save_IFS
14484 NMEDIT=$ac_cv_prog_NMEDIT
14485 if test -n "$NMEDIT"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14487 $as_echo "$NMEDIT" >&6; }
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14495 if test -z "$ac_cv_prog_NMEDIT"; then
14496 ac_ct_NMEDIT=$NMEDIT
14497 # Extract the first word of "nmedit", so it can be a program name with args.
14498 set dummy nmedit; ac_word=$2
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14500 $as_echo_n "checking for $ac_word... " >&6; }
14501 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14503 else
14504 if test -n "$ac_ct_NMEDIT"; then
14505 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14506 else
14507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14508 for as_dir in $PATH
14510 IFS=$as_save_IFS
14511 test -z "$as_dir" && as_dir=.
14512 for ac_exec_ext in '' $ac_executable_extensions; do
14513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14514 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14516 break 2
14518 done
14519 done
14520 IFS=$as_save_IFS
14524 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14525 if test -n "$ac_ct_NMEDIT"; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14527 $as_echo "$ac_ct_NMEDIT" >&6; }
14528 else
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530 $as_echo "no" >&6; }
14533 if test "x$ac_ct_NMEDIT" = x; then
14534 NMEDIT=":"
14535 else
14536 case $cross_compiling:$ac_tool_warned in
14537 yes:)
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14540 ac_tool_warned=yes ;;
14541 esac
14542 NMEDIT=$ac_ct_NMEDIT
14544 else
14545 NMEDIT="$ac_cv_prog_NMEDIT"
14548 if test -n "$ac_tool_prefix"; then
14549 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14550 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552 $as_echo_n "checking for $ac_word... " >&6; }
14553 if test "${ac_cv_prog_LIPO+set}" = set; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 if test -n "$LIPO"; then
14557 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14558 else
14559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560 for as_dir in $PATH
14562 IFS=$as_save_IFS
14563 test -z "$as_dir" && as_dir=.
14564 for ac_exec_ext in '' $ac_executable_extensions; do
14565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14566 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14568 break 2
14570 done
14571 done
14572 IFS=$as_save_IFS
14576 LIPO=$ac_cv_prog_LIPO
14577 if test -n "$LIPO"; then
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14579 $as_echo "$LIPO" >&6; }
14580 else
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14587 if test -z "$ac_cv_prog_LIPO"; then
14588 ac_ct_LIPO=$LIPO
14589 # Extract the first word of "lipo", so it can be a program name with args.
14590 set dummy lipo; ac_word=$2
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14592 $as_echo_n "checking for $ac_word... " >&6; }
14593 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14594 $as_echo_n "(cached) " >&6
14595 else
14596 if test -n "$ac_ct_LIPO"; then
14597 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14598 else
14599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600 for as_dir in $PATH
14602 IFS=$as_save_IFS
14603 test -z "$as_dir" && as_dir=.
14604 for ac_exec_ext in '' $ac_executable_extensions; do
14605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14606 ac_cv_prog_ac_ct_LIPO="lipo"
14607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14608 break 2
14610 done
14611 done
14612 IFS=$as_save_IFS
14616 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14617 if test -n "$ac_ct_LIPO"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14619 $as_echo "$ac_ct_LIPO" >&6; }
14620 else
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622 $as_echo "no" >&6; }
14625 if test "x$ac_ct_LIPO" = x; then
14626 LIPO=":"
14627 else
14628 case $cross_compiling:$ac_tool_warned in
14629 yes:)
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14632 ac_tool_warned=yes ;;
14633 esac
14634 LIPO=$ac_ct_LIPO
14636 else
14637 LIPO="$ac_cv_prog_LIPO"
14640 if test -n "$ac_tool_prefix"; then
14641 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14642 set dummy ${ac_tool_prefix}otool; ac_word=$2
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14644 $as_echo_n "checking for $ac_word... " >&6; }
14645 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 if test -n "$OTOOL"; then
14649 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14650 else
14651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14654 IFS=$as_save_IFS
14655 test -z "$as_dir" && as_dir=.
14656 for ac_exec_ext in '' $ac_executable_extensions; do
14657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14658 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14660 break 2
14662 done
14663 done
14664 IFS=$as_save_IFS
14668 OTOOL=$ac_cv_prog_OTOOL
14669 if test -n "$OTOOL"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14671 $as_echo "$OTOOL" >&6; }
14672 else
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14679 if test -z "$ac_cv_prog_OTOOL"; then
14680 ac_ct_OTOOL=$OTOOL
14681 # Extract the first word of "otool", so it can be a program name with args.
14682 set dummy otool; ac_word=$2
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14684 $as_echo_n "checking for $ac_word... " >&6; }
14685 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 if test -n "$ac_ct_OTOOL"; then
14689 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14690 else
14691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14692 for as_dir in $PATH
14694 IFS=$as_save_IFS
14695 test -z "$as_dir" && as_dir=.
14696 for ac_exec_ext in '' $ac_executable_extensions; do
14697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14698 ac_cv_prog_ac_ct_OTOOL="otool"
14699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14700 break 2
14702 done
14703 done
14704 IFS=$as_save_IFS
14708 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14709 if test -n "$ac_ct_OTOOL"; then
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14711 $as_echo "$ac_ct_OTOOL" >&6; }
14712 else
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714 $as_echo "no" >&6; }
14717 if test "x$ac_ct_OTOOL" = x; then
14718 OTOOL=":"
14719 else
14720 case $cross_compiling:$ac_tool_warned in
14721 yes:)
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14724 ac_tool_warned=yes ;;
14725 esac
14726 OTOOL=$ac_ct_OTOOL
14728 else
14729 OTOOL="$ac_cv_prog_OTOOL"
14732 if test -n "$ac_tool_prefix"; then
14733 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14734 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14736 $as_echo_n "checking for $ac_word... " >&6; }
14737 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14738 $as_echo_n "(cached) " >&6
14739 else
14740 if test -n "$OTOOL64"; then
14741 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14742 else
14743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14744 for as_dir in $PATH
14746 IFS=$as_save_IFS
14747 test -z "$as_dir" && as_dir=.
14748 for ac_exec_ext in '' $ac_executable_extensions; do
14749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14750 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14752 break 2
14754 done
14755 done
14756 IFS=$as_save_IFS
14760 OTOOL64=$ac_cv_prog_OTOOL64
14761 if test -n "$OTOOL64"; then
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14763 $as_echo "$OTOOL64" >&6; }
14764 else
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766 $as_echo "no" >&6; }
14771 if test -z "$ac_cv_prog_OTOOL64"; then
14772 ac_ct_OTOOL64=$OTOOL64
14773 # Extract the first word of "otool64", so it can be a program name with args.
14774 set dummy otool64; ac_word=$2
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14776 $as_echo_n "checking for $ac_word... " >&6; }
14777 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14779 else
14780 if test -n "$ac_ct_OTOOL64"; then
14781 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14782 else
14783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14784 for as_dir in $PATH
14786 IFS=$as_save_IFS
14787 test -z "$as_dir" && as_dir=.
14788 for ac_exec_ext in '' $ac_executable_extensions; do
14789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14790 ac_cv_prog_ac_ct_OTOOL64="otool64"
14791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14792 break 2
14794 done
14795 done
14796 IFS=$as_save_IFS
14800 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14801 if test -n "$ac_ct_OTOOL64"; then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14803 $as_echo "$ac_ct_OTOOL64" >&6; }
14804 else
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806 $as_echo "no" >&6; }
14809 if test "x$ac_ct_OTOOL64" = x; then
14810 OTOOL64=":"
14811 else
14812 case $cross_compiling:$ac_tool_warned in
14813 yes:)
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14816 ac_tool_warned=yes ;;
14817 esac
14818 OTOOL64=$ac_ct_OTOOL64
14820 else
14821 OTOOL64="$ac_cv_prog_OTOOL64"
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14851 $as_echo_n "checking for -single_module linker flag... " >&6; }
14852 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 lt_cv_apple_cc_single_mod=no
14856 if test -z "${LT_MULTI_MODULE}"; then
14857 # By default we will add the -single_module flag. You can override
14858 # by either setting the environment variable LT_MULTI_MODULE
14859 # non-empty at configure time, or by adding -multi_module to the
14860 # link flags.
14861 rm -rf libconftest.dylib*
14862 echo "int foo(void){return 1;}" > conftest.c
14863 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14864 -dynamiclib -Wl,-single_module conftest.c" >&5
14865 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14866 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14867 _lt_result=$?
14868 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14869 lt_cv_apple_cc_single_mod=yes
14870 else
14871 cat conftest.err >&5
14873 rm -rf libconftest.dylib*
14874 rm -f conftest.*
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14878 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14880 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14881 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 lt_cv_ld_exported_symbols_list=no
14885 save_LDFLAGS=$LDFLAGS
14886 echo "_main" > conftest.sym
14887 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14892 main ()
14896 return 0;
14898 _ACEOF
14899 if ac_fn_c_try_link "$LINENO"; then :
14900 lt_cv_ld_exported_symbols_list=yes
14901 else
14902 lt_cv_ld_exported_symbols_list=no
14904 rm -f core conftest.err conftest.$ac_objext \
14905 conftest$ac_exeext conftest.$ac_ext
14906 LDFLAGS="$save_LDFLAGS"
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14910 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14912 $as_echo_n "checking for -force_load linker flag... " >&6; }
14913 if test "${lt_cv_ld_force_load+set}" = set; then :
14914 $as_echo_n "(cached) " >&6
14915 else
14916 lt_cv_ld_force_load=no
14917 cat > conftest.c << _LT_EOF
14918 int forced_loaded() { return 2;}
14919 _LT_EOF
14920 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14921 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14922 echo "$AR cru libconftest.a conftest.o" >&5
14923 $AR cru libconftest.a conftest.o 2>&5
14924 cat > conftest.c << _LT_EOF
14925 int main() { return 0;}
14926 _LT_EOF
14927 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14928 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14929 _lt_result=$?
14930 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14931 lt_cv_ld_force_load=yes
14932 else
14933 cat conftest.err >&5
14935 rm -f conftest.err libconftest.a conftest conftest.c
14936 rm -rf conftest.dSYM
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14940 $as_echo "$lt_cv_ld_force_load" >&6; }
14941 case $host_os in
14942 rhapsody* | darwin1.[012])
14943 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14944 darwin1.*)
14945 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14946 darwin*) # darwin 5.x on
14947 # if running on 10.5 or later, the deployment target defaults
14948 # to the OS version, if on x86, and 10.4, the deployment
14949 # target defaults to 10.4. Don't you love it?
14950 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14951 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14952 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14953 10.[012][,.]*)
14954 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14955 10.*)
14956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14957 esac
14959 esac
14960 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14961 _lt_dar_single_mod='$single_module'
14963 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14964 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14965 else
14966 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14968 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14969 _lt_dsymutil='~$DSYMUTIL $lib || :'
14970 else
14971 _lt_dsymutil=
14974 esac
14977 for ac_header in dlfcn.h
14978 do :
14979 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14980 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14981 cat >>confdefs.h <<_ACEOF
14982 #define HAVE_DLFCN_H 1
14983 _ACEOF
14986 done
14992 # Set options
14996 enable_dlopen=no
14999 enable_win32_dll=no
15002 # Check whether --enable-shared was given.
15003 if test "${enable_shared+set}" = set; then :
15004 enableval=$enable_shared; p=${PACKAGE-default}
15005 case $enableval in
15006 yes) enable_shared=yes ;;
15007 no) enable_shared=no ;;
15009 enable_shared=no
15010 # Look at the argument we got. We use all the common list separators.
15011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15012 for pkg in $enableval; do
15013 IFS="$lt_save_ifs"
15014 if test "X$pkg" = "X$p"; then
15015 enable_shared=yes
15017 done
15018 IFS="$lt_save_ifs"
15020 esac
15021 else
15022 enable_shared=yes
15033 # Check whether --enable-static was given.
15034 if test "${enable_static+set}" = set; then :
15035 enableval=$enable_static; p=${PACKAGE-default}
15036 case $enableval in
15037 yes) enable_static=yes ;;
15038 no) enable_static=no ;;
15040 enable_static=no
15041 # Look at the argument we got. We use all the common list separators.
15042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15043 for pkg in $enableval; do
15044 IFS="$lt_save_ifs"
15045 if test "X$pkg" = "X$p"; then
15046 enable_static=yes
15048 done
15049 IFS="$lt_save_ifs"
15051 esac
15052 else
15053 enable_static=yes
15065 # Check whether --with-pic was given.
15066 if test "${with_pic+set}" = set; then :
15067 withval=$with_pic; pic_mode="$withval"
15068 else
15069 pic_mode=default
15073 test -z "$pic_mode" && pic_mode=default
15081 # Check whether --enable-fast-install was given.
15082 if test "${enable_fast_install+set}" = set; then :
15083 enableval=$enable_fast_install; p=${PACKAGE-default}
15084 case $enableval in
15085 yes) enable_fast_install=yes ;;
15086 no) enable_fast_install=no ;;
15088 enable_fast_install=no
15089 # Look at the argument we got. We use all the common list separators.
15090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15091 for pkg in $enableval; do
15092 IFS="$lt_save_ifs"
15093 if test "X$pkg" = "X$p"; then
15094 enable_fast_install=yes
15096 done
15097 IFS="$lt_save_ifs"
15099 esac
15100 else
15101 enable_fast_install=yes
15114 # This can be used to rebuild libtool when needed
15115 LIBTOOL_DEPS="$ltmain"
15117 # Always use our own libtool.
15118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15145 test -z "$LN_S" && LN_S="ln -s"
15160 if test -n "${ZSH_VERSION+set}" ; then
15161 setopt NO_GLOB_SUBST
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15165 $as_echo_n "checking for objdir... " >&6; }
15166 if test "${lt_cv_objdir+set}" = set; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 rm -f .libs 2>/dev/null
15170 mkdir .libs 2>/dev/null
15171 if test -d .libs; then
15172 lt_cv_objdir=.libs
15173 else
15174 # MS-DOS does not allow filenames that begin with a dot.
15175 lt_cv_objdir=_libs
15177 rmdir .libs 2>/dev/null
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15180 $as_echo "$lt_cv_objdir" >&6; }
15181 objdir=$lt_cv_objdir
15187 cat >>confdefs.h <<_ACEOF
15188 #define LT_OBJDIR "$lt_cv_objdir/"
15189 _ACEOF
15194 case $host_os in
15195 aix3*)
15196 # AIX sometimes has problems with the GCC collect2 program. For some
15197 # reason, if we set the COLLECT_NAMES environment variable, the problems
15198 # vanish in a puff of smoke.
15199 if test "X${COLLECT_NAMES+set}" != Xset; then
15200 COLLECT_NAMES=
15201 export COLLECT_NAMES
15204 esac
15206 # Global variables:
15207 ofile=libtool
15208 can_build_shared=yes
15210 # All known linkers require a `.a' archive for static linking (except MSVC,
15211 # which needs '.lib').
15212 libext=a
15214 with_gnu_ld="$lt_cv_prog_gnu_ld"
15216 old_CC="$CC"
15217 old_CFLAGS="$CFLAGS"
15219 # Set sane defaults for various variables
15220 test -z "$CC" && CC=cc
15221 test -z "$LTCC" && LTCC=$CC
15222 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15223 test -z "$LD" && LD=ld
15224 test -z "$ac_objext" && ac_objext=o
15226 for cc_temp in $compiler""; do
15227 case $cc_temp in
15228 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15229 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15230 \-*) ;;
15231 *) break;;
15232 esac
15233 done
15234 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15237 # Only perform the check for file, if the check method requires it
15238 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15239 case $deplibs_check_method in
15240 file_magic*)
15241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15243 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15244 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15245 $as_echo_n "(cached) " >&6
15246 else
15247 case $MAGIC_CMD in
15248 [\\/*] | ?:[\\/]*)
15249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15252 lt_save_MAGIC_CMD="$MAGIC_CMD"
15253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15255 for ac_dir in $ac_dummy; do
15256 IFS="$lt_save_ifs"
15257 test -z "$ac_dir" && ac_dir=.
15258 if test -f $ac_dir/${ac_tool_prefix}file; then
15259 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15260 if test -n "$file_magic_test_file"; then
15261 case $deplibs_check_method in
15262 "file_magic "*)
15263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15266 $EGREP "$file_magic_regex" > /dev/null; then
15268 else
15269 cat <<_LT_EOF 1>&2
15271 *** Warning: the command libtool uses to detect shared libraries,
15272 *** $file_magic_cmd, produces output that libtool cannot recognize.
15273 *** The result is that libtool may fail to recognize shared libraries
15274 *** as such. This will affect the creation of libtool libraries that
15275 *** depend on shared libraries, but programs linked with such libtool
15276 *** libraries will work regardless of this problem. Nevertheless, you
15277 *** may want to report the problem to your system manager and/or to
15278 *** bug-libtool@gnu.org
15280 _LT_EOF
15281 fi ;;
15282 esac
15284 break
15286 done
15287 IFS="$lt_save_ifs"
15288 MAGIC_CMD="$lt_save_MAGIC_CMD"
15290 esac
15293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15294 if test -n "$MAGIC_CMD"; then
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15296 $as_echo "$MAGIC_CMD" >&6; }
15297 else
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15299 $as_echo "no" >&6; }
15306 if test -z "$lt_cv_path_MAGIC_CMD"; then
15307 if test -n "$ac_tool_prefix"; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15309 $as_echo_n "checking for file... " >&6; }
15310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15311 $as_echo_n "(cached) " >&6
15312 else
15313 case $MAGIC_CMD in
15314 [\\/*] | ?:[\\/]*)
15315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15318 lt_save_MAGIC_CMD="$MAGIC_CMD"
15319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15321 for ac_dir in $ac_dummy; do
15322 IFS="$lt_save_ifs"
15323 test -z "$ac_dir" && ac_dir=.
15324 if test -f $ac_dir/file; then
15325 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15326 if test -n "$file_magic_test_file"; then
15327 case $deplibs_check_method in
15328 "file_magic "*)
15329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15332 $EGREP "$file_magic_regex" > /dev/null; then
15334 else
15335 cat <<_LT_EOF 1>&2
15337 *** Warning: the command libtool uses to detect shared libraries,
15338 *** $file_magic_cmd, produces output that libtool cannot recognize.
15339 *** The result is that libtool may fail to recognize shared libraries
15340 *** as such. This will affect the creation of libtool libraries that
15341 *** depend on shared libraries, but programs linked with such libtool
15342 *** libraries will work regardless of this problem. Nevertheless, you
15343 *** may want to report the problem to your system manager and/or to
15344 *** bug-libtool@gnu.org
15346 _LT_EOF
15347 fi ;;
15348 esac
15350 break
15352 done
15353 IFS="$lt_save_ifs"
15354 MAGIC_CMD="$lt_save_MAGIC_CMD"
15356 esac
15359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15360 if test -n "$MAGIC_CMD"; then
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15362 $as_echo "$MAGIC_CMD" >&6; }
15363 else
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 $as_echo "no" >&6; }
15369 else
15370 MAGIC_CMD=:
15376 esac
15378 # Use C for the default configuration in the libtool script
15380 lt_save_CC="$CC"
15381 ac_ext=c
15382 ac_cpp='$CPP $CPPFLAGS'
15383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15388 # Source file extension for C test sources.
15389 ac_ext=c
15391 # Object file extension for compiled C test sources.
15392 objext=o
15393 objext=$objext
15395 # Code to be used in simple compile tests
15396 lt_simple_compile_test_code="int some_variable = 0;"
15398 # Code to be used in simple link tests
15399 lt_simple_link_test_code='int main(){return(0);}'
15407 # If no C compiler was specified, use CC.
15408 LTCC=${LTCC-"$CC"}
15410 # If no C compiler flags were specified, use CFLAGS.
15411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15413 # Allow CC to be a program name with arguments.
15414 compiler=$CC
15416 # Save the default compiler, since it gets overwritten when the other
15417 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15418 compiler_DEFAULT=$CC
15420 # save warnings/boilerplate of simple test code
15421 ac_outfile=conftest.$ac_objext
15422 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15424 _lt_compiler_boilerplate=`cat conftest.err`
15425 $RM conftest*
15427 ac_outfile=conftest.$ac_objext
15428 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15430 _lt_linker_boilerplate=`cat conftest.err`
15431 $RM -r conftest*
15434 ## CAVEAT EMPTOR:
15435 ## There is no encapsulation within the following macros, do not change
15436 ## the running order or otherwise move them around unless you know exactly
15437 ## what you are doing...
15438 if test -n "$compiler"; then
15440 lt_prog_compiler_no_builtin_flag=
15442 if test "$GCC" = yes; then
15443 case $cc_basename in
15444 nvcc*)
15445 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15447 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15448 esac
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15451 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15452 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 lt_cv_prog_compiler_rtti_exceptions=no
15456 ac_outfile=conftest.$ac_objext
15457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15458 lt_compiler_flag="-fno-rtti -fno-exceptions"
15459 # Insert the option either (1) after the last *FLAGS variable, or
15460 # (2) before a word containing "conftest.", or (3) at the end.
15461 # Note that $ac_compile itself does not contain backslashes and begins
15462 # with a dollar sign (not a hyphen), so the echo should work correctly.
15463 # The option is referenced via a variable to avoid confusing sed.
15464 lt_compile=`echo "$ac_compile" | $SED \
15465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15467 -e 's:$: $lt_compiler_flag:'`
15468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15469 (eval "$lt_compile" 2>conftest.err)
15470 ac_status=$?
15471 cat conftest.err >&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 if (exit $ac_status) && test -s "$ac_outfile"; then
15474 # The compiler can only warn and ignore the option if not recognized
15475 # So say no if there are warnings other than the usual output.
15476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15479 lt_cv_prog_compiler_rtti_exceptions=yes
15482 $RM conftest*
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15486 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15488 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15489 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15490 else
15501 lt_prog_compiler_wl=
15502 lt_prog_compiler_pic=
15503 lt_prog_compiler_static=
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15506 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15508 if test "$GCC" = yes; then
15509 lt_prog_compiler_wl='-Wl,'
15510 lt_prog_compiler_static='-static'
15512 case $host_os in
15513 aix*)
15514 # All AIX code is PIC.
15515 if test "$host_cpu" = ia64; then
15516 # AIX 5 now supports IA64 processor
15517 lt_prog_compiler_static='-Bstatic'
15519 lt_prog_compiler_pic='-fPIC'
15522 amigaos*)
15523 case $host_cpu in
15524 powerpc)
15525 # see comment about AmigaOS4 .so support
15526 lt_prog_compiler_pic='-fPIC'
15528 m68k)
15529 # FIXME: we need at least 68020 code to build shared libraries, but
15530 # adding the `-m68020' flag to GCC prevents building anything better,
15531 # like `-m68040'.
15532 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15534 esac
15537 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15538 # PIC is the default for these OSes.
15541 mingw* | cygwin* | pw32* | os2* | cegcc*)
15542 # This hack is so that the source file can tell whether it is being
15543 # built for inclusion in a dll (and should export symbols for example).
15544 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15545 # (--disable-auto-import) libraries
15546 lt_prog_compiler_pic='-DDLL_EXPORT'
15549 darwin* | rhapsody*)
15550 # PIC is the default on this platform
15551 # Common symbols not allowed in MH_DYLIB files
15552 lt_prog_compiler_pic='-fno-common'
15555 haiku*)
15556 # PIC is the default for Haiku.
15557 # The "-static" flag exists, but is broken.
15558 lt_prog_compiler_static=
15561 hpux*)
15562 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15563 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15564 # sets the default TLS model and affects inlining.
15565 case $host_cpu in
15566 hppa*64*)
15567 # +Z the default
15570 lt_prog_compiler_pic='-fPIC'
15572 esac
15575 interix[3-9]*)
15576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15577 # Instead, we relocate shared libraries at runtime.
15580 msdosdjgpp*)
15581 # Just because we use GCC doesn't mean we suddenly get shared libraries
15582 # on systems that don't support them.
15583 lt_prog_compiler_can_build_shared=no
15584 enable_shared=no
15587 *nto* | *qnx*)
15588 # QNX uses GNU C++, but need to define -shared option too, otherwise
15589 # it will coredump.
15590 lt_prog_compiler_pic='-fPIC -shared'
15593 sysv4*MP*)
15594 if test -d /usr/nec; then
15595 lt_prog_compiler_pic=-Kconform_pic
15600 lt_prog_compiler_pic='-fPIC'
15602 esac
15604 case $cc_basename in
15605 nvcc*) # Cuda Compiler Driver 2.2
15606 lt_prog_compiler_wl='-Xlinker '
15607 lt_prog_compiler_pic='-Xcompiler -fPIC'
15609 esac
15610 else
15611 # PORTME Check for flag to pass linker flags through the system compiler.
15612 case $host_os in
15613 aix*)
15614 lt_prog_compiler_wl='-Wl,'
15615 if test "$host_cpu" = ia64; then
15616 # AIX 5 now supports IA64 processor
15617 lt_prog_compiler_static='-Bstatic'
15618 else
15619 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15623 mingw* | cygwin* | pw32* | os2* | cegcc*)
15624 # This hack is so that the source file can tell whether it is being
15625 # built for inclusion in a dll (and should export symbols for example).
15626 lt_prog_compiler_pic='-DDLL_EXPORT'
15629 hpux9* | hpux10* | hpux11*)
15630 lt_prog_compiler_wl='-Wl,'
15631 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15632 # not for PA HP-UX.
15633 case $host_cpu in
15634 hppa*64*|ia64*)
15635 # +Z the default
15638 lt_prog_compiler_pic='+Z'
15640 esac
15641 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15642 lt_prog_compiler_static='${wl}-a ${wl}archive'
15645 irix5* | irix6* | nonstopux*)
15646 lt_prog_compiler_wl='-Wl,'
15647 # PIC (with -KPIC) is the default.
15648 lt_prog_compiler_static='-non_shared'
15651 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15652 case $cc_basename in
15653 # old Intel for x86_64 which still supported -KPIC.
15654 ecc*)
15655 lt_prog_compiler_wl='-Wl,'
15656 lt_prog_compiler_pic='-KPIC'
15657 lt_prog_compiler_static='-static'
15659 # icc used to be incompatible with GCC.
15660 # ICC 10 doesn't accept -KPIC any more.
15661 icc* | ifort*)
15662 lt_prog_compiler_wl='-Wl,'
15663 lt_prog_compiler_pic='-fPIC'
15664 lt_prog_compiler_static='-static'
15666 # Lahey Fortran 8.1.
15667 lf95*)
15668 lt_prog_compiler_wl='-Wl,'
15669 lt_prog_compiler_pic='--shared'
15670 lt_prog_compiler_static='--static'
15672 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15673 # Portland Group compilers (*not* the Pentium gcc compiler,
15674 # which looks to be a dead project)
15675 lt_prog_compiler_wl='-Wl,'
15676 lt_prog_compiler_pic='-fpic'
15677 lt_prog_compiler_static='-Bstatic'
15679 ccc*)
15680 lt_prog_compiler_wl='-Wl,'
15681 # All Alpha code is PIC.
15682 lt_prog_compiler_static='-non_shared'
15684 xl* | bgxl* | bgf* | mpixl*)
15685 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15686 lt_prog_compiler_wl='-Wl,'
15687 lt_prog_compiler_pic='-qpic'
15688 lt_prog_compiler_static='-qstaticlink'
15691 case `$CC -V 2>&1 | sed 5q` in
15692 *Sun\ F* | *Sun*Fortran*)
15693 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15694 lt_prog_compiler_pic='-KPIC'
15695 lt_prog_compiler_static='-Bstatic'
15696 lt_prog_compiler_wl=''
15698 *Sun\ C*)
15699 # Sun C 5.9
15700 lt_prog_compiler_pic='-KPIC'
15701 lt_prog_compiler_static='-Bstatic'
15702 lt_prog_compiler_wl='-Wl,'
15704 esac
15706 esac
15709 newsos6)
15710 lt_prog_compiler_pic='-KPIC'
15711 lt_prog_compiler_static='-Bstatic'
15714 *nto* | *qnx*)
15715 # QNX uses GNU C++, but need to define -shared option too, otherwise
15716 # it will coredump.
15717 lt_prog_compiler_pic='-fPIC -shared'
15720 osf3* | osf4* | osf5*)
15721 lt_prog_compiler_wl='-Wl,'
15722 # All OSF/1 code is PIC.
15723 lt_prog_compiler_static='-non_shared'
15726 rdos*)
15727 lt_prog_compiler_static='-non_shared'
15730 solaris*)
15731 lt_prog_compiler_pic='-KPIC'
15732 lt_prog_compiler_static='-Bstatic'
15733 case $cc_basename in
15734 f77* | f90* | f95*)
15735 lt_prog_compiler_wl='-Qoption ld ';;
15737 lt_prog_compiler_wl='-Wl,';;
15738 esac
15741 sunos4*)
15742 lt_prog_compiler_wl='-Qoption ld '
15743 lt_prog_compiler_pic='-PIC'
15744 lt_prog_compiler_static='-Bstatic'
15747 sysv4 | sysv4.2uw2* | sysv4.3*)
15748 lt_prog_compiler_wl='-Wl,'
15749 lt_prog_compiler_pic='-KPIC'
15750 lt_prog_compiler_static='-Bstatic'
15753 sysv4*MP*)
15754 if test -d /usr/nec ;then
15755 lt_prog_compiler_pic='-Kconform_pic'
15756 lt_prog_compiler_static='-Bstatic'
15760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15761 lt_prog_compiler_wl='-Wl,'
15762 lt_prog_compiler_pic='-KPIC'
15763 lt_prog_compiler_static='-Bstatic'
15766 unicos*)
15767 lt_prog_compiler_wl='-Wl,'
15768 lt_prog_compiler_can_build_shared=no
15771 uts4*)
15772 lt_prog_compiler_pic='-pic'
15773 lt_prog_compiler_static='-Bstatic'
15777 lt_prog_compiler_can_build_shared=no
15779 esac
15782 case $host_os in
15783 # For platforms which do not support PIC, -DPIC is meaningless:
15784 *djgpp*)
15785 lt_prog_compiler_pic=
15788 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15790 esac
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15792 $as_echo "$lt_prog_compiler_pic" >&6; }
15800 # Check to make sure the PIC flag actually works.
15802 if test -n "$lt_prog_compiler_pic"; then
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15804 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15805 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15806 $as_echo_n "(cached) " >&6
15807 else
15808 lt_cv_prog_compiler_pic_works=no
15809 ac_outfile=conftest.$ac_objext
15810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15811 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15812 # Insert the option either (1) after the last *FLAGS variable, or
15813 # (2) before a word containing "conftest.", or (3) at the end.
15814 # Note that $ac_compile itself does not contain backslashes and begins
15815 # with a dollar sign (not a hyphen), so the echo should work correctly.
15816 # The option is referenced via a variable to avoid confusing sed.
15817 lt_compile=`echo "$ac_compile" | $SED \
15818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15820 -e 's:$: $lt_compiler_flag:'`
15821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15822 (eval "$lt_compile" 2>conftest.err)
15823 ac_status=$?
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 if (exit $ac_status) && test -s "$ac_outfile"; then
15827 # The compiler can only warn and ignore the option if not recognized
15828 # So say no if there are warnings other than the usual output.
15829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15832 lt_cv_prog_compiler_pic_works=yes
15835 $RM conftest*
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15839 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15841 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15842 case $lt_prog_compiler_pic in
15843 "" | " "*) ;;
15844 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15845 esac
15846 else
15847 lt_prog_compiler_pic=
15848 lt_prog_compiler_can_build_shared=no
15859 # Check to make sure the static flag actually works.
15861 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15863 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15864 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15865 $as_echo_n "(cached) " >&6
15866 else
15867 lt_cv_prog_compiler_static_works=no
15868 save_LDFLAGS="$LDFLAGS"
15869 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15870 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15872 # The linker can only warn and ignore the option if not recognized
15873 # So say no if there are warnings
15874 if test -s conftest.err; then
15875 # Append any errors to the config.log.
15876 cat conftest.err 1>&5
15877 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15879 if diff conftest.exp conftest.er2 >/dev/null; then
15880 lt_cv_prog_compiler_static_works=yes
15882 else
15883 lt_cv_prog_compiler_static_works=yes
15886 $RM -r conftest*
15887 LDFLAGS="$save_LDFLAGS"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15891 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15893 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15895 else
15896 lt_prog_compiler_static=
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15906 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15907 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 lt_cv_prog_compiler_c_o=no
15911 $RM -r conftest 2>/dev/null
15912 mkdir conftest
15913 cd conftest
15914 mkdir out
15915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15917 lt_compiler_flag="-o out/conftest2.$ac_objext"
15918 # Insert the option either (1) after the last *FLAGS variable, or
15919 # (2) before a word containing "conftest.", or (3) at the end.
15920 # Note that $ac_compile itself does not contain backslashes and begins
15921 # with a dollar sign (not a hyphen), so the echo should work correctly.
15922 lt_compile=`echo "$ac_compile" | $SED \
15923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15925 -e 's:$: $lt_compiler_flag:'`
15926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15927 (eval "$lt_compile" 2>out/conftest.err)
15928 ac_status=$?
15929 cat out/conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15932 then
15933 # The compiler can only warn and ignore the option if not recognized
15934 # So say no if there are warnings
15935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15938 lt_cv_prog_compiler_c_o=yes
15941 chmod u+w . 2>&5
15942 $RM conftest*
15943 # SGI C++ compiler will create directory out/ii_files/ for
15944 # template instantiation
15945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15946 $RM out/* && rmdir out
15947 cd ..
15948 $RM -r conftest
15949 $RM conftest*
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15953 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15961 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15962 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15963 $as_echo_n "(cached) " >&6
15964 else
15965 lt_cv_prog_compiler_c_o=no
15966 $RM -r conftest 2>/dev/null
15967 mkdir conftest
15968 cd conftest
15969 mkdir out
15970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15972 lt_compiler_flag="-o out/conftest2.$ac_objext"
15973 # Insert the option either (1) after the last *FLAGS variable, or
15974 # (2) before a word containing "conftest.", or (3) at the end.
15975 # Note that $ac_compile itself does not contain backslashes and begins
15976 # with a dollar sign (not a hyphen), so the echo should work correctly.
15977 lt_compile=`echo "$ac_compile" | $SED \
15978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15980 -e 's:$: $lt_compiler_flag:'`
15981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15982 (eval "$lt_compile" 2>out/conftest.err)
15983 ac_status=$?
15984 cat out/conftest.err >&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15987 then
15988 # The compiler can only warn and ignore the option if not recognized
15989 # So say no if there are warnings
15990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15993 lt_cv_prog_compiler_c_o=yes
15996 chmod u+w . 2>&5
15997 $RM conftest*
15998 # SGI C++ compiler will create directory out/ii_files/ for
15999 # template instantiation
16000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16001 $RM out/* && rmdir out
16002 cd ..
16003 $RM -r conftest
16004 $RM conftest*
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16008 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16013 hard_links="nottested"
16014 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16015 # do not overwrite the value of need_locks provided by the user
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16017 $as_echo_n "checking if we can lock with hard links... " >&6; }
16018 hard_links=yes
16019 $RM conftest*
16020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16021 touch conftest.a
16022 ln conftest.a conftest.b 2>&5 || hard_links=no
16023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16025 $as_echo "$hard_links" >&6; }
16026 if test "$hard_links" = no; then
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16028 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16029 need_locks=warn
16031 else
16032 need_locks=no
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16041 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16043 runpath_var=
16044 allow_undefined_flag=
16045 always_export_symbols=no
16046 archive_cmds=
16047 archive_expsym_cmds=
16048 compiler_needs_object=no
16049 enable_shared_with_static_runtimes=no
16050 export_dynamic_flag_spec=
16051 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16052 hardcode_automatic=no
16053 hardcode_direct=no
16054 hardcode_direct_absolute=no
16055 hardcode_libdir_flag_spec=
16056 hardcode_libdir_flag_spec_ld=
16057 hardcode_libdir_separator=
16058 hardcode_minus_L=no
16059 hardcode_shlibpath_var=unsupported
16060 inherit_rpath=no
16061 link_all_deplibs=unknown
16062 module_cmds=
16063 module_expsym_cmds=
16064 old_archive_from_new_cmds=
16065 old_archive_from_expsyms_cmds=
16066 thread_safe_flag_spec=
16067 whole_archive_flag_spec=
16068 # include_expsyms should be a list of space-separated symbols to be *always*
16069 # included in the symbol list
16070 include_expsyms=
16071 # exclude_expsyms can be an extended regexp of symbols to exclude
16072 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16073 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16074 # as well as any symbol that contains `d'.
16075 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16076 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16077 # platforms (ab)use it in PIC code, but their linkers get confused if
16078 # the symbol is explicitly referenced. Since portable code cannot
16079 # rely on this symbol name, it's probably fine to never include it in
16080 # preloaded symbol tables.
16081 # Exclude shared library initialization/finalization symbols.
16082 extract_expsyms_cmds=
16084 case $host_os in
16085 cygwin* | mingw* | pw32* | cegcc*)
16086 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16087 # When not using gcc, we currently assume that we are using
16088 # Microsoft Visual C++.
16089 if test "$GCC" != yes; then
16090 with_gnu_ld=no
16093 interix*)
16094 # we just hope/assume this is gcc and not c89 (= MSVC++)
16095 with_gnu_ld=yes
16097 openbsd*)
16098 with_gnu_ld=no
16100 esac
16102 ld_shlibs=yes
16104 # On some targets, GNU ld is compatible enough with the native linker
16105 # that we're better off using the native interface for both.
16106 lt_use_gnu_ld_interface=no
16107 if test "$with_gnu_ld" = yes; then
16108 case $host_os in
16109 aix*)
16110 # The AIX port of GNU ld has always aspired to compatibility
16111 # with the native linker. However, as the warning in the GNU ld
16112 # block says, versions before 2.19.5* couldn't really create working
16113 # shared libraries, regardless of the interface used.
16114 case `$LD -v 2>&1` in
16115 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16116 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16117 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16119 lt_use_gnu_ld_interface=yes
16121 esac
16124 lt_use_gnu_ld_interface=yes
16126 esac
16129 if test "$lt_use_gnu_ld_interface" = yes; then
16130 # If archive_cmds runs LD, not CC, wlarc should be empty
16131 wlarc='${wl}'
16133 # Set some defaults for GNU ld with shared library support. These
16134 # are reset later if shared libraries are not supported. Putting them
16135 # here allows them to be overridden if necessary.
16136 runpath_var=LD_RUN_PATH
16137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16138 export_dynamic_flag_spec='${wl}--export-dynamic'
16139 # ancient GNU ld didn't support --whole-archive et. al.
16140 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16141 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16142 else
16143 whole_archive_flag_spec=
16145 supports_anon_versioning=no
16146 case `$LD -v 2>&1` in
16147 *GNU\ gold*) supports_anon_versioning=yes ;;
16148 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16149 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16150 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16151 *\ 2.11.*) ;; # other 2.11 versions
16152 *) supports_anon_versioning=yes ;;
16153 esac
16155 # See if GNU ld supports shared libraries.
16156 case $host_os in
16157 aix[3-9]*)
16158 # On AIX/PPC, the GNU linker is very broken
16159 if test "$host_cpu" != ia64; then
16160 ld_shlibs=no
16161 cat <<_LT_EOF 1>&2
16163 *** Warning: the GNU linker, at least up to release 2.19, is reported
16164 *** to be unable to reliably create shared libraries on AIX.
16165 *** Therefore, libtool is disabling shared libraries support. If you
16166 *** really care for shared libraries, you may want to install binutils
16167 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16168 *** You will then need to restart the configuration process.
16170 _LT_EOF
16174 amigaos*)
16175 case $host_cpu in
16176 powerpc)
16177 # see comment about AmigaOS4 .so support
16178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16179 archive_expsym_cmds=''
16181 m68k)
16182 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)'
16183 hardcode_libdir_flag_spec='-L$libdir'
16184 hardcode_minus_L=yes
16186 esac
16189 beos*)
16190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16191 allow_undefined_flag=unsupported
16192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16193 # support --undefined. This deserves some investigation. FIXME
16194 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195 else
16196 ld_shlibs=no
16200 cygwin* | mingw* | pw32* | cegcc*)
16201 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16202 # as there is no search path for DLLs.
16203 hardcode_libdir_flag_spec='-L$libdir'
16204 export_dynamic_flag_spec='${wl}--export-all-symbols'
16205 allow_undefined_flag=unsupported
16206 always_export_symbols=no
16207 enable_shared_with_static_runtimes=yes
16208 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16210 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16212 # If the export-symbols file already is a .def file (1st line
16213 # is EXPORTS), use it as is; otherwise, prepend...
16214 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16215 cp $export_symbols $output_objdir/$soname.def;
16216 else
16217 echo EXPORTS > $output_objdir/$soname.def;
16218 cat $export_symbols >> $output_objdir/$soname.def;
16220 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16221 else
16222 ld_shlibs=no
16226 haiku*)
16227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16228 link_all_deplibs=yes
16231 interix[3-9]*)
16232 hardcode_direct=no
16233 hardcode_shlibpath_var=no
16234 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16235 export_dynamic_flag_spec='${wl}-E'
16236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16237 # Instead, shared libraries are loaded at an image base (0x10000000 by
16238 # default) and relocated if they conflict, which is a slow very memory
16239 # consuming and fragmenting process. To avoid this, we pick a random,
16240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16241 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16242 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16243 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'
16246 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16247 tmp_diet=no
16248 if test "$host_os" = linux-dietlibc; then
16249 case $cc_basename in
16250 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16251 esac
16253 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16254 && test "$tmp_diet" = no
16255 then
16256 tmp_addflag=' $pic_flag'
16257 tmp_sharedflag='-shared'
16258 case $cc_basename,$host_cpu in
16259 pgcc*) # Portland Group C compiler
16260 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'
16261 tmp_addflag=' $pic_flag'
16263 pgf77* | pgf90* | pgf95* | pgfortran*)
16264 # Portland Group f77 and f90 compilers
16265 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'
16266 tmp_addflag=' $pic_flag -Mnomain' ;;
16267 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16268 tmp_addflag=' -i_dynamic' ;;
16269 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16270 tmp_addflag=' -i_dynamic -nofor_main' ;;
16271 ifc* | ifort*) # Intel Fortran compiler
16272 tmp_addflag=' -nofor_main' ;;
16273 lf95*) # Lahey Fortran 8.1
16274 whole_archive_flag_spec=
16275 tmp_sharedflag='--shared' ;;
16276 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16277 tmp_sharedflag='-qmkshrobj'
16278 tmp_addflag= ;;
16279 nvcc*) # Cuda Compiler Driver 2.2
16280 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'
16281 compiler_needs_object=yes
16283 esac
16284 case `$CC -V 2>&1 | sed 5q` in
16285 *Sun\ C*) # Sun C 5.9
16286 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'
16287 compiler_needs_object=yes
16288 tmp_sharedflag='-G' ;;
16289 *Sun\ F*) # Sun Fortran 8.3
16290 tmp_sharedflag='-G' ;;
16291 esac
16292 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16294 if test "x$supports_anon_versioning" = xyes; then
16295 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16297 echo "local: *; };" >> $output_objdir/$libname.ver~
16298 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16301 case $cc_basename in
16302 xlf* | bgf* | bgxlf* | mpixlf*)
16303 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16304 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16305 hardcode_libdir_flag_spec=
16306 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16307 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16308 if test "x$supports_anon_versioning" = xyes; then
16309 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16311 echo "local: *; };" >> $output_objdir/$libname.ver~
16312 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16315 esac
16316 else
16317 ld_shlibs=no
16321 netbsd*)
16322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16323 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16324 wlarc=
16325 else
16326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16331 solaris*)
16332 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16333 ld_shlibs=no
16334 cat <<_LT_EOF 1>&2
16336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16337 *** create shared libraries on Solaris systems. Therefore, libtool
16338 *** is disabling shared libraries support. We urge you to upgrade GNU
16339 *** binutils to release 2.9.1 or newer. Another option is to modify
16340 *** your PATH or compiler configuration so that the native linker is
16341 *** used, and then restart.
16343 _LT_EOF
16344 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16347 else
16348 ld_shlibs=no
16352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16353 case `$LD -v 2>&1` in
16354 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16355 ld_shlibs=no
16356 cat <<_LT_EOF 1>&2
16358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16359 *** reliably create shared libraries on SCO systems. Therefore, libtool
16360 *** is disabling shared libraries support. We urge you to upgrade GNU
16361 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16362 *** your PATH or compiler configuration so that the native linker is
16363 *** used, and then restart.
16365 _LT_EOF
16368 # For security reasons, it is highly recommended that you always
16369 # use absolute paths for naming shared libraries, and exclude the
16370 # DT_RUNPATH tag from executables and libraries. But doing so
16371 # requires that you compile everything twice, which is a pain.
16372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16376 else
16377 ld_shlibs=no
16380 esac
16383 sunos4*)
16384 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16385 wlarc=
16386 hardcode_direct=yes
16387 hardcode_shlibpath_var=no
16391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16394 else
16395 ld_shlibs=no
16398 esac
16400 if test "$ld_shlibs" = no; then
16401 runpath_var=
16402 hardcode_libdir_flag_spec=
16403 export_dynamic_flag_spec=
16404 whole_archive_flag_spec=
16406 else
16407 # PORTME fill in a description of your system's linker (not GNU ld)
16408 case $host_os in
16409 aix3*)
16410 allow_undefined_flag=unsupported
16411 always_export_symbols=yes
16412 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'
16413 # Note: this linker hardcodes the directories in LIBPATH if there
16414 # are no directories specified by -L.
16415 hardcode_minus_L=yes
16416 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16417 # Neither direct hardcoding nor static linking is supported with a
16418 # broken collect2.
16419 hardcode_direct=unsupported
16423 aix[4-9]*)
16424 if test "$host_cpu" = ia64; then
16425 # On IA64, the linker does run time linking by default, so we don't
16426 # have to do anything special.
16427 aix_use_runtimelinking=no
16428 exp_sym_flag='-Bexport'
16429 no_entry_flag=""
16430 else
16431 # If we're using GNU nm, then we don't want the "-C" option.
16432 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16433 # Also, AIX nm treats weak defined symbols like other global
16434 # defined symbols, whereas GNU nm marks them as "W".
16435 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16436 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'
16437 else
16438 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'
16440 aix_use_runtimelinking=no
16442 # Test if we are trying to use run time linking or normal
16443 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16444 # need to do runtime linking.
16445 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16446 for ld_flag in $LDFLAGS; do
16447 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16448 aix_use_runtimelinking=yes
16449 break
16451 done
16453 esac
16455 exp_sym_flag='-bexport'
16456 no_entry_flag='-bnoentry'
16459 # When large executables or shared objects are built, AIX ld can
16460 # have problems creating the table of contents. If linking a library
16461 # or program results in "error TOC overflow" add -mminimal-toc to
16462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16465 archive_cmds=''
16466 hardcode_direct=yes
16467 hardcode_direct_absolute=yes
16468 hardcode_libdir_separator=':'
16469 link_all_deplibs=yes
16470 file_list_spec='${wl}-f,'
16472 if test "$GCC" = yes; then
16473 case $host_os in aix4.[012]|aix4.[012].*)
16474 # We only want to do this on AIX 4.2 and lower, the check
16475 # below for broken collect2 doesn't work under 4.3+
16476 collect2name=`${CC} -print-prog-name=collect2`
16477 if test -f "$collect2name" &&
16478 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16479 then
16480 # We have reworked collect2
16482 else
16483 # We have old collect2
16484 hardcode_direct=unsupported
16485 # It fails to find uninstalled libraries when the uninstalled
16486 # path is not listed in the libpath. Setting hardcode_minus_L
16487 # to unsupported forces relinking
16488 hardcode_minus_L=yes
16489 hardcode_libdir_flag_spec='-L$libdir'
16490 hardcode_libdir_separator=
16493 esac
16494 shared_flag='-shared'
16495 if test "$aix_use_runtimelinking" = yes; then
16496 shared_flag="$shared_flag "'${wl}-G'
16498 else
16499 # not using gcc
16500 if test "$host_cpu" = ia64; then
16501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16502 # chokes on -Wl,-G. The following line is correct:
16503 shared_flag='-G'
16504 else
16505 if test "$aix_use_runtimelinking" = yes; then
16506 shared_flag='${wl}-G'
16507 else
16508 shared_flag='${wl}-bM:SRE'
16513 export_dynamic_flag_spec='${wl}-bexpall'
16514 # It seems that -bexpall does not export symbols beginning with
16515 # underscore (_), so it is better to generate a list of symbols to export.
16516 always_export_symbols=yes
16517 if test "$aix_use_runtimelinking" = yes; then
16518 # Warning - without using the other runtime loading flags (-brtl),
16519 # -berok will link without error, but may produce a broken library.
16520 allow_undefined_flag='-berok'
16521 # Determine the default libpath from the value encoded in an
16522 # empty executable.
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16527 main ()
16531 return 0;
16533 _ACEOF
16534 if ac_fn_c_try_link "$LINENO"; then :
16536 lt_aix_libpath_sed='
16537 /Import File Strings/,/^$/ {
16538 /^0/ {
16539 s/^0 *\(.*\)$/\1/
16543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16544 # Check for a 64-bit object if we didn't find anything.
16545 if test -z "$aix_libpath"; then
16546 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16553 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16554 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"
16555 else
16556 if test "$host_cpu" = ia64; then
16557 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16558 allow_undefined_flag="-z nodefs"
16559 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"
16560 else
16561 # Determine the default libpath from the value encoded in an
16562 # empty executable.
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16567 main ()
16571 return 0;
16573 _ACEOF
16574 if ac_fn_c_try_link "$LINENO"; then :
16576 lt_aix_libpath_sed='
16577 /Import File Strings/,/^$/ {
16578 /^0/ {
16579 s/^0 *\(.*\)$/\1/
16583 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16584 # Check for a 64-bit object if we didn't find anything.
16585 if test -z "$aix_libpath"; then
16586 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16589 rm -f core conftest.err conftest.$ac_objext \
16590 conftest$ac_exeext conftest.$ac_ext
16591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16593 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16594 # Warning - without using the other run time loading flags,
16595 # -berok will link without error, but may produce a broken library.
16596 no_undefined_flag=' ${wl}-bernotok'
16597 allow_undefined_flag=' ${wl}-berok'
16598 if test "$with_gnu_ld" = yes; then
16599 # We only use this code for GNU lds that support --whole-archive.
16600 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16601 else
16602 # Exported symbols can be pulled into shared objects from archives
16603 whole_archive_flag_spec='$convenience'
16605 archive_cmds_need_lc=yes
16606 # This is similar to how AIX traditionally builds its shared libraries.
16607 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'
16612 amigaos*)
16613 case $host_cpu in
16614 powerpc)
16615 # see comment about AmigaOS4 .so support
16616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16617 archive_expsym_cmds=''
16619 m68k)
16620 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)'
16621 hardcode_libdir_flag_spec='-L$libdir'
16622 hardcode_minus_L=yes
16624 esac
16627 bsdi[45]*)
16628 export_dynamic_flag_spec=-rdynamic
16631 cygwin* | mingw* | pw32* | cegcc*)
16632 # When not using gcc, we currently assume that we are using
16633 # Microsoft Visual C++.
16634 # hardcode_libdir_flag_spec is actually meaningless, as there is
16635 # no search path for DLLs.
16636 hardcode_libdir_flag_spec=' '
16637 allow_undefined_flag=unsupported
16638 # Tell ltmain to make .lib files, not .a files.
16639 libext=lib
16640 # Tell ltmain to make .dll files, not .so files.
16641 shrext_cmds=".dll"
16642 # FIXME: Setting linknames here is a bad hack.
16643 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16644 # The linker will automatically build a .lib file if we build a DLL.
16645 old_archive_from_new_cmds='true'
16646 # FIXME: Should let the user specify the lib program.
16647 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16648 fix_srcfile_path='`cygpath -w "$srcfile"`'
16649 enable_shared_with_static_runtimes=yes
16652 darwin* | rhapsody*)
16655 archive_cmds_need_lc=no
16656 hardcode_direct=no
16657 hardcode_automatic=yes
16658 hardcode_shlibpath_var=unsupported
16659 if test "$lt_cv_ld_force_load" = "yes"; then
16660 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\"`'
16661 else
16662 whole_archive_flag_spec=''
16664 link_all_deplibs=yes
16665 allow_undefined_flag="$_lt_dar_allow_undefined"
16666 case $cc_basename in
16667 ifort*) _lt_dar_can_shared=yes ;;
16668 *) _lt_dar_can_shared=$GCC ;;
16669 esac
16670 if test "$_lt_dar_can_shared" = "yes"; then
16671 output_verbose_link_cmd=func_echo_all
16672 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16673 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16674 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}"
16675 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}"
16677 else
16678 ld_shlibs=no
16683 dgux*)
16684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16685 hardcode_libdir_flag_spec='-L$libdir'
16686 hardcode_shlibpath_var=no
16689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16690 # support. Future versions do this automatically, but an explicit c++rt0.o
16691 # does not break anything, and helps significantly (at the cost of a little
16692 # extra space).
16693 freebsd2.2*)
16694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16695 hardcode_libdir_flag_spec='-R$libdir'
16696 hardcode_direct=yes
16697 hardcode_shlibpath_var=no
16700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16701 freebsd2.*)
16702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_direct=yes
16704 hardcode_minus_L=yes
16705 hardcode_shlibpath_var=no
16708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16709 freebsd* | dragonfly*)
16710 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16711 hardcode_libdir_flag_spec='-R$libdir'
16712 hardcode_direct=yes
16713 hardcode_shlibpath_var=no
16716 hpux9*)
16717 if test "$GCC" = yes; then
16718 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'
16719 else
16720 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'
16722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16723 hardcode_libdir_separator=:
16724 hardcode_direct=yes
16726 # hardcode_minus_L: Not really in the search PATH,
16727 # but as the default location of the library.
16728 hardcode_minus_L=yes
16729 export_dynamic_flag_spec='${wl}-E'
16732 hpux10*)
16733 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16735 else
16736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16738 if test "$with_gnu_ld" = no; then
16739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16740 hardcode_libdir_flag_spec_ld='+b $libdir'
16741 hardcode_libdir_separator=:
16742 hardcode_direct=yes
16743 hardcode_direct_absolute=yes
16744 export_dynamic_flag_spec='${wl}-E'
16745 # hardcode_minus_L: Not really in the search PATH,
16746 # but as the default location of the library.
16747 hardcode_minus_L=yes
16751 hpux11*)
16752 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16753 case $host_cpu in
16754 hppa*64*)
16755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16757 ia64*)
16758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16763 esac
16764 else
16765 case $host_cpu in
16766 hppa*64*)
16767 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 ia64*)
16770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16774 # Older versions of the 11.00 compiler do not understand -b yet
16775 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16777 $as_echo_n "checking if $CC understands -b... " >&6; }
16778 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16779 $as_echo_n "(cached) " >&6
16780 else
16781 lt_cv_prog_compiler__b=no
16782 save_LDFLAGS="$LDFLAGS"
16783 LDFLAGS="$LDFLAGS -b"
16784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16786 # The linker can only warn and ignore the option if not recognized
16787 # So say no if there are warnings
16788 if test -s conftest.err; then
16789 # Append any errors to the config.log.
16790 cat conftest.err 1>&5
16791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16793 if diff conftest.exp conftest.er2 >/dev/null; then
16794 lt_cv_prog_compiler__b=yes
16796 else
16797 lt_cv_prog_compiler__b=yes
16800 $RM -r conftest*
16801 LDFLAGS="$save_LDFLAGS"
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16805 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16807 if test x"$lt_cv_prog_compiler__b" = xyes; then
16808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16809 else
16810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16814 esac
16816 if test "$with_gnu_ld" = no; then
16817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16818 hardcode_libdir_separator=:
16820 case $host_cpu in
16821 hppa*64*|ia64*)
16822 hardcode_direct=no
16823 hardcode_shlibpath_var=no
16826 hardcode_direct=yes
16827 hardcode_direct_absolute=yes
16828 export_dynamic_flag_spec='${wl}-E'
16830 # hardcode_minus_L: Not really in the search PATH,
16831 # but as the default location of the library.
16832 hardcode_minus_L=yes
16834 esac
16838 irix5* | irix6* | nonstopux*)
16839 if test "$GCC" = yes; then
16840 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'
16841 # Try to use the -exported_symbol ld option, if it does not
16842 # work, assume that -exports_file does not work either and
16843 # implicitly export all symbols.
16844 save_LDFLAGS="$LDFLAGS"
16845 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16848 int foo(void) {}
16849 _ACEOF
16850 if ac_fn_c_try_link "$LINENO"; then :
16851 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'
16854 rm -f core conftest.err conftest.$ac_objext \
16855 conftest$ac_exeext conftest.$ac_ext
16856 LDFLAGS="$save_LDFLAGS"
16857 else
16858 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'
16859 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'
16861 archive_cmds_need_lc='no'
16862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16863 hardcode_libdir_separator=:
16864 inherit_rpath=yes
16865 link_all_deplibs=yes
16868 netbsd*)
16869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16871 else
16872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16874 hardcode_libdir_flag_spec='-R$libdir'
16875 hardcode_direct=yes
16876 hardcode_shlibpath_var=no
16879 newsos6)
16880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_direct=yes
16882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16883 hardcode_libdir_separator=:
16884 hardcode_shlibpath_var=no
16887 *nto* | *qnx*)
16890 openbsd*)
16891 if test -f /usr/libexec/ld.so; then
16892 hardcode_direct=yes
16893 hardcode_shlibpath_var=no
16894 hardcode_direct_absolute=yes
16895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16897 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16899 export_dynamic_flag_spec='${wl}-E'
16900 else
16901 case $host_os in
16902 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16904 hardcode_libdir_flag_spec='-R$libdir'
16907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16910 esac
16912 else
16913 ld_shlibs=no
16917 os2*)
16918 hardcode_libdir_flag_spec='-L$libdir'
16919 hardcode_minus_L=yes
16920 allow_undefined_flag=unsupported
16921 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'
16922 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16925 osf3*)
16926 if test "$GCC" = yes; then
16927 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16928 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'
16929 else
16930 allow_undefined_flag=' -expect_unresolved \*'
16931 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'
16933 archive_cmds_need_lc='no'
16934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16935 hardcode_libdir_separator=:
16938 osf4* | osf5*) # as osf3* with the addition of -msym flag
16939 if test "$GCC" = yes; then
16940 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16941 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'
16942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16943 else
16944 allow_undefined_flag=' -expect_unresolved \*'
16945 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'
16946 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~
16947 $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'
16949 # Both c and cxx compiler support -rpath directly
16950 hardcode_libdir_flag_spec='-rpath $libdir'
16952 archive_cmds_need_lc='no'
16953 hardcode_libdir_separator=:
16956 solaris*)
16957 no_undefined_flag=' -z defs'
16958 if test "$GCC" = yes; then
16959 wlarc='${wl}'
16960 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16961 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16962 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16963 else
16964 case `$CC -V 2>&1` in
16965 *"Compilers 5.0"*)
16966 wlarc=''
16967 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16968 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16972 wlarc='${wl}'
16973 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16975 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16977 esac
16979 hardcode_libdir_flag_spec='-R$libdir'
16980 hardcode_shlibpath_var=no
16981 case $host_os in
16982 solaris2.[0-5] | solaris2.[0-5].*) ;;
16984 # The compiler driver will combine and reorder linker options,
16985 # but understands `-z linker_flag'. GCC discards it without `$wl',
16986 # but is careful enough not to reorder.
16987 # Supported since Solaris 2.6 (maybe 2.5.1?)
16988 if test "$GCC" = yes; then
16989 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16990 else
16991 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16994 esac
16995 link_all_deplibs=yes
16998 sunos4*)
16999 if test "x$host_vendor" = xsequent; then
17000 # Use $CC to link under sequent, because it throws in some extra .o
17001 # files that make .init and .fini sections work.
17002 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17003 else
17004 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_libdir_flag_spec='-L$libdir'
17007 hardcode_direct=yes
17008 hardcode_minus_L=yes
17009 hardcode_shlibpath_var=no
17012 sysv4)
17013 case $host_vendor in
17014 sni)
17015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016 hardcode_direct=yes # is this really true???
17018 siemens)
17019 ## LD is ld it makes a PLAMLIB
17020 ## CC just makes a GrossModule.
17021 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17022 reload_cmds='$CC -r -o $output$reload_objs'
17023 hardcode_direct=no
17025 motorola)
17026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17027 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17029 esac
17030 runpath_var='LD_RUN_PATH'
17031 hardcode_shlibpath_var=no
17034 sysv4.3*)
17035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17036 hardcode_shlibpath_var=no
17037 export_dynamic_flag_spec='-Bexport'
17040 sysv4*MP*)
17041 if test -d /usr/nec; then
17042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17043 hardcode_shlibpath_var=no
17044 runpath_var=LD_RUN_PATH
17045 hardcode_runpath_var=yes
17046 ld_shlibs=yes
17050 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17051 no_undefined_flag='${wl}-z,text'
17052 archive_cmds_need_lc=no
17053 hardcode_shlibpath_var=no
17054 runpath_var='LD_RUN_PATH'
17056 if test "$GCC" = yes; then
17057 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17059 else
17060 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17061 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17065 sysv5* | sco3.2v5* | sco5v6*)
17066 # Note: We can NOT use -z defs as we might desire, because we do not
17067 # link with -lc, and that would cause any symbols used from libc to
17068 # always be unresolved, which means just about no library would
17069 # ever link correctly. If we're not using GNU ld we use -z text
17070 # though, which does catch some bad symbols but isn't as heavy-handed
17071 # as -z defs.
17072 no_undefined_flag='${wl}-z,text'
17073 allow_undefined_flag='${wl}-z,nodefs'
17074 archive_cmds_need_lc=no
17075 hardcode_shlibpath_var=no
17076 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17077 hardcode_libdir_separator=':'
17078 link_all_deplibs=yes
17079 export_dynamic_flag_spec='${wl}-Bexport'
17080 runpath_var='LD_RUN_PATH'
17082 if test "$GCC" = yes; then
17083 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 else
17086 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17087 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17091 uts4*)
17092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17093 hardcode_libdir_flag_spec='-L$libdir'
17094 hardcode_shlibpath_var=no
17098 ld_shlibs=no
17100 esac
17102 if test x$host_vendor = xsni; then
17103 case $host in
17104 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17105 export_dynamic_flag_spec='${wl}-Blargedynsym'
17107 esac
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17112 $as_echo "$ld_shlibs" >&6; }
17113 test "$ld_shlibs" = no && can_build_shared=no
17115 with_gnu_ld=$with_gnu_ld
17132 # Do we need to explicitly link libc?
17134 case "x$archive_cmds_need_lc" in
17135 x|xyes)
17136 # Assume -lc should be added
17137 archive_cmds_need_lc=yes
17139 if test "$enable_shared" = yes && test "$GCC" = yes; then
17140 case $archive_cmds in
17141 *'~'*)
17142 # FIXME: we may have to deal with multi-command sequences.
17144 '$CC '*)
17145 # Test whether the compiler implicitly links with -lc since on some
17146 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17147 # to ld, don't add -lc before -lgcc.
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17149 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17150 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17151 $as_echo_n "(cached) " >&6
17152 else
17153 $RM conftest*
17154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17157 (eval $ac_compile) 2>&5
17158 ac_status=$?
17159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17160 test $ac_status = 0; } 2>conftest.err; then
17161 soname=conftest
17162 lib=conftest
17163 libobjs=conftest.$ac_objext
17164 deplibs=
17165 wl=$lt_prog_compiler_wl
17166 pic_flag=$lt_prog_compiler_pic
17167 compiler_flags=-v
17168 linker_flags=-v
17169 verstring=
17170 output_objdir=.
17171 libname=conftest
17172 lt_save_allow_undefined_flag=$allow_undefined_flag
17173 allow_undefined_flag=
17174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17175 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17176 ac_status=$?
17177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178 test $ac_status = 0; }
17179 then
17180 lt_cv_archive_cmds_need_lc=no
17181 else
17182 lt_cv_archive_cmds_need_lc=yes
17184 allow_undefined_flag=$lt_save_allow_undefined_flag
17185 else
17186 cat conftest.err 1>&5
17188 $RM conftest*
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17192 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17193 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17195 esac
17198 esac
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17357 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17359 if test "$GCC" = yes; then
17360 case $host_os in
17361 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17362 *) lt_awk_arg="/^libraries:/" ;;
17363 esac
17364 case $host_os in
17365 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17366 *) lt_sed_strip_eq="s,=/,/,g" ;;
17367 esac
17368 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17369 case $lt_search_path_spec in
17370 *\;*)
17371 # if the path contains ";" then we assume it to be the separator
17372 # otherwise default to the standard path separator (i.e. ":") - it is
17373 # assumed that no part of a normal pathname contains ";" but that should
17374 # okay in the real world where ";" in dirpaths is itself problematic.
17375 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17378 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17380 esac
17381 # Ok, now we have the path, separated by spaces, we can step through it
17382 # and add multilib dir if necessary.
17383 lt_tmp_lt_search_path_spec=
17384 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17385 for lt_sys_path in $lt_search_path_spec; do
17386 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17387 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17388 else
17389 test -d "$lt_sys_path" && \
17390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17392 done
17393 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17394 BEGIN {RS=" "; FS="/|\n";} {
17395 lt_foo="";
17396 lt_count=0;
17397 for (lt_i = NF; lt_i > 0; lt_i--) {
17398 if ($lt_i != "" && $lt_i != ".") {
17399 if ($lt_i == "..") {
17400 lt_count++;
17401 } else {
17402 if (lt_count == 0) {
17403 lt_foo="/" $lt_i lt_foo;
17404 } else {
17405 lt_count--;
17410 if (lt_foo != "") { lt_freq[lt_foo]++; }
17411 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17413 # AWK program above erroneously prepends '/' to C:/dos/paths
17414 # for these hosts.
17415 case $host_os in
17416 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17417 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17418 esac
17419 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17420 else
17421 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17423 library_names_spec=
17424 libname_spec='lib$name'
17425 soname_spec=
17426 shrext_cmds=".so"
17427 postinstall_cmds=
17428 postuninstall_cmds=
17429 finish_cmds=
17430 finish_eval=
17431 shlibpath_var=
17432 shlibpath_overrides_runpath=unknown
17433 version_type=none
17434 dynamic_linker="$host_os ld.so"
17435 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17436 need_lib_prefix=unknown
17437 hardcode_into_libs=no
17439 # when you set need_version to no, make sure it does not cause -set_version
17440 # flags to be left without arguments
17441 need_version=unknown
17443 case $host_os in
17444 aix3*)
17445 version_type=linux
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17447 shlibpath_var=LIBPATH
17449 # AIX 3 has no versioning support, so we append a major version to the name.
17450 soname_spec='${libname}${release}${shared_ext}$major'
17453 aix[4-9]*)
17454 version_type=linux
17455 need_lib_prefix=no
17456 need_version=no
17457 hardcode_into_libs=yes
17458 if test "$host_cpu" = ia64; then
17459 # AIX 5 supports IA64
17460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17461 shlibpath_var=LD_LIBRARY_PATH
17462 else
17463 # With GCC up to 2.95.x, collect2 would create an import file
17464 # for dependence libraries. The import file would start with
17465 # the line `#! .'. This would cause the generated library to
17466 # depend on `.', always an invalid library. This was fixed in
17467 # development snapshots of GCC prior to 3.0.
17468 case $host_os in
17469 aix4 | aix4.[01] | aix4.[01].*)
17470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17471 echo ' yes '
17472 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17474 else
17475 can_build_shared=no
17478 esac
17479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17480 # soname into executable. Probably we can add versioning support to
17481 # collect2, so additional links can be useful in future.
17482 if test "$aix_use_runtimelinking" = yes; then
17483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17484 # instead of lib<name>.a to let people know that these are not
17485 # typical AIX shared libraries.
17486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17487 else
17488 # We preserve .a as extension for shared libraries through AIX4.2
17489 # and later when we are not doing run time linking.
17490 library_names_spec='${libname}${release}.a $libname.a'
17491 soname_spec='${libname}${release}${shared_ext}$major'
17493 shlibpath_var=LIBPATH
17497 amigaos*)
17498 case $host_cpu in
17499 powerpc)
17500 # Since July 2007 AmigaOS4 officially supports .so libraries.
17501 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17504 m68k)
17505 library_names_spec='$libname.ixlibrary $libname.a'
17506 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17507 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'
17509 esac
17512 beos*)
17513 library_names_spec='${libname}${shared_ext}'
17514 dynamic_linker="$host_os ld.so"
17515 shlibpath_var=LIBRARY_PATH
17518 bsdi[45]*)
17519 version_type=linux
17520 need_version=no
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17526 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17527 # the default ld.so.conf also contains /usr/contrib/lib and
17528 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17529 # libtool to hard-code these into programs
17532 cygwin* | mingw* | pw32* | cegcc*)
17533 version_type=windows
17534 shrext_cmds=".dll"
17535 need_version=no
17536 need_lib_prefix=no
17538 case $GCC,$host_os in
17539 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17540 library_names_spec='$libname.dll.a'
17541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17542 postinstall_cmds='base_file=`basename \${file}`~
17543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17544 dldir=$destdir/`dirname \$dlpath`~
17545 test -d \$dldir || mkdir -p \$dldir~
17546 $install_prog $dir/$dlname \$dldir/$dlname~
17547 chmod a+x \$dldir/$dlname~
17548 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17549 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17551 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17552 dlpath=$dir/\$dldll~
17553 $RM \$dlpath'
17554 shlibpath_overrides_runpath=yes
17556 case $host_os in
17557 cygwin*)
17558 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17559 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17563 mingw* | cegcc*)
17564 # MinGW DLLs use traditional 'lib' prefix
17565 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17567 pw32*)
17568 # pw32 DLLs use 'pw' prefix rather than 'lib'
17569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17571 esac
17575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17577 esac
17578 dynamic_linker='Win32 ld.exe'
17579 # FIXME: first we should search . and the directory the executable is in
17580 shlibpath_var=PATH
17583 darwin* | rhapsody*)
17584 dynamic_linker="$host_os dyld"
17585 version_type=darwin
17586 need_lib_prefix=no
17587 need_version=no
17588 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17589 soname_spec='${libname}${release}${major}$shared_ext'
17590 shlibpath_overrides_runpath=yes
17591 shlibpath_var=DYLD_LIBRARY_PATH
17592 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17594 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17598 dgux*)
17599 version_type=linux
17600 need_lib_prefix=no
17601 need_version=no
17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17603 soname_spec='${libname}${release}${shared_ext}$major'
17604 shlibpath_var=LD_LIBRARY_PATH
17607 freebsd* | dragonfly*)
17608 # DragonFly does not have aout. When/if they implement a new
17609 # versioning mechanism, adjust this.
17610 if test -x /usr/bin/objformat; then
17611 objformat=`/usr/bin/objformat`
17612 else
17613 case $host_os in
17614 freebsd[23].*) objformat=aout ;;
17615 *) objformat=elf ;;
17616 esac
17618 version_type=freebsd-$objformat
17619 case $version_type in
17620 freebsd-elf*)
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17622 need_version=no
17623 need_lib_prefix=no
17625 freebsd-*)
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17627 need_version=yes
17629 esac
17630 shlibpath_var=LD_LIBRARY_PATH
17631 case $host_os in
17632 freebsd2.*)
17633 shlibpath_overrides_runpath=yes
17635 freebsd3.[01]* | freebsdelf3.[01]*)
17636 shlibpath_overrides_runpath=yes
17637 hardcode_into_libs=yes
17639 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17640 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17641 shlibpath_overrides_runpath=no
17642 hardcode_into_libs=yes
17644 *) # from 4.6 on, and DragonFly
17645 shlibpath_overrides_runpath=yes
17646 hardcode_into_libs=yes
17648 esac
17651 gnu*)
17652 version_type=linux
17653 need_lib_prefix=no
17654 need_version=no
17655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17656 soname_spec='${libname}${release}${shared_ext}$major'
17657 shlibpath_var=LD_LIBRARY_PATH
17658 hardcode_into_libs=yes
17661 haiku*)
17662 version_type=linux
17663 need_lib_prefix=no
17664 need_version=no
17665 dynamic_linker="$host_os runtime_loader"
17666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17667 soname_spec='${libname}${release}${shared_ext}$major'
17668 shlibpath_var=LIBRARY_PATH
17669 shlibpath_overrides_runpath=yes
17670 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17671 hardcode_into_libs=yes
17674 hpux9* | hpux10* | hpux11*)
17675 # Give a soname corresponding to the major version so that dld.sl refuses to
17676 # link against other versions.
17677 version_type=sunos
17678 need_lib_prefix=no
17679 need_version=no
17680 case $host_cpu in
17681 ia64*)
17682 shrext_cmds='.so'
17683 hardcode_into_libs=yes
17684 dynamic_linker="$host_os dld.so"
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 if test "X$HPUX_IA64_MODE" = X32; then
17690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17691 else
17692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17696 hppa*64*)
17697 shrext_cmds='.sl'
17698 hardcode_into_libs=yes
17699 dynamic_linker="$host_os dld.sl"
17700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 soname_spec='${libname}${release}${shared_ext}$major'
17704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17708 shrext_cmds='.sl'
17709 dynamic_linker="$host_os dld.sl"
17710 shlibpath_var=SHLIB_PATH
17711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17713 soname_spec='${libname}${release}${shared_ext}$major'
17715 esac
17716 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17717 postinstall_cmds='chmod 555 $lib'
17718 # or fails outright, so override atomically:
17719 install_override_mode=555
17722 interix[3-9]*)
17723 version_type=linux
17724 need_lib_prefix=no
17725 need_version=no
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17727 soname_spec='${libname}${release}${shared_ext}$major'
17728 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17729 shlibpath_var=LD_LIBRARY_PATH
17730 shlibpath_overrides_runpath=no
17731 hardcode_into_libs=yes
17734 irix5* | irix6* | nonstopux*)
17735 case $host_os in
17736 nonstopux*) version_type=nonstopux ;;
17738 if test "$lt_cv_prog_gnu_ld" = yes; then
17739 version_type=linux
17740 else
17741 version_type=irix
17742 fi ;;
17743 esac
17744 need_lib_prefix=no
17745 need_version=no
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17748 case $host_os in
17749 irix5* | nonstopux*)
17750 libsuff= shlibsuff=
17753 case $LD in # libtool.m4 will add one of these switches to LD
17754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17755 libsuff= shlibsuff= libmagic=32-bit;;
17756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17757 libsuff=32 shlibsuff=N32 libmagic=N32;;
17758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17759 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17760 *) libsuff= shlibsuff= libmagic=never-match;;
17761 esac
17763 esac
17764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17765 shlibpath_overrides_runpath=no
17766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17768 hardcode_into_libs=yes
17771 # No shared lib support for Linux oldld, aout, or coff.
17772 linux*oldld* | linux*aout* | linux*coff*)
17773 dynamic_linker=no
17776 # This must be Linux ELF.
17777 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17778 version_type=linux
17779 need_lib_prefix=no
17780 need_version=no
17781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17782 soname_spec='${libname}${release}${shared_ext}$major'
17783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=no
17787 # Some binutils ld are patched to set DT_RUNPATH
17788 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17789 $as_echo_n "(cached) " >&6
17790 else
17791 lt_cv_shlibpath_overrides_runpath=no
17792 save_LDFLAGS=$LDFLAGS
17793 save_libdir=$libdir
17794 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17795 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17800 main ()
17804 return 0;
17806 _ACEOF
17807 if ac_fn_c_try_link "$LINENO"; then :
17808 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17809 lt_cv_shlibpath_overrides_runpath=yes
17812 rm -f core conftest.err conftest.$ac_objext \
17813 conftest$ac_exeext conftest.$ac_ext
17814 LDFLAGS=$save_LDFLAGS
17815 libdir=$save_libdir
17819 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17821 # This implies no fast_install, which is unacceptable.
17822 # Some rework will be needed to allow for fast_install
17823 # before this can be enabled.
17824 hardcode_into_libs=yes
17826 # Append ld.so.conf contents to the search path
17827 if test -f /etc/ld.so.conf; then
17828 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' ' '`
17829 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17832 # We used to test for /lib/ld.so.1 and disable shared libraries on
17833 # powerpc, because MkLinux only supported shared libraries with the
17834 # GNU dynamic linker. Since this was broken with cross compilers,
17835 # most powerpc-linux boxes support dynamic linking these days and
17836 # people can always --disable-shared, the test was removed, and we
17837 # assume the GNU/Linux dynamic linker is in use.
17838 dynamic_linker='GNU/Linux ld.so'
17841 netbsd*)
17842 version_type=sunos
17843 need_lib_prefix=no
17844 need_version=no
17845 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17848 dynamic_linker='NetBSD (a.out) ld.so'
17849 else
17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 dynamic_linker='NetBSD ld.elf_so'
17854 shlibpath_var=LD_LIBRARY_PATH
17855 shlibpath_overrides_runpath=yes
17856 hardcode_into_libs=yes
17859 newsos6)
17860 version_type=linux
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862 shlibpath_var=LD_LIBRARY_PATH
17863 shlibpath_overrides_runpath=yes
17866 *nto* | *qnx*)
17867 version_type=qnx
17868 need_lib_prefix=no
17869 need_version=no
17870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 shlibpath_overrides_runpath=no
17874 hardcode_into_libs=yes
17875 dynamic_linker='ldqnx.so'
17878 openbsd*)
17879 version_type=sunos
17880 sys_lib_dlsearch_path_spec="/usr/lib"
17881 need_lib_prefix=no
17882 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17883 case $host_os in
17884 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17885 *) need_version=no ;;
17886 esac
17887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17891 case $host_os in
17892 openbsd2.[89] | openbsd2.[89].*)
17893 shlibpath_overrides_runpath=no
17896 shlibpath_overrides_runpath=yes
17898 esac
17899 else
17900 shlibpath_overrides_runpath=yes
17904 os2*)
17905 libname_spec='$name'
17906 shrext_cmds=".dll"
17907 need_lib_prefix=no
17908 library_names_spec='$libname${shared_ext} $libname.a'
17909 dynamic_linker='OS/2 ld.exe'
17910 shlibpath_var=LIBPATH
17913 osf3* | osf4* | osf5*)
17914 version_type=osf
17915 need_lib_prefix=no
17916 need_version=no
17917 soname_spec='${libname}${release}${shared_ext}$major'
17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17919 shlibpath_var=LD_LIBRARY_PATH
17920 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17921 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17924 rdos*)
17925 dynamic_linker=no
17928 solaris*)
17929 version_type=linux
17930 need_lib_prefix=no
17931 need_version=no
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 shlibpath_var=LD_LIBRARY_PATH
17935 shlibpath_overrides_runpath=yes
17936 hardcode_into_libs=yes
17937 # ldd complains unless libraries are executable
17938 postinstall_cmds='chmod +x $lib'
17941 sunos4*)
17942 version_type=sunos
17943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17944 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17945 shlibpath_var=LD_LIBRARY_PATH
17946 shlibpath_overrides_runpath=yes
17947 if test "$with_gnu_ld" = yes; then
17948 need_lib_prefix=no
17950 need_version=yes
17953 sysv4 | sysv4.3*)
17954 version_type=linux
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17956 soname_spec='${libname}${release}${shared_ext}$major'
17957 shlibpath_var=LD_LIBRARY_PATH
17958 case $host_vendor in
17959 sni)
17960 shlibpath_overrides_runpath=no
17961 need_lib_prefix=no
17962 runpath_var=LD_RUN_PATH
17964 siemens)
17965 need_lib_prefix=no
17967 motorola)
17968 need_lib_prefix=no
17969 need_version=no
17970 shlibpath_overrides_runpath=no
17971 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17973 esac
17976 sysv4*MP*)
17977 if test -d /usr/nec ;then
17978 version_type=linux
17979 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17980 soname_spec='$libname${shared_ext}.$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17986 version_type=freebsd-elf
17987 need_lib_prefix=no
17988 need_version=no
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17990 soname_spec='${libname}${release}${shared_ext}$major'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 shlibpath_overrides_runpath=yes
17993 hardcode_into_libs=yes
17994 if test "$with_gnu_ld" = yes; then
17995 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17996 else
17997 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17998 case $host_os in
17999 sco3.2v5*)
18000 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18002 esac
18004 sys_lib_dlsearch_path_spec='/usr/lib'
18007 tpf*)
18008 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18009 version_type=linux
18010 need_lib_prefix=no
18011 need_version=no
18012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18013 shlibpath_var=LD_LIBRARY_PATH
18014 shlibpath_overrides_runpath=no
18015 hardcode_into_libs=yes
18018 uts4*)
18019 version_type=linux
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 shlibpath_var=LD_LIBRARY_PATH
18026 dynamic_linker=no
18028 esac
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18030 $as_echo "$dynamic_linker" >&6; }
18031 test "$dynamic_linker" = no && can_build_shared=no
18033 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18034 if test "$GCC" = yes; then
18035 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18038 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18039 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18041 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18042 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18137 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18138 hardcode_action=
18139 if test -n "$hardcode_libdir_flag_spec" ||
18140 test -n "$runpath_var" ||
18141 test "X$hardcode_automatic" = "Xyes" ; then
18143 # We can hardcode non-existent directories.
18144 if test "$hardcode_direct" != no &&
18145 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18146 # have to relink, otherwise we might link with an installed library
18147 # when we should be linking with a yet-to-be-installed one
18148 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18149 test "$hardcode_minus_L" != no; then
18150 # Linking always hardcodes the temporary library directory.
18151 hardcode_action=relink
18152 else
18153 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18154 hardcode_action=immediate
18156 else
18157 # We cannot hardcode anything, or else we can only hardcode existing
18158 # directories.
18159 hardcode_action=unsupported
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18162 $as_echo "$hardcode_action" >&6; }
18164 if test "$hardcode_action" = relink ||
18165 test "$inherit_rpath" = yes; then
18166 # Fast installation is not supported
18167 enable_fast_install=no
18168 elif test "$shlibpath_overrides_runpath" = yes ||
18169 test "$enable_shared" = no; then
18170 # Fast installation is not necessary
18171 enable_fast_install=needless
18179 if test "x$enable_dlopen" != xyes; then
18180 enable_dlopen=unknown
18181 enable_dlopen_self=unknown
18182 enable_dlopen_self_static=unknown
18183 else
18184 lt_cv_dlopen=no
18185 lt_cv_dlopen_libs=
18187 case $host_os in
18188 beos*)
18189 lt_cv_dlopen="load_add_on"
18190 lt_cv_dlopen_libs=
18191 lt_cv_dlopen_self=yes
18194 mingw* | pw32* | cegcc*)
18195 lt_cv_dlopen="LoadLibrary"
18196 lt_cv_dlopen_libs=
18199 cygwin*)
18200 lt_cv_dlopen="dlopen"
18201 lt_cv_dlopen_libs=
18204 darwin*)
18205 # if libdl is installed we need to link against it
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18207 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18209 $as_echo_n "(cached) " >&6
18210 else
18211 ac_check_lib_save_LIBS=$LIBS
18212 LIBS="-ldl $LIBS"
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char dlopen ();
18224 main ()
18226 return dlopen ();
18228 return 0;
18230 _ACEOF
18231 if ac_fn_c_try_link "$LINENO"; then :
18232 ac_cv_lib_dl_dlopen=yes
18233 else
18234 ac_cv_lib_dl_dlopen=no
18236 rm -f core conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18238 LIBS=$ac_check_lib_save_LIBS
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18241 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18242 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18243 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18244 else
18246 lt_cv_dlopen="dyld"
18247 lt_cv_dlopen_libs=
18248 lt_cv_dlopen_self=yes
18255 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18256 if test "x$ac_cv_func_shl_load" = x""yes; then :
18257 lt_cv_dlopen="shl_load"
18258 else
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18260 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18261 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18262 $as_echo_n "(cached) " >&6
18263 else
18264 ac_check_lib_save_LIBS=$LIBS
18265 LIBS="-ldld $LIBS"
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18269 /* Override any GCC internal prototype to avoid an error.
18270 Use char because int might match the return type of a GCC
18271 builtin and then its argument prototype would still apply. */
18272 #ifdef __cplusplus
18273 extern "C"
18274 #endif
18275 char shl_load ();
18277 main ()
18279 return shl_load ();
18281 return 0;
18283 _ACEOF
18284 if ac_fn_c_try_link "$LINENO"; then :
18285 ac_cv_lib_dld_shl_load=yes
18286 else
18287 ac_cv_lib_dld_shl_load=no
18289 rm -f core conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18294 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18295 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18296 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18297 else
18298 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18299 if test "x$ac_cv_func_dlopen" = x""yes; then :
18300 lt_cv_dlopen="dlopen"
18301 else
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18303 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18304 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18305 $as_echo_n "(cached) " >&6
18306 else
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-ldl $LIBS"
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18312 /* Override any GCC internal prototype to avoid an error.
18313 Use char because int might match the return type of a GCC
18314 builtin and then its argument prototype would still apply. */
18315 #ifdef __cplusplus
18316 extern "C"
18317 #endif
18318 char dlopen ();
18320 main ()
18322 return dlopen ();
18324 return 0;
18326 _ACEOF
18327 if ac_fn_c_try_link "$LINENO"; then :
18328 ac_cv_lib_dl_dlopen=yes
18329 else
18330 ac_cv_lib_dl_dlopen=no
18332 rm -f core conftest.err conftest.$ac_objext \
18333 conftest$ac_exeext conftest.$ac_ext
18334 LIBS=$ac_check_lib_save_LIBS
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18337 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18338 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18340 else
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18342 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18343 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18344 $as_echo_n "(cached) " >&6
18345 else
18346 ac_check_lib_save_LIBS=$LIBS
18347 LIBS="-lsvld $LIBS"
18348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349 /* end confdefs.h. */
18351 /* Override any GCC internal prototype to avoid an error.
18352 Use char because int might match the return type of a GCC
18353 builtin and then its argument prototype would still apply. */
18354 #ifdef __cplusplus
18355 extern "C"
18356 #endif
18357 char dlopen ();
18359 main ()
18361 return dlopen ();
18363 return 0;
18365 _ACEOF
18366 if ac_fn_c_try_link "$LINENO"; then :
18367 ac_cv_lib_svld_dlopen=yes
18368 else
18369 ac_cv_lib_svld_dlopen=no
18371 rm -f core conftest.err conftest.$ac_objext \
18372 conftest$ac_exeext conftest.$ac_ext
18373 LIBS=$ac_check_lib_save_LIBS
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18376 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18377 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18379 else
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18381 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18382 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18383 $as_echo_n "(cached) " >&6
18384 else
18385 ac_check_lib_save_LIBS=$LIBS
18386 LIBS="-ldld $LIBS"
18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h. */
18390 /* Override any GCC internal prototype to avoid an error.
18391 Use char because int might match the return type of a GCC
18392 builtin and then its argument prototype would still apply. */
18393 #ifdef __cplusplus
18394 extern "C"
18395 #endif
18396 char dld_link ();
18398 main ()
18400 return dld_link ();
18402 return 0;
18404 _ACEOF
18405 if ac_fn_c_try_link "$LINENO"; then :
18406 ac_cv_lib_dld_dld_link=yes
18407 else
18408 ac_cv_lib_dld_dld_link=no
18410 rm -f core conftest.err conftest.$ac_objext \
18411 conftest$ac_exeext conftest.$ac_ext
18412 LIBS=$ac_check_lib_save_LIBS
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18415 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18416 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18417 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18436 esac
18438 if test "x$lt_cv_dlopen" != xno; then
18439 enable_dlopen=yes
18440 else
18441 enable_dlopen=no
18444 case $lt_cv_dlopen in
18445 dlopen)
18446 save_CPPFLAGS="$CPPFLAGS"
18447 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18449 save_LDFLAGS="$LDFLAGS"
18450 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18452 save_LIBS="$LIBS"
18453 LIBS="$lt_cv_dlopen_libs $LIBS"
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18456 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18457 if test "${lt_cv_dlopen_self+set}" = set; then :
18458 $as_echo_n "(cached) " >&6
18459 else
18460 if test "$cross_compiling" = yes; then :
18461 lt_cv_dlopen_self=cross
18462 else
18463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18464 lt_status=$lt_dlunknown
18465 cat > conftest.$ac_ext <<_LT_EOF
18466 #line 18466 "configure"
18467 #include "confdefs.h"
18469 #if HAVE_DLFCN_H
18470 #include <dlfcn.h>
18471 #endif
18473 #include <stdio.h>
18475 #ifdef RTLD_GLOBAL
18476 # define LT_DLGLOBAL RTLD_GLOBAL
18477 #else
18478 # ifdef DL_GLOBAL
18479 # define LT_DLGLOBAL DL_GLOBAL
18480 # else
18481 # define LT_DLGLOBAL 0
18482 # endif
18483 #endif
18485 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18486 find out it does not work in some platform. */
18487 #ifndef LT_DLLAZY_OR_NOW
18488 # ifdef RTLD_LAZY
18489 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18490 # else
18491 # ifdef DL_LAZY
18492 # define LT_DLLAZY_OR_NOW DL_LAZY
18493 # else
18494 # ifdef RTLD_NOW
18495 # define LT_DLLAZY_OR_NOW RTLD_NOW
18496 # else
18497 # ifdef DL_NOW
18498 # define LT_DLLAZY_OR_NOW DL_NOW
18499 # else
18500 # define LT_DLLAZY_OR_NOW 0
18501 # endif
18502 # endif
18503 # endif
18504 # endif
18505 #endif
18507 /* When -fvisbility=hidden is used, assume the code has been annotated
18508 correspondingly for the symbols needed. */
18509 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18510 void fnord () __attribute__((visibility("default")));
18511 #endif
18513 void fnord () { int i=42; }
18514 int main ()
18516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18517 int status = $lt_dlunknown;
18519 if (self)
18521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18522 else
18524 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18525 else puts (dlerror ());
18527 /* dlclose (self); */
18529 else
18530 puts (dlerror ());
18532 return status;
18534 _LT_EOF
18535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18536 (eval $ac_link) 2>&5
18537 ac_status=$?
18538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18539 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18540 (./conftest; exit; ) >&5 2>/dev/null
18541 lt_status=$?
18542 case x$lt_status in
18543 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18544 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18545 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18546 esac
18547 else :
18548 # compilation failed
18549 lt_cv_dlopen_self=no
18552 rm -fr conftest*
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18557 $as_echo "$lt_cv_dlopen_self" >&6; }
18559 if test "x$lt_cv_dlopen_self" = xyes; then
18560 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18562 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18563 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18564 $as_echo_n "(cached) " >&6
18565 else
18566 if test "$cross_compiling" = yes; then :
18567 lt_cv_dlopen_self_static=cross
18568 else
18569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18570 lt_status=$lt_dlunknown
18571 cat > conftest.$ac_ext <<_LT_EOF
18572 #line 18572 "configure"
18573 #include "confdefs.h"
18575 #if HAVE_DLFCN_H
18576 #include <dlfcn.h>
18577 #endif
18579 #include <stdio.h>
18581 #ifdef RTLD_GLOBAL
18582 # define LT_DLGLOBAL RTLD_GLOBAL
18583 #else
18584 # ifdef DL_GLOBAL
18585 # define LT_DLGLOBAL DL_GLOBAL
18586 # else
18587 # define LT_DLGLOBAL 0
18588 # endif
18589 #endif
18591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18592 find out it does not work in some platform. */
18593 #ifndef LT_DLLAZY_OR_NOW
18594 # ifdef RTLD_LAZY
18595 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18596 # else
18597 # ifdef DL_LAZY
18598 # define LT_DLLAZY_OR_NOW DL_LAZY
18599 # else
18600 # ifdef RTLD_NOW
18601 # define LT_DLLAZY_OR_NOW RTLD_NOW
18602 # else
18603 # ifdef DL_NOW
18604 # define LT_DLLAZY_OR_NOW DL_NOW
18605 # else
18606 # define LT_DLLAZY_OR_NOW 0
18607 # endif
18608 # endif
18609 # endif
18610 # endif
18611 #endif
18613 /* When -fvisbility=hidden is used, assume the code has been annotated
18614 correspondingly for the symbols needed. */
18615 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18616 void fnord () __attribute__((visibility("default")));
18617 #endif
18619 void fnord () { int i=42; }
18620 int main ()
18622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18623 int status = $lt_dlunknown;
18625 if (self)
18627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18628 else
18630 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18631 else puts (dlerror ());
18633 /* dlclose (self); */
18635 else
18636 puts (dlerror ());
18638 return status;
18640 _LT_EOF
18641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18642 (eval $ac_link) 2>&5
18643 ac_status=$?
18644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18645 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18646 (./conftest; exit; ) >&5 2>/dev/null
18647 lt_status=$?
18648 case x$lt_status in
18649 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18650 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18651 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18652 esac
18653 else :
18654 # compilation failed
18655 lt_cv_dlopen_self_static=no
18658 rm -fr conftest*
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18663 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18666 CPPFLAGS="$save_CPPFLAGS"
18667 LDFLAGS="$save_LDFLAGS"
18668 LIBS="$save_LIBS"
18670 esac
18672 case $lt_cv_dlopen_self in
18673 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18674 *) enable_dlopen_self=unknown ;;
18675 esac
18677 case $lt_cv_dlopen_self_static in
18678 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18679 *) enable_dlopen_self_static=unknown ;;
18680 esac
18699 striplib=
18700 old_striplib=
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18702 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18703 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18704 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18705 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18707 $as_echo "yes" >&6; }
18708 else
18709 # FIXME - insert some real tests, host_os isn't really good enough
18710 case $host_os in
18711 darwin*)
18712 if test -n "$STRIP" ; then
18713 striplib="$STRIP -x"
18714 old_striplib="$STRIP -S"
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18716 $as_echo "yes" >&6; }
18717 else
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18719 $as_echo "no" >&6; }
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18724 $as_echo "no" >&6; }
18726 esac
18740 # Report which library types will actually be built
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18742 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18744 $as_echo "$can_build_shared" >&6; }
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18747 $as_echo_n "checking whether to build shared libraries... " >&6; }
18748 test "$can_build_shared" = "no" && enable_shared=no
18750 # On AIX, shared libraries and static libraries use the same namespace, and
18751 # are all built from PIC.
18752 case $host_os in
18753 aix3*)
18754 test "$enable_shared" = yes && enable_static=no
18755 if test -n "$RANLIB"; then
18756 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18757 postinstall_cmds='$RANLIB $lib'
18761 aix[4-9]*)
18762 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18763 test "$enable_shared" = yes && enable_static=no
18766 esac
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18768 $as_echo "$enable_shared" >&6; }
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18771 $as_echo_n "checking whether to build static libraries... " >&6; }
18772 # Make sure either enable_shared or enable_static is yes.
18773 test "$enable_shared" = yes || enable_static=yes
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18775 $as_echo "$enable_static" >&6; }
18781 ac_ext=cpp
18782 ac_cpp='$CXXCPP $CPPFLAGS'
18783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787 CC="$lt_save_CC"
18789 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18790 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18791 (test "X$CXX" != "Xg++"))) ; then
18792 ac_ext=cpp
18793 ac_cpp='$CXXCPP $CPPFLAGS'
18794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18798 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18799 if test -z "$CXXCPP"; then
18800 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18801 $as_echo_n "(cached) " >&6
18802 else
18803 # Double quotes because CXXCPP needs to be expanded
18804 for CXXCPP in "$CXX -E" "/lib/cpp"
18806 ac_preproc_ok=false
18807 for ac_cxx_preproc_warn_flag in '' yes
18809 # Use a header file that comes with gcc, so configuring glibc
18810 # with a fresh cross-compiler works.
18811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18812 # <limits.h> exists even on freestanding compilers.
18813 # On the NeXT, cc -E runs the code through the compiler's parser,
18814 # not just through cpp. "Syntax error" is here to catch this case.
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817 #ifdef __STDC__
18818 # include <limits.h>
18819 #else
18820 # include <assert.h>
18821 #endif
18822 Syntax error
18823 _ACEOF
18824 if ac_fn_cxx_try_cpp "$LINENO"; then :
18826 else
18827 # Broken: fails on valid input.
18828 continue
18830 rm -f conftest.err conftest.$ac_ext
18832 # OK, works on sane cases. Now check whether nonexistent headers
18833 # can be detected and how.
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18836 #include <ac_nonexistent.h>
18837 _ACEOF
18838 if ac_fn_cxx_try_cpp "$LINENO"; then :
18839 # Broken: success on invalid input.
18840 continue
18841 else
18842 # Passes both tests.
18843 ac_preproc_ok=:
18844 break
18846 rm -f conftest.err conftest.$ac_ext
18848 done
18849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18850 rm -f conftest.err conftest.$ac_ext
18851 if $ac_preproc_ok; then :
18852 break
18855 done
18856 ac_cv_prog_CXXCPP=$CXXCPP
18859 CXXCPP=$ac_cv_prog_CXXCPP
18860 else
18861 ac_cv_prog_CXXCPP=$CXXCPP
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18864 $as_echo "$CXXCPP" >&6; }
18865 ac_preproc_ok=false
18866 for ac_cxx_preproc_warn_flag in '' yes
18868 # Use a header file that comes with gcc, so configuring glibc
18869 # with a fresh cross-compiler works.
18870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18871 # <limits.h> exists even on freestanding compilers.
18872 # On the NeXT, cc -E runs the code through the compiler's parser,
18873 # not just through cpp. "Syntax error" is here to catch this case.
18874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18875 /* end confdefs.h. */
18876 #ifdef __STDC__
18877 # include <limits.h>
18878 #else
18879 # include <assert.h>
18880 #endif
18881 Syntax error
18882 _ACEOF
18883 if ac_fn_cxx_try_cpp "$LINENO"; then :
18885 else
18886 # Broken: fails on valid input.
18887 continue
18889 rm -f conftest.err conftest.$ac_ext
18891 # OK, works on sane cases. Now check whether nonexistent headers
18892 # can be detected and how.
18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18895 #include <ac_nonexistent.h>
18896 _ACEOF
18897 if ac_fn_cxx_try_cpp "$LINENO"; then :
18898 # Broken: success on invalid input.
18899 continue
18900 else
18901 # Passes both tests.
18902 ac_preproc_ok=:
18903 break
18905 rm -f conftest.err conftest.$ac_ext
18907 done
18908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18909 rm -f conftest.err conftest.$ac_ext
18910 if $ac_preproc_ok; then :
18912 else
18913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18915 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18916 See \`config.log' for more details." "$LINENO" 5; }
18919 ac_ext=cpp
18920 ac_cpp='$CXXCPP $CPPFLAGS'
18921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18925 else
18926 _lt_caught_CXX_error=yes
18929 ac_ext=cpp
18930 ac_cpp='$CXXCPP $CPPFLAGS'
18931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18935 archive_cmds_need_lc_CXX=no
18936 allow_undefined_flag_CXX=
18937 always_export_symbols_CXX=no
18938 archive_expsym_cmds_CXX=
18939 compiler_needs_object_CXX=no
18940 export_dynamic_flag_spec_CXX=
18941 hardcode_direct_CXX=no
18942 hardcode_direct_absolute_CXX=no
18943 hardcode_libdir_flag_spec_CXX=
18944 hardcode_libdir_flag_spec_ld_CXX=
18945 hardcode_libdir_separator_CXX=
18946 hardcode_minus_L_CXX=no
18947 hardcode_shlibpath_var_CXX=unsupported
18948 hardcode_automatic_CXX=no
18949 inherit_rpath_CXX=no
18950 module_cmds_CXX=
18951 module_expsym_cmds_CXX=
18952 link_all_deplibs_CXX=unknown
18953 old_archive_cmds_CXX=$old_archive_cmds
18954 reload_flag_CXX=$reload_flag
18955 reload_cmds_CXX=$reload_cmds
18956 no_undefined_flag_CXX=
18957 whole_archive_flag_spec_CXX=
18958 enable_shared_with_static_runtimes_CXX=no
18960 # Source file extension for C++ test sources.
18961 ac_ext=cpp
18963 # Object file extension for compiled C++ test sources.
18964 objext=o
18965 objext_CXX=$objext
18967 # No sense in running all these tests if we already determined that
18968 # the CXX compiler isn't working. Some variables (like enable_shared)
18969 # are currently assumed to apply to all compilers on this platform,
18970 # and will be corrupted by setting them based on a non-working compiler.
18971 if test "$_lt_caught_CXX_error" != yes; then
18972 # Code to be used in simple compile tests
18973 lt_simple_compile_test_code="int some_variable = 0;"
18975 # Code to be used in simple link tests
18976 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18985 # If no C compiler was specified, use CC.
18986 LTCC=${LTCC-"$CC"}
18988 # If no C compiler flags were specified, use CFLAGS.
18989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18991 # Allow CC to be a program name with arguments.
18992 compiler=$CC
18995 # save warnings/boilerplate of simple test code
18996 ac_outfile=conftest.$ac_objext
18997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18999 _lt_compiler_boilerplate=`cat conftest.err`
19000 $RM conftest*
19002 ac_outfile=conftest.$ac_objext
19003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19005 _lt_linker_boilerplate=`cat conftest.err`
19006 $RM -r conftest*
19009 # Allow CC to be a program name with arguments.
19010 lt_save_CC=$CC
19011 lt_save_LD=$LD
19012 lt_save_GCC=$GCC
19013 GCC=$GXX
19014 lt_save_with_gnu_ld=$with_gnu_ld
19015 lt_save_path_LD=$lt_cv_path_LD
19016 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19017 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19018 else
19019 $as_unset lt_cv_prog_gnu_ld
19021 if test -n "${lt_cv_path_LDCXX+set}"; then
19022 lt_cv_path_LD=$lt_cv_path_LDCXX
19023 else
19024 $as_unset lt_cv_path_LD
19026 test -z "${LDCXX+set}" || LD=$LDCXX
19027 CC=${CXX-"c++"}
19028 compiler=$CC
19029 compiler_CXX=$CC
19030 for cc_temp in $compiler""; do
19031 case $cc_temp in
19032 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19033 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19034 \-*) ;;
19035 *) break;;
19036 esac
19037 done
19038 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19041 if test -n "$compiler"; then
19042 # We don't want -fno-exception when compiling C++ code, so set the
19043 # no_builtin_flag separately
19044 if test "$GXX" = yes; then
19045 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19046 else
19047 lt_prog_compiler_no_builtin_flag_CXX=
19050 if test "$GXX" = yes; then
19051 # Set up default GNU C++ configuration
19055 # Check whether --with-gnu-ld was given.
19056 if test "${with_gnu_ld+set}" = set; then :
19057 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19058 else
19059 with_gnu_ld=no
19062 ac_prog=ld
19063 if test "$GCC" = yes; then
19064 # Check if gcc -print-prog-name=ld gives a path.
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19066 $as_echo_n "checking for ld used by $CC... " >&6; }
19067 case $host in
19068 *-*-mingw*)
19069 # gcc leaves a trailing carriage return which upsets mingw
19070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19073 esac
19074 case $ac_prog in
19075 # Accept absolute paths.
19076 [\\/]* | ?:[\\/]*)
19077 re_direlt='/[^/][^/]*/\.\./'
19078 # Canonicalize the pathname of ld
19079 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19080 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19081 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19082 done
19083 test -z "$LD" && LD="$ac_prog"
19086 # If it fails, then pretend we aren't using GCC.
19087 ac_prog=ld
19090 # If it is relative, then search for the first ld in PATH.
19091 with_gnu_ld=unknown
19093 esac
19094 elif test "$with_gnu_ld" = yes; then
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19096 $as_echo_n "checking for GNU ld... " >&6; }
19097 else
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19099 $as_echo_n "checking for non-GNU ld... " >&6; }
19101 if test "${lt_cv_path_LD+set}" = set; then :
19102 $as_echo_n "(cached) " >&6
19103 else
19104 if test -z "$LD"; then
19105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19106 for ac_dir in $PATH; do
19107 IFS="$lt_save_ifs"
19108 test -z "$ac_dir" && ac_dir=.
19109 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19110 lt_cv_path_LD="$ac_dir/$ac_prog"
19111 # Check to see if the program is GNU ld. I'd rather use --version,
19112 # but apparently some variants of GNU ld only accept -v.
19113 # Break only if it was the GNU/non-GNU ld that we prefer.
19114 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19115 *GNU* | *'with BFD'*)
19116 test "$with_gnu_ld" != no && break
19119 test "$with_gnu_ld" != yes && break
19121 esac
19123 done
19124 IFS="$lt_save_ifs"
19125 else
19126 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19130 LD="$lt_cv_path_LD"
19131 if test -n "$LD"; then
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19133 $as_echo "$LD" >&6; }
19134 else
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 $as_echo "no" >&6; }
19138 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19140 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19141 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19142 $as_echo_n "(cached) " >&6
19143 else
19144 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19145 case `$LD -v 2>&1 </dev/null` in
19146 *GNU* | *'with BFD'*)
19147 lt_cv_prog_gnu_ld=yes
19150 lt_cv_prog_gnu_ld=no
19152 esac
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19155 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19156 with_gnu_ld=$lt_cv_prog_gnu_ld
19164 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19165 # archiving commands below assume that GNU ld is being used.
19166 if test "$with_gnu_ld" = yes; then
19167 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19168 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'
19170 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19171 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19173 # If archive_cmds runs LD, not CC, wlarc should be empty
19174 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19175 # investigate it a little bit more. (MM)
19176 wlarc='${wl}'
19178 # ancient GNU ld didn't support --whole-archive et. al.
19179 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19180 $GREP 'no-whole-archive' > /dev/null; then
19181 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19182 else
19183 whole_archive_flag_spec_CXX=
19185 else
19186 with_gnu_ld=no
19187 wlarc=
19189 # A generic and very simple default shared library creation
19190 # command for GNU C++ for the case where it uses the native
19191 # linker, instead of GNU ld. If possible, this setting should
19192 # overridden to take advantage of the native linker features on
19193 # the platform it is being used on.
19194 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19197 # Commands to make compiler produce verbose output that lists
19198 # what "hidden" libraries, object files and flags are used when
19199 # linking a shared library.
19200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19202 else
19203 GXX=no
19204 with_gnu_ld=no
19205 wlarc=
19208 # PORTME: fill in a description of your system's C++ link characteristics
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19210 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19211 ld_shlibs_CXX=yes
19212 case $host_os in
19213 aix3*)
19214 # FIXME: insert proper C++ library support
19215 ld_shlibs_CXX=no
19217 aix[4-9]*)
19218 if test "$host_cpu" = ia64; then
19219 # On IA64, the linker does run time linking by default, so we don't
19220 # have to do anything special.
19221 aix_use_runtimelinking=no
19222 exp_sym_flag='-Bexport'
19223 no_entry_flag=""
19224 else
19225 aix_use_runtimelinking=no
19227 # Test if we are trying to use run time linking or normal
19228 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19229 # need to do runtime linking.
19230 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19231 for ld_flag in $LDFLAGS; do
19232 case $ld_flag in
19233 *-brtl*)
19234 aix_use_runtimelinking=yes
19235 break
19237 esac
19238 done
19240 esac
19242 exp_sym_flag='-bexport'
19243 no_entry_flag='-bnoentry'
19246 # When large executables or shared objects are built, AIX ld can
19247 # have problems creating the table of contents. If linking a library
19248 # or program results in "error TOC overflow" add -mminimal-toc to
19249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19252 archive_cmds_CXX=''
19253 hardcode_direct_CXX=yes
19254 hardcode_direct_absolute_CXX=yes
19255 hardcode_libdir_separator_CXX=':'
19256 link_all_deplibs_CXX=yes
19257 file_list_spec_CXX='${wl}-f,'
19259 if test "$GXX" = yes; then
19260 case $host_os in aix4.[012]|aix4.[012].*)
19261 # We only want to do this on AIX 4.2 and lower, the check
19262 # below for broken collect2 doesn't work under 4.3+
19263 collect2name=`${CC} -print-prog-name=collect2`
19264 if test -f "$collect2name" &&
19265 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19266 then
19267 # We have reworked collect2
19269 else
19270 # We have old collect2
19271 hardcode_direct_CXX=unsupported
19272 # It fails to find uninstalled libraries when the uninstalled
19273 # path is not listed in the libpath. Setting hardcode_minus_L
19274 # to unsupported forces relinking
19275 hardcode_minus_L_CXX=yes
19276 hardcode_libdir_flag_spec_CXX='-L$libdir'
19277 hardcode_libdir_separator_CXX=
19279 esac
19280 shared_flag='-shared'
19281 if test "$aix_use_runtimelinking" = yes; then
19282 shared_flag="$shared_flag "'${wl}-G'
19284 else
19285 # not using gcc
19286 if test "$host_cpu" = ia64; then
19287 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19288 # chokes on -Wl,-G. The following line is correct:
19289 shared_flag='-G'
19290 else
19291 if test "$aix_use_runtimelinking" = yes; then
19292 shared_flag='${wl}-G'
19293 else
19294 shared_flag='${wl}-bM:SRE'
19299 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19300 # It seems that -bexpall does not export symbols beginning with
19301 # underscore (_), so it is better to generate a list of symbols to
19302 # export.
19303 always_export_symbols_CXX=yes
19304 if test "$aix_use_runtimelinking" = yes; then
19305 # Warning - without using the other runtime loading flags (-brtl),
19306 # -berok will link without error, but may produce a broken library.
19307 allow_undefined_flag_CXX='-berok'
19308 # Determine the default libpath from the value encoded in an empty
19309 # executable.
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19314 main ()
19318 return 0;
19320 _ACEOF
19321 if ac_fn_cxx_try_link "$LINENO"; then :
19323 lt_aix_libpath_sed='
19324 /Import File Strings/,/^$/ {
19325 /^0/ {
19326 s/^0 *\(.*\)$/\1/
19330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19331 # Check for a 64-bit object if we didn't find anything.
19332 if test -z "$aix_libpath"; then
19333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19336 rm -f core conftest.err conftest.$ac_objext \
19337 conftest$ac_exeext conftest.$ac_ext
19338 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19340 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19342 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"
19343 else
19344 if test "$host_cpu" = ia64; then
19345 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19346 allow_undefined_flag_CXX="-z nodefs"
19347 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"
19348 else
19349 # Determine the default libpath from the value encoded in an
19350 # empty executable.
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19355 main ()
19359 return 0;
19361 _ACEOF
19362 if ac_fn_cxx_try_link "$LINENO"; then :
19364 lt_aix_libpath_sed='
19365 /Import File Strings/,/^$/ {
19366 /^0/ {
19367 s/^0 *\(.*\)$/\1/
19371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19372 # Check for a 64-bit object if we didn't find anything.
19373 if test -z "$aix_libpath"; then
19374 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19377 rm -f core conftest.err conftest.$ac_objext \
19378 conftest$ac_exeext conftest.$ac_ext
19379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19381 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19382 # Warning - without using the other run time loading flags,
19383 # -berok will link without error, but may produce a broken library.
19384 no_undefined_flag_CXX=' ${wl}-bernotok'
19385 allow_undefined_flag_CXX=' ${wl}-berok'
19386 if test "$with_gnu_ld" = yes; then
19387 # We only use this code for GNU lds that support --whole-archive.
19388 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19389 else
19390 # Exported symbols can be pulled into shared objects from archives
19391 whole_archive_flag_spec_CXX='$convenience'
19393 archive_cmds_need_lc_CXX=yes
19394 # This is similar to how AIX traditionally builds its shared
19395 # libraries.
19396 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'
19401 beos*)
19402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19403 allow_undefined_flag_CXX=unsupported
19404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19405 # support --undefined. This deserves some investigation. FIXME
19406 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19407 else
19408 ld_shlibs_CXX=no
19412 chorus*)
19413 case $cc_basename in
19415 # FIXME: insert proper C++ library support
19416 ld_shlibs_CXX=no
19418 esac
19421 cygwin* | mingw* | pw32* | cegcc*)
19422 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19423 # as there is no search path for DLLs.
19424 hardcode_libdir_flag_spec_CXX='-L$libdir'
19425 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19426 allow_undefined_flag_CXX=unsupported
19427 always_export_symbols_CXX=no
19428 enable_shared_with_static_runtimes_CXX=yes
19430 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19431 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'
19432 # If the export-symbols file already is a .def file (1st line
19433 # is EXPORTS), use it as is; otherwise, prepend...
19434 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19435 cp $export_symbols $output_objdir/$soname.def;
19436 else
19437 echo EXPORTS > $output_objdir/$soname.def;
19438 cat $export_symbols >> $output_objdir/$soname.def;
19440 $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'
19441 else
19442 ld_shlibs_CXX=no
19445 darwin* | rhapsody*)
19448 archive_cmds_need_lc_CXX=no
19449 hardcode_direct_CXX=no
19450 hardcode_automatic_CXX=yes
19451 hardcode_shlibpath_var_CXX=unsupported
19452 if test "$lt_cv_ld_force_load" = "yes"; then
19453 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\"`'
19454 else
19455 whole_archive_flag_spec_CXX=''
19457 link_all_deplibs_CXX=yes
19458 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19459 case $cc_basename in
19460 ifort*) _lt_dar_can_shared=yes ;;
19461 *) _lt_dar_can_shared=$GCC ;;
19462 esac
19463 if test "$_lt_dar_can_shared" = "yes"; then
19464 output_verbose_link_cmd=func_echo_all
19465 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}"
19466 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19467 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}"
19468 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}"
19469 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19470 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}"
19471 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}"
19474 else
19475 ld_shlibs_CXX=no
19480 dgux*)
19481 case $cc_basename in
19482 ec++*)
19483 # FIXME: insert proper C++ library support
19484 ld_shlibs_CXX=no
19486 ghcx*)
19487 # Green Hills C++ Compiler
19488 # FIXME: insert proper C++ library support
19489 ld_shlibs_CXX=no
19492 # FIXME: insert proper C++ library support
19493 ld_shlibs_CXX=no
19495 esac
19498 freebsd2.*)
19499 # C++ shared libraries reported to be fairly broken before
19500 # switch to ELF
19501 ld_shlibs_CXX=no
19504 freebsd-elf*)
19505 archive_cmds_need_lc_CXX=no
19508 freebsd* | dragonfly*)
19509 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19510 # conventions
19511 ld_shlibs_CXX=yes
19514 gnu*)
19517 haiku*)
19518 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19519 link_all_deplibs_CXX=yes
19522 hpux9*)
19523 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19524 hardcode_libdir_separator_CXX=:
19525 export_dynamic_flag_spec_CXX='${wl}-E'
19526 hardcode_direct_CXX=yes
19527 hardcode_minus_L_CXX=yes # Not in the search PATH,
19528 # but as the default
19529 # location of the library.
19531 case $cc_basename in
19532 CC*)
19533 # FIXME: insert proper C++ library support
19534 ld_shlibs_CXX=no
19536 aCC*)
19537 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'
19538 # Commands to make compiler produce verbose output that lists
19539 # what "hidden" libraries, object files and flags are used when
19540 # linking a shared library.
19542 # There doesn't appear to be a way to prevent this compiler from
19543 # explicitly linking system object files so we need to strip them
19544 # from the output so that they don't get included in the library
19545 # dependencies.
19546 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"'
19549 if test "$GXX" = yes; then
19550 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'
19551 else
19552 # FIXME: insert proper C++ library support
19553 ld_shlibs_CXX=no
19556 esac
19559 hpux10*|hpux11*)
19560 if test $with_gnu_ld = no; then
19561 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19562 hardcode_libdir_separator_CXX=:
19564 case $host_cpu in
19565 hppa*64*|ia64*)
19568 export_dynamic_flag_spec_CXX='${wl}-E'
19570 esac
19572 case $host_cpu in
19573 hppa*64*|ia64*)
19574 hardcode_direct_CXX=no
19575 hardcode_shlibpath_var_CXX=no
19578 hardcode_direct_CXX=yes
19579 hardcode_direct_absolute_CXX=yes
19580 hardcode_minus_L_CXX=yes # Not in the search PATH,
19581 # but as the default
19582 # location of the library.
19584 esac
19586 case $cc_basename in
19587 CC*)
19588 # FIXME: insert proper C++ library support
19589 ld_shlibs_CXX=no
19591 aCC*)
19592 case $host_cpu in
19593 hppa*64*)
19594 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19596 ia64*)
19597 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19600 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19602 esac
19603 # Commands to make compiler produce verbose output that lists
19604 # what "hidden" libraries, object files and flags are used when
19605 # linking a shared library.
19607 # There doesn't appear to be a way to prevent this compiler from
19608 # explicitly linking system object files so we need to strip them
19609 # from the output so that they don't get included in the library
19610 # dependencies.
19611 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"'
19614 if test "$GXX" = yes; then
19615 if test $with_gnu_ld = no; then
19616 case $host_cpu in
19617 hppa*64*)
19618 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19620 ia64*)
19621 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19624 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'
19626 esac
19628 else
19629 # FIXME: insert proper C++ library support
19630 ld_shlibs_CXX=no
19633 esac
19636 interix[3-9]*)
19637 hardcode_direct_CXX=no
19638 hardcode_shlibpath_var_CXX=no
19639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19640 export_dynamic_flag_spec_CXX='${wl}-E'
19641 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19642 # Instead, shared libraries are loaded at an image base (0x10000000 by
19643 # default) and relocated if they conflict, which is a slow very memory
19644 # consuming and fragmenting process. To avoid this, we pick a random,
19645 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19646 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19647 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'
19648 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'
19650 irix5* | irix6*)
19651 case $cc_basename in
19652 CC*)
19653 # SGI C++
19654 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'
19656 # Archives containing C++ object files must be created using
19657 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19658 # necessary to make sure instantiated templates are included
19659 # in the archive.
19660 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19663 if test "$GXX" = yes; then
19664 if test "$with_gnu_ld" = no; then
19665 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'
19666 else
19667 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'
19670 link_all_deplibs_CXX=yes
19672 esac
19673 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19674 hardcode_libdir_separator_CXX=:
19675 inherit_rpath_CXX=yes
19678 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19679 case $cc_basename in
19680 KCC*)
19681 # Kuck and Associates, Inc. (KAI) C++ Compiler
19683 # KCC will only create a shared library if the output file
19684 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19685 # to its proper name (with version) after linking.
19686 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'
19687 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'
19688 # Commands to make compiler produce verbose output that lists
19689 # what "hidden" libraries, object files and flags are used when
19690 # linking a shared library.
19692 # There doesn't appear to be a way to prevent this compiler from
19693 # explicitly linking system object files so we need to strip them
19694 # from the output so that they don't get included in the library
19695 # dependencies.
19696 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"'
19698 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19699 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19701 # Archives containing C++ object files must be created using
19702 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19703 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19705 icpc* | ecpc* )
19706 # Intel C++
19707 with_gnu_ld=yes
19708 # version 8.0 and above of icpc choke on multiply defined symbols
19709 # if we add $predep_objects and $postdep_objects, however 7.1 and
19710 # earlier do not add the objects themselves.
19711 case `$CC -V 2>&1` in
19712 *"Version 7."*)
19713 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19714 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'
19716 *) # Version 8.0 or newer
19717 tmp_idyn=
19718 case $host_cpu in
19719 ia64*) tmp_idyn=' -i_dynamic';;
19720 esac
19721 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19722 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'
19724 esac
19725 archive_cmds_need_lc_CXX=no
19726 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19728 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19730 pgCC* | pgcpp*)
19731 # Portland Group C++ compiler
19732 case `$CC -V` in
19733 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19734 prelink_cmds_CXX='tpldir=Template.dir~
19735 rm -rf $tpldir~
19736 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19737 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19738 old_archive_cmds_CXX='tpldir=Template.dir~
19739 rm -rf $tpldir~
19740 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19741 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19742 $RANLIB $oldlib'
19743 archive_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 | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19747 archive_expsym_cmds_CXX='tpldir=Template.dir~
19748 rm -rf $tpldir~
19749 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19750 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19752 *) # Version 6 and above use weak symbols
19753 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19754 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'
19756 esac
19758 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19760 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'
19762 cxx*)
19763 # Compaq C++
19764 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19765 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'
19767 runpath_var=LD_RUN_PATH
19768 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19769 hardcode_libdir_separator_CXX=:
19771 # Commands to make compiler produce verbose output that lists
19772 # what "hidden" libraries, object files and flags are used when
19773 # linking a shared library.
19775 # There doesn't appear to be a way to prevent this compiler from
19776 # explicitly linking system object files so we need to strip them
19777 # from the output so that they don't get included in the library
19778 # dependencies.
19779 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'
19781 xl* | mpixl* | bgxl*)
19782 # IBM XL 8.0 on PPC, with GNU ld
19783 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19784 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19785 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19786 if test "x$supports_anon_versioning" = xyes; then
19787 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19788 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19789 echo "local: *; };" >> $output_objdir/$libname.ver~
19790 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19794 case `$CC -V 2>&1 | sed 5q` in
19795 *Sun\ C*)
19796 # Sun C++ 5.9
19797 no_undefined_flag_CXX=' -zdefs'
19798 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19799 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'
19800 hardcode_libdir_flag_spec_CXX='-R$libdir'
19801 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'
19802 compiler_needs_object_CXX=yes
19804 # Not sure whether something based on
19805 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19806 # would be better.
19807 output_verbose_link_cmd='func_echo_all'
19809 # Archives containing C++ object files must be created using
19810 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19811 # necessary to make sure instantiated templates are included
19812 # in the archive.
19813 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19815 esac
19817 esac
19820 lynxos*)
19821 # FIXME: insert proper C++ library support
19822 ld_shlibs_CXX=no
19825 m88k*)
19826 # FIXME: insert proper C++ library support
19827 ld_shlibs_CXX=no
19830 mvs*)
19831 case $cc_basename in
19832 cxx*)
19833 # FIXME: insert proper C++ library support
19834 ld_shlibs_CXX=no
19837 # FIXME: insert proper C++ library support
19838 ld_shlibs_CXX=no
19840 esac
19843 netbsd*)
19844 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19845 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19846 wlarc=
19847 hardcode_libdir_flag_spec_CXX='-R$libdir'
19848 hardcode_direct_CXX=yes
19849 hardcode_shlibpath_var_CXX=no
19851 # Workaround some broken pre-1.5 toolchains
19852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19855 *nto* | *qnx*)
19856 ld_shlibs_CXX=yes
19859 openbsd2*)
19860 # C++ shared libraries are fairly broken
19861 ld_shlibs_CXX=no
19864 openbsd*)
19865 if test -f /usr/libexec/ld.so; then
19866 hardcode_direct_CXX=yes
19867 hardcode_shlibpath_var_CXX=no
19868 hardcode_direct_absolute_CXX=yes
19869 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19870 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19871 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19872 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19873 export_dynamic_flag_spec_CXX='${wl}-E'
19874 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19876 output_verbose_link_cmd=func_echo_all
19877 else
19878 ld_shlibs_CXX=no
19882 osf3* | osf4* | osf5*)
19883 case $cc_basename in
19884 KCC*)
19885 # Kuck and Associates, Inc. (KAI) C++ Compiler
19887 # KCC will only create a shared library if the output file
19888 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19889 # to its proper name (with version) after linking.
19890 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'
19892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19893 hardcode_libdir_separator_CXX=:
19895 # Archives containing C++ object files must be created using
19896 # the KAI C++ compiler.
19897 case $host in
19898 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19899 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19900 esac
19902 RCC*)
19903 # Rational C++ 2.4.1
19904 # FIXME: insert proper C++ library support
19905 ld_shlibs_CXX=no
19907 cxx*)
19908 case $host in
19909 osf3*)
19910 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19911 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'
19912 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19915 allow_undefined_flag_CXX=' -expect_unresolved \*'
19916 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'
19917 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19918 echo "-hidden">> $lib.exp~
19919 $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~
19920 $RM $lib.exp'
19921 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19923 esac
19925 hardcode_libdir_separator_CXX=:
19927 # Commands to make compiler produce verbose output that lists
19928 # what "hidden" libraries, object files and flags are used when
19929 # linking a shared library.
19931 # There doesn't appear to be a way to prevent this compiler from
19932 # explicitly linking system object files so we need to strip them
19933 # from the output so that they don't get included in the library
19934 # dependencies.
19935 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"'
19938 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19939 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19940 case $host in
19941 osf3*)
19942 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'
19945 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'
19947 esac
19949 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19950 hardcode_libdir_separator_CXX=:
19952 # Commands to make compiler produce verbose output that lists
19953 # what "hidden" libraries, object files and flags are used when
19954 # linking a shared library.
19955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19957 else
19958 # FIXME: insert proper C++ library support
19959 ld_shlibs_CXX=no
19962 esac
19965 psos*)
19966 # FIXME: insert proper C++ library support
19967 ld_shlibs_CXX=no
19970 sunos4*)
19971 case $cc_basename in
19972 CC*)
19973 # Sun C++ 4.x
19974 # FIXME: insert proper C++ library support
19975 ld_shlibs_CXX=no
19977 lcc*)
19978 # Lucid
19979 # FIXME: insert proper C++ library support
19980 ld_shlibs_CXX=no
19983 # FIXME: insert proper C++ library support
19984 ld_shlibs_CXX=no
19986 esac
19989 solaris*)
19990 case $cc_basename in
19991 CC*)
19992 # Sun C++ 4.2, 5.x and Centerline C++
19993 archive_cmds_need_lc_CXX=yes
19994 no_undefined_flag_CXX=' -zdefs'
19995 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19996 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19997 $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'
19999 hardcode_libdir_flag_spec_CXX='-R$libdir'
20000 hardcode_shlibpath_var_CXX=no
20001 case $host_os in
20002 solaris2.[0-5] | solaris2.[0-5].*) ;;
20004 # The compiler driver will combine and reorder linker options,
20005 # but understands `-z linker_flag'.
20006 # Supported since Solaris 2.6 (maybe 2.5.1?)
20007 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20009 esac
20010 link_all_deplibs_CXX=yes
20012 output_verbose_link_cmd='func_echo_all'
20014 # Archives containing C++ object files must be created using
20015 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20016 # necessary to make sure instantiated templates are included
20017 # in the archive.
20018 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20020 gcx*)
20021 # Green Hills C++ Compiler
20022 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20024 # The C++ compiler must be used to create the archive.
20025 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20028 # GNU C++ compiler with Solaris linker
20029 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20030 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20031 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20032 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20033 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20034 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20036 # Commands to make compiler produce verbose output that lists
20037 # what "hidden" libraries, object files and flags are used when
20038 # linking a shared library.
20039 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20040 else
20041 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20042 # platform.
20043 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20044 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20045 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20047 # Commands to make compiler produce verbose output that lists
20048 # what "hidden" libraries, object files and flags are used when
20049 # linking a shared library.
20050 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20053 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20054 case $host_os in
20055 solaris2.[0-5] | solaris2.[0-5].*) ;;
20057 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20059 esac
20062 esac
20065 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20066 no_undefined_flag_CXX='${wl}-z,text'
20067 archive_cmds_need_lc_CXX=no
20068 hardcode_shlibpath_var_CXX=no
20069 runpath_var='LD_RUN_PATH'
20071 case $cc_basename in
20072 CC*)
20073 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20074 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20077 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20078 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20080 esac
20083 sysv5* | sco3.2v5* | sco5v6*)
20084 # Note: We can NOT use -z defs as we might desire, because we do not
20085 # link with -lc, and that would cause any symbols used from libc to
20086 # always be unresolved, which means just about no library would
20087 # ever link correctly. If we're not using GNU ld we use -z text
20088 # though, which does catch some bad symbols but isn't as heavy-handed
20089 # as -z defs.
20090 no_undefined_flag_CXX='${wl}-z,text'
20091 allow_undefined_flag_CXX='${wl}-z,nodefs'
20092 archive_cmds_need_lc_CXX=no
20093 hardcode_shlibpath_var_CXX=no
20094 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20095 hardcode_libdir_separator_CXX=':'
20096 link_all_deplibs_CXX=yes
20097 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20098 runpath_var='LD_RUN_PATH'
20100 case $cc_basename in
20101 CC*)
20102 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20103 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20104 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20105 '"$old_archive_cmds_CXX"
20106 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20107 '"$reload_cmds_CXX"
20110 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20111 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20113 esac
20116 tandem*)
20117 case $cc_basename in
20118 NCC*)
20119 # NonStop-UX NCC 3.20
20120 # FIXME: insert proper C++ library support
20121 ld_shlibs_CXX=no
20124 # FIXME: insert proper C++ library support
20125 ld_shlibs_CXX=no
20127 esac
20130 vxworks*)
20131 # FIXME: insert proper C++ library support
20132 ld_shlibs_CXX=no
20136 # FIXME: insert proper C++ library support
20137 ld_shlibs_CXX=no
20139 esac
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20142 $as_echo "$ld_shlibs_CXX" >&6; }
20143 test "$ld_shlibs_CXX" = no && can_build_shared=no
20145 GCC_CXX="$GXX"
20146 LD_CXX="$LD"
20148 ## CAVEAT EMPTOR:
20149 ## There is no encapsulation within the following macros, do not change
20150 ## the running order or otherwise move them around unless you know exactly
20151 ## what you are doing...
20152 # Dependencies to place before and after the object being linked:
20153 predep_objects_CXX=
20154 postdep_objects_CXX=
20155 predeps_CXX=
20156 postdeps_CXX=
20157 compiler_lib_search_path_CXX=
20159 cat > conftest.$ac_ext <<_LT_EOF
20160 class Foo
20162 public:
20163 Foo (void) { a = 0; }
20164 private:
20165 int a;
20167 _LT_EOF
20169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20170 (eval $ac_compile) 2>&5
20171 ac_status=$?
20172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20173 test $ac_status = 0; }; then
20174 # Parse the compiler output and extract the necessary
20175 # objects, libraries and library flags.
20177 # Sentinel used to keep track of whether or not we are before
20178 # the conftest object file.
20179 pre_test_object_deps_done=no
20181 for p in `eval "$output_verbose_link_cmd"`; do
20182 case $p in
20184 -L* | -R* | -l*)
20185 # Some compilers place space between "-{L,R}" and the path.
20186 # Remove the space.
20187 if test $p = "-L" ||
20188 test $p = "-R"; then
20189 prev=$p
20190 continue
20191 else
20192 prev=
20195 if test "$pre_test_object_deps_done" = no; then
20196 case $p in
20197 -L* | -R*)
20198 # Internal compiler library paths should come after those
20199 # provided the user. The postdeps already come after the
20200 # user supplied libs so there is no need to process them.
20201 if test -z "$compiler_lib_search_path_CXX"; then
20202 compiler_lib_search_path_CXX="${prev}${p}"
20203 else
20204 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20207 # The "-l" case would never come before the object being
20208 # linked, so don't bother handling this case.
20209 esac
20210 else
20211 if test -z "$postdeps_CXX"; then
20212 postdeps_CXX="${prev}${p}"
20213 else
20214 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20219 *.$objext)
20220 # This assumes that the test object file only shows up
20221 # once in the compiler output.
20222 if test "$p" = "conftest.$objext"; then
20223 pre_test_object_deps_done=yes
20224 continue
20227 if test "$pre_test_object_deps_done" = no; then
20228 if test -z "$predep_objects_CXX"; then
20229 predep_objects_CXX="$p"
20230 else
20231 predep_objects_CXX="$predep_objects_CXX $p"
20233 else
20234 if test -z "$postdep_objects_CXX"; then
20235 postdep_objects_CXX="$p"
20236 else
20237 postdep_objects_CXX="$postdep_objects_CXX $p"
20242 *) ;; # Ignore the rest.
20244 esac
20245 done
20247 # Clean up.
20248 rm -f a.out a.exe
20249 else
20250 echo "libtool.m4: error: problem compiling CXX test program"
20253 $RM -f confest.$objext
20255 # PORTME: override above test on systems where it is broken
20256 case $host_os in
20257 interix[3-9]*)
20258 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20259 # hack all around it, let's just trust "g++" to DTRT.
20260 predep_objects_CXX=
20261 postdep_objects_CXX=
20262 postdeps_CXX=
20265 linux*)
20266 case `$CC -V 2>&1 | sed 5q` in
20267 *Sun\ C*)
20268 # Sun C++ 5.9
20270 # The more standards-conforming stlport4 library is
20271 # incompatible with the Cstd library. Avoid specifying
20272 # it if it's in CXXFLAGS. Ignore libCrun as
20273 # -library=stlport4 depends on it.
20274 case " $CXX $CXXFLAGS " in
20275 *" -library=stlport4 "*)
20276 solaris_use_stlport4=yes
20278 esac
20280 if test "$solaris_use_stlport4" != yes; then
20281 postdeps_CXX='-library=Cstd -library=Crun'
20284 esac
20287 solaris*)
20288 case $cc_basename in
20289 CC*)
20290 # The more standards-conforming stlport4 library is
20291 # incompatible with the Cstd library. Avoid specifying
20292 # it if it's in CXXFLAGS. Ignore libCrun as
20293 # -library=stlport4 depends on it.
20294 case " $CXX $CXXFLAGS " in
20295 *" -library=stlport4 "*)
20296 solaris_use_stlport4=yes
20298 esac
20300 # Adding this requires a known-good setup of shared libraries for
20301 # Sun compiler versions before 5.6, else PIC objects from an old
20302 # archive will be linked into the output, leading to subtle bugs.
20303 if test "$solaris_use_stlport4" != yes; then
20304 postdeps_CXX='-library=Cstd -library=Crun'
20307 esac
20309 esac
20312 case " $postdeps_CXX " in
20313 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20314 esac
20315 compiler_lib_search_dirs_CXX=
20316 if test -n "${compiler_lib_search_path_CXX}"; then
20317 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20350 lt_prog_compiler_wl_CXX=
20351 lt_prog_compiler_pic_CXX=
20352 lt_prog_compiler_static_CXX=
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20355 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20357 # C++ specific cases for pic, static, wl, etc.
20358 if test "$GXX" = yes; then
20359 lt_prog_compiler_wl_CXX='-Wl,'
20360 lt_prog_compiler_static_CXX='-static'
20362 case $host_os in
20363 aix*)
20364 # All AIX code is PIC.
20365 if test "$host_cpu" = ia64; then
20366 # AIX 5 now supports IA64 processor
20367 lt_prog_compiler_static_CXX='-Bstatic'
20369 lt_prog_compiler_pic_CXX='-fPIC'
20372 amigaos*)
20373 case $host_cpu in
20374 powerpc)
20375 # see comment about AmigaOS4 .so support
20376 lt_prog_compiler_pic_CXX='-fPIC'
20378 m68k)
20379 # FIXME: we need at least 68020 code to build shared libraries, but
20380 # adding the `-m68020' flag to GCC prevents building anything better,
20381 # like `-m68040'.
20382 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20384 esac
20387 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20388 # PIC is the default for these OSes.
20390 mingw* | cygwin* | os2* | pw32* | cegcc*)
20391 # This hack is so that the source file can tell whether it is being
20392 # built for inclusion in a dll (and should export symbols for example).
20393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20394 # (--disable-auto-import) libraries
20395 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20397 darwin* | rhapsody*)
20398 # PIC is the default on this platform
20399 # Common symbols not allowed in MH_DYLIB files
20400 lt_prog_compiler_pic_CXX='-fno-common'
20402 *djgpp*)
20403 # DJGPP does not support shared libraries at all
20404 lt_prog_compiler_pic_CXX=
20406 haiku*)
20407 # PIC is the default for Haiku.
20408 # The "-static" flag exists, but is broken.
20409 lt_prog_compiler_static_CXX=
20411 interix[3-9]*)
20412 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20413 # Instead, we relocate shared libraries at runtime.
20415 sysv4*MP*)
20416 if test -d /usr/nec; then
20417 lt_prog_compiler_pic_CXX=-Kconform_pic
20420 hpux*)
20421 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20422 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20423 # sets the default TLS model and affects inlining.
20424 case $host_cpu in
20425 hppa*64*)
20428 lt_prog_compiler_pic_CXX='-fPIC'
20430 esac
20432 *qnx* | *nto*)
20433 # QNX uses GNU C++, but need to define -shared option too, otherwise
20434 # it will coredump.
20435 lt_prog_compiler_pic_CXX='-fPIC -shared'
20438 lt_prog_compiler_pic_CXX='-fPIC'
20440 esac
20441 else
20442 case $host_os in
20443 aix[4-9]*)
20444 # All AIX code is PIC.
20445 if test "$host_cpu" = ia64; then
20446 # AIX 5 now supports IA64 processor
20447 lt_prog_compiler_static_CXX='-Bstatic'
20448 else
20449 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20452 chorus*)
20453 case $cc_basename in
20454 cxch68*)
20455 # Green Hills C++ Compiler
20456 # _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"
20458 esac
20460 dgux*)
20461 case $cc_basename in
20462 ec++*)
20463 lt_prog_compiler_pic_CXX='-KPIC'
20465 ghcx*)
20466 # Green Hills C++ Compiler
20467 lt_prog_compiler_pic_CXX='-pic'
20471 esac
20473 freebsd* | dragonfly*)
20474 # FreeBSD uses GNU C++
20476 hpux9* | hpux10* | hpux11*)
20477 case $cc_basename in
20478 CC*)
20479 lt_prog_compiler_wl_CXX='-Wl,'
20480 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20481 if test "$host_cpu" != ia64; then
20482 lt_prog_compiler_pic_CXX='+Z'
20485 aCC*)
20486 lt_prog_compiler_wl_CXX='-Wl,'
20487 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20488 case $host_cpu in
20489 hppa*64*|ia64*)
20490 # +Z the default
20493 lt_prog_compiler_pic_CXX='+Z'
20495 esac
20499 esac
20501 interix*)
20502 # This is c89, which is MS Visual C++ (no shared libs)
20503 # Anyone wants to do a port?
20505 irix5* | irix6* | nonstopux*)
20506 case $cc_basename in
20507 CC*)
20508 lt_prog_compiler_wl_CXX='-Wl,'
20509 lt_prog_compiler_static_CXX='-non_shared'
20510 # CC pic flag -KPIC is the default.
20514 esac
20516 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20517 case $cc_basename in
20518 KCC*)
20519 # KAI C++ Compiler
20520 lt_prog_compiler_wl_CXX='--backend -Wl,'
20521 lt_prog_compiler_pic_CXX='-fPIC'
20523 ecpc* )
20524 # old Intel C++ for x86_64 which still supported -KPIC.
20525 lt_prog_compiler_wl_CXX='-Wl,'
20526 lt_prog_compiler_pic_CXX='-KPIC'
20527 lt_prog_compiler_static_CXX='-static'
20529 icpc* )
20530 # Intel C++, used to be incompatible with GCC.
20531 # ICC 10 doesn't accept -KPIC any more.
20532 lt_prog_compiler_wl_CXX='-Wl,'
20533 lt_prog_compiler_pic_CXX='-fPIC'
20534 lt_prog_compiler_static_CXX='-static'
20536 pgCC* | pgcpp*)
20537 # Portland Group C++ compiler
20538 lt_prog_compiler_wl_CXX='-Wl,'
20539 lt_prog_compiler_pic_CXX='-fpic'
20540 lt_prog_compiler_static_CXX='-Bstatic'
20542 cxx*)
20543 # Compaq C++
20544 # Make sure the PIC flag is empty. It appears that all Alpha
20545 # Linux and Compaq Tru64 Unix objects are PIC.
20546 lt_prog_compiler_pic_CXX=
20547 lt_prog_compiler_static_CXX='-non_shared'
20549 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20550 # IBM XL 8.0, 9.0 on PPC and BlueGene
20551 lt_prog_compiler_wl_CXX='-Wl,'
20552 lt_prog_compiler_pic_CXX='-qpic'
20553 lt_prog_compiler_static_CXX='-qstaticlink'
20556 case `$CC -V 2>&1 | sed 5q` in
20557 *Sun\ C*)
20558 # Sun C++ 5.9
20559 lt_prog_compiler_pic_CXX='-KPIC'
20560 lt_prog_compiler_static_CXX='-Bstatic'
20561 lt_prog_compiler_wl_CXX='-Qoption ld '
20563 esac
20565 esac
20567 lynxos*)
20569 m88k*)
20571 mvs*)
20572 case $cc_basename in
20573 cxx*)
20574 lt_prog_compiler_pic_CXX='-W c,exportall'
20578 esac
20580 netbsd*)
20582 *qnx* | *nto*)
20583 # QNX uses GNU C++, but need to define -shared option too, otherwise
20584 # it will coredump.
20585 lt_prog_compiler_pic_CXX='-fPIC -shared'
20587 osf3* | osf4* | osf5*)
20588 case $cc_basename in
20589 KCC*)
20590 lt_prog_compiler_wl_CXX='--backend -Wl,'
20592 RCC*)
20593 # Rational C++ 2.4.1
20594 lt_prog_compiler_pic_CXX='-pic'
20596 cxx*)
20597 # Digital/Compaq C++
20598 lt_prog_compiler_wl_CXX='-Wl,'
20599 # Make sure the PIC flag is empty. It appears that all Alpha
20600 # Linux and Compaq Tru64 Unix objects are PIC.
20601 lt_prog_compiler_pic_CXX=
20602 lt_prog_compiler_static_CXX='-non_shared'
20606 esac
20608 psos*)
20610 solaris*)
20611 case $cc_basename in
20612 CC*)
20613 # Sun C++ 4.2, 5.x and Centerline C++
20614 lt_prog_compiler_pic_CXX='-KPIC'
20615 lt_prog_compiler_static_CXX='-Bstatic'
20616 lt_prog_compiler_wl_CXX='-Qoption ld '
20618 gcx*)
20619 # Green Hills C++ Compiler
20620 lt_prog_compiler_pic_CXX='-PIC'
20624 esac
20626 sunos4*)
20627 case $cc_basename in
20628 CC*)
20629 # Sun C++ 4.x
20630 lt_prog_compiler_pic_CXX='-pic'
20631 lt_prog_compiler_static_CXX='-Bstatic'
20633 lcc*)
20634 # Lucid
20635 lt_prog_compiler_pic_CXX='-pic'
20639 esac
20641 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20642 case $cc_basename in
20643 CC*)
20644 lt_prog_compiler_wl_CXX='-Wl,'
20645 lt_prog_compiler_pic_CXX='-KPIC'
20646 lt_prog_compiler_static_CXX='-Bstatic'
20648 esac
20650 tandem*)
20651 case $cc_basename in
20652 NCC*)
20653 # NonStop-UX NCC 3.20
20654 lt_prog_compiler_pic_CXX='-KPIC'
20658 esac
20660 vxworks*)
20663 lt_prog_compiler_can_build_shared_CXX=no
20665 esac
20668 case $host_os in
20669 # For platforms which do not support PIC, -DPIC is meaningless:
20670 *djgpp*)
20671 lt_prog_compiler_pic_CXX=
20674 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20676 esac
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20678 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20683 # Check to make sure the PIC flag actually works.
20685 if test -n "$lt_prog_compiler_pic_CXX"; then
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20687 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20688 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20689 $as_echo_n "(cached) " >&6
20690 else
20691 lt_cv_prog_compiler_pic_works_CXX=no
20692 ac_outfile=conftest.$ac_objext
20693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20694 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20695 # Insert the option either (1) after the last *FLAGS variable, or
20696 # (2) before a word containing "conftest.", or (3) at the end.
20697 # Note that $ac_compile itself does not contain backslashes and begins
20698 # with a dollar sign (not a hyphen), so the echo should work correctly.
20699 # The option is referenced via a variable to avoid confusing sed.
20700 lt_compile=`echo "$ac_compile" | $SED \
20701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20703 -e 's:$: $lt_compiler_flag:'`
20704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20705 (eval "$lt_compile" 2>conftest.err)
20706 ac_status=$?
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 if (exit $ac_status) && test -s "$ac_outfile"; then
20710 # The compiler can only warn and ignore the option if not recognized
20711 # So say no if there are warnings other than the usual output.
20712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20715 lt_cv_prog_compiler_pic_works_CXX=yes
20718 $RM conftest*
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20722 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20724 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20725 case $lt_prog_compiler_pic_CXX in
20726 "" | " "*) ;;
20727 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20728 esac
20729 else
20730 lt_prog_compiler_pic_CXX=
20731 lt_prog_compiler_can_build_shared_CXX=no
20739 # Check to make sure the static flag actually works.
20741 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20743 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20744 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20745 $as_echo_n "(cached) " >&6
20746 else
20747 lt_cv_prog_compiler_static_works_CXX=no
20748 save_LDFLAGS="$LDFLAGS"
20749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20752 # The linker can only warn and ignore the option if not recognized
20753 # So say no if there are warnings
20754 if test -s conftest.err; then
20755 # Append any errors to the config.log.
20756 cat conftest.err 1>&5
20757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20759 if diff conftest.exp conftest.er2 >/dev/null; then
20760 lt_cv_prog_compiler_static_works_CXX=yes
20762 else
20763 lt_cv_prog_compiler_static_works_CXX=yes
20766 $RM -r conftest*
20767 LDFLAGS="$save_LDFLAGS"
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20771 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20773 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20775 else
20776 lt_prog_compiler_static_CXX=
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20784 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20785 $as_echo_n "(cached) " >&6
20786 else
20787 lt_cv_prog_compiler_c_o_CXX=no
20788 $RM -r conftest 2>/dev/null
20789 mkdir conftest
20790 cd conftest
20791 mkdir out
20792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20794 lt_compiler_flag="-o out/conftest2.$ac_objext"
20795 # Insert the option either (1) after the last *FLAGS variable, or
20796 # (2) before a word containing "conftest.", or (3) at the end.
20797 # Note that $ac_compile itself does not contain backslashes and begins
20798 # with a dollar sign (not a hyphen), so the echo should work correctly.
20799 lt_compile=`echo "$ac_compile" | $SED \
20800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20802 -e 's:$: $lt_compiler_flag:'`
20803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20804 (eval "$lt_compile" 2>out/conftest.err)
20805 ac_status=$?
20806 cat out/conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20809 then
20810 # The compiler can only warn and ignore the option if not recognized
20811 # So say no if there are warnings
20812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20815 lt_cv_prog_compiler_c_o_CXX=yes
20818 chmod u+w . 2>&5
20819 $RM conftest*
20820 # SGI C++ compiler will create directory out/ii_files/ for
20821 # template instantiation
20822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20823 $RM out/* && rmdir out
20824 cd ..
20825 $RM -r conftest
20826 $RM conftest*
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20830 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20835 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20836 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20837 $as_echo_n "(cached) " >&6
20838 else
20839 lt_cv_prog_compiler_c_o_CXX=no
20840 $RM -r conftest 2>/dev/null
20841 mkdir conftest
20842 cd conftest
20843 mkdir out
20844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20846 lt_compiler_flag="-o out/conftest2.$ac_objext"
20847 # Insert the option either (1) after the last *FLAGS variable, or
20848 # (2) before a word containing "conftest.", or (3) at the end.
20849 # Note that $ac_compile itself does not contain backslashes and begins
20850 # with a dollar sign (not a hyphen), so the echo should work correctly.
20851 lt_compile=`echo "$ac_compile" | $SED \
20852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20854 -e 's:$: $lt_compiler_flag:'`
20855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20856 (eval "$lt_compile" 2>out/conftest.err)
20857 ac_status=$?
20858 cat out/conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20861 then
20862 # The compiler can only warn and ignore the option if not recognized
20863 # So say no if there are warnings
20864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20867 lt_cv_prog_compiler_c_o_CXX=yes
20870 chmod u+w . 2>&5
20871 $RM conftest*
20872 # SGI C++ compiler will create directory out/ii_files/ for
20873 # template instantiation
20874 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20875 $RM out/* && rmdir out
20876 cd ..
20877 $RM -r conftest
20878 $RM conftest*
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20882 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20887 hard_links="nottested"
20888 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20889 # do not overwrite the value of need_locks provided by the user
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20891 $as_echo_n "checking if we can lock with hard links... " >&6; }
20892 hard_links=yes
20893 $RM conftest*
20894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20895 touch conftest.a
20896 ln conftest.a conftest.b 2>&5 || hard_links=no
20897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20899 $as_echo "$hard_links" >&6; }
20900 if test "$hard_links" = no; then
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20902 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20903 need_locks=warn
20905 else
20906 need_locks=no
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20912 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20914 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20915 case $host_os in
20916 aix[4-9]*)
20917 # If we're using GNU nm, then we don't want the "-C" option.
20918 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20919 # Also, AIX nm treats weak defined symbols like other global defined
20920 # symbols, whereas GNU nm marks them as "W".
20921 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20922 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'
20923 else
20924 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'
20927 pw32*)
20928 export_symbols_cmds_CXX="$ltdll_cmds"
20930 cygwin* | mingw* | cegcc*)
20931 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'
20934 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20936 esac
20937 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20940 $as_echo "$ld_shlibs_CXX" >&6; }
20941 test "$ld_shlibs_CXX" = no && can_build_shared=no
20943 with_gnu_ld_CXX=$with_gnu_ld
20951 # Do we need to explicitly link libc?
20953 case "x$archive_cmds_need_lc_CXX" in
20954 x|xyes)
20955 # Assume -lc should be added
20956 archive_cmds_need_lc_CXX=yes
20958 if test "$enable_shared" = yes && test "$GCC" = yes; then
20959 case $archive_cmds_CXX in
20960 *'~'*)
20961 # FIXME: we may have to deal with multi-command sequences.
20963 '$CC '*)
20964 # Test whether the compiler implicitly links with -lc since on some
20965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20966 # to ld, don't add -lc before -lgcc.
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20968 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20969 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20970 $as_echo_n "(cached) " >&6
20971 else
20972 $RM conftest*
20973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20976 (eval $ac_compile) 2>&5
20977 ac_status=$?
20978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20979 test $ac_status = 0; } 2>conftest.err; then
20980 soname=conftest
20981 lib=conftest
20982 libobjs=conftest.$ac_objext
20983 deplibs=
20984 wl=$lt_prog_compiler_wl_CXX
20985 pic_flag=$lt_prog_compiler_pic_CXX
20986 compiler_flags=-v
20987 linker_flags=-v
20988 verstring=
20989 output_objdir=.
20990 libname=conftest
20991 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20992 allow_undefined_flag_CXX=
20993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20994 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20995 ac_status=$?
20996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20997 test $ac_status = 0; }
20998 then
20999 lt_cv_archive_cmds_need_lc_CXX=no
21000 else
21001 lt_cv_archive_cmds_need_lc_CXX=yes
21003 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21004 else
21005 cat conftest.err 1>&5
21007 $RM conftest*
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21011 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21012 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21014 esac
21017 esac
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21083 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21085 library_names_spec=
21086 libname_spec='lib$name'
21087 soname_spec=
21088 shrext_cmds=".so"
21089 postinstall_cmds=
21090 postuninstall_cmds=
21091 finish_cmds=
21092 finish_eval=
21093 shlibpath_var=
21094 shlibpath_overrides_runpath=unknown
21095 version_type=none
21096 dynamic_linker="$host_os ld.so"
21097 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21098 need_lib_prefix=unknown
21099 hardcode_into_libs=no
21101 # when you set need_version to no, make sure it does not cause -set_version
21102 # flags to be left without arguments
21103 need_version=unknown
21105 case $host_os in
21106 aix3*)
21107 version_type=linux
21108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21109 shlibpath_var=LIBPATH
21111 # AIX 3 has no versioning support, so we append a major version to the name.
21112 soname_spec='${libname}${release}${shared_ext}$major'
21115 aix[4-9]*)
21116 version_type=linux
21117 need_lib_prefix=no
21118 need_version=no
21119 hardcode_into_libs=yes
21120 if test "$host_cpu" = ia64; then
21121 # AIX 5 supports IA64
21122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21123 shlibpath_var=LD_LIBRARY_PATH
21124 else
21125 # With GCC up to 2.95.x, collect2 would create an import file
21126 # for dependence libraries. The import file would start with
21127 # the line `#! .'. This would cause the generated library to
21128 # depend on `.', always an invalid library. This was fixed in
21129 # development snapshots of GCC prior to 3.0.
21130 case $host_os in
21131 aix4 | aix4.[01] | aix4.[01].*)
21132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21133 echo ' yes '
21134 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21136 else
21137 can_build_shared=no
21140 esac
21141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21142 # soname into executable. Probably we can add versioning support to
21143 # collect2, so additional links can be useful in future.
21144 if test "$aix_use_runtimelinking" = yes; then
21145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21146 # instead of lib<name>.a to let people know that these are not
21147 # typical AIX shared libraries.
21148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21149 else
21150 # We preserve .a as extension for shared libraries through AIX4.2
21151 # and later when we are not doing run time linking.
21152 library_names_spec='${libname}${release}.a $libname.a'
21153 soname_spec='${libname}${release}${shared_ext}$major'
21155 shlibpath_var=LIBPATH
21159 amigaos*)
21160 case $host_cpu in
21161 powerpc)
21162 # Since July 2007 AmigaOS4 officially supports .so libraries.
21163 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21166 m68k)
21167 library_names_spec='$libname.ixlibrary $libname.a'
21168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21169 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'
21171 esac
21174 beos*)
21175 library_names_spec='${libname}${shared_ext}'
21176 dynamic_linker="$host_os ld.so"
21177 shlibpath_var=LIBRARY_PATH
21180 bsdi[45]*)
21181 version_type=linux
21182 need_version=no
21183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21184 soname_spec='${libname}${release}${shared_ext}$major'
21185 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21186 shlibpath_var=LD_LIBRARY_PATH
21187 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21188 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21189 # the default ld.so.conf also contains /usr/contrib/lib and
21190 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21191 # libtool to hard-code these into programs
21194 cygwin* | mingw* | pw32* | cegcc*)
21195 version_type=windows
21196 shrext_cmds=".dll"
21197 need_version=no
21198 need_lib_prefix=no
21200 case $GCC,$host_os in
21201 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21202 library_names_spec='$libname.dll.a'
21203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21204 postinstall_cmds='base_file=`basename \${file}`~
21205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21206 dldir=$destdir/`dirname \$dlpath`~
21207 test -d \$dldir || mkdir -p \$dldir~
21208 $install_prog $dir/$dlname \$dldir/$dlname~
21209 chmod a+x \$dldir/$dlname~
21210 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21211 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21214 dlpath=$dir/\$dldll~
21215 $RM \$dlpath'
21216 shlibpath_overrides_runpath=yes
21218 case $host_os in
21219 cygwin*)
21220 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21224 mingw* | cegcc*)
21225 # MinGW DLLs use traditional 'lib' prefix
21226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21228 pw32*)
21229 # pw32 DLLs use 'pw' prefix rather than 'lib'
21230 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21232 esac
21236 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21238 esac
21239 dynamic_linker='Win32 ld.exe'
21240 # FIXME: first we should search . and the directory the executable is in
21241 shlibpath_var=PATH
21244 darwin* | rhapsody*)
21245 dynamic_linker="$host_os dyld"
21246 version_type=darwin
21247 need_lib_prefix=no
21248 need_version=no
21249 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21250 soname_spec='${libname}${release}${major}$shared_ext'
21251 shlibpath_overrides_runpath=yes
21252 shlibpath_var=DYLD_LIBRARY_PATH
21253 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21258 dgux*)
21259 version_type=linux
21260 need_lib_prefix=no
21261 need_version=no
21262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21263 soname_spec='${libname}${release}${shared_ext}$major'
21264 shlibpath_var=LD_LIBRARY_PATH
21267 freebsd* | dragonfly*)
21268 # DragonFly does not have aout. When/if they implement a new
21269 # versioning mechanism, adjust this.
21270 if test -x /usr/bin/objformat; then
21271 objformat=`/usr/bin/objformat`
21272 else
21273 case $host_os in
21274 freebsd[23].*) objformat=aout ;;
21275 *) objformat=elf ;;
21276 esac
21278 version_type=freebsd-$objformat
21279 case $version_type in
21280 freebsd-elf*)
21281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21282 need_version=no
21283 need_lib_prefix=no
21285 freebsd-*)
21286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21287 need_version=yes
21289 esac
21290 shlibpath_var=LD_LIBRARY_PATH
21291 case $host_os in
21292 freebsd2.*)
21293 shlibpath_overrides_runpath=yes
21295 freebsd3.[01]* | freebsdelf3.[01]*)
21296 shlibpath_overrides_runpath=yes
21297 hardcode_into_libs=yes
21299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21301 shlibpath_overrides_runpath=no
21302 hardcode_into_libs=yes
21304 *) # from 4.6 on, and DragonFly
21305 shlibpath_overrides_runpath=yes
21306 hardcode_into_libs=yes
21308 esac
21311 gnu*)
21312 version_type=linux
21313 need_lib_prefix=no
21314 need_version=no
21315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21316 soname_spec='${libname}${release}${shared_ext}$major'
21317 shlibpath_var=LD_LIBRARY_PATH
21318 hardcode_into_libs=yes
21321 haiku*)
21322 version_type=linux
21323 need_lib_prefix=no
21324 need_version=no
21325 dynamic_linker="$host_os runtime_loader"
21326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21327 soname_spec='${libname}${release}${shared_ext}$major'
21328 shlibpath_var=LIBRARY_PATH
21329 shlibpath_overrides_runpath=yes
21330 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21331 hardcode_into_libs=yes
21334 hpux9* | hpux10* | hpux11*)
21335 # Give a soname corresponding to the major version so that dld.sl refuses to
21336 # link against other versions.
21337 version_type=sunos
21338 need_lib_prefix=no
21339 need_version=no
21340 case $host_cpu in
21341 ia64*)
21342 shrext_cmds='.so'
21343 hardcode_into_libs=yes
21344 dynamic_linker="$host_os dld.so"
21345 shlibpath_var=LD_LIBRARY_PATH
21346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21348 soname_spec='${libname}${release}${shared_ext}$major'
21349 if test "X$HPUX_IA64_MODE" = X32; then
21350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21351 else
21352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21356 hppa*64*)
21357 shrext_cmds='.sl'
21358 hardcode_into_libs=yes
21359 dynamic_linker="$host_os dld.sl"
21360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21363 soname_spec='${libname}${release}${shared_ext}$major'
21364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21368 shrext_cmds='.sl'
21369 dynamic_linker="$host_os dld.sl"
21370 shlibpath_var=SHLIB_PATH
21371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21373 soname_spec='${libname}${release}${shared_ext}$major'
21375 esac
21376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21377 postinstall_cmds='chmod 555 $lib'
21378 # or fails outright, so override atomically:
21379 install_override_mode=555
21382 interix[3-9]*)
21383 version_type=linux
21384 need_lib_prefix=no
21385 need_version=no
21386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21387 soname_spec='${libname}${release}${shared_ext}$major'
21388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21389 shlibpath_var=LD_LIBRARY_PATH
21390 shlibpath_overrides_runpath=no
21391 hardcode_into_libs=yes
21394 irix5* | irix6* | nonstopux*)
21395 case $host_os in
21396 nonstopux*) version_type=nonstopux ;;
21398 if test "$lt_cv_prog_gnu_ld" = yes; then
21399 version_type=linux
21400 else
21401 version_type=irix
21402 fi ;;
21403 esac
21404 need_lib_prefix=no
21405 need_version=no
21406 soname_spec='${libname}${release}${shared_ext}$major'
21407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21408 case $host_os in
21409 irix5* | nonstopux*)
21410 libsuff= shlibsuff=
21413 case $LD in # libtool.m4 will add one of these switches to LD
21414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21415 libsuff= shlibsuff= libmagic=32-bit;;
21416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21417 libsuff=32 shlibsuff=N32 libmagic=N32;;
21418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21420 *) libsuff= shlibsuff= libmagic=never-match;;
21421 esac
21423 esac
21424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21425 shlibpath_overrides_runpath=no
21426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21428 hardcode_into_libs=yes
21431 # No shared lib support for Linux oldld, aout, or coff.
21432 linux*oldld* | linux*aout* | linux*coff*)
21433 dynamic_linker=no
21436 # This must be Linux ELF.
21437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21438 version_type=linux
21439 need_lib_prefix=no
21440 need_version=no
21441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21442 soname_spec='${libname}${release}${shared_ext}$major'
21443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21444 shlibpath_var=LD_LIBRARY_PATH
21445 shlibpath_overrides_runpath=no
21447 # Some binutils ld are patched to set DT_RUNPATH
21448 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21449 $as_echo_n "(cached) " >&6
21450 else
21451 lt_cv_shlibpath_overrides_runpath=no
21452 save_LDFLAGS=$LDFLAGS
21453 save_libdir=$libdir
21454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21457 /* end confdefs.h. */
21460 main ()
21464 return 0;
21466 _ACEOF
21467 if ac_fn_cxx_try_link "$LINENO"; then :
21468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21469 lt_cv_shlibpath_overrides_runpath=yes
21472 rm -f core conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21474 LDFLAGS=$save_LDFLAGS
21475 libdir=$save_libdir
21479 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21481 # This implies no fast_install, which is unacceptable.
21482 # Some rework will be needed to allow for fast_install
21483 # before this can be enabled.
21484 hardcode_into_libs=yes
21486 # Append ld.so.conf contents to the search path
21487 if test -f /etc/ld.so.conf; then
21488 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' ' '`
21489 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21492 # We used to test for /lib/ld.so.1 and disable shared libraries on
21493 # powerpc, because MkLinux only supported shared libraries with the
21494 # GNU dynamic linker. Since this was broken with cross compilers,
21495 # most powerpc-linux boxes support dynamic linking these days and
21496 # people can always --disable-shared, the test was removed, and we
21497 # assume the GNU/Linux dynamic linker is in use.
21498 dynamic_linker='GNU/Linux ld.so'
21501 netbsd*)
21502 version_type=sunos
21503 need_lib_prefix=no
21504 need_version=no
21505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21508 dynamic_linker='NetBSD (a.out) ld.so'
21509 else
21510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21511 soname_spec='${libname}${release}${shared_ext}$major'
21512 dynamic_linker='NetBSD ld.elf_so'
21514 shlibpath_var=LD_LIBRARY_PATH
21515 shlibpath_overrides_runpath=yes
21516 hardcode_into_libs=yes
21519 newsos6)
21520 version_type=linux
21521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21522 shlibpath_var=LD_LIBRARY_PATH
21523 shlibpath_overrides_runpath=yes
21526 *nto* | *qnx*)
21527 version_type=qnx
21528 need_lib_prefix=no
21529 need_version=no
21530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21531 soname_spec='${libname}${release}${shared_ext}$major'
21532 shlibpath_var=LD_LIBRARY_PATH
21533 shlibpath_overrides_runpath=no
21534 hardcode_into_libs=yes
21535 dynamic_linker='ldqnx.so'
21538 openbsd*)
21539 version_type=sunos
21540 sys_lib_dlsearch_path_spec="/usr/lib"
21541 need_lib_prefix=no
21542 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21543 case $host_os in
21544 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21545 *) need_version=no ;;
21546 esac
21547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21549 shlibpath_var=LD_LIBRARY_PATH
21550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21551 case $host_os in
21552 openbsd2.[89] | openbsd2.[89].*)
21553 shlibpath_overrides_runpath=no
21556 shlibpath_overrides_runpath=yes
21558 esac
21559 else
21560 shlibpath_overrides_runpath=yes
21564 os2*)
21565 libname_spec='$name'
21566 shrext_cmds=".dll"
21567 need_lib_prefix=no
21568 library_names_spec='$libname${shared_ext} $libname.a'
21569 dynamic_linker='OS/2 ld.exe'
21570 shlibpath_var=LIBPATH
21573 osf3* | osf4* | osf5*)
21574 version_type=osf
21575 need_lib_prefix=no
21576 need_version=no
21577 soname_spec='${libname}${release}${shared_ext}$major'
21578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21579 shlibpath_var=LD_LIBRARY_PATH
21580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21584 rdos*)
21585 dynamic_linker=no
21588 solaris*)
21589 version_type=linux
21590 need_lib_prefix=no
21591 need_version=no
21592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21593 soname_spec='${libname}${release}${shared_ext}$major'
21594 shlibpath_var=LD_LIBRARY_PATH
21595 shlibpath_overrides_runpath=yes
21596 hardcode_into_libs=yes
21597 # ldd complains unless libraries are executable
21598 postinstall_cmds='chmod +x $lib'
21601 sunos4*)
21602 version_type=sunos
21603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21605 shlibpath_var=LD_LIBRARY_PATH
21606 shlibpath_overrides_runpath=yes
21607 if test "$with_gnu_ld" = yes; then
21608 need_lib_prefix=no
21610 need_version=yes
21613 sysv4 | sysv4.3*)
21614 version_type=linux
21615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21616 soname_spec='${libname}${release}${shared_ext}$major'
21617 shlibpath_var=LD_LIBRARY_PATH
21618 case $host_vendor in
21619 sni)
21620 shlibpath_overrides_runpath=no
21621 need_lib_prefix=no
21622 runpath_var=LD_RUN_PATH
21624 siemens)
21625 need_lib_prefix=no
21627 motorola)
21628 need_lib_prefix=no
21629 need_version=no
21630 shlibpath_overrides_runpath=no
21631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21633 esac
21636 sysv4*MP*)
21637 if test -d /usr/nec ;then
21638 version_type=linux
21639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21640 soname_spec='$libname${shared_ext}.$major'
21641 shlibpath_var=LD_LIBRARY_PATH
21645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21646 version_type=freebsd-elf
21647 need_lib_prefix=no
21648 need_version=no
21649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21650 soname_spec='${libname}${release}${shared_ext}$major'
21651 shlibpath_var=LD_LIBRARY_PATH
21652 shlibpath_overrides_runpath=yes
21653 hardcode_into_libs=yes
21654 if test "$with_gnu_ld" = yes; then
21655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21656 else
21657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21658 case $host_os in
21659 sco3.2v5*)
21660 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21662 esac
21664 sys_lib_dlsearch_path_spec='/usr/lib'
21667 tpf*)
21668 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21669 version_type=linux
21670 need_lib_prefix=no
21671 need_version=no
21672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21673 shlibpath_var=LD_LIBRARY_PATH
21674 shlibpath_overrides_runpath=no
21675 hardcode_into_libs=yes
21678 uts4*)
21679 version_type=linux
21680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21681 soname_spec='${libname}${release}${shared_ext}$major'
21682 shlibpath_var=LD_LIBRARY_PATH
21686 dynamic_linker=no
21688 esac
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21690 $as_echo "$dynamic_linker" >&6; }
21691 test "$dynamic_linker" = no && can_build_shared=no
21693 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21694 if test "$GCC" = yes; then
21695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21698 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21699 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21701 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21702 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21743 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21744 hardcode_action_CXX=
21745 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21746 test -n "$runpath_var_CXX" ||
21747 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21749 # We can hardcode non-existent directories.
21750 if test "$hardcode_direct_CXX" != no &&
21751 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21752 # have to relink, otherwise we might link with an installed library
21753 # when we should be linking with a yet-to-be-installed one
21754 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21755 test "$hardcode_minus_L_CXX" != no; then
21756 # Linking always hardcodes the temporary library directory.
21757 hardcode_action_CXX=relink
21758 else
21759 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21760 hardcode_action_CXX=immediate
21762 else
21763 # We cannot hardcode anything, or else we can only hardcode existing
21764 # directories.
21765 hardcode_action_CXX=unsupported
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21768 $as_echo "$hardcode_action_CXX" >&6; }
21770 if test "$hardcode_action_CXX" = relink ||
21771 test "$inherit_rpath_CXX" = yes; then
21772 # Fast installation is not supported
21773 enable_fast_install=no
21774 elif test "$shlibpath_overrides_runpath" = yes ||
21775 test "$enable_shared" = no; then
21776 # Fast installation is not necessary
21777 enable_fast_install=needless
21786 fi # test -n "$compiler"
21788 CC=$lt_save_CC
21789 LDCXX=$LD
21790 LD=$lt_save_LD
21791 GCC=$lt_save_GCC
21792 with_gnu_ld=$lt_save_with_gnu_ld
21793 lt_cv_path_LDCXX=$lt_cv_path_LD
21794 lt_cv_path_LD=$lt_save_path_LD
21795 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21796 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21797 fi # test "$_lt_caught_CXX_error" != yes
21799 ac_ext=cpp
21800 ac_cpp='$CXXCPP $CPPFLAGS'
21801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21820 # Only expand once:
21826 # Identify the assembler which will work hand-in-glove with the newly
21827 # built GCC, so that we can examine its features. This is the assembler
21828 # which will be driven by the driver program.
21830 # If build != host, and we aren't building gas in-tree, we identify a
21831 # build->target assembler and hope that it will have the same features
21832 # as the host->target assembler we'll be using.
21833 gcc_cv_gas_major_version=
21834 gcc_cv_gas_minor_version=
21835 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21837 if test "${gcc_cv_as+set}" = set; then :
21839 else
21841 if test -x "$DEFAULT_ASSEMBLER"; then
21842 gcc_cv_as="$DEFAULT_ASSEMBLER"
21843 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21844 && test -f ../gas/Makefile \
21845 && test x$build = x$host; then
21846 gcc_cv_as=../gas/as-new$build_exeext
21847 elif test -x as$build_exeext; then
21848 # Build using assembler in the current directory.
21849 gcc_cv_as=./as$build_exeext
21850 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21851 gcc_cv_as="$AS_FOR_TARGET"
21852 else
21853 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21854 set dummy $AS_FOR_TARGET; ac_word=$2
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21856 $as_echo_n "checking for $ac_word... " >&6; }
21857 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21858 $as_echo_n "(cached) " >&6
21859 else
21860 case $gcc_cv_as in
21861 [\\/]* | ?:[\\/]*)
21862 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21866 for as_dir in $PATH
21868 IFS=$as_save_IFS
21869 test -z "$as_dir" && as_dir=.
21870 for ac_exec_ext in '' $ac_executable_extensions; do
21871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21872 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21874 break 2
21876 done
21877 done
21878 IFS=$as_save_IFS
21881 esac
21883 gcc_cv_as=$ac_cv_path_gcc_cv_as
21884 if test -n "$gcc_cv_as"; then
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21886 $as_echo "$gcc_cv_as" >&6; }
21887 else
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21889 $as_echo "no" >&6; }
21896 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21898 case "$ORIGINAL_AS_FOR_TARGET" in
21899 ./as | ./as$build_exeext) ;;
21900 *) ac_config_files="$ac_config_files as:exec-tool.in"
21902 esac
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21905 $as_echo_n "checking what assembler to use... " >&6; }
21906 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21907 # Single tree build which includes gas. We want to prefer it
21908 # over whatever linker top-level may have detected, since
21909 # we'll use what we're building after installation anyway.
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21911 $as_echo "newly built gas" >&6; }
21912 in_tree_gas=yes
21913 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21914 for f in $gcc_cv_as_bfd_srcdir/configure \
21915 $gcc_cv_as_gas_srcdir/configure \
21916 $gcc_cv_as_gas_srcdir/configure.ac \
21917 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21918 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21919 if test x$gcc_cv_gas_version != x; then
21920 break
21922 done
21923 case $gcc_cv_gas_version in
21924 VERSION=[0-9]*) ;;
21925 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21926 esac
21927 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21928 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21929 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21930 case $gcc_cv_gas_patch_version in
21931 "") gcc_cv_gas_patch_version="0" ;;
21932 esac
21933 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21934 + $gcc_cv_gas_minor_version \) \* 1000 \
21935 + $gcc_cv_gas_patch_version`
21937 in_tree_gas_is_elf=no
21938 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21939 || (grep 'obj_format = multi' ../gas/Makefile \
21940 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21941 then
21942 in_tree_gas_is_elf=yes
21944 else
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21946 $as_echo "$gcc_cv_as" >&6; }
21947 in_tree_gas=no
21950 default_ld=
21951 # Check whether --enable-ld was given.
21952 if test "${enable_ld+set}" = set; then :
21953 enableval=$enable_ld; case "${enableval}" in
21955 default_ld=ld.gold
21957 esac
21961 install_gold_as_default=no
21962 # Check whether --enable-gold was given.
21963 if test "${enable_gold+set}" = set; then :
21964 enableval=$enable_gold; case "${enableval}" in
21965 default)
21966 install_gold_as_default=yes
21968 yes)
21969 if test x${default_ld} != x; then
21970 install_gold_as_default=yes
21976 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21978 esac
21982 # Identify the linker which will work hand-in-glove with the newly
21983 # built GCC, so that we can examine its features. This is the linker
21984 # which will be driven by the driver program.
21986 # If build != host, and we aren't building gas in-tree, we identify a
21987 # build->target linker and hope that it will have the same features
21988 # as the host->target linker we'll be using.
21989 gcc_cv_gld_major_version=
21990 gcc_cv_gld_minor_version=
21991 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21992 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21993 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21995 if test "${gcc_cv_ld+set}" = set; then :
21997 else
21999 if test -x "$DEFAULT_LINKER"; then
22000 gcc_cv_ld="$DEFAULT_LINKER"
22001 elif test $install_gold_as_default = yes \
22002 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22003 && test -f ../gold/Makefile \
22004 && test x$build = x$host; then
22005 gcc_cv_ld=../gold/ld-new$build_exeext
22006 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22007 && test -f ../ld/Makefile \
22008 && test x$build = x$host; then
22009 gcc_cv_ld=../ld/ld-new$build_exeext
22010 elif test -x collect-ld$build_exeext; then
22011 # Build using linker in the current directory.
22012 gcc_cv_ld=./collect-ld$build_exeext
22013 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22014 gcc_cv_ld="$LD_FOR_TARGET"
22015 else
22016 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22017 set dummy $LD_FOR_TARGET; ac_word=$2
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22019 $as_echo_n "checking for $ac_word... " >&6; }
22020 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22021 $as_echo_n "(cached) " >&6
22022 else
22023 case $gcc_cv_ld in
22024 [\\/]* | ?:[\\/]*)
22025 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22029 for as_dir in $PATH
22031 IFS=$as_save_IFS
22032 test -z "$as_dir" && as_dir=.
22033 for ac_exec_ext in '' $ac_executable_extensions; do
22034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22035 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22037 break 2
22039 done
22040 done
22041 IFS=$as_save_IFS
22044 esac
22046 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22047 if test -n "$gcc_cv_ld"; then
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22049 $as_echo "$gcc_cv_ld" >&6; }
22050 else
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052 $as_echo "no" >&6; }
22059 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22060 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22061 # if the PLUGIN_LD is set ld-new, just have it as ld
22062 # as that is the installed named.
22063 if test x$PLUGIN_LD_SUFFIX = xld-new \
22064 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22065 PLUGIN_LD_SUFFIX=ld
22068 # Check whether --with-plugin-ld was given.
22069 if test "${with_plugin_ld+set}" = set; then :
22070 withval=$with_plugin_ld; if test x"$withval" != x; then
22071 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22072 PLUGIN_LD_SUFFIX="$withval"
22078 cat >>confdefs.h <<_ACEOF
22079 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22080 _ACEOF
22083 # Check to see if we are using gold instead of ld
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22085 $as_echo_n "checking whether we are using gold... " >&6; }
22086 ld_is_gold=no
22087 if test x$gcc_cv_ld != x; then
22088 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22089 | grep "GNU gold" > /dev/null; then
22090 ld_is_gold=yes
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22094 $as_echo "$ld_is_gold" >&6; }
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22097 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22098 # Check to see if default ld is not gold, but gold is
22099 # available and has support for split stack. If gcc was configured
22100 # with gold then no checking is done.
22102 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22104 # For platforms other than powerpc64*, enable as appropriate.
22106 gold_non_default=no
22107 ld_gold=`which ${gcc_cv_ld}.gold`
22108 # Make sure this gold has minimal split stack support
22109 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22110 ld_vers=`$ld_gold --version | sed 1q`
22111 gold_vers=`echo $ld_vers | sed -n \
22112 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22113 case $target in
22114 # check that the gold version contains the complete split stack support
22115 # on powerpc64 big and little endian
22116 powerpc64*-*-*)
22117 case "$gold_vers" in
22118 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22120 *) gold_non_default=no
22122 esac
22124 esac
22126 if test $gold_non_default = yes; then
22128 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22133 $as_echo "$gold_non_default" >&6; }
22135 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22137 case "$ORIGINAL_LD_FOR_TARGET" in
22138 ./collect-ld | ./collect-ld$build_exeext) ;;
22139 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22141 esac
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22144 $as_echo_n "checking what linker to use... " >&6; }
22145 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22146 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22147 # Single tree build which includes ld. We want to prefer it
22148 # over whatever linker top-level may have detected, since
22149 # we'll use what we're building after installation anyway.
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22151 $as_echo "newly built ld" >&6; }
22152 in_tree_ld=yes
22153 in_tree_ld_is_elf=no
22154 if (grep 'EMUL = .*elf' ../ld/Makefile \
22155 || grep 'EMUL = .*linux' ../ld/Makefile \
22156 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22157 in_tree_ld_is_elf=yes
22158 elif test "$ld_is_gold" = yes; then
22159 in_tree_ld_is_elf=yes
22161 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
22163 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22164 if test x$gcc_cv_gld_version != x; then
22165 break
22167 done
22168 case $gcc_cv_gld_version in
22169 VERSION=[0-9]*) ;;
22170 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22171 esac
22172 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22173 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22174 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22175 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22176 else
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22178 $as_echo "$gcc_cv_ld" >&6; }
22179 in_tree_ld=no
22180 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22181 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22182 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22188 # Figure out what nm we will be using.
22189 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22190 if test "${gcc_cv_nm+set}" = set; then :
22192 else
22194 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22195 && test -f ../binutils/Makefile \
22196 && test x$build = x$host; then
22197 gcc_cv_nm=../binutils/nm-new$build_exeext
22198 elif test -x nm$build_exeext; then
22199 gcc_cv_nm=./nm$build_exeext
22200 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22201 gcc_cv_nm="$NM_FOR_TARGET"
22202 else
22203 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22204 set dummy $NM_FOR_TARGET; ac_word=$2
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22206 $as_echo_n "checking for $ac_word... " >&6; }
22207 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22208 $as_echo_n "(cached) " >&6
22209 else
22210 case $gcc_cv_nm in
22211 [\\/]* | ?:[\\/]*)
22212 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22216 for as_dir in $PATH
22218 IFS=$as_save_IFS
22219 test -z "$as_dir" && as_dir=.
22220 for ac_exec_ext in '' $ac_executable_extensions; do
22221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22222 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22224 break 2
22226 done
22227 done
22228 IFS=$as_save_IFS
22231 esac
22233 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22234 if test -n "$gcc_cv_nm"; then
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22236 $as_echo "$gcc_cv_nm" >&6; }
22237 else
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22239 $as_echo "no" >&6; }
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22247 $as_echo_n "checking what nm to use... " >&6; }
22248 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22249 # Single tree build which includes binutils.
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22251 $as_echo "newly built nm" >&6; }
22252 in_tree_nm=yes
22253 else
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22255 $as_echo "$gcc_cv_nm" >&6; }
22256 in_tree_nm=no
22259 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22261 case "$ORIGINAL_NM_FOR_TARGET" in
22262 ./nm | ./nm$build_exeext) ;;
22263 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22265 esac
22268 # Figure out what objdump we will be using.
22269 if test "${gcc_cv_objdump+set}" = set; then :
22271 else
22273 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22274 && test -f ../binutils/Makefile \
22275 && test x$build = x$host; then
22276 # Single tree build which includes binutils.
22277 gcc_cv_objdump=../binutils/objdump$build_exeext
22278 elif test -x objdump$build_exeext; then
22279 gcc_cv_objdump=./objdump$build_exeext
22280 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22281 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22282 else
22283 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22284 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22286 $as_echo_n "checking for $ac_word... " >&6; }
22287 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22288 $as_echo_n "(cached) " >&6
22289 else
22290 case $gcc_cv_objdump in
22291 [\\/]* | ?:[\\/]*)
22292 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22296 for as_dir in $PATH
22298 IFS=$as_save_IFS
22299 test -z "$as_dir" && as_dir=.
22300 for ac_exec_ext in '' $ac_executable_extensions; do
22301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22302 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22304 break 2
22306 done
22307 done
22308 IFS=$as_save_IFS
22311 esac
22313 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22314 if test -n "$gcc_cv_objdump"; then
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22316 $as_echo "$gcc_cv_objdump" >&6; }
22317 else
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22319 $as_echo "no" >&6; }
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22327 $as_echo_n "checking what objdump to use... " >&6; }
22328 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22329 # Single tree build which includes binutils.
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22331 $as_echo "newly built objdump" >&6; }
22332 elif test x$gcc_cv_objdump = x; then
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22334 $as_echo "not found" >&6; }
22335 else
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22337 $as_echo "$gcc_cv_objdump" >&6; }
22340 # Figure out what readelf we will be using.
22341 if test "${gcc_cv_readelf+set}" = set; then :
22343 else
22345 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22346 && test -f ../binutils/Makefile \
22347 && test x$build = x$host; then
22348 # Single tree build which includes binutils.
22349 gcc_cv_readelf=../binutils/readelf$build_exeext
22350 elif test -x readelf$build_exeext; then
22351 gcc_cv_readelf=./readelf$build_exeext
22352 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22353 gcc_cv_readelf="$READELF_FOR_TARGET"
22354 else
22355 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22356 set dummy $READELF_FOR_TARGET; ac_word=$2
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22358 $as_echo_n "checking for $ac_word... " >&6; }
22359 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22360 $as_echo_n "(cached) " >&6
22361 else
22362 case $gcc_cv_readelf in
22363 [\\/]* | ?:[\\/]*)
22364 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22368 for as_dir in $PATH
22370 IFS=$as_save_IFS
22371 test -z "$as_dir" && as_dir=.
22372 for ac_exec_ext in '' $ac_executable_extensions; do
22373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22374 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22376 break 2
22378 done
22379 done
22380 IFS=$as_save_IFS
22383 esac
22385 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22386 if test -n "$gcc_cv_readelf"; then
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22388 $as_echo "$gcc_cv_readelf" >&6; }
22389 else
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22391 $as_echo "no" >&6; }
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22399 $as_echo_n "checking what readelf to use... " >&6; }
22400 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22401 # Single tree build which includes binutils.
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22403 $as_echo "newly built readelf" >&6; }
22404 elif test x$gcc_cv_readelf = x; then
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22406 $as_echo "not found" >&6; }
22407 else
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22409 $as_echo "$gcc_cv_readelf" >&6; }
22412 # Figure out what assembler alignment features are present.
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22414 $as_echo_n "checking assembler flags... " >&6; }
22415 if test "${gcc_cv_as_flags+set}" = set; then :
22416 $as_echo_n "(cached) " >&6
22417 else
22418 case "$target" in
22419 i[34567]86-*-linux*)
22420 gcc_cv_as_flags=--32
22422 x86_64-*-linux-gnux32)
22423 gcc_cv_as_flags=--x32
22425 x86_64-*-linux*)
22426 gcc_cv_as_flags=--64
22428 powerpc*-*-darwin*)
22429 gcc_cv_as_flags="-arch ppc"
22432 gcc_cv_as_flags=" "
22434 esac
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22437 $as_echo "$gcc_cv_as_flags" >&6; }
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22440 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22441 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22442 $as_echo_n "(cached) " >&6
22443 else
22444 gcc_cv_as_balign_and_p2align=no
22445 if test $in_tree_gas = yes; then
22446 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22447 then gcc_cv_as_balign_and_p2align=yes
22449 elif test x$gcc_cv_as != x; then
22450 $as_echo '.balign 4
22451 .p2align 2' > conftest.s
22452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22454 (eval $ac_try) 2>&5
22455 ac_status=$?
22456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22457 test $ac_status = 0; }; }
22458 then
22459 gcc_cv_as_balign_and_p2align=yes
22460 else
22461 echo "configure: failed program was" >&5
22462 cat conftest.s >&5
22464 rm -f conftest.o conftest.s
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22468 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22469 if test $gcc_cv_as_balign_and_p2align = yes; then
22471 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22477 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22478 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22479 $as_echo_n "(cached) " >&6
22480 else
22481 gcc_cv_as_max_skip_p2align=no
22482 if test $in_tree_gas = yes; then
22483 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22484 then gcc_cv_as_max_skip_p2align=yes
22486 elif test x$gcc_cv_as != x; then
22487 $as_echo '.p2align 4,,7' > conftest.s
22488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22493 test $ac_status = 0; }; }
22494 then
22495 gcc_cv_as_max_skip_p2align=yes
22496 else
22497 echo "configure: failed program was" >&5
22498 cat conftest.s >&5
22500 rm -f conftest.o conftest.s
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22504 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22505 if test $gcc_cv_as_max_skip_p2align = yes; then
22507 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22513 $as_echo_n "checking assembler for .literal16... " >&6; }
22514 if test "${gcc_cv_as_literal16+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 gcc_cv_as_literal16=no
22518 if test $in_tree_gas = yes; then
22519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22520 then gcc_cv_as_literal16=yes
22522 elif test x$gcc_cv_as != x; then
22523 $as_echo '.literal16' > conftest.s
22524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22526 (eval $ac_try) 2>&5
22527 ac_status=$?
22528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22529 test $ac_status = 0; }; }
22530 then
22531 gcc_cv_as_literal16=yes
22532 else
22533 echo "configure: failed program was" >&5
22534 cat conftest.s >&5
22536 rm -f conftest.o conftest.s
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22540 $as_echo "$gcc_cv_as_literal16" >&6; }
22541 if test $gcc_cv_as_literal16 = yes; then
22543 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22549 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22550 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 gcc_cv_as_subsection_m1=no
22554 if test $in_tree_gas = yes; then
22555 if test $in_tree_gas_is_elf = yes \
22556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22557 then gcc_cv_as_subsection_m1=yes
22559 elif test x$gcc_cv_as != x; then
22560 $as_echo 'conftest_label1: .word 0
22561 .subsection -1
22562 conftest_label2: .word 0
22563 .previous' > conftest.s
22564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22569 test $ac_status = 0; }; }
22570 then
22571 if test x$gcc_cv_nm != x; then
22572 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22573 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22574 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22575 then :
22576 else gcc_cv_as_subsection_m1=yes
22578 rm -f conftest.nm1 conftest.nm2
22580 else
22581 echo "configure: failed program was" >&5
22582 cat conftest.s >&5
22584 rm -f conftest.o conftest.s
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22588 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22589 if test $gcc_cv_as_subsection_m1 = yes; then
22591 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22597 $as_echo_n "checking assembler for .weak... " >&6; }
22598 if test "${gcc_cv_as_weak+set}" = set; then :
22599 $as_echo_n "(cached) " >&6
22600 else
22601 gcc_cv_as_weak=no
22602 if test $in_tree_gas = yes; then
22603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22604 then gcc_cv_as_weak=yes
22606 elif test x$gcc_cv_as != x; then
22607 $as_echo ' .weak foobar' > conftest.s
22608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22613 test $ac_status = 0; }; }
22614 then
22615 gcc_cv_as_weak=yes
22616 else
22617 echo "configure: failed program was" >&5
22618 cat conftest.s >&5
22620 rm -f conftest.o conftest.s
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22624 $as_echo "$gcc_cv_as_weak" >&6; }
22625 if test $gcc_cv_as_weak = yes; then
22627 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22633 $as_echo_n "checking assembler for .weakref... " >&6; }
22634 if test "${gcc_cv_as_weakref+set}" = set; then :
22635 $as_echo_n "(cached) " >&6
22636 else
22637 gcc_cv_as_weakref=no
22638 if test $in_tree_gas = yes; then
22639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22640 then gcc_cv_as_weakref=yes
22642 elif test x$gcc_cv_as != x; then
22643 $as_echo ' .weakref foobar, barfnot' > conftest.s
22644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22649 test $ac_status = 0; }; }
22650 then
22651 gcc_cv_as_weakref=yes
22652 else
22653 echo "configure: failed program was" >&5
22654 cat conftest.s >&5
22656 rm -f conftest.o conftest.s
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22660 $as_echo "$gcc_cv_as_weakref" >&6; }
22661 if test $gcc_cv_as_weakref = yes; then
22663 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22669 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22670 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22671 $as_echo_n "(cached) " >&6
22672 else
22673 gcc_cv_as_nsubspa_comdat=no
22674 if test $in_tree_gas = yes; then
22675 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22676 then gcc_cv_as_nsubspa_comdat=yes
22678 elif test x$gcc_cv_as != x; then
22679 $as_echo ' .SPACE $TEXT$
22680 .NSUBSPA $CODE$,COMDAT' > conftest.s
22681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22686 test $ac_status = 0; }; }
22687 then
22688 gcc_cv_as_nsubspa_comdat=yes
22689 else
22690 echo "configure: failed program was" >&5
22691 cat conftest.s >&5
22693 rm -f conftest.o conftest.s
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22697 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22698 if test $gcc_cv_as_nsubspa_comdat = yes; then
22700 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22705 # .hidden needs to be supported in both the assembler and the linker,
22706 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22707 # This is irritatingly difficult to feature test for; we have to check the
22708 # date string after the version number. If we've got an in-tree
22709 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22710 # to be safe.
22711 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22712 case "${target}" in
22713 *-*-aix*)
22714 conftest_s=' .globl foobar,hidden'
22717 conftest_s=' .hidden foobar
22718 foobar:'
22720 esac
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22722 $as_echo_n "checking assembler for .hidden... " >&6; }
22723 if test "${gcc_cv_as_hidden+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 gcc_cv_as_hidden=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22730 then gcc_cv_as_hidden=yes
22732 elif test x$gcc_cv_as != x; then
22733 $as_echo "$conftest_s" > conftest.s
22734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22736 (eval $ac_try) 2>&5
22737 ac_status=$?
22738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22739 test $ac_status = 0; }; }
22740 then
22741 gcc_cv_as_hidden=yes
22742 else
22743 echo "configure: failed program was" >&5
22744 cat conftest.s >&5
22746 rm -f conftest.o conftest.s
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22750 $as_echo "$gcc_cv_as_hidden" >&6; }
22753 case "${target}" in
22754 *-*-darwin*)
22755 # Darwin as has some visibility support, though with a different syntax.
22756 gcc_cv_as_hidden=yes
22758 esac
22760 # gnu_indirect_function type is an extension proposed at
22761 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22762 # selection of function implementation
22763 # Check whether --enable-gnu-indirect-function was given.
22764 if test "${enable_gnu_indirect_function+set}" = set; then :
22765 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22766 yes | no) ;;
22767 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22768 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22769 esac
22770 else
22771 enable_gnu_indirect_function="$default_gnu_indirect_function"
22775 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22777 cat >>confdefs.h <<_ACEOF
22778 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22779 _ACEOF
22783 if test $in_tree_ld != yes ; then
22784 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22785 if echo "$ld_ver" | grep GNU > /dev/null; then
22786 if test x"$ld_is_gold" = xyes; then
22787 # GNU gold --version looks like this:
22789 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22791 # We extract the binutils version which is more familiar and specific
22792 # than the gold version.
22793 ld_vers=`echo $ld_ver | sed -n \
22794 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22795 else
22796 # GNU ld --version looks like this:
22798 # GNU ld (GNU Binutils) 2.21.51.20110225
22799 ld_vers=`echo $ld_ver | sed -n \
22800 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22802 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'`
22803 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22804 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22805 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22806 else
22807 case "${target}" in
22808 *-*-solaris2*)
22809 # Solaris 2 ld -V output looks like this for a regular version:
22811 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22813 # but test versions add stuff at the end:
22815 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22817 # In Solaris 11.4, this was changed to
22819 # ld: Solaris ELF Utilities: 11.4-1.3123
22821 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22822 # numbers can be used in ld.so.1 feature checks even if a different
22823 # linker is configured.
22824 ld_ver=`$gcc_cv_ld -V 2>&1`
22825 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22826 ld_vers=`echo $ld_ver | sed -n \
22827 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22828 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22829 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22832 esac
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22837 $as_echo_n "checking linker for .hidden support... " >&6; }
22838 if test "${gcc_cv_ld_hidden+set}" = set; then :
22839 $as_echo_n "(cached) " >&6
22840 else
22841 if test $in_tree_ld = yes ; then
22842 gcc_cv_ld_hidden=no
22843 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 \
22844 && test $in_tree_ld_is_elf = yes; then
22845 gcc_cv_ld_hidden=yes
22847 else
22848 gcc_cv_ld_hidden=yes
22849 if test x"$ld_is_gold" = xyes; then
22851 elif echo "$ld_ver" | grep GNU > /dev/null; then
22852 case "${target}" in
22853 mmix-knuth-mmixware)
22854 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22855 gcc_cv_ld_hidden=no
22857 esac
22858 if test 0"$ld_date" -lt 20020404; then
22859 if test -n "$ld_date"; then
22860 # If there was date string, but was earlier than 2002-04-04, fail
22861 gcc_cv_ld_hidden=no
22862 elif test -z "$ld_vers"; then
22863 # If there was no date string nor ld version number, something is wrong
22864 gcc_cv_ld_hidden=no
22865 else
22866 test -z "$ld_vers_patch" && ld_vers_patch=0
22867 if test "$ld_vers_major" -lt 2; then
22868 gcc_cv_ld_hidden=no
22869 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22870 gcc_cv_ld_hidden="no"
22871 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22872 gcc_cv_ld_hidden=no
22876 else
22877 case "${target}" in
22878 *-*-aix[789]*)
22879 gcc_cv_ld_hidden=yes
22881 *-*-darwin*)
22882 # Darwin ld has some visibility support.
22883 gcc_cv_ld_hidden=yes
22885 hppa64*-*-hpux* | ia64*-*-hpux*)
22886 gcc_cv_ld_hidden=yes
22888 *-*-solaris2.1[0-9]*)
22889 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22890 # .symbolic was only added in Solaris 9 12/02.
22891 gcc_cv_ld_hidden=yes
22894 gcc_cv_ld_hidden=no
22896 esac
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22901 $as_echo "$gcc_cv_ld_hidden" >&6; }
22902 libgcc_visibility=no
22905 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22906 libgcc_visibility=yes
22908 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22913 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22914 gcc_cv_ld_ro_rw_mix=unknown
22915 if test $in_tree_ld = yes ; then
22916 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 \
22917 && test $in_tree_ld_is_elf = yes; then
22918 gcc_cv_ld_ro_rw_mix=read-write
22920 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22921 echo '.section myfoosect, "a"' > conftest1.s
22922 echo '.section myfoosect, "aw"' > conftest2.s
22923 echo '.byte 1' >> conftest2.s
22924 echo '.section myfoosect, "a"' > conftest3.s
22925 echo '.byte 0' >> conftest3.s
22926 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22927 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22928 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22929 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22930 conftest2.o conftest3.o > /dev/null 2>&1; then
22931 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22932 | sed -e '/myfoosect/!d' -e N`
22933 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22934 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22935 gcc_cv_ld_ro_rw_mix=read-only
22936 else
22937 gcc_cv_ld_ro_rw_mix=read-write
22941 rm -f conftest.* conftest[123].*
22943 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22945 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22949 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22951 # Check whether --enable-initfini-array was given.
22952 if test "${enable_initfini_array+set}" = set; then :
22953 enableval=$enable_initfini_array;
22954 else
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22957 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22958 if test "${gcc_cv_initfini_array+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22960 else
22961 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22962 case "${target}" in
22963 ia64-*)
22964 if test "$cross_compiling" = yes; then :
22965 gcc_cv_initfini_array=no
22966 else
22967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22968 /* end confdefs.h. */
22970 #ifndef __ELF__
22971 #error Not an ELF OS
22972 #endif
22973 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22974 if it can be used. */
22975 static int x = -1;
22976 int main (void) { return x; }
22977 int foo (void) { x = 0; }
22978 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22980 _ACEOF
22981 if ac_fn_cxx_try_run "$LINENO"; then :
22982 gcc_cv_initfini_array=yes
22983 else
22984 gcc_cv_initfini_array=no
22986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22987 conftest.$ac_objext conftest.beam conftest.$ac_ext
22991 gcc_cv_initfini_array=no
22992 if test $in_tree_ld = yes ; then
22993 if test "$gcc_cv_gld_major_version" -eq 2 \
22994 -a "$gcc_cv_gld_minor_version" -ge 22 \
22995 -o "$gcc_cv_gld_major_version" -gt 2 \
22996 && test $in_tree_ld_is_elf = yes; then
22997 gcc_cv_initfini_array=yes
22999 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23000 case $target:$gas in
23001 *:yes)
23002 sh_flags='"a"'
23003 sh_type='%progbits'
23005 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23006 sh_flags='"a"'
23007 sh_type='@progbits'
23009 sparc*-*-solaris2*:no)
23010 sh_flags='#alloc'
23011 sh_type='#progbits'
23012 sh_quote='"'
23014 esac
23015 case "$target:$gnu_ld" in
23016 *:yes)
23017 cat > conftest.s <<EOF
23018 .section .dtors,$sh_flags,$sh_type
23019 .balign 4
23020 .byte 'A', 'A', 'A', 'A'
23021 .section .ctors,$sh_flags,$sh_type
23022 .balign 4
23023 .byte 'B', 'B', 'B', 'B'
23024 .section .fini_array.65530,$sh_flags,$sh_type
23025 .balign 4
23026 .byte 'C', 'C', 'C', 'C'
23027 .section .init_array.65530,$sh_flags,$sh_type
23028 .balign 4
23029 .byte 'D', 'D', 'D', 'D'
23030 .section .dtors.64528,$sh_flags,$sh_type
23031 .balign 4
23032 .byte 'E', 'E', 'E', 'E'
23033 .section .ctors.64528,$sh_flags,$sh_type
23034 .balign 4
23035 .byte 'F', 'F', 'F', 'F'
23036 .section .fini_array.01005,$sh_flags,$sh_type
23037 .balign 4
23038 .byte 'G', 'G', 'G', 'G'
23039 .section .init_array.01005,$sh_flags,$sh_type
23040 .balign 4
23041 .byte 'H', 'H', 'H', 'H'
23042 .text
23043 .globl _start
23044 _start:
23046 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23047 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23048 && $gcc_cv_objdump -s -j .init_array conftest \
23049 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23050 && $gcc_cv_objdump -s -j .fini_array conftest \
23051 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23052 gcc_cv_initfini_array=yes
23055 *-*-solaris2*:no)
23056 # When Solaris ld added constructor priority support, it was
23057 # decided to only handle .init_array.N/.fini_array.N since
23058 # there was no need for backwards compatibility with
23059 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23060 # sections with correct execution order resp. to
23061 # .init_array/.fini_array, while gld merges them into
23062 # .init_array/.fini_array.
23063 cat > conftest.s <<EOF
23064 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23065 .align 4
23066 .byte 'C', 'C', 'C', 'C'
23067 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23068 .align 4
23069 .byte 'D', 'D', 'D', 'D'
23070 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23071 .align 4
23072 .byte 'G', 'G', 'G', 'G'
23073 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23074 .align 4
23075 .byte 'H', 'H', 'H', 'H'
23076 .text
23077 .globl _start
23078 _start:
23080 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23081 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23082 && $gcc_cv_objdump -s -j .init_array conftest \
23083 | grep HHHHDDDD > /dev/null 2>&1 \
23084 && $gcc_cv_objdump -s -j .fini_array conftest \
23085 | grep GGGGCCCC > /dev/null 2>&1; then
23086 gcc_cv_initfini_array=yes
23089 esac
23090 rm -f conftest conftest.*
23092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23093 /* end confdefs.h. */
23095 #ifndef __ELF__
23096 # error Not an ELF OS
23097 #endif
23098 #include <stdlib.h>
23099 #if defined __GLIBC_PREREQ
23100 # if __GLIBC_PREREQ (2, 4)
23101 # else
23102 # error GLIBC 2.4 required
23103 # endif
23104 #else
23105 # if defined __sun__ && defined __svr4__
23106 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23107 # else
23108 # error The C library not known to support .init_array/.fini_array
23109 # endif
23110 #endif
23112 _ACEOF
23113 if ac_fn_cxx_try_cpp "$LINENO"; then :
23115 else
23116 gcc_cv_initfini_array=no
23118 rm -f conftest.err conftest.$ac_ext;;
23119 esac
23120 else
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23122 $as_echo_n "checking cross compile... guessing... " >&6; }
23123 gcc_cv_initfini_array=no
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23127 $as_echo "$gcc_cv_initfini_array" >&6; }
23128 enable_initfini_array=$gcc_cv_initfini_array
23133 cat >>confdefs.h <<_ACEOF
23134 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23135 _ACEOF
23139 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23141 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23142 if test "${gcc_cv_as_leb128+set}" = set; then :
23143 $as_echo_n "(cached) " >&6
23144 else
23145 gcc_cv_as_leb128=no
23146 if test $in_tree_gas = yes; then
23147 if test $in_tree_gas_is_elf = yes \
23148 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23149 then gcc_cv_as_leb128=yes
23151 elif test x$gcc_cv_as != x; then
23152 $as_echo ' .data
23153 .uleb128 L2 - L1
23155 .uleb128 1280
23156 .sleb128 -1010
23157 L2:' > conftest.s
23158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23160 (eval $ac_try) 2>&5
23161 ac_status=$?
23162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23163 test $ac_status = 0; }; }
23164 then
23165 # GAS versions before 2.11 do not support uleb128,
23166 # despite appearing to.
23167 # ??? There exists an elf-specific test that will crash
23168 # the assembler. Perhaps it's better to figure out whether
23169 # arbitrary sections are supported and try the test.
23170 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23171 if echo "$as_ver" | grep GNU > /dev/null; then
23172 as_vers=`echo $as_ver | sed -n \
23173 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23174 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23175 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23176 if test $as_major -eq 2 && test $as_minor -lt 11
23177 then :
23178 else gcc_cv_as_leb128=yes
23181 else
23182 echo "configure: failed program was" >&5
23183 cat conftest.s >&5
23185 rm -f conftest.o conftest.s
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23189 $as_echo "$gcc_cv_as_leb128" >&6; }
23190 if test $gcc_cv_as_leb128 = yes; then
23192 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23195 if test $gcc_cv_as_leb128 != yes; then
23197 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23201 # Determine if an .eh_frame section is read-only.
23202 gcc_fn_eh_frame_ro () {
23203 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23204 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23205 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23208 # Check if we have assembler support for unwind directives.
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23210 $as_echo_n "checking assembler for cfi directives... " >&6; }
23211 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23212 $as_echo_n "(cached) " >&6
23213 else
23214 gcc_cv_as_cfi_directive=no
23215 if test x$gcc_cv_as != x; then
23216 $as_echo ' .text
23217 .cfi_startproc
23218 .cfi_offset 0, 0
23219 .cfi_same_value 1
23220 .cfi_def_cfa 1, 2
23221 .cfi_escape 1, 2, 3, 4, 5
23222 .cfi_endproc' > conftest.s
23223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228 test $ac_status = 0; }; }
23229 then
23230 case "$target" in
23231 *-*-solaris*)
23232 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23233 # read-only and read-write sections, we need to make sure that the
23234 # assembler used emits read-write .eh_frame sections.
23235 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23236 gcc_cv_as_cfi_directive=yes
23237 elif test "x$gcc_cv_objdump" = x; then
23238 # No objdump, err on the side of caution.
23239 gcc_cv_as_cfi_directive=no
23240 else
23241 if test x$gas = xyes; then
23242 as_32_opt="--32"
23243 as_64_opt="--64"
23244 else
23245 as_32_opt="-m32"
23246 as_64_opt="-m64"
23248 case "$target" in
23249 sparc*-*-solaris2.*)
23250 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23251 if gcc_fn_eh_frame_ro $as_32_opt \
23252 || gcc_fn_eh_frame_ro $as_64_opt; then
23253 gcc_cv_as_cfi_directive=no
23254 else
23255 gcc_cv_as_cfi_directive=yes
23258 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23259 # On Solaris/x86, make sure that GCC and assembler agree on using
23260 # read-only .eh_frame sections for 64-bit.
23261 if gcc_fn_eh_frame_ro $as_32_opt; then
23262 gcc_cv_as_cfi_directive=no
23263 elif gcc_fn_eh_frame_ro $as_64_opt; then
23264 gcc_cv_as_cfi_directive=yes
23265 else
23266 gcc_cv_as_cfi_directive=no
23269 esac
23272 *-*-*)
23273 gcc_cv_as_cfi_directive=yes
23275 esac
23276 else
23277 echo "configure: failed program was" >&5
23278 cat conftest.s >&5
23280 rm -f conftest.o conftest.s
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23284 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23287 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23289 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23290 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23292 else
23293 gcc_cv_as_cfi_advance_working=no
23294 if test x$gcc_cv_as != x; then
23295 $as_echo ' .text
23296 .cfi_startproc
23297 .cfi_adjust_cfa_offset 64
23298 .skip 75040, 0
23299 .cfi_adjust_cfa_offset 128
23300 .cfi_endproc' > conftest.s
23301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23303 (eval $ac_try) 2>&5
23304 ac_status=$?
23305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23306 test $ac_status = 0; }; }
23307 then
23309 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23310 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23311 gcc_cv_as_cfi_advance_working=yes
23314 else
23315 echo "configure: failed program was" >&5
23316 cat conftest.s >&5
23318 rm -f conftest.o conftest.s
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23322 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23325 else
23326 # no objdump, err on the side of caution
23327 gcc_cv_as_cfi_advance_working=no
23331 cat >>confdefs.h <<_ACEOF
23332 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23333 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23334 _ACEOF
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23339 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23340 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23341 $as_echo_n "(cached) " >&6
23342 else
23343 gcc_cv_as_cfi_personality_directive=no
23344 if test x$gcc_cv_as != x; then
23345 $as_echo ' .text
23346 .cfi_startproc
23347 .cfi_personality 0, symbol
23348 .cfi_endproc' > conftest.s
23349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23351 (eval $ac_try) 2>&5
23352 ac_status=$?
23353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23354 test $ac_status = 0; }; }
23355 then
23356 gcc_cv_as_cfi_personality_directive=yes
23357 else
23358 echo "configure: failed program was" >&5
23359 cat conftest.s >&5
23361 rm -f conftest.o conftest.s
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23365 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23369 cat >>confdefs.h <<_ACEOF
23370 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23371 then echo 1; else echo 0; fi`
23372 _ACEOF
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23376 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23377 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23378 $as_echo_n "(cached) " >&6
23379 else
23380 gcc_cv_as_cfi_sections_directive=no
23381 if test x$gcc_cv_as != x; then
23382 $as_echo ' .text
23383 .cfi_sections .debug_frame, .eh_frame
23384 .cfi_startproc
23385 .cfi_endproc' > conftest.s
23386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23388 (eval $ac_try) 2>&5
23389 ac_status=$?
23390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23391 test $ac_status = 0; }; }
23392 then
23393 case $target_os in
23394 win32 | pe | cygwin* | mingw32*)
23395 # Need to check that we generated the correct relocation for the
23396 # .debug_frame section. This was fixed for binutils 2.21.
23397 gcc_cv_as_cfi_sections_directive=no
23398 if test "x$gcc_cv_objdump" != x; then
23399 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23400 grep secrel > /dev/null; then
23401 gcc_cv_as_cfi_sections_directive=yes
23406 gcc_cv_as_cfi_sections_directive=yes
23408 esac
23409 else
23410 echo "configure: failed program was" >&5
23411 cat conftest.s >&5
23413 rm -f conftest.o conftest.s
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23417 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23422 cat >>confdefs.h <<_ACEOF
23423 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23424 then echo 1; else echo 0; fi`
23425 _ACEOF
23428 # GAS versions up to and including 2.11.0 may mis-optimize
23429 # .eh_frame data.
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23431 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23432 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23433 $as_echo_n "(cached) " >&6
23434 else
23435 gcc_cv_as_eh_frame=no
23436 if test $in_tree_gas = yes; then
23437 if test $in_tree_gas_is_elf = yes \
23438 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23439 then gcc_cv_as_eh_frame=yes
23441 elif test x$gcc_cv_as != x; then
23442 $as_echo ' .text
23443 .LFB1:
23444 .4byte 0
23445 .L1:
23446 .4byte 0
23447 .LFE1:
23448 .section .eh_frame,"aw",@progbits
23449 __FRAME_BEGIN__:
23450 .4byte .LECIE1-.LSCIE1
23451 .LSCIE1:
23452 .4byte 0x0
23453 .byte 0x1
23454 .ascii "z\0"
23455 .byte 0x1
23456 .byte 0x78
23457 .byte 0x1a
23458 .byte 0x0
23459 .byte 0x4
23460 .4byte 1
23461 .p2align 1
23462 .LECIE1:
23463 .LSFDE1:
23464 .4byte .LEFDE1-.LASFDE1
23465 .LASFDE1:
23466 .4byte .LASFDE1-__FRAME_BEGIN__
23467 .4byte .LFB1
23468 .4byte .LFE1-.LFB1
23469 .byte 0x4
23470 .4byte .LFE1-.LFB1
23471 .byte 0x4
23472 .4byte .L1-.LFB1
23473 .LEFDE1:' > conftest.s
23474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23479 test $ac_status = 0; }; }
23480 then
23481 cat > conftest.lit <<EOF
23482 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23483 0010 01000000 12000000 18000000 00000000 ................
23484 0020 08000000 04080000 0044 .........D
23486 cat > conftest.big <<EOF
23487 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23488 0010 00000001 00000012 00000018 00000000 ................
23489 0020 00000008 04000000 0844 .........D
23491 # If the assembler didn't choke, and we can objdump,
23492 # and we got the correct data, then succeed.
23493 # The text in the here-document typically retains its unix-style line
23494 # endings, while the output of objdump will use host line endings.
23495 # Therefore, use diff -b for the comparisons.
23496 if test x$gcc_cv_objdump != x \
23497 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23498 | tail -3 > conftest.got \
23499 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23500 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23501 then
23502 gcc_cv_as_eh_frame=yes
23503 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23505 (eval $ac_try) 2>&5
23506 ac_status=$?
23507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23508 test $ac_status = 0; }; }; then
23509 gcc_cv_as_eh_frame=buggy
23510 else
23511 # Uh oh, what do we do now?
23512 gcc_cv_as_eh_frame=no
23514 else
23515 echo "configure: failed program was" >&5
23516 cat conftest.s >&5
23518 rm -f conftest.o conftest.s
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23522 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23526 if test $gcc_cv_as_eh_frame = buggy; then
23528 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23532 # Test if the assembler supports the section flag 'e' or #exclude for
23533 # specifying an excluded section.
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23535 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23536 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23537 $as_echo_n "(cached) " >&6
23538 else
23539 gcc_cv_as_section_exclude_e=no
23540 if test $in_tree_gas = yes; then
23541 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23542 then gcc_cv_as_section_exclude_e=yes
23544 elif test x$gcc_cv_as != x; then
23545 $as_echo '.section foo1,"e"
23546 .byte 0,0,0,0' > conftest.s
23547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; }
23553 then
23554 gcc_cv_as_section_exclude_e=yes
23555 else
23556 echo "configure: failed program was" >&5
23557 cat conftest.s >&5
23559 rm -f conftest.o conftest.s
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23563 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23566 if test $gcc_cv_as_section_exclude_e = no; then
23567 case "${target}" in
23568 # Solaris as uses #exclude instead.
23569 *-*-solaris2*)
23570 case "${target}" in
23571 sparc*-*-solaris2*)
23572 conftest_s='.section "foo1", #exclude'
23574 i?86-*-solaris2* | x86_64-*-solaris2*)
23575 conftest_s='.section foo1, #exclude'
23577 esac
23579 esac
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23581 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23582 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23583 $as_echo_n "(cached) " >&6
23584 else
23585 gcc_cv_as_section_exclude_hash=no
23586 if test x$gcc_cv_as != x; then
23587 $as_echo "$conftest_s
23588 .byte 0,0,0,0" > conftest.s
23589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23591 (eval $ac_try) 2>&5
23592 ac_status=$?
23593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23594 test $ac_status = 0; }; }
23595 then
23596 gcc_cv_as_section_exclude_hash=yes
23597 else
23598 echo "configure: failed program was" >&5
23599 cat conftest.s >&5
23601 rm -f conftest.o conftest.s
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23605 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23610 cat >>confdefs.h <<_ACEOF
23611 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23612 _ACEOF
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23616 $as_echo_n "checking assembler for section merging support... " >&6; }
23617 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23618 $as_echo_n "(cached) " >&6
23619 else
23620 gcc_cv_as_shf_merge=no
23621 if test $in_tree_gas = yes; then
23622 if test $in_tree_gas_is_elf = yes \
23623 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23624 then gcc_cv_as_shf_merge=yes
23626 elif test x$gcc_cv_as != x; then
23627 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23628 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23633 test $ac_status = 0; }; }
23634 then
23635 gcc_cv_as_shf_merge=yes
23636 else
23637 echo "configure: failed program was" >&5
23638 cat conftest.s >&5
23640 rm -f conftest.o conftest.s
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23644 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23647 if test $gcc_cv_as_shf_merge = no; then
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23649 $as_echo_n "checking assembler for section merging support... " >&6; }
23650 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23651 $as_echo_n "(cached) " >&6
23652 else
23653 gcc_cv_as_shf_merge=no
23654 if test $in_tree_gas = yes; then
23655 if test $in_tree_gas_is_elf = yes \
23656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23657 then gcc_cv_as_shf_merge=yes
23659 elif test x$gcc_cv_as != x; then
23660 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23663 (eval $ac_try) 2>&5
23664 ac_status=$?
23665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23666 test $ac_status = 0; }; }
23667 then
23668 gcc_cv_as_shf_merge=yes
23669 else
23670 echo "configure: failed program was" >&5
23671 cat conftest.s >&5
23673 rm -f conftest.o conftest.s
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23677 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23681 case "$target" in
23682 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23683 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23684 if test x"$gnu_ld" = xno; then
23685 gcc_cv_as_shf_merge=no
23688 esac
23690 cat >>confdefs.h <<_ACEOF
23691 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23692 _ACEOF
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23696 $as_echo_n "checking assembler for stabs directive... " >&6; }
23697 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23698 $as_echo_n "(cached) " >&6
23699 else
23700 gcc_cv_as_stabs_directive=no
23701 if test x$gcc_cv_as != x; then
23702 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23705 (eval $ac_try) 2>&5
23706 ac_status=$?
23707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23708 test $ac_status = 0; }; }
23709 then
23710 gcc_cv_as_stabs_directive=yes
23711 else
23712 echo "configure: failed program was" >&5
23713 cat conftest.s >&5
23715 rm -f conftest.o conftest.s
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23719 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23720 if test $gcc_cv_as_stabs_directive = yes; then
23722 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23728 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23729 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23730 $as_echo_n "(cached) " >&6
23731 else
23732 gcc_cv_as_comdat_group=no
23733 if test $in_tree_gas = yes; then
23734 if test $in_tree_gas_is_elf = yes \
23735 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23736 then gcc_cv_as_comdat_group=yes
23738 elif test x$gcc_cv_as != x; then
23739 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23740 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23745 test $ac_status = 0; }; }
23746 then
23747 gcc_cv_as_comdat_group=yes
23748 else
23749 echo "configure: failed program was" >&5
23750 cat conftest.s >&5
23752 rm -f conftest.o conftest.s
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23756 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23759 if test $gcc_cv_as_comdat_group = yes; then
23760 gcc_cv_as_comdat_group_percent=no
23761 gcc_cv_as_comdat_group_group=no
23762 else
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23764 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23765 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23766 $as_echo_n "(cached) " >&6
23767 else
23768 gcc_cv_as_comdat_group_percent=no
23769 if test $in_tree_gas = yes; then
23770 if test $in_tree_gas_is_elf = yes \
23771 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23772 then gcc_cv_as_comdat_group_percent=yes
23774 elif test x$gcc_cv_as != x; then
23775 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23778 (eval $ac_try) 2>&5
23779 ac_status=$?
23780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23781 test $ac_status = 0; }; }
23782 then
23783 gcc_cv_as_comdat_group_percent=yes
23784 else
23785 echo "configure: failed program was" >&5
23786 cat conftest.s >&5
23788 rm -f conftest.o conftest.s
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23792 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23795 if test $gcc_cv_as_comdat_group_percent = yes; then
23796 gcc_cv_as_comdat_group_group=no
23797 else
23798 case "${target}" in
23799 # Sun as uses a completely different syntax.
23800 *-*-solaris2*)
23801 case "${target}" in
23802 sparc*-*-solaris2*)
23803 conftest_s='
23804 .group foo,".text%foo",#comdat
23805 .section ".text%foo", #alloc,#execinstr,#progbits
23806 .globl foo
23807 foo:
23810 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23811 conftest_s='
23812 .group foo,.text%foo,#comdat
23813 .section .text%foo, "ax", @progbits
23814 .globl foo
23815 foo:
23818 esac
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23820 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23821 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23822 $as_echo_n "(cached) " >&6
23823 else
23824 gcc_cv_as_comdat_group_group=no
23825 if test x$gcc_cv_as != x; then
23826 $as_echo "$conftest_s" > conftest.s
23827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23832 test $ac_status = 0; }; }
23833 then
23834 gcc_cv_as_comdat_group_group=yes
23835 else
23836 echo "configure: failed program was" >&5
23837 cat conftest.s >&5
23839 rm -f conftest.o conftest.s
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23843 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23847 esac
23848 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23849 gcc_cv_as_comdat_group_group=no
23853 if test x"$ld_is_gold" = xyes; then
23854 comdat_group=yes
23855 elif test $in_tree_ld = yes ; then
23856 comdat_group=no
23857 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 \
23858 && test $in_tree_ld_is_elf = yes; then
23859 comdat_group=yes
23861 elif echo "$ld_ver" | grep GNU > /dev/null; then
23862 comdat_group=yes
23863 if test 0"$ld_date" -lt 20050308; then
23864 if test -n "$ld_date"; then
23865 # If there was date string, but was earlier than 2005-03-08, fail
23866 comdat_group=no
23867 elif test "$ld_vers_major" -lt 2; then
23868 comdat_group=no
23869 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23870 comdat_group=no
23873 else
23874 case "${target}" in
23875 *-*-solaris2.1[1-9]*)
23876 comdat_group=no
23877 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23878 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23879 # version 1.688.
23881 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23882 # least ld version 1.2267.
23883 if test "$ld_vers_major" -gt 1; then
23884 comdat_group=yes
23885 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23886 comdat_group=yes
23887 elif test "$ld_vers_minor" -ge 2267; then
23888 comdat_group=yes
23892 # Assume linkers other than GNU ld don't support COMDAT group.
23893 comdat_group=no
23895 esac
23897 # Allow overriding the automatic COMDAT group tests above.
23898 # Check whether --enable-comdat was given.
23899 if test "${enable_comdat+set}" = set; then :
23900 enableval=$enable_comdat; comdat_group="$enable_comdat"
23903 if test $comdat_group = no; then
23904 gcc_cv_as_comdat_group=no
23905 gcc_cv_as_comdat_group_percent=no
23906 gcc_cv_as_comdat_group_group=no
23909 cat >>confdefs.h <<_ACEOF
23910 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23911 || test $gcc_cv_as_comdat_group_percent = yes \
23912 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23913 _ACEOF
23916 # Restrict this test to Solaris/x86: other targets define this statically.
23917 case "${target}" in
23918 i?86-*-solaris2* | x86_64-*-solaris2*)
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
23920 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
23921 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
23922 hidden_linkonce=yes
23923 else
23924 case "${target}" in
23925 # Full support for hidden thunks in linkonce sections only appeared in
23926 # Solaris 11/OpenSolaris.
23927 *-*-solaris2.1[1-9]*)
23928 hidden_linkonce=yes
23931 hidden_linkonce=no
23933 esac
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
23936 $as_echo "$hidden_linkonce" >&6; }
23938 cat >>confdefs.h <<_ACEOF
23939 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
23940 _ACEOF
23943 esac
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23946 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23947 if test "${gcc_cv_as_discriminator+set}" = set; then :
23948 $as_echo_n "(cached) " >&6
23949 else
23950 gcc_cv_as_discriminator=no
23951 if test $in_tree_gas = yes; then
23952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23953 then gcc_cv_as_discriminator=yes
23955 elif test x$gcc_cv_as != x; then
23956 $as_echo ' .text
23957 .file 1 "conf.c"
23958 .loc 1 1 0 discriminator 1' > conftest.s
23959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23961 (eval $ac_try) 2>&5
23962 ac_status=$?
23963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23964 test $ac_status = 0; }; }
23965 then
23966 gcc_cv_as_discriminator=yes
23967 else
23968 echo "configure: failed program was" >&5
23969 cat conftest.s >&5
23971 rm -f conftest.o conftest.s
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23975 $as_echo "$gcc_cv_as_discriminator" >&6; }
23976 if test $gcc_cv_as_discriminator = yes; then
23978 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23983 # Thread-local storage - the check is heavily parameterized.
23984 conftest_s=
23985 tls_first_major=
23986 tls_first_minor=
23987 tls_as_opt=
23988 case "$target" in
23989 alpha*-*-*)
23990 conftest_s='
23991 .section ".tdata","awT",@progbits
23992 foo: .long 25
23993 .text
23994 ldq $27,__tls_get_addr($29) !literal!1
23995 lda $16,foo($29) !tlsgd!1
23996 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23997 ldq $27,__tls_get_addr($29) !literal!2
23998 lda $16,foo($29) !tlsldm!2
23999 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24000 ldq $1,foo($29) !gotdtprel
24001 ldah $2,foo($29) !dtprelhi
24002 lda $3,foo($2) !dtprello
24003 lda $4,foo($29) !dtprel
24004 ldq $1,foo($29) !gottprel
24005 ldah $2,foo($29) !tprelhi
24006 lda $3,foo($2) !tprello
24007 lda $4,foo($29) !tprel'
24008 tls_first_major=2
24009 tls_first_minor=13
24010 tls_as_opt=--fatal-warnings
24012 arc*-*-*)
24013 conftest_s='
24014 add_s r0,r0, @foo@tpoff'
24015 tls_first_major=2
24016 tls_first_minor=23
24018 cris-*-*|crisv32-*-*)
24019 conftest_s='
24020 .section ".tdata","awT",@progbits
24021 x: .long 25
24022 .text
24023 move.d x:IE,$r10
24024 nop'
24025 tls_first_major=2
24026 tls_first_minor=20
24027 tls_as_opt=--fatal-warnings
24029 frv*-*-*)
24030 conftest_s='
24031 .section ".tdata","awT",@progbits
24032 x: .long 25
24033 .text
24034 call #gettlsoff(x)'
24035 tls_first_major=2
24036 tls_first_minor=14
24038 hppa*-*-linux*)
24039 conftest_s='
24040 t1: .reg %r20
24041 t2: .reg %r21
24042 gp: .reg %r19
24043 .section ".tdata","awT",@progbits
24044 foo: .long 25
24045 .text
24046 .align 4
24047 addil LT%foo-$tls_gdidx$,gp
24048 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24049 b __tls_get_addr
24051 addil LT%foo-$tls_ldidx$,gp
24052 b __tls_get_addr
24053 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24054 addil LR%foo-$tls_dtpoff$,%ret0
24055 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24056 mfctl %cr27,%t1
24057 addil LT%foo-$tls_ieoff$,gp
24058 ldw RT%foo-$tls_ieoff$(%r1),%t2
24059 add %t1,%t2,%t3
24060 mfctl %cr27,%t1
24061 addil LR%foo-$tls_leoff$,%t1
24062 ldo RR%foo-$tls_leoff$(%r1),%t2'
24063 tls_first_major=2
24064 tls_first_minor=15
24065 tls_as_opt=--fatal-warnings
24067 arm*-*-*)
24068 conftest_s='
24069 .section ".tdata","awT",%progbits
24070 foo: .long 25
24071 .text
24072 .word foo(gottpoff)
24073 .word foo(tpoff)
24074 .word foo(tlsgd)
24075 .word foo(tlsldm)
24076 .word foo(tlsldo)'
24077 tls_first_major=2
24078 tls_first_minor=17
24080 i[34567]86-*-* | x86_64-*-*)
24081 case "$target" in
24082 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24083 on_solaris=yes
24086 on_solaris=no
24088 esac
24089 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24090 conftest_s='
24091 .section .tdata,"awt",@progbits'
24092 tls_first_major=0
24093 tls_first_minor=0
24094 tls_section_flag=t
24096 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24098 else
24099 conftest_s='
24100 .section ".tdata","awT",@progbits'
24101 tls_first_major=2
24102 tls_first_minor=14
24103 tls_section_flag=T
24104 tls_as_opt="--fatal-warnings"
24106 case "$target" in
24107 i[34567]86-*-*)
24108 conftest_s="$conftest_s
24109 foo: .long 25
24110 .text
24111 movl %gs:0, %eax
24112 leal foo@tlsgd(,%ebx,1), %eax
24113 leal foo@tlsldm(%ebx), %eax
24114 leal foo@dtpoff(%eax), %edx
24115 movl foo@gottpoff(%ebx), %eax
24116 subl foo@gottpoff(%ebx), %eax
24117 addl foo@gotntpoff(%ebx), %eax
24118 movl foo@indntpoff, %eax
24119 movl \$foo@tpoff, %eax
24120 subl \$foo@tpoff, %eax
24121 leal foo@ntpoff(%ecx), %eax"
24123 x86_64-*-*)
24124 if test x$on_solaris = xyes; then
24125 case $gas_flag in
24126 yes) tls_as_opt="$tls_as_opt --64" ;;
24127 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24128 esac
24130 conftest_s="$conftest_s
24131 foo: .long 25
24132 .text
24133 movq %fs:0, %rax
24134 leaq foo@tlsgd(%rip), %rdi
24135 leaq foo@tlsld(%rip), %rdi
24136 leaq foo@dtpoff(%rax), %rdx
24137 movq foo@gottpoff(%rip), %rax
24138 movq \$foo@tpoff, %rax"
24140 esac
24142 ia64-*-*)
24143 conftest_s='
24144 .section ".tdata","awT",@progbits
24145 foo: data8 25
24146 .text
24147 addl r16 = @ltoff(@dtpmod(foo#)), gp
24148 addl r17 = @ltoff(@dtprel(foo#)), gp
24149 addl r18 = @ltoff(@tprel(foo#)), gp
24150 addl r19 = @dtprel(foo#), gp
24151 adds r21 = @dtprel(foo#), r13
24152 movl r23 = @dtprel(foo#)
24153 addl r20 = @tprel(foo#), gp
24154 adds r22 = @tprel(foo#), r13
24155 movl r24 = @tprel(foo#)'
24156 tls_first_major=2
24157 tls_first_minor=13
24158 tls_as_opt=--fatal-warnings
24160 microblaze*-*-*)
24161 conftest_s='
24162 .section .tdata,"awT",@progbits
24164 .word 2
24165 .text
24166 addik r5,r20,x@TLSGD
24167 addik r5,r20,x@TLSLDM'
24168 tls_first_major=2
24169 tls_first_minor=20
24170 tls_as_opt='--fatal-warnings'
24172 mips*-*-*)
24173 conftest_s='
24174 .section .tdata,"awT",@progbits
24176 .word 2
24177 .text
24178 addiu $4, $28, %tlsgd(x)
24179 addiu $4, $28, %tlsldm(x)
24180 lui $4, %dtprel_hi(x)
24181 addiu $4, $4, %dtprel_lo(x)
24182 lw $4, %gottprel(x)($28)
24183 lui $4, %tprel_hi(x)
24184 addiu $4, $4, %tprel_lo(x)'
24185 tls_first_major=2
24186 tls_first_minor=16
24187 tls_as_opt='-32 --fatal-warnings'
24189 m68k-*-*)
24190 conftest_s='
24191 .section .tdata,"awT",@progbits
24193 .word 2
24194 .text
24195 foo:
24196 move.l x@TLSGD(%a5),%a0
24197 move.l x@TLSLDM(%a5),%a0
24198 move.l x@TLSLDO(%a5),%a0
24199 move.l x@TLSIE(%a5),%a0
24200 move.l x@TLSLE(%a5),%a0'
24201 tls_first_major=2
24202 tls_first_minor=19
24203 tls_as_opt='--fatal-warnings'
24205 nios2-*-*)
24206 conftest_s='
24207 .section ".tdata","awT",@progbits'
24208 tls_first_major=2
24209 tls_first_minor=23
24210 tls_as_opt="--fatal-warnings"
24212 aarch64*-*-*)
24213 conftest_s='
24214 .section ".tdata","awT",%progbits
24215 foo: .long 25
24216 .text
24217 adrp x0, :tlsgd:x
24218 add x0, x0, #:tlsgd_lo12:x
24219 bl __tls_get_addr
24220 nop'
24221 tls_first_major=2
24222 tls_first_minor=20
24223 tls_as_opt='--fatal-warnings'
24225 powerpc-ibm-aix*)
24226 conftest_s='
24227 .extern __get_tpointer
24228 .toc
24229 LC..1:
24230 .tc a[TC],a[TL]@le
24231 .csect .text[PR]
24232 .tlstest:
24233 lwz 9,LC..1(2)
24234 bla __get_tpointer
24235 lwzx 3,9,3
24236 .globl a
24237 .csect a[TL],4
24239 .space 4'
24240 tls_first_major=0
24241 tls_first_minor=0
24243 powerpc64*-*-*)
24244 conftest_s='
24245 .section ".tdata","awT",@progbits
24246 .align 3
24247 ld0: .space 8
24248 ld1: .space 8
24249 x1: .space 8
24250 x2: .space 8
24251 x3: .space 8
24252 .text
24253 addi 3,2,ld0@got@tlsgd
24254 bl .__tls_get_addr
24256 addi 3,2,ld1@toc
24257 bl .__tls_get_addr
24259 addi 3,2,x1@got@tlsld
24260 bl .__tls_get_addr
24262 addi 9,3,x1@dtprel
24263 bl .__tls_get_addr
24265 addis 9,3,x2@dtprel@ha
24266 addi 9,9,x2@dtprel@l
24267 bl .__tls_get_addr
24269 ld 9,x3@got@dtprel(2)
24270 add 9,9,3
24271 bl .__tls_get_addr
24272 nop'
24273 tls_first_major=2
24274 tls_first_minor=14
24275 tls_as_opt="-a64 --fatal-warnings"
24277 powerpc*-*-*)
24278 conftest_s='
24279 .section ".tdata","awT",@progbits
24280 .align 2
24281 ld0: .space 4
24282 ld1: .space 4
24283 x1: .space 4
24284 x2: .space 4
24285 x3: .space 4
24286 .text
24287 addi 3,31,ld0@got@tlsgd
24288 bl __tls_get_addr
24289 addi 3,31,x1@got@tlsld
24290 bl __tls_get_addr
24291 addi 9,3,x1@dtprel
24292 addis 9,3,x2@dtprel@ha
24293 addi 9,9,x2@dtprel@l
24294 lwz 9,x3@got@tprel(31)
24295 add 9,9,x@tls
24296 addi 9,2,x1@tprel
24297 addis 9,2,x2@tprel@ha
24298 addi 9,9,x2@tprel@l'
24299 tls_first_major=2
24300 tls_first_minor=14
24301 tls_as_opt="-a32 --fatal-warnings"
24303 riscv*-*-*)
24304 conftest_s='
24305 .section .tdata,"awT",@progbits
24306 x: .word 2
24307 .text
24308 la.tls.gd a0,x
24309 call __tls_get_addr'
24310 tls_first_major=2
24311 tls_first_minor=21
24312 tls_as_opt='--fatal-warnings'
24314 s390-*-*)
24315 conftest_s='
24316 .section ".tdata","awT",@progbits
24317 foo: .long 25
24318 .text
24319 .long foo@TLSGD
24320 .long foo@TLSLDM
24321 .long foo@DTPOFF
24322 .long foo@NTPOFF
24323 .long foo@GOTNTPOFF
24324 .long foo@INDNTPOFF
24325 l %r1,foo@GOTNTPOFF(%r12)
24326 l %r1,0(%r1):tls_load:foo
24327 bas %r14,0(%r1,%r13):tls_gdcall:foo
24328 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24329 tls_first_major=2
24330 tls_first_minor=14
24331 tls_as_opt="-m31 --fatal-warnings"
24333 s390x-*-*)
24334 conftest_s='
24335 .section ".tdata","awT",@progbits
24336 foo: .long 25
24337 .text
24338 .quad foo@TLSGD
24339 .quad foo@TLSLDM
24340 .quad foo@DTPOFF
24341 .quad foo@NTPOFF
24342 .quad foo@GOTNTPOFF
24343 lg %r1,foo@GOTNTPOFF(%r12)
24344 larl %r1,foo@INDNTPOFF
24345 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24346 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24347 tls_first_major=2
24348 tls_first_minor=14
24349 tls_as_opt="-m64 -Aesame --fatal-warnings"
24351 sh-*-* | sh[123456789lbe]*-*-*)
24352 conftest_s='
24353 .section ".tdata","awT",@progbits
24354 foo: .long 25
24355 .text
24356 .long foo@TLSGD
24357 .long foo@TLSLDM
24358 .long foo@DTPOFF
24359 .long foo@GOTTPOFF
24360 .long foo@TPOFF'
24361 tls_first_major=2
24362 tls_first_minor=13
24363 tls_as_opt=--fatal-warnings
24365 sparc*-*-*)
24366 case "$target" in
24367 sparc*-sun-solaris2.*)
24368 on_solaris=yes
24371 on_solaris=no
24373 esac
24374 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24375 conftest_s='
24376 .section ".tdata",#alloc,#write,#tls'
24377 tls_first_major=0
24378 tls_first_minor=0
24379 else
24380 conftest_s='
24381 .section ".tdata","awT",@progbits'
24382 tls_first_major=2
24383 tls_first_minor=14
24384 tls_as_opt="-32 --fatal-warnings"
24386 conftest_s="$conftest_s
24387 foo: .long 25
24388 .text
24389 sethi %tgd_hi22(foo), %o0
24390 add %o0, %tgd_lo10(foo), %o1
24391 add %l7, %o1, %o0, %tgd_add(foo)
24392 call __tls_get_addr, %tgd_call(foo)
24393 sethi %tldm_hi22(foo), %l1
24394 add %l1, %tldm_lo10(foo), %l2
24395 add %l7, %l2, %o0, %tldm_add(foo)
24396 call __tls_get_addr, %tldm_call(foo)
24397 sethi %tldo_hix22(foo), %l3
24398 xor %l3, %tldo_lox10(foo), %l4
24399 add %o0, %l4, %l5, %tldo_add(foo)
24400 sethi %tie_hi22(foo), %o3
24401 add %o3, %tie_lo10(foo), %o3
24402 ld [%l7 + %o3], %o2, %tie_ld(foo)
24403 add %g7, %o2, %o4, %tie_add(foo)
24404 sethi %tle_hix22(foo), %l1
24405 xor %l1, %tle_lox10(foo), %o5
24406 ld [%g7 + %o5], %o1"
24408 tilepro*-*-*)
24409 conftest_s='
24410 .section ".tdata","awT",@progbits
24411 foo: .long 25
24412 .text
24413 addli r0, zero, tls_gd(foo)
24414 auli r0, zero, tls_gd_ha16(foo)
24415 addli r0, r0, tls_gd_lo16(foo)
24416 jal __tls_get_addr
24417 addli r0, zero, tls_ie(foo)
24418 auli r0, r0, tls_ie_ha16(foo)
24419 addli r0, r0, tls_ie_lo16(foo)'
24420 tls_first_major=2
24421 tls_first_minor=22
24422 tls_as_opt="--fatal-warnings"
24424 tilegx*-*-*)
24425 conftest_s='
24426 .section ".tdata","awT",@progbits
24427 foo: .long 25
24428 .text
24429 shl16insli r0, zero, hw0_last_tls_gd(foo)
24430 shl16insli r0, zero, hw1_last_tls_gd(foo)
24431 shl16insli r0, r0, hw0_tls_gd(foo)
24432 jal __tls_get_addr
24433 shl16insli r0, zero, hw1_last_tls_ie(foo)
24434 shl16insli r0, r0, hw0_tls_ie(foo)'
24435 tls_first_major=2
24436 tls_first_minor=22
24437 tls_as_opt="--fatal-warnings"
24439 xtensa*-*-*)
24440 conftest_s='
24441 .section ".tdata","awT",@progbits
24442 foo: .long 25
24443 .text
24444 movi a8, foo@TLSFUNC
24445 movi a10, foo@TLSARG
24446 callx8.tls a8, foo@TLSCALL'
24447 tls_first_major=2
24448 tls_first_minor=19
24450 esac
24451 set_have_as_tls=no
24452 if test "x$enable_tls" = xno ; then
24453 : # TLS explicitly disabled.
24454 elif test "x$enable_tls" = xyes ; then
24455 set_have_as_tls=yes # TLS explicitly enabled.
24456 elif test -z "$tls_first_major"; then
24457 : # If we don't have a check, assume no support.
24458 else
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24460 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24461 if test "${gcc_cv_as_tls+set}" = set; then :
24462 $as_echo_n "(cached) " >&6
24463 else
24464 gcc_cv_as_tls=no
24465 if test $in_tree_gas = yes; then
24466 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24467 then gcc_cv_as_tls=yes
24469 elif test x$gcc_cv_as != x; then
24470 $as_echo "$conftest_s" > conftest.s
24471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476 test $ac_status = 0; }; }
24477 then
24478 gcc_cv_as_tls=yes
24479 else
24480 echo "configure: failed program was" >&5
24481 cat conftest.s >&5
24483 rm -f conftest.o conftest.s
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24487 $as_echo "$gcc_cv_as_tls" >&6; }
24488 if test $gcc_cv_as_tls = yes; then
24489 set_have_as_tls=yes
24493 if test $set_have_as_tls = yes ; then
24495 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24499 # Target-specific assembler checks.
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24502 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24503 gcc_cv_ld_static_dynamic=no
24504 gcc_cv_ld_static_option='-Bstatic'
24505 gcc_cv_ld_dynamic_option='-Bdynamic'
24506 if test $in_tree_ld = yes ; then
24507 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
24508 gcc_cv_ld_static_dynamic=yes
24510 elif test x$gcc_cv_ld != x; then
24511 # Check if linker supports -Bstatic/-Bdynamic option
24512 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24513 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24514 gcc_cv_ld_static_dynamic=yes
24515 else
24516 case "$target" in
24517 # AIX ld uses -b flags
24518 *-*-aix4.[23]* | *-*-aix[5-9]*)
24519 gcc_cv_ld_static_dynamic=yes
24520 gcc_cv_ld_static_option="-bstatic"
24521 gcc_cv_ld_dynamic_option="-bdynamic"
24523 # HP-UX ld uses -a flags to select between shared and archive.
24524 *-*-hpux*)
24525 if test x"$gnu_ld" = xno; then
24526 gcc_cv_ld_static_dynamic=yes
24527 gcc_cv_ld_static_option="-aarchive_shared"
24528 gcc_cv_ld_dynamic_option="-adefault"
24531 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24532 *-*-solaris2*)
24533 gcc_cv_ld_static_dynamic=yes
24535 esac
24538 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24540 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24543 cat >>confdefs.h <<_ACEOF
24544 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24545 _ACEOF
24548 cat >>confdefs.h <<_ACEOF
24549 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24550 _ACEOF
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24554 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24557 $as_echo_n "checking linker --version-script option... " >&6; }
24558 gcc_cv_ld_version_script=no
24559 ld_version_script_option=''
24560 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24561 gcc_cv_ld_version_script=yes
24562 ld_version_script_option='--version-script'
24563 elif test x$gcc_cv_ld != x; then
24564 case "$target" in
24565 # Solaris 2 ld always supports -M. It also supports a subset of
24566 # --version-script since Solaris 11.4, but requires
24567 # -z gnu-version-script-compat to activate.
24568 *-*-solaris2*)
24569 gcc_cv_ld_version_script=yes
24570 ld_version_script_option='-M'
24572 esac
24574 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24576 $as_echo "$gcc_cv_ld_version_script" >&6; }
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24580 $as_echo_n "checking linker soname option... " >&6; }
24581 gcc_cv_ld_soname=no
24582 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24583 gcc_cv_ld_soname=yes
24584 ld_soname_option='-soname'
24585 elif test x$gcc_cv_ld != x; then
24586 case "$target" in
24587 *-*-darwin*)
24588 gcc_cv_ld_soname=yes
24589 ld_soname_option='-install_name'
24591 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24592 # ld compatiblity since some Solaris 10 update.
24593 *-*-solaris2*)
24594 gcc_cv_ld_soname=yes
24595 ld_soname_option='-h'
24597 esac
24599 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24601 $as_echo "$gcc_cv_ld_soname" >&6; }
24604 if test x"$demangler_in_ld" = xyes; then
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24606 $as_echo_n "checking linker --demangle support... " >&6; }
24607 gcc_cv_ld_demangle=no
24608 if test $in_tree_ld = yes; then
24609 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 \
24610 gcc_cv_ld_demangle=yes
24612 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24613 # Check if the GNU linker supports --demangle option
24614 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24615 gcc_cv_ld_demangle=yes
24618 if test x"$gcc_cv_ld_demangle" = xyes; then
24620 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24624 $as_echo "$gcc_cv_ld_demangle" >&6; }
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24628 $as_echo_n "checking linker plugin support... " >&6; }
24629 gcc_cv_lto_plugin=0
24630 if test -f liblto_plugin.la; then
24631 save_ld_ver="$ld_ver"
24632 save_ld_vers_major="$ld_vers_major"
24633 save_ld_vers_minor="$ld_vers_minor"
24634 save_ld_is_gold="$ld_is_gold"
24636 ld_is_gold=no
24638 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24639 ld_ver="GNU ld"
24640 # FIXME: ld_is_gold?
24641 ld_vers_major="$gcc_cv_gld_major_version"
24642 ld_vers_minor="$gcc_cv_gld_minor_version"
24643 else
24644 # Determine plugin linker version.
24645 # FIXME: Partial duplicate from above, generalize.
24646 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24647 if echo "$ld_ver" | grep GNU > /dev/null; then
24648 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24649 ld_is_gold=yes
24650 ld_vers=`echo $ld_ver | sed -n \
24651 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24652 else
24653 ld_vers=`echo $ld_ver | sed -n \
24654 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24656 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24657 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24661 # Determine plugin support.
24662 if echo "$ld_ver" | grep GNU > /dev/null; then
24663 # Require GNU ld or gold 2.21+ for plugin support by default.
24664 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24665 gcc_cv_lto_plugin=2
24666 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24667 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24668 gcc_cv_lto_plugin=1
24672 ld_ver="$save_ld_ver"
24673 ld_vers_major="$save_ld_vers_major"
24674 ld_vers_minor="$save_ld_vers_minor"
24675 ld_is_gold="$save_ld_is_gold"
24678 cat >>confdefs.h <<_ACEOF
24679 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24680 _ACEOF
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24683 $as_echo "$gcc_cv_lto_plugin" >&6; }
24685 # Target OS-specific assembler checks.
24687 case "$target_os" in
24688 darwin*)
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24690 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24691 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24693 else
24694 gcc_cv_as_mmacosx_version_min=no
24695 if test x$gcc_cv_as != x; then
24696 $as_echo '.text' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24704 gcc_cv_as_mmacosx_version_min=yes
24705 else
24706 echo "configure: failed program was" >&5
24707 cat conftest.s >&5
24709 rm -f conftest.o conftest.s
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24713 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24714 if test $gcc_cv_as_mmacosx_version_min = yes; then
24716 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24721 esac
24723 # Target CPU-specific assembler checks.
24725 case "$target" in
24726 aarch64*-*-*)
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24728 $as_echo_n "checking assembler for -mabi option... " >&6; }
24729 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24730 $as_echo_n "(cached) " >&6
24731 else
24732 gcc_cv_as_aarch64_mabi=no
24733 if test x$gcc_cv_as != x; then
24734 $as_echo '.text' > conftest.s
24735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24740 test $ac_status = 0; }; }
24741 then
24742 gcc_cv_as_aarch64_mabi=yes
24743 else
24744 echo "configure: failed program was" >&5
24745 cat conftest.s >&5
24747 rm -f conftest.o conftest.s
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24751 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24754 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24756 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24758 else
24759 if test x$with_abi = xilp32; then
24760 as_fn_error "Assembler does not support -mabi=ilp32.\
24761 Upgrade the Assembler." "$LINENO" 5
24763 if test x"$with_multilib_list" = xdefault; then
24764 TM_MULTILIB_CONFIG=lp64
24765 else
24766 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24767 for aarch64_multilib in ${aarch64_multilibs}; do
24768 case ${aarch64_multilib} in
24769 ilp32)
24770 as_fn_error "Assembler does not support -mabi=ilp32.\
24771 Upgrade the Assembler." "$LINENO" 5
24775 esac
24776 done
24779 # Check if we have binutils support for relocations types needed by -fpic
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24781 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24782 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24783 $as_echo_n "(cached) " >&6
24784 else
24785 gcc_cv_as_aarch64_picreloc=no
24786 if test x$gcc_cv_as != x; then
24787 $as_echo '
24788 .text
24789 ldr x0, [x2, #:gotpage_lo15:globalsym]
24790 ' > conftest.s
24791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24794 ac_status=$?
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24797 then
24798 gcc_cv_as_aarch64_picreloc=yes
24799 else
24800 echo "configure: failed program was" >&5
24801 cat conftest.s >&5
24803 rm -f conftest.o conftest.s
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24807 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24808 if test $gcc_cv_as_aarch64_picreloc = yes; then
24810 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24814 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24815 # Check whether --enable-fix-cortex-a53-835769 was given.
24816 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24817 enableval=$enable_fix_cortex_a53_835769;
24818 case $enableval in
24819 yes)
24820 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24825 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24826 Valid choices are 'yes' and 'no'." "$LINENO" 5
24829 esac
24833 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24834 # Check whether --enable-fix-cortex-a53-843419 was given.
24835 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24836 enableval=$enable_fix_cortex_a53_843419;
24837 case $enableval in
24838 yes)
24839 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24844 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24845 Valid choices are 'yes' and 'no'." "$LINENO" 5
24848 esac
24854 # All TARGET_ABI_OSF targets.
24855 alpha*-*-linux* | alpha*-*-*bsd*)
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24857 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24858 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24859 $as_echo_n "(cached) " >&6
24860 else
24861 gcc_cv_as_alpha_explicit_relocs=no
24862 if test $in_tree_gas = yes; then
24863 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24864 then gcc_cv_as_alpha_explicit_relocs=yes
24866 elif test x$gcc_cv_as != x; then
24867 $as_echo ' .set nomacro
24868 .text
24869 extbl $3, $2, $3 !lituse_bytoff!1
24870 ldq $2, a($29) !literal!1
24871 ldq $4, b($29) !literal!2
24872 ldq_u $3, 0($2) !lituse_base!1
24873 ldq $27, f($29) !literal!5
24874 jsr $26, ($27), f !lituse_jsr!5
24875 ldah $29, 0($26) !gpdisp!3
24876 lda $0, c($29) !gprel
24877 ldah $1, d($29) !gprelhigh
24878 lda $1, d($1) !gprellow
24879 lda $29, 0($29) !gpdisp!3' > conftest.s
24880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24882 (eval $ac_try) 2>&5
24883 ac_status=$?
24884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24885 test $ac_status = 0; }; }
24886 then
24887 gcc_cv_as_alpha_explicit_relocs=yes
24888 else
24889 echo "configure: failed program was" >&5
24890 cat conftest.s >&5
24892 rm -f conftest.o conftest.s
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24896 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24897 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24899 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24904 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24905 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24906 $as_echo_n "(cached) " >&6
24907 else
24908 gcc_cv_as_alpha_jsrdirect_relocs=no
24909 if test $in_tree_gas = yes; then
24910 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24911 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24913 elif test x$gcc_cv_as != x; then
24914 $as_echo ' .set nomacro
24915 .text
24916 ldq $27, a($29) !literal!1
24917 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24920 (eval $ac_try) 2>&5
24921 ac_status=$?
24922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24923 test $ac_status = 0; }; }
24924 then
24925 gcc_cv_as_alpha_jsrdirect_relocs=yes
24926 else
24927 echo "configure: failed program was" >&5
24928 cat conftest.s >&5
24930 rm -f conftest.o conftest.s
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24934 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24935 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24937 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24943 avr-*-*)
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24945 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24946 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24947 $as_echo_n "(cached) " >&6
24948 else
24949 gcc_cv_as_avr_mlink_relax=no
24950 if test x$gcc_cv_as != x; then
24951 $as_echo '.text' > conftest.s
24952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24957 test $ac_status = 0; }; }
24958 then
24959 gcc_cv_as_avr_mlink_relax=yes
24960 else
24961 echo "configure: failed program was" >&5
24962 cat conftest.s >&5
24964 rm -f conftest.o conftest.s
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24968 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24969 if test $gcc_cv_as_avr_mlink_relax = yes; then
24971 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24977 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24978 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24979 $as_echo_n "(cached) " >&6
24980 else
24981 gcc_cv_as_avr_mrmw=no
24982 if test x$gcc_cv_as != x; then
24983 $as_echo '.text' > conftest.s
24984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; }
24990 then
24991 gcc_cv_as_avr_mrmw=yes
24992 else
24993 echo "configure: failed program was" >&5
24994 cat conftest.s >&5
24996 rm -f conftest.o conftest.s
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25000 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25001 if test $gcc_cv_as_avr_mrmw = yes; then
25003 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25009 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25010 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25011 $as_echo_n "(cached) " >&6
25012 else
25013 gcc_cv_as_avr_mgccisr=no
25014 if test x$gcc_cv_as != x; then
25015 $as_echo '.text
25016 __gcc_isr 1
25017 __gcc_isr 2
25018 __gcc_isr 0,r24
25019 ' > conftest.s
25020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25022 (eval $ac_try) 2>&5
25023 ac_status=$?
25024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25025 test $ac_status = 0; }; }
25026 then
25027 gcc_cv_as_avr_mgccisr=yes
25028 else
25029 echo "configure: failed program was" >&5
25030 cat conftest.s >&5
25032 rm -f conftest.o conftest.s
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25036 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25037 if test $gcc_cv_as_avr_mgccisr = yes; then
25039 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25044 # Check how default linker description file implements .rodata for
25045 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25046 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25048 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25049 cat > conftest.s <<EOF
25050 .section .rodata,"a",@progbits
25051 .global xxvaryy
25052 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25053 xxvaryy:
25054 .word 1
25056 rm -f conftest.nm
25057 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25059 (eval $ac_try) 2>&5
25060 ac_status=$?
25061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25062 test $ac_status = 0; }; }
25063 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25068 test $ac_status = 0; }; }
25069 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; }
25075 if test -s conftest.nm
25076 then
25077 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25079 $as_echo "yes" >&6; }
25081 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25083 else
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25085 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25086 echo "$as_me: nm output was" >&5
25087 cat conftest.nm >&5
25088 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25090 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25092 else
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25094 $as_echo "test failed" >&6; }
25095 echo "$as_me: failed program was" >&5
25096 cat conftest.s >&5
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25098 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25100 rm -f conftest.s conftest.o conftest.elf conftest.nm
25103 cris-*-*)
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25105 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25106 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25108 else
25109 gcc_cv_as_cris_no_mul_bug=no
25110 if test $in_tree_gas = yes; then
25111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25112 then gcc_cv_as_cris_no_mul_bug=yes
25114 elif test x$gcc_cv_as != x; then
25115 $as_echo '.text' > conftest.s
25116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25118 (eval $ac_try) 2>&5
25119 ac_status=$?
25120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25121 test $ac_status = 0; }; }
25122 then
25123 gcc_cv_as_cris_no_mul_bug=yes
25124 else
25125 echo "configure: failed program was" >&5
25126 cat conftest.s >&5
25128 rm -f conftest.o conftest.s
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25132 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25133 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25135 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25141 sparc*-*-*)
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25143 $as_echo_n "checking assembler for .register... " >&6; }
25144 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25145 $as_echo_n "(cached) " >&6
25146 else
25147 gcc_cv_as_sparc_register_op=no
25148 if test x$gcc_cv_as != x; then
25149 $as_echo '.register %g2, #scratch' > conftest.s
25150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25152 (eval $ac_try) 2>&5
25153 ac_status=$?
25154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25155 test $ac_status = 0; }; }
25156 then
25157 gcc_cv_as_sparc_register_op=yes
25158 else
25159 echo "configure: failed program was" >&5
25160 cat conftest.s >&5
25162 rm -f conftest.o conftest.s
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25166 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25167 if test $gcc_cv_as_sparc_register_op = yes; then
25169 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25175 $as_echo_n "checking assembler for -relax option... " >&6; }
25176 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25177 $as_echo_n "(cached) " >&6
25178 else
25179 gcc_cv_as_sparc_relax=no
25180 if test x$gcc_cv_as != x; then
25181 $as_echo '.text' > conftest.s
25182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25184 (eval $ac_try) 2>&5
25185 ac_status=$?
25186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25187 test $ac_status = 0; }; }
25188 then
25189 gcc_cv_as_sparc_relax=yes
25190 else
25191 echo "configure: failed program was" >&5
25192 cat conftest.s >&5
25194 rm -f conftest.o conftest.s
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25198 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25199 if test $gcc_cv_as_sparc_relax = yes; then
25201 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25207 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25208 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211 gcc_cv_as_sparc_gotdata_op=no
25212 if test x$gcc_cv_as != x; then
25213 $as_echo '.text
25214 .align 4
25215 foo:
25217 bar:
25218 sethi %gdop_hix22(foo), %g1
25219 xor %g1, %gdop_lox10(foo), %g1
25220 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25227 then
25228 if test x$gcc_cv_ld != x \
25229 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25230 if test x$gcc_cv_objdump != x; then
25231 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25232 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25233 gcc_cv_as_sparc_gotdata_op=no
25234 else
25235 gcc_cv_as_sparc_gotdata_op=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_sparc_gotdata_op" >&5
25248 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25249 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25251 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25257 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25258 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25259 $as_echo_n "(cached) " >&6
25260 else
25261 gcc_cv_as_sparc_ua_pcrel=no
25262 if test x$gcc_cv_as != x; then
25263 $as_echo '.text
25264 foo:
25266 .data
25267 .align 4
25268 .byte 0
25269 .uaword %r_disp32(foo)' > conftest.s
25270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x \
25278 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25279 gcc_cv_as_sparc_ua_pcrel=yes
25281 rm -f conftest
25282 else
25283 echo "configure: failed program was" >&5
25284 cat conftest.s >&5
25286 rm -f conftest.o conftest.s
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25290 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25291 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25293 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25297 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25298 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25299 $as_echo_n "(cached) " >&6
25300 else
25301 gcc_cv_as_sparc_ua_pcrel_hidden=no
25302 if test x$gcc_cv_as != x; then
25303 $as_echo '.data
25304 .align 4
25305 .byte 0x31
25306 .uaword %r_disp32(foo)
25307 .byte 0x32, 0x33, 0x34
25308 .global foo
25309 .hidden foo
25310 foo:
25311 .skip 4' > conftest.s
25312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25314 (eval $ac_try) 2>&5
25315 ac_status=$?
25316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25317 test $ac_status = 0; }; }
25318 then
25319 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25320 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25321 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25322 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25323 if $gcc_cv_objdump -R conftest 2> /dev/null \
25324 | grep 'DISP32' > /dev/null 2>&1; then
25326 else
25327 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25330 rm -f conftest
25331 else
25332 echo "configure: failed program was" >&5
25333 cat conftest.s >&5
25335 rm -f conftest.o conftest.s
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25339 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25340 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25342 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25348 # unaligned pcrel relocs
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25351 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25352 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25353 $as_echo_n "(cached) " >&6
25354 else
25355 gcc_cv_as_sparc_offsetable_lo10=no
25356 if test x$gcc_cv_as != x; then
25357 $as_echo '.text
25358 or %g1, %lo(ab) + 12, %g1
25359 or %g1, %lo(ab + 12), %g1' > conftest.s
25360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362 (eval $ac_try) 2>&5
25363 ac_status=$?
25364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365 test $ac_status = 0; }; }
25366 then
25367 if test x$gcc_cv_objdump != x \
25368 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25369 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25370 gcc_cv_as_sparc_offsetable_lo10=yes
25372 else
25373 echo "configure: failed program was" >&5
25374 cat conftest.s >&5
25376 rm -f conftest.o conftest.s
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25380 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25381 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25383 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25389 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25390 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25391 $as_echo_n "(cached) " >&6
25392 else
25393 gcc_cv_as_sparc_fmaf=no
25394 if test x$gcc_cv_as != x; then
25395 $as_echo '.text
25396 .register %g2, #scratch
25397 .register %g3, #scratch
25398 .align 4
25399 fmaddd %f0, %f2, %f4, %f6
25400 addxccc %g1, %g2, %g3
25401 fsrl32 %f2, %f4, %f8
25402 fnaddd %f10, %f12, %f14' > conftest.s
25403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25408 test $ac_status = 0; }; }
25409 then
25410 gcc_cv_as_sparc_fmaf=yes
25411 else
25412 echo "configure: failed program was" >&5
25413 cat conftest.s >&5
25415 rm -f conftest.o conftest.s
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25419 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25420 if test $gcc_cv_as_sparc_fmaf = yes; then
25422 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25428 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25429 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25430 $as_echo_n "(cached) " >&6
25431 else
25432 gcc_cv_as_sparc_sparc4=no
25433 if test x$gcc_cv_as != x; then
25434 $as_echo '.text
25435 .register %g2, #scratch
25436 .register %g3, #scratch
25437 .align 4
25438 cxbe %g2, %g3, 1f
25439 1: cwbneg %g2, %g3, 1f
25440 1: sha1
25442 aes_kexpand0 %f4, %f6, %f8
25443 des_round %f38, %f40, %f42, %f44
25444 camellia_f %f54, %f56, %f58, %f60
25445 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25446 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25448 (eval $ac_try) 2>&5
25449 ac_status=$?
25450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25451 test $ac_status = 0; }; }
25452 then
25453 gcc_cv_as_sparc_sparc4=yes
25454 else
25455 echo "configure: failed program was" >&5
25456 cat conftest.s >&5
25458 rm -f conftest.o conftest.s
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25462 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25463 if test $gcc_cv_as_sparc_sparc4 = yes; then
25465 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25471 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25472 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25473 $as_echo_n "(cached) " >&6
25474 else
25475 gcc_cv_as_sparc_sparc5=no
25476 if test x$gcc_cv_as != x; then
25477 $as_echo '.text
25478 .register %g2, #scratch
25479 .register %g3, #scratch
25480 .align 4
25481 subxc %g1, %g2, %g3
25482 fpadd8 %f0, %f2, %f4' > conftest.s
25483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25488 test $ac_status = 0; }; }
25489 then
25490 gcc_cv_as_sparc_sparc5=yes
25491 else
25492 echo "configure: failed program was" >&5
25493 cat conftest.s >&5
25495 rm -f conftest.o conftest.s
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25499 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25500 if test $gcc_cv_as_sparc_sparc5 = yes; then
25502 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25508 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25509 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25510 $as_echo_n "(cached) " >&6
25511 else
25512 gcc_cv_as_sparc_sparc6=no
25513 if test x$gcc_cv_as != x; then
25514 $as_echo '.text
25515 .register %g2, #scratch
25516 .register %g3, #scratch
25517 .align 4
25518 rd %entropy, %g1
25519 fpsll64x %f0, %f2, %f4' > conftest.s
25520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25522 (eval $ac_try) 2>&5
25523 ac_status=$?
25524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25525 test $ac_status = 0; }; }
25526 then
25527 gcc_cv_as_sparc_sparc6=yes
25528 else
25529 echo "configure: failed program was" >&5
25530 cat conftest.s >&5
25532 rm -f conftest.o conftest.s
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25536 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25537 if test $gcc_cv_as_sparc_sparc6 = yes; then
25539 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25545 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25546 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25547 $as_echo_n "(cached) " >&6
25548 else
25549 gcc_cv_as_sparc_leon=no
25550 if test x$gcc_cv_as != x; then
25551 $as_echo '.text
25552 .register %g2, #scratch
25553 .register %g3, #scratch
25554 .align 4
25555 smac %g2, %g3, %g1
25556 umac %g2, %g3, %g1
25557 casa [%g2] 0xb, %g3, %g1' > conftest.s
25558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25564 then
25565 gcc_cv_as_sparc_leon=yes
25566 else
25567 echo "configure: failed program was" >&5
25568 cat conftest.s >&5
25570 rm -f conftest.o conftest.s
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25574 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25575 if test $gcc_cv_as_sparc_leon = yes; then
25577 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25583 i[34567]86-*-* | x86_64-*-*)
25584 case $target_os in
25585 cygwin*)
25586 # Full C++ conformance when using a shared libstdc++-v3 requires some
25587 # support from the Cygwin DLL, which in more recent versions exports
25588 # wrappers to aid in interposing and redirecting operators new, delete,
25589 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25590 # are configuring for a version of Cygwin that exports the wrappers.
25591 if test x$host = x$target && test x$host_cpu = xi686; then
25592 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25593 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25594 gcc_ac_cygwin_dll_wrappers=yes
25595 else
25596 gcc_ac_cygwin_dll_wrappers=no
25599 else
25600 # Can't check presence of libc functions during cross-compile, so
25601 # we just have to assume we're building for an up-to-date target.
25602 gcc_ac_cygwin_dll_wrappers=yes
25605 cat >>confdefs.h <<_ACEOF
25606 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25607 _ACEOF
25609 esac
25610 case $target_os in
25611 cygwin* | pe | mingw32*)
25612 # Recent binutils allows the three-operand form of ".comm" on PE. This
25613 # definition is used unconditionally to initialise the default state of
25614 # the target option variable that governs usage of the feature.
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25616 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25617 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25619 else
25620 gcc_cv_as_comm_has_align=no
25621 if test $in_tree_gas = yes; then
25622 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25623 then gcc_cv_as_comm_has_align=yes
25625 elif test x$gcc_cv_as != x; then
25626 $as_echo '.comm foo,1,32' > conftest.s
25627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25632 test $ac_status = 0; }; }
25633 then
25634 gcc_cv_as_comm_has_align=yes
25635 else
25636 echo "configure: failed program was" >&5
25637 cat conftest.s >&5
25639 rm -f conftest.o conftest.s
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25643 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25647 cat >>confdefs.h <<_ACEOF
25648 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25649 _ACEOF
25651 # Used for DWARF 2 in PE
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25653 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25654 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25655 $as_echo_n "(cached) " >&6
25656 else
25657 gcc_cv_as_ix86_pe_secrel32=no
25658 if test $in_tree_gas = yes; then
25659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25660 then gcc_cv_as_ix86_pe_secrel32=yes
25662 elif test x$gcc_cv_as != x; then
25663 $as_echo '.text
25664 foo: nop
25665 .data
25666 .secrel32 foo' > conftest.s
25667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25673 then
25674 if test x$gcc_cv_ld != x \
25675 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25676 gcc_cv_as_ix86_pe_secrel32=yes
25678 rm -f conftest
25679 else
25680 echo "configure: failed program was" >&5
25681 cat conftest.s >&5
25683 rm -f conftest.o conftest.s
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25687 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25688 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25690 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25694 # Test if the assembler supports the extended form of the .section
25695 # directive that specifies section alignment. LTO support uses this,
25696 # but normally only after installation, so we warn but don't fail the
25697 # configure if LTO is enabled but the assembler does not support it.
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25699 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25700 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25701 $as_echo_n "(cached) " >&6
25702 else
25703 gcc_cv_as_section_has_align=no
25704 if test $in_tree_gas = yes; then
25705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25706 then gcc_cv_as_section_has_align=yes
25708 elif test x$gcc_cv_as != x; then
25709 $as_echo '.section lto_test,"dr0"' > conftest.s
25710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; }
25716 then
25717 gcc_cv_as_section_has_align=yes
25718 else
25719 echo "configure: failed program was" >&5
25720 cat conftest.s >&5
25722 rm -f conftest.o conftest.s
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25726 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25729 if test x$gcc_cv_as_section_has_align != xyes; then
25730 case ",$enable_languages," in
25731 *,lto,*)
25732 { $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
25733 $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;}
25735 esac
25738 esac
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25741 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25742 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25743 $as_echo_n "(cached) " >&6
25744 else
25745 gcc_cv_as_ix86_xbrace_comment=no
25746 if test x$gcc_cv_as != x; then
25747 $as_echo '.text' > conftest.s
25748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25750 (eval $ac_try) 2>&5
25751 ac_status=$?
25752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25753 test $ac_status = 0; }; }
25754 then
25755 gcc_cv_as_ix86_xbrace_comment=yes
25756 else
25757 echo "configure: failed program was" >&5
25758 cat conftest.s >&5
25760 rm -f conftest.o conftest.s
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25764 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25765 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25767 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25773 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25774 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25775 $as_echo_n "(cached) " >&6
25776 else
25777 gcc_cv_as_ix86_filds=no
25778 if test x$gcc_cv_as != x; then
25779 $as_echo 'filds (%ebp); fists (%ebp)' > 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 gcc_cv_as_ix86_filds=yes
25788 else
25789 echo "configure: failed program was" >&5
25790 cat conftest.s >&5
25792 rm -f conftest.o conftest.s
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25796 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25797 if test $gcc_cv_as_ix86_filds = yes; then
25799 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25805 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25806 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25807 $as_echo_n "(cached) " >&6
25808 else
25809 gcc_cv_as_ix86_fildq=no
25810 if test x$gcc_cv_as != x; then
25811 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25814 (eval $ac_try) 2>&5
25815 ac_status=$?
25816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25817 test $ac_status = 0; }; }
25818 then
25819 gcc_cv_as_ix86_fildq=yes
25820 else
25821 echo "configure: failed program was" >&5
25822 cat conftest.s >&5
25824 rm -f conftest.o conftest.s
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25828 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25829 if test $gcc_cv_as_ix86_fildq = yes; then
25831 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25837 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25838 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25840 else
25841 gcc_cv_as_ix86_cmov_sun_syntax=no
25842 if test x$gcc_cv_as != x; then
25843 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25844 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25849 test $ac_status = 0; }; }
25850 then
25851 gcc_cv_as_ix86_cmov_sun_syntax=yes
25852 else
25853 echo "configure: failed program was" >&5
25854 cat conftest.s >&5
25856 rm -f conftest.o conftest.s
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25860 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25861 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25863 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25869 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25870 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25872 else
25873 gcc_cv_as_ix86_ffreep=no
25874 if test x$gcc_cv_as != x; then
25875 $as_echo 'ffreep %st(1)' > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25882 then
25883 gcc_cv_as_ix86_ffreep=yes
25884 else
25885 echo "configure: failed program was" >&5
25886 cat conftest.s >&5
25888 rm -f conftest.o conftest.s
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25892 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25893 if test $gcc_cv_as_ix86_ffreep = yes; then
25895 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25901 $as_echo_n "checking assembler for .quad directive... " >&6; }
25902 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25903 $as_echo_n "(cached) " >&6
25904 else
25905 gcc_cv_as_ix86_quad=no
25906 if test x$gcc_cv_as != x; then
25907 $as_echo '.quad 0' > conftest.s
25908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25911 ac_status=$?
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25914 then
25915 gcc_cv_as_ix86_quad=yes
25916 else
25917 echo "configure: failed program was" >&5
25918 cat conftest.s >&5
25920 rm -f conftest.o conftest.s
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25924 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25925 if test $gcc_cv_as_ix86_quad = yes; then
25927 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25933 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25934 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25935 $as_echo_n "(cached) " >&6
25936 else
25937 gcc_cv_as_ix86_sahf=no
25938 if test x$gcc_cv_as != x; then
25939 $as_echo '.code64
25940 sahf' > conftest.s
25941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25943 (eval $ac_try) 2>&5
25944 ac_status=$?
25945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25946 test $ac_status = 0; }; }
25947 then
25948 gcc_cv_as_ix86_sahf=yes
25949 else
25950 echo "configure: failed program was" >&5
25951 cat conftest.s >&5
25953 rm -f conftest.o conftest.s
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25957 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25958 if test $gcc_cv_as_ix86_sahf = yes; then
25960 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25966 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25967 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25968 $as_echo_n "(cached) " >&6
25969 else
25970 gcc_cv_as_ix86_interunit_movq=no
25971 if test x$gcc_cv_as != x; then
25972 $as_echo '.code64
25973 movq %mm0, %rax
25974 movq %rax, %xmm0' > conftest.s
25975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25977 (eval $ac_try) 2>&5
25978 ac_status=$?
25979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25980 test $ac_status = 0; }; }
25981 then
25982 gcc_cv_as_ix86_interunit_movq=yes
25983 else
25984 echo "configure: failed program was" >&5
25985 cat conftest.s >&5
25987 rm -f conftest.o conftest.s
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25991 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25995 cat >>confdefs.h <<_ACEOF
25996 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25997 _ACEOF
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26001 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26002 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26003 $as_echo_n "(cached) " >&6
26004 else
26005 gcc_cv_as_ix86_hle=no
26006 if test x$gcc_cv_as != x; then
26007 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26013 test $ac_status = 0; }; }
26014 then
26015 gcc_cv_as_ix86_hle=yes
26016 else
26017 echo "configure: failed program was" >&5
26018 cat conftest.s >&5
26020 rm -f conftest.o conftest.s
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26024 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26025 if test $gcc_cv_as_ix86_hle = yes; then
26027 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26033 $as_echo_n "checking assembler for swap suffix... " >&6; }
26034 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26035 $as_echo_n "(cached) " >&6
26036 else
26037 gcc_cv_as_ix86_swap=no
26038 if test x$gcc_cv_as != x; then
26039 $as_echo 'movl.s %esp, %ebp' > conftest.s
26040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26042 (eval $ac_try) 2>&5
26043 ac_status=$?
26044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26045 test $ac_status = 0; }; }
26046 then
26047 gcc_cv_as_ix86_swap=yes
26048 else
26049 echo "configure: failed program was" >&5
26050 cat conftest.s >&5
26052 rm -f conftest.o conftest.s
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26056 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26057 if test $gcc_cv_as_ix86_swap = yes; then
26059 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26065 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26066 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26067 $as_echo_n "(cached) " >&6
26068 else
26069 gcc_cv_as_ix86_diff_sect_delta=no
26070 if test x$gcc_cv_as != x; then
26071 $as_echo '.section .rodata
26072 .L1:
26073 .long .L2-.L1
26074 .long .L3-.L1
26075 .text
26076 .L3: nop
26077 .L2: nop' > conftest.s
26078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26080 (eval $ac_try) 2>&5
26081 ac_status=$?
26082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26083 test $ac_status = 0; }; }
26084 then
26085 gcc_cv_as_ix86_diff_sect_delta=yes
26086 else
26087 echo "configure: failed program was" >&5
26088 cat conftest.s >&5
26090 rm -f conftest.o conftest.s
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26094 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26095 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26097 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26103 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26104 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26105 $as_echo_n "(cached) " >&6
26106 else
26107 gcc_cv_as_ix86_rep_lock_prefix=no
26108 if test x$gcc_cv_as != x; then
26109 $as_echo 'rep movsl
26110 rep ret
26111 rep nop
26112 rep bsf %ecx, %eax
26113 rep bsr %ecx, %eax
26114 lock addl %edi, (%eax,%esi)
26115 lock orl $0, (%esp)' > conftest.s
26116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26118 (eval $ac_try) 2>&5
26119 ac_status=$?
26120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26121 test $ac_status = 0; }; }
26122 then
26123 gcc_cv_as_ix86_rep_lock_prefix=yes
26124 else
26125 echo "configure: failed program was" >&5
26126 cat conftest.s >&5
26128 rm -f conftest.o conftest.s
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26132 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26133 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26135 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26141 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26142 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26143 $as_echo_n "(cached) " >&6
26144 else
26145 gcc_cv_as_ix86_ud2=no
26146 if test x$gcc_cv_as != x; then
26147 $as_echo 'ud2' > conftest.s
26148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26150 (eval $ac_try) 2>&5
26151 ac_status=$?
26152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26153 test $ac_status = 0; }; }
26154 then
26155 gcc_cv_as_ix86_ud2=yes
26156 else
26157 echo "configure: failed program was" >&5
26158 cat conftest.s >&5
26160 rm -f conftest.o conftest.s
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26164 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26165 if test $gcc_cv_as_ix86_ud2 = yes; then
26167 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26172 # Enforce 32-bit output with gas and gld.
26173 if test x$gas = xyes; then
26174 as_ix86_gas_32_opt="--32"
26176 if echo "$ld_ver" | grep GNU > /dev/null; then
26177 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26178 ld_ix86_gld_32_opt="-melf_i386_sol2"
26179 else
26180 ld_ix86_gld_32_opt="-melf_i386"
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26185 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26186 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26187 $as_echo_n "(cached) " >&6
26188 else
26189 gcc_cv_as_ix86_tlsgdplt=no
26190 if test x$gcc_cv_as != x; then
26191 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26194 (eval $ac_try) 2>&5
26195 ac_status=$?
26196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26197 test $ac_status = 0; }; }
26198 then
26199 if test x$gcc_cv_ld != x \
26200 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26201 gcc_cv_as_ix86_tlsgdplt=yes
26203 rm -f conftest
26204 else
26205 echo "configure: failed program was" >&5
26206 cat conftest.s >&5
26208 rm -f conftest.o conftest.s
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26212 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26213 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26215 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26220 conftest_s='
26221 .section .tdata,"aw'$tls_section_flag'",@progbits
26222 tls_ld:
26223 .section .text,"ax",@progbits
26224 call tls_ld@tlsldmplt'
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26227 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26228 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26229 $as_echo_n "(cached) " >&6
26230 else
26231 gcc_cv_as_ix86_tlsldmplt=no
26232 if test x$gcc_cv_as != x; then
26233 $as_echo "$conftest_s" > conftest.s
26234 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26236 (eval $ac_try) 2>&5
26237 ac_status=$?
26238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26239 test $ac_status = 0; }; }
26240 then
26241 if test x$gcc_cv_ld != x \
26242 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26243 gcc_cv_as_ix86_tlsldmplt=yes
26245 rm -f conftest
26246 else
26247 echo "configure: failed program was" >&5
26248 cat conftest.s >&5
26250 rm -f conftest.o conftest.s
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26254 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26258 cat >>confdefs.h <<_ACEOF
26259 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26260 _ACEOF
26263 conftest_s='
26264 .section .text,"ax",@progbits
26265 .globl _start
26266 .type _start, @function
26267 _start:
26268 leal value@tlsldm(%ebx), %eax
26269 call ___tls_get_addr@plt
26271 .section .tdata,"aw'$tls_section_flag'",@progbits
26272 .type value, @object
26273 value:'
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26275 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26276 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26277 $as_echo_n "(cached) " >&6
26278 else
26279 gcc_cv_as_ix86_tlsldm=no
26280 if test x$gcc_cv_as != x; then
26281 $as_echo "$conftest_s" > conftest.s
26282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26284 (eval $ac_try) 2>&5
26285 ac_status=$?
26286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26287 test $ac_status = 0; }; }
26288 then
26289 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26290 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26291 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26292 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26293 gcc_cv_as_ix86_tlsldm=yes
26296 rm -f conftest
26297 else
26298 echo "configure: failed program was" >&5
26299 cat conftest.s >&5
26301 rm -f conftest.o conftest.s
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26305 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26309 cat >>confdefs.h <<_ACEOF
26310 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26311 _ACEOF
26314 conftest_s='
26315 .data
26316 bar:
26317 .byte 1
26318 .text
26319 .global _start
26320 _start:
26321 cmpl $0, bar@GOT
26322 jmp *_start@GOT'
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26324 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26325 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26326 $as_echo_n "(cached) " >&6
26327 else
26328 gcc_cv_as_ix86_got32x=no
26329 if test x$gcc_cv_as != x; then
26330 $as_echo "$conftest_s" > conftest.s
26331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26333 (eval $ac_try) 2>&5
26334 ac_status=$?
26335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26336 test $ac_status = 0; }; }
26337 then
26338 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26339 && test x$gcc_cv_readelf != x \
26340 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26341 | grep R_386_GOT32X > /dev/null 2>&1 \
26342 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26343 if $gcc_cv_objdump -dw conftest 2>&1 \
26344 | grep 0xffffff > /dev/null 2>&1; then
26345 gcc_cv_as_ix86_got32x=no
26346 else
26347 gcc_cv_as_ix86_got32x=yes
26350 rm -f conftest
26351 else
26352 echo "configure: failed program was" >&5
26353 cat conftest.s >&5
26355 rm -f conftest.o conftest.s
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26359 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26363 cat >>confdefs.h <<_ACEOF
26364 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26365 _ACEOF
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26369 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26370 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26371 $as_echo_n "(cached) " >&6
26372 else
26373 gcc_cv_as_ix86_gotoff_in_data=no
26374 if test $in_tree_gas = yes; then
26375 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26376 then gcc_cv_as_ix86_gotoff_in_data=yes
26378 elif test x$gcc_cv_as != x; then
26379 $as_echo ' .text
26380 .L0:
26382 .data
26383 .long .L0@GOTOFF' > conftest.s
26384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26389 test $ac_status = 0; }; }
26390 then
26391 gcc_cv_as_ix86_gotoff_in_data=yes
26392 else
26393 echo "configure: failed program was" >&5
26394 cat conftest.s >&5
26396 rm -f conftest.o conftest.s
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26400 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26404 cat >>confdefs.h <<_ACEOF
26405 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26406 _ACEOF
26409 conftest_s='
26410 .section .text,"ax",@progbits
26411 .globl _start
26412 .type _start, @function
26413 _start:
26414 leal ld@tlsldm(%ecx), %eax
26415 call *___tls_get_addr@GOT(%ecx)
26416 leal gd@tlsgd(%ecx), %eax
26417 call *___tls_get_addr@GOT(%ecx)
26419 .section .tdata,"aw'$tls_section_flag'",@progbits
26420 .type ld, @object
26422 .byte 0
26423 .globl gd
26424 .type gd, @object
26426 .byte 0'
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26428 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26429 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26430 $as_echo_n "(cached) " >&6
26431 else
26432 gcc_cv_as_ix86_tls_get_addr_via_got=no
26433 if test x$gcc_cv_as != x; then
26434 $as_echo "$conftest_s" > conftest.s
26435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26437 (eval $ac_try) 2>&5
26438 ac_status=$?
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; }
26441 then
26442 if test x$gcc_cv_ld != x \
26443 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26444 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26446 rm -f conftest
26447 else
26448 echo "configure: failed program was" >&5
26449 cat conftest.s >&5
26451 rm -f conftest.o conftest.s
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26455 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26459 cat >>confdefs.h <<_ACEOF
26460 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26461 _ACEOF
26465 ia64*-*-*)
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26467 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26468 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26469 $as_echo_n "(cached) " >&6
26470 else
26471 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26472 if test $in_tree_gas = yes; then
26473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26474 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26476 elif test x$gcc_cv_as != x; then
26477 $as_echo ' .text
26478 addl r15 = @ltoffx(x#), gp
26480 ld8.mov r16 = [r15], x#' > conftest.s
26481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486 test $ac_status = 0; }; }
26487 then
26488 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26489 else
26490 echo "configure: failed program was" >&5
26491 cat conftest.s >&5
26493 rm -f conftest.o conftest.s
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26497 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26498 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26500 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26507 powerpc*-*-*)
26509 case $target in
26510 *-*-darwin*)
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26512 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26513 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26514 $as_echo_n "(cached) " >&6
26515 else
26516 gcc_cv_as_machine_directive=no
26517 if test x$gcc_cv_as != x; then
26518 $as_echo ' .machine ppc7400' > conftest.s
26519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26525 then
26526 gcc_cv_as_machine_directive=yes
26527 else
26528 echo "configure: failed program was" >&5
26529 cat conftest.s >&5
26531 rm -f conftest.o conftest.s
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26535 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26538 if test x$gcc_cv_as_machine_directive != xyes; then
26539 echo "*** This target requires an assembler supporting \".machine\"" >&2
26540 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26541 test x$build = x$target && exit 1
26544 esac
26546 case $target in
26547 *-*-aix*) conftest_s=' .machine "pwr5"
26548 .csect .text[PR]
26549 mfcr 3,128';;
26550 *-*-darwin*) conftest_s=' .text
26551 mfcr r3,128';;
26552 *) conftest_s=' .machine power4
26553 .text
26554 mfcr 3,128';;
26555 esac
26557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26558 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26559 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26560 $as_echo_n "(cached) " >&6
26561 else
26562 gcc_cv_as_powerpc_mfcrf=no
26563 if test $in_tree_gas = yes; then
26564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26565 then gcc_cv_as_powerpc_mfcrf=yes
26567 elif test x$gcc_cv_as != x; then
26568 $as_echo "$conftest_s" > conftest.s
26569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26572 ac_status=$?
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26575 then
26576 gcc_cv_as_powerpc_mfcrf=yes
26577 else
26578 echo "configure: failed program was" >&5
26579 cat conftest.s >&5
26581 rm -f conftest.o conftest.s
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26585 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26586 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26588 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26593 case $target in
26594 *-*-aix*) conftest_s=' .machine "pwr5"
26595 .csect .text[PR]
26596 popcntb 3,3';;
26597 *) conftest_s=' .machine power5
26598 .text
26599 popcntb 3,3';;
26600 esac
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26603 $as_echo_n "checking assembler for popcntb support... " >&6; }
26604 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26605 $as_echo_n "(cached) " >&6
26606 else
26607 gcc_cv_as_powerpc_popcntb=no
26608 if test $in_tree_gas = yes; then
26609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26610 then gcc_cv_as_powerpc_popcntb=yes
26612 elif test x$gcc_cv_as != x; then
26613 $as_echo "$conftest_s" > conftest.s
26614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26619 test $ac_status = 0; }; }
26620 then
26621 gcc_cv_as_powerpc_popcntb=yes
26622 else
26623 echo "configure: failed program was" >&5
26624 cat conftest.s >&5
26626 rm -f conftest.o conftest.s
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26630 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26631 if test $gcc_cv_as_powerpc_popcntb = yes; then
26633 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26638 case $target in
26639 *-*-aix*) conftest_s=' .machine "pwr5x"
26640 .csect .text[PR]
26641 frin 1,1';;
26642 *) conftest_s=' .machine power5
26643 .text
26644 frin 1,1';;
26645 esac
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26648 $as_echo_n "checking assembler for fp round support... " >&6; }
26649 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26650 $as_echo_n "(cached) " >&6
26651 else
26652 gcc_cv_as_powerpc_fprnd=no
26653 if test $in_tree_gas = yes; then
26654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26655 then gcc_cv_as_powerpc_fprnd=yes
26657 elif test x$gcc_cv_as != x; then
26658 $as_echo "$conftest_s" > conftest.s
26659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26664 test $ac_status = 0; }; }
26665 then
26666 gcc_cv_as_powerpc_fprnd=yes
26667 else
26668 echo "configure: failed program was" >&5
26669 cat conftest.s >&5
26671 rm -f conftest.o conftest.s
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26675 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26676 if test $gcc_cv_as_powerpc_fprnd = yes; then
26678 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26683 case $target in
26684 *-*-aix*) conftest_s=' .machine "pwr6"
26685 .csect .text[PR]
26686 mffgpr 1,3';;
26687 *) conftest_s=' .machine power6
26688 .text
26689 mffgpr 1,3';;
26690 esac
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26693 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26694 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26695 $as_echo_n "(cached) " >&6
26696 else
26697 gcc_cv_as_powerpc_mfpgpr=no
26698 if test $in_tree_gas = yes; then
26699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26700 then gcc_cv_as_powerpc_mfpgpr=yes
26702 elif test x$gcc_cv_as != x; then
26703 $as_echo "$conftest_s" > conftest.s
26704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26706 (eval $ac_try) 2>&5
26707 ac_status=$?
26708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26709 test $ac_status = 0; }; }
26710 then
26711 gcc_cv_as_powerpc_mfpgpr=yes
26712 else
26713 echo "configure: failed program was" >&5
26714 cat conftest.s >&5
26716 rm -f conftest.o conftest.s
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26720 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26721 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26723 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26728 case $target in
26729 *-*-aix*) conftest_s=' .csect .text[PR]
26730 LCF..0:
26731 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26732 *-*-darwin*)
26733 conftest_s=' .text
26734 LCF0:
26735 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26736 *) conftest_s=' .text
26737 .LCF0:
26738 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26739 esac
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26742 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26743 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26744 $as_echo_n "(cached) " >&6
26745 else
26746 gcc_cv_as_powerpc_rel16=no
26747 if test $in_tree_gas = yes; then
26748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26749 then gcc_cv_as_powerpc_rel16=yes
26751 elif test x$gcc_cv_as != x; then
26752 $as_echo "$conftest_s" > conftest.s
26753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26755 (eval $ac_try) 2>&5
26756 ac_status=$?
26757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26758 test $ac_status = 0; }; }
26759 then
26760 gcc_cv_as_powerpc_rel16=yes
26761 else
26762 echo "configure: failed program was" >&5
26763 cat conftest.s >&5
26765 rm -f conftest.o conftest.s
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26769 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26770 if test $gcc_cv_as_powerpc_rel16 = yes; then
26772 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26777 case $target in
26778 *-*-aix*) conftest_s=' .machine "pwr6"
26779 .csect .text[PR]
26780 cmpb 3,4,5';;
26781 *) conftest_s=' .machine power6
26782 .text
26783 cmpb 3,4,5';;
26784 esac
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26787 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26788 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26789 $as_echo_n "(cached) " >&6
26790 else
26791 gcc_cv_as_powerpc_cmpb=no
26792 if test $in_tree_gas = yes; then
26793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26794 then gcc_cv_as_powerpc_cmpb=yes
26796 elif test x$gcc_cv_as != x; then
26797 $as_echo "$conftest_s" > conftest.s
26798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26800 (eval $ac_try) 2>&5
26801 ac_status=$?
26802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26803 test $ac_status = 0; }; }
26804 then
26805 gcc_cv_as_powerpc_cmpb=yes
26806 else
26807 echo "configure: failed program was" >&5
26808 cat conftest.s >&5
26810 rm -f conftest.o conftest.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26814 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26815 if test $gcc_cv_as_powerpc_cmpb = yes; then
26817 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26822 case $target in
26823 *-*-aix*) conftest_s=' .machine "pwr6"
26824 .csect .text[PR]
26825 dadd 1,2,3';;
26826 *) conftest_s=' .machine power6
26827 .text
26828 dadd 1,2,3';;
26829 esac
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26832 $as_echo_n "checking assembler for decimal float support... " >&6; }
26833 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26834 $as_echo_n "(cached) " >&6
26835 else
26836 gcc_cv_as_powerpc_dfp=no
26837 if test $in_tree_gas = yes; then
26838 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26839 then gcc_cv_as_powerpc_dfp=yes
26841 elif test x$gcc_cv_as != x; then
26842 $as_echo "$conftest_s" > conftest.s
26843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26845 (eval $ac_try) 2>&5
26846 ac_status=$?
26847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26848 test $ac_status = 0; }; }
26849 then
26850 gcc_cv_as_powerpc_dfp=yes
26851 else
26852 echo "configure: failed program was" >&5
26853 cat conftest.s >&5
26855 rm -f conftest.o conftest.s
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26859 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26860 if test $gcc_cv_as_powerpc_dfp = yes; then
26862 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26867 case $target in
26868 *-*-aix*) conftest_s=' .machine "pwr7"
26869 .csect .text[PR]
26870 lxvd2x 1,2,3';;
26871 *) conftest_s=' .machine power7
26872 .text
26873 lxvd2x 1,2,3';;
26874 esac
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26877 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26878 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26879 $as_echo_n "(cached) " >&6
26880 else
26881 gcc_cv_as_powerpc_vsx=no
26882 if test $in_tree_gas = yes; then
26883 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26884 then gcc_cv_as_powerpc_vsx=yes
26886 elif test x$gcc_cv_as != x; then
26887 $as_echo "$conftest_s" > conftest.s
26888 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26893 test $ac_status = 0; }; }
26894 then
26895 gcc_cv_as_powerpc_vsx=yes
26896 else
26897 echo "configure: failed program was" >&5
26898 cat conftest.s >&5
26900 rm -f conftest.o conftest.s
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26904 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26905 if test $gcc_cv_as_powerpc_vsx = yes; then
26907 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26912 case $target in
26913 *-*-aix*) conftest_s=' .machine "pwr7"
26914 .csect .text[PR]
26915 popcntd 3,3';;
26916 *) conftest_s=' .machine power7
26917 .text
26918 popcntd 3,3';;
26919 esac
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26922 $as_echo_n "checking assembler for popcntd support... " >&6; }
26923 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26924 $as_echo_n "(cached) " >&6
26925 else
26926 gcc_cv_as_powerpc_popcntd=no
26927 if test $in_tree_gas = yes; then
26928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26929 then gcc_cv_as_powerpc_popcntd=yes
26931 elif test x$gcc_cv_as != x; then
26932 $as_echo "$conftest_s" > conftest.s
26933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26935 (eval $ac_try) 2>&5
26936 ac_status=$?
26937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26938 test $ac_status = 0; }; }
26939 then
26940 gcc_cv_as_powerpc_popcntd=yes
26941 else
26942 echo "configure: failed program was" >&5
26943 cat conftest.s >&5
26945 rm -f conftest.o conftest.s
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26949 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26950 if test $gcc_cv_as_powerpc_popcntd = yes; then
26952 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26957 case $target in
26958 *-*-aix*) conftest_s=' .machine "pwr8"
26959 .csect .text[PR]';;
26960 *) conftest_s=' .machine power8
26961 .text';;
26962 esac
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26965 $as_echo_n "checking assembler for power8 support... " >&6; }
26966 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26967 $as_echo_n "(cached) " >&6
26968 else
26969 gcc_cv_as_powerpc_power8=no
26970 if test $in_tree_gas = yes; then
26971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26972 then gcc_cv_as_powerpc_power8=yes
26974 elif test x$gcc_cv_as != x; then
26975 $as_echo "$conftest_s" > conftest.s
26976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26978 (eval $ac_try) 2>&5
26979 ac_status=$?
26980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981 test $ac_status = 0; }; }
26982 then
26983 gcc_cv_as_powerpc_power8=yes
26984 else
26985 echo "configure: failed program was" >&5
26986 cat conftest.s >&5
26988 rm -f conftest.o conftest.s
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26992 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26993 if test $gcc_cv_as_powerpc_power8 = yes; then
26995 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
27000 case $target in
27001 *-*-aix*) conftest_s=' .machine "pwr9"
27002 .csect .text[PR]';;
27003 *) conftest_s=' .machine power9
27004 .text';;
27005 esac
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
27008 $as_echo_n "checking assembler for power9 support... " >&6; }
27009 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
27010 $as_echo_n "(cached) " >&6
27011 else
27012 gcc_cv_as_powerpc_power9=no
27013 if test $in_tree_gas = yes; then
27014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27015 then gcc_cv_as_powerpc_power9=yes
27017 elif test x$gcc_cv_as != x; then
27018 $as_echo "$conftest_s" > conftest.s
27019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27021 (eval $ac_try) 2>&5
27022 ac_status=$?
27023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27024 test $ac_status = 0; }; }
27025 then
27026 gcc_cv_as_powerpc_power9=yes
27027 else
27028 echo "configure: failed program was" >&5
27029 cat conftest.s >&5
27031 rm -f conftest.o conftest.s
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
27035 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
27036 if test $gcc_cv_as_powerpc_power9 = yes; then
27038 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
27043 case $target in
27044 *-*-aix*) conftest_s=' .csect .text[PR]
27045 lwsync';;
27046 *) conftest_s=' .text
27047 lwsync';;
27048 esac
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
27051 $as_echo_n "checking assembler for lwsync support... " >&6; }
27052 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
27053 $as_echo_n "(cached) " >&6
27054 else
27055 gcc_cv_as_powerpc_lwsync=no
27056 if test $in_tree_gas = yes; then
27057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27058 then gcc_cv_as_powerpc_lwsync=yes
27060 elif test x$gcc_cv_as != x; then
27061 $as_echo "$conftest_s" > conftest.s
27062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27064 (eval $ac_try) 2>&5
27065 ac_status=$?
27066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067 test $ac_status = 0; }; }
27068 then
27069 gcc_cv_as_powerpc_lwsync=yes
27070 else
27071 echo "configure: failed program was" >&5
27072 cat conftest.s >&5
27074 rm -f conftest.o conftest.s
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
27078 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
27079 if test $gcc_cv_as_powerpc_lwsync = yes; then
27081 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
27086 case $target in
27087 *-*-aix*) conftest_s=' .machine "476"
27088 .csect .text[PR]
27089 dci 0';;
27090 *) conftest_s=' .machine "476"
27091 .text
27092 dci 0';;
27093 esac
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
27096 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
27097 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
27098 $as_echo_n "(cached) " >&6
27099 else
27100 gcc_cv_as_powerpc_dci=no
27101 if test $in_tree_gas = yes; then
27102 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
27103 then gcc_cv_as_powerpc_dci=yes
27105 elif test x$gcc_cv_as != x; then
27106 $as_echo "$conftest_s" > conftest.s
27107 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27109 (eval $ac_try) 2>&5
27110 ac_status=$?
27111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27112 test $ac_status = 0; }; }
27113 then
27114 gcc_cv_as_powerpc_dci=yes
27115 else
27116 echo "configure: failed program was" >&5
27117 cat conftest.s >&5
27119 rm -f conftest.o conftest.s
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
27123 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
27124 if test $gcc_cv_as_powerpc_dci = yes; then
27126 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27132 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27133 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
27134 $as_echo_n "(cached) " >&6
27135 else
27136 gcc_cv_as_powerpc_gnu_attribute=no
27137 if test $in_tree_gas = yes; then
27138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27139 then gcc_cv_as_powerpc_gnu_attribute=yes
27141 elif test x$gcc_cv_as != x; then
27142 $as_echo '.gnu_attribute 4,1' > conftest.s
27143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27145 (eval $ac_try) 2>&5
27146 ac_status=$?
27147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27148 test $ac_status = 0; }; }
27149 then
27150 gcc_cv_as_powerpc_gnu_attribute=yes
27151 else
27152 echo "configure: failed program was" >&5
27153 cat conftest.s >&5
27155 rm -f conftest.o conftest.s
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27159 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27160 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27162 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27168 $as_echo_n "checking assembler for tls marker support... " >&6; }
27169 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
27170 $as_echo_n "(cached) " >&6
27171 else
27172 gcc_cv_as_powerpc_tls_markers=no
27173 if test $in_tree_gas = yes; then
27174 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27175 then gcc_cv_as_powerpc_tls_markers=yes
27177 elif test x$gcc_cv_as != x; then
27178 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27181 (eval $ac_try) 2>&5
27182 ac_status=$?
27183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27184 test $ac_status = 0; }; }
27185 then
27186 gcc_cv_as_powerpc_tls_markers=yes
27187 else
27188 echo "configure: failed program was" >&5
27189 cat conftest.s >&5
27191 rm -f conftest.o conftest.s
27194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27195 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27196 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27198 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27204 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27205 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27206 $as_echo_n "(cached) " >&6
27207 else
27208 gcc_cv_as_powerpc_entry_markers=no
27209 if test $in_tree_gas = yes; then
27210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27211 then gcc_cv_as_powerpc_entry_markers=yes
27213 elif test x$gcc_cv_as != x; then
27214 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27215 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27217 (eval $ac_try) 2>&5
27218 ac_status=$?
27219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27220 test $ac_status = 0; }; }
27221 then
27222 gcc_cv_as_powerpc_entry_markers=yes
27223 else
27224 echo "configure: failed program was" >&5
27225 cat conftest.s >&5
27227 rm -f conftest.o conftest.s
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27231 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27232 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27234 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27239 case $target in
27240 *-*-aix*)
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27242 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27243 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27244 $as_echo_n "(cached) " >&6
27245 else
27246 gcc_cv_as_aix_ref=no
27247 if test $in_tree_gas = yes; then
27248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27249 then gcc_cv_as_aix_ref=yes
27251 elif test x$gcc_cv_as != x; then
27252 $as_echo ' .csect stuff[rw]
27253 stuff:
27254 .long 1
27255 .extern sym
27256 .ref sym
27257 ' > conftest.s
27258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27260 (eval $ac_try) 2>&5
27261 ac_status=$?
27262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27263 test $ac_status = 0; }; }
27264 then
27265 gcc_cv_as_aix_ref=yes
27266 else
27267 echo "configure: failed program was" >&5
27268 cat conftest.s >&5
27270 rm -f conftest.o conftest.s
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27274 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27275 if test $gcc_cv_as_aix_ref = yes; then
27277 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27283 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27284 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27285 $as_echo_n "(cached) " >&6
27286 else
27287 gcc_cv_as_aix_dwloc=no
27288 if test $in_tree_gas = yes; then
27289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27290 then gcc_cv_as_aix_dwloc=yes
27292 elif test x$gcc_cv_as != x; then
27293 $as_echo ' .dwsect 0xA0000
27294 Lframe..0:
27295 .vbyte 4,Lframe..0
27296 ' > conftest.s
27297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27302 test $ac_status = 0; }; }
27303 then
27304 gcc_cv_as_aix_dwloc=yes
27305 else
27306 echo "configure: failed program was" >&5
27307 cat conftest.s >&5
27309 rm -f conftest.o conftest.s
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27313 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27314 if test $gcc_cv_as_aix_dwloc = yes; then
27316 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27321 esac
27324 mips*-*-*)
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27326 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27327 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27328 $as_echo_n "(cached) " >&6
27329 else
27330 gcc_cv_as_mips_explicit_relocs=no
27331 if test $in_tree_gas = yes; then
27332 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27333 then gcc_cv_as_mips_explicit_relocs=yes
27335 elif test x$gcc_cv_as != x; then
27336 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27339 (eval $ac_try) 2>&5
27340 ac_status=$?
27341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27342 test $ac_status = 0; }; }
27343 then
27344 gcc_cv_as_mips_explicit_relocs=yes
27345 else
27346 echo "configure: failed program was" >&5
27347 cat conftest.s >&5
27349 rm -f conftest.o conftest.s
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27353 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27354 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27355 if test x$target_cpu_default = x
27356 then target_cpu_default=MASK_EXPLICIT_RELOCS
27357 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27363 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27364 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27365 $as_echo_n "(cached) " >&6
27366 else
27367 gcc_cv_as_mips_no_shared=no
27368 if test $in_tree_gas = yes; then
27369 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27370 then gcc_cv_as_mips_no_shared=yes
27372 elif test x$gcc_cv_as != x; then
27373 $as_echo 'nop' > conftest.s
27374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27379 test $ac_status = 0; }; }
27380 then
27381 gcc_cv_as_mips_no_shared=yes
27382 else
27383 echo "configure: failed program was" >&5
27384 cat conftest.s >&5
27386 rm -f conftest.o conftest.s
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27390 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27391 if test $gcc_cv_as_mips_no_shared = yes; then
27393 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27399 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27400 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27401 $as_echo_n "(cached) " >&6
27402 else
27403 gcc_cv_as_mips_gnu_attribute=no
27404 if test $in_tree_gas = yes; then
27405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27406 then gcc_cv_as_mips_gnu_attribute=yes
27408 elif test x$gcc_cv_as != x; then
27409 $as_echo '.gnu_attribute 4,1' > conftest.s
27410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27412 (eval $ac_try) 2>&5
27413 ac_status=$?
27414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27415 test $ac_status = 0; }; }
27416 then
27417 gcc_cv_as_mips_gnu_attribute=yes
27418 else
27419 echo "configure: failed program was" >&5
27420 cat conftest.s >&5
27422 rm -f conftest.o conftest.s
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27426 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27427 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27429 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27435 $as_echo_n "checking assembler for .module support... " >&6; }
27436 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27437 $as_echo_n "(cached) " >&6
27438 else
27439 gcc_cv_as_mips_dot_module=no
27440 if test x$gcc_cv_as != x; then
27441 $as_echo '.module mips2
27442 .module fp=xx' > conftest.s
27443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27445 (eval $ac_try) 2>&5
27446 ac_status=$?
27447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27448 test $ac_status = 0; }; }
27449 then
27450 gcc_cv_as_mips_dot_module=yes
27451 else
27452 echo "configure: failed program was" >&5
27453 cat conftest.s >&5
27455 rm -f conftest.o conftest.s
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27459 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27460 if test $gcc_cv_as_mips_dot_module = yes; then
27462 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27466 if test x$gcc_cv_as_mips_dot_module = xno \
27467 && test x$with_fp_32 != x; then
27468 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27472 $as_echo_n "checking assembler for .micromips support... " >&6; }
27473 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27474 $as_echo_n "(cached) " >&6
27475 else
27476 gcc_cv_as_micromips_support=no
27477 if test x$gcc_cv_as != x; then
27478 $as_echo '.set micromips' > conftest.s
27479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27484 test $ac_status = 0; }; }
27485 then
27486 gcc_cv_as_micromips_support=yes
27487 else
27488 echo "configure: failed program was" >&5
27489 cat conftest.s >&5
27491 rm -f conftest.o conftest.s
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27495 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27496 if test $gcc_cv_as_micromips_support = yes; then
27498 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27504 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27505 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27506 $as_echo_n "(cached) " >&6
27507 else
27508 gcc_cv_as_mips_dtprelword=no
27509 if test $in_tree_gas = yes; then
27510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27511 then gcc_cv_as_mips_dtprelword=yes
27513 elif test x$gcc_cv_as != x; then
27514 $as_echo '.section .tdata,"awT",@progbits
27516 .word 2
27517 .text
27518 .dtprelword x+0x8000' > conftest.s
27519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27521 (eval $ac_try) 2>&5
27522 ac_status=$?
27523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27524 test $ac_status = 0; }; }
27525 then
27526 gcc_cv_as_mips_dtprelword=yes
27527 else
27528 echo "configure: failed program was" >&5
27529 cat conftest.s >&5
27531 rm -f conftest.o conftest.s
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27535 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27536 if test $gcc_cv_as_mips_dtprelword = yes; then
27538 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27544 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27545 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27546 $as_echo_n "(cached) " >&6
27547 else
27548 gcc_cv_as_mips_dspr1_mult=no
27549 if test x$gcc_cv_as != x; then
27550 $as_echo ' .set mips32r2
27551 .set nodspr2
27552 .set dsp
27553 madd $ac3,$4,$5
27554 maddu $ac3,$4,$5
27555 msub $ac3,$4,$5
27556 msubu $ac3,$4,$5
27557 mult $ac3,$4,$5
27558 multu $ac3,$4,$5' > conftest.s
27559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27561 (eval $ac_try) 2>&5
27562 ac_status=$?
27563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27564 test $ac_status = 0; }; }
27565 then
27566 gcc_cv_as_mips_dspr1_mult=yes
27567 else
27568 echo "configure: failed program was" >&5
27569 cat conftest.s >&5
27571 rm -f conftest.o conftest.s
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27575 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27576 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27578 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27584 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27585 gcc_cv_as_ld_jalr_reloc=no
27586 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27587 if test $in_tree_ld = yes ; then
27588 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 \
27589 && test $in_tree_ld_is_elf = yes; then
27590 gcc_cv_as_ld_jalr_reloc=yes
27592 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27593 echo ' .ent x' > conftest.s
27594 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27595 echo ' lw $25,%call16(y)($28)' >> conftest.s
27596 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27597 echo '1: jalr $25' >> conftest.s
27598 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27599 echo '1: jalr $25' >> conftest.s
27600 echo ' .end x' >> conftest.s
27601 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27602 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27603 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27604 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27605 gcc_cv_as_ld_jalr_reloc=yes
27608 rm -f conftest.*
27611 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27612 if test x$target_cpu_default = x; then
27613 target_cpu_default=MASK_RELAX_PIC_CALLS
27614 else
27615 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27619 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27622 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27623 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27624 $as_echo_n "(cached) " >&6
27625 else
27626 gcc_cv_ld_mips_personality_relaxation=no
27627 if test $in_tree_ld = yes ; then
27628 if test "$gcc_cv_gld_major_version" -eq 2 \
27629 -a "$gcc_cv_gld_minor_version" -ge 21 \
27630 -o "$gcc_cv_gld_major_version" -gt 2; then
27631 gcc_cv_ld_mips_personality_relaxation=yes
27633 elif test x$gcc_cv_as != x \
27634 -a x$gcc_cv_ld != x \
27635 -a x$gcc_cv_readelf != x ; then
27636 cat > conftest.s <<EOF
27637 .cfi_startproc
27638 .cfi_personality 0x80,indirect_ptr
27639 .ent test
27640 test:
27642 .end test
27643 .cfi_endproc
27645 .section .data,"aw",@progbits
27646 indirect_ptr:
27647 .dc.a personality
27649 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27650 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27651 if $gcc_cv_readelf -d conftest 2>&1 \
27652 | grep TEXTREL > /dev/null 2>&1; then
27654 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27655 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27657 else
27658 gcc_cv_ld_mips_personality_relaxation=yes
27662 rm -f conftest.s conftest.o conftest
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27665 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27666 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27668 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27673 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27674 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27675 $as_echo_n "(cached) " >&6
27676 else
27677 gcc_cv_as_mips_nan=no
27678 if test x$gcc_cv_as != x; then
27679 $as_echo '' > conftest.s
27680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27682 (eval $ac_try) 2>&5
27683 ac_status=$?
27684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27685 test $ac_status = 0; }; }
27686 then
27687 gcc_cv_as_mips_nan=yes
27688 else
27689 echo "configure: failed program was" >&5
27690 cat conftest.s >&5
27692 rm -f conftest.o conftest.s
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27696 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27697 if test $gcc_cv_as_mips_nan = yes; then
27699 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27703 if test x$gcc_cv_as_mips_nan = xno \
27704 && test x$with_nan != x; then
27705 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27708 s390*-*-*)
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27710 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27711 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27712 $as_echo_n "(cached) " >&6
27713 else
27714 gcc_cv_as_s390_gnu_attribute=no
27715 if test $in_tree_gas = yes; then
27716 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27717 then gcc_cv_as_s390_gnu_attribute=yes
27719 elif test x$gcc_cv_as != x; then
27720 $as_echo '.gnu_attribute 8,1' > conftest.s
27721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27726 test $ac_status = 0; }; }
27727 then
27728 gcc_cv_as_s390_gnu_attribute=yes
27729 else
27730 echo "configure: failed program was" >&5
27731 cat conftest.s >&5
27733 rm -f conftest.o conftest.s
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27737 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27738 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27740 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27745 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27746 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27747 $as_echo_n "(cached) " >&6
27748 else
27749 gcc_cv_as_s390_machine_machinemode=no
27750 if test $in_tree_gas = yes; then
27751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27752 then gcc_cv_as_s390_machine_machinemode=yes
27754 elif test x$gcc_cv_as != x; then
27755 $as_echo ' .machinemode push
27756 .machinemode pop
27757 .machine push
27758 .machine pop' > conftest.s
27759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27761 (eval $ac_try) 2>&5
27762 ac_status=$?
27763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27764 test $ac_status = 0; }; }
27765 then
27766 gcc_cv_as_s390_machine_machinemode=yes
27767 else
27768 echo "configure: failed program was" >&5
27769 cat conftest.s >&5
27771 rm -f conftest.o conftest.s
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27775 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27776 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27778 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27783 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27784 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27785 $as_echo_n "(cached) " >&6
27786 else
27787 gcc_cv_as_s390_architecture_modifiers=no
27788 if test $in_tree_gas = yes; then
27789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27790 then gcc_cv_as_s390_architecture_modifiers=yes
27792 elif test x$gcc_cv_as != x; then
27793 $as_echo ' .machine z13+vx ' > conftest.s
27794 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27796 (eval $ac_try) 2>&5
27797 ac_status=$?
27798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27799 test $ac_status = 0; }; }
27800 then
27801 gcc_cv_as_s390_architecture_modifiers=yes
27802 else
27803 echo "configure: failed program was" >&5
27804 cat conftest.s >&5
27806 rm -f conftest.o conftest.s
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27810 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27811 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27813 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27818 esac
27820 # Mips and HP-UX need the GNU assembler.
27821 # Linux on IA64 might be able to use the Intel assembler.
27823 case "$target" in
27824 mips*-*-* | *-*-hpux* )
27825 if test x$gas_flag = xyes \
27826 || test x"$host" != x"$build" \
27827 || test ! -x "$gcc_cv_as" \
27828 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27830 else
27831 echo "*** This configuration requires the GNU assembler" >&2
27832 exit 1
27835 esac
27837 # ??? Not all targets support dwarf2 debug_line, even within a version
27838 # of gas. Moreover, we need to emit a valid instruction to trigger any
27839 # info to the output file. So, as supported targets are added to gas 2.11,
27840 # add some instruction here to (also) show we expect this might work.
27841 # ??? Once 2.11 is released, probably need to add first known working
27842 # version to the per-target configury.
27843 case "$cpu_type" in
27844 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27845 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27846 | tilegx | tilepro | visium | xstormy16 | xtensa)
27847 insn="nop"
27849 ia64 | s390)
27850 insn="nop 0"
27852 mmix)
27853 insn="swym 0"
27855 esac
27856 if test x"$insn" != x; then
27857 conftest_s="\
27858 .file 1 \"conftest.s\"
27859 .loc 1 3 0
27860 $insn"
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27862 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27863 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27864 $as_echo_n "(cached) " >&6
27865 else
27866 gcc_cv_as_dwarf2_debug_line=no
27867 if test $in_tree_gas = yes; then
27868 if test $in_tree_gas_is_elf = yes \
27869 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27870 then gcc_cv_as_dwarf2_debug_line=yes
27872 elif test x$gcc_cv_as != x; then
27873 $as_echo "$conftest_s" > conftest.s
27874 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27876 (eval $ac_try) 2>&5
27877 ac_status=$?
27878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27879 test $ac_status = 0; }; }
27880 then
27881 if test x$gcc_cv_objdump != x \
27882 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27883 | grep debug_line > /dev/null 2>&1; then
27884 gcc_cv_as_dwarf2_debug_line=yes
27886 else
27887 echo "configure: failed program was" >&5
27888 cat conftest.s >&5
27890 rm -f conftest.o conftest.s
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27894 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27898 # The .debug_line file table must be in the exact order that
27899 # we specified the files, since these indices are also used
27900 # by DW_AT_decl_file. Approximate this test by testing if
27901 # the assembler bitches if the same index is assigned twice.
27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27903 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27904 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27905 $as_echo_n "(cached) " >&6
27906 else
27907 gcc_cv_as_dwarf2_file_buggy=no
27908 if test x$gcc_cv_as != x; then
27909 $as_echo ' .file 1 "foo.s"
27910 .file 1 "bar.s"' > conftest.s
27911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27913 (eval $ac_try) 2>&5
27914 ac_status=$?
27915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27916 test $ac_status = 0; }; }
27917 then
27918 gcc_cv_as_dwarf2_file_buggy=yes
27919 else
27920 echo "configure: failed program was" >&5
27921 cat conftest.s >&5
27923 rm -f conftest.o conftest.s
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27927 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27931 if test $gcc_cv_as_dwarf2_debug_line = yes \
27932 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27934 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27937 if test $gcc_cv_as_leb128 = yes; then
27938 conftest_s="\
27939 .file 1 \"conftest.s\"
27940 .loc 1 3 0 view .LVU1
27941 $insn
27942 .data
27943 .uleb128 .LVU1
27944 .uleb128 .LVU1
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27947 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27948 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27949 $as_echo_n "(cached) " >&6
27950 else
27951 gcc_cv_as_dwarf2_debug_view=no
27952 if test $in_tree_gas = yes; then
27953 if test $in_tree_gas_is_elf = yes \
27954 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27955 then gcc_cv_as_dwarf2_debug_view=yes
27957 elif test x$gcc_cv_as != x; then
27958 $as_echo "$conftest_s" > conftest.s
27959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27961 (eval $ac_try) 2>&5
27962 ac_status=$?
27963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27964 test $ac_status = 0; }; }
27965 then
27966 gcc_cv_as_dwarf2_debug_view=yes
27967 else
27968 echo "configure: failed program was" >&5
27969 cat conftest.s >&5
27971 rm -f conftest.o conftest.s
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27975 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27976 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27978 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27986 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27987 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27988 $as_echo_n "(cached) " >&6
27989 else
27990 gcc_cv_as_gdwarf2_flag=no
27991 if test $in_tree_gas = yes; then
27992 if test $in_tree_gas_is_elf = yes \
27993 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27994 then gcc_cv_as_gdwarf2_flag=yes
27996 elif test x$gcc_cv_as != x; then
27997 $as_echo "$insn" > conftest.s
27998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28000 (eval $ac_try) 2>&5
28001 ac_status=$?
28002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28003 test $ac_status = 0; }; }
28004 then
28005 gcc_cv_as_gdwarf2_flag=yes
28006 else
28007 echo "configure: failed program was" >&5
28008 cat conftest.s >&5
28010 rm -f conftest.o conftest.s
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28014 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28015 if test $gcc_cv_as_gdwarf2_flag = yes; then
28017 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28023 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28024 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
28025 $as_echo_n "(cached) " >&6
28026 else
28027 gcc_cv_as_gstabs_flag=no
28028 if test $in_tree_gas = yes; then
28029 if test $in_tree_gas_is_elf = yes \
28030 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28031 then gcc_cv_as_gstabs_flag=yes
28033 elif test x$gcc_cv_as != x; then
28034 $as_echo "$insn" > conftest.s
28035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28037 (eval $ac_try) 2>&5
28038 ac_status=$?
28039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28040 test $ac_status = 0; }; }
28041 then
28042 gcc_cv_as_gstabs_flag=yes
28043 else
28044 echo "configure: failed program was" >&5
28045 cat conftest.s >&5
28047 rm -f conftest.o conftest.s
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28051 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28052 if test $gcc_cv_as_gstabs_flag = yes; then
28054 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28060 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28061 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
28062 $as_echo_n "(cached) " >&6
28063 else
28064 gcc_cv_as_debug_prefix_map_flag=no
28065 if test $in_tree_gas = yes; then
28066 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28067 then gcc_cv_as_debug_prefix_map_flag=yes
28069 elif test x$gcc_cv_as != x; then
28070 $as_echo "$insn" > conftest.s
28071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28073 (eval $ac_try) 2>&5
28074 ac_status=$?
28075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28076 test $ac_status = 0; }; }
28077 then
28078 gcc_cv_as_debug_prefix_map_flag=yes
28079 else
28080 echo "configure: failed program was" >&5
28081 cat conftest.s >&5
28083 rm -f conftest.o conftest.s
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28087 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28088 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28090 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28097 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28098 if test "${gcc_cv_as_compress_debug+set}" = set; then :
28099 $as_echo_n "(cached) " >&6
28100 else
28101 gcc_cv_as_compress_debug=no
28102 if test x$gcc_cv_as != x; then
28103 $as_echo '' > conftest.s
28104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28106 (eval $ac_try) 2>&5
28107 ac_status=$?
28108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28109 test $ac_status = 0; }; }
28110 then
28111 # gas compiled without zlib cannot compress debug sections and warns
28112 # about it, but still exits successfully. So check for this, too.
28113 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
28114 then
28115 gcc_cv_as_compress_debug=0
28116 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28117 # defaulting to the ELF gABI format.
28118 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
28119 then
28120 gcc_cv_as_compress_debug=2
28121 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28122 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28123 # Before binutils 2.26, gas only supported --compress-debug-options and
28124 # emitted the traditional GNU format.
28125 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
28126 then
28127 gcc_cv_as_compress_debug=1
28128 gcc_cv_as_compress_debug_option="--compress-debug-sections"
28129 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
28130 else
28131 gcc_cv_as_compress_debug=0
28133 else
28134 echo "configure: failed program was" >&5
28135 cat conftest.s >&5
28137 rm -f conftest.o conftest.s
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28141 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28145 cat >>confdefs.h <<_ACEOF
28146 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28147 _ACEOF
28150 cat >>confdefs.h <<_ACEOF
28151 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28152 _ACEOF
28155 cat >>confdefs.h <<_ACEOF
28156 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28157 _ACEOF
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28161 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28162 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
28163 $as_echo_n "(cached) " >&6
28164 else
28165 gcc_cv_as_lcomm_with_alignment=no
28166 if test x$gcc_cv_as != x; then
28167 $as_echo '.lcomm bar,4,16' > conftest.s
28168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28170 (eval $ac_try) 2>&5
28171 ac_status=$?
28172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28173 test $ac_status = 0; }; }
28174 then
28175 gcc_cv_as_lcomm_with_alignment=yes
28176 else
28177 echo "configure: failed program was" >&5
28178 cat conftest.s >&5
28180 rm -f conftest.o conftest.s
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28184 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28185 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28187 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28192 if test x$with_sysroot = x && test x$host = x$target \
28193 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28194 && test "$prefix" != "NONE"; then
28196 cat >>confdefs.h <<_ACEOF
28197 #define PREFIX_INCLUDE_DIR "$prefix/include"
28198 _ACEOF
28202 # Determine the version of glibc, if any, used on the target.
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28204 $as_echo_n "checking for target glibc version... " >&6; }
28206 # Check whether --with-glibc-version was given.
28207 if test "${with_glibc_version+set}" = set; then :
28208 withval=$with_glibc_version;
28209 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28210 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28211 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28212 else
28213 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
28215 else
28217 glibc_version_major=0
28218 glibc_version_minor=0
28219 if test -f $target_header_dir/features.h \
28220 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28221 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28222 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28223 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28228 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28230 cat >>confdefs.h <<_ACEOF
28231 #define TARGET_GLIBC_MAJOR $glibc_version_major
28232 _ACEOF
28235 cat >>confdefs.h <<_ACEOF
28236 #define TARGET_GLIBC_MINOR $glibc_version_minor
28237 _ACEOF
28240 # Check whether --enable-gnu-unique-object was given.
28241 if test "${enable_gnu_unique_object+set}" = set; then :
28242 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28243 yes | no) ;;
28244 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28245 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28246 esac
28247 else
28248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28249 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28250 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28251 $as_echo_n "(cached) " >&6
28252 else
28253 gcc_cv_as_gnu_unique_object=no
28254 if test $in_tree_gas = yes; then
28255 if test $in_tree_gas_is_elf = yes \
28256 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28257 then gcc_cv_as_gnu_unique_object=yes
28259 elif test x$gcc_cv_as != x; then
28260 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28263 (eval $ac_try) 2>&5
28264 ac_status=$?
28265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28266 test $ac_status = 0; }; }
28267 then
28268 gcc_cv_as_gnu_unique_object=yes
28269 else
28270 echo "configure: failed program was" >&5
28271 cat conftest.s >&5
28273 rm -f conftest.o conftest.s
28276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28277 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28278 if test $gcc_cv_as_gnu_unique_object = yes; then
28279 # We need to unquote above to to use the definition from config.gcc.
28280 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28282 if test $glibc_version_major -gt 2 \
28283 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28284 enable_gnu_unique_object=yes
28291 if test x$enable_gnu_unique_object = xyes; then
28293 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28298 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28299 if test "${gcc_cv_as_line_zero+set}" = set; then :
28300 $as_echo_n "(cached) " >&6
28301 else
28302 gcc_cv_as_line_zero=no
28303 if test $in_tree_gas = yes; then
28304 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28305 then gcc_cv_as_line_zero=yes
28307 elif test "x$gcc_cv_as" != x; then
28308 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28309 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28311 (eval $ac_try) 2>&5
28312 ac_status=$?
28313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28314 test $ac_status = 0; }; } &&
28315 test "x`cat conftest.out`" = x
28316 then
28317 gcc_cv_as_line_zero=yes
28318 else
28319 echo "configure: failed program was" >&5
28320 cat conftest.s >&5
28321 echo "configure: error output was" >&5
28322 cat conftest.out >&5
28324 rm -f conftest.o conftest.s conftest.out
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28328 $as_echo "$gcc_cv_as_line_zero" >&6; }
28329 if test "x$gcc_cv_as_line_zero" = xyes; then
28331 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28336 $as_echo_n "checking support for thin archives... " >&6; }
28337 thin_archive_support=no
28338 echo 'int main (void) { return 0; }' > conftest.c
28339 if ($AR --version | sed 1q | grep "GNU ar" \
28340 && $CC $CFLAGS -c conftest.c \
28341 && $AR rcT conftest.a conftest.o \
28342 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28343 thin_archive_support=yes
28345 rm -f conftest.c conftest.o conftest.a conftest
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28347 $as_echo "$thin_archive_support" >&6; }
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28351 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28352 gcc_cv_ld_eh_frame_hdr=no
28353 if test $in_tree_ld = yes ; then
28354 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 \
28355 && test $in_tree_ld_is_elf = yes; then
28356 gcc_cv_ld_eh_frame_hdr=yes
28358 elif test x$gcc_cv_ld != x; then
28359 if echo "$ld_ver" | grep GNU > /dev/null; then
28360 # Check if linker supports --eh-frame-hdr option
28361 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28362 gcc_cv_ld_eh_frame_hdr=yes
28364 else
28365 case "$target" in
28366 *-*-solaris2*)
28367 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28368 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28369 gcc_cv_ld_eh_frame_hdr=yes
28372 esac
28376 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28378 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28382 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28385 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28386 gcc_cv_ld_eh_frame_ciev3=no
28387 if test $in_tree_ld = yes ; then
28388 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 \
28389 && test $in_tree_ld_is_elf = yes; then
28390 gcc_cv_ld_eh_frame_ciev3=yes
28392 elif test x$gcc_cv_ld != x; then
28393 if echo "$ld_ver" | grep GNU > /dev/null; then
28394 gcc_cv_ld_eh_frame_ciev3=yes
28395 if test 0"$ld_date" -lt 20040513; then
28396 if test -n "$ld_date"; then
28397 # If there was date string, but was earlier than 2004-05-13, fail
28398 gcc_cv_ld_eh_frame_ciev3=no
28399 elif test "$ld_vers_major" -lt 2; then
28400 gcc_cv_ld_eh_frame_ciev3=no
28401 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28402 gcc_cv_ld_eh_frame_ciev3=no
28405 else
28406 case "$target" in
28407 *-*-solaris2*)
28408 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28409 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28410 gcc_cv_ld_eh_frame_ciev3=yes
28413 esac
28417 cat >>confdefs.h <<_ACEOF
28418 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28419 _ACEOF
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28422 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28425 $as_echo_n "checking linker position independent executable support... " >&6; }
28426 gcc_cv_ld_pie=no
28427 if test $in_tree_ld = yes ; then
28428 case "$target" in
28429 # Full PIE support on Solaris was only introduced in gld 2.26.
28430 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28431 *) gcc_gld_pie_min_version=15 ;;
28432 esac
28433 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 \
28434 && test $in_tree_ld_is_elf = yes; then
28435 gcc_cv_ld_pie=yes
28437 elif test x$gcc_cv_ld != x; then
28438 # Check if linker supports -pie option
28439 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28440 gcc_cv_ld_pie=yes
28441 case "$target" in
28442 *-*-solaris2*)
28443 if echo "$ld_ver" | grep GNU > /dev/null \
28444 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28445 gcc_cv_ld_pie=no
28448 esac
28449 else
28450 case "$target" in
28451 *-*-solaris2.1[1-9]*)
28452 # Solaris 11.3 added PIE support.
28453 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28454 gcc_cv_ld_pie=yes
28457 esac
28460 if test x"$gcc_cv_ld_pie" = xyes; then
28462 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28466 $as_echo "$gcc_cv_ld_pie" >&6; }
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28469 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28470 gcc_cv_ld_pie_copyreloc=no
28471 if test $gcc_cv_ld_pie = yes ; then
28472 if test $in_tree_ld = yes ; then
28473 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
28474 gcc_cv_ld_pie_copyreloc=yes
28476 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28477 # Check if linker supports -pie option with copy reloc
28478 case "$target" in
28479 i?86-*-linux* | x86_64-*-linux*)
28480 cat > conftest1.s <<EOF
28481 .globl a_glob
28482 .data
28483 .type a_glob, @object
28484 .size a_glob, 4
28485 a_glob:
28486 .long 2
28488 cat > conftest2.s <<EOF
28489 .text
28490 .globl main
28491 .type main, @function
28492 main:
28493 movl %eax, a_glob(%rip)
28494 .size main, .-main
28495 .globl ptr
28496 .section .data.rel,"aw",@progbits
28497 .type ptr, @object
28498 ptr:
28499 .quad a_glob
28501 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28502 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28503 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28504 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28505 gcc_cv_ld_pie_copyreloc=yes
28507 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28509 esac
28513 cat >>confdefs.h <<_ACEOF
28514 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28515 _ACEOF
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28518 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28521 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28522 gcc_cv_ld_eh_gc_sections=no
28523 if test $in_tree_ld = yes ; then
28524 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 \
28525 && test $in_tree_ld_is_elf = yes; then
28526 gcc_cv_ld_eh_gc_sections=yes
28528 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28529 cat > conftest.s <<EOF
28530 .section .text
28531 .globl _start
28532 .type _start, @function
28533 _start:
28534 .long foo
28535 .size _start, .-_start
28536 .section .text.foo,"ax",@progbits
28537 .type foo, @function
28538 foo:
28539 .long 0
28540 .size foo, .-foo
28541 .section .gcc_except_table.foo,"a",@progbits
28542 .L0:
28543 .long 0
28544 .section .eh_frame,"a",@progbits
28545 .long .L0
28547 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28548 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28549 | grep "gc-sections option ignored" > /dev/null; then
28550 gcc_cv_ld_eh_gc_sections=no
28551 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28552 | grep gcc_except_table > /dev/null; then
28553 gcc_cv_ld_eh_gc_sections=yes
28554 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28555 if test x$gcc_cv_as_comdat_group != xyes; then
28556 gcc_cv_ld_eh_gc_sections=no
28557 cat > conftest.s <<EOF
28558 .section .text
28559 .globl _start
28560 .type _start, @function
28561 _start:
28562 .long foo
28563 .size _start, .-_start
28564 .section .gnu.linkonce.t.foo,"ax",@progbits
28565 .type foo, @function
28566 foo:
28567 .long 0
28568 .size foo, .-foo
28569 .section .gcc_except_table.foo,"a",@progbits
28570 .L0:
28571 .long 0
28572 .section .eh_frame,"a",@progbits
28573 .long .L0
28575 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28576 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28577 | grep "gc-sections option ignored" > /dev/null; then
28578 gcc_cv_ld_eh_gc_sections=no
28579 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28580 | grep gcc_except_table > /dev/null; then
28581 gcc_cv_ld_eh_gc_sections=yes
28587 rm -f conftest.s conftest.o conftest
28589 case "$target" in
28590 hppa*-*-linux*)
28591 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28592 gcc_cv_ld_eh_gc_sections=no
28594 esac
28595 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28597 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28601 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28604 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28605 gcc_cv_ld_eh_gc_sections_bug=no
28606 if test $in_tree_ld = yes ; then
28607 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 \
28608 && test $in_tree_ld_is_elf = yes; then
28609 gcc_cv_ld_eh_gc_sections_bug=yes
28611 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
28612 gcc_cv_ld_eh_gc_sections_bug=yes
28613 cat > conftest.s <<EOF
28614 .section .text
28615 .globl _start
28616 .type _start, @function
28617 _start:
28618 .long foo
28619 .size _start, .-_start
28620 .section .text.startup.foo,"ax",@progbits
28621 .type foo, @function
28622 foo:
28623 .long 0
28624 .size foo, .-foo
28625 .section .gcc_except_table.foo,"a",@progbits
28626 .L0:
28627 .long 0
28628 .section .eh_frame,"a",@progbits
28629 .long .L0
28631 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28632 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28633 | grep "gc-sections option ignored" > /dev/null; then
28635 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28636 | grep gcc_except_table > /dev/null; then
28637 gcc_cv_ld_eh_gc_sections_bug=no
28640 rm -f conftest.s conftest.o conftest
28642 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28644 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28648 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28651 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28652 # gold/gld support compressed debug sections since binutils 2.19/2.21
28653 # In binutils 2.26, gld gained support for the ELF gABI format.
28654 if test $in_tree_ld = yes ; then
28655 gcc_cv_ld_compress_debug=0
28656 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 \
28657 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28658 gcc_cv_ld_compress_debug=2
28659 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28660 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28661 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28662 gcc_cv_ld_compress_debug=3
28663 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28664 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 \
28665 && test $in_tree_ld_is_elf = yes; then
28666 gcc_cv_ld_compress_debug=1
28668 elif echo "$ld_ver" | grep GNU > /dev/null; then
28669 if test "$ld_vers_major" -lt 2 \
28670 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28671 gcc_cv_ld_compress_debug=0
28672 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28673 gcc_cv_ld_compress_debug=1
28674 else
28675 gcc_cv_ld_compress_debug=3
28676 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28678 if test $ld_is_gold = yes; then
28679 gcc_cv_ld_compress_debug=2
28680 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28682 else
28683 case "${target}" in
28684 *-*-solaris2*)
28685 # Introduced in Solaris 11.2.
28686 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28687 gcc_cv_ld_compress_debug=3
28688 gcc_cv_ld_compress_debug_option="-z compress-sections"
28689 else
28690 gcc_cv_ld_compress_debug=0
28694 # Assume linkers other than GNU ld don't support compessed debug
28695 # sections.
28696 gcc_cv_ld_compress_debug=0
28698 esac
28701 cat >>confdefs.h <<_ACEOF
28702 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28703 _ACEOF
28706 cat >>confdefs.h <<_ACEOF
28707 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28708 _ACEOF
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28711 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28713 if test x"$ld64_flag" = x"yes"; then
28715 # Set defaults for possibly untestable items.
28716 gcc_cv_ld64_export_dynamic=0
28718 if test "$build" = "$host"; then
28719 darwin_try_test=1
28720 else
28721 darwin_try_test=0
28724 # On Darwin, because of FAT library support, it is often possible to execute
28725 # exes from compatible archs even when the host differs from the build system.
28726 case "$build","$host" in
28727 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28728 darwin_try_test=1;;
28729 *) ;;
28730 esac
28732 # If the configurer specified a minimum ld64 version to be supported, then use
28733 # that to determine feature support.
28734 if test x"${gcc_cv_ld64_version}" != x; then
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28736 $as_echo_n "checking ld64 specified version... " >&6; }
28737 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28739 $as_echo "$gcc_cv_ld64_major" >&6; }
28740 if test "$gcc_cv_ld64_major" -ge 236; then
28741 gcc_cv_ld64_export_dynamic=1
28743 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28744 # If the version was not specified, try to find it.
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28746 $as_echo_n "checking linker version... " >&6; }
28747 if test x"${gcc_cv_ld64_version}" = x; then
28748 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28751 $as_echo "$gcc_cv_ld64_version" >&6; }
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28754 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28755 gcc_cv_ld64_export_dynamic=1
28756 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28757 gcc_cv_ld64_export_dynamic=0
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28760 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28763 if test x"${gcc_cv_ld64_version}" != x; then
28765 cat >>confdefs.h <<_ACEOF
28766 #define LD64_VERSION "${gcc_cv_ld64_version}"
28767 _ACEOF
28772 cat >>confdefs.h <<_ACEOF
28773 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28774 _ACEOF
28778 # --------
28779 # UNSORTED
28780 # --------
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28783 $as_echo_n "checking linker --as-needed support... " >&6; }
28784 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28785 $as_echo_n "(cached) " >&6
28786 else
28787 gcc_cv_ld_as_needed=no
28788 gcc_cv_ld_as_needed_option='--as-needed'
28789 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28790 if test $in_tree_ld = yes ; then
28791 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 \
28792 && test $in_tree_ld_is_elf = yes; then
28793 gcc_cv_ld_as_needed=yes
28794 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28795 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28796 gcc_cv_ld_no_as_needed_option='--pop-state'
28799 elif test x$gcc_cv_ld != x; then
28800 # Check if linker supports --as-needed and --no-as-needed options
28801 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28802 gcc_cv_ld_as_needed=yes
28803 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28804 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28805 && echo "$ld_ver" | grep GNU > /dev/null \
28806 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28807 # Use these options only when both ld.bfd and ld.gold support
28808 # --push-state/--pop-state, which unfortunately wasn't added
28809 # at the same time.
28810 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28811 gcc_cv_ld_no_as_needed_option='--pop-state'
28814 case "$target:$gnu_ld" in
28815 *-*-solaris2*:no)
28816 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28817 # forms.
28818 gcc_cv_ld_as_needed=yes
28819 gcc_cv_ld_as_needed_option="-z ignore"
28820 gcc_cv_ld_no_as_needed_option="-z record"
28822 esac
28824 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28825 # dl_iterate_phdr, i.e. since Solaris 11.
28826 case "$target" in
28827 *-*-solaris2.1[1-9]*)
28828 case "$target" in
28829 i?86-*-* | x86_64-*-*)
28830 if echo "$ld_ver" | grep GNU > /dev/null; then
28831 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28832 gcc_cv_ld_as_needed=no
28835 esac
28837 *-*-solaris2*)
28838 gcc_cv_ld_as_needed=no
28840 esac
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28844 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28845 if test x"$gcc_cv_ld_as_needed" = xyes; then
28847 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28850 cat >>confdefs.h <<_ACEOF
28851 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28852 _ACEOF
28855 cat >>confdefs.h <<_ACEOF
28856 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28857 _ACEOF
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28862 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28863 saved_LDFLAGS="$LDFLAGS"
28864 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28865 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28867 /* end confdefs.h. */
28868 int main(void) {return 0;}
28869 _ACEOF
28870 if ac_fn_cxx_try_link "$LINENO"; then :
28871 gcc_cv_ld_clearcap=yes; break
28872 else
28873 gcc_cv_ld_clearcap=no
28875 rm -f core conftest.err conftest.$ac_objext \
28876 conftest$ac_exeext conftest.$ac_ext
28877 done
28878 LDFLAGS="$saved_LDFLAGS"
28879 if test "x$gcc_cv_ld_clearcap" = xyes; then
28881 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28883 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28887 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28889 case "$target" in
28890 powerpc*-*-*)
28891 case "$target" in
28892 *le-*-linux*)
28893 emul_name="-melf32lppc"
28896 emul_name="-melf32ppc"
28898 esac
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28900 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28901 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28902 $as_echo_n "(cached) " >&6
28903 else
28904 gcc_cv_ld_ppc_attr=no
28905 if test x"$ld_is_gold" = xyes; then
28906 gcc_cv_ld_ppc_attr=yes
28907 elif test $in_tree_ld = yes ; then
28908 if test "$gcc_cv_gld_major_version" -eq 2 \
28909 -a "$gcc_cv_gld_minor_version" -ge 28 \
28910 -o "$gcc_cv_gld_major_version" -gt 2; then
28911 gcc_cv_ld_ppc_attr=yes
28913 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28914 # check that merging the long double .gnu_attribute doesn't warn
28915 cat > conftest1.s <<EOF
28916 .gnu_attribute 4,1
28918 cat > conftest2.s <<EOF
28919 .gnu_attribute 4,9
28921 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28922 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28923 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28924 && test ! -s conftest.err; then
28925 gcc_cv_ld_ppc_attr=yes
28927 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28932 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28933 if test x$gcc_cv_ld_ppc_attr = xyes; then
28935 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28939 esac
28941 case "$target:$tm_file" in
28942 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28943 case "$target" in
28944 *le-*-linux*)
28945 emul_name="-melf64lppc"
28947 *-*-linux*)
28948 emul_name="-melf64ppc"
28950 *-*-freebsd*)
28951 emul_name="-melf64ppc_fbsd"
28953 esac
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28955 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28956 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28957 $as_echo_n "(cached) " >&6
28958 else
28959 gcc_cv_ld_no_dot_syms=no
28960 if test x"$ld_is_gold" = xyes; then
28961 gcc_cv_ld_no_dot_syms=yes
28962 elif test $in_tree_ld = yes ; then
28963 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
28964 gcc_cv_ld_no_dot_syms=yes
28966 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28967 cat > conftest1.s <<EOF
28968 .text
28969 bl .foo
28971 cat > conftest2.s <<EOF
28972 .section ".opd","aw"
28973 .align 3
28974 .globl foo
28975 .type foo,@function
28976 foo:
28977 .quad .LEfoo,.TOC.@tocbase,0
28978 .text
28979 .LEfoo:
28981 .size foo,.-.LEfoo
28983 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28984 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28985 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28986 gcc_cv_ld_no_dot_syms=yes
28988 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28993 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28994 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28996 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29001 $as_echo_n "checking linker large toc support... " >&6; }
29002 if test "${gcc_cv_ld_large_toc+set}" = set; then :
29003 $as_echo_n "(cached) " >&6
29004 else
29005 gcc_cv_ld_large_toc=no
29006 if test x"$ld_is_gold" = xyes; then
29007 gcc_cv_ld_large_toc=yes
29008 elif test $in_tree_ld = yes ; then
29009 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
29010 gcc_cv_ld_large_toc=yes
29012 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
29013 cat > conftest.s <<EOF
29014 .section ".tbss","awT",@nobits
29015 .align 3
29016 ie0: .space 8
29017 .global _start
29018 .text
29019 _start:
29020 addis 9,13,ie0@got@tprel@ha
29021 ld 9,ie0@got@tprel@l(9)
29023 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29024 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
29025 gcc_cv_ld_large_toc=yes
29027 rm -f conftest conftest.o conftest.s
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29032 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29033 if test x"$gcc_cv_ld_large_toc" = xyes; then
29035 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29040 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29041 if test "${gcc_cv_ld_toc_align+set}" = set; then :
29042 $as_echo_n "(cached) " >&6
29043 else
29044 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
29045 cat > conftest.s <<EOF
29046 .global _start
29047 .text
29048 _start:
29049 addis 9,2,x@got@ha
29050 .section .data.rel.ro,"aw",@progbits
29051 .p2align 16
29052 .space 32768
29053 x: .quad .TOC.
29055 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
29056 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
29057 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)) }'`
29059 rm -f conftest conftest.o conftest.s
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29064 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29065 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29067 cat >>confdefs.h <<_ACEOF
29068 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29069 _ACEOF
29073 esac
29075 case "$target" in
29076 *-*-aix*)
29077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29078 $as_echo_n "checking linker large toc support... " >&6; }
29079 if test "${gcc_cv_ld_large_toc+set}" = set; then :
29080 $as_echo_n "(cached) " >&6
29081 else
29082 gcc_cv_ld_large_toc=no
29083 if test x$gcc_cv_as != x ; then
29084 cat > conftest.s <<EOF
29085 .toc
29086 LC..1:
29087 .tc a[TC],a[RW]
29088 .extern a[RW]
29089 .csect .text[PR]
29090 .largetoctest:
29091 addis 9,LC..1@u(2)
29092 ld 3,LC..1@l(9)
29094 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
29095 gcc_cv_ld_large_toc=yes
29097 rm -f conftest conftest.o conftest.s
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29102 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29103 if test x"$gcc_cv_ld_large_toc" = xyes; then
29105 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29109 esac
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29112 $as_echo_n "checking linker --build-id support... " >&6; }
29113 if test "${gcc_cv_ld_buildid+set}" = set; then :
29114 $as_echo_n "(cached) " >&6
29115 else
29116 gcc_cv_ld_buildid=no
29117 if test $in_tree_ld = yes ; then
29118 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29119 "$gcc_cv_gld_minor_version" -ge 18 -o \
29120 "$gcc_cv_gld_major_version" -gt 2 \
29121 && test $in_tree_ld_is_elf = yes; then
29122 gcc_cv_ld_buildid=yes
29124 elif test x$gcc_cv_ld != x; then
29125 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
29126 gcc_cv_ld_buildid=yes
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29131 $as_echo "$gcc_cv_ld_buildid" >&6; }
29132 if test x"$gcc_cv_ld_buildid" = xyes; then
29134 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29138 # Check whether --enable-linker-build-id was given.
29139 if test "${enable_linker_build_id+set}" = set; then :
29140 enableval=$enable_linker_build_id;
29141 else
29142 enable_linker_build_id=no
29146 if test x"$enable_linker_build_id" = xyes; then
29147 if test x"$gcc_cv_ld_buildid" = xyes; then
29149 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29151 else
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29153 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29157 # In binutils 2.21, GNU ld gained support for new emulations fully
29158 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29160 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29161 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
29162 $as_echo_n "(cached) " >&6
29163 else
29164 gcc_cv_ld_sol2_emulation=no
29165 if test $in_tree_ld = yes ; then
29166 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29167 "$gcc_cv_gld_minor_version" -ge 21 -o \
29168 "$gcc_cv_gld_major_version" -gt 2 \
29169 && test $in_tree_ld_is_elf = yes; then
29170 gcc_cv_ld_sol2_emulation=yes
29172 elif test x$gcc_cv_ld != x; then
29173 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
29174 grep _sol2 > /dev/null; then
29175 gcc_cv_ld_sol2_emulation=yes
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29180 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29181 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
29183 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29188 $as_echo_n "checking linker --sysroot support... " >&6; }
29189 if test "${gcc_cv_ld_sysroot+set}" = set; then :
29190 $as_echo_n "(cached) " >&6
29191 else
29192 gcc_cv_ld_sysroot=no
29193 if test $in_tree_ld = yes ; then
29194 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
29195 gcc_cv_ld_sysroot=yes
29197 elif test x$gcc_cv_ld != x; then
29198 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
29199 gcc_cv_ld_sysroot=yes
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29204 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29205 if test x"$gcc_cv_ld_sysroot" = xyes; then
29207 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29211 case $target in
29212 *-*-solaris2*)
29213 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29215 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29216 if test "${gcc_cv_solaris_crts+set}" = set; then :
29217 $as_echo_n "(cached) " >&6
29218 else
29219 gcc_cv_solaris_crts=no
29220 if test x$host != x$target; then
29221 if test "x$with_sysroot" = xyes; then
29222 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
29223 else
29224 target_sysroot="${with_sysroot}"
29227 target_libdir="$target_sysroot/usr/lib"
29228 # At the time they were added, gcrt1.o became a symlink for backwards
29229 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29230 case $target in
29231 i?86-*-solaris2* | x86_64-*-solaris2*)
29232 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
29234 sparc*-*-solaris2*)
29235 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
29237 esac
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29240 $as_echo "$gcc_cv_solaris_crts" >&6; }
29242 esac
29243 if test x$gcc_cv_solaris_crts = xyes; then
29245 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29249 # Check whether --enable-libssp was given.
29250 if test "${enable_libssp+set}" = set; then :
29251 enableval=$enable_libssp; case "${enableval}" in
29252 yes|no)
29255 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
29257 esac
29261 # Test for stack protector support in target C library.
29262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29263 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29264 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29265 $as_echo_n "(cached) " >&6
29266 else
29267 gcc_cv_libc_provides_ssp=no
29268 if test "x$enable_libssp" = "xno"; then
29269 gcc_cv_libc_provides_ssp=yes
29270 elif test "x$enable_libssp" = "xyes"; then
29271 gcc_cv_libc_provides_ssp=no
29272 else
29273 case "$target" in
29274 *-*-musl*)
29275 # All versions of musl provide stack protector
29276 gcc_cv_libc_provides_ssp=yes;;
29277 *-*-linux* | *-*-kfreebsd*-gnu)
29278 # glibc 2.4 and later provides __stack_chk_fail and
29279 # either __stack_chk_guard, or TLS access to stack guard canary.
29281 if test $glibc_version_major -gt 2 \
29282 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29283 gcc_cv_libc_provides_ssp=yes
29284 else
29286 if test -f $target_header_dir/features.h \
29287 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29288 $target_header_dir/features.h > /dev/null; then
29289 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29290 $target_header_dir/features.h > /dev/null && \
29291 test -f $target_header_dir/bits/uClibc_config.h && \
29292 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29293 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29294 gcc_cv_libc_provides_ssp=yes
29296 # all versions of Bionic support stack protector
29297 elif test -f $target_header_dir/sys/cdefs.h \
29298 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29299 $target_header_dir/sys/cdefs.h > /dev/null; then
29300 gcc_cv_libc_provides_ssp=yes
29304 *-*-gnu*)
29305 # Avoid complicated tests (see
29306 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29307 # simply assert that glibc does provide this, which is true for all
29308 # realistically usable GNU/Hurd configurations.
29309 # All supported versions of musl provide it as well
29310 gcc_cv_libc_provides_ssp=yes;;
29311 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29312 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29313 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
29314 gcc_cv_libc_provides_ssp=yes
29315 else
29316 echo "no __stack_chk_fail on this target"
29320 *) gcc_cv_libc_provides_ssp=no ;;
29321 esac
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29325 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29327 if test x$gcc_cv_libc_provides_ssp = xyes; then
29329 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29333 # Check whether --enable-default-ssp was given.
29334 # Check whether --enable-default-ssp was given.
29335 if test "${enable_default_ssp+set}" = set; then :
29336 enableval=$enable_default_ssp;
29337 if test x$gcc_cv_libc_provides_ssp = xyes; then
29338 case "$target" in
29339 ia64*-*-*) enable_default_ssp=no ;;
29340 *) enable_default_ssp=$enableval ;;
29341 esac
29342 else
29343 enable_default_ssp=no
29345 else
29346 enable_default_ssp=no
29349 if test x$enable_default_ssp = xyes ; then
29351 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29356 # Test for <sys/sdt.h> on the target.
29358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29359 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29360 have_sys_sdt_h=no
29361 if test -f $target_header_dir/sys/sdt.h; then
29362 have_sys_sdt_h=yes
29364 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29368 $as_echo "$have_sys_sdt_h" >&6; }
29370 # Check if TFmode long double should be used by default or not.
29371 # Some glibc targets used DFmode long double, but with glibc 2.4
29372 # and later they can use TFmode.
29373 case "$target" in
29374 powerpc*-*-linux* | \
29375 sparc*-*-linux* | \
29376 s390*-*-linux* | \
29377 alpha*-*-linux*)
29379 # Check whether --with-long-double-128 was given.
29380 if test "${with_long_double_128+set}" = set; then :
29381 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29382 else
29384 if test $glibc_version_major -gt 2 \
29385 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29386 gcc_cv_target_ldbl128=yes
29387 else
29389 gcc_cv_target_ldbl128=no
29390 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29391 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29392 && gcc_cv_target_ldbl128=yes
29398 esac
29399 if test x$gcc_cv_target_ldbl128 = xyes; then
29401 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29405 # Check if TFmode long double target should use the IBM extended double or IEEE
29406 # 128-bit floating point formats if long doubles are 128-bits long. The long
29407 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29408 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29409 # libgcc.
29411 # Check whether --with-long-double-format was given.
29412 if test "${with_long_double_format+set}" = set; then :
29413 withval=$with_long_double_format;
29414 case "$target:$with_long_double_format" in
29415 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29418 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29419 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29420 case "$with_cpu" in
29421 power7 | power8 | power9 | power1*)
29425 as_fn_error "Configuration option --with-long-double-format is only \
29426 supported if the default cpu is power7 or newer" "$LINENO" 5
29427 with_long_double_format=""
29429 esac
29431 xpowerpc64*-*-linux*:*)
29432 as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29433 with_long_double_format=""
29436 as_fn_error "Configure option --with-long-double-format is only supported \
29437 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29438 with_long_double_format=""
29440 esac
29444 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29445 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29446 gcc_cv_libc_provides_hwcap_in_tcb=no
29447 case "$target" in
29448 powerpc*-*-linux*)
29450 if test $glibc_version_major -gt 2 \
29451 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29452 gcc_cv_libc_provides_hwcap_in_tcb=yes
29455 esac
29456 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29458 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29463 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29464 gcc_cv_target_dl_iterate_phdr=unknown
29465 case "$target" in
29466 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29467 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29468 # libdl there, both complicating its use and breaking compatibility
29469 # between Solaris 10 updates.
29470 *-*-solaris2.1[1-9]*)
29471 # <link.h> needs both a dl_iterate_phdr declaration and support for
29472 # compilation with largefile support.
29473 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29474 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29475 gcc_cv_target_dl_iterate_phdr=yes
29476 else
29477 gcc_cv_target_dl_iterate_phdr=no
29480 *-*-dragonfly* | *-*-freebsd*)
29481 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29482 gcc_cv_target_dl_iterate_phdr=yes
29483 else
29484 gcc_cv_target_dl_iterate_phdr=no
29487 *-linux-musl*)
29488 gcc_cv_target_dl_iterate_phdr=yes
29490 esac
29492 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29494 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29498 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29500 # We no longer support different GC mechanisms. Emit an error if
29501 # the user configures with --with-gc.
29503 # Check whether --with-gc was given.
29504 if test "${with_gc+set}" = set; then :
29505 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29509 # Libraries to use on the host. This will normally be set by the top
29510 # level Makefile. Here we simply capture the value for our Makefile.
29511 if test -z "${HOST_LIBS+set}"; then
29512 HOST_LIBS=
29516 # Use the system's zlib library.
29518 # Use the system's zlib library.
29519 zlibdir="-L\$(top_builddir)/../zlib"
29520 zlibinc="-I\$(top_srcdir)/../zlib"
29522 # Check whether --with-system-zlib was given.
29523 if test "${with_system_zlib+set}" = set; then :
29524 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29525 zlibdir=
29526 zlibinc=
29536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29537 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29538 # Check whether --enable-maintainer-mode was given.
29539 if test "${enable_maintainer_mode+set}" = set; then :
29540 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29541 else
29542 maintainer_mode=no
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29547 $as_echo "$maintainer_mode" >&6; }
29549 if test "$maintainer_mode" = "yes"; then
29550 MAINT=''
29551 else
29552 MAINT='#'
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29557 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29558 # Check whether --enable-link-mutex was given.
29559 if test "${enable_link_mutex+set}" = set; then :
29560 enableval=$enable_link_mutex; do_link_mutex=$enableval
29561 else
29562 do_link_mutex=no
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29566 $as_echo "$do_link_mutex" >&6; }
29568 if test "$do_link_mutex" = "yes"; then
29569 DO_LINK_MUTEX=true
29570 else
29571 DO_LINK_MUTEX=false
29575 # --------------
29576 # Language hooks
29577 # --------------
29579 # Make empty files to contain the specs and options for each language.
29580 # Then add #include lines to for a compiler that has specs and/or options.
29582 subdirs=
29583 lang_opt_files=
29584 lang_specs_files=
29585 lang_tree_files=
29586 # These (without "all_") are set in each config-lang.in.
29587 # `language' must be a single word so is spelled singularly.
29588 all_languages=
29589 all_compilers=
29590 all_outputs='Makefile'
29591 # List of language makefile fragments.
29592 all_lang_makefrags=
29593 # Additional files for gengtype
29594 all_gtfiles="$target_gtfiles"
29596 # These are the languages that are set in --enable-languages,
29597 # and are available in the GCC tree.
29598 all_selected_languages=
29600 # Add the language fragments.
29601 # Languages are added via two mechanisms. Some information must be
29602 # recorded in makefile variables, these are defined in config-lang.in.
29603 # We accumulate them and plug them into the main Makefile.
29604 # The other mechanism is a set of hooks for each of the main targets
29605 # like `clean', `install', etc.
29607 language_hooks="Make-hooks"
29609 for lang in ${srcdir}/*/config-lang.in
29611 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29613 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29614 if test "x$lang_alias" = x
29615 then
29616 echo "$lang doesn't set \$language." 1>&2
29617 exit 1
29619 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29620 subdirs="$subdirs $subdir"
29622 # $gcc_subdir is where the gcc integration files are to be found
29623 # for a language, both for internal compiler purposes (compiler
29624 # sources implementing front-end to GCC tree converters), and for
29625 # build infrastructure purposes (Make-lang.in, etc.)
29627 # This will be <subdir> (relative to $srcdir) if a line like
29628 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29629 # is found in <langdir>/config-lang.in, and will remain <langdir>
29630 # otherwise.
29632 # Except for the language alias (fetched above), the regular
29633 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29634 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29635 # only this and the language alias.
29637 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29638 if [ "$gcc_subdir" = "" ]; then
29639 gcc_subdir="$subdir"
29642 case ",$enable_languages," in
29643 *,$lang_alias,*)
29644 all_selected_languages="$all_selected_languages $lang_alias"
29645 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29646 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29649 esac
29651 language=
29652 boot_language=
29653 compilers=
29654 outputs=
29655 gtfiles=
29656 subdir_requires=
29657 . ${srcdir}/$gcc_subdir/config-lang.in
29658 if test "x$language" = x
29659 then
29660 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29661 exit 1
29664 ok=:
29665 case ",$enable_languages," in
29666 *,$lang_alias,*) ;;
29668 for i in $subdir_requires; do
29669 test -f "${srcdir}/$i/config-lang.in" && continue
29670 ok=false
29671 break
29672 done
29674 esac
29675 $ok || continue
29677 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29678 if test -f $srcdir/$gcc_subdir/lang.opt; then
29679 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29680 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29682 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29683 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29685 all_languages="$all_languages $language"
29686 all_compilers="$all_compilers $compilers"
29687 all_outputs="$all_outputs $outputs"
29688 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29689 case ",$enable_languages," in
29690 *,lto,*)
29692 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29694 enable_lto=yes
29697 *) ;;
29698 esac
29699 done
29701 check_languages=
29702 for language in $all_selected_languages
29704 check_languages="$check_languages check-$language"
29705 done
29707 # We link each language in with a set of hooks, reached indirectly via
29708 # lang.${target}. Only do so for selected languages.
29710 rm -f Make-hooks
29711 touch Make-hooks
29712 target_list="all.cross start.encap rest.encap tags \
29713 install-common install-man install-info install-pdf install-html dvi \
29714 pdf html uninstall info man srcextra srcman srcinfo \
29715 mostlyclean clean distclean maintainer-clean install-plugin"
29717 for t in $target_list
29720 for lang in $all_selected_languages
29722 x="$x $lang.$t"
29723 done
29724 echo "lang.$t: $x" >> Make-hooks
29725 done
29727 # --------
29728 # Option include files
29729 # --------
29731 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29732 option_includes="option-includes.mk"
29735 # --------
29736 # UNSORTED
29737 # --------
29739 # Create .gdbinit.
29741 echo "dir ." > .gdbinit
29742 echo "dir ${srcdir}" >> .gdbinit
29743 if test x$gdb_needs_out_file_path = xyes
29744 then
29745 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29747 if test "x$subdirs" != x; then
29748 for s in $subdirs
29750 echo "dir ${srcdir}/$s" >> .gdbinit
29751 done
29753 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29754 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29756 # Put a breakpoint on __asan_report_error to help with debugging buffer
29757 # overflow.
29758 case "$CFLAGS" in
29759 *-fsanitize=address*)
29760 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29762 esac
29764 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29768 # Find a directory in which to install a shared libgcc.
29770 # Check whether --enable-version-specific-runtime-libs was given.
29771 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29772 enableval=$enable_version_specific_runtime_libs;
29776 # Substitute configuration variables
29839 # Echo link setup.
29840 if test x${build} = x${host} ; then
29841 if test x${host} = x${target} ; then
29842 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29843 else
29844 echo "Links are now set up to build a cross-compiler" 1>&2
29845 echo " from ${host} to ${target}." 1>&2
29847 else
29848 if test x${host} = x${target} ; then
29849 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29850 echo " for ${target}." 1>&2
29851 else
29852 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29853 echo " from ${host} to ${target}." 1>&2
29862 if test "x${ISLLIBS}" != "x" ; then
29864 $as_echo "#define HAVE_isl 1" >>confdefs.h
29868 # Check for plugin support
29869 # Check whether --enable-plugin was given.
29870 if test "${enable_plugin+set}" = set; then :
29871 enableval=$enable_plugin; enable_plugin=$enableval
29872 else
29873 enable_plugin=yes; default_plugin=yes
29877 pluginlibs=
29878 plugin_check=yes
29880 case "${host}" in
29881 *-*-mingw*)
29882 # Since plugin support under MinGW is not as straightforward as on
29883 # other platforms (e.g., we have to link import library, etc), we
29884 # only enable it if explicitly requested.
29885 if test x"$default_plugin" = x"yes"; then
29886 enable_plugin=no
29887 elif test x"$enable_plugin" = x"yes"; then
29888 # Use make's target variable to derive import library name.
29889 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29890 plugin_check=no
29893 *-*-darwin*)
29894 if test x$build = x$host; then
29895 export_sym_check="nm${exeext} -g"
29896 elif test x$host = x$target; then
29897 export_sym_check="$gcc_cv_nm -g"
29898 else
29899 export_sym_check=
29903 if test x$build = x$host; then
29904 export_sym_check="objdump${exeext} -T"
29905 elif test x$host = x$target; then
29906 export_sym_check="$gcc_cv_objdump -T"
29907 else
29908 export_sym_check=
29911 esac
29913 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29916 $as_echo_n "checking for exported symbols... " >&6; }
29917 if test "x$export_sym_check" != x; then
29918 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29919 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29920 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29921 : # No need to use a flag
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29923 $as_echo "yes" >&6; }
29924 else
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29926 $as_echo "yes" >&6; }
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29928 $as_echo_n "checking for -rdynamic... " >&6; }
29929 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29930 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29931 plugin_rdynamic=yes
29932 pluginlibs="-rdynamic"
29933 else
29934 plugin_rdynamic=no
29935 enable_plugin=no
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29938 $as_echo "$plugin_rdynamic" >&6; }
29940 else
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29942 $as_echo "unable to check" >&6; }
29945 # Check -ldl
29946 saved_LIBS="$LIBS"
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29948 $as_echo_n "checking for library containing dlopen... " >&6; }
29949 if test "${ac_cv_search_dlopen+set}" = set; then :
29950 $as_echo_n "(cached) " >&6
29951 else
29952 ac_func_search_save_LIBS=$LIBS
29953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29954 /* end confdefs.h. */
29956 /* Override any GCC internal prototype to avoid an error.
29957 Use char because int might match the return type of a GCC
29958 builtin and then its argument prototype would still apply. */
29959 #ifdef __cplusplus
29960 extern "C"
29961 #endif
29962 char dlopen ();
29964 main ()
29966 return dlopen ();
29968 return 0;
29970 _ACEOF
29971 for ac_lib in '' dl; do
29972 if test -z "$ac_lib"; then
29973 ac_res="none required"
29974 else
29975 ac_res=-l$ac_lib
29976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29978 if ac_fn_cxx_try_link "$LINENO"; then :
29979 ac_cv_search_dlopen=$ac_res
29981 rm -f core conftest.err conftest.$ac_objext \
29982 conftest$ac_exeext
29983 if test "${ac_cv_search_dlopen+set}" = set; then :
29984 break
29986 done
29987 if test "${ac_cv_search_dlopen+set}" = set; then :
29989 else
29990 ac_cv_search_dlopen=no
29992 rm conftest.$ac_ext
29993 LIBS=$ac_func_search_save_LIBS
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29996 $as_echo "$ac_cv_search_dlopen" >&6; }
29997 ac_res=$ac_cv_search_dlopen
29998 if test "$ac_res" != no; then :
29999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30003 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
30004 pluginlibs="$pluginlibs -ldl"
30006 LIBS="$saved_LIBS"
30008 # Check that we can build shared objects with -fPIC -shared
30009 saved_LDFLAGS="$LDFLAGS"
30010 saved_CFLAGS="$CFLAGS"
30011 case "${host}" in
30012 *-*-darwin*)
30013 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30014 CFLAGS="$CFLAGS -fPIC"
30015 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
30018 CFLAGS="$CFLAGS -fPIC"
30019 LDFLAGS="$LDFLAGS -fPIC -shared"
30021 esac
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30023 $as_echo_n "checking for -fPIC -shared... " >&6; }
30024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30025 /* end confdefs.h. */
30026 extern int X;
30028 main ()
30030 return X == 0;
30032 return 0;
30034 _ACEOF
30035 if ac_fn_cxx_try_link "$LINENO"; then :
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30037 $as_echo "yes" >&6; }; have_pic_shared=yes
30038 else
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30040 $as_echo "no" >&6; }; have_pic_shared=no
30042 rm -f core conftest.err conftest.$ac_objext \
30043 conftest$ac_exeext conftest.$ac_ext
30044 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
30045 pluginlibs=
30046 enable_plugin=no
30048 LDFLAGS="$saved_LDFLAGS"
30049 CFLAGS="$saved_CFLAGS"
30051 # If plugin support had been requested but not available, fail.
30052 if test x"$enable_plugin" = x"no" ; then
30053 if test x"$default_plugin" != x"yes"; then
30054 as_fn_error "
30055 Building GCC with plugin support requires a host that supports
30056 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30063 if test x"$enable_plugin" = x"yes"; then
30065 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30070 # Enable --enable-host-shared
30071 # Check whether --enable-host-shared was given.
30072 if test "${enable_host_shared+set}" = set; then :
30073 enableval=$enable_host_shared; PICFLAG=-fPIC
30074 else
30075 PICFLAG=
30082 # Check whether --enable-libquadmath-support was given.
30083 if test "${enable_libquadmath_support+set}" = set; then :
30084 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
30085 else
30086 ENABLE_LIBQUADMATH_SUPPORT=yes
30089 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30091 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30096 # Specify what hash style to use by default.
30098 # Check whether --with-linker-hash-style was given.
30099 if test "${with_linker_hash_style+set}" = set; then :
30100 withval=$with_linker_hash_style; case x"$withval" in
30101 xsysv)
30102 LINKER_HASH_STYLE=sysv
30104 xgnu)
30105 LINKER_HASH_STYLE=gnu
30107 xboth)
30108 LINKER_HASH_STYLE=both
30111 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30113 esac
30114 else
30115 LINKER_HASH_STYLE=''
30118 if test x"${LINKER_HASH_STYLE}" != x; then
30120 cat >>confdefs.h <<_ACEOF
30121 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30122 _ACEOF
30126 # Specify what should be the default of -fdiagnostics-color option.
30128 # Check whether --with-diagnostics-color was given.
30129 if test "${with_diagnostics_color+set}" = set; then :
30130 withval=$with_diagnostics_color; case x"$withval" in
30131 xnever)
30132 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
30134 xauto)
30135 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30137 xauto-if-env)
30138 DIAGNOSTICS_COLOR_DEFAULT=-1
30140 xalways)
30141 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
30144 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30146 esac
30147 else
30148 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
30152 cat >>confdefs.h <<_ACEOF
30153 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30154 _ACEOF
30157 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30158 # of jit/jit-playback.c.
30159 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30160 echo "gcc_driver_version: ${gcc_driver_version}"
30161 cat > gcc-driver-name.h <<EOF
30162 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30165 # Check whether --enable-default-pie was given.
30166 # Check whether --enable-default-pie was given.
30167 if test "${enable_default_pie+set}" = set; then :
30168 enableval=$enable_default_pie; enable_default_pie=$enableval
30169 else
30170 enable_default_pie=no
30173 if test x$enable_default_pie = xyes ; then
30175 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30180 # Check if -fno-PIE works.
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30182 $as_echo_n "checking for -fno-PIE option... " >&6; }
30183 if test "${gcc_cv_c_no_fpie+set}" = set; then :
30184 $as_echo_n "(cached) " >&6
30185 else
30186 saved_CXXFLAGS="$CXXFLAGS"
30187 CXXFLAGS="$CXXFLAGS -fno-PIE"
30188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30189 /* end confdefs.h. */
30190 int main(void) {return 0;}
30191 _ACEOF
30192 if ac_fn_cxx_try_compile "$LINENO"; then :
30193 gcc_cv_c_no_fpie=yes
30194 else
30195 gcc_cv_c_no_fpie=no
30197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30198 CXXFLAGS="$saved_CXXFLAGS"
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30201 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30202 if test "$gcc_cv_c_no_fpie" = "yes"; then
30203 NO_PIE_CFLAGS="-fno-PIE"
30207 # Check if -no-pie works.
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30209 $as_echo_n "checking for -no-pie option... " >&6; }
30210 if test "${gcc_cv_no_pie+set}" = set; then :
30211 $as_echo_n "(cached) " >&6
30212 else
30213 saved_LDFLAGS="$LDFLAGS"
30214 LDFLAGS="$LDFLAGS -no-pie"
30215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30216 /* end confdefs.h. */
30217 int main(void) {return 0;}
30218 _ACEOF
30219 if ac_fn_cxx_try_link "$LINENO"; then :
30220 gcc_cv_no_pie=yes
30221 else
30222 gcc_cv_no_pie=no
30224 rm -f core conftest.err conftest.$ac_objext \
30225 conftest$ac_exeext conftest.$ac_ext
30226 LDFLAGS="$saved_LDFLAGS"
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30229 $as_echo "$gcc_cv_no_pie" >&6; }
30230 if test "$gcc_cv_no_pie" = "yes"; then
30231 NO_PIE_FLAG="-no-pie"
30235 # Check linker supports '-z bndplt'
30236 ld_bndplt_support=no
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30238 $as_echo_n "checking linker -z bndplt option... " >&6; }
30239 if test x"$ld_is_gold" = xno; then
30240 if test $in_tree_ld = yes ; then
30241 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
30242 ld_bndplt_support=yes
30244 elif test x$gcc_cv_ld != x; then
30245 # Check if linker supports -a bndplt option
30246 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
30247 ld_bndplt_support=yes
30251 if test x"$ld_bndplt_support" = xyes; then
30253 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30257 $as_echo "$ld_bndplt_support" >&6; }
30259 # Check linker supports '--push-state'/'--pop-state'
30260 ld_pushpopstate_support=no
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30262 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30263 if test x"$ld_is_gold" = xno; then
30264 if test $in_tree_ld = yes ; then
30265 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
30266 ld_pushpopstate_support=yes
30268 elif test x$gcc_cv_ld != x; then
30269 # Check if linker supports --push-state/--pop-state options
30270 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
30271 ld_pushpopstate_support=yes
30275 if test x"$ld_pushpopstate_support" = xyes; then
30277 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30281 $as_echo "$ld_pushpopstate_support" >&6; }
30283 # Configure the subdirectories
30284 # AC_CONFIG_SUBDIRS($subdirs)
30286 # Create the Makefile
30287 # and configure language subdirectories
30288 ac_config_files="$ac_config_files $all_outputs"
30291 ac_config_commands="$ac_config_commands default"
30293 cat >confcache <<\_ACEOF
30294 # This file is a shell script that caches the results of configure
30295 # tests run on this system so they can be shared between configure
30296 # scripts and configure runs, see configure's option --config-cache.
30297 # It is not useful on other systems. If it contains results you don't
30298 # want to keep, you may remove or edit it.
30300 # config.status only pays attention to the cache file if you give it
30301 # the --recheck option to rerun configure.
30303 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30304 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30305 # following values.
30307 _ACEOF
30309 # The following way of writing the cache mishandles newlines in values,
30310 # but we know of no workaround that is simple, portable, and efficient.
30311 # So, we kill variables containing newlines.
30312 # Ultrix sh set writes to stderr and can't be redirected directly,
30313 # and sets the high bit in the cache file unless we assign to the vars.
30315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30316 eval ac_val=\$$ac_var
30317 case $ac_val in #(
30318 *${as_nl}*)
30319 case $ac_var in #(
30320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30322 esac
30323 case $ac_var in #(
30324 _ | IFS | as_nl) ;; #(
30325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30326 *) { eval $ac_var=; unset $ac_var;} ;;
30327 esac ;;
30328 esac
30329 done
30331 (set) 2>&1 |
30332 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30333 *${as_nl}ac_space=\ *)
30334 # `set' does not quote correctly, so add quotes: double-quote
30335 # substitution turns \\\\ into \\, and sed turns \\ into \.
30336 sed -n \
30337 "s/'/'\\\\''/g;
30338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30339 ;; #(
30341 # `set' quotes correctly as required by POSIX, so do not add quotes.
30342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30344 esac |
30345 sort
30347 sed '
30348 /^ac_cv_env_/b end
30349 t clear
30350 :clear
30351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30352 t end
30353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30354 :end' >>confcache
30355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30356 if test -w "$cache_file"; then
30357 test "x$cache_file" != "x/dev/null" &&
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30359 $as_echo "$as_me: updating cache $cache_file" >&6;}
30360 cat confcache >$cache_file
30361 else
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30363 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30366 rm -f confcache
30368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30369 # Let make expand exec_prefix.
30370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30372 DEFS=-DHAVE_CONFIG_H
30374 ac_libobjs=
30375 ac_ltlibobjs=
30376 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30377 # 1. Remove the extension, and $U if already installed.
30378 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30379 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30380 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30381 # will be set to the directory where LIBOBJS objects are built.
30382 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30383 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30384 done
30385 LIBOBJS=$ac_libobjs
30387 LTLIBOBJS=$ac_ltlibobjs
30392 : ${CONFIG_STATUS=./config.status}
30393 ac_write_fail=0
30394 ac_clean_files_save=$ac_clean_files
30395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30397 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30398 as_write_fail=0
30399 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30400 #! $SHELL
30401 # Generated by $as_me.
30402 # Run this file to recreate the current configuration.
30403 # Compiler output produced by configure, useful for debugging
30404 # configure, is in config.log if it exists.
30406 debug=false
30407 ac_cs_recheck=false
30408 ac_cs_silent=false
30410 SHELL=\${CONFIG_SHELL-$SHELL}
30411 export SHELL
30412 _ASEOF
30413 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30414 ## -------------------- ##
30415 ## M4sh Initialization. ##
30416 ## -------------------- ##
30418 # Be more Bourne compatible
30419 DUALCASE=1; export DUALCASE # for MKS sh
30420 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30421 emulate sh
30422 NULLCMD=:
30423 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30424 # is contrary to our usage. Disable this feature.
30425 alias -g '${1+"$@"}'='"$@"'
30426 setopt NO_GLOB_SUBST
30427 else
30428 case `(set -o) 2>/dev/null` in #(
30429 *posix*) :
30430 set -o posix ;; #(
30431 *) :
30433 esac
30437 as_nl='
30439 export as_nl
30440 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30441 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30442 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30444 # Prefer a ksh shell builtin over an external printf program on Solaris,
30445 # but without wasting forks for bash or zsh.
30446 if test -z "$BASH_VERSION$ZSH_VERSION" \
30447 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30448 as_echo='print -r --'
30449 as_echo_n='print -rn --'
30450 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30451 as_echo='printf %s\n'
30452 as_echo_n='printf %s'
30453 else
30454 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30455 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30456 as_echo_n='/usr/ucb/echo -n'
30457 else
30458 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30459 as_echo_n_body='eval
30460 arg=$1;
30461 case $arg in #(
30462 *"$as_nl"*)
30463 expr "X$arg" : "X\\(.*\\)$as_nl";
30464 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30465 esac;
30466 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30468 export as_echo_n_body
30469 as_echo_n='sh -c $as_echo_n_body as_echo'
30471 export as_echo_body
30472 as_echo='sh -c $as_echo_body as_echo'
30475 # The user is always right.
30476 if test "${PATH_SEPARATOR+set}" != set; then
30477 PATH_SEPARATOR=:
30478 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30479 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30480 PATH_SEPARATOR=';'
30485 # IFS
30486 # We need space, tab and new line, in precisely that order. Quoting is
30487 # there to prevent editors from complaining about space-tab.
30488 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30489 # splitting by setting IFS to empty value.)
30490 IFS=" "" $as_nl"
30492 # Find who we are. Look in the path if we contain no directory separator.
30493 case $0 in #((
30494 *[\\/]* ) as_myself=$0 ;;
30495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30496 for as_dir in $PATH
30498 IFS=$as_save_IFS
30499 test -z "$as_dir" && as_dir=.
30500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30501 done
30502 IFS=$as_save_IFS
30505 esac
30506 # We did not find ourselves, most probably we were run as `sh COMMAND'
30507 # in which case we are not to be found in the path.
30508 if test "x$as_myself" = x; then
30509 as_myself=$0
30511 if test ! -f "$as_myself"; then
30512 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30513 exit 1
30516 # Unset variables that we do not need and which cause bugs (e.g. in
30517 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30518 # suppresses any "Segmentation fault" message there. '((' could
30519 # trigger a bug in pdksh 5.2.14.
30520 for as_var in BASH_ENV ENV MAIL MAILPATH
30521 do eval test x\${$as_var+set} = xset \
30522 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30523 done
30524 PS1='$ '
30525 PS2='> '
30526 PS4='+ '
30528 # NLS nuisances.
30529 LC_ALL=C
30530 export LC_ALL
30531 LANGUAGE=C
30532 export LANGUAGE
30534 # CDPATH.
30535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30538 # as_fn_error ERROR [LINENO LOG_FD]
30539 # ---------------------------------
30540 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30541 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30542 # script with status $?, using 1 if that was 0.
30543 as_fn_error ()
30545 as_status=$?; test $as_status -eq 0 && as_status=1
30546 if test "$3"; then
30547 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30548 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30550 $as_echo "$as_me: error: $1" >&2
30551 as_fn_exit $as_status
30552 } # as_fn_error
30555 # as_fn_set_status STATUS
30556 # -----------------------
30557 # Set $? to STATUS, without forking.
30558 as_fn_set_status ()
30560 return $1
30561 } # as_fn_set_status
30563 # as_fn_exit STATUS
30564 # -----------------
30565 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30566 as_fn_exit ()
30568 set +e
30569 as_fn_set_status $1
30570 exit $1
30571 } # as_fn_exit
30573 # as_fn_unset VAR
30574 # ---------------
30575 # Portably unset VAR.
30576 as_fn_unset ()
30578 { eval $1=; unset $1;}
30580 as_unset=as_fn_unset
30581 # as_fn_append VAR VALUE
30582 # ----------------------
30583 # Append the text in VALUE to the end of the definition contained in VAR. Take
30584 # advantage of any shell optimizations that allow amortized linear growth over
30585 # repeated appends, instead of the typical quadratic growth present in naive
30586 # implementations.
30587 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30588 eval 'as_fn_append ()
30590 eval $1+=\$2
30592 else
30593 as_fn_append ()
30595 eval $1=\$$1\$2
30597 fi # as_fn_append
30599 # as_fn_arith ARG...
30600 # ------------------
30601 # Perform arithmetic evaluation on the ARGs, and store the result in the
30602 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30603 # must be portable across $(()) and expr.
30604 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30605 eval 'as_fn_arith ()
30607 as_val=$(( $* ))
30609 else
30610 as_fn_arith ()
30612 as_val=`expr "$@" || test $? -eq 1`
30614 fi # as_fn_arith
30617 if expr a : '\(a\)' >/dev/null 2>&1 &&
30618 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30619 as_expr=expr
30620 else
30621 as_expr=false
30624 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30625 as_basename=basename
30626 else
30627 as_basename=false
30630 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30631 as_dirname=dirname
30632 else
30633 as_dirname=false
30636 as_me=`$as_basename -- "$0" ||
30637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30638 X"$0" : 'X\(//\)$' \| \
30639 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30640 $as_echo X/"$0" |
30641 sed '/^.*\/\([^/][^/]*\)\/*$/{
30642 s//\1/
30645 /^X\/\(\/\/\)$/{
30646 s//\1/
30649 /^X\/\(\/\).*/{
30650 s//\1/
30653 s/.*/./; q'`
30655 # Avoid depending upon Character Ranges.
30656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30659 as_cr_digits='0123456789'
30660 as_cr_alnum=$as_cr_Letters$as_cr_digits
30662 ECHO_C= ECHO_N= ECHO_T=
30663 case `echo -n x` in #(((((
30664 -n*)
30665 case `echo 'xy\c'` in
30666 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30667 xy) ECHO_C='\c';;
30668 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30669 ECHO_T=' ';;
30670 esac;;
30672 ECHO_N='-n';;
30673 esac
30675 rm -f conf$$ conf$$.exe conf$$.file
30676 if test -d conf$$.dir; then
30677 rm -f conf$$.dir/conf$$.file
30678 else
30679 rm -f conf$$.dir
30680 mkdir conf$$.dir 2>/dev/null
30682 if (echo >conf$$.file) 2>/dev/null; then
30683 if ln -s conf$$.file conf$$ 2>/dev/null; then
30684 as_ln_s='ln -s'
30685 # ... but there are two gotchas:
30686 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30687 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30688 # In both cases, we have to default to `cp -p'.
30689 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30690 as_ln_s='cp -p'
30691 elif ln conf$$.file conf$$ 2>/dev/null; then
30692 as_ln_s=ln
30693 else
30694 as_ln_s='cp -p'
30696 else
30697 as_ln_s='cp -p'
30699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30700 rmdir conf$$.dir 2>/dev/null
30703 # as_fn_mkdir_p
30704 # -------------
30705 # Create "$as_dir" as a directory, including parents if necessary.
30706 as_fn_mkdir_p ()
30709 case $as_dir in #(
30710 -*) as_dir=./$as_dir;;
30711 esac
30712 test -d "$as_dir" || eval $as_mkdir_p || {
30713 as_dirs=
30714 while :; do
30715 case $as_dir in #(
30716 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30717 *) as_qdir=$as_dir;;
30718 esac
30719 as_dirs="'$as_qdir' $as_dirs"
30720 as_dir=`$as_dirname -- "$as_dir" ||
30721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30722 X"$as_dir" : 'X\(//\)[^/]' \| \
30723 X"$as_dir" : 'X\(//\)$' \| \
30724 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30725 $as_echo X"$as_dir" |
30726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30727 s//\1/
30730 /^X\(\/\/\)[^/].*/{
30731 s//\1/
30734 /^X\(\/\/\)$/{
30735 s//\1/
30738 /^X\(\/\).*/{
30739 s//\1/
30742 s/.*/./; q'`
30743 test -d "$as_dir" && break
30744 done
30745 test -z "$as_dirs" || eval "mkdir $as_dirs"
30746 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30749 } # as_fn_mkdir_p
30750 if mkdir -p . 2>/dev/null; then
30751 as_mkdir_p='mkdir -p "$as_dir"'
30752 else
30753 test -d ./-p && rmdir ./-p
30754 as_mkdir_p=false
30757 if test -x / >/dev/null 2>&1; then
30758 as_test_x='test -x'
30759 else
30760 if ls -dL / >/dev/null 2>&1; then
30761 as_ls_L_option=L
30762 else
30763 as_ls_L_option=
30765 as_test_x='
30766 eval sh -c '\''
30767 if test -d "$1"; then
30768 test -d "$1/.";
30769 else
30770 case $1 in #(
30771 -*)set "./$1";;
30772 esac;
30773 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30774 ???[sx]*):;;*)false;;esac;fi
30775 '\'' sh
30778 as_executable_p=$as_test_x
30780 # Sed expression to map a string onto a valid CPP name.
30781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30783 # Sed expression to map a string onto a valid variable name.
30784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30787 exec 6>&1
30788 ## ----------------------------------- ##
30789 ## Main body of $CONFIG_STATUS script. ##
30790 ## ----------------------------------- ##
30791 _ASEOF
30792 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30795 # Save the log message, to keep $0 and so on meaningful, and to
30796 # report actual input values of CONFIG_FILES etc. instead of their
30797 # values after options handling.
30798 ac_log="
30799 This file was extended by $as_me, which was
30800 generated by GNU Autoconf 2.64. Invocation command line was
30802 CONFIG_FILES = $CONFIG_FILES
30803 CONFIG_HEADERS = $CONFIG_HEADERS
30804 CONFIG_LINKS = $CONFIG_LINKS
30805 CONFIG_COMMANDS = $CONFIG_COMMANDS
30806 $ $0 $@
30808 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30811 _ACEOF
30813 case $ac_config_files in *"
30814 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30815 esac
30817 case $ac_config_headers in *"
30818 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30819 esac
30822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30823 # Files that config.status was made for.
30824 config_files="$ac_config_files"
30825 config_headers="$ac_config_headers"
30826 config_links="$ac_config_links"
30827 config_commands="$ac_config_commands"
30829 _ACEOF
30831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30832 ac_cs_usage="\
30833 \`$as_me' instantiates files and other configuration actions
30834 from templates according to the current configuration. Unless the files
30835 and actions are specified as TAGs, all are instantiated by default.
30837 Usage: $0 [OPTION]... [TAG]...
30839 -h, --help print this help, then exit
30840 -V, --version print version number and configuration settings, then exit
30841 -q, --quiet, --silent
30842 do not print progress messages
30843 -d, --debug don't remove temporary files
30844 --recheck update $as_me by reconfiguring in the same conditions
30845 --file=FILE[:TEMPLATE]
30846 instantiate the configuration file FILE
30847 --header=FILE[:TEMPLATE]
30848 instantiate the configuration header FILE
30850 Configuration files:
30851 $config_files
30853 Configuration headers:
30854 $config_headers
30856 Configuration links:
30857 $config_links
30859 Configuration commands:
30860 $config_commands
30862 Report bugs to the package provider."
30864 _ACEOF
30865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30866 ac_cs_version="\\
30867 config.status
30868 configured by $0, generated by GNU Autoconf 2.64,
30869 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30871 Copyright (C) 2009 Free Software Foundation, Inc.
30872 This config.status script is free software; the Free Software Foundation
30873 gives unlimited permission to copy, distribute and modify it."
30875 ac_pwd='$ac_pwd'
30876 srcdir='$srcdir'
30877 AWK='$AWK'
30878 test -n "\$AWK" || AWK=awk
30879 _ACEOF
30881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30882 # The default lists apply if the user does not specify any file.
30883 ac_need_defaults=:
30884 while test $# != 0
30886 case $1 in
30887 --*=*)
30888 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30889 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30890 ac_shift=:
30893 ac_option=$1
30894 ac_optarg=$2
30895 ac_shift=shift
30897 esac
30899 case $ac_option in
30900 # Handling of the options.
30901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30902 ac_cs_recheck=: ;;
30903 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30904 $as_echo "$ac_cs_version"; exit ;;
30905 --debug | --debu | --deb | --de | --d | -d )
30906 debug=: ;;
30907 --file | --fil | --fi | --f )
30908 $ac_shift
30909 case $ac_optarg in
30910 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30911 esac
30912 as_fn_append CONFIG_FILES " '$ac_optarg'"
30913 ac_need_defaults=false;;
30914 --header | --heade | --head | --hea )
30915 $ac_shift
30916 case $ac_optarg in
30917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30918 esac
30919 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30920 ac_need_defaults=false;;
30921 --he | --h)
30922 # Conflict between --help and --header
30923 as_fn_error "ambiguous option: \`$1'
30924 Try \`$0 --help' for more information.";;
30925 --help | --hel | -h )
30926 $as_echo "$ac_cs_usage"; exit ;;
30927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30928 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30929 ac_cs_silent=: ;;
30931 # This is an error.
30932 -*) as_fn_error "unrecognized option: \`$1'
30933 Try \`$0 --help' for more information." ;;
30935 *) as_fn_append ac_config_targets " $1"
30936 ac_need_defaults=false ;;
30938 esac
30939 shift
30940 done
30942 ac_configure_extra_args=
30944 if $ac_cs_silent; then
30945 exec 6>/dev/null
30946 ac_configure_extra_args="$ac_configure_extra_args --silent"
30949 _ACEOF
30950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30951 if \$ac_cs_recheck; then
30952 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30953 shift
30954 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30955 CONFIG_SHELL='$SHELL'
30956 export CONFIG_SHELL
30957 exec "\$@"
30960 _ACEOF
30961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30962 exec 5>>config.log
30964 echo
30965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30966 ## Running $as_me. ##
30967 _ASBOX
30968 $as_echo "$ac_log"
30969 } >&5
30971 _ACEOF
30972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30974 # INIT-COMMANDS
30976 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30977 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30978 subdirs='$subdirs'
30980 _ACEOF
30982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30984 # Handling of arguments.
30985 for ac_config_target in $ac_config_targets
30987 case $ac_config_target in
30988 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30989 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30990 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30991 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30992 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30993 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30994 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30995 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30996 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30998 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30999 esac
31000 done
31003 # If the user did not use the arguments to specify the items to instantiate,
31004 # then the envvar interface is used. Set only those that are not.
31005 # We use the long form for the default assignment because of an extremely
31006 # bizarre bug on SunOS 4.1.3.
31007 if $ac_need_defaults; then
31008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31009 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31010 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31011 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31014 # Have a temporary directory for convenience. Make it in the build tree
31015 # simply because there is no reason against having it here, and in addition,
31016 # creating and moving files from /tmp can sometimes cause problems.
31017 # Hook for its removal unless debugging.
31018 # Note that there is a small window in which the directory will not be cleaned:
31019 # after its creation but before its name has been assigned to `$tmp'.
31020 $debug ||
31022 tmp=
31023 trap 'exit_status=$?
31024 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31026 trap 'as_fn_exit 1' 1 2 13 15
31028 # Create a (secure) tmp directory for tmp files.
31031 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31032 test -n "$tmp" && test -d "$tmp"
31033 } ||
31035 tmp=./conf$$-$RANDOM
31036 (umask 077 && mkdir "$tmp")
31037 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31039 # Set up the scripts for CONFIG_FILES section.
31040 # No need to generate them if there are no CONFIG_FILES.
31041 # This happens for instance with `./config.status config.h'.
31042 if test -n "$CONFIG_FILES"; then
31044 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31045 ac_cs_awk_getline=:
31046 ac_cs_awk_pipe_init=
31047 ac_cs_awk_read_file='
31048 while ((getline aline < (F[key])) > 0)
31049 print(aline)
31050 close(F[key])'
31051 ac_cs_awk_pipe_fini=
31052 else
31053 ac_cs_awk_getline=false
31054 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31055 ac_cs_awk_read_file='
31056 print "|#_!!_#|"
31057 print "cat " F[key] " &&"
31058 '$ac_cs_awk_pipe_init
31059 # The final `:' finishes the AND list.
31060 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31062 ac_cr=`echo X | tr X '\015'`
31063 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31064 # But we know of no other shell where ac_cr would be empty at this
31065 # point, so we can use a bashism as a fallback.
31066 if test "x$ac_cr" = x; then
31067 eval ac_cr=\$\'\\r\'
31069 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31071 ac_cs_awk_cr='\r'
31072 else
31073 ac_cs_awk_cr=$ac_cr
31076 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31077 _ACEOF
31079 # Create commands to substitute file output variables.
31081 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31082 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31083 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31084 echo "_ACAWK" &&
31085 echo "_ACEOF"
31086 } >conf$$files.sh &&
31087 . ./conf$$files.sh ||
31088 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31089 rm -f conf$$files.sh
31092 echo "cat >conf$$subs.awk <<_ACEOF" &&
31093 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31094 echo "_ACEOF"
31095 } >conf$$subs.sh ||
31096 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31098 ac_delim='%!_!# '
31099 for ac_last_try in false false false false false :; do
31100 . ./conf$$subs.sh ||
31101 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31103 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31104 if test $ac_delim_n = $ac_delim_num; then
31105 break
31106 elif $ac_last_try; then
31107 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31108 else
31109 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31111 done
31112 rm -f conf$$subs.sh
31114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31115 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31116 _ACEOF
31117 sed -n '
31119 s/^/S["/; s/!.*/"]=/
31122 s/^[^!]*!//
31123 :repl
31124 t repl
31125 s/'"$ac_delim"'$//
31126 t delim
31129 s/\(.\{148\}\).*/\1/
31130 t more1
31131 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31134 b repl
31135 :more1
31136 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31139 s/.\{148\}//
31140 t nl
31141 :delim
31143 s/\(.\{148\}\).*/\1/
31144 t more2
31145 s/["\\]/\\&/g; s/^/"/; s/$/"/
31148 :more2
31149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31152 s/.\{148\}//
31153 t delim
31154 ' <conf$$subs.awk | sed '
31155 /^[^""]/{
31157 s/\n//
31159 ' >>$CONFIG_STATUS || ac_write_fail=1
31160 rm -f conf$$subs.awk
31161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31162 _ACAWK
31163 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31164 for (key in S) S_is_set[key] = 1
31165 FS = "\a"
31166 \$ac_cs_awk_pipe_init
31169 line = $ 0
31170 nfields = split(line, field, "@")
31171 substed = 0
31172 len = length(field[1])
31173 for (i = 2; i < nfields; i++) {
31174 key = field[i]
31175 keylen = length(key)
31176 if (S_is_set[key]) {
31177 value = S[key]
31178 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31179 len += length(value) + length(field[++i])
31180 substed = 1
31181 } else
31182 len += 1 + keylen
31184 if (nfields == 3 && !substed) {
31185 key = field[2]
31186 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31187 \$ac_cs_awk_read_file
31188 next
31191 print line
31193 \$ac_cs_awk_pipe_fini
31194 _ACAWK
31195 _ACEOF
31196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31197 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31198 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31199 else
31201 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31202 || as_fn_error "could not setup config files machinery" "$LINENO" 5
31203 _ACEOF
31205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31207 # trailing colons and then remove the whole line if VPATH becomes empty
31208 # (actually we leave an empty line to preserve line numbers).
31209 if test "x$srcdir" = x.; then
31210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31211 s/:*\$(srcdir):*/:/
31212 s/:*\${srcdir}:*/:/
31213 s/:*@srcdir@:*/:/
31214 s/^\([^=]*=[ ]*\):*/\1/
31215 s/:*$//
31216 s/^[^=]*=[ ]*$//
31220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31221 fi # test -n "$CONFIG_FILES"
31223 # Set up the scripts for CONFIG_HEADERS section.
31224 # No need to generate them if there are no CONFIG_HEADERS.
31225 # This happens for instance with `./config.status Makefile'.
31226 if test -n "$CONFIG_HEADERS"; then
31227 cat >"$tmp/defines.awk" <<\_ACAWK ||
31228 BEGIN {
31229 _ACEOF
31231 # Transform confdefs.h into an awk script `defines.awk', embedded as
31232 # here-document in config.status, that substitutes the proper values into
31233 # config.h.in to produce config.h.
31235 # Create a delimiter string that does not exist in confdefs.h, to ease
31236 # handling of long lines.
31237 ac_delim='%!_!# '
31238 for ac_last_try in false false :; do
31239 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31240 if test -z "$ac_t"; then
31241 break
31242 elif $ac_last_try; then
31243 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31244 else
31245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31247 done
31249 # For the awk script, D is an array of macro values keyed by name,
31250 # likewise P contains macro parameters if any. Preserve backslash
31251 # newline sequences.
31253 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31254 sed -n '
31255 s/.\{148\}/&'"$ac_delim"'/g
31256 t rset
31257 :rset
31258 s/^[ ]*#[ ]*define[ ][ ]*/ /
31259 t def
31261 :def
31262 s/\\$//
31263 t bsnl
31264 s/["\\]/\\&/g
31265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31266 D["\1"]=" \3"/p
31267 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31269 :bsnl
31270 s/["\\]/\\&/g
31271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31272 D["\1"]=" \3\\\\\\n"\\/p
31273 t cont
31274 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31275 t cont
31277 :cont
31279 s/.\{148\}/&'"$ac_delim"'/g
31280 t clear
31281 :clear
31282 s/\\$//
31283 t bsnlc
31284 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31286 :bsnlc
31287 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31288 b cont
31289 ' <confdefs.h | sed '
31290 s/'"$ac_delim"'/"\\\
31291 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31294 for (key in D) D_is_set[key] = 1
31295 FS = "\a"
31297 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31298 line = \$ 0
31299 split(line, arg, " ")
31300 if (arg[1] == "#") {
31301 defundef = arg[2]
31302 mac1 = arg[3]
31303 } else {
31304 defundef = substr(arg[1], 2)
31305 mac1 = arg[2]
31307 split(mac1, mac2, "(") #)
31308 macro = mac2[1]
31309 prefix = substr(line, 1, index(line, defundef) - 1)
31310 if (D_is_set[macro]) {
31311 # Preserve the white space surrounding the "#".
31312 print prefix "define", macro P[macro] D[macro]
31313 next
31314 } else {
31315 # Replace #undef with comments. This is necessary, for example,
31316 # in the case of _POSIX_SOURCE, which is predefined and required
31317 # on some systems where configure will not decide to define it.
31318 if (defundef == "undef") {
31319 print "/*", prefix defundef, macro, "*/"
31320 next
31324 { print }
31325 _ACAWK
31326 _ACEOF
31327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31328 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31329 fi # test -n "$CONFIG_HEADERS"
31332 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31333 shift
31334 for ac_tag
31336 case $ac_tag in
31337 :[FHLC]) ac_mode=$ac_tag; continue;;
31338 esac
31339 case $ac_mode$ac_tag in
31340 :[FHL]*:*);;
31341 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31342 :[FH]-) ac_tag=-:-;;
31343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31344 esac
31345 ac_save_IFS=$IFS
31346 IFS=:
31347 set x $ac_tag
31348 IFS=$ac_save_IFS
31349 shift
31350 ac_file=$1
31351 shift
31353 case $ac_mode in
31354 :L) ac_source=$1;;
31355 :[FH])
31356 ac_file_inputs=
31357 for ac_f
31359 case $ac_f in
31360 -) ac_f="$tmp/stdin";;
31361 *) # Look for the file first in the build tree, then in the source tree
31362 # (if the path is not absolute). The absolute path cannot be DOS-style,
31363 # because $ac_f cannot contain `:'.
31364 test -f "$ac_f" ||
31365 case $ac_f in
31366 [\\/$]*) false;;
31367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31368 esac ||
31369 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31370 esac
31371 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31372 as_fn_append ac_file_inputs " '$ac_f'"
31373 done
31375 # Let's still pretend it is `configure' which instantiates (i.e., don't
31376 # use $as_me), people would be surprised to read:
31377 # /* config.h. Generated by config.status. */
31378 configure_input='Generated from '`
31379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31380 `' by configure.'
31381 if test x"$ac_file" != x-; then
31382 configure_input="$ac_file. $configure_input"
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31384 $as_echo "$as_me: creating $ac_file" >&6;}
31386 # Neutralize special characters interpreted by sed in replacement strings.
31387 case $configure_input in #(
31388 *\&* | *\|* | *\\* )
31389 ac_sed_conf_input=`$as_echo "$configure_input" |
31390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31391 *) ac_sed_conf_input=$configure_input;;
31392 esac
31394 case $ac_tag in
31395 *:-:* | *:-) cat >"$tmp/stdin" \
31396 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31397 esac
31399 esac
31401 ac_dir=`$as_dirname -- "$ac_file" ||
31402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31403 X"$ac_file" : 'X\(//\)[^/]' \| \
31404 X"$ac_file" : 'X\(//\)$' \| \
31405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31406 $as_echo X"$ac_file" |
31407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31408 s//\1/
31411 /^X\(\/\/\)[^/].*/{
31412 s//\1/
31415 /^X\(\/\/\)$/{
31416 s//\1/
31419 /^X\(\/\).*/{
31420 s//\1/
31423 s/.*/./; q'`
31424 as_dir="$ac_dir"; as_fn_mkdir_p
31425 ac_builddir=.
31427 case "$ac_dir" in
31428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31431 # A ".." for each directory in $ac_dir_suffix.
31432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31433 case $ac_top_builddir_sub in
31434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31436 esac ;;
31437 esac
31438 ac_abs_top_builddir=$ac_pwd
31439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31440 # for backward compatibility:
31441 ac_top_builddir=$ac_top_build_prefix
31443 case $srcdir in
31444 .) # We are building in place.
31445 ac_srcdir=.
31446 ac_top_srcdir=$ac_top_builddir_sub
31447 ac_abs_top_srcdir=$ac_pwd ;;
31448 [\\/]* | ?:[\\/]* ) # Absolute name.
31449 ac_srcdir=$srcdir$ac_dir_suffix;
31450 ac_top_srcdir=$srcdir
31451 ac_abs_top_srcdir=$srcdir ;;
31452 *) # Relative name.
31453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31454 ac_top_srcdir=$ac_top_build_prefix$srcdir
31455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31456 esac
31457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31460 case $ac_mode in
31463 # CONFIG_FILE
31466 _ACEOF
31468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31469 # If the template does not know about datarootdir, expand it.
31470 # FIXME: This hack should be removed a few years after 2.60.
31471 ac_datarootdir_hack=; ac_datarootdir_seen=
31472 ac_sed_dataroot='
31473 /datarootdir/ {
31477 /@datadir@/p
31478 /@docdir@/p
31479 /@infodir@/p
31480 /@localedir@/p
31481 /@mandir@/p'
31482 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31483 *datarootdir*) ac_datarootdir_seen=yes;;
31484 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31486 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31487 _ACEOF
31488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31489 ac_datarootdir_hack='
31490 s&@datadir@&$datadir&g
31491 s&@docdir@&$docdir&g
31492 s&@infodir@&$infodir&g
31493 s&@localedir@&$localedir&g
31494 s&@mandir@&$mandir&g
31495 s&\\\${datarootdir}&$datarootdir&g' ;;
31496 esac
31497 _ACEOF
31499 # Neutralize VPATH when `$srcdir' = `.'.
31500 # Shell code in configure.ac might set extrasub.
31501 # FIXME: do we really want to maintain this feature?
31502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31503 ac_sed_extra="$ac_vpsub
31504 $extrasub
31505 _ACEOF
31506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31509 s|@configure_input@|$ac_sed_conf_input|;t t
31510 s&@top_builddir@&$ac_top_builddir_sub&;t t
31511 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31512 s&@srcdir@&$ac_srcdir&;t t
31513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31514 s&@top_srcdir@&$ac_top_srcdir&;t t
31515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31516 s&@builddir@&$ac_builddir&;t t
31517 s&@abs_builddir@&$ac_abs_builddir&;t t
31518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31519 $ac_datarootdir_hack
31521 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31522 if $ac_cs_awk_getline; then
31523 $AWK -f "$tmp/subs.awk"
31524 else
31525 $AWK -f "$tmp/subs.awk" | $SHELL
31526 fi >$tmp/out \
31527 || as_fn_error "could not create $ac_file" "$LINENO" 5
31529 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31530 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31531 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31533 which seems to be undefined. Please make sure it is defined." >&5
31534 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31535 which seems to be undefined. Please make sure it is defined." >&2;}
31537 rm -f "$tmp/stdin"
31538 case $ac_file in
31539 -) cat "$tmp/out" && rm -f "$tmp/out";;
31540 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31541 esac \
31542 || as_fn_error "could not create $ac_file" "$LINENO" 5
31546 # CONFIG_HEADER
31548 if test x"$ac_file" != x-; then
31550 $as_echo "/* $configure_input */" \
31551 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31552 } >"$tmp/config.h" \
31553 || as_fn_error "could not create $ac_file" "$LINENO" 5
31554 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31556 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31557 else
31558 rm -f "$ac_file"
31559 mv "$tmp/config.h" "$ac_file" \
31560 || as_fn_error "could not create $ac_file" "$LINENO" 5
31562 else
31563 $as_echo "/* $configure_input */" \
31564 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31565 || as_fn_error "could not create -" "$LINENO" 5
31570 # CONFIG_LINK
31573 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31575 else
31576 # Prefer the file from the source tree if names are identical.
31577 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31578 ac_source=$srcdir/$ac_source
31581 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31582 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31584 if test ! -r "$ac_source"; then
31585 as_fn_error "$ac_source: file not found" "$LINENO" 5
31587 rm -f "$ac_file"
31589 # Try a relative symlink, then a hard link, then a copy.
31590 case $srcdir in
31591 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31592 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31593 esac
31594 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31595 ln "$ac_source" "$ac_file" 2>/dev/null ||
31596 cp -p "$ac_source" "$ac_file" ||
31597 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31600 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31601 $as_echo "$as_me: executing $ac_file commands" >&6;}
31603 esac
31606 case $ac_file$ac_mode in
31607 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31608 "gccdepdir":C)
31609 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31610 for lang in $subdirs c-family common
31612 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31613 done ;;
31614 "as":F) chmod +x as ;;
31615 "collect-ld":F) chmod +x collect-ld ;;
31616 "nm":F) chmod +x nm ;;
31617 "default":C)
31618 case ${CONFIG_HEADERS} in
31619 *auto-host.h:config.in*)
31620 echo > cstamp-h ;;
31621 esac
31622 # Make sure all the subdirs exist.
31623 for d in $subdirs doc build common c-family
31625 test -d $d || mkdir $d
31626 done
31629 esac
31630 done # for ac_tag
31633 as_fn_exit 0
31634 _ACEOF
31635 ac_clean_files=$ac_clean_files_save
31637 test $ac_write_fail = 0 ||
31638 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31641 # configure is writing to config.log, and then calls config.status.
31642 # config.status does its own redirection, appending to config.log.
31643 # Unfortunately, on DOS this fails, as config.log is still kept open
31644 # by configure, so config.status won't be able to write to it; its
31645 # output is simply discarded. So we exec the FD to /dev/null,
31646 # effectively closing config.log, so it can be properly (re)opened and
31647 # appended to by config.status. When coming back to configure, we
31648 # need to make the FD available again.
31649 if test "$no_create" != yes; then
31650 ac_cs_success=:
31651 ac_config_status_args=
31652 test "$silent" = yes &&
31653 ac_config_status_args="$ac_config_status_args --quiet"
31654 exec 5>/dev/null
31655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31656 exec 5>>config.log
31657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31658 # would make configure fail if this is the last instruction.
31659 $ac_cs_success || as_fn_exit $?
31661 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31663 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}