2016-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / configure
blob871ed0c3d1571951fe74ba82389ccb727060269a
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 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 SYSTEM_HEADER_DIR
724 CROSS
725 CATOBJEXT
726 GENCAT
727 INSTOBJEXT
728 DATADIRNAME
729 CATALOGS
730 POSUB
731 GMSGFMT
732 XGETTEXT
733 INCINTL
734 LIBINTL_DEP
735 LIBINTL
736 USE_NLS
737 extra_opt_files
738 extra_modes_file
739 NATIVE_SYSTEM_HEADER_DIR
740 objext
741 manext
742 LIBICONV_DEP
743 LTLIBICONV
744 LIBICONV
745 LDEXP_LIB
746 EXTRA_GCC_LIBS
747 GNAT_LIBEXC
748 COLLECT2_LIBS
749 CXXDEPMODE
750 DEPDIR
751 am__leading_dot
752 doc_build_sys
755 BISON
756 FLEX
757 GENERATED_MANPAGES
758 BUILD_INFO
759 MAKEINFO
760 have_mktemp_command
761 make_compare_target
762 INSTALL_DATA
763 INSTALL_PROGRAM
764 INSTALL
765 ranlib_flags
766 RANLIB
768 LN_S
770 SET_MAKE
771 accel_dir_suffix
772 real_target_noncanonical
773 enable_as_accelerator
774 REPORT_BUGS_TEXI
775 REPORT_BUGS_TO
776 PKGVERSION
777 CONFIGURE_SPECS
778 enable_shared
779 enable_fixed_point
780 enable_decimal_float
781 with_float
782 with_cpu
783 enable_multiarch
784 enable_multilib
785 coverage_flags
786 valgrind_command
787 valgrind_path_defines
788 valgrind_path
789 TREECHECKING
790 nocommon_flag
791 noexception_flags
792 warn_cxxflags
793 warn_cflags
794 c_strict_warn
795 strict_warn
796 c_loose_warn
797 loose_warn
798 aliasing_flags
800 EGREP
801 GREP
802 CXXCPP
803 PICFLAG_FOR_TARGET
804 GNATMAKE
805 GNATBIND
806 ac_ct_CXX
807 CXXFLAGS
809 OBJEXT
810 EXEEXT
811 ac_ct_CC
812 CPPFLAGS
813 LDFLAGS
814 CFLAGS
816 GENINSRC
817 CROSS_SYSTEM_HEADER_DIR
818 TARGET_SYSTEM_ROOT_DEFINE
819 TARGET_SYSTEM_ROOT
820 SYSROOT_CFLAGS_FOR_TARGET
821 target_subdir
822 host_subdir
823 build_subdir
824 build_libsubdir
825 target_noncanonical
826 host_noncanonical
827 target_os
828 target_vendor
829 target_cpu
830 target
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files='option_includes
878 language_hooks'
879 ac_user_opts='
880 enable_option_checking
881 with_build_libsubdir
882 with_local_prefix
883 with_native_system_header_dir
884 with_build_sysroot
885 with_sysroot
886 with_gxx_include_dir
887 with_cpp_install_dir
888 enable_generated_files_in_srcdir
889 with_gnu_ld
890 with_ld
891 with_demangler_in_ld
892 with_gnu_as
893 with_as
894 enable_largefile
895 enable_build_format_warnings
896 enable_werror_always
897 enable_checking
898 enable_coverage
899 enable_gather_detailed_mem_stats
900 enable_valgrind_annotations
901 with_stabs
902 enable_multilib
903 enable_multiarch
904 enable___cxa_atexit
905 enable_decimal_float
906 enable_fixed_point
907 enable_threads
908 enable_tls
909 enable_vtable_verify
910 enable_objc_gc
911 with_dwarf2
912 enable_shared
913 with_specs
914 with_pkgversion
915 with_bugurl
916 enable_languages
917 with_multilib_list
918 enable_rpath
919 with_libiconv_prefix
920 enable_sjlj_exceptions
921 enable_secureplt
922 enable_leading_mingw64_underscores
923 enable_cld
924 enable_frame_pointer
925 enable_win32_registry
926 enable_static
927 with_pic
928 enable_fast_install
929 enable_libtool_lock
930 enable_ld
931 enable_gold
932 with_plugin_ld
933 enable_gnu_indirect_function
934 enable_initfini_array
935 enable_comdat
936 enable_fix_cortex_a53_835769
937 enable_fix_cortex_a53_843419
938 with_glibc_version
939 enable_gnu_unique_object
940 enable_linker_build_id
941 enable_default_ssp
942 with_long_double_128
943 with_gc
944 with_system_zlib
945 enable_maintainer_mode
946 enable_link_mutex
947 enable_version_specific_runtime_libs
948 enable_plugin
949 enable_host_shared
950 enable_libquadmath_support
951 with_linker_hash_style
952 with_diagnostics_color
953 enable_default_pie
955 ac_precious_vars='build_alias
956 host_alias
957 target_alias
959 CFLAGS
960 LDFLAGS
961 LIBS
962 CPPFLAGS
964 CXXFLAGS
966 CXXCPP
968 GMPLIBS
969 GMPINC
970 ISLLIBS
971 ISLINC'
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1042 ac_dashdash=yes ;;
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=\$ac_optarg ;;
1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120 | --exec | --exe | --ex)
1121 ac_prev=exec_prefix ;;
1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124 | --exec=* | --exe=* | --ex=*)
1125 exec_prefix=$ac_optarg ;;
1127 -gas | --gas | --ga | --g)
1128 # Obsolete; use --with-gas.
1129 with_gas=yes ;;
1131 -help | --help | --hel | --he | -h)
1132 ac_init_help=long ;;
1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134 ac_init_help=recursive ;;
1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136 ac_init_help=short ;;
1138 -host | --host | --hos | --ho)
1139 ac_prev=host_alias ;;
1140 -host=* | --host=* | --hos=* | --ho=*)
1141 host_alias=$ac_optarg ;;
1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144 ac_prev=htmldir ;;
1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146 | --ht=*)
1147 htmldir=$ac_optarg ;;
1149 -includedir | --includedir | --includedi | --included | --include \
1150 | --includ | --inclu | --incl | --inc)
1151 ac_prev=includedir ;;
1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153 | --includ=* | --inclu=* | --incl=* | --inc=*)
1154 includedir=$ac_optarg ;;
1156 -infodir | --infodir | --infodi | --infod | --info | --inf)
1157 ac_prev=infodir ;;
1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159 infodir=$ac_optarg ;;
1161 -libdir | --libdir | --libdi | --libd)
1162 ac_prev=libdir ;;
1163 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164 libdir=$ac_optarg ;;
1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167 | --libexe | --libex | --libe)
1168 ac_prev=libexecdir ;;
1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170 | --libexe=* | --libex=* | --libe=*)
1171 libexecdir=$ac_optarg ;;
1173 -localedir | --localedir | --localedi | --localed | --locale)
1174 ac_prev=localedir ;;
1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176 localedir=$ac_optarg ;;
1178 -localstatedir | --localstatedir | --localstatedi | --localstated \
1179 | --localstate | --localstat | --localsta | --localst | --locals)
1180 ac_prev=localstatedir ;;
1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183 localstatedir=$ac_optarg ;;
1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186 ac_prev=mandir ;;
1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188 mandir=$ac_optarg ;;
1190 -nfp | --nfp | --nf)
1191 # Obsolete; use --without-fp.
1192 with_fp=no ;;
1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195 | --no-cr | --no-c | -n)
1196 no_create=yes ;;
1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200 no_recursion=yes ;;
1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204 | --oldin | --oldi | --old | --ol | --o)
1205 ac_prev=oldincludedir ;;
1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209 oldincludedir=$ac_optarg ;;
1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212 ac_prev=prefix ;;
1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214 prefix=$ac_optarg ;;
1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217 | --program-pre | --program-pr | --program-p)
1218 ac_prev=program_prefix ;;
1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221 program_prefix=$ac_optarg ;;
1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224 | --program-suf | --program-su | --program-s)
1225 ac_prev=program_suffix ;;
1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228 program_suffix=$ac_optarg ;;
1230 -program-transform-name | --program-transform-name \
1231 | --program-transform-nam | --program-transform-na \
1232 | --program-transform-n | --program-transform- \
1233 | --program-transform | --program-transfor \
1234 | --program-transfo | --program-transf \
1235 | --program-trans | --program-tran \
1236 | --progr-tra | --program-tr | --program-t)
1237 ac_prev=program_transform_name ;;
1238 -program-transform-name=* | --program-transform-name=* \
1239 | --program-transform-nam=* | --program-transform-na=* \
1240 | --program-transform-n=* | --program-transform-=* \
1241 | --program-transform=* | --program-transfor=* \
1242 | --program-transfo=* | --program-transf=* \
1243 | --program-trans=* | --program-tran=* \
1244 | --progr-tra=* | --program-tr=* | --program-t=*)
1245 program_transform_name=$ac_optarg ;;
1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248 ac_prev=pdfdir ;;
1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250 pdfdir=$ac_optarg ;;
1252 -psdir | --psdir | --psdi | --psd | --ps)
1253 ac_prev=psdir ;;
1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255 psdir=$ac_optarg ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 silent=yes ;;
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262 ac_prev=sbindir ;;
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264 | --sbi=* | --sb=*)
1265 sbindir=$ac_optarg ;;
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1270 | --sha | --sh)
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275 | --sha=* | --sh=*)
1276 sharedstatedir=$ac_optarg ;;
1278 -site | --site | --sit)
1279 ac_prev=site ;;
1280 -site=* | --site=* | --sit=*)
1281 site=$ac_optarg ;;
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284 ac_prev=srcdir ;;
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 verbose=yes ;;
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1306 -with-* | --with-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=\$ac_optarg ;;
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) as_fn_error "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1366 esac
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378 esac
1379 done
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error "missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 esac
1394 # Check all directory arguments for consistency.
1395 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1402 case $ac_val in
1403 */ )
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1406 esac
1407 # Be sure to have absolute directory names.
1408 case $ac_val in
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411 esac
1412 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436 test "$silent" = yes && exec 6>/dev/null
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error "pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1465 /^X\(\/\/\)$/{
1466 s//\1/
1469 /^X\(\/\).*/{
1470 s//\1/
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1478 else
1479 ac_srcdir_defaulted=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1488 pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513 \`configure' configures this package to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1522 Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 [PREFIX]
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1568 cat <<\_ACEOF
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 --target=TARGET configure for building compilers for TARGET [HOST]
1579 _ACEOF
1582 if test -n "$ac_init_help"; then
1584 cat <<\_ACEOF
1586 Optional Features:
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-generated-files-in-srcdir
1591 put copies of generated files in source dir intended
1592 for creating source tarballs for users without
1593 texinfo bison or flex
1594 --disable-largefile omit support for large files
1595 --disable-build-format-warnings
1596 don't use -Wformat while building GCC
1597 --enable-werror-always enable -Werror despite compiler version
1598 --enable-checking[=LIST]
1599 enable expensive run-time checks. With LIST, enable
1600 only specific categories of checks. Categories are:
1601 yes,no,all,none,release. Flags are:
1602 assert,df,extra,fold,gc,gcac,gimple,misc,
1603 rtlflag,rtl,runtime,tree,valgrind,types
1604 --enable-coverage[=LEVEL]
1605 enable compiler's code coverage collection. Use to
1606 measure compiler performance and locate unused parts
1607 of the compiler. With LEVEL, specify optimization.
1608 Values are opt, noopt, default is noopt
1609 --enable-gather-detailed-mem-stats
1610 enable detailed memory allocation stats gathering
1611 --enable-valgrind-annotations
1612 enable valgrind runtime interaction
1613 --enable-multilib enable library support for multiple ABIs
1614 --enable-multiarch enable support for multiarch paths
1615 --enable-__cxa_atexit enable __cxa_atexit for C++
1616 --enable-decimal-float={no,yes,bid,dpd}
1617 enable decimal float extension to C. Selecting 'bid'
1618 or 'dpd' choses which decimal floating point format
1619 to use
1620 --enable-fixed-point enable fixed-point arithmetic extension to C
1621 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1622 package
1623 --enable-tls enable or disable generation of tls code overriding
1624 the assembler check for tls support
1625 --enable-vtable-verify enable vtable verification feature
1626 --enable-objc-gc enable the use of Boehm's garbage collector with the
1627 GNU Objective-C runtime
1628 --disable-shared don't provide a shared libgcc
1629 --enable-languages=LIST specify which front-ends to build
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-sjlj-exceptions
1632 arrange to use setjmp/longjmp exception handling
1633 --enable-secureplt enable -msecure-plt by default for PowerPC
1634 --enable-leading-mingw64-underscores
1635 enable leading underscores on 64 bit mingw targets
1636 --enable-cld enable -mcld by default for 32bit x86
1637 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1639 --disable-win32-registry
1640 disable lookup of installation paths in the Registry
1641 on Windows hosts
1642 --enable-win32-registry enable registry lookup (default)
1643 --enable-win32-registry=KEY
1644 use KEY instead of GCC version as the last portion
1645 of the registry key
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=yes]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1652 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1653 --enable-gnu-indirect-function
1654 enable the use of the @gnu_indirect_function to
1655 glibc systems
1656 --enable-initfini-array use .init_array/.fini_array sections
1657 --enable-comdat enable COMDAT group support
1659 --enable-fix-cortex-a53-835769
1660 enable workaround for AArch64 Cortex-A53 erratum
1661 835769 by default
1662 --disable-fix-cortex-a53-835769
1663 disable workaround for AArch64 Cortex-A53 erratum
1664 835769 by default
1667 --enable-fix-cortex-a53-843419
1668 enable workaround for AArch64 Cortex-A53 erratum
1669 843419 by default
1670 --disable-fix-cortex-a53-843419
1671 disable workaround for AArch64 Cortex-A53 erratum
1672 843419 by default
1674 --enable-gnu-unique-object
1675 enable the use of the @gnu_unique_object ELF
1676 extension on glibc systems
1677 --enable-linker-build-id
1678 compiler will always pass --build-id to linker
1679 --enable-default-ssp enable Stack Smashing Protection as default
1680 --enable-maintainer-mode
1681 enable make rules and dependencies not useful (and
1682 sometimes confusing) to the casual installer
1683 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1684 thrashing on the build machine
1685 --enable-version-specific-runtime-libs
1686 specify that runtime libraries should be installed
1687 in a compiler-specific directory
1688 --enable-plugin enable plugin support
1689 --enable-host-shared build host code as shared libraries
1690 --disable-libquadmath-support
1691 disable libquadmath support for Fortran
1692 --enable-default-pie enable Position Independent Executable as default
1694 Optional Packages:
1695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1697 --with-build-libsubdir=DIR Directory where to find libraries for build system
1698 --with-local-prefix=DIR specifies directory to put local include
1699 --with-native-system-header-dir=dir
1700 use dir as the directory to look for standard
1701 system header files in. Defaults to /usr/include.
1702 --with-build-sysroot=sysroot
1703 use sysroot as the system root during the build
1704 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1705 --with-gxx-include-dir=DIR
1706 specifies directory to put g++ header files
1707 --with-cpp-install-dir=DIR
1708 install the user visible C preprocessor in DIR
1709 (relative to PREFIX) as well as PREFIX/bin
1710 --with-gnu-ld arrange to work with GNU ld
1711 --with-ld arrange to use the specified ld (full pathname)
1712 --with-demangler-in-ld try to use demangler in GNU ld
1713 --with-gnu-as arrange to work with GNU as
1714 --with-as arrange to use the specified as (full pathname)
1715 --with-stabs arrange to use stabs instead of host debug format
1716 --with-dwarf2 force the default debug format to be DWARF 2
1717 --with-specs=SPECS add SPECS to driver command-line processing
1718 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1719 --with-bugurl=URL Direct users to URL to report a bug
1720 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1721 --with-gnu-ld assume the C compiler uses GNU ld default=no
1722 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1723 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1725 both]
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1727 --with-plugin-ld=[ARG] specify the plugin linker
1728 --with-glibc-version=M.N
1729 assume GCC used with glibc version M.N or later
1730 --with-long-double-128 use 128-bit long double by default
1731 --with-gc={page,zone} this option is not supported anymore. It used to
1732 choose the garbage collection mechanism to use with
1733 the compiler
1734 --with-system-zlib use installed libz
1735 --with-linker-hash-style={sysv,gnu,both}
1736 specify the linker hash style
1737 --with-diagnostics-color={never,auto,auto-if-env,always}
1738 specify the default of -fdiagnostics-color option
1739 auto-if-env stands for -fdiagnostics-color=auto if
1740 GCC_COLOR environment variable is present and
1741 -fdiagnostics-color=never otherwise
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1753 CXXCPP C++ preprocessor
1754 CPP C preprocessor
1755 GMPLIBS How to link GMP
1756 GMPINC How to find GMP include files
1757 ISLLIBS How to link isl
1758 ISLINC How to find isl include files
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1763 Report bugs to the package provider.
1764 _ACEOF
1765 ac_status=$?
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1773 continue
1774 ac_builddir=.
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1792 case $srcdir in
1793 .) # We are building in place.
1794 ac_srcdir=.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1801 *) # Relative name.
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1811 echo &&
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1816 else
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 fi || ac_status=$?
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1820 done
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825 cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.64
1829 Copyright (C) 2009 Free Software Foundation, Inc.
1830 This configure script is free software; the Free Software Foundation
1831 gives unlimited permission to copy, distribute and modify it.
1832 _ACEOF
1833 exit
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_c_try_compile
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=1
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
1914 } # ac_fn_cxx_try_compile
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1940 }; then :
1941 ac_retval=0
1942 else
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=1
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 return $ac_retval
1951 } # ac_fn_cxx_try_cpp
1953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # ---------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1957 # accordingly.
1958 ac_fn_cxx_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 else
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_cxx_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1981 else
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_cxx_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1997 else
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2006 yes:no: )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 no:yes:* )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=\$ac_header_compiler"
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_cxx_check_header_mongrel
2040 # ac_fn_cxx_try_run LINENO
2041 # ------------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_cxx_try_run ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2055 ac_status=$?
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2068 ac_retval=0
2069 else
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 return $ac_retval
2080 } # ac_fn_cxx_try_run
2082 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_cxx_check_header_compile ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_cxx_check_header_compile
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2116 ac_fn_c_try_cpp ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2120 case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev/null && {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 ac_retval=1
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 return $ac_retval
2148 } # ac_fn_c_try_cpp
2150 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2151 # ----------------------------------------------
2152 # Tries to find the compile-time value of EXPR in a program that includes
2153 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2154 # computed
2155 ac_fn_cxx_compute_int ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if test "$cross_compiling" = yes; then
2159 # Depending upon the size, compute the lo and hi bounds.
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 static int test_array [1 - 2 * !(($2) >= 0)];
2167 test_array [0] = 0
2170 return 0;
2172 _ACEOF
2173 if ac_fn_cxx_try_compile "$LINENO"; then :
2174 ac_lo=0 ac_mid=0
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 main ()
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183 test_array [0] = 0
2186 return 0;
2188 _ACEOF
2189 if ac_fn_cxx_try_compile "$LINENO"; then :
2190 ac_hi=$ac_mid; break
2191 else
2192 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193 if test $ac_lo -le $ac_mid; then
2194 ac_lo= ac_hi=
2195 break
2197 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 done
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 static int test_array [1 - 2 * !(($2) < 0)];
2209 test_array [0] = 0
2212 return 0;
2214 _ACEOF
2215 if ac_fn_cxx_try_compile "$LINENO"; then :
2216 ac_hi=-1 ac_mid=-1
2217 while :; do
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2222 main ()
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2225 test_array [0] = 0
2228 return 0;
2230 _ACEOF
2231 if ac_fn_cxx_try_compile "$LINENO"; then :
2232 ac_lo=$ac_mid; break
2233 else
2234 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2235 if test $ac_mid -le $ac_hi; then
2236 ac_lo= ac_hi=
2237 break
2239 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 done
2243 else
2244 ac_lo= ac_hi=
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 # Binary search between lo and hi bounds.
2250 while test "x$ac_lo" != "x$ac_hi"; do
2251 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2259 test_array [0] = 0
2262 return 0;
2264 _ACEOF
2265 if ac_fn_cxx_try_compile "$LINENO"; then :
2266 ac_hi=$ac_mid
2267 else
2268 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 done
2272 case $ac_lo in #((
2273 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274 '') ac_retval=1 ;;
2275 esac
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2280 static long int longval () { return $2; }
2281 static unsigned long int ulongval () { return $2; }
2282 #include <stdio.h>
2283 #include <stdlib.h>
2285 main ()
2288 FILE *f = fopen ("conftest.val", "w");
2289 if (! f)
2290 return 1;
2291 if (($2) < 0)
2293 long int i = longval ();
2294 if (i != ($2))
2295 return 1;
2296 fprintf (f, "%ld", i);
2298 else
2300 unsigned long int i = ulongval ();
2301 if (i != ($2))
2302 return 1;
2303 fprintf (f, "%lu", i);
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2310 return 0;
2312 _ACEOF
2313 if ac_fn_cxx_try_run "$LINENO"; then :
2314 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2315 else
2316 ac_retval=1
2318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2319 conftest.$ac_objext conftest.beam conftest.$ac_ext
2320 rm -f conftest.val
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 return $ac_retval
2326 } # ac_fn_cxx_compute_int
2328 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_cxx_check_type ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 eval "$3=no"
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2345 main ()
2347 if (sizeof ($2))
2348 return 0;
2350 return 0;
2352 _ACEOF
2353 if ac_fn_cxx_try_compile "$LINENO"; then :
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2358 main ()
2360 if (sizeof (($2)))
2361 return 0;
2363 return 0;
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2368 else
2369 eval "$3=yes"
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_cxx_check_type
2382 # ac_fn_c_find_intX_t LINENO BITS VAR
2383 # -----------------------------------
2384 # Finds a signed integer type with width BITS, setting cache variable VAR
2385 # accordingly.
2386 ac_fn_c_find_intX_t ()
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2390 $as_echo_n "checking for int$2_t... " >&6; }
2391 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2393 else
2394 eval "$3=no"
2395 for ac_type in int$2_t 'int' 'long int' \
2396 'long long int' 'short int' 'signed char'; do
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2401 main ()
2403 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2404 test_array [0] = 0
2407 return 0;
2409 _ACEOF
2410 if ac_fn_cxx_try_compile "$LINENO"; then :
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2415 main ()
2417 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2418 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2419 test_array [0] = 0
2422 return 0;
2424 _ACEOF
2425 if ac_fn_cxx_try_compile "$LINENO"; then :
2427 else
2428 case $ac_type in #(
2429 int$2_t) :
2430 eval "$3=yes" ;; #(
2431 *) :
2432 eval "$3=\$ac_type" ;;
2433 esac
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 eval as_val=\$$3
2439 if test "x$as_val" = x""no; then :
2441 else
2442 break
2444 done
2446 eval ac_res=\$$3
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 } # ac_fn_c_find_intX_t
2453 # ac_fn_cxx_try_link LINENO
2454 # -------------------------
2455 # Try to link conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_link ()
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 rm -f conftest.$ac_objext conftest$ac_exeext
2460 if { { ac_try="$ac_link"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2468 ac_status=$?
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2481 }; then :
2482 ac_retval=0
2483 else
2484 $as_echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 ac_retval=1
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495 return $ac_retval
2497 } # ac_fn_cxx_try_link
2499 # ac_fn_c_find_uintX_t LINENO BITS VAR
2500 # ------------------------------------
2501 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2502 # accordingly.
2503 ac_fn_c_find_uintX_t ()
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2507 $as_echo_n "checking for uint$2_t... " >&6; }
2508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 eval "$3=no"
2512 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2513 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2518 main ()
2520 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2521 test_array [0] = 0
2524 return 0;
2526 _ACEOF
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2528 case $ac_type in #(
2529 uint$2_t) :
2530 eval "$3=yes" ;; #(
2531 *) :
2532 eval "$3=\$ac_type" ;;
2533 esac
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 eval as_val=\$$3
2537 if test "x$as_val" = x""no; then :
2539 else
2540 break
2542 done
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_c_find_uintX_t
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 #include <$2>
2565 _ACEOF
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2571 rm -f conftest.err conftest.$ac_ext
2573 eval ac_res=\$$3
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_cxx_check_header_preproc
2580 # ac_fn_cxx_check_func LINENO FUNC VAR
2581 # ------------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_cxx_check_func ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2602 #ifdef __STDC__
2603 # include <limits.h>
2604 #else
2605 # include <assert.h>
2606 #endif
2608 #undef $2
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 char $2 ();
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2621 choke me
2622 #endif
2625 main ()
2627 return $2 ();
2629 return 0;
2631 _ACEOF
2632 if ac_fn_cxx_try_link "$LINENO"; then :
2633 eval "$3=yes"
2634 else
2635 eval "$3=no"
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2640 eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 } # ac_fn_cxx_check_func
2647 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2648 # --------------------------------------
2649 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2650 ac_fn_cxx_check_decl ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2664 main ()
2666 #ifndef $as_decl_name
2667 #ifdef __cplusplus
2668 (void) $as_decl_use;
2669 #else
2670 (void) $as_decl_name;
2671 #endif
2672 #endif
2675 return 0;
2677 _ACEOF
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 eval "$3=yes"
2680 else
2681 eval "$3=no"
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 } # ac_fn_cxx_check_decl
2692 # ac_fn_c_try_link LINENO
2693 # -----------------------
2694 # Try to link conftest.$ac_ext, and return whether this succeeded.
2695 ac_fn_c_try_link ()
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 rm -f conftest.$ac_objext conftest$ac_exeext
2699 if { { ac_try="$ac_link"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link") 2>conftest.err
2707 ac_status=$?
2708 if test -s conftest.err; then
2709 grep -v '^ *+' conftest.err >conftest.er1
2710 cat conftest.er1 >&5
2711 mv -f conftest.er1 conftest.err
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest$ac_exeext && {
2718 test "$cross_compiling" = yes ||
2719 $as_test_x conftest$ac_exeext
2720 }; then :
2721 ac_retval=0
2722 else
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 ac_retval=1
2728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2730 # interfere with the next link command; also delete a directory that is
2731 # left behind by Apple's compiler. We do this before executing the actions.
2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 return $ac_retval
2736 } # ac_fn_c_try_link
2738 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2739 # ----------------------------------------------
2740 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_preproc ()
2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2751 #include <$2>
2752 _ACEOF
2753 if ac_fn_c_try_cpp "$LINENO"; then :
2754 eval "$3=yes"
2755 else
2756 eval "$3=no"
2758 rm -f conftest.err conftest.$ac_ext
2760 eval ac_res=\$$3
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2765 } # ac_fn_c_check_header_preproc
2767 # ac_fn_c_check_func LINENO FUNC VAR
2768 # ----------------------------------
2769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2770 ac_fn_c_check_func ()
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2782 #define $2 innocuous_$2
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $2 (); below.
2786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 <limits.h> exists even on freestanding compilers. */
2789 #ifdef __STDC__
2790 # include <limits.h>
2791 #else
2792 # include <assert.h>
2793 #endif
2795 #undef $2
2797 /* Override any GCC internal prototype to avoid an error.
2798 Use char because int might match the return type of a GCC
2799 builtin and then its argument prototype would still apply. */
2800 #ifdef __cplusplus
2801 extern "C"
2802 #endif
2803 char $2 ();
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined __stub_$2 || defined __stub___$2
2808 choke me
2809 #endif
2812 main ()
2814 return $2 ();
2816 return 0;
2818 _ACEOF
2819 if ac_fn_c_try_link "$LINENO"; then :
2820 eval "$3=yes"
2821 else
2822 eval "$3=no"
2824 rm -f core conftest.err conftest.$ac_objext \
2825 conftest$ac_exeext conftest.$ac_ext
2827 eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2832 } # ac_fn_c_check_func
2833 cat >config.log <<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.64. Invocation command line was
2840 $ $0 $@
2842 _ACEOF
2843 exec 5>>config.log
2845 cat <<_ASUNAME
2846 ## --------- ##
2847 ## Platform. ##
2848 ## --------- ##
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2867 _ASUNAME
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 $as_echo "PATH: $as_dir"
2875 done
2876 IFS=$as_save_IFS
2878 } >&5
2880 cat >&5 <<_ACEOF
2883 ## ----------- ##
2884 ## Core tests. ##
2885 ## ----------- ##
2887 _ACEOF
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2895 ac_configure_args=
2896 ac_configure_args0=
2897 ac_configure_args1=
2898 ac_must_keep_next=false
2899 for ac_pass in 1 2
2901 for ac_arg
2903 case $ac_arg in
2904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2906 | -silent | --silent | --silen | --sile | --sil)
2907 continue ;;
2908 *\'*)
2909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2910 esac
2911 case $ac_pass in
2912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2914 as_fn_append ac_configure_args1 " '$ac_arg'"
2915 if test $ac_must_keep_next = true; then
2916 ac_must_keep_next=false # Got value, back to normal.
2917 else
2918 case $ac_arg in
2919 *=* | --config-cache | -C | -disable-* | --disable-* \
2920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2922 | -with-* | --with-* | -without-* | --without-* | --x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2925 esac
2927 -* ) ac_must_keep_next=true ;;
2928 esac
2930 as_fn_append ac_configure_args " '$ac_arg'"
2932 esac
2933 done
2934 done
2935 { ac_configure_args0=; unset ac_configure_args0;}
2936 { ac_configure_args1=; unset ac_configure_args1;}
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2946 echo
2948 cat <<\_ASBOX
2949 ## ---------------- ##
2950 ## Cache variables. ##
2951 ## ---------------- ##
2952 _ASBOX
2953 echo
2954 # The following way of writing the cache mishandles newlines in values,
2956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2957 eval ac_val=\$$ac_var
2958 case $ac_val in #(
2959 *${as_nl}*)
2960 case $ac_var in #(
2961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2963 esac
2964 case $ac_var in #(
2965 _ | IFS | as_nl) ;; #(
2966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967 *) { eval $ac_var=; unset $ac_var;} ;;
2968 esac ;;
2969 esac
2970 done
2971 (set) 2>&1 |
2972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2973 *${as_nl}ac_space=\ *)
2974 sed -n \
2975 "s/'\''/'\''\\\\'\'''\''/g;
2976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2977 ;; #(
2979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2981 esac |
2982 sort
2984 echo
2986 cat <<\_ASBOX
2987 ## ----------------- ##
2988 ## Output variables. ##
2989 ## ----------------- ##
2990 _ASBOX
2991 echo
2992 for ac_var in $ac_subst_vars
2994 eval ac_val=\$$ac_var
2995 case $ac_val in
2996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2997 esac
2998 $as_echo "$ac_var='\''$ac_val'\''"
2999 done | sort
3000 echo
3002 if test -n "$ac_subst_files"; then
3003 cat <<\_ASBOX
3004 ## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##
3007 _ASBOX
3008 echo
3009 for ac_var in $ac_subst_files
3011 eval ac_val=\$$ac_var
3012 case $ac_val in
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 esac
3015 $as_echo "$ac_var='\''$ac_val'\''"
3016 done | sort
3017 echo
3020 if test -s confdefs.h; then
3021 cat <<\_ASBOX
3022 ## ----------- ##
3023 ## confdefs.h. ##
3024 ## ----------- ##
3025 _ASBOX
3026 echo
3027 cat confdefs.h
3028 echo
3030 test "$ac_signal" != 0 &&
3031 $as_echo "$as_me: caught signal $ac_signal"
3032 $as_echo "$as_me: exit $exit_status"
3033 } >&5
3034 rm -f core *.core core.conftest.* &&
3035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3036 exit $exit_status
3038 for ac_signal in 1 2 13 15; do
3039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3040 done
3041 ac_signal=0
3043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3044 rm -f -r conftest* confdefs.h
3046 $as_echo "/* confdefs.h */" > confdefs.h
3048 # Predefined preprocessor variables.
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_NAME "$PACKAGE_NAME"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_STRING "$PACKAGE_STRING"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3068 _ACEOF
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_URL "$PACKAGE_URL"
3072 _ACEOF
3075 # Let the site file select an alternate cache file if it wants to.
3076 # Prefer an explicitly selected file to automatically selected ones.
3077 ac_site_file1=NONE
3078 ac_site_file2=NONE
3079 if test -n "$CONFIG_SITE"; then
3080 ac_site_file1=$CONFIG_SITE
3081 elif test "x$prefix" != xNONE; then
3082 ac_site_file1=$prefix/share/config.site
3083 ac_site_file2=$prefix/etc/config.site
3084 else
3085 ac_site_file1=$ac_default_prefix/share/config.site
3086 ac_site_file2=$ac_default_prefix/etc/config.site
3088 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3090 test "x$ac_site_file" = xNONE && continue
3091 if test -r "$ac_site_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3094 sed 's/^/| /' "$ac_site_file" >&5
3095 . "$ac_site_file"
3097 done
3099 if test -r "$cache_file"; then
3100 # Some versions of bash will fail to source /dev/null (special
3101 # files actually), so we avoid doing that.
3102 if test -f "$cache_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3104 $as_echo "$as_me: loading cache $cache_file" >&6;}
3105 case $cache_file in
3106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3107 *) . "./$cache_file";;
3108 esac
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3112 $as_echo "$as_me: creating cache $cache_file" >&6;}
3113 >$cache_file
3116 # Check that the precious variables saved in the cache have kept the same
3117 # value.
3118 ac_cache_corrupted=false
3119 for ac_var in $ac_precious_vars; do
3120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3121 eval ac_new_set=\$ac_env_${ac_var}_set
3122 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3123 eval ac_new_val=\$ac_env_${ac_var}_value
3124 case $ac_old_set,$ac_new_set in
3125 set,)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,set)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3132 ac_cache_corrupted=: ;;
3133 ,);;
3135 if test "x$ac_old_val" != "x$ac_new_val"; then
3136 # differences in whitespace do not lead to failure.
3137 ac_old_val_w=`echo x $ac_old_val`
3138 ac_new_val_w=`echo x $ac_new_val`
3139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3142 ac_cache_corrupted=:
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3146 eval $ac_var=\$ac_old_val
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3152 fi;;
3153 esac
3154 # Pass precious variables to config.status.
3155 if test "$ac_new_set" = set; then
3156 case $ac_new_val in
3157 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 *) ac_arg=$ac_var=$ac_new_val ;;
3159 esac
3160 case " $ac_configure_args " in
3161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3162 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3163 esac
3165 done
3166 if $ac_cache_corrupted; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3171 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3173 ## -------------------- ##
3174 ## Main body of script. ##
3175 ## -------------------- ##
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3191 gcc_version=`cat $srcdir/BASE-VER`
3193 # Determine the host, build, and target systems
3194 ac_aux_dir=
3195 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3196 for ac_t in install-sh install.sh shtool; do
3197 if test -f "$ac_dir/$ac_t"; then
3198 ac_aux_dir=$ac_dir
3199 ac_install_sh="$ac_aux_dir/$ac_t -c"
3200 break 2
3202 done
3203 done
3204 if test -z "$ac_aux_dir"; then
3205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3208 # These three variables are undocumented and unsupported,
3209 # and are intended to be withdrawn in a future Autoconf release.
3210 # They can cause serious problems if a builder's source tree is in a directory
3211 # whose full name contains unusual characters.
3212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3217 # Make sure we can run config.sub.
3218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3222 $as_echo_n "checking build system type... " >&6; }
3223 if test "${ac_cv_build+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 ac_build_alias=$build_alias
3227 test "x$ac_build_alias" = x &&
3228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3229 test "x$ac_build_alias" = x &&
3230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3236 $as_echo "$ac_cv_build" >&6; }
3237 case $ac_cv_build in
3238 *-*-*) ;;
3239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3240 esac
3241 build=$ac_cv_build
3242 ac_save_IFS=$IFS; IFS='-'
3243 set x $ac_cv_build
3244 shift
3245 build_cpu=$1
3246 build_vendor=$2
3247 shift; shift
3248 # Remember, the first character of IFS is used to create $*,
3249 # except with old shells:
3250 build_os=$*
3251 IFS=$ac_save_IFS
3252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3256 $as_echo_n "checking host system type... " >&6; }
3257 if test "${ac_cv_host+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test "x$host_alias" = x; then
3261 ac_cv_host=$ac_cv_build
3262 else
3263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3264 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 $as_echo "$ac_cv_host" >&6; }
3270 case $ac_cv_host in
3271 *-*-*) ;;
3272 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3273 esac
3274 host=$ac_cv_host
3275 ac_save_IFS=$IFS; IFS='-'
3276 set x $ac_cv_host
3277 shift
3278 host_cpu=$1
3279 host_vendor=$2
3280 shift; shift
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3283 host_os=$*
3284 IFS=$ac_save_IFS
3285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3289 $as_echo_n "checking target system type... " >&6; }
3290 if test "${ac_cv_target+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test "x$target_alias" = x; then
3294 ac_cv_target=$ac_cv_host
3295 else
3296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3297 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3302 $as_echo "$ac_cv_target" >&6; }
3303 case $ac_cv_target in
3304 *-*-*) ;;
3305 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3306 esac
3307 target=$ac_cv_target
3308 ac_save_IFS=$IFS; IFS='-'
3309 set x $ac_cv_target
3310 shift
3311 target_cpu=$1
3312 target_vendor=$2
3313 shift; shift
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3316 target_os=$*
3317 IFS=$ac_save_IFS
3318 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3321 # The aliases save the names the user supplied, while $host etc.
3322 # will get canonicalized.
3323 test -n "$target_alias" &&
3324 test "$program_prefix$program_suffix$program_transform_name" = \
3325 NONENONEs,x,x, &&
3326 program_prefix=${target_alias}-
3328 # Determine the noncanonical host name, for Ada.
3329 case ${build_alias} in
3330 "") build_noncanonical=${build} ;;
3331 *) build_noncanonical=${build_alias} ;;
3332 esac
3334 case ${host_alias} in
3335 "") host_noncanonical=${build_noncanonical} ;;
3336 *) host_noncanonical=${host_alias} ;;
3337 esac
3342 # Determine the noncanonical target name, for directory use.
3343 case ${target_alias} in
3344 "") target_noncanonical=${host_noncanonical} ;;
3345 *) target_noncanonical=${target_alias} ;;
3346 esac
3351 # Used for constructing correct paths for offload compilers.
3352 real_target_noncanonical=${target_noncanonical}
3353 accel_dir_suffix=
3355 # Determine the target- and build-specific subdirectories
3357 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3358 # have matching libraries, they should use host libraries: Makefile.tpl
3359 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3360 # However, they still use the build modules, because the corresponding
3361 # host modules (e.g. bison) are only built for the host when bootstrap
3362 # finishes. So:
3363 # - build_subdir is where we find build modules, and never changes.
3364 # - build_libsubdir is where we find build libraries, and can be overridden.
3366 # Prefix 'build-' so this never conflicts with target_subdir.
3367 build_subdir="build-${build_noncanonical}"
3369 # Check whether --with-build-libsubdir was given.
3370 if test "${with_build_libsubdir+set}" = set; then :
3371 withval=$with_build_libsubdir; build_libsubdir="$withval"
3372 else
3373 build_libsubdir="$build_subdir"
3376 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3377 if ( test $srcdir = . && test -d gcc ) \
3378 || test -d $srcdir/../host-${host_noncanonical}; then
3379 host_subdir="host-${host_noncanonical}"
3380 else
3381 host_subdir=.
3383 # No prefix.
3384 target_subdir=${target_noncanonical}
3387 # Set program_transform_name
3388 test "$program_prefix" != NONE &&
3389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE &&
3392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3399 # Check for bogus environment variables.
3400 # Test if LIBRARY_PATH contains the notation for the current directory
3401 # since this would lead to problems installing/building glibc.
3402 # LIBRARY_PATH contains the current directory if one of the following
3403 # is true:
3404 # - one of the terminals (":" and ";") is the first or last sign
3405 # - two terminals occur directly after each other
3406 # - the path contains an element with a dot in it
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3408 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3409 case ${LIBRARY_PATH} in
3410 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3411 library_path_setting="contains current directory"
3414 library_path_setting="ok"
3416 esac
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3418 $as_echo "$library_path_setting" >&6; }
3419 if test "$library_path_setting" != "ok"; then
3420 as_fn_error "
3421 *** LIBRARY_PATH shouldn't contain the current directory when
3422 *** building gcc. Please change the environment variable
3423 *** and run configure again." "$LINENO" 5
3426 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # GCC_EXEC_PREFIX contains the current directory if one of the following
3429 # is true:
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3434 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3435 case ${GCC_EXEC_PREFIX} in
3436 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3437 gcc_exec_prefix_setting="contains current directory"
3440 gcc_exec_prefix_setting="ok"
3442 esac
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3444 $as_echo "$gcc_exec_prefix_setting" >&6; }
3445 if test "$gcc_exec_prefix_setting" != "ok"; then
3446 as_fn_error "
3447 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3452 # -----------
3453 # Directories
3454 # -----------
3456 # Specify the local prefix
3457 local_prefix=
3459 # Check whether --with-local-prefix was given.
3460 if test "${with_local_prefix+set}" = set; then :
3461 withval=$with_local_prefix; case "${withval}" in
3462 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3463 no) ;;
3464 *) local_prefix=$with_local_prefix ;;
3465 esac
3469 # Default local prefix if it is empty
3470 if test x$local_prefix = x; then
3471 local_prefix=/usr/local
3475 # Check whether --with-native-system-header-dir was given.
3476 if test "${with_native_system_header_dir+set}" = set; then :
3477 withval=$with_native_system_header_dir;
3478 case ${with_native_system_header_dir} in
3479 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3480 /* | [A-Za-z]:[\\/]*) ;;
3481 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3482 esac
3483 configured_native_system_header_dir="${withval}"
3485 else
3486 configured_native_system_header_dir=
3491 # Check whether --with-build-sysroot was given.
3492 if test "${with_build_sysroot+set}" = set; then :
3493 withval=$with_build_sysroot; if test x"$withval" != x ; then
3494 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3496 else
3497 SYSROOT_CFLAGS_FOR_TARGET=
3502 if test "x$prefix" = xNONE; then
3503 test_prefix=/usr/local
3504 else
3505 test_prefix=$prefix
3507 if test "x$exec_prefix" = xNONE; then
3508 test_exec_prefix=$test_prefix
3509 else
3510 test_exec_prefix=$exec_prefix
3514 # Check whether --with-sysroot was given.
3515 if test "${with_sysroot+set}" = set; then :
3516 withval=$with_sysroot;
3517 case ${with_sysroot} in
3518 /) ;;
3519 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3520 esac
3521 case ${with_sysroot} in
3522 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3523 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3524 esac
3526 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3527 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3529 case ${TARGET_SYSTEM_ROOT} in
3530 "${test_prefix}"|"${test_prefix}/"*|\
3531 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3532 '${prefix}'|'${prefix}/'*|\
3533 '${exec_prefix}'|'${exec_prefix}/'*)
3534 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3535 TARGET_SYSTEM_ROOT_DEFINE="$t"
3537 esac
3539 else
3541 TARGET_SYSTEM_ROOT=
3542 TARGET_SYSTEM_ROOT_DEFINE=
3543 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3551 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3552 # passed in by the toplevel make and thus we'd get different behavior
3553 # depending on where we built the sources.
3554 gcc_gxx_include_dir=
3555 # Specify the g++ header file directory
3557 # Check whether --with-gxx-include-dir was given.
3558 if test "${with_gxx_include_dir+set}" = set; then :
3559 withval=$with_gxx_include_dir; case "${withval}" in
3560 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3561 no) ;;
3562 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3563 esac
3567 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3568 if test x${gcc_gxx_include_dir} = x; then
3569 if test x${enable_version_specific_runtime_libs} = xyes; then
3570 gcc_gxx_include_dir='${libsubdir}/include/c++'
3571 else
3572 libstdcxx_incdir='include/c++/$(version)'
3573 if test x$host != x$target; then
3574 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3576 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3580 gcc_gxx_include_dir_add_sysroot=0
3581 if test "${with_sysroot+set}" = set; then
3582 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3583 if test "${gcc_gxx_without_sysroot}"; then
3584 if test x${with_sysroot} != x/; then
3585 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3587 gcc_gxx_include_dir_add_sysroot=1
3592 # Check whether --with-cpp_install_dir was given.
3593 if test "${with_cpp_install_dir+set}" = set; then :
3594 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3595 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3596 elif test x$withval != xno; then
3597 cpp_install_dir=$withval
3602 # We would like to our source tree to be readonly. However when releases or
3603 # pre-releases are generated, the flex/bison generated files as well as the
3604 # various formats of manuals need to be included along with the rest of the
3605 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3606 # just that.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3609 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3610 # Check whether --enable-generated-files-in-srcdir was given.
3611 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3612 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3613 else
3614 generated_files_in_srcdir=no
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3619 $as_echo "$generated_files_in_srcdir" >&6; }
3621 if test "$generated_files_in_srcdir" = "yes"; then
3622 GENINSRC=''
3623 else
3624 GENINSRC='#'
3628 # -------------------
3629 # Find default linker
3630 # -------------------
3632 # With GNU ld
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3637 else
3638 gnu_ld_flag=no
3642 # With pre-defined ld
3644 # Check whether --with-ld was given.
3645 if test "${with_ld+set}" = set; then :
3646 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3649 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3650 if test ! -x "$DEFAULT_LINKER"; then
3651 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3652 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3653 gnu_ld_flag=yes
3656 cat >>confdefs.h <<_ACEOF
3657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3658 _ACEOF
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3663 $as_echo_n "checking whether a default linker was specified... " >&6; }
3664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3665 if test x"$gnu_ld_flag" = x"no"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3667 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3670 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3677 # With demangler in GNU ld
3679 # Check whether --with-demangler-in-ld was given.
3680 if test "${with_demangler_in_ld+set}" = set; then :
3681 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3682 else
3683 demangler_in_ld=yes
3687 # ----------------------
3688 # Find default assembler
3689 # ----------------------
3691 # With GNU as
3693 # Check whether --with-gnu-as was given.
3694 if test "${with_gnu_as+set}" = set; then :
3695 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3696 else
3697 gas_flag=no
3702 # Check whether --with-as was given.
3703 if test "${with_as+set}" = set; then :
3704 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3708 if test ! -x "$DEFAULT_ASSEMBLER"; then
3709 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3710 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3711 gas_flag=yes
3714 cat >>confdefs.h <<_ACEOF
3715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3716 _ACEOF
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3721 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3722 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3723 if test x"$gas_flag" = x"no"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3725 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3728 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3735 # ---------------
3736 # Find C compiler
3737 # ---------------
3739 # If a non-executable a.out is present (e.g. created by GNU as above even if
3740 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3741 # file, even when creating an executable, so an execution test fails.
3742 # Remove possible default executable files to avoid this.
3744 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3745 # Autoconf includes it.
3746 rm -f a.out a.exe b.out
3748 # Find the native compiler
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if test "${ac_cv_prog_CC+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3776 done
3777 done
3778 IFS=$as_save_IFS
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3793 if test -z "$ac_cv_prog_CC"; then
3794 ac_ct_CC=$CC
3795 # Extract the first word of "gcc", so it can be a program name with args.
3796 set dummy gcc; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_ac_ct_CC="gcc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3831 if test "x$ac_ct_CC" = x; then
3832 CC=""
3833 else
3834 case $cross_compiling:$ac_tool_warned in
3835 yes:)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838 ac_tool_warned=yes ;;
3839 esac
3840 CC=$ac_ct_CC
3842 else
3843 CC="$ac_cv_prog_CC"
3846 if test -z "$CC"; then
3847 if test -n "$ac_tool_prefix"; then
3848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3849 set dummy ${ac_tool_prefix}cc; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_CC="${ac_tool_prefix}cc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3869 done
3870 done
3871 IFS=$as_save_IFS
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3887 if test -z "$CC"; then
3888 # Extract the first word of "cc", so it can be a program name with args.
3889 set dummy cc; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 else
3898 ac_prog_rejected=no
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3907 ac_prog_rejected=yes
3908 continue
3910 ac_cv_prog_CC="cc"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3918 if test $ac_prog_rejected = yes; then
3919 # We found a bogon in the path, so make sure we never use it.
3920 set dummy $ac_cv_prog_CC
3921 shift
3922 if test $# != 0; then
3923 # We chose a different compiler from the bogus one.
3924 # However, it has the same basename, so the bogon will be chosen
3925 # first if we set CC to just the basename; use the full file name.
3926 shift
3927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3932 CC=$ac_cv_prog_CC
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 for ac_prog in cl.exe
3947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3968 done
3969 done
3970 IFS=$as_save_IFS
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3984 test -n "$CC" && break
3985 done
3987 if test -z "$CC"; then
3988 ac_ct_CC=$CC
3989 for ac_prog in cl.exe
3991 # Extract the first word of "$ac_prog", so it can be a program name with args.
3992 set dummy $ac_prog; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -n "$ac_ct_CC"; then
3999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_ac_ct_CC="$ac_prog"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4014 IFS=$as_save_IFS
4018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4019 if test -n "$ac_ct_CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4021 $as_echo "$ac_ct_CC" >&6; }
4022 else
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4028 test -n "$ac_ct_CC" && break
4029 done
4031 if test "x$ac_ct_CC" = x; then
4032 CC=""
4033 else
4034 case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040 CC=$ac_ct_CC
4047 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error "no acceptable C compiler found in \$PATH
4050 See \`config.log' for more details." "$LINENO" 5; }
4052 # Provide some information about the compiler.
4053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4054 set X $ac_compile
4055 ac_compiler=$2
4056 for ac_option in --version -v -V -qversion; do
4057 { { ac_try="$ac_compiler $ac_option >&5"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4065 ac_status=$?
4066 if test -s conftest.err; then
4067 sed '10a\
4068 ... rest of stderr output deleted ...
4069 10q' conftest.err >conftest.er1
4070 cat conftest.er1 >&5
4071 rm -f conftest.er1 conftest.err
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4075 done
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 ac_clean_files_save=$ac_clean_files
4089 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4090 # Try to create an executable without -o first, disregard a.out.
4091 # It will help us diagnose broken compilers, and finding out an intuition
4092 # of exeext.
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 $as_echo_n "checking for C compiler default output file name... " >&6; }
4095 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4097 # The possible output files:
4098 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4100 ac_rmfiles=
4101 for ac_file in $ac_files
4103 case $ac_file in
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4106 esac
4107 done
4108 rm -f $ac_rmfiles
4110 if { { ac_try="$ac_link_default"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_link_default") 2>&5
4118 ac_status=$?
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4124 # so that the user can short-circuit this test for compilers unknown to
4125 # Autoconf.
4126 for ac_file in $ac_files ''
4128 test -f "$ac_file" || continue
4129 case $ac_file in
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4132 [ab].out )
4133 # We found the default executable, but exeext='' is most
4134 # certainly right.
4135 break;;
4136 *.* )
4137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4138 then :; else
4139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4141 # We set ac_cv_exeext here because the later test for it is not
4142 # safe: cross compilers may not add the suffix if given an `-o'
4143 # argument, so we may need to know it at that point already.
4144 # Even if this section looks crufty: it has the advantage of
4145 # actually working.
4146 break;;
4148 break;;
4149 esac
4150 done
4151 test "$ac_cv_exeext" = no && ac_cv_exeext=
4153 else
4154 ac_file=''
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4157 $as_echo "$ac_file" >&6; }
4158 if test -z "$ac_file"; then :
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 { as_fn_set_status 77
4165 as_fn_error "C compiler cannot create executables
4166 See \`config.log' for more details." "$LINENO" 5; }; }
4168 ac_exeext=$ac_cv_exeext
4170 # Check that the compiler produces executables we can run. If not, either
4171 # the compiler is broken, or we cross compile.
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4173 $as_echo_n "checking whether the C compiler works... " >&6; }
4174 # If not cross compiling, check that we can run a simple program.
4175 if test "$cross_compiling" != yes; then
4176 if { ac_try='./$ac_file'
4177 { { case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }; }; then
4187 cross_compiling=no
4188 else
4189 if test "$cross_compiling" = maybe; then
4190 cross_compiling=yes
4191 else
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "cannot run C compiled programs.
4195 If you meant to cross compile, use \`--host'.
4196 See \`config.log' for more details." "$LINENO" 5; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4204 ac_clean_files=$ac_clean_files_save
4205 # Check that the compiler produces executables we can run. If not, either
4206 # the compiler is broken, or we cross compile.
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4208 $as_echo_n "checking whether we are cross compiling... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4210 $as_echo "$cross_compiling" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4213 $as_echo_n "checking for suffix of executables... " >&6; }
4214 if { { ac_try="$ac_link"
4215 case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218 esac
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_link") 2>&5
4222 ac_status=$?
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }; then :
4225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4227 # work properly (i.e., refer to `conftest.exe'), while it won't with
4228 # `rm'.
4229 for ac_file in conftest.exe conftest conftest.*; do
4230 test -f "$ac_file" || continue
4231 case $ac_file in
4232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4234 break;;
4235 * ) break;;
4236 esac
4237 done
4238 else
4239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error "cannot compute suffix of executables: cannot compile and link
4242 See \`config.log' for more details." "$LINENO" 5; }
4244 rm -f conftest$ac_cv_exeext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4246 $as_echo "$ac_cv_exeext" >&6; }
4248 rm -f conftest.$ac_ext
4249 EXEEXT=$ac_cv_exeext
4250 ac_exeext=$EXEEXT
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4252 $as_echo_n "checking for suffix of object files... " >&6; }
4253 if test "${ac_cv_objext+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4260 main ()
4264 return 0;
4266 _ACEOF
4267 rm -f conftest.o conftest.obj
4268 if { { ac_try="$ac_compile"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_compile") 2>&5
4276 ac_status=$?
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }; then :
4279 for ac_file in conftest.o conftest.obj conftest.*; do
4280 test -f "$ac_file" || continue;
4281 case $ac_file in
4282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4283 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4284 break;;
4285 esac
4286 done
4287 else
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error "cannot compute suffix of object files: cannot compile
4294 See \`config.log' for more details." "$LINENO" 5; }
4296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4299 $as_echo "$ac_cv_objext" >&6; }
4300 OBJEXT=$ac_cv_objext
4301 ac_objext=$OBJEXT
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4304 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4311 main ()
4313 #ifndef __GNUC__
4314 choke me
4315 #endif
4318 return 0;
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_compiler_gnu=yes
4323 else
4324 ac_compiler_gnu=no
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4331 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4332 if test $ac_compiler_gnu = yes; then
4333 GCC=yes
4334 else
4335 GCC=
4337 ac_test_CFLAGS=${CFLAGS+set}
4338 ac_save_CFLAGS=$CFLAGS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4341 if test "${ac_cv_prog_cc_g+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 ac_save_c_werror_flag=$ac_c_werror_flag
4345 ac_c_werror_flag=yes
4346 ac_cv_prog_cc_g=no
4347 CFLAGS="-g"
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4352 main ()
4356 return 0;
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_prog_cc_g=yes
4361 else
4362 CFLAGS=""
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4367 main ()
4371 return 0;
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4376 else
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4378 CFLAGS="-g"
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4383 main ()
4387 return 0;
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_prog_cc_g=yes
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4401 $as_echo "$ac_cv_prog_cc_g" >&6; }
4402 if test "$ac_test_CFLAGS" = set; then
4403 CFLAGS=$ac_save_CFLAGS
4404 elif test $ac_cv_prog_cc_g = yes; then
4405 if test "$GCC" = yes; then
4406 CFLAGS="-g -O2"
4407 else
4408 CFLAGS="-g"
4410 else
4411 if test "$GCC" = yes; then
4412 CFLAGS="-O2"
4413 else
4414 CFLAGS=
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4418 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4419 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 ac_cv_prog_cc_c89=no
4423 ac_save_CC=$CC
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <stdarg.h>
4427 #include <stdio.h>
4428 #include <sys/types.h>
4429 #include <sys/stat.h>
4430 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4431 struct buf { int x; };
4432 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4433 static char *e (p, i)
4434 char **p;
4435 int i;
4437 return p[i];
4439 static char *f (char * (*g) (char **, int), char **p, ...)
4441 char *s;
4442 va_list v;
4443 va_start (v,p);
4444 s = g (p, va_arg (v,int));
4445 va_end (v);
4446 return s;
4449 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4450 function prototypes and stuff, but not '\xHH' hex character constants.
4451 These don't provoke an error unfortunately, instead are silently treated
4452 as 'x'. The following induces an error, until -std is added to get
4453 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4454 array size at least. It's necessary to write '\x00'==0 to get something
4455 that's true only with -std. */
4456 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4458 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4459 inside strings and character constants. */
4460 #define FOO(x) 'x'
4461 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4463 int test (int i, double x);
4464 struct s1 {int (*f) (int a);};
4465 struct s2 {int (*f) (double a);};
4466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4467 int argc;
4468 char **argv;
4470 main ()
4472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4474 return 0;
4476 _ACEOF
4477 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4478 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4480 CC="$ac_save_CC $ac_arg"
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_prog_cc_c89=$ac_arg
4484 rm -f core conftest.err conftest.$ac_objext
4485 test "x$ac_cv_prog_cc_c89" != "xno" && break
4486 done
4487 rm -f conftest.$ac_ext
4488 CC=$ac_save_CC
4491 # AC_CACHE_VAL
4492 case "x$ac_cv_prog_cc_c89" in
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4495 $as_echo "none needed" >&6; } ;;
4496 xno)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 $as_echo "unsupported" >&6; } ;;
4500 CC="$CC $ac_cv_prog_cc_c89"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4502 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4503 esac
4504 if test "x$ac_cv_prog_cc_c89" != xno; then :
4508 ac_ext=c
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514 ac_ext=cpp
4515 ac_cpp='$CXXCPP $CPPFLAGS'
4516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519 if test -z "$CXX"; then
4520 if test -n "$CCC"; then
4521 CXX=$CCC
4522 else
4523 if test -n "$ac_tool_prefix"; then
4524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CXX+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$CXX"; then
4534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 CXX=$ac_cv_prog_CXX
4554 if test -n "$CXX"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4556 $as_echo "$CXX" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$CXX" && break
4564 done
4566 if test -z "$CXX"; then
4567 ac_ct_CXX=$CXX
4568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$ac_ct_CXX"; then
4578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_ac_ct_CXX="$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4598 if test -n "$ac_ct_CXX"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4600 $as_echo "$ac_ct_CXX" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4607 test -n "$ac_ct_CXX" && break
4608 done
4610 if test "x$ac_ct_CXX" = x; then
4611 CXX="g++"
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 CXX=$ac_ct_CXX
4625 # Provide some information about the compiler.
4626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4627 set X $ac_compile
4628 ac_compiler=$2
4629 for ac_option in --version -v -V -qversion; do
4630 { { ac_try="$ac_compiler $ac_option >&5"
4631 case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4638 ac_status=$?
4639 if test -s conftest.err; then
4640 sed '10a\
4641 ... rest of stderr output deleted ...
4642 10q' conftest.err >conftest.er1
4643 cat conftest.er1 >&5
4644 rm -f conftest.er1 conftest.err
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }
4648 done
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4659 main ()
4661 #ifndef __GNUC__
4662 choke me
4663 #endif
4666 return 0;
4668 _ACEOF
4669 if ac_fn_cxx_try_compile "$LINENO"; then :
4670 ac_compiler_gnu=yes
4671 else
4672 ac_compiler_gnu=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4681 GXX=yes
4682 else
4683 GXX=
4685 ac_test_CXXFLAGS=${CXXFLAGS+set}
4686 ac_save_CXXFLAGS=$CXXFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4689 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4693 ac_cxx_werror_flag=yes
4694 ac_cv_prog_cxx_g=no
4695 CXXFLAGS="-g"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708 ac_cv_prog_cxx_g=yes
4709 else
4710 CXXFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4715 main ()
4719 return 0;
4721 _ACEOF
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
4724 else
4725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4726 CXXFLAGS="-g"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4731 main ()
4735 return 0;
4737 _ACEOF
4738 if ac_fn_cxx_try_compile "$LINENO"; then :
4739 ac_cv_prog_cxx_g=yes
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4750 if test "$ac_test_CXXFLAGS" = set; then
4751 CXXFLAGS=$ac_save_CXXFLAGS
4752 elif test $ac_cv_prog_cxx_g = yes; then
4753 if test "$GXX" = yes; then
4754 CXXFLAGS="-g -O2"
4755 else
4756 CXXFLAGS="-g"
4758 else
4759 if test "$GXX" = yes; then
4760 CXXFLAGS="-O2"
4761 else
4762 CXXFLAGS=
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$GNATBIND"; then
4783 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 GNATBIND=$ac_cv_prog_GNATBIND
4803 if test -n "$GNATBIND"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4805 $as_echo "$GNATBIND" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4813 if test -z "$ac_cv_prog_GNATBIND"; then
4814 ac_ct_GNATBIND=$GNATBIND
4815 # Extract the first word of "gnatbind", so it can be a program name with args.
4816 set dummy gnatbind; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$ac_ct_GNATBIND"; then
4823 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4843 if test -n "$ac_ct_GNATBIND"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4845 $as_echo "$ac_ct_GNATBIND" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4851 if test "x$ac_ct_GNATBIND" = x; then
4852 GNATBIND="no"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860 GNATBIND=$ac_ct_GNATBIND
4862 else
4863 GNATBIND="$ac_cv_prog_GNATBIND"
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$GNATMAKE"; then
4875 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4888 done
4889 done
4890 IFS=$as_save_IFS
4894 GNATMAKE=$ac_cv_prog_GNATMAKE
4895 if test -n "$GNATMAKE"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4897 $as_echo "$GNATMAKE" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4905 if test -z "$ac_cv_prog_GNATMAKE"; then
4906 ac_ct_GNATMAKE=$GNATMAKE
4907 # Extract the first word of "gnatmake", so it can be a program name with args.
4908 set dummy gnatmake; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$ac_ct_GNATMAKE"; then
4915 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4935 if test -n "$ac_ct_GNATMAKE"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4937 $as_echo "$ac_ct_GNATMAKE" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4943 if test "x$ac_ct_GNATMAKE" = x; then
4944 GNATMAKE="no"
4945 else
4946 case $cross_compiling:$ac_tool_warned in
4947 yes:)
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952 GNATMAKE=$ac_ct_GNATMAKE
4954 else
4955 GNATMAKE="$ac_cv_prog_GNATMAKE"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4959 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4960 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat >conftest.adb <<EOF
4964 procedure conftest is begin null; end conftest;
4966 acx_cv_cc_gcc_supports_ada=no
4967 # There is a bug in old released versions of GCC which causes the
4968 # driver to exit successfully when the appropriate language module
4969 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4970 # Therefore we must check for the error message as well as an
4971 # unsuccessful exit.
4972 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4973 # given a .adb file, but produce no object file. So we must check
4974 # if an object file was really produced to guard against this.
4975 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4976 if test x"$errors" = x && test -f conftest.$ac_objext; then
4977 acx_cv_cc_gcc_supports_ada=yes
4979 rm -f conftest.*
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4982 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4984 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4985 have_gnat=yes
4986 else
4987 have_gnat=no
4991 # Do configure tests with the C++ compiler, since that's what we build with.
4992 ac_ext=cpp
4993 ac_cpp='$CXXCPP $CPPFLAGS'
4994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4999 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5000 # optimizations to be activated explicitly by the toplevel.
5001 case "$CC" in
5002 */prev-gcc/xgcc*) ;;
5003 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5004 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5005 esac
5009 # Determine PICFLAG for target gnatlib.
5014 case "${target}" in
5015 # PIC is the default on some targets or must not be used.
5016 *-*-darwin*)
5017 # For darwin, common symbols are not allowed in MH_DYLIB files
5018 case "${CFLAGS}" in
5019 # If we are using a compiler supporting mdynamic-no-pic
5020 # and the option has been tested as safe to add, then cancel
5021 # it here, since the code generated is incompatible with shared
5022 # libs.
5023 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5024 *) PICFLAG_FOR_TARGET=-fno-common ;;
5025 esac
5027 alpha*-dec-osf5*)
5028 # PIC is the default.
5030 hppa*64*-*-hpux*)
5031 # PIC is the default for 64-bit PA HP-UX.
5033 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5035 i[34567]86-*-mingw* | x86_64-*-mingw*)
5037 i[34567]86-*-nto-qnx*)
5038 # QNX uses GNU C++, but need to define -shared option too, otherwise
5039 # it will coredump.
5040 PICFLAG_FOR_TARGET='-fPIC -shared'
5042 i[34567]86-pc-msdosdjgpp*)
5043 # DJGPP does not support shared libraries at all.
5045 ia64*-*-hpux*)
5046 # On IA64 HP-UX, PIC is the default but the pic flag
5047 # sets the default TLS model and affects inlining.
5048 PICFLAG_FOR_TARGET=-fPIC
5050 mips-sgi-irix6*)
5051 # PIC is the default.
5053 rs6000-ibm-aix* | powerpc-ibm-aix*)
5054 # All AIX code is PIC.
5057 # Some targets support both -fPIC and -fpic, but prefer the latter.
5058 # FIXME: Why?
5059 i[34567]86-*-* | x86_64-*-*)
5060 PICFLAG_FOR_TARGET=-fpic
5062 # FIXME: Override -fPIC default in libgcc only?
5063 sh-*-linux* | sh[2346lbe]*-*-linux*)
5064 PICFLAG_FOR_TARGET=-fpic
5066 # FIXME: Simplify to sh*-*-netbsd*?
5067 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5068 PICFLAG_FOR_TARGET=-fpic
5070 # Default to -fPIC unless specified otherwise.
5072 PICFLAG_FOR_TARGET=-fPIC
5074 esac
5076 # If the user explicitly uses -fpic/-fPIC, keep that.
5077 case "${CFLAGS_FOR_TARGET}" in
5078 *-fpic*)
5079 PICFLAG_FOR_TARGET=-fpic
5081 *-fPIC*)
5082 PICFLAG_FOR_TARGET=-fPIC
5084 esac
5088 # -------------------------
5089 # Check C compiler features
5090 # -------------------------
5093 ac_ext=cpp
5094 ac_cpp='$CXXCPP $CPPFLAGS'
5095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5099 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5100 if test -z "$CXXCPP"; then
5101 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 # Double quotes because CXXCPP needs to be expanded
5105 for CXXCPP in "$CXX -E" "/lib/cpp"
5107 ac_preproc_ok=false
5108 for ac_cxx_preproc_warn_flag in '' yes
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #ifdef __STDC__
5119 # include <limits.h>
5120 #else
5121 # include <assert.h>
5122 #endif
5123 Syntax error
5124 _ACEOF
5125 if ac_fn_cxx_try_cpp "$LINENO"; then :
5127 else
5128 # Broken: fails on valid input.
5129 continue
5131 rm -f conftest.err conftest.$ac_ext
5133 # OK, works on sane cases. Now check whether nonexistent headers
5134 # can be detected and how.
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if ac_fn_cxx_try_cpp "$LINENO"; then :
5140 # Broken: success on invalid input.
5141 continue
5142 else
5143 # Passes both tests.
5144 ac_preproc_ok=:
5145 break
5147 rm -f conftest.err conftest.$ac_ext
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then :
5153 break
5156 done
5157 ac_cv_prog_CXXCPP=$CXXCPP
5160 CXXCPP=$ac_cv_prog_CXXCPP
5161 else
5162 ac_cv_prog_CXXCPP=$CXXCPP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5165 $as_echo "$CXXCPP" >&6; }
5166 ac_preproc_ok=false
5167 for ac_cxx_preproc_warn_flag in '' yes
5169 # Use a header file that comes with gcc, so configuring glibc
5170 # with a fresh cross-compiler works.
5171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172 # <limits.h> exists even on freestanding compilers.
5173 # On the NeXT, cc -E runs the code through the compiler's parser,
5174 # not just through cpp. "Syntax error" is here to catch this case.
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #ifdef __STDC__
5178 # include <limits.h>
5179 #else
5180 # include <assert.h>
5181 #endif
5182 Syntax error
5183 _ACEOF
5184 if ac_fn_cxx_try_cpp "$LINENO"; then :
5186 else
5187 # Broken: fails on valid input.
5188 continue
5190 rm -f conftest.err conftest.$ac_ext
5192 # OK, works on sane cases. Now check whether nonexistent headers
5193 # can be detected and how.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <ac_nonexistent.h>
5197 _ACEOF
5198 if ac_fn_cxx_try_cpp "$LINENO"; then :
5199 # Broken: success on invalid input.
5200 continue
5201 else
5202 # Passes both tests.
5203 ac_preproc_ok=:
5204 break
5206 rm -f conftest.err conftest.$ac_ext
5208 done
5209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210 rm -f conftest.err conftest.$ac_ext
5211 if $ac_preproc_ok; then :
5213 else
5214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5216 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5217 See \`config.log' for more details." "$LINENO" 5; }
5220 ac_ext=cpp
5221 ac_cpp='$CXXCPP $CPPFLAGS'
5222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5229 if test "${ac_cv_path_GREP+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -z "$GREP"; then
5233 ac_path_GREP_found=false
5234 # Loop through the user's path and test for each of PROGNAME-LIST
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_prog in grep ggrep; do
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5243 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5244 # Check for GNU ac_path_GREP and select it if it is found.
5245 # Check for GNU $ac_path_GREP
5246 case `"$ac_path_GREP" --version 2>&1` in
5247 *GNU*)
5248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5250 ac_count=0
5251 $as_echo_n 0123456789 >"conftest.in"
5252 while :
5254 cat "conftest.in" "conftest.in" >"conftest.tmp"
5255 mv "conftest.tmp" "conftest.in"
5256 cp "conftest.in" "conftest.nl"
5257 $as_echo 'GREP' >> "conftest.nl"
5258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5260 as_fn_arith $ac_count + 1 && ac_count=$as_val
5261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5262 # Best one so far, save it but keep looking for a better one
5263 ac_cv_path_GREP="$ac_path_GREP"
5264 ac_path_GREP_max=$ac_count
5266 # 10*(2^10) chars as input seems more than enough
5267 test $ac_count -gt 10 && break
5268 done
5269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5270 esac
5272 $ac_path_GREP_found && break 3
5273 done
5274 done
5275 done
5276 IFS=$as_save_IFS
5277 if test -z "$ac_cv_path_GREP"; then
5278 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5280 else
5281 ac_cv_path_GREP=$GREP
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5286 $as_echo "$ac_cv_path_GREP" >&6; }
5287 GREP="$ac_cv_path_GREP"
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5291 $as_echo_n "checking for egrep... " >&6; }
5292 if test "${ac_cv_path_EGREP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5296 then ac_cv_path_EGREP="$GREP -E"
5297 else
5298 if test -z "$EGREP"; then
5299 ac_path_EGREP_found=false
5300 # Loop through the user's path and test for each of PROGNAME-LIST
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_prog in egrep; do
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5309 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5310 # Check for GNU ac_path_EGREP and select it if it is found.
5311 # Check for GNU $ac_path_EGREP
5312 case `"$ac_path_EGREP" --version 2>&1` in
5313 *GNU*)
5314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5316 ac_count=0
5317 $as_echo_n 0123456789 >"conftest.in"
5318 while :
5320 cat "conftest.in" "conftest.in" >"conftest.tmp"
5321 mv "conftest.tmp" "conftest.in"
5322 cp "conftest.in" "conftest.nl"
5323 $as_echo 'EGREP' >> "conftest.nl"
5324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326 as_fn_arith $ac_count + 1 && ac_count=$as_val
5327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5328 # Best one so far, save it but keep looking for a better one
5329 ac_cv_path_EGREP="$ac_path_EGREP"
5330 ac_path_EGREP_max=$ac_count
5332 # 10*(2^10) chars as input seems more than enough
5333 test $ac_count -gt 10 && break
5334 done
5335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336 esac
5338 $ac_path_EGREP_found && break 3
5339 done
5340 done
5341 done
5342 IFS=$as_save_IFS
5343 if test -z "$ac_cv_path_EGREP"; then
5344 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5346 else
5347 ac_cv_path_EGREP=$EGREP
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5353 $as_echo "$ac_cv_path_EGREP" >&6; }
5354 EGREP="$ac_cv_path_EGREP"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5358 $as_echo_n "checking for ANSI C header files... " >&6; }
5359 if test "${ac_cv_header_stdc+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <stdlib.h>
5365 #include <stdarg.h>
5366 #include <string.h>
5367 #include <float.h>
5370 main ()
5374 return 0;
5376 _ACEOF
5377 if ac_fn_cxx_try_compile "$LINENO"; then :
5378 ac_cv_header_stdc=yes
5379 else
5380 ac_cv_header_stdc=no
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 if test $ac_cv_header_stdc = yes; then
5385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <string.h>
5390 _ACEOF
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392 $EGREP "memchr" >/dev/null 2>&1; then :
5394 else
5395 ac_cv_header_stdc=no
5397 rm -f conftest*
5401 if test $ac_cv_header_stdc = yes; then
5402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <stdlib.h>
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "free" >/dev/null 2>&1; then :
5411 else
5412 ac_cv_header_stdc=no
5414 rm -f conftest*
5418 if test $ac_cv_header_stdc = yes; then
5419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5420 if test "$cross_compiling" = yes; then :
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <ctype.h>
5426 #include <stdlib.h>
5427 #if ((' ' & 0x0FF) == 0x020)
5428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5430 #else
5431 # define ISLOWER(c) \
5432 (('a' <= (c) && (c) <= 'i') \
5433 || ('j' <= (c) && (c) <= 'r') \
5434 || ('s' <= (c) && (c) <= 'z'))
5435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5436 #endif
5438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5440 main ()
5442 int i;
5443 for (i = 0; i < 256; i++)
5444 if (XOR (islower (i), ISLOWER (i))
5445 || toupper (i) != TOUPPER (i))
5446 return 2;
5447 return 0;
5449 _ACEOF
5450 if ac_fn_cxx_try_run "$LINENO"; then :
5452 else
5453 ac_cv_header_stdc=no
5455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5456 conftest.$ac_objext conftest.beam conftest.$ac_ext
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5462 $as_echo "$ac_cv_header_stdc" >&6; }
5463 if test $ac_cv_header_stdc = yes; then
5465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5471 inttypes.h stdint.h unistd.h
5472 do :
5473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5476 eval as_val=\$$as_ac_Header
5477 if test "x$as_val" = x""yes; then :
5478 cat >>confdefs.h <<_ACEOF
5479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480 _ACEOF
5484 done
5488 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5489 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5490 MINIX=yes
5491 else
5492 MINIX=
5496 if test "$MINIX" = yes; then
5498 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5501 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5504 $as_echo "#define _MINIX 1" >>confdefs.h
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5510 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5511 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5517 # define __EXTENSIONS__ 1
5518 $ac_includes_default
5520 main ()
5524 return 0;
5526 _ACEOF
5527 if ac_fn_cxx_try_compile "$LINENO"; then :
5528 ac_cv_safe_to_define___extensions__=yes
5529 else
5530 ac_cv_safe_to_define___extensions__=no
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5535 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5536 test $ac_cv_safe_to_define___extensions__ = yes &&
5537 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5539 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5541 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5543 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5545 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5548 ac_ext=c
5549 ac_cpp='$CPP $CPPFLAGS'
5550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5554 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5555 # On Suns, sometimes $CPP names a directory.
5556 if test -n "$CPP" && test -d "$CPP"; then
5557 CPP=
5559 if test -z "$CPP"; then
5560 if test "${ac_cv_prog_CPP+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 # Double quotes because CPP needs to be expanded
5564 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5566 ac_preproc_ok=false
5567 for ac_c_preproc_warn_flag in '' yes
5569 # Use a header file that comes with gcc, so configuring glibc
5570 # with a fresh cross-compiler works.
5571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572 # <limits.h> exists even on freestanding compilers.
5573 # On the NeXT, cc -E runs the code through the compiler's parser,
5574 # not just through cpp. "Syntax error" is here to catch this case.
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #ifdef __STDC__
5578 # include <limits.h>
5579 #else
5580 # include <assert.h>
5581 #endif
5582 Syntax error
5583 _ACEOF
5584 if ac_fn_c_try_cpp "$LINENO"; then :
5586 else
5587 # Broken: fails on valid input.
5588 continue
5590 rm -f conftest.err conftest.$ac_ext
5592 # OK, works on sane cases. Now check whether nonexistent headers
5593 # can be detected and how.
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #include <ac_nonexistent.h>
5597 _ACEOF
5598 if ac_fn_c_try_cpp "$LINENO"; then :
5599 # Broken: success on invalid input.
5600 continue
5601 else
5602 # Passes both tests.
5603 ac_preproc_ok=:
5604 break
5606 rm -f conftest.err conftest.$ac_ext
5608 done
5609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5610 rm -f conftest.err conftest.$ac_ext
5611 if $ac_preproc_ok; then :
5612 break
5615 done
5616 ac_cv_prog_CPP=$CPP
5619 CPP=$ac_cv_prog_CPP
5620 else
5621 ac_cv_prog_CPP=$CPP
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5624 $as_echo "$CPP" >&6; }
5625 ac_preproc_ok=false
5626 for ac_c_preproc_warn_flag in '' yes
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #ifdef __STDC__
5637 # include <limits.h>
5638 #else
5639 # include <assert.h>
5640 #endif
5641 Syntax error
5642 _ACEOF
5643 if ac_fn_c_try_cpp "$LINENO"; then :
5645 else
5646 # Broken: fails on valid input.
5647 continue
5649 rm -f conftest.err conftest.$ac_ext
5651 # OK, works on sane cases. Now check whether nonexistent headers
5652 # can be detected and how.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <ac_nonexistent.h>
5656 _ACEOF
5657 if ac_fn_c_try_cpp "$LINENO"; then :
5658 # Broken: success on invalid input.
5659 continue
5660 else
5661 # Passes both tests.
5662 ac_preproc_ok=:
5663 break
5665 rm -f conftest.err conftest.$ac_ext
5667 done
5668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5669 rm -f conftest.err conftest.$ac_ext
5670 if $ac_preproc_ok; then :
5672 else
5673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5675 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5676 See \`config.log' for more details." "$LINENO" 5; }
5679 ac_ext=cpp
5680 ac_cpp='$CXXCPP $CPPFLAGS'
5681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5686 $as_echo_n "checking for inline... " >&6; }
5687 if test "${ac_cv_c_inline+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 ac_cv_c_inline=no
5691 for ac_kw in inline __inline__ __inline; do
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #ifndef __cplusplus
5695 typedef int foo_t;
5696 static $ac_kw foo_t static_foo () {return 0; }
5697 $ac_kw foo_t foo () {return 0; }
5698 #endif
5700 _ACEOF
5701 if ac_fn_cxx_try_compile "$LINENO"; then :
5702 ac_cv_c_inline=$ac_kw
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 test "$ac_cv_c_inline" != no && break
5706 done
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5710 $as_echo "$ac_cv_c_inline" >&6; }
5712 case $ac_cv_c_inline in
5713 inline | yes) ;;
5715 case $ac_cv_c_inline in
5716 no) ac_val=;;
5717 *) ac_val=$ac_cv_c_inline;;
5718 esac
5719 cat >>confdefs.h <<_ACEOF
5720 #ifndef __cplusplus
5721 #define inline $ac_val
5722 #endif
5723 _ACEOF
5725 esac
5728 # Check whether --enable-largefile was given.
5729 if test "${enable_largefile+set}" = set; then :
5730 enableval=$enable_largefile;
5733 if test "$enable_largefile" != no; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5736 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5737 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 ac_cv_sys_largefile_CC=no
5741 if test "$GCC" != yes; then
5742 ac_save_CC=$CC
5743 while :; do
5744 # IRIX 6.2 and later do not support large files by default,
5745 # so use the C compiler's -n32 option if that helps.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5756 ? 1 : -1];
5758 main ()
5762 return 0;
5764 _ACEOF
5765 if ac_fn_cxx_try_compile "$LINENO"; then :
5766 break
5768 rm -f core conftest.err conftest.$ac_objext
5769 CC="$CC -n32"
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771 ac_cv_sys_largefile_CC=' -n32'; break
5773 rm -f core conftest.err conftest.$ac_objext
5774 break
5775 done
5776 CC=$ac_save_CC
5777 rm -f conftest.$ac_ext
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5781 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5782 if test "$ac_cv_sys_largefile_CC" != no; then
5783 CC=$CC$ac_cv_sys_largefile_CC
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5787 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5788 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 while :; do
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <sys/types.h>
5795 /* Check that off_t can represent 2**63 - 1 correctly.
5796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5797 since some C++ compilers masquerading as C compilers
5798 incorrectly reject 9223372036854775807. */
5799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5801 && LARGE_OFF_T % 2147483647 == 1)
5802 ? 1 : -1];
5804 main ()
5808 return 0;
5810 _ACEOF
5811 if ac_fn_cxx_try_compile "$LINENO"; then :
5812 ac_cv_sys_file_offset_bits=no; break
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #define _FILE_OFFSET_BITS 64
5818 #include <sys/types.h>
5819 /* Check that off_t can represent 2**63 - 1 correctly.
5820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5821 since some C++ compilers masquerading as C compilers
5822 incorrectly reject 9223372036854775807. */
5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5825 && LARGE_OFF_T % 2147483647 == 1)
5826 ? 1 : -1];
5828 main ()
5832 return 0;
5834 _ACEOF
5835 if ac_fn_cxx_try_compile "$LINENO"; then :
5836 ac_cv_sys_file_offset_bits=64; break
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 ac_cv_sys_file_offset_bits=unknown
5840 break
5841 done
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5844 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5845 case $ac_cv_sys_file_offset_bits in #(
5846 no | unknown) ;;
5848 cat >>confdefs.h <<_ACEOF
5849 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5850 _ACEOF
5852 esac
5853 rm -rf conftest*
5854 if test $ac_cv_sys_file_offset_bits = unknown; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5856 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5857 if test "${ac_cv_sys_large_files+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 while :; do
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5871 ? 1 : -1];
5873 main ()
5877 return 0;
5879 _ACEOF
5880 if ac_fn_cxx_try_compile "$LINENO"; then :
5881 ac_cv_sys_large_files=no; break
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #define _LARGE_FILES 1
5887 #include <sys/types.h>
5888 /* Check that off_t can represent 2**63 - 1 correctly.
5889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5890 since some C++ compilers masquerading as C compilers
5891 incorrectly reject 9223372036854775807. */
5892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5894 && LARGE_OFF_T % 2147483647 == 1)
5895 ? 1 : -1];
5897 main ()
5901 return 0;
5903 _ACEOF
5904 if ac_fn_cxx_try_compile "$LINENO"; then :
5905 ac_cv_sys_large_files=1; break
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 ac_cv_sys_large_files=unknown
5909 break
5910 done
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5913 $as_echo "$ac_cv_sys_large_files" >&6; }
5914 case $ac_cv_sys_large_files in #(
5915 no | unknown) ;;
5917 cat >>confdefs.h <<_ACEOF
5918 #define _LARGE_FILES $ac_cv_sys_large_files
5919 _ACEOF
5921 esac
5922 rm -rf conftest*
5927 # sizeof(char) is 1 by definition.
5928 # The cast to long int works around a bug in the HP C Compiler
5929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5931 # This bug is HP SR number 8606223364.
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5933 $as_echo_n "checking size of void *... " >&6; }
5934 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5939 else
5940 if test "$ac_cv_type_void_p" = yes; then
5941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5943 { as_fn_set_status 77
5944 as_fn_error "cannot compute sizeof (void *)
5945 See \`config.log' for more details." "$LINENO" 5; }; }
5946 else
5947 ac_cv_sizeof_void_p=0
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5953 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5957 cat >>confdefs.h <<_ACEOF
5958 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5959 _ACEOF
5962 # The cast to long int works around a bug in the HP C Compiler
5963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5965 # This bug is HP SR number 8606223364.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5967 $as_echo_n "checking size of short... " >&6; }
5968 if test "${ac_cv_sizeof_short+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5973 else
5974 if test "$ac_cv_type_short" = yes; then
5975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5977 { as_fn_set_status 77
5978 as_fn_error "cannot compute sizeof (short)
5979 See \`config.log' for more details." "$LINENO" 5; }; }
5980 else
5981 ac_cv_sizeof_short=0
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5987 $as_echo "$ac_cv_sizeof_short" >&6; }
5991 cat >>confdefs.h <<_ACEOF
5992 #define SIZEOF_SHORT $ac_cv_sizeof_short
5993 _ACEOF
5996 # The cast to long int works around a bug in the HP C Compiler
5997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5999 # This bug is HP SR number 8606223364.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6001 $as_echo_n "checking size of int... " >&6; }
6002 if test "${ac_cv_sizeof_int+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6007 else
6008 if test "$ac_cv_type_int" = yes; then
6009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6011 { as_fn_set_status 77
6012 as_fn_error "cannot compute sizeof (int)
6013 See \`config.log' for more details." "$LINENO" 5; }; }
6014 else
6015 ac_cv_sizeof_int=0
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6021 $as_echo "$ac_cv_sizeof_int" >&6; }
6025 cat >>confdefs.h <<_ACEOF
6026 #define SIZEOF_INT $ac_cv_sizeof_int
6027 _ACEOF
6030 # The cast to long int works around a bug in the HP C Compiler
6031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6033 # This bug is HP SR number 8606223364.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6035 $as_echo_n "checking size of long... " >&6; }
6036 if test "${ac_cv_sizeof_long+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6041 else
6042 if test "$ac_cv_type_long" = yes; then
6043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6045 { as_fn_set_status 77
6046 as_fn_error "cannot compute sizeof (long)
6047 See \`config.log' for more details." "$LINENO" 5; }; }
6048 else
6049 ac_cv_sizeof_long=0
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6055 $as_echo "$ac_cv_sizeof_long" >&6; }
6059 cat >>confdefs.h <<_ACEOF
6060 #define SIZEOF_LONG $ac_cv_sizeof_long
6061 _ACEOF
6064 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6065 if test "x$ac_cv_type_long_long" = x""yes; then :
6067 cat >>confdefs.h <<_ACEOF
6068 #define HAVE_LONG_LONG 1
6069 _ACEOF
6071 # The cast to long int works around a bug in the HP C Compiler
6072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6074 # This bug is HP SR number 8606223364.
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6076 $as_echo_n "checking size of long long... " >&6; }
6077 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6082 else
6083 if test "$ac_cv_type_long_long" = yes; then
6084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6086 { as_fn_set_status 77
6087 as_fn_error "cannot compute sizeof (long long)
6088 See \`config.log' for more details." "$LINENO" 5; }; }
6089 else
6090 ac_cv_sizeof_long_long=0
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6096 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6100 cat >>confdefs.h <<_ACEOF
6101 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6102 _ACEOF
6107 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6108 case $ac_cv_c_int8_t in #(
6109 no|yes) ;; #(
6112 cat >>confdefs.h <<_ACEOF
6113 #define int8_t $ac_cv_c_int8_t
6114 _ACEOF
6116 esac
6118 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6119 case $ac_cv_c_int16_t in #(
6120 no|yes) ;; #(
6123 cat >>confdefs.h <<_ACEOF
6124 #define int16_t $ac_cv_c_int16_t
6125 _ACEOF
6127 esac
6129 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6130 case $ac_cv_c_int32_t in #(
6131 no|yes) ;; #(
6134 cat >>confdefs.h <<_ACEOF
6135 #define int32_t $ac_cv_c_int32_t
6136 _ACEOF
6138 esac
6140 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6141 case $ac_cv_c_int64_t in #(
6142 no|yes) ;; #(
6145 cat >>confdefs.h <<_ACEOF
6146 #define int64_t $ac_cv_c_int64_t
6147 _ACEOF
6149 esac
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6153 $as_echo_n "checking for long long int... " >&6; }
6154 if test "${ac_cv_type_long_long_int+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 /* For now, do not test the preprocessor; as of 2007 there are too many
6161 implementations with broken preprocessors. Perhaps this can
6162 be revisited in 2012. In the meantime, code should not expect
6163 #if to work with literals wider than 32 bits. */
6164 /* Test literals. */
6165 long long int ll = 9223372036854775807ll;
6166 long long int nll = -9223372036854775807LL;
6167 unsigned long long int ull = 18446744073709551615ULL;
6168 /* Test constant expressions. */
6169 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6170 ? 1 : -1)];
6171 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6172 ? 1 : -1)];
6173 int i = 63;
6175 main ()
6177 /* Test availability of runtime routines for shift and division. */
6178 long long int llmax = 9223372036854775807ll;
6179 unsigned long long int ullmax = 18446744073709551615ull;
6180 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6181 | (llmax / ll) | (llmax % ll)
6182 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6183 | (ullmax / ull) | (ullmax % ull));
6185 return 0;
6188 _ACEOF
6189 if ac_fn_cxx_try_link "$LINENO"; then :
6190 if test "$cross_compiling" = yes; then :
6191 ac_cv_type_long_long_int=yes
6192 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <limits.h>
6196 #ifndef LLONG_MAX
6197 # define HALF \
6198 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6199 # define LLONG_MAX (HALF - 1 + HALF)
6200 #endif
6202 main ()
6204 long long int n = 1;
6205 int i;
6206 for (i = 0; ; i++)
6208 long long int m = n << i;
6209 if (m >> i != n)
6210 return 1;
6211 if (LLONG_MAX / 2 < m)
6212 break;
6214 return 0;
6216 return 0;
6218 _ACEOF
6219 if ac_fn_cxx_try_run "$LINENO"; then :
6220 ac_cv_type_long_long_int=yes
6221 else
6222 ac_cv_type_long_long_int=no
6224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6225 conftest.$ac_objext conftest.beam conftest.$ac_ext
6228 else
6229 ac_cv_type_long_long_int=no
6231 rm -f core conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6235 $as_echo "$ac_cv_type_long_long_int" >&6; }
6236 if test $ac_cv_type_long_long_int = yes; then
6238 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6244 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6245 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6247 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6249 else
6250 test $ac_cv_type_long_long_int = yes \
6251 && ac_type='long long int' \
6252 || ac_type='long int'
6254 cat >>confdefs.h <<_ACEOF
6255 #define intmax_t $ac_type
6256 _ACEOF
6262 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6263 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6265 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6267 else
6268 for ac_type in 'int' 'long int' 'long long int'; do
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 $ac_includes_default
6273 main ()
6275 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6276 test_array [0] = 0
6279 return 0;
6281 _ACEOF
6282 if ac_fn_cxx_try_compile "$LINENO"; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define intptr_t $ac_type
6286 _ACEOF
6288 ac_type=
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 test -z "$ac_type" && break
6292 done
6296 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6297 case $ac_cv_c_uint8_t in #(
6298 no|yes) ;; #(
6301 $as_echo "#define _UINT8_T 1" >>confdefs.h
6304 cat >>confdefs.h <<_ACEOF
6305 #define uint8_t $ac_cv_c_uint8_t
6306 _ACEOF
6308 esac
6310 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6311 case $ac_cv_c_uint16_t in #(
6312 no|yes) ;; #(
6316 cat >>confdefs.h <<_ACEOF
6317 #define uint16_t $ac_cv_c_uint16_t
6318 _ACEOF
6320 esac
6322 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6323 case $ac_cv_c_uint32_t in #(
6324 no|yes) ;; #(
6327 $as_echo "#define _UINT32_T 1" >>confdefs.h
6330 cat >>confdefs.h <<_ACEOF
6331 #define uint32_t $ac_cv_c_uint32_t
6332 _ACEOF
6334 esac
6336 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6337 case $ac_cv_c_uint64_t in #(
6338 no|yes) ;; #(
6341 $as_echo "#define _UINT64_T 1" >>confdefs.h
6344 cat >>confdefs.h <<_ACEOF
6345 #define uint64_t $ac_cv_c_uint64_t
6346 _ACEOF
6348 esac
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6352 $as_echo_n "checking for unsigned long long int... " >&6; }
6353 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6359 /* For now, do not test the preprocessor; as of 2007 there are too many
6360 implementations with broken preprocessors. Perhaps this can
6361 be revisited in 2012. In the meantime, code should not expect
6362 #if to work with literals wider than 32 bits. */
6363 /* Test literals. */
6364 long long int ll = 9223372036854775807ll;
6365 long long int nll = -9223372036854775807LL;
6366 unsigned long long int ull = 18446744073709551615ULL;
6367 /* Test constant expressions. */
6368 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6369 ? 1 : -1)];
6370 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6371 ? 1 : -1)];
6372 int i = 63;
6374 main ()
6376 /* Test availability of runtime routines for shift and division. */
6377 long long int llmax = 9223372036854775807ll;
6378 unsigned long long int ullmax = 18446744073709551615ull;
6379 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6380 | (llmax / ll) | (llmax % ll)
6381 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6382 | (ullmax / ull) | (ullmax % ull));
6384 return 0;
6387 _ACEOF
6388 if ac_fn_cxx_try_link "$LINENO"; then :
6389 ac_cv_type_unsigned_long_long_int=yes
6390 else
6391 ac_cv_type_unsigned_long_long_int=no
6393 rm -f core conftest.err conftest.$ac_objext \
6394 conftest$ac_exeext conftest.$ac_ext
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6397 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6398 if test $ac_cv_type_unsigned_long_long_int = yes; then
6400 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6406 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6407 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6409 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6411 else
6412 test $ac_cv_type_unsigned_long_long_int = yes \
6413 && ac_type='unsigned long long int' \
6414 || ac_type='unsigned long int'
6416 cat >>confdefs.h <<_ACEOF
6417 #define uintmax_t $ac_type
6418 _ACEOF
6424 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6425 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6427 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6429 else
6430 for ac_type in 'unsigned int' 'unsigned long int' \
6431 'unsigned long long int'; do
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 $ac_includes_default
6436 main ()
6438 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6439 test_array [0] = 0
6442 return 0;
6444 _ACEOF
6445 if ac_fn_cxx_try_compile "$LINENO"; then :
6447 cat >>confdefs.h <<_ACEOF
6448 #define uintptr_t $ac_type
6449 _ACEOF
6451 ac_type=
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 test -z "$ac_type" && break
6455 done
6471 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6472 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6475 # check what underlying integer type int64_t uses
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6477 $as_echo_n "checking for int64_t underlying type... " >&6; }
6478 if test "${ac_cv_int64_t_type+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6485 #ifdef HAVE_STDINT_H
6486 #include <stdint.h>
6487 #endif
6488 template <typename T> struct X { };
6489 template <>
6490 struct X<long> { typedef long t; };
6493 main ()
6495 X<int64_t>::t x;
6497 return 0;
6499 _ACEOF
6500 if ac_fn_cxx_try_compile "$LINENO"; then :
6501 ac_cv_int64_t_type=long
6502 else
6503 ac_cv_int64_t_type="long long"
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6508 $as_echo "$ac_cv_int64_t_type" >&6; }
6509 if test "$ac_cv_int64_t_type" = "long"; then
6511 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6513 else
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6517 #ifdef HAVE_STDINT_H
6518 #include <stdint.h>
6519 #endif
6520 template <typename T> struct X { };
6521 template <>
6522 struct X<long long> { typedef long long t; };
6525 main ()
6527 X<int64_t>::t x;
6529 return 0;
6531 _ACEOF
6532 if ac_fn_cxx_try_compile "$LINENO"; then :
6534 else
6535 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6541 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6542 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6549 #include <utility>
6552 main ()
6554 int a, b; std::swap(a,b);
6556 return 0;
6558 _ACEOF
6559 if ac_fn_cxx_try_compile "$LINENO"; then :
6560 ac_cv_std_swap_in_utility=yes
6561 else
6562 ac_cv_std_swap_in_utility=no
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6567 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6568 if test $ac_cv_std_swap_in_utility = yes; then
6570 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6574 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6575 # If the host compiler is affected by the bug, and we build with optimization
6576 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6577 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6578 # Since there is no reliable feature check for the presence of this bug,
6579 # we simply use a GCC version number check. (This should never trigger for
6580 # stages 2 or 3 of a native bootstrap.)
6581 aliasing_flags=
6582 if test "$GCC" = yes; then
6583 saved_CXXFLAGS="$CXXFLAGS"
6585 # The following test compilation will succeed if and only if $CXX accepts
6586 # -fno-strict-aliasing *and* is older than GCC 4.3.
6587 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6589 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6593 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6594 #error compiler not affected by placement new aliasing bug
6595 #endif
6597 _ACEOF
6598 if ac_fn_cxx_try_compile "$LINENO"; then :
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6600 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 CXXFLAGS="$saved_CXXFLAGS"
6613 # ---------------------
6614 # Warnings and checking
6615 # ---------------------
6617 # Check $CC warning features (if it's GCC).
6618 # We want to use -pedantic, but we don't want warnings about
6619 # * 'long long'
6620 # * variadic macros
6621 # * overlong strings
6622 # * C++11 narrowing conversions in { }
6623 # So, we only use -pedantic if we can disable those warnings.
6625 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6626 # Check whether --enable-build-format-warnings was given.
6627 if test "${enable_build_format_warnings+set}" = set; then :
6628 enableval=$enable_build_format_warnings;
6629 else
6630 enable_build_format_warnings=yes
6633 if test $enable_build_format_warnings = no; then :
6634 wf_opt=-Wno-format
6635 else
6636 wf_opt=
6638 ac_ext=cpp
6639 ac_cpp='$CXXCPP $CPPFLAGS'
6640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6644 loose_warn=
6645 save_CXXFLAGS="$CXXFLAGS"
6646 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6647 # Do the check with the no- prefix removed since gcc silently
6648 # accepts any -Wno-* option on purpose
6649 case $real_option in
6650 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6651 *) option=$real_option ;;
6652 esac
6653 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6656 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6657 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 CXXFLAGS="$option"
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6665 main ()
6669 return 0;
6671 _ACEOF
6672 if ac_fn_cxx_try_compile "$LINENO"; then :
6673 eval "$as_acx_Woption=yes"
6674 else
6675 eval "$as_acx_Woption=no"
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 eval ac_res=\$$as_acx_Woption
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6682 $as_echo "$ac_res" >&6; }
6683 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6684 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6686 done
6687 CXXFLAGS="$save_CXXFLAGS"
6688 ac_ext=cpp
6689 ac_cpp='$CXXCPP $CPPFLAGS'
6690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6696 ac_ext=c
6697 ac_cpp='$CPP $CPPFLAGS'
6698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6702 c_loose_warn=
6703 save_CFLAGS="$CFLAGS"
6704 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6705 # Do the check with the no- prefix removed since gcc silently
6706 # accepts any -Wno-* option on purpose
6707 case $real_option in
6708 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6709 *) option=$real_option ;;
6710 esac
6711 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6714 $as_echo_n "checking whether $CC supports $option... " >&6; }
6715 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 CFLAGS="$option"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6723 main ()
6727 return 0;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731 eval "$as_acx_Woption=yes"
6732 else
6733 eval "$as_acx_Woption=no"
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 eval ac_res=\$$as_acx_Woption
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6740 $as_echo "$ac_res" >&6; }
6741 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6742 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6744 done
6745 CFLAGS="$save_CFLAGS"
6746 ac_ext=cpp
6747 ac_cpp='$CXXCPP $CPPFLAGS'
6748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6753 ac_ext=cpp
6754 ac_cpp='$CXXCPP $CPPFLAGS'
6755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6759 strict_warn=
6760 save_CXXFLAGS="$CXXFLAGS"
6761 for real_option in -Wmissing-format-attribute; do
6762 # Do the check with the no- prefix removed since gcc silently
6763 # accepts any -Wno-* option on purpose
6764 case $real_option in
6765 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6766 *) option=$real_option ;;
6767 esac
6768 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6771 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6772 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 CXXFLAGS="$option"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6780 main ()
6784 return 0;
6786 _ACEOF
6787 if ac_fn_cxx_try_compile "$LINENO"; then :
6788 eval "$as_acx_Woption=yes"
6789 else
6790 eval "$as_acx_Woption=no"
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 eval ac_res=\$$as_acx_Woption
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6797 $as_echo "$ac_res" >&6; }
6798 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6799 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6801 done
6802 CXXFLAGS="$save_CXXFLAGS"
6803 ac_ext=cpp
6804 ac_cpp='$CXXCPP $CPPFLAGS'
6805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6810 ac_ext=cpp
6811 ac_cpp='$CXXCPP $CPPFLAGS'
6812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6816 save_CXXFLAGS="$CXXFLAGS"
6817 for real_option in -Woverloaded-virtual; do
6818 # Do the check with the no- prefix removed since gcc silently
6819 # accepts any -Wno-* option on purpose
6820 case $real_option in
6821 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6822 *) option=$real_option ;;
6823 esac
6824 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6827 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6828 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 CXXFLAGS="$option"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6836 main ()
6840 return 0;
6842 _ACEOF
6843 if ac_fn_cxx_try_compile "$LINENO"; then :
6844 eval "$as_acx_Woption=yes"
6845 else
6846 eval "$as_acx_Woption=no"
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 eval ac_res=\$$as_acx_Woption
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6853 $as_echo "$ac_res" >&6; }
6854 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6855 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6857 done
6858 CXXFLAGS="$save_CXXFLAGS"
6859 ac_ext=cpp
6860 ac_cpp='$CXXCPP $CPPFLAGS'
6861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6866 ac_ext=c
6867 ac_cpp='$CPP $CPPFLAGS'
6868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6872 c_strict_warn=
6873 save_CFLAGS="$CFLAGS"
6874 for real_option in -Wold-style-definition -Wc++-compat; do
6875 # Do the check with the no- prefix removed since gcc silently
6876 # accepts any -Wno-* option on purpose
6877 case $real_option in
6878 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6879 *) option=$real_option ;;
6880 esac
6881 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6884 $as_echo_n "checking whether $CC supports $option... " >&6; }
6885 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 CFLAGS="$option"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6893 main ()
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 eval "$as_acx_Woption=yes"
6902 else
6903 eval "$as_acx_Woption=no"
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 eval ac_res=\$$as_acx_Woption
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6910 $as_echo "$ac_res" >&6; }
6911 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6912 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6914 done
6915 CFLAGS="$save_CFLAGS"
6916 ac_ext=cpp
6917 ac_cpp='$CXXCPP $CPPFLAGS'
6918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6923 ac_ext=cpp
6924 ac_cpp='$CXXCPP $CPPFLAGS'
6925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6929 # Do the check with the no- prefix removed from the warning options
6930 # since gcc silently accepts any -Wno-* option on purpose
6931 if test "$GXX" = yes; then :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6933 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6934 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 save_CXXFLAGS="$CXXFLAGS"
6938 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6943 main ()
6947 return 0;
6949 _ACEOF
6950 if ac_fn_cxx_try_compile "$LINENO"; then :
6951 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6952 else
6953 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6956 CXXFLAGS="$save_CXXFLAGS"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6959 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6960 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6961 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6965 ac_ext=cpp
6966 ac_cpp='$CXXCPP $CPPFLAGS'
6967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6972 ac_ext=cpp
6973 ac_cpp='$CXXCPP $CPPFLAGS'
6974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6978 # Check whether --enable-werror-always was given.
6979 if test "${enable_werror_always+set}" = set; then :
6980 enableval=$enable_werror_always;
6981 else
6982 enable_werror_always=no
6985 if test $enable_werror_always = yes; then :
6986 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6989 ac_ext=cpp
6990 ac_cpp='$CXXCPP $CPPFLAGS'
6991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6997 # The above macros do nothing if the compiler is not GCC. However, the
6998 # Makefile has more goo to add other flags, so these variables are used
6999 # to enable warnings only for GCC.
7000 warn_cflags=
7001 warn_cxxflags=
7002 if test "x$GCC" = "xyes"; then
7003 warn_cflags='$(GCC_WARN_CFLAGS)'
7004 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7009 # Disable exceptions and RTTI if building with g++
7010 ac_ext=c
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7016 noexception_flags=
7017 save_CFLAGS="$CFLAGS"
7018 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7019 # Do the check with the no- prefix removed since gcc silently
7020 # accepts any -Wno-* option on purpose
7021 case $real_option in
7022 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7023 *) option=$real_option ;;
7024 esac
7025 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7028 $as_echo_n "checking whether $CC supports $option... " >&6; }
7029 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 CFLAGS="$option"
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7037 main ()
7041 return 0;
7043 _ACEOF
7044 if ac_fn_c_try_compile "$LINENO"; then :
7045 eval "$as_acx_Woption=yes"
7046 else
7047 eval "$as_acx_Woption=no"
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 eval ac_res=\$$as_acx_Woption
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7054 $as_echo "$ac_res" >&6; }
7055 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7056 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7058 done
7059 CFLAGS="$save_CFLAGS"
7060 ac_ext=cpp
7061 ac_cpp='$CXXCPP $CPPFLAGS'
7062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7068 # Enable expensive internal checks
7069 is_release=
7070 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7071 is_release=yes
7074 # Check whether --enable-checking was given.
7075 if test "${enable_checking+set}" = set; then :
7076 enableval=$enable_checking; ac_checking_flags="${enableval}"
7077 else
7079 # Determine the default checks.
7080 if test x$is_release = x ; then
7081 ac_checking_flags=yes,extra
7082 else
7083 ac_checking_flags=release
7087 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7088 for check in release $ac_checking_flags
7090 case $check in
7091 # these set all the flags to specific states
7092 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7093 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7094 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7095 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7096 ac_tree_checking=1 ; ac_valgrind_checking= ;
7097 ac_types_checking=1 ;;
7098 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7099 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7100 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7101 ac_rtlflag_checking= ; ac_runtime_checking= ;
7102 ac_tree_checking= ; ac_valgrind_checking= ;
7103 ac_types_checking= ;;
7104 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7105 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7106 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7107 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7108 ac_tree_checking=1 ; ac_valgrind_checking= ;
7109 ac_types_checking=1 ;;
7110 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7111 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7112 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7113 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7114 ac_tree_checking= ; ac_valgrind_checking= ;
7115 ac_types_checking= ;;
7116 # these enable particular checks
7117 assert) ac_assert_checking=1 ;;
7118 df) ac_df_checking=1 ;;
7119 extra) ac_extra_checking=1 ;;
7120 fold) ac_fold_checking=1 ;;
7121 gc) ac_gc_checking=1 ;;
7122 gcac) ac_gc_always_collect=1 ;;
7123 gimple) ac_gimple_checking=1 ;;
7124 misc) ac_checking=1 ;;
7125 rtl) ac_rtl_checking=1 ;;
7126 rtlflag) ac_rtlflag_checking=1 ;;
7127 runtime) ac_runtime_checking=1 ;;
7128 tree) ac_tree_checking=1 ;;
7129 types) ac_types_checking=1 ;;
7130 valgrind) ac_valgrind_checking=1 ;;
7131 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7132 esac
7133 done
7134 IFS="$ac_save_IFS"
7136 nocommon_flag=""
7137 if test x$ac_checking != x ; then
7138 if test x$ac_extra_checking != x ; then
7139 ac_checking=2
7142 cat >>confdefs.h <<_ACEOF
7143 #define CHECKING_P $ac_checking
7144 _ACEOF
7146 nocommon_flag=-fno-common
7147 else
7148 $as_echo "#define CHECKING_P 0" >>confdefs.h
7152 if test x$ac_df_checking != x ; then
7154 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7157 if test x$ac_assert_checking != x ; then
7159 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7162 if test x$ac_gimple_checking != x ; then
7164 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7168 if test x$ac_runtime_checking != x ; then
7170 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7173 if test x$ac_tree_checking != x ; then
7175 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7177 TREECHECKING=yes
7179 if test x$ac_types_checking != x ; then
7181 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7185 if test x$ac_rtl_checking != x ; then
7187 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7190 if test x$ac_rtlflag_checking != x ; then
7192 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7195 if test x$ac_gc_checking != x ; then
7197 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7200 if test x$ac_gc_always_collect != x ; then
7202 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7205 if test x$ac_fold_checking != x ; then
7207 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7210 valgrind_path_defines=
7211 valgrind_command=
7213 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7214 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7215 have_valgrind_h=yes
7216 else
7217 have_valgrind_h=no
7222 # It is certainly possible that there's valgrind but no valgrind.h.
7223 # GCC relies on making annotations so we must have both.
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7225 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <valgrind/memcheck.h>
7229 #ifndef VALGRIND_DISCARD
7230 #error VALGRIND_DISCARD not defined
7231 #endif
7232 _ACEOF
7233 if ac_fn_cxx_try_cpp "$LINENO"; then :
7234 gcc_cv_header_valgrind_memcheck_h=yes
7235 else
7236 gcc_cv_header_valgrind_memcheck_h=no
7238 rm -f conftest.err conftest.$ac_ext
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7240 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7242 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #include <memcheck.h>
7246 #ifndef VALGRIND_DISCARD
7247 #error VALGRIND_DISCARD not defined
7248 #endif
7249 _ACEOF
7250 if ac_fn_cxx_try_cpp "$LINENO"; then :
7251 gcc_cv_header_memcheck_h=yes
7252 else
7253 gcc_cv_header_memcheck_h=no
7255 rm -f conftest.err conftest.$ac_ext
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7257 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7258 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7260 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7263 if test $gcc_cv_header_memcheck_h = yes; then
7265 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7269 if test x$ac_valgrind_checking != x ; then
7271 # Prepare PATH_SEPARATOR.
7272 # The user is always right.
7273 if test "${PATH_SEPARATOR+set}" != set; then
7274 echo "#! /bin/sh" >conf$$.sh
7275 echo "exit 0" >>conf$$.sh
7276 chmod +x conf$$.sh
7277 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7278 PATH_SEPARATOR=';'
7279 else
7280 PATH_SEPARATOR=:
7282 rm -f conf$$.sh
7285 # Find out how to test for executable files. Don't use a zero-byte file,
7286 # as systems may use methods other than mode bits to determine executability.
7287 cat >conf$$.file <<_ASEOF
7288 #! /bin/sh
7289 exit 0
7290 _ASEOF
7291 chmod +x conf$$.file
7292 if test -x conf$$.file >/dev/null 2>&1; then
7293 ac_executable_p="test -x"
7294 else
7295 ac_executable_p="test -f"
7297 rm -f conf$$.file
7299 # Extract the first word of "valgrind", so it can be a program name with args.
7300 set dummy valgrind; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 case "$valgrind_path" in
7307 [\\/]* | ?:[\\/]*)
7308 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7311 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7312 for ac_dir in $PATH; do
7313 IFS="$ac_save_IFS"
7314 test -z "$ac_dir" && ac_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7317 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7318 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7319 break 2
7322 done
7323 done
7324 IFS="$ac_save_IFS"
7326 esac
7328 valgrind_path="$ac_cv_path_valgrind_path"
7329 if test -n "$valgrind_path"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7331 $as_echo "$valgrind_path" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7337 if test "x$valgrind_path" = "x" \
7338 || (test $have_valgrind_h = no \
7339 && test $gcc_cv_header_memcheck_h = no \
7340 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7341 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7343 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7344 valgrind_command="$valgrind_path -q"
7346 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7352 # Enable code coverage collection
7353 # Check whether --enable-coverage was given.
7354 if test "${enable_coverage+set}" = set; then :
7355 enableval=$enable_coverage; case "${enableval}" in
7356 yes|noopt)
7357 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7359 opt)
7360 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7363 # a.k.a. --disable-coverage
7364 coverage_flags=""
7367 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7369 esac
7370 else
7371 coverage_flags=""
7376 # Check whether --enable-gather-detailed-mem-stats was given.
7377 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7378 enableval=$enable_gather_detailed_mem_stats;
7379 else
7380 enable_gather_detailed_mem_stats=no
7383 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7385 cat >>confdefs.h <<_ACEOF
7386 #define GATHER_STATISTICS $gather_stats
7387 _ACEOF
7390 # Check whether --enable-valgrind-annotations was given.
7391 if test "${enable_valgrind_annotations+set}" = set; then :
7392 enableval=$enable_valgrind_annotations;
7393 else
7394 enable_valgrind_annotations=no
7397 if test x$enable_valgrind_annotations != xno \
7398 || test x$ac_valgrind_checking != x; then
7399 if (test $have_valgrind_h = no \
7400 && test $gcc_cv_header_memcheck_h = no \
7401 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7402 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7405 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7409 # -------------------------------
7410 # Miscenalleous configure options
7411 # -------------------------------
7413 # With stabs
7415 # Check whether --with-stabs was given.
7416 if test "${with_stabs+set}" = set; then :
7417 withval=$with_stabs; stabs="$with_stabs"
7418 else
7419 stabs=no
7423 # Determine whether or not multilibs are enabled.
7424 # Check whether --enable-multilib was given.
7425 if test "${enable_multilib+set}" = set; then :
7426 enableval=$enable_multilib;
7427 else
7428 enable_multilib=yes
7433 # Determine whether or not multiarch is enabled.
7434 # Check whether --enable-multiarch was given.
7435 if test "${enable_multiarch+set}" = set; then :
7436 enableval=$enable_multiarch; case "${enableval}" in
7437 yes|no|auto) enable_multiarch=$enableval;;
7438 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7439 esac
7440 else
7441 enable_multiarch=auto
7444 if test x${enable_multiarch} = xauto; then
7445 if test x${with_native_system_header_dir} != x; then
7446 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7447 enable_multiarch=no
7449 if test x$host != x$target && test "x$with_sysroot" = x; then
7450 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7451 enable_multiarch=no
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7455 $as_echo_n "checking for multiarch configuration... " >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7458 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7460 # needed for setting the multiarch name for soft-float/hard-float ABIs
7464 # Enable __cxa_atexit for C++.
7465 # Check whether --enable-__cxa_atexit was given.
7466 if test "${enable___cxa_atexit+set}" = set; then :
7467 enableval=$enable___cxa_atexit;
7471 # Enable C extension for decimal float if target supports it.
7473 # Check whether --enable-decimal-float was given.
7474 if test "${enable_decimal_float+set}" = set; then :
7475 enableval=$enable_decimal_float;
7476 case $enable_decimal_float in
7477 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7478 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7479 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7480 esac
7482 else
7484 case $target in
7485 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7486 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7487 i?86*-*-mingw* | x86_64*-*-mingw* | \
7488 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7489 enable_decimal_float=yes
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7493 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7494 enable_decimal_float=no
7496 esac
7501 # x86's use BID format instead of DPD
7502 case x$enable_decimal_float in
7503 xyes)
7504 case $target in
7505 i?86*-*-* | x86_64*-*-*)
7506 enable_decimal_float=bid
7509 enable_decimal_float=dpd
7511 esac
7512 default_decimal_float=$enable_decimal_float
7514 xno)
7515 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7516 # dependency on libdecnumber.
7517 default_decimal_float=dpd
7519 esac
7524 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7526 cat >>confdefs.h <<_ACEOF
7527 #define ENABLE_DECIMAL_FLOAT $dfp
7528 _ACEOF
7531 # Use default_decimal_float for dependency.
7532 enable_decimal_float=$default_decimal_float
7534 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7536 cat >>confdefs.h <<_ACEOF
7537 #define ENABLE_DECIMAL_BID_FORMAT $bid
7538 _ACEOF
7541 # Enable C extension for fixed-point arithmetic.
7542 # Check whether --enable-fixed-point was given.
7543 if test "${enable_fixed_point+set}" = set; then :
7544 enableval=$enable_fixed_point;
7545 else
7547 case $target in
7548 arm*)
7549 enable_fixed_point=yes
7552 mips*-*-*)
7553 enable_fixed_point=yes
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7557 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7558 enable_fixed_point=no
7560 esac
7566 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7568 cat >>confdefs.h <<_ACEOF
7569 #define ENABLE_FIXED_POINT $fixedpoint
7570 _ACEOF
7573 # Enable threads
7574 # Pass with no value to take the default
7575 # Pass with a value to specify a thread package
7576 # Check whether --enable-threads was given.
7577 if test "${enable_threads+set}" = set; then :
7578 enableval=$enable_threads;
7579 else
7580 enable_threads=''
7584 # Check whether --enable-tls was given.
7585 if test "${enable_tls+set}" = set; then :
7586 enableval=$enable_tls;
7587 case $enable_tls in
7588 yes | no) ;;
7589 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7590 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7591 esac
7593 else
7594 enable_tls=''
7598 # Check whether --enable-vtable-verify was given.
7599 if test "${enable_vtable_verify+set}" = set; then :
7600 enableval=$enable_vtable_verify;
7601 else
7602 enable_vtable_verify=no
7605 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7607 cat >>confdefs.h <<_ACEOF
7608 #define ENABLE_VTABLE_VERIFY $vtable_verify
7609 _ACEOF
7612 # Check whether --enable-objc-gc was given.
7613 if test "${enable_objc_gc+set}" = set; then :
7614 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7615 objc_boehm_gc=''
7616 else
7617 objc_boehm_gc=1
7619 else
7620 objc_boehm_gc=''
7625 # Check whether --with-dwarf2 was given.
7626 if test "${with_dwarf2+set}" = set; then :
7627 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7628 else
7629 dwarf2=no
7633 # Check whether --enable-shared was given.
7634 if test "${enable_shared+set}" = set; then :
7635 enableval=$enable_shared;
7636 case $enable_shared in
7637 yes | no) ;;
7639 enable_shared=no
7640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7641 for pkg in $enableval; do
7642 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7643 enable_shared=yes
7645 done
7646 IFS="$ac_save_ifs"
7648 esac
7650 else
7651 enable_shared=yes
7657 # Check whether --with-specs was given.
7658 if test "${with_specs+set}" = set; then :
7659 withval=$with_specs; CONFIGURE_SPECS=$withval
7660 else
7661 CONFIGURE_SPECS=
7669 # Check whether --with-pkgversion was given.
7670 if test "${with_pkgversion+set}" = set; then :
7671 withval=$with_pkgversion; case "$withval" in
7672 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7673 no) PKGVERSION= ;;
7674 *) PKGVERSION="($withval) " ;;
7675 esac
7676 else
7677 PKGVERSION="(GCC) "
7685 # Check whether --with-bugurl was given.
7686 if test "${with_bugurl+set}" = set; then :
7687 withval=$with_bugurl; case "$withval" in
7688 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7689 no) BUGURL=
7691 *) BUGURL="$withval"
7693 esac
7694 else
7695 BUGURL="http://gcc.gnu.org/bugs.html"
7699 case ${BUGURL} in
7701 REPORT_BUGS_TO=
7702 REPORT_BUGS_TEXI=
7705 REPORT_BUGS_TO="<$BUGURL>"
7706 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7708 esac;
7713 # Sanity check enable_languages in case someone does not run the toplevel
7714 # configure # script.
7715 # Check whether --enable-languages was given.
7716 if test "${enable_languages+set}" = set; then :
7717 enableval=$enable_languages; case ,${enable_languages}, in
7718 ,,|,yes,)
7719 # go safe -- we cannot be much sure without the toplevel
7720 # configure's
7721 # analysis of which target libs are present and usable
7722 enable_languages=c
7724 *,all,*)
7725 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7727 *,c,*)
7730 enable_languages=c,${enable_languages}
7732 esac
7733 else
7734 enable_languages=c
7738 if test x"$enable_as_accelerator_for" != x; then
7740 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7742 enable_as_accelerator=yes
7743 case "${target}" in
7744 *-intelmicemul-*)
7745 # In this case we expect offload compiler to be built as native, so we
7746 # need to rename the driver to avoid clashes with host's drivers.
7747 program_transform_name="s&^&${target}-&" ;;
7748 esac
7749 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7750 program_transform_name=`echo $program_transform_name | sed $sedscript`
7751 accel_dir_suffix=/accel/${target_noncanonical}
7752 real_target_noncanonical=${enable_as_accelerator_for}
7758 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7759 tgt=`echo $tgt | sed 's/=.*//'`
7761 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7762 enable_hsa=1
7763 else
7764 enable_offloading=1
7767 if test x"$offload_targets" = x; then
7768 offload_targets=$tgt
7769 else
7770 offload_targets="$offload_targets,$tgt"
7772 done
7774 cat >>confdefs.h <<_ACEOF
7775 #define OFFLOAD_TARGETS "$offload_targets"
7776 _ACEOF
7778 if test x"$enable_offloading" != x; then
7780 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7782 else
7784 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7788 if test x"$enable_hsa" = x1 ; then
7790 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7795 # Check whether --with-multilib-list was given.
7796 if test "${with_multilib_list+set}" = set; then :
7797 withval=$with_multilib_list; :
7798 else
7799 with_multilib_list=default
7803 # -------------------------
7804 # Checks for other programs
7805 # -------------------------
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7808 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7809 set x ${MAKE-make}
7810 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7811 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 cat >conftest.make <<\_ACEOF
7815 SHELL = /bin/sh
7816 all:
7817 @echo '@@@%%%=$(MAKE)=@@@%%%'
7818 _ACEOF
7819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7820 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7821 *@@@%%%=?*=@@@%%%*)
7822 eval ac_cv_prog_make_${ac_make}_set=yes;;
7824 eval ac_cv_prog_make_${ac_make}_set=no;;
7825 esac
7826 rm -f conftest.make
7828 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7830 $as_echo "yes" >&6; }
7831 SET_MAKE=
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 SET_MAKE="MAKE=${MAKE-make}"
7839 # Find some useful tools
7840 for ac_prog in gawk mawk nawk awk
7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
7843 set dummy $ac_prog; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_AWK+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 if test -n "$AWK"; then
7850 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_prog_AWK="$ac_prog"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7863 done
7864 done
7865 IFS=$as_save_IFS
7869 AWK=$ac_cv_prog_AWK
7870 if test -n "$AWK"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7872 $as_echo "$AWK" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7879 test -n "$AWK" && break
7880 done
7882 # We need awk to create options.c and options.h.
7883 # Bail out if it's missing.
7884 case ${AWK} in
7885 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7886 esac
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7889 $as_echo_n "checking whether ln -s works... " >&6; }
7890 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 rm -f conftestdata_t
7894 echo >conftestdata_f
7895 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7896 then
7897 gcc_cv_prog_LN_S="ln -s"
7898 else
7899 if ln conftestdata_f conftestdata_t 2>/dev/null
7900 then
7901 gcc_cv_prog_LN_S=ln
7902 else
7903 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7904 then
7905 gcc_cv_prog_LN_S="cp -p"
7906 else
7907 gcc_cv_prog_LN_S=cp
7911 rm -f conftestdata_f conftestdata_t
7914 LN_S="$gcc_cv_prog_LN_S"
7915 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7917 $as_echo "yes" >&6; }
7918 else
7919 if test "$gcc_cv_prog_LN_S" = "ln"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7921 $as_echo "no, using ln" >&6; }
7922 else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7924 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7929 $as_echo_n "checking whether ln works... " >&6; }
7930 if test "${acx_cv_prog_LN+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 rm -f conftestdata_t
7934 echo >conftestdata_f
7935 if ln conftestdata_f conftestdata_t 2>/dev/null
7936 then
7937 acx_cv_prog_LN=ln
7938 else
7939 acx_cv_prog_LN=no
7941 rm -f conftestdata_f conftestdata_t
7944 if test $acx_cv_prog_LN = no; then
7945 LN="$LN_S"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7947 $as_echo "no, using $LN" >&6; }
7948 else
7949 LN="$acx_cv_prog_LN"
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7951 $as_echo "yes" >&6; }
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7976 done
7977 done
7978 IFS=$as_save_IFS
7982 RANLIB=$ac_cv_prog_RANLIB
7983 if test -n "$RANLIB"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7985 $as_echo "$RANLIB" >&6; }
7986 else
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7993 if test -z "$ac_cv_prog_RANLIB"; then
7994 ac_ct_RANLIB=$RANLIB
7995 # Extract the first word of "ranlib", so it can be a program name with args.
7996 set dummy ranlib; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$ac_ct_RANLIB"; then
8003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_ac_ct_RANLIB="ranlib"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8016 done
8017 done
8018 IFS=$as_save_IFS
8022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8023 if test -n "$ac_ct_RANLIB"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8025 $as_echo "$ac_ct_RANLIB" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8031 if test "x$ac_ct_RANLIB" = x; then
8032 RANLIB=":"
8033 else
8034 case $cross_compiling:$ac_tool_warned in
8035 yes:)
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8039 esac
8040 RANLIB=$ac_ct_RANLIB
8042 else
8043 RANLIB="$ac_cv_prog_RANLIB"
8046 ranlib_flags=""
8049 # Find a good install program. We prefer a C program (faster),
8050 # so one script is as good as another. But avoid the broken or
8051 # incompatible versions:
8052 # SysV /etc/install, /usr/sbin/install
8053 # SunOS /usr/etc/install
8054 # IRIX /sbin/install
8055 # AIX /bin/install
8056 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8057 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8058 # ./install, which can be erroneously created by make from ./install.sh.
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8060 $as_echo_n "checking for a BSD compatible install... " >&6; }
8061 if test -z "$INSTALL"; then
8062 if test "${ac_cv_path_install+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8066 for ac_dir in $PATH; do
8067 # Account for people who put trailing slashes in PATH elements.
8068 case "$ac_dir/" in
8069 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8071 # OSF1 and SCO ODT 3.0 have their own names for install.
8072 for ac_prog in ginstall scoinst install; do
8073 if test -f $ac_dir/$ac_prog; then
8074 if test $ac_prog = install &&
8075 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8076 # AIX install. It has an incompatible calling convention.
8077 # OSF/1 installbsd also uses dspmsg, but is usable.
8079 else
8080 ac_cv_path_install="$ac_dir/$ac_prog -c"
8081 break 2
8084 done
8086 esac
8087 done
8088 IFS="$ac_save_IFS"
8091 if test "${ac_cv_path_install+set}" = set; then
8092 INSTALL="$ac_cv_path_install"
8093 else
8094 # As a last resort, use the slow shell script. We don't cache a
8095 # path for INSTALL within a source directory, because that will
8096 # break other packages using the cache if that directory is
8097 # removed, or if the path is relative.
8098 INSTALL="$ac_install_sh"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8102 $as_echo "$INSTALL" >&6; }
8104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8105 # It thinks the first close brace ends the variable substitution.
8106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8108 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8111 # See if cmp has --ignore-initial.
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8113 $as_echo_n "checking for cmp's capabilities... " >&6; }
8114 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 echo abfoo >t1
8118 echo cdfoo >t2
8119 gcc_cv_prog_cmp_skip=slowcompare
8120 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8121 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8123 else
8124 gcc_cv_prog_cmp_skip=gnucompare
8127 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8128 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8129 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8131 else
8132 gcc_cv_prog_cmp_skip=fastcompare
8136 rm t1 t2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8140 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8141 make_compare_target=$gcc_cv_prog_cmp_skip
8145 # See if we have the mktemp command.
8146 # Extract the first word of "mktemp", so it can be a program name with args.
8147 set dummy mktemp; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 if test -n "$have_mktemp_command"; then
8154 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8159 IFS=$as_save_IFS
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8163 ac_cv_prog_have_mktemp_command="yes"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 break 2
8167 done
8168 done
8169 IFS=$as_save_IFS
8171 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8174 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8175 if test -n "$have_mktemp_command"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8177 $as_echo "$have_mktemp_command" >&6; }
8178 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8185 # See if makeinfo has been installed and is modern enough
8186 # that we can use it.
8188 # Extract the first word of "makeinfo", so it can be a program name with args.
8189 set dummy makeinfo; ac_word=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 if test -n "$MAKEINFO"; then
8196 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8205 ac_cv_prog_MAKEINFO="makeinfo"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 break 2
8209 done
8210 done
8211 IFS=$as_save_IFS
8215 MAKEINFO=$ac_cv_prog_MAKEINFO
8216 if test -n "$MAKEINFO"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8218 $as_echo "$MAKEINFO" >&6; }
8219 else
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8225 if test -n "$MAKEINFO"; then
8226 # Found it, now check the version.
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8228 $as_echo_n "checking for modern makeinfo... " >&6; }
8229 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8233 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8235 case $ac_prog_version in
8236 '') gcc_cv_prog_makeinfo_modern=no;;
8237 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8238 *) gcc_cv_prog_makeinfo_modern=no;;
8239 esac
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8243 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8244 else
8245 gcc_cv_prog_makeinfo_modern=no
8247 if test $gcc_cv_prog_makeinfo_modern = no; then
8248 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8251 if test $gcc_cv_prog_makeinfo_modern = no; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8253 *** Makeinfo is missing or too old.
8254 *** Info documentation will not be built." >&5
8255 $as_echo "$as_me: WARNING:
8256 *** Makeinfo is missing or too old.
8257 *** Info documentation will not be built." >&2;}
8258 BUILD_INFO=
8259 else
8260 BUILD_INFO=info
8264 # Is pod2man recent enough to regenerate manpages?
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8266 $as_echo_n "checking for recent Pod::Man... " >&6; }
8267 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269 $as_echo "yes" >&6; }
8270 GENERATED_MANPAGES=generated-manpages
8271 else
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8274 GENERATED_MANPAGES=
8278 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8280 # How about lex?
8281 for ac_prog in flex
8283 # Extract the first word of "$ac_prog", so it can be a program name with args.
8284 set dummy $ac_prog; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_prog_FLEX+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 if test -n "$FLEX"; then
8291 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8292 else
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8300 ac_cv_prog_FLEX="$ac_prog"
8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8304 done
8305 done
8306 IFS=$as_save_IFS
8310 FLEX=$ac_cv_prog_FLEX
8311 if test -n "$FLEX"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8313 $as_echo "$FLEX" >&6; }
8314 else
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8320 test -n "$FLEX" && break
8321 done
8322 test -n "$FLEX" || FLEX="$MISSING flex"
8325 # Bison?
8326 for ac_prog in bison
8328 # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy $ac_prog; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_prog_BISON+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test -n "$BISON"; then
8336 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_BISON="$ac_prog"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8355 BISON=$ac_cv_prog_BISON
8356 if test -n "$BISON"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8358 $as_echo "$BISON" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8365 test -n "$BISON" && break
8366 done
8367 test -n "$BISON" || BISON="$MISSING bison"
8370 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8371 # check for build == host before using them.
8373 # NM
8374 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8375 && test -d ../binutils ; then
8376 NM='${objdir}/../binutils/nm-new'
8377 else
8378 # Extract the first word of "nm", so it can be a program name with args.
8379 set dummy nm; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if test "${ac_cv_prog_NM+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 if test -n "$NM"; then
8386 ac_cv_prog_NM="$NM" # Let the user override the test.
8387 else
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395 ac_cv_prog_NM="nm"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 break 2
8399 done
8400 done
8401 IFS=$as_save_IFS
8403 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8406 NM=$ac_cv_prog_NM
8407 if test -n "$NM"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8409 $as_echo "$NM" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8418 # AR
8419 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8420 && test -d ../binutils ; then
8421 AR='${objdir}/../binutils/ar'
8422 else
8423 # Extract the first word of "ar", so it can be a program name with args.
8424 set dummy ar; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if test "${ac_cv_prog_AR+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 if test -n "$AR"; then
8431 ac_cv_prog_AR="$AR" # Let the user override the test.
8432 else
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_prog_AR="ar"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8448 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8451 AR=$ac_cv_prog_AR
8452 if test -n "$AR"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8454 $as_echo "$AR" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8463 # The jit documentation looks better if built with sphinx, but can be
8464 # built with texinfo if sphinx is not available.
8465 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8466 # Extract the first word of "sphinx-build", so it can be a program name with args.
8467 set dummy sphinx-build; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 if test -n "$doc_build_sys"; then
8474 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_prog_doc_build_sys="sphinx"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8487 done
8488 done
8489 IFS=$as_save_IFS
8491 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8494 doc_build_sys=$ac_cv_prog_doc_build_sys
8495 if test -n "$doc_build_sys"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8497 $as_echo "$doc_build_sys" >&6; }
8498 else
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8505 # --------------------
8506 # Checks for C headers
8507 # --------------------
8509 # Need to reject headers which give warnings, so that the -Werror bootstrap
8510 # works later. *sigh* This needs to come before all header checks.
8512 ac_c_preproc_warn_flag=yes
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8515 $as_echo_n "checking for ANSI C header files... " >&6; }
8516 if test "${ac_cv_header_stdc+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <stdlib.h>
8522 #include <stdarg.h>
8523 #include <string.h>
8524 #include <float.h>
8527 main ()
8531 return 0;
8533 _ACEOF
8534 if ac_fn_cxx_try_compile "$LINENO"; then :
8535 ac_cv_header_stdc=yes
8536 else
8537 ac_cv_header_stdc=no
8539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 if test $ac_cv_header_stdc = yes; then
8542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <string.h>
8547 _ACEOF
8548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8549 $EGREP "memchr" >/dev/null 2>&1; then :
8551 else
8552 ac_cv_header_stdc=no
8554 rm -f conftest*
8558 if test $ac_cv_header_stdc = yes; then
8559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562 #include <stdlib.h>
8564 _ACEOF
8565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8566 $EGREP "free" >/dev/null 2>&1; then :
8568 else
8569 ac_cv_header_stdc=no
8571 rm -f conftest*
8575 if test $ac_cv_header_stdc = yes; then
8576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8577 if test "$cross_compiling" = yes; then :
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #include <ctype.h>
8583 #include <stdlib.h>
8584 #if ((' ' & 0x0FF) == 0x020)
8585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8587 #else
8588 # define ISLOWER(c) \
8589 (('a' <= (c) && (c) <= 'i') \
8590 || ('j' <= (c) && (c) <= 'r') \
8591 || ('s' <= (c) && (c) <= 'z'))
8592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8593 #endif
8595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8597 main ()
8599 int i;
8600 for (i = 0; i < 256; i++)
8601 if (XOR (islower (i), ISLOWER (i))
8602 || toupper (i) != TOUPPER (i))
8603 return 2;
8604 return 0;
8606 _ACEOF
8607 if ac_fn_cxx_try_run "$LINENO"; then :
8609 else
8610 ac_cv_header_stdc=no
8612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8613 conftest.$ac_objext conftest.beam conftest.$ac_ext
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8619 $as_echo "$ac_cv_header_stdc" >&6; }
8620 if test $ac_cv_header_stdc = yes; then
8622 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8627 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8628 if test "${ac_cv_header_time+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 #include <sys/types.h>
8634 #include <sys/time.h>
8635 #include <time.h>
8638 main ()
8640 if ((struct tm *) 0)
8641 return 0;
8643 return 0;
8645 _ACEOF
8646 if ac_fn_cxx_try_compile "$LINENO"; then :
8647 ac_cv_header_time=yes
8648 else
8649 ac_cv_header_time=no
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8654 $as_echo "$ac_cv_header_time" >&6; }
8655 if test $ac_cv_header_time = yes; then
8657 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8662 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8663 if test "${gcc_cv_header_string+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #include <string.h>
8669 #include <strings.h>
8671 main ()
8675 return 0;
8677 _ACEOF
8678 if ac_fn_cxx_try_compile "$LINENO"; then :
8679 gcc_cv_header_string=yes
8680 else
8681 gcc_cv_header_string=no
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8686 $as_echo "$gcc_cv_header_string" >&6; }
8687 if test $gcc_cv_header_string = yes; then
8689 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8694 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8695 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <sys/types.h>
8701 #include <sys/wait.h>
8702 #ifndef WEXITSTATUS
8703 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8704 #endif
8705 #ifndef WIFEXITED
8706 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8707 #endif
8710 main ()
8712 int s;
8713 wait (&s);
8714 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8716 return 0;
8718 _ACEOF
8719 if ac_fn_cxx_try_compile "$LINENO"; then :
8720 ac_cv_header_sys_wait_h=yes
8721 else
8722 ac_cv_header_sys_wait_h=no
8724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8727 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8728 if test $ac_cv_header_sys_wait_h = yes; then
8730 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8735 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8736 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 #include <sys/types.h>
8742 #include <termios.h>
8743 #ifdef TIOCGWINSZ
8745 #endif
8747 _ACEOF
8748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8749 $EGREP "yes" >/dev/null 2>&1; then :
8750 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8751 else
8752 ac_cv_sys_tiocgwinsz_in_termios_h=no
8754 rm -f conftest*
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8758 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8760 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8762 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8763 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 #include <sys/types.h>
8769 #include <sys/ioctl.h>
8770 #ifdef TIOCGWINSZ
8772 #endif
8774 _ACEOF
8775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8776 $EGREP "yes" >/dev/null 2>&1; then :
8777 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8778 else
8779 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8781 rm -f conftest*
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8785 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8787 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8789 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8794 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8795 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8796 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8797 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8798 do :
8799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8800 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8801 eval as_val=\$$as_ac_Header
8802 if test "x$as_val" = x""yes; then :
8803 cat >>confdefs.h <<_ACEOF
8804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8805 _ACEOF
8808 done
8811 # Check for thread headers.
8812 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8813 if test "x$ac_cv_header_thread_h" = x""yes; then :
8814 have_thread_h=yes
8815 else
8816 have_thread_h=
8819 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8820 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8821 have_pthread_h=yes
8822 else
8823 have_pthread_h=
8827 # These tests can't be done till we know if we have limits.h.
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8829 $as_echo_n "checking for CHAR_BIT... " >&6; }
8830 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 #ifdef HAVE_LIMITS_H
8836 #include <limits.h>
8837 #endif
8838 #ifdef CHAR_BIT
8839 found
8840 #endif
8841 _ACEOF
8842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8843 $EGREP "found" >/dev/null 2>&1; then :
8844 gcc_cv_decl_char_bit=yes
8845 else
8846 gcc_cv_decl_char_bit=no
8848 rm -f conftest*
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8853 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8854 if test $gcc_cv_decl_char_bit = no; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8856 $as_echo_n "checking number of bits in a byte... " >&6; }
8857 if test "${gcc_cv_c_nbby+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8861 gcc_cv_c_nbby=
8862 while test $i -lt 65; do
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8867 main ()
8869 switch(0) {
8870 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8871 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8874 return 0;
8876 _ACEOF
8877 if ac_fn_cxx_try_compile "$LINENO"; then :
8878 gcc_cv_c_nbby=$i; break
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 i=`expr $i + 1`
8882 done
8883 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8887 $as_echo "$gcc_cv_c_nbby" >&6; }
8888 if test $gcc_cv_c_nbby = failed; then
8889 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8890 else
8892 cat >>confdefs.h <<_ACEOF
8893 #define CHAR_BIT $gcc_cv_c_nbby
8894 _ACEOF
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8899 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8900 if test "${ac_cv_c_bigendian+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 ac_cv_c_bigendian=unknown
8904 # See if we're dealing with a universal compiler.
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #ifndef __APPLE_CC__
8908 not a universal capable compiler
8909 #endif
8910 typedef int dummy;
8912 _ACEOF
8913 if ac_fn_cxx_try_compile "$LINENO"; then :
8915 # Check for potential -arch flags. It is not universal unless
8916 # there are at least two -arch flags with different values.
8917 ac_arch=
8918 ac_prev=
8919 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8920 if test -n "$ac_prev"; then
8921 case $ac_word in
8922 i?86 | x86_64 | ppc | ppc64)
8923 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8924 ac_arch=$ac_word
8925 else
8926 ac_cv_c_bigendian=universal
8927 break
8930 esac
8931 ac_prev=
8932 elif test "x$ac_word" = "x-arch"; then
8933 ac_prev=arch
8935 done
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 if test $ac_cv_c_bigendian = unknown; then
8939 # See if sys/param.h defines the BYTE_ORDER macro.
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include <sys/types.h>
8943 #include <sys/param.h>
8946 main ()
8948 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8949 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8950 && LITTLE_ENDIAN)
8951 bogus endian macros
8952 #endif
8955 return 0;
8957 _ACEOF
8958 if ac_fn_cxx_try_compile "$LINENO"; then :
8959 # It does; now see whether it defined to BIG_ENDIAN or not.
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 #include <sys/types.h>
8963 #include <sys/param.h>
8966 main ()
8968 #if BYTE_ORDER != BIG_ENDIAN
8969 not big endian
8970 #endif
8973 return 0;
8975 _ACEOF
8976 if ac_fn_cxx_try_compile "$LINENO"; then :
8977 ac_cv_c_bigendian=yes
8978 else
8979 ac_cv_c_bigendian=no
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 if test $ac_cv_c_bigendian = unknown; then
8986 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989 #include <limits.h>
8992 main ()
8994 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8995 bogus endian macros
8996 #endif
8999 return 0;
9001 _ACEOF
9002 if ac_fn_cxx_try_compile "$LINENO"; then :
9003 # It does; now see whether it defined to _BIG_ENDIAN or not.
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9006 #include <limits.h>
9009 main ()
9011 #ifndef _BIG_ENDIAN
9012 not big endian
9013 #endif
9016 return 0;
9018 _ACEOF
9019 if ac_fn_cxx_try_compile "$LINENO"; then :
9020 ac_cv_c_bigendian=yes
9021 else
9022 ac_cv_c_bigendian=no
9024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 if test $ac_cv_c_bigendian = unknown; then
9029 # Compile a test program.
9030 if test "$cross_compiling" = yes; then :
9031 # Try to guess by grepping values from an object file.
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 short int ascii_mm[] =
9035 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9036 short int ascii_ii[] =
9037 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9038 int use_ascii (int i) {
9039 return ascii_mm[i] + ascii_ii[i];
9041 short int ebcdic_ii[] =
9042 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9043 short int ebcdic_mm[] =
9044 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9045 int use_ebcdic (int i) {
9046 return ebcdic_mm[i] + ebcdic_ii[i];
9048 extern int foo;
9051 main ()
9053 return use_ascii (foo) == use_ebcdic (foo);
9055 return 0;
9057 _ACEOF
9058 if ac_fn_cxx_try_compile "$LINENO"; then :
9059 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9060 ac_cv_c_bigendian=yes
9062 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9063 if test "$ac_cv_c_bigendian" = unknown; then
9064 ac_cv_c_bigendian=no
9065 else
9066 # finding both strings is unlikely to happen, but who knows?
9067 ac_cv_c_bigendian=unknown
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 else
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 $ac_includes_default
9077 main ()
9080 /* Are we little or big endian? From Harbison&Steele. */
9081 union
9083 long int l;
9084 char c[sizeof (long int)];
9085 } u;
9086 u.l = 1;
9087 return u.c[sizeof (long int) - 1] == 1;
9090 return 0;
9092 _ACEOF
9093 if ac_fn_cxx_try_run "$LINENO"; then :
9094 ac_cv_c_bigendian=no
9095 else
9096 ac_cv_c_bigendian=yes
9098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9099 conftest.$ac_objext conftest.beam conftest.$ac_ext
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9105 $as_echo "$ac_cv_c_bigendian" >&6; }
9106 case $ac_cv_c_bigendian in #(
9107 yes)
9108 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9109 ;; #(
9111 ;; #(
9112 universal)
9114 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9116 ;; #(
9118 as_fn_error "unknown endianness
9119 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9120 esac
9123 # ----------------------
9124 # Checks for C++ headers
9125 # ----------------------
9127 ac_ext=cpp
9128 ac_cpp='$CXXCPP $CPPFLAGS'
9129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9133 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9134 if test -z "$CXXCPP"; then
9135 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 # Double quotes because CXXCPP needs to be expanded
9139 for CXXCPP in "$CXX -E" "/lib/cpp"
9141 ac_preproc_ok=false
9142 for ac_cxx_preproc_warn_flag in '' yes
9144 # Use a header file that comes with gcc, so configuring glibc
9145 # with a fresh cross-compiler works.
9146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9147 # <limits.h> exists even on freestanding compilers.
9148 # On the NeXT, cc -E runs the code through the compiler's parser,
9149 # not just through cpp. "Syntax error" is here to catch this case.
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9152 #ifdef __STDC__
9153 # include <limits.h>
9154 #else
9155 # include <assert.h>
9156 #endif
9157 Syntax error
9158 _ACEOF
9159 if ac_fn_cxx_try_cpp "$LINENO"; then :
9161 else
9162 # Broken: fails on valid input.
9163 continue
9165 rm -f conftest.err conftest.$ac_ext
9167 # OK, works on sane cases. Now check whether nonexistent headers
9168 # can be detected and how.
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 #include <ac_nonexistent.h>
9172 _ACEOF
9173 if ac_fn_cxx_try_cpp "$LINENO"; then :
9174 # Broken: success on invalid input.
9175 continue
9176 else
9177 # Passes both tests.
9178 ac_preproc_ok=:
9179 break
9181 rm -f conftest.err conftest.$ac_ext
9183 done
9184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9185 rm -f conftest.err conftest.$ac_ext
9186 if $ac_preproc_ok; then :
9187 break
9190 done
9191 ac_cv_prog_CXXCPP=$CXXCPP
9194 CXXCPP=$ac_cv_prog_CXXCPP
9195 else
9196 ac_cv_prog_CXXCPP=$CXXCPP
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9199 $as_echo "$CXXCPP" >&6; }
9200 ac_preproc_ok=false
9201 for ac_cxx_preproc_warn_flag in '' yes
9203 # Use a header file that comes with gcc, so configuring glibc
9204 # with a fresh cross-compiler works.
9205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9206 # <limits.h> exists even on freestanding compilers.
9207 # On the NeXT, cc -E runs the code through the compiler's parser,
9208 # not just through cpp. "Syntax error" is here to catch this case.
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 #ifdef __STDC__
9212 # include <limits.h>
9213 #else
9214 # include <assert.h>
9215 #endif
9216 Syntax error
9217 _ACEOF
9218 if ac_fn_cxx_try_cpp "$LINENO"; then :
9220 else
9221 # Broken: fails on valid input.
9222 continue
9224 rm -f conftest.err conftest.$ac_ext
9226 # OK, works on sane cases. Now check whether nonexistent headers
9227 # can be detected and how.
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <ac_nonexistent.h>
9231 _ACEOF
9232 if ac_fn_cxx_try_cpp "$LINENO"; then :
9233 # Broken: success on invalid input.
9234 continue
9235 else
9236 # Passes both tests.
9237 ac_preproc_ok=:
9238 break
9240 rm -f conftest.err conftest.$ac_ext
9242 done
9243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9244 rm -f conftest.err conftest.$ac_ext
9245 if $ac_preproc_ok; then :
9247 else
9248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9251 See \`config.log' for more details." >&5
9252 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9253 See \`config.log' for more details." >&2;}; }
9256 ac_ext=cpp
9257 ac_cpp='$CXXCPP $CPPFLAGS'
9258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9263 for ac_header in unordered_map
9264 do :
9265 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9266 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9267 cat >>confdefs.h <<_ACEOF
9268 #define HAVE_UNORDERED_MAP 1
9269 _ACEOF
9272 done
9274 for ac_header in tr1/unordered_map
9275 do :
9276 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9277 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9278 cat >>confdefs.h <<_ACEOF
9279 #define HAVE_TR1_UNORDERED_MAP 1
9280 _ACEOF
9283 done
9285 for ac_header in ext/hash_map
9286 do :
9287 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9288 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9289 cat >>confdefs.h <<_ACEOF
9290 #define HAVE_EXT_HASH_MAP 1
9291 _ACEOF
9294 done
9297 # --------
9298 # Dependency checking.
9299 # --------
9301 rm -rf .tst 2>/dev/null
9302 mkdir .tst 2>/dev/null
9303 if test -d .tst; then
9304 am__leading_dot=.
9305 else
9306 am__leading_dot=_
9308 rmdir .tst 2>/dev/null
9310 DEPDIR="${am__leading_dot}deps"
9312 ac_config_commands="$ac_config_commands depdir"
9315 ac_config_commands="$ac_config_commands gccdepdir"
9318 depcc="$CXX" am_compiler_list=
9320 am_depcomp=$ac_aux_dir/depcomp
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9322 $as_echo_n "checking dependency style of $depcc... " >&6; }
9323 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 if test -f "$am_depcomp"; then
9327 # We make a subdir and do the tests there. Otherwise we can end up
9328 # making bogus files that we don't know about and never remove. For
9329 # instance it was reported that on HP-UX the gcc test will end up
9330 # making a dummy file named `D' -- because `-MD' means `put the output
9331 # in D'.
9332 mkdir conftest.dir
9333 # Copy depcomp to subdir because otherwise we won't find it if we're
9334 # using a relative directory.
9335 cp "$am_depcomp" conftest.dir
9336 cd conftest.dir
9337 # We will build objects and dependencies in a subdirectory because
9338 # it helps to detect inapplicable dependency modes. For instance
9339 # both Tru64's cc and ICC support -MD to output dependencies as a
9340 # side effect of compilation, but ICC will put the dependencies in
9341 # the current directory while Tru64 will put them in the object
9342 # directory.
9343 mkdir sub
9345 am_cv_CXX_dependencies_compiler_type=none
9346 if test "$am_compiler_list" = ""; then
9347 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9349 for depmode in $am_compiler_list; do
9350 if test $depmode = none; then break; fi
9352 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9353 # Setup a source with many dependencies, because some compilers
9354 # like to wrap large dependency lists on column 80 (with \), and
9355 # we should not choose a depcomp mode which is confused by this.
9357 # We need to recreate these files for each test, as the compiler may
9358 # overwrite some of them when testing with obscure command lines.
9359 # This happens at least with the AIX C compiler.
9360 : > sub/conftest.c
9361 for i in 1 2 3 4 5 6; do
9362 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9364 # Solaris 8's {/usr,}/bin/sh.
9365 touch sub/conftst$i.h
9366 done
9367 echo "include sub/conftest.Po" > confmf
9369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9370 # mode. It turns out that the SunPro C++ compiler does not properly
9371 # handle `-M -o', and we need to detect this.
9372 depcmd="depmode=$depmode \
9373 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9375 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9376 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9377 if env $depcmd > conftest.err 2>&1 &&
9378 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9379 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9380 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9381 # icc doesn't choke on unknown options, it will just issue warnings
9382 # or remarks (even with -Werror). So we grep stderr for any message
9383 # that says an option was ignored or not supported.
9384 # When given -MP, icc 7.0 and 7.1 complain thusly:
9385 # icc: Command line warning: ignoring option '-M'; no argument required
9386 # The diagnosis changed in icc 8.0:
9387 # icc: Command line remark: option '-MP' not supported
9388 if (grep 'ignoring option' conftest.err ||
9389 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9390 am_cv_CXX_dependencies_compiler_type=$depmode
9391 $as_echo "$as_me:$LINENO: success" >&5
9392 break
9395 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9396 sed -e 's/^/| /' < conftest.err >&5
9397 done
9399 cd ..
9400 rm -rf conftest.dir
9401 else
9402 am_cv_CXX_dependencies_compiler_type=none
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9407 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9408 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9409 then as_fn_error "no usable dependency style found" "$LINENO" 5
9410 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9415 # --------
9416 # UNSORTED
9417 # --------
9420 # These libraries may be used by collect2.
9421 # We may need a special search path to get them linked.
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9423 $as_echo_n "checking for collect2 libraries... " >&6; }
9424 if test "${gcc_cv_collect2_libs+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 save_LIBS="$LIBS"
9428 for libs in '' -lld -lmld \
9429 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9430 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9432 LIBS="$libs"
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9436 /* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
9439 #ifdef __cplusplus
9440 extern "C"
9441 #endif
9442 char ldopen ();
9444 main ()
9446 return ldopen ();
9448 return 0;
9450 _ACEOF
9451 if ac_fn_cxx_try_link "$LINENO"; then :
9452 gcc_cv_collect2_libs="$libs"; break
9454 rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 done
9457 LIBS="$save_LIBS"
9458 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9461 $as_echo "$gcc_cv_collect2_libs" >&6; }
9462 case $gcc_cv_collect2_libs in
9463 "none required") ;;
9464 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9465 esac
9468 # When building Ada code on Alpha, we need exc_resume which is usually in
9469 # -lexc. So test for it.
9470 save_LIBS="$LIBS"
9471 LIBS=
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9473 $as_echo_n "checking for library containing exc_resume... " >&6; }
9474 if test "${ac_cv_search_exc_resume+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 ac_func_search_save_LIBS=$LIBS
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9481 /* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
9484 #ifdef __cplusplus
9485 extern "C"
9486 #endif
9487 char exc_resume ();
9489 main ()
9491 return exc_resume ();
9493 return 0;
9495 _ACEOF
9496 for ac_lib in '' exc; do
9497 if test -z "$ac_lib"; then
9498 ac_res="none required"
9499 else
9500 ac_res=-l$ac_lib
9501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9503 if ac_fn_cxx_try_link "$LINENO"; then :
9504 ac_cv_search_exc_resume=$ac_res
9506 rm -f core conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext
9508 if test "${ac_cv_search_exc_resume+set}" = set; then :
9509 break
9511 done
9512 if test "${ac_cv_search_exc_resume+set}" = set; then :
9514 else
9515 ac_cv_search_exc_resume=no
9517 rm conftest.$ac_ext
9518 LIBS=$ac_func_search_save_LIBS
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9521 $as_echo "$ac_cv_search_exc_resume" >&6; }
9522 ac_res=$ac_cv_search_exc_resume
9523 if test "$ac_res" != no; then :
9524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9528 GNAT_LIBEXC="$LIBS"
9529 LIBS="$save_LIBS"
9532 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9533 save_LIBS="$LIBS"
9534 LIBS=
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9536 $as_echo_n "checking for library containing kstat_open... " >&6; }
9537 if test "${ac_cv_search_kstat_open+set}" = set; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 ac_func_search_save_LIBS=$LIBS
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9547 #ifdef __cplusplus
9548 extern "C"
9549 #endif
9550 char kstat_open ();
9552 main ()
9554 return kstat_open ();
9556 return 0;
9558 _ACEOF
9559 for ac_lib in '' kstat; do
9560 if test -z "$ac_lib"; then
9561 ac_res="none required"
9562 else
9563 ac_res=-l$ac_lib
9564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9566 if ac_fn_cxx_try_link "$LINENO"; then :
9567 ac_cv_search_kstat_open=$ac_res
9569 rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext
9571 if test "${ac_cv_search_kstat_open+set}" = set; then :
9572 break
9574 done
9575 if test "${ac_cv_search_kstat_open+set}" = set; then :
9577 else
9578 ac_cv_search_kstat_open=no
9580 rm conftest.$ac_ext
9581 LIBS=$ac_func_search_save_LIBS
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9584 $as_echo "$ac_cv_search_kstat_open" >&6; }
9585 ac_res=$ac_cv_search_kstat_open
9586 if test "$ac_res" != no; then :
9587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9591 EXTRA_GCC_LIBS="$LIBS"
9592 LIBS="$save_LIBS"
9595 # Some systems put ldexp and frexp in libm instead of libc; assume
9596 # they're both in the same place. jcf-dump needs them.
9597 save_LIBS="$LIBS"
9598 LIBS=
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9600 $as_echo_n "checking for library containing ldexp... " >&6; }
9601 if test "${ac_cv_search_ldexp+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 ac_func_search_save_LIBS=$LIBS
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 char ldexp ();
9616 main ()
9618 return ldexp ();
9620 return 0;
9622 _ACEOF
9623 for ac_lib in '' m; do
9624 if test -z "$ac_lib"; then
9625 ac_res="none required"
9626 else
9627 ac_res=-l$ac_lib
9628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9630 if ac_fn_cxx_try_link "$LINENO"; then :
9631 ac_cv_search_ldexp=$ac_res
9633 rm -f core conftest.err conftest.$ac_objext \
9634 conftest$ac_exeext
9635 if test "${ac_cv_search_ldexp+set}" = set; then :
9636 break
9638 done
9639 if test "${ac_cv_search_ldexp+set}" = set; then :
9641 else
9642 ac_cv_search_ldexp=no
9644 rm conftest.$ac_ext
9645 LIBS=$ac_func_search_save_LIBS
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9648 $as_echo "$ac_cv_search_ldexp" >&6; }
9649 ac_res=$ac_cv_search_ldexp
9650 if test "$ac_res" != no; then :
9651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9655 LDEXP_LIB="$LIBS"
9656 LIBS="$save_LIBS"
9659 # Use <inttypes.h> only if it exists,
9660 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9661 # PRId64
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9663 $as_echo_n "checking for inttypes.h... " >&6; }
9664 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #define __STDC_FORMAT_MACROS
9670 #include <sys/types.h>
9671 #include <inttypes.h>
9673 main ()
9675 intmax_t i = -1;
9676 #ifndef PRId64
9677 choke me
9678 #endif
9680 return 0;
9682 _ACEOF
9683 if ac_fn_cxx_try_compile "$LINENO"; then :
9684 gcc_cv_header_inttypes_h=yes
9685 else
9686 gcc_cv_header_inttypes_h=no
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9692 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9693 if test $gcc_cv_header_inttypes_h = yes; then
9695 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9701 for ac_func in times clock kill getrlimit setrlimit atoq \
9702 popen sysconf strsignal getrusage nl_langinfo \
9703 gettimeofday mbstowcs wcswidth mmap setlocale \
9704 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
9705 do :
9706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9707 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9708 eval as_val=\$$as_ac_var
9709 if test "x$as_val" = x""yes; then :
9710 cat >>confdefs.h <<_ACEOF
9711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9712 _ACEOF
9715 done
9718 if test x$ac_cv_func_mbstowcs = xyes; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9720 $as_echo_n "checking whether mbstowcs works... " >&6; }
9721 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 if test "$cross_compiling" = yes; then :
9725 gcc_cv_func_mbstowcs_works=yes
9726 else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 #include <stdlib.h>
9730 int main()
9732 mbstowcs(0, "", 0);
9733 return 0;
9735 _ACEOF
9736 if ac_fn_cxx_try_run "$LINENO"; then :
9737 gcc_cv_func_mbstowcs_works=yes
9738 else
9739 gcc_cv_func_mbstowcs_works=no
9741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9742 conftest.$ac_objext conftest.beam conftest.$ac_ext
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9747 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9748 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9750 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9755 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9756 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9758 else
9760 cat >>confdefs.h <<_ACEOF
9761 #define ssize_t int
9762 _ACEOF
9766 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9767 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9769 else
9771 cat >>confdefs.h <<_ACEOF
9772 #define caddr_t char *
9773 _ACEOF
9779 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9780 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9781 gcc_header_sys_mman_h=yes
9782 else
9783 gcc_header_sys_mman_h=no
9786 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9787 if test "x$ac_cv_func_mmap" = x""yes; then :
9788 gcc_func_mmap=yes
9789 else
9790 gcc_func_mmap=no
9793 if test "$gcc_header_sys_mman_h" != yes \
9794 || test "$gcc_func_mmap" != yes; then
9795 gcc_cv_func_mmap_file=no
9796 gcc_cv_func_mmap_dev_zero=no
9797 gcc_cv_func_mmap_anon=no
9798 else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9800 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9801 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 # Add a system to this blacklist if
9805 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9806 # memory area containing the same data that you'd get if you applied
9807 # read() to the same fd. The only system known to have a problem here
9808 # is VMS, where text files have record structure.
9809 case "$host_os" in
9810 *vms* | ultrix*)
9811 gcc_cv_func_mmap_file=no ;;
9813 gcc_cv_func_mmap_file=yes;;
9814 esac
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9817 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9819 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9820 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 # Add a system to this blacklist if it has mmap() but /dev/zero
9824 # does not exist, or if mmapping /dev/zero does not give anonymous
9825 # zeroed pages with both the following properties:
9826 # 1. If you map N consecutive pages in with one call, and then
9827 # unmap any subset of those pages, the pages that were not
9828 # explicitly unmapped remain accessible.
9829 # 2. If you map two adjacent blocks of memory and then unmap them
9830 # both at once, they must both go away.
9831 # Systems known to be in this category are Windows (all variants),
9832 # VMS, and Darwin.
9833 case "$host_os" in
9834 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9835 gcc_cv_func_mmap_dev_zero=no ;;
9837 gcc_cv_func_mmap_dev_zero=yes;;
9838 esac
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9841 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9843 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9845 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9846 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851 #include <sys/types.h>
9852 #include <sys/mman.h>
9853 #include <unistd.h>
9855 #ifndef MAP_ANONYMOUS
9856 #define MAP_ANONYMOUS MAP_ANON
9857 #endif
9860 main ()
9862 int n = MAP_ANONYMOUS;
9864 return 0;
9866 _ACEOF
9867 if ac_fn_cxx_try_compile "$LINENO"; then :
9868 gcc_cv_decl_map_anon=yes
9869 else
9870 gcc_cv_decl_map_anon=no
9872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9875 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9877 if test $gcc_cv_decl_map_anon = no; then
9878 gcc_cv_func_mmap_anon=no
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9881 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9882 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9886 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9887 # doesn't give anonymous zeroed pages with the same properties listed
9888 # above for use of /dev/zero.
9889 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9890 case "$host_os" in
9891 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9892 gcc_cv_func_mmap_anon=no ;;
9894 gcc_cv_func_mmap_anon=yes;;
9895 esac
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9898 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9902 if test $gcc_cv_func_mmap_file = yes; then
9904 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9907 if test $gcc_cv_func_mmap_dev_zero = yes; then
9909 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9912 if test $gcc_cv_func_mmap_anon = yes; then
9914 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9919 case "${host}" in
9920 *-*-*vms*)
9921 # Under VMS, vfork works very differently than on Unix. The standard test
9922 # won't work, and it isn't easily adaptable. It makes more sense to
9923 # just force it.
9924 ac_cv_func_vfork_works=yes
9926 esac
9927 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9928 if test "x$ac_cv_type_pid_t" = x""yes; then :
9930 else
9932 cat >>confdefs.h <<_ACEOF
9933 #define pid_t int
9934 _ACEOF
9938 for ac_header in vfork.h
9939 do :
9940 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9941 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9942 cat >>confdefs.h <<_ACEOF
9943 #define HAVE_VFORK_H 1
9944 _ACEOF
9947 done
9949 for ac_func in fork vfork
9950 do :
9951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9952 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9953 eval as_val=\$$as_ac_var
9954 if test "x$as_val" = x""yes; then :
9955 cat >>confdefs.h <<_ACEOF
9956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9957 _ACEOF
9960 done
9962 if test "x$ac_cv_func_fork" = xyes; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9964 $as_echo_n "checking for working fork... " >&6; }
9965 if test "${ac_cv_func_fork_works+set}" = set; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 if test "$cross_compiling" = yes; then :
9969 ac_cv_func_fork_works=cross
9970 else
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 $ac_includes_default
9975 main ()
9978 /* By Ruediger Kuhlmann. */
9979 return fork () < 0;
9982 return 0;
9984 _ACEOF
9985 if ac_fn_cxx_try_run "$LINENO"; then :
9986 ac_cv_func_fork_works=yes
9987 else
9988 ac_cv_func_fork_works=no
9990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9991 conftest.$ac_objext conftest.beam conftest.$ac_ext
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9996 $as_echo "$ac_cv_func_fork_works" >&6; }
9998 else
9999 ac_cv_func_fork_works=$ac_cv_func_fork
10001 if test "x$ac_cv_func_fork_works" = xcross; then
10002 case $host in
10003 *-*-amigaos* | *-*-msdosdjgpp*)
10004 # Override, as these systems have only a dummy fork() stub
10005 ac_cv_func_fork_works=no
10008 ac_cv_func_fork_works=yes
10010 esac
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10012 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10014 ac_cv_func_vfork_works=$ac_cv_func_vfork
10015 if test "x$ac_cv_func_vfork" = xyes; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10017 $as_echo_n "checking for working vfork... " >&6; }
10018 if test "${ac_cv_func_vfork_works+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 if test "$cross_compiling" = yes; then :
10022 ac_cv_func_vfork_works=cross
10023 else
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10026 /* Thanks to Paul Eggert for this test. */
10027 $ac_includes_default
10028 #include <sys/wait.h>
10029 #ifdef HAVE_VFORK_H
10030 # include <vfork.h>
10031 #endif
10032 /* On some sparc systems, changes by the child to local and incoming
10033 argument registers are propagated back to the parent. The compiler
10034 is told about this with #include <vfork.h>, but some compilers
10035 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10036 static variable whose address is put into a register that is
10037 clobbered by the vfork. */
10038 static void
10039 #ifdef __cplusplus
10040 sparc_address_test (int arg)
10041 # else
10042 sparc_address_test (arg) int arg;
10043 #endif
10045 static pid_t child;
10046 if (!child) {
10047 child = vfork ();
10048 if (child < 0) {
10049 perror ("vfork");
10050 _exit(2);
10052 if (!child) {
10053 arg = getpid();
10054 write(-1, "", 0);
10055 _exit (arg);
10061 main ()
10063 pid_t parent = getpid ();
10064 pid_t child;
10066 sparc_address_test (0);
10068 child = vfork ();
10070 if (child == 0) {
10071 /* Here is another test for sparc vfork register problems. This
10072 test uses lots of local variables, at least as many local
10073 variables as main has allocated so far including compiler
10074 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10075 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10076 reuse the register of parent for one of the local variables,
10077 since it will think that parent can't possibly be used any more
10078 in this routine. Assigning to the local variable will thus
10079 munge parent in the parent process. */
10080 pid_t
10081 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10082 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10083 /* Convince the compiler that p..p7 are live; otherwise, it might
10084 use the same hardware register for all 8 local variables. */
10085 if (p != p1 || p != p2 || p != p3 || p != p4
10086 || p != p5 || p != p6 || p != p7)
10087 _exit(1);
10089 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10090 from child file descriptors. If the child closes a descriptor
10091 before it execs or exits, this munges the parent's descriptor
10092 as well. Test for this by closing stdout in the child. */
10093 _exit(close(fileno(stdout)) != 0);
10094 } else {
10095 int status;
10096 struct stat st;
10098 while (wait(&status) != child)
10100 return (
10101 /* Was there some problem with vforking? */
10102 child < 0
10104 /* Did the child fail? (This shouldn't happen.) */
10105 || status
10107 /* Did the vfork/compiler bug occur? */
10108 || parent != getpid()
10110 /* Did the file descriptor bug occur? */
10111 || fstat(fileno(stdout), &st) != 0
10115 _ACEOF
10116 if ac_fn_cxx_try_run "$LINENO"; then :
10117 ac_cv_func_vfork_works=yes
10118 else
10119 ac_cv_func_vfork_works=no
10121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10122 conftest.$ac_objext conftest.beam conftest.$ac_ext
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10127 $as_echo "$ac_cv_func_vfork_works" >&6; }
10130 if test "x$ac_cv_func_fork_works" = xcross; then
10131 ac_cv_func_vfork_works=$ac_cv_func_vfork
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10133 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10136 if test "x$ac_cv_func_vfork_works" = xyes; then
10138 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10140 else
10142 $as_echo "#define vfork fork" >>confdefs.h
10145 if test "x$ac_cv_func_fork_works" = xyes; then
10147 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10153 if test "X$prefix" = "XNONE"; then
10154 acl_final_prefix="$ac_default_prefix"
10155 else
10156 acl_final_prefix="$prefix"
10158 if test "X$exec_prefix" = "XNONE"; then
10159 acl_final_exec_prefix='${prefix}'
10160 else
10161 acl_final_exec_prefix="$exec_prefix"
10163 acl_save_prefix="$prefix"
10164 prefix="$acl_final_prefix"
10165 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10166 prefix="$acl_save_prefix"
10169 # Check whether --with-gnu-ld was given.
10170 if test "${with_gnu_ld+set}" = set; then :
10171 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10172 else
10173 with_gnu_ld=no
10176 # Prepare PATH_SEPARATOR.
10177 # The user is always right.
10178 if test "${PATH_SEPARATOR+set}" != set; then
10179 echo "#! /bin/sh" >conf$$.sh
10180 echo "exit 0" >>conf$$.sh
10181 chmod +x conf$$.sh
10182 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10183 PATH_SEPARATOR=';'
10184 else
10185 PATH_SEPARATOR=:
10187 rm -f conf$$.sh
10189 ac_prog=ld
10190 if test "$GCC" = yes; then
10191 # Check if gcc -print-prog-name=ld gives a path.
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10193 $as_echo_n "checking for ld used by GCC... " >&6; }
10194 case $host in
10195 *-*-mingw*)
10196 # gcc leaves a trailing carriage return which upsets mingw
10197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10200 esac
10201 case $ac_prog in
10202 # Accept absolute paths.
10203 [\\/]* | [A-Za-z]:[\\/]*)
10204 re_direlt='/[^/][^/]*/\.\./'
10205 # Canonicalize the path of ld
10206 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10207 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10208 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10209 done
10210 test -z "$LD" && LD="$ac_prog"
10213 # If it fails, then pretend we aren't using GCC.
10214 ac_prog=ld
10217 # If it is relative, then search for the first ld in PATH.
10218 with_gnu_ld=unknown
10220 esac
10221 elif test "$with_gnu_ld" = yes; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10223 $as_echo_n "checking for GNU ld... " >&6; }
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10226 $as_echo_n "checking for non-GNU ld... " >&6; }
10228 if test "${acl_cv_path_LD+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 if test -z "$LD"; then
10232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10233 for ac_dir in $PATH; do
10234 test -z "$ac_dir" && ac_dir=.
10235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10236 acl_cv_path_LD="$ac_dir/$ac_prog"
10237 # Check to see if the program is GNU ld. I'd rather use --version,
10238 # but apparently some GNU ld's only accept -v.
10239 # Break only if it was the GNU/non-GNU ld that we prefer.
10240 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10241 test "$with_gnu_ld" != no && break
10242 else
10243 test "$with_gnu_ld" != yes && break
10246 done
10247 IFS="$ac_save_ifs"
10248 else
10249 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10253 LD="$acl_cv_path_LD"
10254 if test -n "$LD"; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10256 $as_echo "$LD" >&6; }
10257 else
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10261 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10264 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10268 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10269 acl_cv_prog_gnu_ld=yes
10270 else
10271 acl_cv_prog_gnu_ld=no
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10275 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10276 with_gnu_ld=$acl_cv_prog_gnu_ld
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10281 $as_echo_n "checking for shared library run path origin... " >&6; }
10282 if test "${acl_cv_rpath+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10286 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10287 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10288 . ./conftest.sh
10289 rm -f ./conftest.sh
10290 acl_cv_rpath=done
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10294 $as_echo "$acl_cv_rpath" >&6; }
10295 wl="$acl_cv_wl"
10296 libext="$acl_cv_libext"
10297 shlibext="$acl_cv_shlibext"
10298 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10299 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10300 hardcode_direct="$acl_cv_hardcode_direct"
10301 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10302 # Check whether --enable-rpath was given.
10303 if test "${enable_rpath+set}" = set; then :
10304 enableval=$enable_rpath; :
10305 else
10306 enable_rpath=yes
10316 use_additional=yes
10318 acl_save_prefix="$prefix"
10319 prefix="$acl_final_prefix"
10320 acl_save_exec_prefix="$exec_prefix"
10321 exec_prefix="$acl_final_exec_prefix"
10323 eval additional_includedir=\"$includedir\"
10324 eval additional_libdir=\"$libdir\"
10326 exec_prefix="$acl_save_exec_prefix"
10327 prefix="$acl_save_prefix"
10330 # Check whether --with-libiconv-prefix was given.
10331 if test "${with_libiconv_prefix+set}" = set; then :
10332 withval=$with_libiconv_prefix;
10333 if test "X$withval" = "Xno"; then
10334 use_additional=no
10335 else
10336 if test "X$withval" = "X"; then
10338 acl_save_prefix="$prefix"
10339 prefix="$acl_final_prefix"
10340 acl_save_exec_prefix="$exec_prefix"
10341 exec_prefix="$acl_final_exec_prefix"
10343 eval additional_includedir=\"$includedir\"
10344 eval additional_libdir=\"$libdir\"
10346 exec_prefix="$acl_save_exec_prefix"
10347 prefix="$acl_save_prefix"
10349 else
10350 additional_includedir="$withval/include"
10351 additional_libdir="$withval/lib"
10357 LIBICONV=
10358 LTLIBICONV=
10359 INCICONV=
10360 rpathdirs=
10361 ltrpathdirs=
10362 names_already_handled=
10363 names_next_round='iconv '
10364 while test -n "$names_next_round"; do
10365 names_this_round="$names_next_round"
10366 names_next_round=
10367 for name in $names_this_round; do
10368 already_handled=
10369 for n in $names_already_handled; do
10370 if test "$n" = "$name"; then
10371 already_handled=yes
10372 break
10374 done
10375 if test -z "$already_handled"; then
10376 names_already_handled="$names_already_handled $name"
10377 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10378 eval value=\"\$HAVE_LIB$uppername\"
10379 if test -n "$value"; then
10380 if test "$value" = yes; then
10381 eval value=\"\$LIB$uppername\"
10382 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10383 eval value=\"\$LTLIB$uppername\"
10384 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10385 else
10388 else
10389 found_dir=
10390 found_la=
10391 found_so=
10392 found_a=
10393 if test $use_additional = yes; then
10394 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10395 found_dir="$additional_libdir"
10396 found_so="$additional_libdir/lib$name.$shlibext"
10397 if test -f "$additional_libdir/lib$name.la"; then
10398 found_la="$additional_libdir/lib$name.la"
10400 else
10401 if test -f "$additional_libdir/lib$name.$libext"; then
10402 found_dir="$additional_libdir"
10403 found_a="$additional_libdir/lib$name.$libext"
10404 if test -f "$additional_libdir/lib$name.la"; then
10405 found_la="$additional_libdir/lib$name.la"
10410 if test "X$found_dir" = "X"; then
10411 for x in $LDFLAGS $LTLIBICONV; do
10413 acl_save_prefix="$prefix"
10414 prefix="$acl_final_prefix"
10415 acl_save_exec_prefix="$exec_prefix"
10416 exec_prefix="$acl_final_exec_prefix"
10417 eval x=\"$x\"
10418 exec_prefix="$acl_save_exec_prefix"
10419 prefix="$acl_save_prefix"
10421 case "$x" in
10422 -L*)
10423 dir=`echo "X$x" | sed -e 's/^X-L//'`
10424 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10425 found_dir="$dir"
10426 found_so="$dir/lib$name.$shlibext"
10427 if test -f "$dir/lib$name.la"; then
10428 found_la="$dir/lib$name.la"
10430 else
10431 if test -f "$dir/lib$name.$libext"; then
10432 found_dir="$dir"
10433 found_a="$dir/lib$name.$libext"
10434 if test -f "$dir/lib$name.la"; then
10435 found_la="$dir/lib$name.la"
10440 esac
10441 if test "X$found_dir" != "X"; then
10442 break
10444 done
10446 if test "X$found_dir" != "X"; then
10447 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10448 if test "X$found_so" != "X"; then
10449 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10451 else
10452 haveit=
10453 for x in $ltrpathdirs; do
10454 if test "X$x" = "X$found_dir"; then
10455 haveit=yes
10456 break
10458 done
10459 if test -z "$haveit"; then
10460 ltrpathdirs="$ltrpathdirs $found_dir"
10462 if test "$hardcode_direct" = yes; then
10463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10464 else
10465 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10467 haveit=
10468 for x in $rpathdirs; do
10469 if test "X$x" = "X$found_dir"; then
10470 haveit=yes
10471 break
10473 done
10474 if test -z "$haveit"; then
10475 rpathdirs="$rpathdirs $found_dir"
10477 else
10478 haveit=
10479 for x in $LDFLAGS $LIBICONV; do
10481 acl_save_prefix="$prefix"
10482 prefix="$acl_final_prefix"
10483 acl_save_exec_prefix="$exec_prefix"
10484 exec_prefix="$acl_final_exec_prefix"
10485 eval x=\"$x\"
10486 exec_prefix="$acl_save_exec_prefix"
10487 prefix="$acl_save_prefix"
10489 if test "X$x" = "X-L$found_dir"; then
10490 haveit=yes
10491 break
10493 done
10494 if test -z "$haveit"; then
10495 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10497 if test "$hardcode_minus_L" != no; then
10498 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10499 else
10500 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10505 else
10506 if test "X$found_a" != "X"; then
10507 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10508 else
10509 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10512 additional_includedir=
10513 case "$found_dir" in
10514 */lib | */lib/)
10515 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10516 additional_includedir="$basedir/include"
10518 esac
10519 if test "X$additional_includedir" != "X"; then
10520 if test "X$additional_includedir" != "X/usr/include"; then
10521 haveit=
10522 if test "X$additional_includedir" = "X/usr/local/include"; then
10523 if test -n "$GCC"; then
10524 case $host_os in
10525 linux*) haveit=yes;;
10526 esac
10529 if test -z "$haveit"; then
10530 for x in $CPPFLAGS $INCICONV; do
10532 acl_save_prefix="$prefix"
10533 prefix="$acl_final_prefix"
10534 acl_save_exec_prefix="$exec_prefix"
10535 exec_prefix="$acl_final_exec_prefix"
10536 eval x=\"$x\"
10537 exec_prefix="$acl_save_exec_prefix"
10538 prefix="$acl_save_prefix"
10540 if test "X$x" = "X-I$additional_includedir"; then
10541 haveit=yes
10542 break
10544 done
10545 if test -z "$haveit"; then
10546 if test -d "$additional_includedir"; then
10547 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10553 if test -n "$found_la"; then
10554 save_libdir="$libdir"
10555 case "$found_la" in
10556 */* | *\\*) . "$found_la" ;;
10557 *) . "./$found_la" ;;
10558 esac
10559 libdir="$save_libdir"
10560 for dep in $dependency_libs; do
10561 case "$dep" in
10562 -L*)
10563 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10564 if test "X$additional_libdir" != "X/usr/lib"; then
10565 haveit=
10566 if test "X$additional_libdir" = "X/usr/local/lib"; then
10567 if test -n "$GCC"; then
10568 case $host_os in
10569 linux*) haveit=yes;;
10570 esac
10573 if test -z "$haveit"; then
10574 haveit=
10575 for x in $LDFLAGS $LIBICONV; do
10577 acl_save_prefix="$prefix"
10578 prefix="$acl_final_prefix"
10579 acl_save_exec_prefix="$exec_prefix"
10580 exec_prefix="$acl_final_exec_prefix"
10581 eval x=\"$x\"
10582 exec_prefix="$acl_save_exec_prefix"
10583 prefix="$acl_save_prefix"
10585 if test "X$x" = "X-L$additional_libdir"; then
10586 haveit=yes
10587 break
10589 done
10590 if test -z "$haveit"; then
10591 if test -d "$additional_libdir"; then
10592 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10595 haveit=
10596 for x in $LDFLAGS $LTLIBICONV; do
10598 acl_save_prefix="$prefix"
10599 prefix="$acl_final_prefix"
10600 acl_save_exec_prefix="$exec_prefix"
10601 exec_prefix="$acl_final_exec_prefix"
10602 eval x=\"$x\"
10603 exec_prefix="$acl_save_exec_prefix"
10604 prefix="$acl_save_prefix"
10606 if test "X$x" = "X-L$additional_libdir"; then
10607 haveit=yes
10608 break
10610 done
10611 if test -z "$haveit"; then
10612 if test -d "$additional_libdir"; then
10613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10619 -R*)
10620 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10621 if test "$enable_rpath" != no; then
10622 haveit=
10623 for x in $rpathdirs; do
10624 if test "X$x" = "X$dir"; then
10625 haveit=yes
10626 break
10628 done
10629 if test -z "$haveit"; then
10630 rpathdirs="$rpathdirs $dir"
10632 haveit=
10633 for x in $ltrpathdirs; do
10634 if test "X$x" = "X$dir"; then
10635 haveit=yes
10636 break
10638 done
10639 if test -z "$haveit"; then
10640 ltrpathdirs="$ltrpathdirs $dir"
10644 -l*)
10645 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10647 *.la)
10648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10651 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10654 esac
10655 done
10657 else
10658 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10659 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10663 done
10664 done
10665 if test "X$rpathdirs" != "X"; then
10666 if test -n "$hardcode_libdir_separator"; then
10667 alldirs=
10668 for found_dir in $rpathdirs; do
10669 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10670 done
10671 acl_save_libdir="$libdir"
10672 libdir="$alldirs"
10673 eval flag=\"$hardcode_libdir_flag_spec\"
10674 libdir="$acl_save_libdir"
10675 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10676 else
10677 for found_dir in $rpathdirs; do
10678 acl_save_libdir="$libdir"
10679 libdir="$found_dir"
10680 eval flag=\"$hardcode_libdir_flag_spec\"
10681 libdir="$acl_save_libdir"
10682 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10683 done
10686 if test "X$ltrpathdirs" != "X"; then
10687 for found_dir in $ltrpathdirs; do
10688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10689 done
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10699 $as_echo_n "checking for iconv... " >&6; }
10700 if test "${am_cv_func_iconv+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10704 am_cv_func_iconv="no, consider installing GNU libiconv"
10705 am_cv_lib_iconv=no
10706 am_save_CPPFLAGS="$CPPFLAGS"
10707 CPPFLAGS="$CPPFLAGS $INCICONV"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 #include <stdlib.h>
10711 #include <iconv.h>
10713 main ()
10715 iconv_t cd = iconv_open("","");
10716 iconv(cd,NULL,NULL,NULL,NULL);
10717 iconv_close(cd);
10719 return 0;
10721 _ACEOF
10722 if ac_fn_cxx_try_link "$LINENO"; then :
10723 am_cv_func_iconv=yes
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 CPPFLAGS="$am_save_CPPFLAGS"
10729 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10730 for _libs in .libs _libs; do
10731 am_save_CPPFLAGS="$CPPFLAGS"
10732 am_save_LIBS="$LIBS"
10733 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10734 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 #include <stdlib.h>
10738 #include <iconv.h>
10740 main ()
10742 iconv_t cd = iconv_open("","");
10743 iconv(cd,NULL,NULL,NULL,NULL);
10744 iconv_close(cd);
10746 return 0;
10748 _ACEOF
10749 if ac_fn_cxx_try_link "$LINENO"; then :
10750 INCICONV="-I../libiconv/include"
10751 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10752 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10753 am_cv_lib_iconv=yes
10754 am_cv_func_iconv=yes
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 CPPFLAGS="$am_save_CPPFLAGS"
10759 LIBS="$am_save_LIBS"
10760 if test "$am_cv_func_iconv" = "yes"; then
10761 break
10763 done
10766 if test "$am_cv_func_iconv" != yes; then
10767 am_save_CPPFLAGS="$CPPFLAGS"
10768 am_save_LIBS="$LIBS"
10769 CPPFLAGS="$LIBS $INCICONV"
10770 LIBS="$LIBS $LIBICONV"
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773 #include <stdlib.h>
10774 #include <iconv.h>
10776 main ()
10778 iconv_t cd = iconv_open("","");
10779 iconv(cd,NULL,NULL,NULL,NULL);
10780 iconv_close(cd);
10782 return 0;
10784 _ACEOF
10785 if ac_fn_cxx_try_link "$LINENO"; then :
10786 am_cv_lib_iconv=yes
10787 am_cv_func_iconv=yes
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 CPPFLAGS="$am_save_CPPFLAGS"
10792 LIBS="$am_save_LIBS"
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10797 $as_echo "$am_cv_func_iconv" >&6; }
10798 if test "$am_cv_func_iconv" = yes; then
10800 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10803 if test "$am_cv_lib_iconv" = yes; then
10805 for element in $INCICONV; do
10806 haveit=
10807 for x in $CPPFLAGS; do
10809 acl_save_prefix="$prefix"
10810 prefix="$acl_final_prefix"
10811 acl_save_exec_prefix="$exec_prefix"
10812 exec_prefix="$acl_final_exec_prefix"
10813 eval x=\"$x\"
10814 exec_prefix="$acl_save_exec_prefix"
10815 prefix="$acl_save_prefix"
10817 if test "X$x" = "X$element"; then
10818 haveit=yes
10819 break
10821 done
10822 if test -z "$haveit"; then
10823 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10825 done
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10828 $as_echo_n "checking how to link with libiconv... " >&6; }
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10830 $as_echo "$LIBICONV" >&6; }
10831 else
10832 LIBICONV=
10833 LTLIBICONV=
10838 if test "$am_cv_func_iconv" = yes; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10840 $as_echo_n "checking for iconv declaration... " >&6; }
10841 if test "${am_cv_proto_iconv+set}" = set; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 #include <stdlib.h>
10849 #include <iconv.h>
10850 extern
10851 #ifdef __cplusplus
10853 #endif
10854 #if defined(__STDC__) || defined(__cplusplus)
10855 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10856 #else
10857 size_t iconv();
10858 #endif
10861 main ()
10865 return 0;
10867 _ACEOF
10868 if ac_fn_cxx_try_compile "$LINENO"; then :
10869 am_cv_proto_iconv_arg1=""
10870 else
10871 am_cv_proto_iconv_arg1="const"
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 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);"
10877 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10879 }$am_cv_proto_iconv" >&5
10880 $as_echo "${ac_t:-
10881 }$am_cv_proto_iconv" >&6; }
10883 cat >>confdefs.h <<_ACEOF
10884 #define ICONV_CONST $am_cv_proto_iconv_arg1
10885 _ACEOF
10890 # Until we have in-tree GNU iconv:
10891 LIBICONV_DEP=
10892 if test -f "$LTLIBICONV"; then
10893 LIBICONV_DEP=$LTLIBICONV
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10899 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10900 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905 #include <locale.h>
10907 main ()
10909 return LC_MESSAGES
10911 return 0;
10913 _ACEOF
10914 if ac_fn_cxx_try_link "$LINENO"; then :
10915 am_cv_val_LC_MESSAGES=yes
10916 else
10917 am_cv_val_LC_MESSAGES=no
10919 rm -f core conftest.err conftest.$ac_objext \
10920 conftest$ac_exeext conftest.$ac_ext
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10923 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10924 if test $am_cv_val_LC_MESSAGES = yes; then
10926 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10933 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10934 if test "${am_cv_langinfo_codeset+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10939 #include <langinfo.h>
10941 main ()
10943 char* cs = nl_langinfo(CODESET);
10945 return 0;
10947 _ACEOF
10948 if ac_fn_cxx_try_link "$LINENO"; then :
10949 am_cv_langinfo_codeset=yes
10950 else
10951 am_cv_langinfo_codeset=no
10953 rm -f core conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10958 $as_echo "$am_cv_langinfo_codeset" >&6; }
10959 if test $am_cv_langinfo_codeset = yes; then
10961 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10966 # We will need to find libiberty.h and ansidecl.h
10967 saved_CFLAGS="$CFLAGS"
10968 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10969 saved_CXXFLAGS="$CXXFLAGS"
10970 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10972 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10973 # normal autoconf function for these. But force definition of
10974 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10975 # basename handling in libiberty.h.
10976 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10977 #undef HAVE_DECL_BASENAME
10978 #define HAVE_DECL_BASENAME 1
10979 #include \"ansidecl.h\"
10980 #include \"system.h\"
10982 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10983 ac_have_decl=1
10984 else
10985 ac_have_decl=0
10988 cat >>confdefs.h <<_ACEOF
10989 #define HAVE_DECL_BASENAME $ac_have_decl
10990 _ACEOF
10991 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10992 #undef HAVE_DECL_BASENAME
10993 #define HAVE_DECL_BASENAME 1
10994 #include \"ansidecl.h\"
10995 #include \"system.h\"
10997 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10998 ac_have_decl=1
10999 else
11000 ac_have_decl=0
11003 cat >>confdefs.h <<_ACEOF
11004 #define HAVE_DECL_STRSTR $ac_have_decl
11005 _ACEOF
11008 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11009 madvise stpcpy strnlen strsignal strverscmp \
11010 strtol strtoul strtoll strtoull setenv unsetenv \
11011 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11012 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
11014 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11016 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11017 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11018 $as_echo_n "(cached) " >&6
11019 else
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11022 #undef $ac_tr_decl
11023 #define $ac_tr_decl 1
11025 #include "ansidecl.h"
11026 #include "system.h"
11029 main ()
11031 #ifndef $ac_func
11032 char *(*pfn) = (char *(*)) $ac_func ;
11033 #endif
11035 return 0;
11037 _ACEOF
11038 if ac_fn_cxx_try_compile "$LINENO"; then :
11039 eval "gcc_cv_have_decl_$ac_func=yes"
11040 else
11041 eval "gcc_cv_have_decl_$ac_func=no"
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11048 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11049 #define $ac_tr_decl 1
11050 _ACEOF
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11055 #define $ac_tr_decl 0
11056 _ACEOF
11060 done
11063 for ac_func in getrlimit setrlimit getrusage
11065 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11067 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11068 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11073 #undef $ac_tr_decl
11074 #define $ac_tr_decl 1
11076 #include "ansidecl.h"
11077 #include "system.h"
11078 #ifdef HAVE_SYS_RESOURCE_H
11079 #include <sys/resource.h>
11080 #endif
11084 main ()
11086 #ifndef $ac_func
11087 char *(*pfn) = (char *(*)) $ac_func ;
11088 #endif
11090 return 0;
11092 _ACEOF
11093 if ac_fn_cxx_try_compile "$LINENO"; then :
11094 eval "gcc_cv_have_decl_$ac_func=yes"
11095 else
11096 eval "gcc_cv_have_decl_$ac_func=no"
11098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11103 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11104 #define $ac_tr_decl 1
11105 _ACEOF
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11110 #define $ac_tr_decl 0
11111 _ACEOF
11115 done
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11121 #include "ansidecl.h"
11122 #include "system.h"
11123 #ifdef HAVE_SYS_RESOURCE_H
11124 #include <sys/resource.h>
11125 #endif
11128 main ()
11130 rlim_t l = 0;
11132 return 0;
11134 _ACEOF
11135 if ac_fn_cxx_try_compile "$LINENO"; then :
11137 else
11139 $as_echo "#define rlim_t long" >>confdefs.h
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11145 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11146 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11147 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11148 for ac_func in ldgetname
11150 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11152 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11153 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158 #undef $ac_tr_decl
11159 #define $ac_tr_decl 1
11161 #include "ansidecl.h"
11162 #include "system.h"
11163 #ifdef HAVE_LDFCN_H
11164 #undef FREAD
11165 #undef FWRITE
11166 #include <ldfcn.h>
11167 #endif
11171 main ()
11173 #ifndef $ac_func
11174 char *(*pfn) = (char *(*)) $ac_func ;
11175 #endif
11177 return 0;
11179 _ACEOF
11180 if ac_fn_cxx_try_compile "$LINENO"; then :
11181 eval "gcc_cv_have_decl_$ac_func=yes"
11182 else
11183 eval "gcc_cv_have_decl_$ac_func=no"
11185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11190 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11191 #define $ac_tr_decl 1
11192 _ACEOF
11194 else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11197 #define $ac_tr_decl 0
11198 _ACEOF
11202 done
11205 for ac_func in times
11207 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11209 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11210 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215 #undef $ac_tr_decl
11216 #define $ac_tr_decl 1
11218 #include "ansidecl.h"
11219 #include "system.h"
11220 #ifdef HAVE_SYS_TIMES_H
11221 #include <sys/times.h>
11222 #endif
11226 main ()
11228 #ifndef $ac_func
11229 char *(*pfn) = (char *(*)) $ac_func ;
11230 #endif
11232 return 0;
11234 _ACEOF
11235 if ac_fn_cxx_try_compile "$LINENO"; then :
11236 eval "gcc_cv_have_decl_$ac_func=yes"
11237 else
11238 eval "gcc_cv_have_decl_$ac_func=no"
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11246 #define $ac_tr_decl 1
11247 _ACEOF
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11252 #define $ac_tr_decl 0
11253 _ACEOF
11257 done
11260 for ac_func in sigaltstack
11262 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11264 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11265 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11266 $as_echo_n "(cached) " >&6
11267 else
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11270 #undef $ac_tr_decl
11271 #define $ac_tr_decl 1
11273 #include "ansidecl.h"
11274 #include "system.h"
11275 #include <signal.h>
11279 main ()
11281 #ifndef $ac_func
11282 char *(*pfn) = (char *(*)) $ac_func ;
11283 #endif
11285 return 0;
11287 _ACEOF
11288 if ac_fn_cxx_try_compile "$LINENO"; then :
11289 eval "gcc_cv_have_decl_$ac_func=yes"
11290 else
11291 eval "gcc_cv_have_decl_$ac_func=no"
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11298 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11299 #define $ac_tr_decl 1
11300 _ACEOF
11302 else
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11305 #define $ac_tr_decl 0
11306 _ACEOF
11310 done
11313 # More time-related stuff.
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11315 $as_echo_n "checking for struct tms... " >&6; }
11316 if test "${ac_cv_struct_tms+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11323 #include "ansidecl.h"
11324 #include "system.h"
11325 #ifdef HAVE_SYS_TIMES_H
11326 #include <sys/times.h>
11327 #endif
11330 main ()
11332 struct tms tms;
11334 return 0;
11336 _ACEOF
11337 if ac_fn_cxx_try_compile "$LINENO"; then :
11338 ac_cv_struct_tms=yes
11339 else
11340 ac_cv_struct_tms=no
11342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11345 $as_echo "$ac_cv_struct_tms" >&6; }
11346 if test $ac_cv_struct_tms = yes; then
11348 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11352 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11353 # revisit after autoconf 2.50.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11355 $as_echo_n "checking for clock_t... " >&6; }
11356 if test "${gcc_cv_type_clock_t+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11358 else
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11363 #include "ansidecl.h"
11364 #include "system.h"
11367 main ()
11369 clock_t x;
11371 return 0;
11373 _ACEOF
11374 if ac_fn_cxx_try_compile "$LINENO"; then :
11375 gcc_cv_type_clock_t=yes
11376 else
11377 gcc_cv_type_clock_t=no
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11382 $as_echo "$gcc_cv_type_clock_t" >&6; }
11383 if test $gcc_cv_type_clock_t = yes; then
11385 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11389 # Check if F_SETLKW is supported by fcntl.
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11391 $as_echo_n "checking for F_SETLKW... " >&6; }
11392 if test "${ac_cv_f_setlkw+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11399 #include <fcntl.h>
11401 main ()
11404 struct flock fl;
11405 fl.l_whence = 0;
11406 fl.l_start = 0;
11407 fl.l_len = 0;
11408 fl.l_pid = 0;
11409 return fcntl (1, F_SETLKW, &fl);
11411 return 0;
11413 _ACEOF
11414 if ac_fn_cxx_try_compile "$LINENO"; then :
11415 ac_cv_f_setlkw=yes
11416 else
11417 ac_cv_f_setlkw=no
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11422 $as_echo "$ac_cv_f_setlkw" >&6; }
11423 if test $ac_cv_f_setlkw = yes; then
11425 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11429 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11430 CFLAGS="$saved_CFLAGS"
11431 CXXFLAGS="$saved_CXXFLAGS"
11433 # mkdir takes a single argument on some systems.
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11435 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11436 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11442 #include <sys/types.h>
11443 #ifdef HAVE_SYS_STAT_H
11444 # include <sys/stat.h>
11445 #endif
11446 #ifdef HAVE_UNISTD_H
11447 # include <unistd.h>
11448 #endif
11449 #ifdef HAVE_DIRECT_H
11450 # include <direct.h>
11451 #endif
11453 main ()
11455 mkdir ("foo", 0);
11457 return 0;
11459 _ACEOF
11460 if ac_fn_cxx_try_compile "$LINENO"; then :
11461 gcc_cv_mkdir_takes_one_arg=no
11462 else
11463 gcc_cv_mkdir_takes_one_arg=yes
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11468 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11469 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11471 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11476 # File extensions
11477 manext='.1'
11478 objext='.o'
11482 # With Setjmp/Longjmp based exception handling.
11483 # Check whether --enable-sjlj-exceptions was given.
11484 if test "${enable_sjlj_exceptions+set}" = set; then :
11485 enableval=$enable_sjlj_exceptions; case $target in
11486 *-*-hpux10*)
11487 if test $enableval != yes; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11489 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11490 enableval=yes
11493 esac
11494 force_sjlj_exceptions=yes
11495 else
11496 case $target in
11497 *-*-hpux10*)
11498 force_sjlj_exceptions=yes
11499 enableval=yes
11501 lm32*-*-*)
11502 force_sjlj_exceptions=yes
11503 enableval=yes
11506 force_sjlj_exceptions=no
11508 esac
11511 if test $force_sjlj_exceptions = yes; then
11512 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11514 cat >>confdefs.h <<_ACEOF
11515 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11516 _ACEOF
11520 # --------------------------------------------------------
11521 # Build, host, and target specific configuration fragments
11522 # --------------------------------------------------------
11524 # Collect build-machine-specific information.
11525 . ${srcdir}/config.build
11527 # Collect host-machine-specific information.
11528 . ${srcdir}/config.host
11530 target_gtfiles=
11532 # Collect target-machine-specific information.
11533 . ${srcdir}/config.gcc
11535 extra_objs="${host_extra_objs} ${extra_objs}"
11536 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11538 # Default the target-machine variables that were not explicitly set.
11539 if test x"$tm_file" = x
11540 then tm_file=$cpu_type/$cpu_type.h; fi
11542 if test x"$extra_headers" = x
11543 then extra_headers=; fi
11545 if test x$md_file = x
11546 then md_file=$cpu_type/$cpu_type.md; fi
11548 if test x$out_file = x
11549 then out_file=$cpu_type/$cpu_type.c; fi
11551 if test x"$tmake_file" = x
11552 then tmake_file=$cpu_type/t-$cpu_type
11555 # Support --enable-initfini-array.
11556 if test x$enable_initfini_array != xno; then
11557 tm_file="${tm_file} initfini-array.h"
11560 if test x"$dwarf2" = xyes
11561 then tm_file="$tm_file tm-dwarf2.h"
11564 # Say what files are being used for the output code and MD file.
11565 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11566 echo "Using \`$srcdir/config/$md_file' as machine description file."
11568 # If any of the xm_file variables contain nonexistent files, warn
11569 # about them and drop them.
11572 for x in $build_xm_file; do
11573 if test -f $srcdir/config/$x
11574 then bx="$bx $x"
11575 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11576 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11578 done
11579 build_xm_file="$bx"
11582 for x in $host_xm_file; do
11583 if test -f $srcdir/config/$x
11584 then hx="$hx $x"
11585 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11586 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11588 done
11589 host_xm_file="$hx"
11592 for x in $xm_file; do
11593 if test -f $srcdir/config/$x
11594 then tx="$tx $x"
11595 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11596 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11598 done
11599 xm_file="$tx"
11601 count=a
11602 for f in $tm_file; do
11603 count=${count}x
11604 done
11605 if test $count = ax; then
11606 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11607 else
11608 echo "Using the following target machine macro files:"
11609 for f in $tm_file; do
11610 echo " $srcdir/config/$f"
11611 done
11614 if test x$use_long_long_for_widest_fast_int = xyes; then
11616 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11620 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11622 cat >>confdefs.h <<_ACEOF
11623 #define HAVE_GNU_LD $gnu_ld_bool
11624 _ACEOF
11627 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11629 cat >>confdefs.h <<_ACEOF
11630 #define HAVE_GNU_AS $gnu_as_bool
11631 _ACEOF
11634 count=a
11635 for f in $host_xm_file; do
11636 count=${count}x
11637 done
11638 if test $count = a; then
11640 elif test $count = ax; then
11641 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11642 else
11643 echo "Using the following host machine macro files:"
11644 for f in $host_xm_file; do
11645 echo " $srcdir/config/$f"
11646 done
11648 echo "Using ${out_host_hook_obj} for host machine hooks."
11650 if test "$host_xm_file" != "$build_xm_file"; then
11651 count=a
11652 for f in $build_xm_file; do
11653 count=${count}x
11654 done
11655 if test $count = a; then
11657 elif test $count = ax; then
11658 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11659 else
11660 echo "Using the following build machine macro files:"
11661 for f in $build_xm_file; do
11662 echo " $srcdir/config/$f"
11663 done
11667 if test -n "$configured_native_system_header_dir"; then
11668 native_system_header_dir=$configured_native_system_header_dir
11670 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11673 case ${host} in
11674 powerpc*-*-darwin*)
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11676 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11677 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11683 #include <sys/cdefs.h>
11684 #include <sys/signal.h>
11685 #include <ucontext.h>
11686 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11688 _ACEOF
11689 if ac_fn_cxx_try_compile "$LINENO"; then :
11690 gcc_cv_mcontext_underscores=no
11691 else
11692 gcc_cv_mcontext_underscores=yes
11694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11697 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11698 if test $gcc_cv_mcontext_underscores = yes; then
11700 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11704 esac
11706 # ---------
11707 # Threading
11708 # ---------
11710 # Check if a valid thread package
11711 case ${enable_threads} in
11712 "" | no)
11713 # No threads
11714 target_thread_file='single'
11716 yes)
11717 # default
11718 target_thread_file='single'
11720 aix | dce | lynx | mipssde | posix | rtems | \
11721 single | tpf | vxworks | win32)
11722 target_thread_file=${enable_threads}
11725 echo "${enable_threads} is an unknown thread package" 1>&2
11726 exit 1
11728 esac
11730 if test x${thread_file} = x; then
11731 # No thread file set by target-specific clauses in config.gcc,
11732 # so use file chosen by default logic above
11733 thread_file=${target_thread_file}
11736 # --------
11737 # UNSORTED
11738 # --------
11740 use_cxa_atexit=no
11741 if test x$enable___cxa_atexit = xyes || \
11742 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11743 if test x$host = x$target; then
11744 case $host in
11745 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11746 # keyed to flag_use_cxa_atexit
11747 *-*-mingw32*)
11748 use_cxa_atexit=yes
11750 powerpc-ibm-aix*)
11751 use_cxa_atexit=yes
11754 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11755 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11756 use_cxa_atexit=yes
11757 else
11758 echo "__cxa_atexit can't be enabled on this target"
11762 esac
11763 else
11764 # We can't check for __cxa_atexit when building a cross, so assume
11765 # it is available
11766 use_cxa_atexit=yes
11768 if test x$use_cxa_atexit = xyes; then
11770 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11775 # Look for a file containing extra machine modes.
11776 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11777 extra_modes_file='$(srcdir)'/config/${extra_modes}
11780 cat >>confdefs.h <<_ACEOF
11781 #define EXTRA_MODES_FILE "config/$extra_modes"
11782 _ACEOF
11786 # Convert extra_options into a form suitable for Makefile use.
11787 extra_opt_files=
11788 all_opt_files=
11789 for f in $extra_options; do
11790 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11791 all_opt_files="$all_opt_files $srcdir/config/$f"
11792 done
11795 # auto-host.h is the file containing items generated by autoconf and is
11796 # the first file included by config.h.
11797 # If host=build, it is correct to have bconfig include auto-host.h
11798 # as well. If host!=build, we are in error and need to do more
11799 # work to find out the build config parameters.
11800 if test x$host = x$build
11801 then
11802 build_auto=auto-host.h
11803 else
11804 # We create a subdir, then run autoconf in the subdir.
11805 # To prevent recursion we set host and build for the new
11806 # invocation of configure to the build for this invocation
11807 # of configure.
11808 tempdir=build.$$
11809 rm -rf $tempdir
11810 mkdir $tempdir
11811 cd $tempdir
11812 case ${srcdir} in
11813 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11814 *) realsrcdir=../${srcdir};;
11815 esac
11816 # Clearing GMPINC is necessary to prevent host headers being
11817 # used by the build compiler. Defining GENERATOR_FILE stops
11818 # system.h from including gmp.h.
11819 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11820 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11821 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11822 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11823 ${realsrcdir}/configure \
11824 --enable-languages=${enable_languages-all} \
11825 --target=$target_alias --host=$build_alias --build=$build_alias
11827 # We just finished tests for the build machine, so rename
11828 # the file auto-build.h in the gcc directory.
11829 mv auto-host.h ../auto-build.h
11830 cd ..
11831 rm -rf $tempdir
11832 build_auto=auto-build.h
11836 tm_file="${tm_file} defaults.h"
11837 tm_p_file="${tm_p_file} tm-preds.h"
11838 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11839 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11840 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11841 # put this back in temporarily.
11842 xm_file="auto-host.h ansidecl.h ${xm_file}"
11844 # --------
11845 # UNSORTED
11846 # --------
11848 # Compile in configure arguments.
11849 if test -f configargs.h ; then
11850 # Being re-configured.
11851 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11852 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11853 else
11854 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11857 # Double all backslashes and backslash all quotes to turn
11858 # gcc_config_arguments into a C string.
11859 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11860 $gcc_config_arguments
11862 gcc_config_arguments_str=`cat conftest.out`
11863 rm -f conftest.out
11865 cat > configargs.h <<EOF
11866 /* Generated automatically. */
11867 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11868 static const char thread_model[] = "$thread_file";
11870 static const struct {
11871 const char *name, *value;
11872 } configure_default_options[] = $configure_default_options;
11875 gcc_BASEVER=`cat $srcdir/BASE-VER`
11876 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11877 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11878 if test -f $srcdir/REVISION ; then
11879 gcc_REVISION=`cat $srcdir/REVISION`
11880 else
11881 gcc_REVISION=""
11883 cat > plugin-version.h <<EOF
11884 #include "configargs.h"
11886 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11887 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11888 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11889 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11891 static char basever[] = "$gcc_BASEVER";
11892 static char datestamp[] = "$gcc_DATESTAMP";
11893 static char devphase[] = "$gcc_DEVPHASE";
11894 static char revision[] = "$gcc_REVISION";
11896 /* FIXME plugins: We should make the version information more precise.
11897 One way to do is to add a checksum. */
11899 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11900 devphase, revision,
11901 configuration_arguments};
11904 # Internationalization
11905 # If we haven't got the data from the intl directory,
11906 # assume NLS is disabled.
11907 USE_NLS=no
11908 LIBINTL=
11909 LIBINTL_DEP=
11910 INCINTL=
11911 XGETTEXT=
11912 GMSGFMT=
11913 POSUB=
11915 if test -f ../intl/config.intl; then
11916 . ../intl/config.intl
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11919 $as_echo_n "checking whether NLS is requested... " >&6; }
11920 if test x"$USE_NLS" != xyes; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925 $as_echo "yes" >&6; }
11927 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11931 $as_echo_n "checking for catalogs to be installed... " >&6; }
11932 # Look for .po and .gmo files in the source directory.
11933 CATALOGS=
11934 XLINGUAS=
11935 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11936 # If there aren't any .gmo files the shell will give us the
11937 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11938 # weeded out.
11939 case "$cat" in *\**)
11940 continue;;
11941 esac
11942 # The quadruple backslash is collapsed to a double backslash
11943 # by the backticks, then collapsed again by the double quotes,
11944 # leaving us with one backslash in the sed expression (right
11945 # before the dot that mustn't act as a wildcard).
11946 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11947 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11948 # The user is allowed to set LINGUAS to a list of languages to
11949 # install catalogs for. If it's empty that means "all of them."
11950 if test "x$LINGUAS" = x; then
11951 CATALOGS="$CATALOGS $cat"
11952 XLINGUAS="$XLINGUAS $lang"
11953 else
11954 case "$LINGUAS" in *$lang*)
11955 CATALOGS="$CATALOGS $cat"
11956 XLINGUAS="$XLINGUAS $lang"
11958 esac
11960 done
11961 LINGUAS="$XLINGUAS"
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11963 $as_echo "$LINGUAS" >&6; }
11966 DATADIRNAME=share
11968 INSTOBJEXT=.mo
11970 GENCAT=gencat
11972 CATOBJEXT=.gmo
11976 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11977 # -liconv on the link line twice.
11978 case "$LIBINTL" in *$LIBICONV*)
11979 LIBICONV= ;;
11980 esac
11982 # Check whether --enable-secureplt was given.
11983 if test "${enable_secureplt+set}" = set; then :
11984 enableval=$enable_secureplt;
11988 # Check whether --enable-leading-mingw64-underscores was given.
11989 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11990 enableval=$enable_leading_mingw64_underscores;
11993 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11995 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11999 # Check whether --enable-cld was given.
12000 if test "${enable_cld+set}" = set; then :
12001 enableval=$enable_cld;
12002 else
12003 enable_cld=no
12007 # Check whether --enable-frame-pointer was given.
12008 if test "${enable_frame_pointer+set}" = set; then :
12009 enableval=$enable_frame_pointer;
12010 else
12012 case $target_os in
12013 linux* | darwin[8912]*)
12014 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12015 # DWARF2.
12016 enable_frame_pointer=no
12019 enable_frame_pointer=yes
12021 esac
12026 # Windows32 Registry support for specifying GCC installation paths.
12027 # Check whether --enable-win32-registry was given.
12028 if test "${enable_win32_registry+set}" = set; then :
12029 enableval=$enable_win32_registry;
12033 case $host_os in
12034 win32 | pe | cygwin* | mingw32*)
12035 if test "x$enable_win32_registry" != xno; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12037 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12038 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 ac_func_search_save_LIBS=$LIBS
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12045 /* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
12048 #ifdef __cplusplus
12049 extern "C"
12050 #endif
12051 char RegOpenKeyExA ();
12053 main ()
12055 return RegOpenKeyExA ();
12057 return 0;
12059 _ACEOF
12060 for ac_lib in '' advapi32; do
12061 if test -z "$ac_lib"; then
12062 ac_res="none required"
12063 else
12064 ac_res=-l$ac_lib
12065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12067 if ac_fn_cxx_try_link "$LINENO"; then :
12068 ac_cv_search_RegOpenKeyExA=$ac_res
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext
12072 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12073 break
12075 done
12076 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12078 else
12079 ac_cv_search_RegOpenKeyExA=no
12081 rm conftest.$ac_ext
12082 LIBS=$ac_func_search_save_LIBS
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12085 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12086 ac_res=$ac_cv_search_RegOpenKeyExA
12087 if test "$ac_res" != no; then :
12088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12090 else
12091 enable_win32_registry=no
12096 if test "x$enable_win32_registry" != xno; then
12098 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12101 if test "x$enable_win32_registry" != xyes \
12102 && test "x$enable_win32_registry" != x; then
12104 cat >>confdefs.h <<_ACEOF
12105 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12106 _ACEOF
12111 esac
12113 # Get an absolute path to the GCC top-level source directory
12114 holddir=`${PWDCMD-pwd}`
12115 cd $srcdir
12116 topdir=`${PWDCMD-pwd}`
12117 cd $holddir
12119 # Conditionalize the makefile for this host machine.
12120 xmake_file=
12121 for f in ${host_xmake_file}
12123 if test -f ${srcdir}/config/$f
12124 then
12125 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12127 done
12129 # Conditionalize the makefile for this target machine.
12130 tmake_file_=
12131 for f in ${tmake_file}
12133 if test -f ${srcdir}/config/$f
12134 then
12135 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12137 done
12138 tmake_file="${tmake_file_}"
12140 out_object_file=`basename $out_file .c`.o
12141 common_out_object_file=`basename $common_out_file .c`.o
12143 tm_file_list="options.h"
12144 tm_include_list="options.h insn-constants.h"
12145 for f in $tm_file; do
12146 case $f in
12147 ./* )
12148 f=`echo $f | sed 's/^..//'`
12149 tm_file_list="${tm_file_list} $f"
12150 tm_include_list="${tm_include_list} $f"
12152 defaults.h )
12153 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12154 tm_include_list="${tm_include_list} $f"
12157 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12158 tm_include_list="${tm_include_list} config/$f"
12160 esac
12161 done
12163 tm_p_file_list=
12164 tm_p_include_list=
12165 for f in $tm_p_file; do
12166 case $f in
12167 tm-preds.h )
12168 tm_p_file_list="${tm_p_file_list} $f"
12169 tm_p_include_list="${tm_p_include_list} $f"
12172 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12173 tm_p_include_list="${tm_p_include_list} config/$f"
12174 esac
12175 done
12177 xm_file_list=
12178 xm_include_list=
12179 for f in $xm_file; do
12180 case $f in
12181 ansidecl.h )
12182 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12183 xm_include_list="${xm_include_list} $f"
12185 auto-host.h )
12186 xm_file_list="${xm_file_list} $f"
12187 xm_include_list="${xm_include_list} $f"
12190 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12191 xm_include_list="${xm_include_list} config/$f"
12193 esac
12194 done
12196 host_xm_file_list=
12197 host_xm_include_list=
12198 for f in $host_xm_file; do
12199 case $f in
12200 ansidecl.h )
12201 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12202 host_xm_include_list="${host_xm_include_list} $f"
12204 auto-host.h )
12205 host_xm_file_list="${host_xm_file_list} $f"
12206 host_xm_include_list="${host_xm_include_list} $f"
12209 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12210 host_xm_include_list="${host_xm_include_list} config/$f"
12212 esac
12213 done
12215 build_xm_file_list=
12216 for f in $build_xm_file; do
12217 case $f in
12218 ansidecl.h )
12219 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12220 build_xm_include_list="${build_xm_include_list} $f"
12222 auto-build.h | auto-host.h )
12223 build_xm_file_list="${build_xm_file_list} $f"
12224 build_xm_include_list="${build_xm_include_list} $f"
12227 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12228 build_xm_include_list="${build_xm_include_list} config/$f"
12230 esac
12231 done
12233 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12234 # cross-compiler which does not use the native headers and libraries.
12235 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12236 CROSS=
12237 ALL=all.internal
12238 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12240 if test "x$with_build_sysroot" != x; then
12241 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12242 else
12243 # This value is used, even on a native system, because
12244 # CROSS_SYSTEM_HEADER_DIR is just
12245 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12246 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12249 if test x$host != x$target
12250 then
12251 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12252 ALL=all.cross
12253 SYSTEM_HEADER_DIR=$build_system_header_dir
12254 case "$host","$target" in
12255 # Darwin crosses can use the host system's libraries and headers,
12256 # because of the fat library support. Of course, it must be the
12257 # same version of Darwin on both sides. Allow the user to
12258 # just say --target=foo-darwin without a version number to mean
12259 # "the version on this system".
12260 *-*-darwin*,*-*-darwin*)
12261 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12262 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12263 if test $hostos = $targetos -o $targetos = darwin ; then
12264 CROSS=
12265 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12266 with_headers=yes
12270 i?86-*-*,x86_64-*-* \
12271 | powerpc*-*-*,powerpc64*-*-*)
12272 CROSS="$CROSS -DNATIVE_CROSS" ;;
12273 esac
12275 case $target in
12276 *-*-mingw*)
12277 if test "x$with_headers" = x; then
12278 with_headers=yes
12283 esac
12284 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12285 SYSTEM_HEADER_DIR=$build_system_header_dir
12288 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12289 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12290 target_header_dir=$with_headers
12291 elif test "x$with_sysroot" = x; then
12292 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12293 elif test "x$with_build_sysroot" != "x"; then
12294 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12295 elif test "x$with_sysroot" = xyes; then
12296 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12297 else
12298 target_header_dir="${with_sysroot}${native_system_header_dir}"
12300 else
12301 target_header_dir=${native_system_header_dir}
12304 # If this is a cross-compiler that does not
12305 # have its own set of headers then define
12306 # inhibit_libc
12308 # If this is using newlib, without having the headers available now,
12309 # then define inhibit_libc in LIBGCC2_CFLAGS.
12310 # This prevents libgcc2 from containing any code which requires libc
12311 # support.
12312 : ${inhibit_libc=false}
12313 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12314 test x$with_newlib = xyes ; } &&
12315 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12316 inhibit_libc=true
12320 # When building gcc with a cross-compiler, we need to adjust things so
12321 # that the generator programs are still built with the native compiler.
12322 # Also, we cannot run fixincludes.
12324 # These are the normal (build=host) settings:
12325 CC_FOR_BUILD='$(CC)'
12326 CXX_FOR_BUILD='$(CXX)'
12327 BUILD_CFLAGS='$(ALL_CFLAGS)'
12328 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12329 BUILD_LDFLAGS='$(LDFLAGS)'
12330 STMP_FIXINC=stmp-fixinc
12332 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12333 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12335 # And these apply if build != host, or we are generating coverage data
12336 if test x$build != x$host || test "x$coverage_flags" != x
12337 then
12338 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12339 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12340 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12342 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12343 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12344 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12345 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12350 # Expand extra_headers to include complete path.
12351 # This substitutes for lots of t-* files.
12352 extra_headers_list=
12353 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12354 for file in ${extra_headers} ; do
12355 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12356 done
12358 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12359 if test x"$use_gcc_tgmath" = xyes
12360 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12363 # Define collect2 in Makefile.
12364 case $host_can_use_collect2 in
12365 no) collect2= ;;
12366 *) collect2='collect2$(exeext)' ;;
12367 esac
12370 # Add a definition of USE_COLLECT2 if system wants one.
12371 case $use_collect2 in
12372 no) use_collect2= ;;
12373 "") ;;
12375 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12376 xm_defines="${xm_defines} USE_COLLECT2"
12377 case $host_can_use_collect2 in
12379 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12381 esac
12383 esac
12386 cat >>confdefs.h <<_ACEOF
12387 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12388 _ACEOF
12391 # ---------------------------
12392 # Assembler & linker features
12393 # ---------------------------
12395 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12396 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12397 # However when ld-new is first executed from the build tree, libtool will
12398 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12399 # to the build tree. While doing this we need to use the previous-stage
12400 # linker, or we have an infinite loop. The presence of a shell script as
12401 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12402 # the gcc/collect-ld script. So we need to know how libtool works, or
12403 # exec-tool will fail.
12406 case `pwd` in
12407 *\ * | *\ *)
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12409 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12410 esac
12414 macro_version='2.2.7a'
12415 macro_revision='1.3134'
12429 ltmain="$ac_aux_dir/ltmain.sh"
12431 # Backslashify metacharacters that are still active within
12432 # double-quoted strings.
12433 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12435 # Same as above, but do not quote variable references.
12436 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12438 # Sed substitution to delay expansion of an escaped shell variable in a
12439 # double_quote_subst'ed string.
12440 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12442 # Sed substitution to delay expansion of an escaped single quote.
12443 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12445 # Sed substitution to avoid accidental globbing in evaled expressions
12446 no_glob_subst='s/\*/\\\*/g'
12448 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12449 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12450 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12453 $as_echo_n "checking how to print strings... " >&6; }
12454 # Test print first, because it will be a builtin if present.
12455 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12456 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12457 ECHO='print -r --'
12458 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12459 ECHO='printf %s\n'
12460 else
12461 # Use this function as a fallback that always works.
12462 func_fallback_echo ()
12464 eval 'cat <<_LTECHO_EOF
12466 _LTECHO_EOF'
12468 ECHO='func_fallback_echo'
12471 # func_echo_all arg...
12472 # Invoke $ECHO with all args, space-separated.
12473 func_echo_all ()
12475 $ECHO ""
12478 case "$ECHO" in
12479 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12480 $as_echo "printf" >&6; } ;;
12481 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12482 $as_echo "print -r" >&6; } ;;
12483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12484 $as_echo "cat" >&6; } ;;
12485 esac
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12501 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12502 if test "${ac_cv_path_SED+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12506 for ac_i in 1 2 3 4 5 6 7; do
12507 ac_script="$ac_script$as_nl$ac_script"
12508 done
12509 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12510 { ac_script=; unset ac_script;}
12511 if test -z "$SED"; then
12512 ac_path_SED_found=false
12513 # Loop through the user's path and test for each of PROGNAME-LIST
12514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 for ac_prog in sed gsed; do
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12522 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12523 # Check for GNU ac_path_SED and select it if it is found.
12524 # Check for GNU $ac_path_SED
12525 case `"$ac_path_SED" --version 2>&1` in
12526 *GNU*)
12527 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12529 ac_count=0
12530 $as_echo_n 0123456789 >"conftest.in"
12531 while :
12533 cat "conftest.in" "conftest.in" >"conftest.tmp"
12534 mv "conftest.tmp" "conftest.in"
12535 cp "conftest.in" "conftest.nl"
12536 $as_echo '' >> "conftest.nl"
12537 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12539 as_fn_arith $ac_count + 1 && ac_count=$as_val
12540 if test $ac_count -gt ${ac_path_SED_max-0}; then
12541 # Best one so far, save it but keep looking for a better one
12542 ac_cv_path_SED="$ac_path_SED"
12543 ac_path_SED_max=$ac_count
12545 # 10*(2^10) chars as input seems more than enough
12546 test $ac_count -gt 10 && break
12547 done
12548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12549 esac
12551 $ac_path_SED_found && break 3
12552 done
12553 done
12554 done
12555 IFS=$as_save_IFS
12556 if test -z "$ac_cv_path_SED"; then
12557 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12559 else
12560 ac_cv_path_SED=$SED
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12565 $as_echo "$ac_cv_path_SED" >&6; }
12566 SED="$ac_cv_path_SED"
12567 rm -f conftest.sed
12569 test -z "$SED" && SED=sed
12570 Xsed="$SED -e 1s/^X//"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12583 $as_echo_n "checking for fgrep... " >&6; }
12584 if test "${ac_cv_path_FGREP+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12588 then ac_cv_path_FGREP="$GREP -F"
12589 else
12590 if test -z "$FGREP"; then
12591 ac_path_FGREP_found=false
12592 # Loop through the user's path and test for each of PROGNAME-LIST
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_prog in fgrep; do
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12601 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12602 # Check for GNU ac_path_FGREP and select it if it is found.
12603 # Check for GNU $ac_path_FGREP
12604 case `"$ac_path_FGREP" --version 2>&1` in
12605 *GNU*)
12606 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12608 ac_count=0
12609 $as_echo_n 0123456789 >"conftest.in"
12610 while :
12612 cat "conftest.in" "conftest.in" >"conftest.tmp"
12613 mv "conftest.tmp" "conftest.in"
12614 cp "conftest.in" "conftest.nl"
12615 $as_echo 'FGREP' >> "conftest.nl"
12616 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12618 as_fn_arith $ac_count + 1 && ac_count=$as_val
12619 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12620 # Best one so far, save it but keep looking for a better one
12621 ac_cv_path_FGREP="$ac_path_FGREP"
12622 ac_path_FGREP_max=$ac_count
12624 # 10*(2^10) chars as input seems more than enough
12625 test $ac_count -gt 10 && break
12626 done
12627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12628 esac
12630 $ac_path_FGREP_found && break 3
12631 done
12632 done
12633 done
12634 IFS=$as_save_IFS
12635 if test -z "$ac_cv_path_FGREP"; then
12636 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12638 else
12639 ac_cv_path_FGREP=$FGREP
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12645 $as_echo "$ac_cv_path_FGREP" >&6; }
12646 FGREP="$ac_cv_path_FGREP"
12649 test -z "$GREP" && GREP=grep
12669 # Check whether --with-gnu-ld was given.
12670 if test "${with_gnu_ld+set}" = set; then :
12671 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12672 else
12673 with_gnu_ld=no
12676 ac_prog=ld
12677 if test "$GCC" = yes; then
12678 # Check if gcc -print-prog-name=ld gives a path.
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12680 $as_echo_n "checking for ld used by $CC... " >&6; }
12681 case $host in
12682 *-*-mingw*)
12683 # gcc leaves a trailing carriage return which upsets mingw
12684 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12686 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12687 esac
12688 case $ac_prog in
12689 # Accept absolute paths.
12690 [\\/]* | ?:[\\/]*)
12691 re_direlt='/[^/][^/]*/\.\./'
12692 # Canonicalize the pathname of ld
12693 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12694 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12695 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12696 done
12697 test -z "$LD" && LD="$ac_prog"
12700 # If it fails, then pretend we aren't using GCC.
12701 ac_prog=ld
12704 # If it is relative, then search for the first ld in PATH.
12705 with_gnu_ld=unknown
12707 esac
12708 elif test "$with_gnu_ld" = yes; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12710 $as_echo_n "checking for GNU ld... " >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12713 $as_echo_n "checking for non-GNU ld... " >&6; }
12715 if test "${lt_cv_path_LD+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 if test -z "$LD"; then
12719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12720 for ac_dir in $PATH; do
12721 IFS="$lt_save_ifs"
12722 test -z "$ac_dir" && ac_dir=.
12723 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12724 lt_cv_path_LD="$ac_dir/$ac_prog"
12725 # Check to see if the program is GNU ld. I'd rather use --version,
12726 # but apparently some variants of GNU ld only accept -v.
12727 # Break only if it was the GNU/non-GNU ld that we prefer.
12728 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12729 *GNU* | *'with BFD'*)
12730 test "$with_gnu_ld" != no && break
12733 test "$with_gnu_ld" != yes && break
12735 esac
12737 done
12738 IFS="$lt_save_ifs"
12739 else
12740 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12744 LD="$lt_cv_path_LD"
12745 if test -n "$LD"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12747 $as_echo "$LD" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12752 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12754 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12755 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12759 case `$LD -v 2>&1 </dev/null` in
12760 *GNU* | *'with BFD'*)
12761 lt_cv_prog_gnu_ld=yes
12764 lt_cv_prog_gnu_ld=no
12766 esac
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12769 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12770 with_gnu_ld=$lt_cv_prog_gnu_ld
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12781 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12782 if test "${lt_cv_path_NM+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 if test -n "$NM"; then
12786 # Let the user override the test.
12787 lt_cv_path_NM="$NM"
12788 else
12789 lt_nm_to_check="${ac_tool_prefix}nm"
12790 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12791 lt_nm_to_check="$lt_nm_to_check nm"
12793 for lt_tmp_nm in $lt_nm_to_check; do
12794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12795 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12796 IFS="$lt_save_ifs"
12797 test -z "$ac_dir" && ac_dir=.
12798 tmp_nm="$ac_dir/$lt_tmp_nm"
12799 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12800 # Check to see if the nm accepts a BSD-compat flag.
12801 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12802 # nm: unknown option "B" ignored
12803 # Tru64's nm complains that /dev/null is an invalid object file
12804 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12805 */dev/null* | *'Invalid file or object type'*)
12806 lt_cv_path_NM="$tmp_nm -B"
12807 break
12810 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12811 */dev/null*)
12812 lt_cv_path_NM="$tmp_nm -p"
12813 break
12816 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12817 continue # so that we can try to find one that supports BSD flags
12819 esac
12821 esac
12823 done
12824 IFS="$lt_save_ifs"
12825 done
12826 : ${lt_cv_path_NM=no}
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12830 $as_echo "$lt_cv_path_NM" >&6; }
12831 if test "$lt_cv_path_NM" != "no"; then
12832 NM="$lt_cv_path_NM"
12833 else
12834 # Didn't find any BSD compatible name lister, look for dumpbin.
12835 if test -n "$DUMPBIN"; then :
12836 # Let the user override the test.
12837 else
12838 if test -n "$ac_tool_prefix"; then
12839 for ac_prog in dumpbin "link -dump"
12841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 if test -n "$DUMPBIN"; then
12849 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12850 else
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12854 IFS=$as_save_IFS
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12858 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 break 2
12862 done
12863 done
12864 IFS=$as_save_IFS
12868 DUMPBIN=$ac_cv_prog_DUMPBIN
12869 if test -n "$DUMPBIN"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12871 $as_echo "$DUMPBIN" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12878 test -n "$DUMPBIN" && break
12879 done
12881 if test -z "$DUMPBIN"; then
12882 ac_ct_DUMPBIN=$DUMPBIN
12883 for ac_prog in dumpbin "link -dump"
12885 # Extract the first word of "$ac_prog", so it can be a program name with args.
12886 set dummy $ac_prog; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 if test -n "$ac_ct_DUMPBIN"; then
12893 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12894 else
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12898 IFS=$as_save_IFS
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 break 2
12906 done
12907 done
12908 IFS=$as_save_IFS
12912 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12913 if test -n "$ac_ct_DUMPBIN"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12915 $as_echo "$ac_ct_DUMPBIN" >&6; }
12916 else
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12922 test -n "$ac_ct_DUMPBIN" && break
12923 done
12925 if test "x$ac_ct_DUMPBIN" = x; then
12926 DUMPBIN=":"
12927 else
12928 case $cross_compiling:$ac_tool_warned in
12929 yes:)
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12932 ac_tool_warned=yes ;;
12933 esac
12934 DUMPBIN=$ac_ct_DUMPBIN
12938 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12939 *COFF*)
12940 DUMPBIN="$DUMPBIN -symbols"
12943 DUMPBIN=:
12945 esac
12948 if test "$DUMPBIN" != ":"; then
12949 NM="$DUMPBIN"
12952 test -z "$NM" && NM=nm
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12960 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12961 if test "${lt_cv_nm_interface+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 lt_cv_nm_interface="BSD nm"
12965 echo "int some_variable = 0;" > conftest.$ac_ext
12966 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12967 (eval "$ac_compile" 2>conftest.err)
12968 cat conftest.err >&5
12969 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12970 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12971 cat conftest.err >&5
12972 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12973 cat conftest.out >&5
12974 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12975 lt_cv_nm_interface="MS dumpbin"
12977 rm -f conftest*
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12980 $as_echo "$lt_cv_nm_interface" >&6; }
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12983 $as_echo_n "checking whether ln -s works... " >&6; }
12984 LN_S=$as_ln_s
12985 if test "$LN_S" = "ln -s"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12987 $as_echo "yes" >&6; }
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12990 $as_echo "no, using $LN_S" >&6; }
12993 # find the maximum length of command line arguments
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12995 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12996 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
12998 else
13000 teststring="ABCD"
13002 case $build_os in
13003 msdosdjgpp*)
13004 # On DJGPP, this test can blow up pretty badly due to problems in libc
13005 # (any single argument exceeding 2000 bytes causes a buffer overrun
13006 # during glob expansion). Even if it were fixed, the result of this
13007 # check would be larger than it should be.
13008 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13011 gnu*)
13012 # Under GNU Hurd, this test is not required because there is
13013 # no limit to the length of command line arguments.
13014 # Libtool will interpret -1 as no limit whatsoever
13015 lt_cv_sys_max_cmd_len=-1;
13018 cygwin* | mingw* | cegcc*)
13019 # On Win9x/ME, this test blows up -- it succeeds, but takes
13020 # about 5 minutes as the teststring grows exponentially.
13021 # Worse, since 9x/ME are not pre-emptively multitasking,
13022 # you end up with a "frozen" computer, even though with patience
13023 # the test eventually succeeds (with a max line length of 256k).
13024 # Instead, let's just punt: use the minimum linelength reported by
13025 # all of the supported platforms: 8192 (on NT/2K/XP).
13026 lt_cv_sys_max_cmd_len=8192;
13029 mint*)
13030 # On MiNT this can take a long time and run out of memory.
13031 lt_cv_sys_max_cmd_len=8192;
13034 amigaos*)
13035 # On AmigaOS with pdksh, this test takes hours, literally.
13036 # So we just punt and use a minimum line length of 8192.
13037 lt_cv_sys_max_cmd_len=8192;
13040 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13041 # This has been around since 386BSD, at least. Likely further.
13042 if test -x /sbin/sysctl; then
13043 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13044 elif test -x /usr/sbin/sysctl; then
13045 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13046 else
13047 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13049 # And add a safety zone
13050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13054 interix*)
13055 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13056 lt_cv_sys_max_cmd_len=196608
13059 osf*)
13060 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13061 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13062 # nice to cause kernel panics so lets avoid the loop below.
13063 # First set a reasonable default.
13064 lt_cv_sys_max_cmd_len=16384
13066 if test -x /sbin/sysconfig; then
13067 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13068 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13069 esac
13072 sco3.2v5*)
13073 lt_cv_sys_max_cmd_len=102400
13075 sysv5* | sco5v6* | sysv4.2uw2*)
13076 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13077 if test -n "$kargmax"; then
13078 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13079 else
13080 lt_cv_sys_max_cmd_len=32768
13084 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13085 if test -n "$lt_cv_sys_max_cmd_len"; then
13086 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13088 else
13089 # Make teststring a little bigger before we do anything with it.
13090 # a 1K string should be a reasonable start.
13091 for i in 1 2 3 4 5 6 7 8 ; do
13092 teststring=$teststring$teststring
13093 done
13094 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13095 # If test is not a shell built-in, we'll probably end up computing a
13096 # maximum length that is only half of the actual maximum length, but
13097 # we can't tell.
13098 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13099 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13100 test $i != 17 # 1/2 MB should be enough
13102 i=`expr $i + 1`
13103 teststring=$teststring$teststring
13104 done
13105 # Only check the string length outside the loop.
13106 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13107 teststring=
13108 # Add a significant safety factor because C++ compilers can tack on
13109 # massive amounts of additional arguments before passing them to the
13110 # linker. It appears as though 1/2 is a usable value.
13111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13114 esac
13118 if test -n $lt_cv_sys_max_cmd_len ; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13120 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13121 else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13123 $as_echo "none" >&6; }
13125 max_cmd_len=$lt_cv_sys_max_cmd_len
13132 : ${CP="cp -f"}
13133 : ${MV="mv -f"}
13134 : ${RM="rm -f"}
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13137 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13138 # Try some XSI features
13139 xsi_shell=no
13140 ( _lt_dummy="a/b/c"
13141 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13142 = c,a/b,, \
13143 && eval 'test $(( 1 + 1 )) -eq 2 \
13144 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13145 && xsi_shell=yes
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13147 $as_echo "$xsi_shell" >&6; }
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13151 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13152 lt_shell_append=no
13153 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13154 >/dev/null 2>&1 \
13155 && lt_shell_append=yes
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13157 $as_echo "$lt_shell_append" >&6; }
13160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13161 lt_unset=unset
13162 else
13163 lt_unset=false
13170 # test EBCDIC or ASCII
13171 case `echo X|tr X '\101'` in
13172 A) # ASCII based system
13173 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13174 lt_SP2NL='tr \040 \012'
13175 lt_NL2SP='tr \015\012 \040\040'
13177 *) # EBCDIC based system
13178 lt_SP2NL='tr \100 \n'
13179 lt_NL2SP='tr \r\n \100\100'
13181 esac
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13192 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13193 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 lt_cv_ld_reload_flag='-r'
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13199 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13200 reload_flag=$lt_cv_ld_reload_flag
13201 case $reload_flag in
13202 "" | " "*) ;;
13203 *) reload_flag=" $reload_flag" ;;
13204 esac
13205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13206 case $host_os in
13207 darwin*)
13208 if test "$GCC" = yes; then
13209 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13210 else
13211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13214 esac
13224 if test -n "$ac_tool_prefix"; then
13225 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13226 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13228 $as_echo_n "checking for $ac_word... " >&6; }
13229 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 if test -n "$OBJDUMP"; then
13233 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13234 else
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13242 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 break 2
13246 done
13247 done
13248 IFS=$as_save_IFS
13252 OBJDUMP=$ac_cv_prog_OBJDUMP
13253 if test -n "$OBJDUMP"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13255 $as_echo "$OBJDUMP" >&6; }
13256 else
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 $as_echo "no" >&6; }
13263 if test -z "$ac_cv_prog_OBJDUMP"; then
13264 ac_ct_OBJDUMP=$OBJDUMP
13265 # Extract the first word of "objdump", so it can be a program name with args.
13266 set dummy objdump; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13268 $as_echo_n "checking for $ac_word... " >&6; }
13269 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 if test -n "$ac_ct_OBJDUMP"; then
13273 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13274 else
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13282 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284 break 2
13286 done
13287 done
13288 IFS=$as_save_IFS
13292 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13293 if test -n "$ac_ct_OBJDUMP"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13295 $as_echo "$ac_ct_OBJDUMP" >&6; }
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13301 if test "x$ac_ct_OBJDUMP" = x; then
13302 OBJDUMP="false"
13303 else
13304 case $cross_compiling:$ac_tool_warned in
13305 yes:)
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13308 ac_tool_warned=yes ;;
13309 esac
13310 OBJDUMP=$ac_ct_OBJDUMP
13312 else
13313 OBJDUMP="$ac_cv_prog_OBJDUMP"
13316 test -z "$OBJDUMP" && OBJDUMP=objdump
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13327 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13328 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 lt_cv_file_magic_cmd='$MAGIC_CMD'
13332 lt_cv_file_magic_test_file=
13333 lt_cv_deplibs_check_method='unknown'
13334 # Need to set the preceding variable on all platforms that support
13335 # interlibrary dependencies.
13336 # 'none' -- dependencies not supported.
13337 # `unknown' -- same as none, but documents that we really don't know.
13338 # 'pass_all' -- all dependencies passed with no checks.
13339 # 'test_compile' -- check by making test program.
13340 # 'file_magic [[regex]]' -- check by looking for files in library path
13341 # which responds to the $file_magic_cmd with a given extended regex.
13342 # If you have `file' or equivalent on your system and you're not sure
13343 # whether `pass_all' will *always* work, you probably want this one.
13345 case $host_os in
13346 aix[4-9]*)
13347 lt_cv_deplibs_check_method=pass_all
13350 beos*)
13351 lt_cv_deplibs_check_method=pass_all
13354 bsdi[45]*)
13355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13356 lt_cv_file_magic_cmd='/usr/bin/file -L'
13357 lt_cv_file_magic_test_file=/shlib/libc.so
13360 cygwin*)
13361 # func_win32_libid is a shell function defined in ltmain.sh
13362 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13363 lt_cv_file_magic_cmd='func_win32_libid'
13366 mingw* | pw32*)
13367 # Base MSYS/MinGW do not provide the 'file' command needed by
13368 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13369 # unless we find 'file', for example because we are cross-compiling.
13370 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13371 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13373 lt_cv_file_magic_cmd='func_win32_libid'
13374 else
13375 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13376 lt_cv_file_magic_cmd='$OBJDUMP -f'
13380 cegcc*)
13381 # use the weaker test based on 'objdump'. See mingw*.
13382 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13383 lt_cv_file_magic_cmd='$OBJDUMP -f'
13386 darwin* | rhapsody*)
13387 lt_cv_deplibs_check_method=pass_all
13390 freebsd* | dragonfly*)
13391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13392 case $host_cpu in
13393 i*86 )
13394 # Not sure whether the presence of OpenBSD here was a mistake.
13395 # Let's accept both of them until this is cleared up.
13396 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13397 lt_cv_file_magic_cmd=/usr/bin/file
13398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13400 esac
13401 else
13402 lt_cv_deplibs_check_method=pass_all
13406 gnu*)
13407 lt_cv_deplibs_check_method=pass_all
13410 haiku*)
13411 lt_cv_deplibs_check_method=pass_all
13414 hpux10.20* | hpux11*)
13415 lt_cv_file_magic_cmd=/usr/bin/file
13416 case $host_cpu in
13417 ia64*)
13418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13419 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13421 hppa*64*)
13422 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]'
13423 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13427 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13429 esac
13432 interix[3-9]*)
13433 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13437 irix5* | irix6* | nonstopux*)
13438 case $LD in
13439 *-32|*"-32 ") libmagic=32-bit;;
13440 *-n32|*"-n32 ") libmagic=N32;;
13441 *-64|*"-64 ") libmagic=64-bit;;
13442 *) libmagic=never-match;;
13443 esac
13444 lt_cv_deplibs_check_method=pass_all
13447 # This must be Linux ELF.
13448 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13449 lt_cv_deplibs_check_method=pass_all
13452 netbsd*)
13453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13455 else
13456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13460 newos6*)
13461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13462 lt_cv_file_magic_cmd=/usr/bin/file
13463 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13466 *nto* | *qnx*)
13467 lt_cv_deplibs_check_method=pass_all
13470 openbsd*)
13471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13473 else
13474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13478 osf3* | osf4* | osf5*)
13479 lt_cv_deplibs_check_method=pass_all
13482 rdos*)
13483 lt_cv_deplibs_check_method=pass_all
13486 solaris*)
13487 lt_cv_deplibs_check_method=pass_all
13490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13491 lt_cv_deplibs_check_method=pass_all
13494 sysv4 | sysv4.3*)
13495 case $host_vendor in
13496 motorola)
13497 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]'
13498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13500 ncr)
13501 lt_cv_deplibs_check_method=pass_all
13503 sequent)
13504 lt_cv_file_magic_cmd='/bin/file'
13505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13507 sni)
13508 lt_cv_file_magic_cmd='/bin/file'
13509 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13510 lt_cv_file_magic_test_file=/lib/libc.so
13512 siemens)
13513 lt_cv_deplibs_check_method=pass_all
13516 lt_cv_deplibs_check_method=pass_all
13518 esac
13521 tpf*)
13522 lt_cv_deplibs_check_method=pass_all
13524 esac
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13528 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13529 file_magic_cmd=$lt_cv_file_magic_cmd
13530 deplibs_check_method=$lt_cv_deplibs_check_method
13531 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13544 if test -n "$ac_tool_prefix"; then
13545 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13546 set dummy ${ac_tool_prefix}ar; ac_word=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548 $as_echo_n "checking for $ac_word... " >&6; }
13549 if test "${ac_cv_prog_AR+set}" = set; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 if test -n "$AR"; then
13553 ac_cv_prog_AR="$AR" # Let the user override the test.
13554 else
13555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13558 IFS=$as_save_IFS
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
13561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13562 ac_cv_prog_AR="${ac_tool_prefix}ar"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 break 2
13566 done
13567 done
13568 IFS=$as_save_IFS
13572 AR=$ac_cv_prog_AR
13573 if test -n "$AR"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13575 $as_echo "$AR" >&6; }
13576 else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13583 if test -z "$ac_cv_prog_AR"; then
13584 ac_ct_AR=$AR
13585 # Extract the first word of "ar", so it can be a program name with args.
13586 set dummy ar; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 if test -n "$ac_ct_AR"; then
13593 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13594 else
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13602 ac_cv_prog_ac_ct_AR="ar"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13606 done
13607 done
13608 IFS=$as_save_IFS
13612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13613 if test -n "$ac_ct_AR"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13615 $as_echo "$ac_ct_AR" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13621 if test "x$ac_ct_AR" = x; then
13622 AR="false"
13623 else
13624 case $cross_compiling:$ac_tool_warned in
13625 yes:)
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13628 ac_tool_warned=yes ;;
13629 esac
13630 AR=$ac_ct_AR
13632 else
13633 AR="$ac_cv_prog_AR"
13636 test -z "$AR" && AR=ar
13637 test -z "$AR_FLAGS" && AR_FLAGS=cru
13649 if test -n "$ac_tool_prefix"; then
13650 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13651 set dummy ${ac_tool_prefix}strip; ac_word=$2
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13653 $as_echo_n "checking for $ac_word... " >&6; }
13654 if test "${ac_cv_prog_STRIP+set}" = set; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 if test -n "$STRIP"; then
13658 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13659 else
13660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13663 IFS=$as_save_IFS
13664 test -z "$as_dir" && as_dir=.
13665 for ac_exec_ext in '' $ac_executable_extensions; do
13666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13667 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13669 break 2
13671 done
13672 done
13673 IFS=$as_save_IFS
13677 STRIP=$ac_cv_prog_STRIP
13678 if test -n "$STRIP"; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13680 $as_echo "$STRIP" >&6; }
13681 else
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13683 $as_echo "no" >&6; }
13688 if test -z "$ac_cv_prog_STRIP"; then
13689 ac_ct_STRIP=$STRIP
13690 # Extract the first word of "strip", so it can be a program name with args.
13691 set dummy strip; ac_word=$2
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13693 $as_echo_n "checking for $ac_word... " >&6; }
13694 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13695 $as_echo_n "(cached) " >&6
13696 else
13697 if test -n "$ac_ct_STRIP"; then
13698 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13699 else
13700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701 for as_dir in $PATH
13703 IFS=$as_save_IFS
13704 test -z "$as_dir" && as_dir=.
13705 for ac_exec_ext in '' $ac_executable_extensions; do
13706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13707 ac_cv_prog_ac_ct_STRIP="strip"
13708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13709 break 2
13711 done
13712 done
13713 IFS=$as_save_IFS
13717 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13718 if test -n "$ac_ct_STRIP"; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13720 $as_echo "$ac_ct_STRIP" >&6; }
13721 else
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723 $as_echo "no" >&6; }
13726 if test "x$ac_ct_STRIP" = x; then
13727 STRIP=":"
13728 else
13729 case $cross_compiling:$ac_tool_warned in
13730 yes:)
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13733 ac_tool_warned=yes ;;
13734 esac
13735 STRIP=$ac_ct_STRIP
13737 else
13738 STRIP="$ac_cv_prog_STRIP"
13741 test -z "$STRIP" && STRIP=:
13748 if test -n "$ac_tool_prefix"; then
13749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 if test -n "$RANLIB"; then
13757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13758 else
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 break 2
13770 done
13771 done
13772 IFS=$as_save_IFS
13776 RANLIB=$ac_cv_prog_RANLIB
13777 if test -n "$RANLIB"; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13779 $as_echo "$RANLIB" >&6; }
13780 else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13787 if test -z "$ac_cv_prog_RANLIB"; then
13788 ac_ct_RANLIB=$RANLIB
13789 # Extract the first word of "ranlib", so it can be a program name with args.
13790 set dummy ranlib; ac_word=$2
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796 if test -n "$ac_ct_RANLIB"; then
13797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13798 else
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13802 IFS=$as_save_IFS
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
13805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13806 ac_cv_prog_ac_ct_RANLIB="ranlib"
13807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13808 break 2
13810 done
13811 done
13812 IFS=$as_save_IFS
13816 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13817 if test -n "$ac_ct_RANLIB"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13819 $as_echo "$ac_ct_RANLIB" >&6; }
13820 else
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13822 $as_echo "no" >&6; }
13825 if test "x$ac_ct_RANLIB" = x; then
13826 RANLIB=":"
13827 else
13828 case $cross_compiling:$ac_tool_warned in
13829 yes:)
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13832 ac_tool_warned=yes ;;
13833 esac
13834 RANLIB=$ac_ct_RANLIB
13836 else
13837 RANLIB="$ac_cv_prog_RANLIB"
13840 test -z "$RANLIB" && RANLIB=:
13847 # Determine commands to create old-style static archives.
13848 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13849 old_postinstall_cmds='chmod 644 $oldlib'
13850 old_postuninstall_cmds=
13852 if test -n "$RANLIB"; then
13853 case $host_os in
13854 openbsd*)
13855 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13858 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13860 esac
13861 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13864 case $host_os in
13865 darwin*)
13866 lock_old_archive_extraction=yes ;;
13868 lock_old_archive_extraction=no ;;
13869 esac
13909 # If no C compiler was specified, use CC.
13910 LTCC=${LTCC-"$CC"}
13912 # If no C compiler flags were specified, use CFLAGS.
13913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13915 # Allow CC to be a program name with arguments.
13916 compiler=$CC
13919 # Check for command to grab the raw symbol name followed by C symbol from nm.
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13921 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13922 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13926 # These are sane defaults that work on at least a few old systems.
13927 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13929 # Character class describing NM global symbol codes.
13930 symcode='[BCDEGRST]'
13932 # Regexp to match symbols that can be accessed directly from C.
13933 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13935 # Define system-specific variables.
13936 case $host_os in
13937 aix*)
13938 symcode='[BCDT]'
13940 cygwin* | mingw* | pw32* | cegcc*)
13941 symcode='[ABCDGISTW]'
13943 hpux*)
13944 if test "$host_cpu" = ia64; then
13945 symcode='[ABCDEGRST]'
13948 irix* | nonstopux*)
13949 symcode='[BCDEGRST]'
13951 osf*)
13952 symcode='[BCDEGQRST]'
13954 solaris*)
13955 symcode='[BDRT]'
13957 sco3.2v5*)
13958 symcode='[DT]'
13960 sysv4.2uw2*)
13961 symcode='[DT]'
13963 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13964 symcode='[ABDT]'
13966 sysv4)
13967 symcode='[DFNSTU]'
13969 esac
13971 # If we're using GNU nm, then use its standard symbol codes.
13972 case `$NM -V 2>&1` in
13973 *GNU* | *'with BFD'*)
13974 symcode='[ABCDGIRSTW]' ;;
13975 esac
13977 # Transform an extracted symbol line into a proper C declaration.
13978 # Some systems (esp. on ia64) link data and code symbols differently,
13979 # so use this general approach.
13980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13982 # Transform an extracted symbol line into symbol name and symbol address
13983 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13984 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'"
13986 # Handle CRLF in mingw tool chain
13987 opt_cr=
13988 case $build_os in
13989 mingw*)
13990 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13992 esac
13994 # Try without a prefix underscore, then with it.
13995 for ac_symprfx in "" "_"; do
13997 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13998 symxfrm="\\1 $ac_symprfx\\2 \\2"
14000 # Write the raw and C identifiers.
14001 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14002 # Fake it for dumpbin and say T for any non-static function
14003 # and D for any global variable.
14004 # Also find C++ and __fastcall symbols from MSVC++,
14005 # which start with @ or ?.
14006 lt_cv_sys_global_symbol_pipe="$AWK '"\
14007 " {last_section=section; section=\$ 3};"\
14008 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14009 " \$ 0!~/External *\|/{next};"\
14010 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14011 " {if(hide[section]) next};"\
14012 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14013 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14014 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14015 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14016 " ' prfx=^$ac_symprfx"
14017 else
14018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14021 # Check to see that the pipe works correctly.
14022 pipe_works=no
14024 rm -f conftest*
14025 cat > conftest.$ac_ext <<_LT_EOF
14026 #ifdef __cplusplus
14027 extern "C" {
14028 #endif
14029 char nm_test_var;
14030 void nm_test_func(void);
14031 void nm_test_func(void){}
14032 #ifdef __cplusplus
14034 #endif
14035 int main(){nm_test_var='a';nm_test_func();return(0);}
14036 _LT_EOF
14038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14039 (eval $ac_compile) 2>&5
14040 ac_status=$?
14041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14042 test $ac_status = 0; }; then
14043 # Now try to grab the symbols.
14044 nlist=conftest.nm
14045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14046 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14047 ac_status=$?
14048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14049 test $ac_status = 0; } && test -s "$nlist"; then
14050 # Try sorting and uniquifying the output.
14051 if sort "$nlist" | uniq > "$nlist"T; then
14052 mv -f "$nlist"T "$nlist"
14053 else
14054 rm -f "$nlist"T
14057 # Make sure that we snagged all the symbols we need.
14058 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14059 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14060 cat <<_LT_EOF > conftest.$ac_ext
14061 #ifdef __cplusplus
14062 extern "C" {
14063 #endif
14065 _LT_EOF
14066 # Now generate the symbol file.
14067 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14069 cat <<_LT_EOF >> conftest.$ac_ext
14071 /* The mapping between symbol names and symbols. */
14072 const struct {
14073 const char *name;
14074 void *address;
14076 lt__PROGRAM__LTX_preloaded_symbols[] =
14078 { "@PROGRAM@", (void *) 0 },
14079 _LT_EOF
14080 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14081 cat <<\_LT_EOF >> conftest.$ac_ext
14082 {0, (void *) 0}
14085 /* This works around a problem in FreeBSD linker */
14086 #ifdef FREEBSD_WORKAROUND
14087 static const void *lt_preloaded_setup() {
14088 return lt__PROGRAM__LTX_preloaded_symbols;
14090 #endif
14092 #ifdef __cplusplus
14094 #endif
14095 _LT_EOF
14096 # Now try linking the two files.
14097 mv conftest.$ac_objext conftstm.$ac_objext
14098 lt_save_LIBS="$LIBS"
14099 lt_save_CFLAGS="$CFLAGS"
14100 LIBS="conftstm.$ac_objext"
14101 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14103 (eval $ac_link) 2>&5
14104 ac_status=$?
14105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14106 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14107 pipe_works=yes
14109 LIBS="$lt_save_LIBS"
14110 CFLAGS="$lt_save_CFLAGS"
14111 else
14112 echo "cannot find nm_test_func in $nlist" >&5
14114 else
14115 echo "cannot find nm_test_var in $nlist" >&5
14117 else
14118 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14120 else
14121 echo "$progname: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14124 rm -rf conftest* conftst*
14126 # Do not use the global_symbol_pipe unless it works.
14127 if test "$pipe_works" = yes; then
14128 break
14129 else
14130 lt_cv_sys_global_symbol_pipe=
14132 done
14136 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14137 lt_cv_sys_global_symbol_to_cdecl=
14139 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14141 $as_echo "failed" >&6; }
14142 else
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14144 $as_echo "ok" >&6; }
14168 # Check whether --enable-libtool-lock was given.
14169 if test "${enable_libtool_lock+set}" = set; then :
14170 enableval=$enable_libtool_lock;
14173 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14175 # Some flags need to be propagated to the compiler or linker for good
14176 # libtool support.
14177 case $host in
14178 ia64-*-hpux*)
14179 # Find out which ABI we are using.
14180 echo 'int i;' > conftest.$ac_ext
14181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14182 (eval $ac_compile) 2>&5
14183 ac_status=$?
14184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14185 test $ac_status = 0; }; then
14186 case `/usr/bin/file conftest.$ac_objext` in
14187 *ELF-32*)
14188 HPUX_IA64_MODE="32"
14190 *ELF-64*)
14191 HPUX_IA64_MODE="64"
14193 esac
14195 rm -rf conftest*
14197 *-*-irix6*)
14198 # Find out which ABI we are using.
14199 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14201 (eval $ac_compile) 2>&5
14202 ac_status=$?
14203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14204 test $ac_status = 0; }; then
14205 if test "$lt_cv_prog_gnu_ld" = yes; then
14206 case `/usr/bin/file conftest.$ac_objext` in
14207 *32-bit*)
14208 LD="${LD-ld} -melf32bsmip"
14210 *N32*)
14211 LD="${LD-ld} -melf32bmipn32"
14213 *64-bit*)
14214 LD="${LD-ld} -melf64bmip"
14216 esac
14217 else
14218 case `/usr/bin/file conftest.$ac_objext` in
14219 *32-bit*)
14220 LD="${LD-ld} -32"
14222 *N32*)
14223 LD="${LD-ld} -n32"
14225 *64-bit*)
14226 LD="${LD-ld} -64"
14228 esac
14231 rm -rf conftest*
14234 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14235 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14236 # Find out which ABI we are using.
14237 echo 'int i;' > conftest.$ac_ext
14238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14239 (eval $ac_compile) 2>&5
14240 ac_status=$?
14241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14242 test $ac_status = 0; }; then
14243 case `/usr/bin/file conftest.o` in
14244 *32-bit*)
14245 case $host in
14246 x86_64-*kfreebsd*-gnu)
14247 LD="${LD-ld} -m elf_i386_fbsd"
14249 x86_64-*linux*)
14250 case `/usr/bin/file conftest.o` in
14251 *x86-64*)
14252 LD="${LD-ld} -m elf32_x86_64"
14255 LD="${LD-ld} -m elf_i386"
14257 esac
14259 powerpc64le-*linux*)
14260 LD="${LD-ld} -m elf32lppclinux"
14262 powerpc64-*linux*)
14263 LD="${LD-ld} -m elf32ppclinux"
14265 s390x-*linux*)
14266 LD="${LD-ld} -m elf_s390"
14268 sparc64-*linux*)
14269 LD="${LD-ld} -m elf32_sparc"
14271 esac
14273 *64-bit*)
14274 case $host in
14275 x86_64-*kfreebsd*-gnu)
14276 LD="${LD-ld} -m elf_x86_64_fbsd"
14278 x86_64-*linux*)
14279 LD="${LD-ld} -m elf_x86_64"
14281 powerpcle-*linux*)
14282 LD="${LD-ld} -m elf64lppc"
14284 powerpc-*linux*)
14285 LD="${LD-ld} -m elf64ppc"
14287 s390*-*linux*|s390*-*tpf*)
14288 LD="${LD-ld} -m elf64_s390"
14290 sparc*-*linux*)
14291 LD="${LD-ld} -m elf64_sparc"
14293 esac
14295 esac
14297 rm -rf conftest*
14300 *-*-sco3.2v5*)
14301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14302 SAVE_CFLAGS="$CFLAGS"
14303 CFLAGS="$CFLAGS -belf"
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14305 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14306 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14307 $as_echo_n "(cached) " >&6
14308 else
14309 ac_ext=c
14310 ac_cpp='$CPP $CPPFLAGS'
14311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14319 main ()
14323 return 0;
14325 _ACEOF
14326 if ac_fn_c_try_link "$LINENO"; then :
14327 lt_cv_cc_needs_belf=yes
14328 else
14329 lt_cv_cc_needs_belf=no
14331 rm -f core conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14333 ac_ext=c
14334 ac_cpp='$CPP $CPPFLAGS'
14335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14341 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14342 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14344 CFLAGS="$SAVE_CFLAGS"
14347 sparc*-*solaris*)
14348 # Find out which ABI we are using.
14349 echo 'int i;' > conftest.$ac_ext
14350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14351 (eval $ac_compile) 2>&5
14352 ac_status=$?
14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14354 test $ac_status = 0; }; then
14355 case `/usr/bin/file conftest.o` in
14356 *64-bit*)
14357 case $lt_cv_prog_gnu_ld in
14358 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14360 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14361 LD="${LD-ld} -64"
14364 esac
14366 esac
14368 rm -rf conftest*
14370 esac
14372 need_locks="$enable_libtool_lock"
14375 case $host_os in
14376 rhapsody* | darwin*)
14377 if test -n "$ac_tool_prefix"; then
14378 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14379 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14381 $as_echo_n "checking for $ac_word... " >&6; }
14382 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 if test -n "$DSYMUTIL"; then
14386 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14387 else
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14399 done
14400 done
14401 IFS=$as_save_IFS
14405 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14406 if test -n "$DSYMUTIL"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14408 $as_echo "$DSYMUTIL" >&6; }
14409 else
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14416 if test -z "$ac_cv_prog_DSYMUTIL"; then
14417 ac_ct_DSYMUTIL=$DSYMUTIL
14418 # Extract the first word of "dsymutil", so it can be a program name with args.
14419 set dummy dsymutil; ac_word=$2
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14421 $as_echo_n "checking for $ac_word... " >&6; }
14422 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14424 else
14425 if test -n "$ac_ct_DSYMUTIL"; then
14426 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14427 else
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429 for as_dir in $PATH
14431 IFS=$as_save_IFS
14432 test -z "$as_dir" && as_dir=.
14433 for ac_exec_ext in '' $ac_executable_extensions; do
14434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14435 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14437 break 2
14439 done
14440 done
14441 IFS=$as_save_IFS
14445 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14446 if test -n "$ac_ct_DSYMUTIL"; then
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14448 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14449 else
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 $as_echo "no" >&6; }
14454 if test "x$ac_ct_DSYMUTIL" = x; then
14455 DSYMUTIL=":"
14456 else
14457 case $cross_compiling:$ac_tool_warned in
14458 yes:)
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14461 ac_tool_warned=yes ;;
14462 esac
14463 DSYMUTIL=$ac_ct_DSYMUTIL
14465 else
14466 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14469 if test -n "$ac_tool_prefix"; then
14470 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14471 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14473 $as_echo_n "checking for $ac_word... " >&6; }
14474 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 if test -n "$NMEDIT"; then
14478 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14479 else
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14487 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14491 done
14492 done
14493 IFS=$as_save_IFS
14497 NMEDIT=$ac_cv_prog_NMEDIT
14498 if test -n "$NMEDIT"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14500 $as_echo "$NMEDIT" >&6; }
14501 else
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14503 $as_echo "no" >&6; }
14508 if test -z "$ac_cv_prog_NMEDIT"; then
14509 ac_ct_NMEDIT=$NMEDIT
14510 # Extract the first word of "nmedit", so it can be a program name with args.
14511 set dummy nmedit; ac_word=$2
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14513 $as_echo_n "checking for $ac_word... " >&6; }
14514 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 if test -n "$ac_ct_NMEDIT"; then
14518 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14519 else
14520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14523 IFS=$as_save_IFS
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
14526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14527 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14529 break 2
14531 done
14532 done
14533 IFS=$as_save_IFS
14537 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14538 if test -n "$ac_ct_NMEDIT"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14540 $as_echo "$ac_ct_NMEDIT" >&6; }
14541 else
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14543 $as_echo "no" >&6; }
14546 if test "x$ac_ct_NMEDIT" = x; then
14547 NMEDIT=":"
14548 else
14549 case $cross_compiling:$ac_tool_warned in
14550 yes:)
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14553 ac_tool_warned=yes ;;
14554 esac
14555 NMEDIT=$ac_ct_NMEDIT
14557 else
14558 NMEDIT="$ac_cv_prog_NMEDIT"
14561 if test -n "$ac_tool_prefix"; then
14562 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14563 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14565 $as_echo_n "checking for $ac_word... " >&6; }
14566 if test "${ac_cv_prog_LIPO+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14568 else
14569 if test -n "$LIPO"; then
14570 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14571 else
14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14575 IFS=$as_save_IFS
14576 test -z "$as_dir" && as_dir=.
14577 for ac_exec_ext in '' $ac_executable_extensions; do
14578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14579 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14581 break 2
14583 done
14584 done
14585 IFS=$as_save_IFS
14589 LIPO=$ac_cv_prog_LIPO
14590 if test -n "$LIPO"; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14592 $as_echo "$LIPO" >&6; }
14593 else
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14595 $as_echo "no" >&6; }
14600 if test -z "$ac_cv_prog_LIPO"; then
14601 ac_ct_LIPO=$LIPO
14602 # Extract the first word of "lipo", so it can be a program name with args.
14603 set dummy lipo; ac_word=$2
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14605 $as_echo_n "checking for $ac_word... " >&6; }
14606 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609 if test -n "$ac_ct_LIPO"; then
14610 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14611 else
14612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14613 for as_dir in $PATH
14615 IFS=$as_save_IFS
14616 test -z "$as_dir" && as_dir=.
14617 for ac_exec_ext in '' $ac_executable_extensions; do
14618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14619 ac_cv_prog_ac_ct_LIPO="lipo"
14620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14621 break 2
14623 done
14624 done
14625 IFS=$as_save_IFS
14629 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14630 if test -n "$ac_ct_LIPO"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14632 $as_echo "$ac_ct_LIPO" >&6; }
14633 else
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14638 if test "x$ac_ct_LIPO" = x; then
14639 LIPO=":"
14640 else
14641 case $cross_compiling:$ac_tool_warned in
14642 yes:)
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14645 ac_tool_warned=yes ;;
14646 esac
14647 LIPO=$ac_ct_LIPO
14649 else
14650 LIPO="$ac_cv_prog_LIPO"
14653 if test -n "$ac_tool_prefix"; then
14654 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14655 set dummy ${ac_tool_prefix}otool; ac_word=$2
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14657 $as_echo_n "checking for $ac_word... " >&6; }
14658 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14661 if test -n "$OTOOL"; then
14662 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14663 else
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14667 IFS=$as_save_IFS
14668 test -z "$as_dir" && as_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14671 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14673 break 2
14675 done
14676 done
14677 IFS=$as_save_IFS
14681 OTOOL=$ac_cv_prog_OTOOL
14682 if test -n "$OTOOL"; then
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14684 $as_echo "$OTOOL" >&6; }
14685 else
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687 $as_echo "no" >&6; }
14692 if test -z "$ac_cv_prog_OTOOL"; then
14693 ac_ct_OTOOL=$OTOOL
14694 # Extract the first word of "otool", so it can be a program name with args.
14695 set dummy otool; ac_word=$2
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14697 $as_echo_n "checking for $ac_word... " >&6; }
14698 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14699 $as_echo_n "(cached) " >&6
14700 else
14701 if test -n "$ac_ct_OTOOL"; then
14702 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14703 else
14704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14705 for as_dir in $PATH
14707 IFS=$as_save_IFS
14708 test -z "$as_dir" && as_dir=.
14709 for ac_exec_ext in '' $ac_executable_extensions; do
14710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14711 ac_cv_prog_ac_ct_OTOOL="otool"
14712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14713 break 2
14715 done
14716 done
14717 IFS=$as_save_IFS
14721 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14722 if test -n "$ac_ct_OTOOL"; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14724 $as_echo "$ac_ct_OTOOL" >&6; }
14725 else
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14727 $as_echo "no" >&6; }
14730 if test "x$ac_ct_OTOOL" = x; then
14731 OTOOL=":"
14732 else
14733 case $cross_compiling:$ac_tool_warned in
14734 yes:)
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14737 ac_tool_warned=yes ;;
14738 esac
14739 OTOOL=$ac_ct_OTOOL
14741 else
14742 OTOOL="$ac_cv_prog_OTOOL"
14745 if test -n "$ac_tool_prefix"; then
14746 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14747 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14749 $as_echo_n "checking for $ac_word... " >&6; }
14750 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 if test -n "$OTOOL64"; then
14754 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14755 else
14756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757 for as_dir in $PATH
14759 IFS=$as_save_IFS
14760 test -z "$as_dir" && as_dir=.
14761 for ac_exec_ext in '' $ac_executable_extensions; do
14762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14763 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14765 break 2
14767 done
14768 done
14769 IFS=$as_save_IFS
14773 OTOOL64=$ac_cv_prog_OTOOL64
14774 if test -n "$OTOOL64"; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14776 $as_echo "$OTOOL64" >&6; }
14777 else
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 $as_echo "no" >&6; }
14784 if test -z "$ac_cv_prog_OTOOL64"; then
14785 ac_ct_OTOOL64=$OTOOL64
14786 # Extract the first word of "otool64", so it can be a program name with args.
14787 set dummy otool64; ac_word=$2
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 $as_echo_n "checking for $ac_word... " >&6; }
14790 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 if test -n "$ac_ct_OTOOL64"; then
14794 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14795 else
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14799 IFS=$as_save_IFS
14800 test -z "$as_dir" && as_dir=.
14801 for ac_exec_ext in '' $ac_executable_extensions; do
14802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14803 ac_cv_prog_ac_ct_OTOOL64="otool64"
14804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14805 break 2
14807 done
14808 done
14809 IFS=$as_save_IFS
14813 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14814 if test -n "$ac_ct_OTOOL64"; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14816 $as_echo "$ac_ct_OTOOL64" >&6; }
14817 else
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14819 $as_echo "no" >&6; }
14822 if test "x$ac_ct_OTOOL64" = x; then
14823 OTOOL64=":"
14824 else
14825 case $cross_compiling:$ac_tool_warned in
14826 yes:)
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14829 ac_tool_warned=yes ;;
14830 esac
14831 OTOOL64=$ac_ct_OTOOL64
14833 else
14834 OTOOL64="$ac_cv_prog_OTOOL64"
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14864 $as_echo_n "checking for -single_module linker flag... " >&6; }
14865 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 lt_cv_apple_cc_single_mod=no
14869 if test -z "${LT_MULTI_MODULE}"; then
14870 # By default we will add the -single_module flag. You can override
14871 # by either setting the environment variable LT_MULTI_MODULE
14872 # non-empty at configure time, or by adding -multi_module to the
14873 # link flags.
14874 rm -rf libconftest.dylib*
14875 echo "int foo(void){return 1;}" > conftest.c
14876 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14877 -dynamiclib -Wl,-single_module conftest.c" >&5
14878 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14879 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14880 _lt_result=$?
14881 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14882 lt_cv_apple_cc_single_mod=yes
14883 else
14884 cat conftest.err >&5
14886 rm -rf libconftest.dylib*
14887 rm -f conftest.*
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14891 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14893 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14894 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14895 $as_echo_n "(cached) " >&6
14896 else
14897 lt_cv_ld_exported_symbols_list=no
14898 save_LDFLAGS=$LDFLAGS
14899 echo "_main" > conftest.sym
14900 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14905 main ()
14909 return 0;
14911 _ACEOF
14912 if ac_fn_c_try_link "$LINENO"; then :
14913 lt_cv_ld_exported_symbols_list=yes
14914 else
14915 lt_cv_ld_exported_symbols_list=no
14917 rm -f core conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14919 LDFLAGS="$save_LDFLAGS"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14923 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14925 $as_echo_n "checking for -force_load linker flag... " >&6; }
14926 if test "${lt_cv_ld_force_load+set}" = set; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 lt_cv_ld_force_load=no
14930 cat > conftest.c << _LT_EOF
14931 int forced_loaded() { return 2;}
14932 _LT_EOF
14933 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14934 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14935 echo "$AR cru libconftest.a conftest.o" >&5
14936 $AR cru libconftest.a conftest.o 2>&5
14937 cat > conftest.c << _LT_EOF
14938 int main() { return 0;}
14939 _LT_EOF
14940 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14941 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14942 _lt_result=$?
14943 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14944 lt_cv_ld_force_load=yes
14945 else
14946 cat conftest.err >&5
14948 rm -f conftest.err libconftest.a conftest conftest.c
14949 rm -rf conftest.dSYM
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14953 $as_echo "$lt_cv_ld_force_load" >&6; }
14954 case $host_os in
14955 rhapsody* | darwin1.[012])
14956 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14957 darwin1.*)
14958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14959 darwin*) # darwin 5.x on
14960 # if running on 10.5 or later, the deployment target defaults
14961 # to the OS version, if on x86, and 10.4, the deployment
14962 # target defaults to 10.4. Don't you love it?
14963 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14964 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14965 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14966 10.[012][,.]*)
14967 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14968 10.*)
14969 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14970 esac
14972 esac
14973 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14974 _lt_dar_single_mod='$single_module'
14976 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14977 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14978 else
14979 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14981 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14982 _lt_dsymutil='~$DSYMUTIL $lib || :'
14983 else
14984 _lt_dsymutil=
14987 esac
14990 for ac_header in dlfcn.h
14991 do :
14992 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14993 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14994 cat >>confdefs.h <<_ACEOF
14995 #define HAVE_DLFCN_H 1
14996 _ACEOF
14999 done
15005 # Set options
15009 enable_dlopen=no
15012 enable_win32_dll=no
15015 # Check whether --enable-shared was given.
15016 if test "${enable_shared+set}" = set; then :
15017 enableval=$enable_shared; p=${PACKAGE-default}
15018 case $enableval in
15019 yes) enable_shared=yes ;;
15020 no) enable_shared=no ;;
15022 enable_shared=no
15023 # Look at the argument we got. We use all the common list separators.
15024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15025 for pkg in $enableval; do
15026 IFS="$lt_save_ifs"
15027 if test "X$pkg" = "X$p"; then
15028 enable_shared=yes
15030 done
15031 IFS="$lt_save_ifs"
15033 esac
15034 else
15035 enable_shared=yes
15046 # Check whether --enable-static was given.
15047 if test "${enable_static+set}" = set; then :
15048 enableval=$enable_static; p=${PACKAGE-default}
15049 case $enableval in
15050 yes) enable_static=yes ;;
15051 no) enable_static=no ;;
15053 enable_static=no
15054 # Look at the argument we got. We use all the common list separators.
15055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15056 for pkg in $enableval; do
15057 IFS="$lt_save_ifs"
15058 if test "X$pkg" = "X$p"; then
15059 enable_static=yes
15061 done
15062 IFS="$lt_save_ifs"
15064 esac
15065 else
15066 enable_static=yes
15078 # Check whether --with-pic was given.
15079 if test "${with_pic+set}" = set; then :
15080 withval=$with_pic; pic_mode="$withval"
15081 else
15082 pic_mode=default
15086 test -z "$pic_mode" && pic_mode=default
15094 # Check whether --enable-fast-install was given.
15095 if test "${enable_fast_install+set}" = set; then :
15096 enableval=$enable_fast_install; p=${PACKAGE-default}
15097 case $enableval in
15098 yes) enable_fast_install=yes ;;
15099 no) enable_fast_install=no ;;
15101 enable_fast_install=no
15102 # Look at the argument we got. We use all the common list separators.
15103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15104 for pkg in $enableval; do
15105 IFS="$lt_save_ifs"
15106 if test "X$pkg" = "X$p"; then
15107 enable_fast_install=yes
15109 done
15110 IFS="$lt_save_ifs"
15112 esac
15113 else
15114 enable_fast_install=yes
15127 # This can be used to rebuild libtool when needed
15128 LIBTOOL_DEPS="$ltmain"
15130 # Always use our own libtool.
15131 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15158 test -z "$LN_S" && LN_S="ln -s"
15173 if test -n "${ZSH_VERSION+set}" ; then
15174 setopt NO_GLOB_SUBST
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15178 $as_echo_n "checking for objdir... " >&6; }
15179 if test "${lt_cv_objdir+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 rm -f .libs 2>/dev/null
15183 mkdir .libs 2>/dev/null
15184 if test -d .libs; then
15185 lt_cv_objdir=.libs
15186 else
15187 # MS-DOS does not allow filenames that begin with a dot.
15188 lt_cv_objdir=_libs
15190 rmdir .libs 2>/dev/null
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15193 $as_echo "$lt_cv_objdir" >&6; }
15194 objdir=$lt_cv_objdir
15200 cat >>confdefs.h <<_ACEOF
15201 #define LT_OBJDIR "$lt_cv_objdir/"
15202 _ACEOF
15207 case $host_os in
15208 aix3*)
15209 # AIX sometimes has problems with the GCC collect2 program. For some
15210 # reason, if we set the COLLECT_NAMES environment variable, the problems
15211 # vanish in a puff of smoke.
15212 if test "X${COLLECT_NAMES+set}" != Xset; then
15213 COLLECT_NAMES=
15214 export COLLECT_NAMES
15217 esac
15219 # Global variables:
15220 ofile=libtool
15221 can_build_shared=yes
15223 # All known linkers require a `.a' archive for static linking (except MSVC,
15224 # which needs '.lib').
15225 libext=a
15227 with_gnu_ld="$lt_cv_prog_gnu_ld"
15229 old_CC="$CC"
15230 old_CFLAGS="$CFLAGS"
15232 # Set sane defaults for various variables
15233 test -z "$CC" && CC=cc
15234 test -z "$LTCC" && LTCC=$CC
15235 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15236 test -z "$LD" && LD=ld
15237 test -z "$ac_objext" && ac_objext=o
15239 for cc_temp in $compiler""; do
15240 case $cc_temp in
15241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15243 \-*) ;;
15244 *) break;;
15245 esac
15246 done
15247 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15250 # Only perform the check for file, if the check method requires it
15251 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15252 case $deplibs_check_method in
15253 file_magic*)
15254 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15256 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15257 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15258 $as_echo_n "(cached) " >&6
15259 else
15260 case $MAGIC_CMD in
15261 [\\/*] | ?:[\\/]*)
15262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15265 lt_save_MAGIC_CMD="$MAGIC_CMD"
15266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15268 for ac_dir in $ac_dummy; do
15269 IFS="$lt_save_ifs"
15270 test -z "$ac_dir" && ac_dir=.
15271 if test -f $ac_dir/${ac_tool_prefix}file; then
15272 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15273 if test -n "$file_magic_test_file"; then
15274 case $deplibs_check_method in
15275 "file_magic "*)
15276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15279 $EGREP "$file_magic_regex" > /dev/null; then
15281 else
15282 cat <<_LT_EOF 1>&2
15284 *** Warning: the command libtool uses to detect shared libraries,
15285 *** $file_magic_cmd, produces output that libtool cannot recognize.
15286 *** The result is that libtool may fail to recognize shared libraries
15287 *** as such. This will affect the creation of libtool libraries that
15288 *** depend on shared libraries, but programs linked with such libtool
15289 *** libraries will work regardless of this problem. Nevertheless, you
15290 *** may want to report the problem to your system manager and/or to
15291 *** bug-libtool@gnu.org
15293 _LT_EOF
15294 fi ;;
15295 esac
15297 break
15299 done
15300 IFS="$lt_save_ifs"
15301 MAGIC_CMD="$lt_save_MAGIC_CMD"
15303 esac
15306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15307 if test -n "$MAGIC_CMD"; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15309 $as_echo "$MAGIC_CMD" >&6; }
15310 else
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15312 $as_echo "no" >&6; }
15319 if test -z "$lt_cv_path_MAGIC_CMD"; then
15320 if test -n "$ac_tool_prefix"; then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15322 $as_echo_n "checking for file... " >&6; }
15323 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15324 $as_echo_n "(cached) " >&6
15325 else
15326 case $MAGIC_CMD in
15327 [\\/*] | ?:[\\/]*)
15328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15331 lt_save_MAGIC_CMD="$MAGIC_CMD"
15332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15333 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15334 for ac_dir in $ac_dummy; do
15335 IFS="$lt_save_ifs"
15336 test -z "$ac_dir" && ac_dir=.
15337 if test -f $ac_dir/file; then
15338 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15339 if test -n "$file_magic_test_file"; then
15340 case $deplibs_check_method in
15341 "file_magic "*)
15342 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15344 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15345 $EGREP "$file_magic_regex" > /dev/null; then
15347 else
15348 cat <<_LT_EOF 1>&2
15350 *** Warning: the command libtool uses to detect shared libraries,
15351 *** $file_magic_cmd, produces output that libtool cannot recognize.
15352 *** The result is that libtool may fail to recognize shared libraries
15353 *** as such. This will affect the creation of libtool libraries that
15354 *** depend on shared libraries, but programs linked with such libtool
15355 *** libraries will work regardless of this problem. Nevertheless, you
15356 *** may want to report the problem to your system manager and/or to
15357 *** bug-libtool@gnu.org
15359 _LT_EOF
15360 fi ;;
15361 esac
15363 break
15365 done
15366 IFS="$lt_save_ifs"
15367 MAGIC_CMD="$lt_save_MAGIC_CMD"
15369 esac
15372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15373 if test -n "$MAGIC_CMD"; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15375 $as_echo "$MAGIC_CMD" >&6; }
15376 else
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15378 $as_echo "no" >&6; }
15382 else
15383 MAGIC_CMD=:
15389 esac
15391 # Use C for the default configuration in the libtool script
15393 lt_save_CC="$CC"
15394 ac_ext=c
15395 ac_cpp='$CPP $CPPFLAGS'
15396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15401 # Source file extension for C test sources.
15402 ac_ext=c
15404 # Object file extension for compiled C test sources.
15405 objext=o
15406 objext=$objext
15408 # Code to be used in simple compile tests
15409 lt_simple_compile_test_code="int some_variable = 0;"
15411 # Code to be used in simple link tests
15412 lt_simple_link_test_code='int main(){return(0);}'
15420 # If no C compiler was specified, use CC.
15421 LTCC=${LTCC-"$CC"}
15423 # If no C compiler flags were specified, use CFLAGS.
15424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15426 # Allow CC to be a program name with arguments.
15427 compiler=$CC
15429 # Save the default compiler, since it gets overwritten when the other
15430 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15431 compiler_DEFAULT=$CC
15433 # save warnings/boilerplate of simple test code
15434 ac_outfile=conftest.$ac_objext
15435 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15436 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15437 _lt_compiler_boilerplate=`cat conftest.err`
15438 $RM conftest*
15440 ac_outfile=conftest.$ac_objext
15441 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15442 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15443 _lt_linker_boilerplate=`cat conftest.err`
15444 $RM -r conftest*
15447 ## CAVEAT EMPTOR:
15448 ## There is no encapsulation within the following macros, do not change
15449 ## the running order or otherwise move them around unless you know exactly
15450 ## what you are doing...
15451 if test -n "$compiler"; then
15453 lt_prog_compiler_no_builtin_flag=
15455 if test "$GCC" = yes; then
15456 case $cc_basename in
15457 nvcc*)
15458 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15460 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15461 esac
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15464 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15465 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15466 $as_echo_n "(cached) " >&6
15467 else
15468 lt_cv_prog_compiler_rtti_exceptions=no
15469 ac_outfile=conftest.$ac_objext
15470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15471 lt_compiler_flag="-fno-rtti -fno-exceptions"
15472 # Insert the option either (1) after the last *FLAGS variable, or
15473 # (2) before a word containing "conftest.", or (3) at the end.
15474 # Note that $ac_compile itself does not contain backslashes and begins
15475 # with a dollar sign (not a hyphen), so the echo should work correctly.
15476 # The option is referenced via a variable to avoid confusing sed.
15477 lt_compile=`echo "$ac_compile" | $SED \
15478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15480 -e 's:$: $lt_compiler_flag:'`
15481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15482 (eval "$lt_compile" 2>conftest.err)
15483 ac_status=$?
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 if (exit $ac_status) && test -s "$ac_outfile"; then
15487 # The compiler can only warn and ignore the option if not recognized
15488 # So say no if there are warnings other than the usual output.
15489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15492 lt_cv_prog_compiler_rtti_exceptions=yes
15495 $RM conftest*
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15499 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15501 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15502 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15503 else
15514 lt_prog_compiler_wl=
15515 lt_prog_compiler_pic=
15516 lt_prog_compiler_static=
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15519 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15521 if test "$GCC" = yes; then
15522 lt_prog_compiler_wl='-Wl,'
15523 lt_prog_compiler_static='-static'
15525 case $host_os in
15526 aix*)
15527 # All AIX code is PIC.
15528 if test "$host_cpu" = ia64; then
15529 # AIX 5 now supports IA64 processor
15530 lt_prog_compiler_static='-Bstatic'
15532 lt_prog_compiler_pic='-fPIC'
15535 amigaos*)
15536 case $host_cpu in
15537 powerpc)
15538 # see comment about AmigaOS4 .so support
15539 lt_prog_compiler_pic='-fPIC'
15541 m68k)
15542 # FIXME: we need at least 68020 code to build shared libraries, but
15543 # adding the `-m68020' flag to GCC prevents building anything better,
15544 # like `-m68040'.
15545 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15547 esac
15550 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15551 # PIC is the default for these OSes.
15554 mingw* | cygwin* | pw32* | os2* | cegcc*)
15555 # This hack is so that the source file can tell whether it is being
15556 # built for inclusion in a dll (and should export symbols for example).
15557 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15558 # (--disable-auto-import) libraries
15559 lt_prog_compiler_pic='-DDLL_EXPORT'
15562 darwin* | rhapsody*)
15563 # PIC is the default on this platform
15564 # Common symbols not allowed in MH_DYLIB files
15565 lt_prog_compiler_pic='-fno-common'
15568 haiku*)
15569 # PIC is the default for Haiku.
15570 # The "-static" flag exists, but is broken.
15571 lt_prog_compiler_static=
15574 hpux*)
15575 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15576 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15577 # sets the default TLS model and affects inlining.
15578 case $host_cpu in
15579 hppa*64*)
15580 # +Z the default
15583 lt_prog_compiler_pic='-fPIC'
15585 esac
15588 interix[3-9]*)
15589 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15590 # Instead, we relocate shared libraries at runtime.
15593 msdosdjgpp*)
15594 # Just because we use GCC doesn't mean we suddenly get shared libraries
15595 # on systems that don't support them.
15596 lt_prog_compiler_can_build_shared=no
15597 enable_shared=no
15600 *nto* | *qnx*)
15601 # QNX uses GNU C++, but need to define -shared option too, otherwise
15602 # it will coredump.
15603 lt_prog_compiler_pic='-fPIC -shared'
15606 sysv4*MP*)
15607 if test -d /usr/nec; then
15608 lt_prog_compiler_pic=-Kconform_pic
15613 lt_prog_compiler_pic='-fPIC'
15615 esac
15617 case $cc_basename in
15618 nvcc*) # Cuda Compiler Driver 2.2
15619 lt_prog_compiler_wl='-Xlinker '
15620 lt_prog_compiler_pic='-Xcompiler -fPIC'
15622 esac
15623 else
15624 # PORTME Check for flag to pass linker flags through the system compiler.
15625 case $host_os in
15626 aix*)
15627 lt_prog_compiler_wl='-Wl,'
15628 if test "$host_cpu" = ia64; then
15629 # AIX 5 now supports IA64 processor
15630 lt_prog_compiler_static='-Bstatic'
15631 else
15632 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15636 mingw* | cygwin* | pw32* | os2* | cegcc*)
15637 # This hack is so that the source file can tell whether it is being
15638 # built for inclusion in a dll (and should export symbols for example).
15639 lt_prog_compiler_pic='-DDLL_EXPORT'
15642 hpux9* | hpux10* | hpux11*)
15643 lt_prog_compiler_wl='-Wl,'
15644 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15645 # not for PA HP-UX.
15646 case $host_cpu in
15647 hppa*64*|ia64*)
15648 # +Z the default
15651 lt_prog_compiler_pic='+Z'
15653 esac
15654 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15655 lt_prog_compiler_static='${wl}-a ${wl}archive'
15658 irix5* | irix6* | nonstopux*)
15659 lt_prog_compiler_wl='-Wl,'
15660 # PIC (with -KPIC) is the default.
15661 lt_prog_compiler_static='-non_shared'
15664 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15665 case $cc_basename in
15666 # old Intel for x86_64 which still supported -KPIC.
15667 ecc*)
15668 lt_prog_compiler_wl='-Wl,'
15669 lt_prog_compiler_pic='-KPIC'
15670 lt_prog_compiler_static='-static'
15672 # icc used to be incompatible with GCC.
15673 # ICC 10 doesn't accept -KPIC any more.
15674 icc* | ifort*)
15675 lt_prog_compiler_wl='-Wl,'
15676 lt_prog_compiler_pic='-fPIC'
15677 lt_prog_compiler_static='-static'
15679 # Lahey Fortran 8.1.
15680 lf95*)
15681 lt_prog_compiler_wl='-Wl,'
15682 lt_prog_compiler_pic='--shared'
15683 lt_prog_compiler_static='--static'
15685 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15686 # Portland Group compilers (*not* the Pentium gcc compiler,
15687 # which looks to be a dead project)
15688 lt_prog_compiler_wl='-Wl,'
15689 lt_prog_compiler_pic='-fpic'
15690 lt_prog_compiler_static='-Bstatic'
15692 ccc*)
15693 lt_prog_compiler_wl='-Wl,'
15694 # All Alpha code is PIC.
15695 lt_prog_compiler_static='-non_shared'
15697 xl* | bgxl* | bgf* | mpixl*)
15698 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15699 lt_prog_compiler_wl='-Wl,'
15700 lt_prog_compiler_pic='-qpic'
15701 lt_prog_compiler_static='-qstaticlink'
15704 case `$CC -V 2>&1 | sed 5q` in
15705 *Sun\ F* | *Sun*Fortran*)
15706 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15707 lt_prog_compiler_pic='-KPIC'
15708 lt_prog_compiler_static='-Bstatic'
15709 lt_prog_compiler_wl=''
15711 *Sun\ C*)
15712 # Sun C 5.9
15713 lt_prog_compiler_pic='-KPIC'
15714 lt_prog_compiler_static='-Bstatic'
15715 lt_prog_compiler_wl='-Wl,'
15717 esac
15719 esac
15722 newsos6)
15723 lt_prog_compiler_pic='-KPIC'
15724 lt_prog_compiler_static='-Bstatic'
15727 *nto* | *qnx*)
15728 # QNX uses GNU C++, but need to define -shared option too, otherwise
15729 # it will coredump.
15730 lt_prog_compiler_pic='-fPIC -shared'
15733 osf3* | osf4* | osf5*)
15734 lt_prog_compiler_wl='-Wl,'
15735 # All OSF/1 code is PIC.
15736 lt_prog_compiler_static='-non_shared'
15739 rdos*)
15740 lt_prog_compiler_static='-non_shared'
15743 solaris*)
15744 lt_prog_compiler_pic='-KPIC'
15745 lt_prog_compiler_static='-Bstatic'
15746 case $cc_basename in
15747 f77* | f90* | f95*)
15748 lt_prog_compiler_wl='-Qoption ld ';;
15750 lt_prog_compiler_wl='-Wl,';;
15751 esac
15754 sunos4*)
15755 lt_prog_compiler_wl='-Qoption ld '
15756 lt_prog_compiler_pic='-PIC'
15757 lt_prog_compiler_static='-Bstatic'
15760 sysv4 | sysv4.2uw2* | sysv4.3*)
15761 lt_prog_compiler_wl='-Wl,'
15762 lt_prog_compiler_pic='-KPIC'
15763 lt_prog_compiler_static='-Bstatic'
15766 sysv4*MP*)
15767 if test -d /usr/nec ;then
15768 lt_prog_compiler_pic='-Kconform_pic'
15769 lt_prog_compiler_static='-Bstatic'
15773 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15774 lt_prog_compiler_wl='-Wl,'
15775 lt_prog_compiler_pic='-KPIC'
15776 lt_prog_compiler_static='-Bstatic'
15779 unicos*)
15780 lt_prog_compiler_wl='-Wl,'
15781 lt_prog_compiler_can_build_shared=no
15784 uts4*)
15785 lt_prog_compiler_pic='-pic'
15786 lt_prog_compiler_static='-Bstatic'
15790 lt_prog_compiler_can_build_shared=no
15792 esac
15795 case $host_os in
15796 # For platforms which do not support PIC, -DPIC is meaningless:
15797 *djgpp*)
15798 lt_prog_compiler_pic=
15801 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15803 esac
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15805 $as_echo "$lt_prog_compiler_pic" >&6; }
15813 # Check to make sure the PIC flag actually works.
15815 if test -n "$lt_prog_compiler_pic"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15817 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15818 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15819 $as_echo_n "(cached) " >&6
15820 else
15821 lt_cv_prog_compiler_pic_works=no
15822 ac_outfile=conftest.$ac_objext
15823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15824 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15825 # Insert the option either (1) after the last *FLAGS variable, or
15826 # (2) before a word containing "conftest.", or (3) at the end.
15827 # Note that $ac_compile itself does not contain backslashes and begins
15828 # with a dollar sign (not a hyphen), so the echo should work correctly.
15829 # The option is referenced via a variable to avoid confusing sed.
15830 lt_compile=`echo "$ac_compile" | $SED \
15831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15833 -e 's:$: $lt_compiler_flag:'`
15834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15835 (eval "$lt_compile" 2>conftest.err)
15836 ac_status=$?
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 if (exit $ac_status) && test -s "$ac_outfile"; then
15840 # The compiler can only warn and ignore the option if not recognized
15841 # So say no if there are warnings other than the usual output.
15842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15845 lt_cv_prog_compiler_pic_works=yes
15848 $RM conftest*
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15852 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15854 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15855 case $lt_prog_compiler_pic in
15856 "" | " "*) ;;
15857 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15858 esac
15859 else
15860 lt_prog_compiler_pic=
15861 lt_prog_compiler_can_build_shared=no
15872 # Check to make sure the static flag actually works.
15874 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15876 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15877 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 lt_cv_prog_compiler_static_works=no
15881 save_LDFLAGS="$LDFLAGS"
15882 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15883 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15884 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15885 # The linker can only warn and ignore the option if not recognized
15886 # So say no if there are warnings
15887 if test -s conftest.err; then
15888 # Append any errors to the config.log.
15889 cat conftest.err 1>&5
15890 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15892 if diff conftest.exp conftest.er2 >/dev/null; then
15893 lt_cv_prog_compiler_static_works=yes
15895 else
15896 lt_cv_prog_compiler_static_works=yes
15899 $RM -r conftest*
15900 LDFLAGS="$save_LDFLAGS"
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15904 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15906 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15908 else
15909 lt_prog_compiler_static=
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15919 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15920 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15921 $as_echo_n "(cached) " >&6
15922 else
15923 lt_cv_prog_compiler_c_o=no
15924 $RM -r conftest 2>/dev/null
15925 mkdir conftest
15926 cd conftest
15927 mkdir out
15928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15930 lt_compiler_flag="-o out/conftest2.$ac_objext"
15931 # Insert the option either (1) after the last *FLAGS variable, or
15932 # (2) before a word containing "conftest.", or (3) at the end.
15933 # Note that $ac_compile itself does not contain backslashes and begins
15934 # with a dollar sign (not a hyphen), so the echo should work correctly.
15935 lt_compile=`echo "$ac_compile" | $SED \
15936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15938 -e 's:$: $lt_compiler_flag:'`
15939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15940 (eval "$lt_compile" 2>out/conftest.err)
15941 ac_status=$?
15942 cat out/conftest.err >&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15945 then
15946 # The compiler can only warn and ignore the option if not recognized
15947 # So say no if there are warnings
15948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15951 lt_cv_prog_compiler_c_o=yes
15954 chmod u+w . 2>&5
15955 $RM conftest*
15956 # SGI C++ compiler will create directory out/ii_files/ for
15957 # template instantiation
15958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15959 $RM out/* && rmdir out
15960 cd ..
15961 $RM -r conftest
15962 $RM conftest*
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15966 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15974 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15975 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15976 $as_echo_n "(cached) " >&6
15977 else
15978 lt_cv_prog_compiler_c_o=no
15979 $RM -r conftest 2>/dev/null
15980 mkdir conftest
15981 cd conftest
15982 mkdir out
15983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15985 lt_compiler_flag="-o out/conftest2.$ac_objext"
15986 # Insert the option either (1) after the last *FLAGS variable, or
15987 # (2) before a word containing "conftest.", or (3) at the end.
15988 # Note that $ac_compile itself does not contain backslashes and begins
15989 # with a dollar sign (not a hyphen), so the echo should work correctly.
15990 lt_compile=`echo "$ac_compile" | $SED \
15991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15993 -e 's:$: $lt_compiler_flag:'`
15994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15995 (eval "$lt_compile" 2>out/conftest.err)
15996 ac_status=$?
15997 cat out/conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16000 then
16001 # The compiler can only warn and ignore the option if not recognized
16002 # So say no if there are warnings
16003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16006 lt_cv_prog_compiler_c_o=yes
16009 chmod u+w . 2>&5
16010 $RM conftest*
16011 # SGI C++ compiler will create directory out/ii_files/ for
16012 # template instantiation
16013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16014 $RM out/* && rmdir out
16015 cd ..
16016 $RM -r conftest
16017 $RM conftest*
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16021 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16026 hard_links="nottested"
16027 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16028 # do not overwrite the value of need_locks provided by the user
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16030 $as_echo_n "checking if we can lock with hard links... " >&6; }
16031 hard_links=yes
16032 $RM conftest*
16033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16034 touch conftest.a
16035 ln conftest.a conftest.b 2>&5 || hard_links=no
16036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16038 $as_echo "$hard_links" >&6; }
16039 if test "$hard_links" = no; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16041 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16042 need_locks=warn
16044 else
16045 need_locks=no
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16054 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16056 runpath_var=
16057 allow_undefined_flag=
16058 always_export_symbols=no
16059 archive_cmds=
16060 archive_expsym_cmds=
16061 compiler_needs_object=no
16062 enable_shared_with_static_runtimes=no
16063 export_dynamic_flag_spec=
16064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16065 hardcode_automatic=no
16066 hardcode_direct=no
16067 hardcode_direct_absolute=no
16068 hardcode_libdir_flag_spec=
16069 hardcode_libdir_flag_spec_ld=
16070 hardcode_libdir_separator=
16071 hardcode_minus_L=no
16072 hardcode_shlibpath_var=unsupported
16073 inherit_rpath=no
16074 link_all_deplibs=unknown
16075 module_cmds=
16076 module_expsym_cmds=
16077 old_archive_from_new_cmds=
16078 old_archive_from_expsyms_cmds=
16079 thread_safe_flag_spec=
16080 whole_archive_flag_spec=
16081 # include_expsyms should be a list of space-separated symbols to be *always*
16082 # included in the symbol list
16083 include_expsyms=
16084 # exclude_expsyms can be an extended regexp of symbols to exclude
16085 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16086 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16087 # as well as any symbol that contains `d'.
16088 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16090 # platforms (ab)use it in PIC code, but their linkers get confused if
16091 # the symbol is explicitly referenced. Since portable code cannot
16092 # rely on this symbol name, it's probably fine to never include it in
16093 # preloaded symbol tables.
16094 # Exclude shared library initialization/finalization symbols.
16095 extract_expsyms_cmds=
16097 case $host_os in
16098 cygwin* | mingw* | pw32* | cegcc*)
16099 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16100 # When not using gcc, we currently assume that we are using
16101 # Microsoft Visual C++.
16102 if test "$GCC" != yes; then
16103 with_gnu_ld=no
16106 interix*)
16107 # we just hope/assume this is gcc and not c89 (= MSVC++)
16108 with_gnu_ld=yes
16110 openbsd*)
16111 with_gnu_ld=no
16113 esac
16115 ld_shlibs=yes
16117 # On some targets, GNU ld is compatible enough with the native linker
16118 # that we're better off using the native interface for both.
16119 lt_use_gnu_ld_interface=no
16120 if test "$with_gnu_ld" = yes; then
16121 case $host_os in
16122 aix*)
16123 # The AIX port of GNU ld has always aspired to compatibility
16124 # with the native linker. However, as the warning in the GNU ld
16125 # block says, versions before 2.19.5* couldn't really create working
16126 # shared libraries, regardless of the interface used.
16127 case `$LD -v 2>&1` in
16128 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16129 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16130 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16132 lt_use_gnu_ld_interface=yes
16134 esac
16137 lt_use_gnu_ld_interface=yes
16139 esac
16142 if test "$lt_use_gnu_ld_interface" = yes; then
16143 # If archive_cmds runs LD, not CC, wlarc should be empty
16144 wlarc='${wl}'
16146 # Set some defaults for GNU ld with shared library support. These
16147 # are reset later if shared libraries are not supported. Putting them
16148 # here allows them to be overridden if necessary.
16149 runpath_var=LD_RUN_PATH
16150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16151 export_dynamic_flag_spec='${wl}--export-dynamic'
16152 # ancient GNU ld didn't support --whole-archive et. al.
16153 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16154 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16155 else
16156 whole_archive_flag_spec=
16158 supports_anon_versioning=no
16159 case `$LD -v 2>&1` in
16160 *GNU\ gold*) supports_anon_versioning=yes ;;
16161 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16162 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16163 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16164 *\ 2.11.*) ;; # other 2.11 versions
16165 *) supports_anon_versioning=yes ;;
16166 esac
16168 # See if GNU ld supports shared libraries.
16169 case $host_os in
16170 aix[3-9]*)
16171 # On AIX/PPC, the GNU linker is very broken
16172 if test "$host_cpu" != ia64; then
16173 ld_shlibs=no
16174 cat <<_LT_EOF 1>&2
16176 *** Warning: the GNU linker, at least up to release 2.19, is reported
16177 *** to be unable to reliably create shared libraries on AIX.
16178 *** Therefore, libtool is disabling shared libraries support. If you
16179 *** really care for shared libraries, you may want to install binutils
16180 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16181 *** You will then need to restart the configuration process.
16183 _LT_EOF
16187 amigaos*)
16188 case $host_cpu in
16189 powerpc)
16190 # see comment about AmigaOS4 .so support
16191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16192 archive_expsym_cmds=''
16194 m68k)
16195 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)'
16196 hardcode_libdir_flag_spec='-L$libdir'
16197 hardcode_minus_L=yes
16199 esac
16202 beos*)
16203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16204 allow_undefined_flag=unsupported
16205 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16206 # support --undefined. This deserves some investigation. FIXME
16207 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16208 else
16209 ld_shlibs=no
16213 cygwin* | mingw* | pw32* | cegcc*)
16214 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16215 # as there is no search path for DLLs.
16216 hardcode_libdir_flag_spec='-L$libdir'
16217 export_dynamic_flag_spec='${wl}--export-all-symbols'
16218 allow_undefined_flag=unsupported
16219 always_export_symbols=no
16220 enable_shared_with_static_runtimes=yes
16221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16223 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16225 # If the export-symbols file already is a .def file (1st line
16226 # is EXPORTS), use it as is; otherwise, prepend...
16227 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16228 cp $export_symbols $output_objdir/$soname.def;
16229 else
16230 echo EXPORTS > $output_objdir/$soname.def;
16231 cat $export_symbols >> $output_objdir/$soname.def;
16233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16234 else
16235 ld_shlibs=no
16239 haiku*)
16240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16241 link_all_deplibs=yes
16244 interix[3-9]*)
16245 hardcode_direct=no
16246 hardcode_shlibpath_var=no
16247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16248 export_dynamic_flag_spec='${wl}-E'
16249 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16250 # Instead, shared libraries are loaded at an image base (0x10000000 by
16251 # default) and relocated if they conflict, which is a slow very memory
16252 # consuming and fragmenting process. To avoid this, we pick a random,
16253 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16254 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16256 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'
16259 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16260 tmp_diet=no
16261 if test "$host_os" = linux-dietlibc; then
16262 case $cc_basename in
16263 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16264 esac
16266 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16267 && test "$tmp_diet" = no
16268 then
16269 tmp_addflag=' $pic_flag'
16270 tmp_sharedflag='-shared'
16271 case $cc_basename,$host_cpu in
16272 pgcc*) # Portland Group C compiler
16273 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'
16274 tmp_addflag=' $pic_flag'
16276 pgf77* | pgf90* | pgf95* | pgfortran*)
16277 # Portland Group f77 and f90 compilers
16278 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'
16279 tmp_addflag=' $pic_flag -Mnomain' ;;
16280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16281 tmp_addflag=' -i_dynamic' ;;
16282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16283 tmp_addflag=' -i_dynamic -nofor_main' ;;
16284 ifc* | ifort*) # Intel Fortran compiler
16285 tmp_addflag=' -nofor_main' ;;
16286 lf95*) # Lahey Fortran 8.1
16287 whole_archive_flag_spec=
16288 tmp_sharedflag='--shared' ;;
16289 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16290 tmp_sharedflag='-qmkshrobj'
16291 tmp_addflag= ;;
16292 nvcc*) # Cuda Compiler Driver 2.2
16293 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'
16294 compiler_needs_object=yes
16296 esac
16297 case `$CC -V 2>&1 | sed 5q` in
16298 *Sun\ C*) # Sun C 5.9
16299 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'
16300 compiler_needs_object=yes
16301 tmp_sharedflag='-G' ;;
16302 *Sun\ F*) # Sun Fortran 8.3
16303 tmp_sharedflag='-G' ;;
16304 esac
16305 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16307 if test "x$supports_anon_versioning" = xyes; then
16308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16310 echo "local: *; };" >> $output_objdir/$libname.ver~
16311 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16314 case $cc_basename in
16315 xlf* | bgf* | bgxlf* | mpixlf*)
16316 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16317 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16318 hardcode_libdir_flag_spec=
16319 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16320 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16321 if test "x$supports_anon_versioning" = xyes; then
16322 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16324 echo "local: *; };" >> $output_objdir/$libname.ver~
16325 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16328 esac
16329 else
16330 ld_shlibs=no
16334 netbsd*)
16335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16337 wlarc=
16338 else
16339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16344 solaris*)
16345 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16346 ld_shlibs=no
16347 cat <<_LT_EOF 1>&2
16349 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16350 *** create shared libraries on Solaris systems. Therefore, libtool
16351 *** is disabling shared libraries support. We urge you to upgrade GNU
16352 *** binutils to release 2.9.1 or newer. Another option is to modify
16353 *** your PATH or compiler configuration so that the native linker is
16354 *** used, and then restart.
16356 _LT_EOF
16357 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16360 else
16361 ld_shlibs=no
16365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16366 case `$LD -v 2>&1` in
16367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16368 ld_shlibs=no
16369 cat <<_LT_EOF 1>&2
16371 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16372 *** reliably create shared libraries on SCO systems. Therefore, libtool
16373 *** is disabling shared libraries support. We urge you to upgrade GNU
16374 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16375 *** your PATH or compiler configuration so that the native linker is
16376 *** used, and then restart.
16378 _LT_EOF
16381 # For security reasons, it is highly recommended that you always
16382 # use absolute paths for naming shared libraries, and exclude the
16383 # DT_RUNPATH tag from executables and libraries. But doing so
16384 # requires that you compile everything twice, which is a pain.
16385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16389 else
16390 ld_shlibs=no
16393 esac
16396 sunos4*)
16397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16398 wlarc=
16399 hardcode_direct=yes
16400 hardcode_shlibpath_var=no
16404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16407 else
16408 ld_shlibs=no
16411 esac
16413 if test "$ld_shlibs" = no; then
16414 runpath_var=
16415 hardcode_libdir_flag_spec=
16416 export_dynamic_flag_spec=
16417 whole_archive_flag_spec=
16419 else
16420 # PORTME fill in a description of your system's linker (not GNU ld)
16421 case $host_os in
16422 aix3*)
16423 allow_undefined_flag=unsupported
16424 always_export_symbols=yes
16425 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'
16426 # Note: this linker hardcodes the directories in LIBPATH if there
16427 # are no directories specified by -L.
16428 hardcode_minus_L=yes
16429 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16430 # Neither direct hardcoding nor static linking is supported with a
16431 # broken collect2.
16432 hardcode_direct=unsupported
16436 aix[4-9]*)
16437 if test "$host_cpu" = ia64; then
16438 # On IA64, the linker does run time linking by default, so we don't
16439 # have to do anything special.
16440 aix_use_runtimelinking=no
16441 exp_sym_flag='-Bexport'
16442 no_entry_flag=""
16443 else
16444 # If we're using GNU nm, then we don't want the "-C" option.
16445 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16446 # Also, AIX nm treats weak defined symbols like other global
16447 # defined symbols, whereas GNU nm marks them as "W".
16448 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16449 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'
16450 else
16451 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'
16453 aix_use_runtimelinking=no
16455 # Test if we are trying to use run time linking or normal
16456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16457 # need to do runtime linking.
16458 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16459 for ld_flag in $LDFLAGS; do
16460 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16461 aix_use_runtimelinking=yes
16462 break
16464 done
16466 esac
16468 exp_sym_flag='-bexport'
16469 no_entry_flag='-bnoentry'
16472 # When large executables or shared objects are built, AIX ld can
16473 # have problems creating the table of contents. If linking a library
16474 # or program results in "error TOC overflow" add -mminimal-toc to
16475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16478 archive_cmds=''
16479 hardcode_direct=yes
16480 hardcode_direct_absolute=yes
16481 hardcode_libdir_separator=':'
16482 link_all_deplibs=yes
16483 file_list_spec='${wl}-f,'
16485 if test "$GCC" = yes; then
16486 case $host_os in aix4.[012]|aix4.[012].*)
16487 # We only want to do this on AIX 4.2 and lower, the check
16488 # below for broken collect2 doesn't work under 4.3+
16489 collect2name=`${CC} -print-prog-name=collect2`
16490 if test -f "$collect2name" &&
16491 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16492 then
16493 # We have reworked collect2
16495 else
16496 # We have old collect2
16497 hardcode_direct=unsupported
16498 # It fails to find uninstalled libraries when the uninstalled
16499 # path is not listed in the libpath. Setting hardcode_minus_L
16500 # to unsupported forces relinking
16501 hardcode_minus_L=yes
16502 hardcode_libdir_flag_spec='-L$libdir'
16503 hardcode_libdir_separator=
16506 esac
16507 shared_flag='-shared'
16508 if test "$aix_use_runtimelinking" = yes; then
16509 shared_flag="$shared_flag "'${wl}-G'
16511 else
16512 # not using gcc
16513 if test "$host_cpu" = ia64; then
16514 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16515 # chokes on -Wl,-G. The following line is correct:
16516 shared_flag='-G'
16517 else
16518 if test "$aix_use_runtimelinking" = yes; then
16519 shared_flag='${wl}-G'
16520 else
16521 shared_flag='${wl}-bM:SRE'
16526 export_dynamic_flag_spec='${wl}-bexpall'
16527 # It seems that -bexpall does not export symbols beginning with
16528 # underscore (_), so it is better to generate a list of symbols to export.
16529 always_export_symbols=yes
16530 if test "$aix_use_runtimelinking" = yes; then
16531 # Warning - without using the other runtime loading flags (-brtl),
16532 # -berok will link without error, but may produce a broken library.
16533 allow_undefined_flag='-berok'
16534 # Determine the default libpath from the value encoded in an
16535 # empty executable.
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16540 main ()
16544 return 0;
16546 _ACEOF
16547 if ac_fn_c_try_link "$LINENO"; then :
16549 lt_aix_libpath_sed='
16550 /Import File Strings/,/^$/ {
16551 /^0/ {
16552 s/^0 *\(.*\)$/\1/
16556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16557 # Check for a 64-bit object if we didn't find anything.
16558 if test -z "$aix_libpath"; then
16559 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16562 rm -f core conftest.err conftest.$ac_objext \
16563 conftest$ac_exeext conftest.$ac_ext
16564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16567 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"
16568 else
16569 if test "$host_cpu" = ia64; then
16570 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16571 allow_undefined_flag="-z nodefs"
16572 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"
16573 else
16574 # Determine the default libpath from the value encoded in an
16575 # empty executable.
16576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577 /* end confdefs.h. */
16580 main ()
16584 return 0;
16586 _ACEOF
16587 if ac_fn_c_try_link "$LINENO"; then :
16589 lt_aix_libpath_sed='
16590 /Import File Strings/,/^$/ {
16591 /^0/ {
16592 s/^0 *\(.*\)$/\1/
16596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16597 # Check for a 64-bit object if we didn't find anything.
16598 if test -z "$aix_libpath"; then
16599 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16602 rm -f core conftest.err conftest.$ac_objext \
16603 conftest$ac_exeext conftest.$ac_ext
16604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16606 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16607 # Warning - without using the other run time loading flags,
16608 # -berok will link without error, but may produce a broken library.
16609 no_undefined_flag=' ${wl}-bernotok'
16610 allow_undefined_flag=' ${wl}-berok'
16611 if test "$with_gnu_ld" = yes; then
16612 # We only use this code for GNU lds that support --whole-archive.
16613 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16614 else
16615 # Exported symbols can be pulled into shared objects from archives
16616 whole_archive_flag_spec='$convenience'
16618 archive_cmds_need_lc=yes
16619 # This is similar to how AIX traditionally builds its shared libraries.
16620 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'
16625 amigaos*)
16626 case $host_cpu in
16627 powerpc)
16628 # see comment about AmigaOS4 .so support
16629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16630 archive_expsym_cmds=''
16632 m68k)
16633 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)'
16634 hardcode_libdir_flag_spec='-L$libdir'
16635 hardcode_minus_L=yes
16637 esac
16640 bsdi[45]*)
16641 export_dynamic_flag_spec=-rdynamic
16644 cygwin* | mingw* | pw32* | cegcc*)
16645 # When not using gcc, we currently assume that we are using
16646 # Microsoft Visual C++.
16647 # hardcode_libdir_flag_spec is actually meaningless, as there is
16648 # no search path for DLLs.
16649 hardcode_libdir_flag_spec=' '
16650 allow_undefined_flag=unsupported
16651 # Tell ltmain to make .lib files, not .a files.
16652 libext=lib
16653 # Tell ltmain to make .dll files, not .so files.
16654 shrext_cmds=".dll"
16655 # FIXME: Setting linknames here is a bad hack.
16656 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16657 # The linker will automatically build a .lib file if we build a DLL.
16658 old_archive_from_new_cmds='true'
16659 # FIXME: Should let the user specify the lib program.
16660 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16661 fix_srcfile_path='`cygpath -w "$srcfile"`'
16662 enable_shared_with_static_runtimes=yes
16665 darwin* | rhapsody*)
16668 archive_cmds_need_lc=no
16669 hardcode_direct=no
16670 hardcode_automatic=yes
16671 hardcode_shlibpath_var=unsupported
16672 if test "$lt_cv_ld_force_load" = "yes"; then
16673 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\"`'
16674 else
16675 whole_archive_flag_spec=''
16677 link_all_deplibs=yes
16678 allow_undefined_flag="$_lt_dar_allow_undefined"
16679 case $cc_basename in
16680 ifort*) _lt_dar_can_shared=yes ;;
16681 *) _lt_dar_can_shared=$GCC ;;
16682 esac
16683 if test "$_lt_dar_can_shared" = "yes"; then
16684 output_verbose_link_cmd=func_echo_all
16685 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16686 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16687 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}"
16688 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}"
16690 else
16691 ld_shlibs=no
16696 dgux*)
16697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698 hardcode_libdir_flag_spec='-L$libdir'
16699 hardcode_shlibpath_var=no
16702 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16703 # support. Future versions do this automatically, but an explicit c++rt0.o
16704 # does not break anything, and helps significantly (at the cost of a little
16705 # extra space).
16706 freebsd2.2*)
16707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16708 hardcode_libdir_flag_spec='-R$libdir'
16709 hardcode_direct=yes
16710 hardcode_shlibpath_var=no
16713 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16714 freebsd2.*)
16715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16716 hardcode_direct=yes
16717 hardcode_minus_L=yes
16718 hardcode_shlibpath_var=no
16721 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16722 freebsd* | dragonfly*)
16723 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16724 hardcode_libdir_flag_spec='-R$libdir'
16725 hardcode_direct=yes
16726 hardcode_shlibpath_var=no
16729 hpux9*)
16730 if test "$GCC" = yes; then
16731 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'
16732 else
16733 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'
16735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16736 hardcode_libdir_separator=:
16737 hardcode_direct=yes
16739 # hardcode_minus_L: Not really in the search PATH,
16740 # but as the default location of the library.
16741 hardcode_minus_L=yes
16742 export_dynamic_flag_spec='${wl}-E'
16745 hpux10*)
16746 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16747 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16748 else
16749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16751 if test "$with_gnu_ld" = no; then
16752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16753 hardcode_libdir_flag_spec_ld='+b $libdir'
16754 hardcode_libdir_separator=:
16755 hardcode_direct=yes
16756 hardcode_direct_absolute=yes
16757 export_dynamic_flag_spec='${wl}-E'
16758 # hardcode_minus_L: Not really in the search PATH,
16759 # but as the default location of the library.
16760 hardcode_minus_L=yes
16764 hpux11*)
16765 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16766 case $host_cpu in
16767 hppa*64*)
16768 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16770 ia64*)
16771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16776 esac
16777 else
16778 case $host_cpu in
16779 hppa*64*)
16780 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16782 ia64*)
16783 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16787 # Older versions of the 11.00 compiler do not understand -b yet
16788 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16790 $as_echo_n "checking if $CC understands -b... " >&6; }
16791 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16792 $as_echo_n "(cached) " >&6
16793 else
16794 lt_cv_prog_compiler__b=no
16795 save_LDFLAGS="$LDFLAGS"
16796 LDFLAGS="$LDFLAGS -b"
16797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16799 # The linker can only warn and ignore the option if not recognized
16800 # So say no if there are warnings
16801 if test -s conftest.err; then
16802 # Append any errors to the config.log.
16803 cat conftest.err 1>&5
16804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16806 if diff conftest.exp conftest.er2 >/dev/null; then
16807 lt_cv_prog_compiler__b=yes
16809 else
16810 lt_cv_prog_compiler__b=yes
16813 $RM -r conftest*
16814 LDFLAGS="$save_LDFLAGS"
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16818 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16820 if test x"$lt_cv_prog_compiler__b" = xyes; then
16821 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16822 else
16823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16827 esac
16829 if test "$with_gnu_ld" = no; then
16830 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16831 hardcode_libdir_separator=:
16833 case $host_cpu in
16834 hppa*64*|ia64*)
16835 hardcode_direct=no
16836 hardcode_shlibpath_var=no
16839 hardcode_direct=yes
16840 hardcode_direct_absolute=yes
16841 export_dynamic_flag_spec='${wl}-E'
16843 # hardcode_minus_L: Not really in the search PATH,
16844 # but as the default location of the library.
16845 hardcode_minus_L=yes
16847 esac
16851 irix5* | irix6* | nonstopux*)
16852 if test "$GCC" = yes; then
16853 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'
16854 # Try to use the -exported_symbol ld option, if it does not
16855 # work, assume that -exports_file does not work either and
16856 # implicitly export all symbols.
16857 save_LDFLAGS="$LDFLAGS"
16858 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16861 int foo(void) {}
16862 _ACEOF
16863 if ac_fn_c_try_link "$LINENO"; then :
16864 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'
16867 rm -f core conftest.err conftest.$ac_objext \
16868 conftest$ac_exeext conftest.$ac_ext
16869 LDFLAGS="$save_LDFLAGS"
16870 else
16871 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'
16872 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'
16874 archive_cmds_need_lc='no'
16875 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16876 hardcode_libdir_separator=:
16877 inherit_rpath=yes
16878 link_all_deplibs=yes
16881 netbsd*)
16882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16884 else
16885 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16887 hardcode_libdir_flag_spec='-R$libdir'
16888 hardcode_direct=yes
16889 hardcode_shlibpath_var=no
16892 newsos6)
16893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_direct=yes
16895 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16896 hardcode_libdir_separator=:
16897 hardcode_shlibpath_var=no
16900 *nto* | *qnx*)
16903 openbsd*)
16904 if test -f /usr/libexec/ld.so; then
16905 hardcode_direct=yes
16906 hardcode_shlibpath_var=no
16907 hardcode_direct_absolute=yes
16908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16910 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16912 export_dynamic_flag_spec='${wl}-E'
16913 else
16914 case $host_os in
16915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16917 hardcode_libdir_flag_spec='-R$libdir'
16920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16923 esac
16925 else
16926 ld_shlibs=no
16930 os2*)
16931 hardcode_libdir_flag_spec='-L$libdir'
16932 hardcode_minus_L=yes
16933 allow_undefined_flag=unsupported
16934 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'
16935 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16938 osf3*)
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}-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 else
16943 allow_undefined_flag=' -expect_unresolved \*'
16944 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'
16946 archive_cmds_need_lc='no'
16947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16948 hardcode_libdir_separator=:
16951 osf4* | osf5*) # as osf3* with the addition of -msym flag
16952 if test "$GCC" = yes; then
16953 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16954 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'
16955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16956 else
16957 allow_undefined_flag=' -expect_unresolved \*'
16958 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'
16959 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~
16960 $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'
16962 # Both c and cxx compiler support -rpath directly
16963 hardcode_libdir_flag_spec='-rpath $libdir'
16965 archive_cmds_need_lc='no'
16966 hardcode_libdir_separator=:
16969 solaris*)
16970 no_undefined_flag=' -z defs'
16971 if test "$GCC" = yes; then
16972 wlarc='${wl}'
16973 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16976 else
16977 case `$CC -V 2>&1` in
16978 *"Compilers 5.0"*)
16979 wlarc=''
16980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16981 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16985 wlarc='${wl}'
16986 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16987 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16990 esac
16992 hardcode_libdir_flag_spec='-R$libdir'
16993 hardcode_shlibpath_var=no
16994 case $host_os in
16995 solaris2.[0-5] | solaris2.[0-5].*) ;;
16997 # The compiler driver will combine and reorder linker options,
16998 # but understands `-z linker_flag'. GCC discards it without `$wl',
16999 # but is careful enough not to reorder.
17000 # Supported since Solaris 2.6 (maybe 2.5.1?)
17001 if test "$GCC" = yes; then
17002 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17003 else
17004 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17007 esac
17008 link_all_deplibs=yes
17011 sunos4*)
17012 if test "x$host_vendor" = xsequent; then
17013 # Use $CC to link under sequent, because it throws in some extra .o
17014 # files that make .init and .fini sections work.
17015 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17016 else
17017 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17019 hardcode_libdir_flag_spec='-L$libdir'
17020 hardcode_direct=yes
17021 hardcode_minus_L=yes
17022 hardcode_shlibpath_var=no
17025 sysv4)
17026 case $host_vendor in
17027 sni)
17028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17029 hardcode_direct=yes # is this really true???
17031 siemens)
17032 ## LD is ld it makes a PLAMLIB
17033 ## CC just makes a GrossModule.
17034 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17035 reload_cmds='$CC -r -o $output$reload_objs'
17036 hardcode_direct=no
17038 motorola)
17039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17042 esac
17043 runpath_var='LD_RUN_PATH'
17044 hardcode_shlibpath_var=no
17047 sysv4.3*)
17048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17049 hardcode_shlibpath_var=no
17050 export_dynamic_flag_spec='-Bexport'
17053 sysv4*MP*)
17054 if test -d /usr/nec; then
17055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17056 hardcode_shlibpath_var=no
17057 runpath_var=LD_RUN_PATH
17058 hardcode_runpath_var=yes
17059 ld_shlibs=yes
17063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17064 no_undefined_flag='${wl}-z,text'
17065 archive_cmds_need_lc=no
17066 hardcode_shlibpath_var=no
17067 runpath_var='LD_RUN_PATH'
17069 if test "$GCC" = yes; then
17070 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17072 else
17073 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17078 sysv5* | sco3.2v5* | sco5v6*)
17079 # Note: We can NOT use -z defs as we might desire, because we do not
17080 # link with -lc, and that would cause any symbols used from libc to
17081 # always be unresolved, which means just about no library would
17082 # ever link correctly. If we're not using GNU ld we use -z text
17083 # though, which does catch some bad symbols but isn't as heavy-handed
17084 # as -z defs.
17085 no_undefined_flag='${wl}-z,text'
17086 allow_undefined_flag='${wl}-z,nodefs'
17087 archive_cmds_need_lc=no
17088 hardcode_shlibpath_var=no
17089 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17090 hardcode_libdir_separator=':'
17091 link_all_deplibs=yes
17092 export_dynamic_flag_spec='${wl}-Bexport'
17093 runpath_var='LD_RUN_PATH'
17095 if test "$GCC" = yes; then
17096 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17098 else
17099 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17104 uts4*)
17105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106 hardcode_libdir_flag_spec='-L$libdir'
17107 hardcode_shlibpath_var=no
17111 ld_shlibs=no
17113 esac
17115 if test x$host_vendor = xsni; then
17116 case $host in
17117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17118 export_dynamic_flag_spec='${wl}-Blargedynsym'
17120 esac
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17125 $as_echo "$ld_shlibs" >&6; }
17126 test "$ld_shlibs" = no && can_build_shared=no
17128 with_gnu_ld=$with_gnu_ld
17145 # Do we need to explicitly link libc?
17147 case "x$archive_cmds_need_lc" in
17148 x|xyes)
17149 # Assume -lc should be added
17150 archive_cmds_need_lc=yes
17152 if test "$enable_shared" = yes && test "$GCC" = yes; then
17153 case $archive_cmds in
17154 *'~'*)
17155 # FIXME: we may have to deal with multi-command sequences.
17157 '$CC '*)
17158 # Test whether the compiler implicitly links with -lc since on some
17159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17160 # to ld, don't add -lc before -lgcc.
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17162 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17163 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17164 $as_echo_n "(cached) " >&6
17165 else
17166 $RM conftest*
17167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17170 (eval $ac_compile) 2>&5
17171 ac_status=$?
17172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173 test $ac_status = 0; } 2>conftest.err; then
17174 soname=conftest
17175 lib=conftest
17176 libobjs=conftest.$ac_objext
17177 deplibs=
17178 wl=$lt_prog_compiler_wl
17179 pic_flag=$lt_prog_compiler_pic
17180 compiler_flags=-v
17181 linker_flags=-v
17182 verstring=
17183 output_objdir=.
17184 libname=conftest
17185 lt_save_allow_undefined_flag=$allow_undefined_flag
17186 allow_undefined_flag=
17187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17188 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17189 ac_status=$?
17190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17191 test $ac_status = 0; }
17192 then
17193 lt_cv_archive_cmds_need_lc=no
17194 else
17195 lt_cv_archive_cmds_need_lc=yes
17197 allow_undefined_flag=$lt_save_allow_undefined_flag
17198 else
17199 cat conftest.err 1>&5
17201 $RM conftest*
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17205 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17206 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17208 esac
17211 esac
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17370 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17372 if test "$GCC" = yes; then
17373 case $host_os in
17374 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17375 *) lt_awk_arg="/^libraries:/" ;;
17376 esac
17377 case $host_os in
17378 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17379 *) lt_sed_strip_eq="s,=/,/,g" ;;
17380 esac
17381 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17382 case $lt_search_path_spec in
17383 *\;*)
17384 # if the path contains ";" then we assume it to be the separator
17385 # otherwise default to the standard path separator (i.e. ":") - it is
17386 # assumed that no part of a normal pathname contains ";" but that should
17387 # okay in the real world where ";" in dirpaths is itself problematic.
17388 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17393 esac
17394 # Ok, now we have the path, separated by spaces, we can step through it
17395 # and add multilib dir if necessary.
17396 lt_tmp_lt_search_path_spec=
17397 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17398 for lt_sys_path in $lt_search_path_spec; do
17399 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17400 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17401 else
17402 test -d "$lt_sys_path" && \
17403 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17405 done
17406 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17407 BEGIN {RS=" "; FS="/|\n";} {
17408 lt_foo="";
17409 lt_count=0;
17410 for (lt_i = NF; lt_i > 0; lt_i--) {
17411 if ($lt_i != "" && $lt_i != ".") {
17412 if ($lt_i == "..") {
17413 lt_count++;
17414 } else {
17415 if (lt_count == 0) {
17416 lt_foo="/" $lt_i lt_foo;
17417 } else {
17418 lt_count--;
17423 if (lt_foo != "") { lt_freq[lt_foo]++; }
17424 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17426 # AWK program above erroneously prepends '/' to C:/dos/paths
17427 # for these hosts.
17428 case $host_os in
17429 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17430 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17431 esac
17432 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17433 else
17434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17436 library_names_spec=
17437 libname_spec='lib$name'
17438 soname_spec=
17439 shrext_cmds=".so"
17440 postinstall_cmds=
17441 postuninstall_cmds=
17442 finish_cmds=
17443 finish_eval=
17444 shlibpath_var=
17445 shlibpath_overrides_runpath=unknown
17446 version_type=none
17447 dynamic_linker="$host_os ld.so"
17448 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17449 need_lib_prefix=unknown
17450 hardcode_into_libs=no
17452 # when you set need_version to no, make sure it does not cause -set_version
17453 # flags to be left without arguments
17454 need_version=unknown
17456 case $host_os in
17457 aix3*)
17458 version_type=linux
17459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17460 shlibpath_var=LIBPATH
17462 # AIX 3 has no versioning support, so we append a major version to the name.
17463 soname_spec='${libname}${release}${shared_ext}$major'
17466 aix[4-9]*)
17467 version_type=linux
17468 need_lib_prefix=no
17469 need_version=no
17470 hardcode_into_libs=yes
17471 if test "$host_cpu" = ia64; then
17472 # AIX 5 supports IA64
17473 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17474 shlibpath_var=LD_LIBRARY_PATH
17475 else
17476 # With GCC up to 2.95.x, collect2 would create an import file
17477 # for dependence libraries. The import file would start with
17478 # the line `#! .'. This would cause the generated library to
17479 # depend on `.', always an invalid library. This was fixed in
17480 # development snapshots of GCC prior to 3.0.
17481 case $host_os in
17482 aix4 | aix4.[01] | aix4.[01].*)
17483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17484 echo ' yes '
17485 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17487 else
17488 can_build_shared=no
17491 esac
17492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17493 # soname into executable. Probably we can add versioning support to
17494 # collect2, so additional links can be useful in future.
17495 if test "$aix_use_runtimelinking" = yes; then
17496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17497 # instead of lib<name>.a to let people know that these are not
17498 # typical AIX shared libraries.
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17500 else
17501 # We preserve .a as extension for shared libraries through AIX4.2
17502 # and later when we are not doing run time linking.
17503 library_names_spec='${libname}${release}.a $libname.a'
17504 soname_spec='${libname}${release}${shared_ext}$major'
17506 shlibpath_var=LIBPATH
17510 amigaos*)
17511 case $host_cpu in
17512 powerpc)
17513 # Since July 2007 AmigaOS4 officially supports .so libraries.
17514 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517 m68k)
17518 library_names_spec='$libname.ixlibrary $libname.a'
17519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17520 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'
17522 esac
17525 beos*)
17526 library_names_spec='${libname}${shared_ext}'
17527 dynamic_linker="$host_os ld.so"
17528 shlibpath_var=LIBRARY_PATH
17531 bsdi[45]*)
17532 version_type=linux
17533 need_version=no
17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17537 shlibpath_var=LD_LIBRARY_PATH
17538 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17539 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17540 # the default ld.so.conf also contains /usr/contrib/lib and
17541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17542 # libtool to hard-code these into programs
17545 cygwin* | mingw* | pw32* | cegcc*)
17546 version_type=windows
17547 shrext_cmds=".dll"
17548 need_version=no
17549 need_lib_prefix=no
17551 case $GCC,$host_os in
17552 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17553 library_names_spec='$libname.dll.a'
17554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17555 postinstall_cmds='base_file=`basename \${file}`~
17556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17557 dldir=$destdir/`dirname \$dlpath`~
17558 test -d \$dldir || mkdir -p \$dldir~
17559 $install_prog $dir/$dlname \$dldir/$dlname~
17560 chmod a+x \$dldir/$dlname~
17561 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17562 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17565 dlpath=$dir/\$dldll~
17566 $RM \$dlpath'
17567 shlibpath_overrides_runpath=yes
17569 case $host_os in
17570 cygwin*)
17571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17572 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17574 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17576 mingw* | cegcc*)
17577 # MinGW DLLs use traditional 'lib' prefix
17578 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17580 pw32*)
17581 # pw32 DLLs use 'pw' prefix rather than 'lib'
17582 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17584 esac
17588 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17590 esac
17591 dynamic_linker='Win32 ld.exe'
17592 # FIXME: first we should search . and the directory the executable is in
17593 shlibpath_var=PATH
17596 darwin* | rhapsody*)
17597 dynamic_linker="$host_os dyld"
17598 version_type=darwin
17599 need_lib_prefix=no
17600 need_version=no
17601 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17602 soname_spec='${libname}${release}${major}$shared_ext'
17603 shlibpath_overrides_runpath=yes
17604 shlibpath_var=DYLD_LIBRARY_PATH
17605 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17607 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17608 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17611 dgux*)
17612 version_type=linux
17613 need_lib_prefix=no
17614 need_version=no
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 shlibpath_var=LD_LIBRARY_PATH
17620 freebsd* | dragonfly*)
17621 # DragonFly does not have aout. When/if they implement a new
17622 # versioning mechanism, adjust this.
17623 if test -x /usr/bin/objformat; then
17624 objformat=`/usr/bin/objformat`
17625 else
17626 case $host_os in
17627 freebsd[23].*) objformat=aout ;;
17628 *) objformat=elf ;;
17629 esac
17631 version_type=freebsd-$objformat
17632 case $version_type in
17633 freebsd-elf*)
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17635 need_version=no
17636 need_lib_prefix=no
17638 freebsd-*)
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17640 need_version=yes
17642 esac
17643 shlibpath_var=LD_LIBRARY_PATH
17644 case $host_os in
17645 freebsd2.*)
17646 shlibpath_overrides_runpath=yes
17648 freebsd3.[01]* | freebsdelf3.[01]*)
17649 shlibpath_overrides_runpath=yes
17650 hardcode_into_libs=yes
17652 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17653 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17654 shlibpath_overrides_runpath=no
17655 hardcode_into_libs=yes
17657 *) # from 4.6 on, and DragonFly
17658 shlibpath_overrides_runpath=yes
17659 hardcode_into_libs=yes
17661 esac
17664 gnu*)
17665 version_type=linux
17666 need_lib_prefix=no
17667 need_version=no
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17669 soname_spec='${libname}${release}${shared_ext}$major'
17670 shlibpath_var=LD_LIBRARY_PATH
17671 hardcode_into_libs=yes
17674 haiku*)
17675 version_type=linux
17676 need_lib_prefix=no
17677 need_version=no
17678 dynamic_linker="$host_os runtime_loader"
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 shlibpath_var=LIBRARY_PATH
17682 shlibpath_overrides_runpath=yes
17683 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17684 hardcode_into_libs=yes
17687 hpux9* | hpux10* | hpux11*)
17688 # Give a soname corresponding to the major version so that dld.sl refuses to
17689 # link against other versions.
17690 version_type=sunos
17691 need_lib_prefix=no
17692 need_version=no
17693 case $host_cpu in
17694 ia64*)
17695 shrext_cmds='.so'
17696 hardcode_into_libs=yes
17697 dynamic_linker="$host_os dld.so"
17698 shlibpath_var=LD_LIBRARY_PATH
17699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 if test "X$HPUX_IA64_MODE" = X32; then
17703 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17704 else
17705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17709 hppa*64*)
17710 shrext_cmds='.sl'
17711 hardcode_into_libs=yes
17712 dynamic_linker="$host_os dld.sl"
17713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17716 soname_spec='${libname}${release}${shared_ext}$major'
17717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17721 shrext_cmds='.sl'
17722 dynamic_linker="$host_os dld.sl"
17723 shlibpath_var=SHLIB_PATH
17724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17726 soname_spec='${libname}${release}${shared_ext}$major'
17728 esac
17729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17730 postinstall_cmds='chmod 555 $lib'
17731 # or fails outright, so override atomically:
17732 install_override_mode=555
17735 interix[3-9]*)
17736 version_type=linux
17737 need_lib_prefix=no
17738 need_version=no
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17740 soname_spec='${libname}${release}${shared_ext}$major'
17741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath=no
17744 hardcode_into_libs=yes
17747 irix5* | irix6* | nonstopux*)
17748 case $host_os in
17749 nonstopux*) version_type=nonstopux ;;
17751 if test "$lt_cv_prog_gnu_ld" = yes; then
17752 version_type=linux
17753 else
17754 version_type=irix
17755 fi ;;
17756 esac
17757 need_lib_prefix=no
17758 need_version=no
17759 soname_spec='${libname}${release}${shared_ext}$major'
17760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17761 case $host_os in
17762 irix5* | nonstopux*)
17763 libsuff= shlibsuff=
17766 case $LD in # libtool.m4 will add one of these switches to LD
17767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17768 libsuff= shlibsuff= libmagic=32-bit;;
17769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17770 libsuff=32 shlibsuff=N32 libmagic=N32;;
17771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17773 *) libsuff= shlibsuff= libmagic=never-match;;
17774 esac
17776 esac
17777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17778 shlibpath_overrides_runpath=no
17779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17781 hardcode_into_libs=yes
17784 # No shared lib support for Linux oldld, aout, or coff.
17785 linux*oldld* | linux*aout* | linux*coff*)
17786 dynamic_linker=no
17789 # This must be Linux ELF.
17790 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17791 version_type=linux
17792 need_lib_prefix=no
17793 need_version=no
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795 soname_spec='${libname}${release}${shared_ext}$major'
17796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17797 shlibpath_var=LD_LIBRARY_PATH
17798 shlibpath_overrides_runpath=no
17800 # Some binutils ld are patched to set DT_RUNPATH
17801 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 lt_cv_shlibpath_overrides_runpath=no
17805 save_LDFLAGS=$LDFLAGS
17806 save_libdir=$libdir
17807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17813 main ()
17817 return 0;
17819 _ACEOF
17820 if ac_fn_c_try_link "$LINENO"; then :
17821 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17822 lt_cv_shlibpath_overrides_runpath=yes
17825 rm -f core conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
17827 LDFLAGS=$save_LDFLAGS
17828 libdir=$save_libdir
17832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17834 # This implies no fast_install, which is unacceptable.
17835 # Some rework will be needed to allow for fast_install
17836 # before this can be enabled.
17837 hardcode_into_libs=yes
17839 # Append ld.so.conf contents to the search path
17840 if test -f /etc/ld.so.conf; then
17841 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' ' '`
17842 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17845 # We used to test for /lib/ld.so.1 and disable shared libraries on
17846 # powerpc, because MkLinux only supported shared libraries with the
17847 # GNU dynamic linker. Since this was broken with cross compilers,
17848 # most powerpc-linux boxes support dynamic linking these days and
17849 # people can always --disable-shared, the test was removed, and we
17850 # assume the GNU/Linux dynamic linker is in use.
17851 dynamic_linker='GNU/Linux ld.so'
17854 netbsd*)
17855 version_type=sunos
17856 need_lib_prefix=no
17857 need_version=no
17858 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17861 dynamic_linker='NetBSD (a.out) ld.so'
17862 else
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 dynamic_linker='NetBSD ld.elf_so'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes
17869 hardcode_into_libs=yes
17872 newsos6)
17873 version_type=linux
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 shlibpath_overrides_runpath=yes
17879 *nto* | *qnx*)
17880 version_type=qnx
17881 need_lib_prefix=no
17882 need_version=no
17883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884 soname_spec='${libname}${release}${shared_ext}$major'
17885 shlibpath_var=LD_LIBRARY_PATH
17886 shlibpath_overrides_runpath=no
17887 hardcode_into_libs=yes
17888 dynamic_linker='ldqnx.so'
17891 openbsd*)
17892 version_type=sunos
17893 sys_lib_dlsearch_path_spec="/usr/lib"
17894 need_lib_prefix=no
17895 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17896 case $host_os in
17897 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17898 *) need_version=no ;;
17899 esac
17900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17901 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17902 shlibpath_var=LD_LIBRARY_PATH
17903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17904 case $host_os in
17905 openbsd2.[89] | openbsd2.[89].*)
17906 shlibpath_overrides_runpath=no
17909 shlibpath_overrides_runpath=yes
17911 esac
17912 else
17913 shlibpath_overrides_runpath=yes
17917 os2*)
17918 libname_spec='$name'
17919 shrext_cmds=".dll"
17920 need_lib_prefix=no
17921 library_names_spec='$libname${shared_ext} $libname.a'
17922 dynamic_linker='OS/2 ld.exe'
17923 shlibpath_var=LIBPATH
17926 osf3* | osf4* | osf5*)
17927 version_type=osf
17928 need_lib_prefix=no
17929 need_version=no
17930 soname_spec='${libname}${release}${shared_ext}$major'
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17932 shlibpath_var=LD_LIBRARY_PATH
17933 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17934 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17937 rdos*)
17938 dynamic_linker=no
17941 solaris*)
17942 version_type=linux
17943 need_lib_prefix=no
17944 need_version=no
17945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17946 soname_spec='${libname}${release}${shared_ext}$major'
17947 shlibpath_var=LD_LIBRARY_PATH
17948 shlibpath_overrides_runpath=yes
17949 hardcode_into_libs=yes
17950 # ldd complains unless libraries are executable
17951 postinstall_cmds='chmod +x $lib'
17954 sunos4*)
17955 version_type=sunos
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17957 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath=yes
17960 if test "$with_gnu_ld" = yes; then
17961 need_lib_prefix=no
17963 need_version=yes
17966 sysv4 | sysv4.3*)
17967 version_type=linux
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969 soname_spec='${libname}${release}${shared_ext}$major'
17970 shlibpath_var=LD_LIBRARY_PATH
17971 case $host_vendor in
17972 sni)
17973 shlibpath_overrides_runpath=no
17974 need_lib_prefix=no
17975 runpath_var=LD_RUN_PATH
17977 siemens)
17978 need_lib_prefix=no
17980 motorola)
17981 need_lib_prefix=no
17982 need_version=no
17983 shlibpath_overrides_runpath=no
17984 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17986 esac
17989 sysv4*MP*)
17990 if test -d /usr/nec ;then
17991 version_type=linux
17992 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17993 soname_spec='$libname${shared_ext}.$major'
17994 shlibpath_var=LD_LIBRARY_PATH
17998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17999 version_type=freebsd-elf
18000 need_lib_prefix=no
18001 need_version=no
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 shlibpath_var=LD_LIBRARY_PATH
18005 shlibpath_overrides_runpath=yes
18006 hardcode_into_libs=yes
18007 if test "$with_gnu_ld" = yes; then
18008 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18009 else
18010 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18011 case $host_os in
18012 sco3.2v5*)
18013 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18015 esac
18017 sys_lib_dlsearch_path_spec='/usr/lib'
18020 tpf*)
18021 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18022 version_type=linux
18023 need_lib_prefix=no
18024 need_version=no
18025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18026 shlibpath_var=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath=no
18028 hardcode_into_libs=yes
18031 uts4*)
18032 version_type=linux
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 shlibpath_var=LD_LIBRARY_PATH
18039 dynamic_linker=no
18041 esac
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18043 $as_echo "$dynamic_linker" >&6; }
18044 test "$dynamic_linker" = no && can_build_shared=no
18046 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18047 if test "$GCC" = yes; then
18048 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18051 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18052 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18054 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18055 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18150 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18151 hardcode_action=
18152 if test -n "$hardcode_libdir_flag_spec" ||
18153 test -n "$runpath_var" ||
18154 test "X$hardcode_automatic" = "Xyes" ; then
18156 # We can hardcode non-existent directories.
18157 if test "$hardcode_direct" != no &&
18158 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18159 # have to relink, otherwise we might link with an installed library
18160 # when we should be linking with a yet-to-be-installed one
18161 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18162 test "$hardcode_minus_L" != no; then
18163 # Linking always hardcodes the temporary library directory.
18164 hardcode_action=relink
18165 else
18166 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18167 hardcode_action=immediate
18169 else
18170 # We cannot hardcode anything, or else we can only hardcode existing
18171 # directories.
18172 hardcode_action=unsupported
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18175 $as_echo "$hardcode_action" >&6; }
18177 if test "$hardcode_action" = relink ||
18178 test "$inherit_rpath" = yes; then
18179 # Fast installation is not supported
18180 enable_fast_install=no
18181 elif test "$shlibpath_overrides_runpath" = yes ||
18182 test "$enable_shared" = no; then
18183 # Fast installation is not necessary
18184 enable_fast_install=needless
18192 if test "x$enable_dlopen" != xyes; then
18193 enable_dlopen=unknown
18194 enable_dlopen_self=unknown
18195 enable_dlopen_self_static=unknown
18196 else
18197 lt_cv_dlopen=no
18198 lt_cv_dlopen_libs=
18200 case $host_os in
18201 beos*)
18202 lt_cv_dlopen="load_add_on"
18203 lt_cv_dlopen_libs=
18204 lt_cv_dlopen_self=yes
18207 mingw* | pw32* | cegcc*)
18208 lt_cv_dlopen="LoadLibrary"
18209 lt_cv_dlopen_libs=
18212 cygwin*)
18213 lt_cv_dlopen="dlopen"
18214 lt_cv_dlopen_libs=
18217 darwin*)
18218 # if libdl is installed we need to link against it
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18220 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18221 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18223 else
18224 ac_check_lib_save_LIBS=$LIBS
18225 LIBS="-ldl $LIBS"
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18232 #ifdef __cplusplus
18233 extern "C"
18234 #endif
18235 char dlopen ();
18237 main ()
18239 return dlopen ();
18241 return 0;
18243 _ACEOF
18244 if ac_fn_c_try_link "$LINENO"; then :
18245 ac_cv_lib_dl_dlopen=yes
18246 else
18247 ac_cv_lib_dl_dlopen=no
18249 rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 LIBS=$ac_check_lib_save_LIBS
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18254 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18255 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18257 else
18259 lt_cv_dlopen="dyld"
18260 lt_cv_dlopen_libs=
18261 lt_cv_dlopen_self=yes
18268 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18269 if test "x$ac_cv_func_shl_load" = x""yes; then :
18270 lt_cv_dlopen="shl_load"
18271 else
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18273 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18274 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-ldld $LIBS"
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 char shl_load ();
18290 main ()
18292 return shl_load ();
18294 return 0;
18296 _ACEOF
18297 if ac_fn_c_try_link "$LINENO"; then :
18298 ac_cv_lib_dld_shl_load=yes
18299 else
18300 ac_cv_lib_dld_shl_load=no
18302 rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18304 LIBS=$ac_check_lib_save_LIBS
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18307 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18308 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18309 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18310 else
18311 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18312 if test "x$ac_cv_func_dlopen" = x""yes; then :
18313 lt_cv_dlopen="dlopen"
18314 else
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18316 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18317 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18318 $as_echo_n "(cached) " >&6
18319 else
18320 ac_check_lib_save_LIBS=$LIBS
18321 LIBS="-ldl $LIBS"
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18328 #ifdef __cplusplus
18329 extern "C"
18330 #endif
18331 char dlopen ();
18333 main ()
18335 return dlopen ();
18337 return 0;
18339 _ACEOF
18340 if ac_fn_c_try_link "$LINENO"; then :
18341 ac_cv_lib_dl_dlopen=yes
18342 else
18343 ac_cv_lib_dl_dlopen=no
18345 rm -f core conftest.err conftest.$ac_objext \
18346 conftest$ac_exeext conftest.$ac_ext
18347 LIBS=$ac_check_lib_save_LIBS
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18350 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18351 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18352 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18353 else
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18355 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18356 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18357 $as_echo_n "(cached) " >&6
18358 else
18359 ac_check_lib_save_LIBS=$LIBS
18360 LIBS="-lsvld $LIBS"
18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18364 /* Override any GCC internal prototype to avoid an error.
18365 Use char because int might match the return type of a GCC
18366 builtin and then its argument prototype would still apply. */
18367 #ifdef __cplusplus
18368 extern "C"
18369 #endif
18370 char dlopen ();
18372 main ()
18374 return dlopen ();
18376 return 0;
18378 _ACEOF
18379 if ac_fn_c_try_link "$LINENO"; then :
18380 ac_cv_lib_svld_dlopen=yes
18381 else
18382 ac_cv_lib_svld_dlopen=no
18384 rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18389 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18390 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18392 else
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18394 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18395 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18396 $as_echo_n "(cached) " >&6
18397 else
18398 ac_check_lib_save_LIBS=$LIBS
18399 LIBS="-ldld $LIBS"
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18403 /* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18406 #ifdef __cplusplus
18407 extern "C"
18408 #endif
18409 char dld_link ();
18411 main ()
18413 return dld_link ();
18415 return 0;
18417 _ACEOF
18418 if ac_fn_c_try_link "$LINENO"; then :
18419 ac_cv_lib_dld_dld_link=yes
18420 else
18421 ac_cv_lib_dld_dld_link=no
18423 rm -f core conftest.err conftest.$ac_objext \
18424 conftest$ac_exeext conftest.$ac_ext
18425 LIBS=$ac_check_lib_save_LIBS
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18428 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18429 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18430 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18449 esac
18451 if test "x$lt_cv_dlopen" != xno; then
18452 enable_dlopen=yes
18453 else
18454 enable_dlopen=no
18457 case $lt_cv_dlopen in
18458 dlopen)
18459 save_CPPFLAGS="$CPPFLAGS"
18460 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18462 save_LDFLAGS="$LDFLAGS"
18463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18465 save_LIBS="$LIBS"
18466 LIBS="$lt_cv_dlopen_libs $LIBS"
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18469 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18470 if test "${lt_cv_dlopen_self+set}" = set; then :
18471 $as_echo_n "(cached) " >&6
18472 else
18473 if test "$cross_compiling" = yes; then :
18474 lt_cv_dlopen_self=cross
18475 else
18476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18477 lt_status=$lt_dlunknown
18478 cat > conftest.$ac_ext <<_LT_EOF
18479 #line 18479 "configure"
18480 #include "confdefs.h"
18482 #if HAVE_DLFCN_H
18483 #include <dlfcn.h>
18484 #endif
18486 #include <stdio.h>
18488 #ifdef RTLD_GLOBAL
18489 # define LT_DLGLOBAL RTLD_GLOBAL
18490 #else
18491 # ifdef DL_GLOBAL
18492 # define LT_DLGLOBAL DL_GLOBAL
18493 # else
18494 # define LT_DLGLOBAL 0
18495 # endif
18496 #endif
18498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18499 find out it does not work in some platform. */
18500 #ifndef LT_DLLAZY_OR_NOW
18501 # ifdef RTLD_LAZY
18502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18503 # else
18504 # ifdef DL_LAZY
18505 # define LT_DLLAZY_OR_NOW DL_LAZY
18506 # else
18507 # ifdef RTLD_NOW
18508 # define LT_DLLAZY_OR_NOW RTLD_NOW
18509 # else
18510 # ifdef DL_NOW
18511 # define LT_DLLAZY_OR_NOW DL_NOW
18512 # else
18513 # define LT_DLLAZY_OR_NOW 0
18514 # endif
18515 # endif
18516 # endif
18517 # endif
18518 #endif
18520 /* When -fvisbility=hidden is used, assume the code has been annotated
18521 correspondingly for the symbols needed. */
18522 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18523 void fnord () __attribute__((visibility("default")));
18524 #endif
18526 void fnord () { int i=42; }
18527 int main ()
18529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18530 int status = $lt_dlunknown;
18532 if (self)
18534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18535 else
18537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18538 else puts (dlerror ());
18540 /* dlclose (self); */
18542 else
18543 puts (dlerror ());
18545 return status;
18547 _LT_EOF
18548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18549 (eval $ac_link) 2>&5
18550 ac_status=$?
18551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18552 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18553 (./conftest; exit; ) >&5 2>/dev/null
18554 lt_status=$?
18555 case x$lt_status in
18556 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18557 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18558 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18559 esac
18560 else :
18561 # compilation failed
18562 lt_cv_dlopen_self=no
18565 rm -fr conftest*
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18570 $as_echo "$lt_cv_dlopen_self" >&6; }
18572 if test "x$lt_cv_dlopen_self" = xyes; then
18573 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18575 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18576 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18577 $as_echo_n "(cached) " >&6
18578 else
18579 if test "$cross_compiling" = yes; then :
18580 lt_cv_dlopen_self_static=cross
18581 else
18582 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18583 lt_status=$lt_dlunknown
18584 cat > conftest.$ac_ext <<_LT_EOF
18585 #line 18585 "configure"
18586 #include "confdefs.h"
18588 #if HAVE_DLFCN_H
18589 #include <dlfcn.h>
18590 #endif
18592 #include <stdio.h>
18594 #ifdef RTLD_GLOBAL
18595 # define LT_DLGLOBAL RTLD_GLOBAL
18596 #else
18597 # ifdef DL_GLOBAL
18598 # define LT_DLGLOBAL DL_GLOBAL
18599 # else
18600 # define LT_DLGLOBAL 0
18601 # endif
18602 #endif
18604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18605 find out it does not work in some platform. */
18606 #ifndef LT_DLLAZY_OR_NOW
18607 # ifdef RTLD_LAZY
18608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18609 # else
18610 # ifdef DL_LAZY
18611 # define LT_DLLAZY_OR_NOW DL_LAZY
18612 # else
18613 # ifdef RTLD_NOW
18614 # define LT_DLLAZY_OR_NOW RTLD_NOW
18615 # else
18616 # ifdef DL_NOW
18617 # define LT_DLLAZY_OR_NOW DL_NOW
18618 # else
18619 # define LT_DLLAZY_OR_NOW 0
18620 # endif
18621 # endif
18622 # endif
18623 # endif
18624 #endif
18626 /* When -fvisbility=hidden is used, assume the code has been annotated
18627 correspondingly for the symbols needed. */
18628 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18629 void fnord () __attribute__((visibility("default")));
18630 #endif
18632 void fnord () { int i=42; }
18633 int main ()
18635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18636 int status = $lt_dlunknown;
18638 if (self)
18640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18641 else
18643 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18644 else puts (dlerror ());
18646 /* dlclose (self); */
18648 else
18649 puts (dlerror ());
18651 return status;
18653 _LT_EOF
18654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18655 (eval $ac_link) 2>&5
18656 ac_status=$?
18657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18658 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18659 (./conftest; exit; ) >&5 2>/dev/null
18660 lt_status=$?
18661 case x$lt_status in
18662 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18663 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18664 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18665 esac
18666 else :
18667 # compilation failed
18668 lt_cv_dlopen_self_static=no
18671 rm -fr conftest*
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18676 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18679 CPPFLAGS="$save_CPPFLAGS"
18680 LDFLAGS="$save_LDFLAGS"
18681 LIBS="$save_LIBS"
18683 esac
18685 case $lt_cv_dlopen_self in
18686 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18687 *) enable_dlopen_self=unknown ;;
18688 esac
18690 case $lt_cv_dlopen_self_static in
18691 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18692 *) enable_dlopen_self_static=unknown ;;
18693 esac
18712 striplib=
18713 old_striplib=
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18715 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18716 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18717 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18718 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18720 $as_echo "yes" >&6; }
18721 else
18722 # FIXME - insert some real tests, host_os isn't really good enough
18723 case $host_os in
18724 darwin*)
18725 if test -n "$STRIP" ; then
18726 striplib="$STRIP -x"
18727 old_striplib="$STRIP -S"
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729 $as_echo "yes" >&6; }
18730 else
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737 $as_echo "no" >&6; }
18739 esac
18753 # Report which library types will actually be built
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18755 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18757 $as_echo "$can_build_shared" >&6; }
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18760 $as_echo_n "checking whether to build shared libraries... " >&6; }
18761 test "$can_build_shared" = "no" && enable_shared=no
18763 # On AIX, shared libraries and static libraries use the same namespace, and
18764 # are all built from PIC.
18765 case $host_os in
18766 aix3*)
18767 test "$enable_shared" = yes && enable_static=no
18768 if test -n "$RANLIB"; then
18769 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18770 postinstall_cmds='$RANLIB $lib'
18774 aix[4-9]*)
18775 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18776 test "$enable_shared" = yes && enable_static=no
18779 esac
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18781 $as_echo "$enable_shared" >&6; }
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18784 $as_echo_n "checking whether to build static libraries... " >&6; }
18785 # Make sure either enable_shared or enable_static is yes.
18786 test "$enable_shared" = yes || enable_static=yes
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18788 $as_echo "$enable_static" >&6; }
18794 ac_ext=cpp
18795 ac_cpp='$CXXCPP $CPPFLAGS'
18796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18800 CC="$lt_save_CC"
18802 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18804 (test "X$CXX" != "Xg++"))) ; then
18805 ac_ext=cpp
18806 ac_cpp='$CXXCPP $CPPFLAGS'
18807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18811 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18812 if test -z "$CXXCPP"; then
18813 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18814 $as_echo_n "(cached) " >&6
18815 else
18816 # Double quotes because CXXCPP needs to be expanded
18817 for CXXCPP in "$CXX -E" "/lib/cpp"
18819 ac_preproc_ok=false
18820 for ac_cxx_preproc_warn_flag in '' yes
18822 # Use a header file that comes with gcc, so configuring glibc
18823 # with a fresh cross-compiler works.
18824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825 # <limits.h> exists even on freestanding compilers.
18826 # On the NeXT, cc -E runs the code through the compiler's parser,
18827 # not just through cpp. "Syntax error" is here to catch this case.
18828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18830 #ifdef __STDC__
18831 # include <limits.h>
18832 #else
18833 # include <assert.h>
18834 #endif
18835 Syntax error
18836 _ACEOF
18837 if ac_fn_cxx_try_cpp "$LINENO"; then :
18839 else
18840 # Broken: fails on valid input.
18841 continue
18843 rm -f conftest.err conftest.$ac_ext
18845 # OK, works on sane cases. Now check whether nonexistent headers
18846 # can be detected and how.
18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18849 #include <ac_nonexistent.h>
18850 _ACEOF
18851 if ac_fn_cxx_try_cpp "$LINENO"; then :
18852 # Broken: success on invalid input.
18853 continue
18854 else
18855 # Passes both tests.
18856 ac_preproc_ok=:
18857 break
18859 rm -f conftest.err conftest.$ac_ext
18861 done
18862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18863 rm -f conftest.err conftest.$ac_ext
18864 if $ac_preproc_ok; then :
18865 break
18868 done
18869 ac_cv_prog_CXXCPP=$CXXCPP
18872 CXXCPP=$ac_cv_prog_CXXCPP
18873 else
18874 ac_cv_prog_CXXCPP=$CXXCPP
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18877 $as_echo "$CXXCPP" >&6; }
18878 ac_preproc_ok=false
18879 for ac_cxx_preproc_warn_flag in '' yes
18881 # Use a header file that comes with gcc, so configuring glibc
18882 # with a fresh cross-compiler works.
18883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18884 # <limits.h> exists even on freestanding compilers.
18885 # On the NeXT, cc -E runs the code through the compiler's parser,
18886 # not just through cpp. "Syntax error" is here to catch this case.
18887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18889 #ifdef __STDC__
18890 # include <limits.h>
18891 #else
18892 # include <assert.h>
18893 #endif
18894 Syntax error
18895 _ACEOF
18896 if ac_fn_cxx_try_cpp "$LINENO"; then :
18898 else
18899 # Broken: fails on valid input.
18900 continue
18902 rm -f conftest.err conftest.$ac_ext
18904 # OK, works on sane cases. Now check whether nonexistent headers
18905 # can be detected and how.
18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h. */
18908 #include <ac_nonexistent.h>
18909 _ACEOF
18910 if ac_fn_cxx_try_cpp "$LINENO"; then :
18911 # Broken: success on invalid input.
18912 continue
18913 else
18914 # Passes both tests.
18915 ac_preproc_ok=:
18916 break
18918 rm -f conftest.err conftest.$ac_ext
18920 done
18921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18922 rm -f conftest.err conftest.$ac_ext
18923 if $ac_preproc_ok; then :
18925 else
18926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18928 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18929 See \`config.log' for more details." "$LINENO" 5; }
18932 ac_ext=cpp
18933 ac_cpp='$CXXCPP $CPPFLAGS'
18934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18938 else
18939 _lt_caught_CXX_error=yes
18942 ac_ext=cpp
18943 ac_cpp='$CXXCPP $CPPFLAGS'
18944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18948 archive_cmds_need_lc_CXX=no
18949 allow_undefined_flag_CXX=
18950 always_export_symbols_CXX=no
18951 archive_expsym_cmds_CXX=
18952 compiler_needs_object_CXX=no
18953 export_dynamic_flag_spec_CXX=
18954 hardcode_direct_CXX=no
18955 hardcode_direct_absolute_CXX=no
18956 hardcode_libdir_flag_spec_CXX=
18957 hardcode_libdir_flag_spec_ld_CXX=
18958 hardcode_libdir_separator_CXX=
18959 hardcode_minus_L_CXX=no
18960 hardcode_shlibpath_var_CXX=unsupported
18961 hardcode_automatic_CXX=no
18962 inherit_rpath_CXX=no
18963 module_cmds_CXX=
18964 module_expsym_cmds_CXX=
18965 link_all_deplibs_CXX=unknown
18966 old_archive_cmds_CXX=$old_archive_cmds
18967 reload_flag_CXX=$reload_flag
18968 reload_cmds_CXX=$reload_cmds
18969 no_undefined_flag_CXX=
18970 whole_archive_flag_spec_CXX=
18971 enable_shared_with_static_runtimes_CXX=no
18973 # Source file extension for C++ test sources.
18974 ac_ext=cpp
18976 # Object file extension for compiled C++ test sources.
18977 objext=o
18978 objext_CXX=$objext
18980 # No sense in running all these tests if we already determined that
18981 # the CXX compiler isn't working. Some variables (like enable_shared)
18982 # are currently assumed to apply to all compilers on this platform,
18983 # and will be corrupted by setting them based on a non-working compiler.
18984 if test "$_lt_caught_CXX_error" != yes; then
18985 # Code to be used in simple compile tests
18986 lt_simple_compile_test_code="int some_variable = 0;"
18988 # Code to be used in simple link tests
18989 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18998 # If no C compiler was specified, use CC.
18999 LTCC=${LTCC-"$CC"}
19001 # If no C compiler flags were specified, use CFLAGS.
19002 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19004 # Allow CC to be a program name with arguments.
19005 compiler=$CC
19008 # save warnings/boilerplate of simple test code
19009 ac_outfile=conftest.$ac_objext
19010 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19011 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19012 _lt_compiler_boilerplate=`cat conftest.err`
19013 $RM conftest*
19015 ac_outfile=conftest.$ac_objext
19016 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19017 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19018 _lt_linker_boilerplate=`cat conftest.err`
19019 $RM -r conftest*
19022 # Allow CC to be a program name with arguments.
19023 lt_save_CC=$CC
19024 lt_save_LD=$LD
19025 lt_save_GCC=$GCC
19026 GCC=$GXX
19027 lt_save_with_gnu_ld=$with_gnu_ld
19028 lt_save_path_LD=$lt_cv_path_LD
19029 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19030 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19031 else
19032 $as_unset lt_cv_prog_gnu_ld
19034 if test -n "${lt_cv_path_LDCXX+set}"; then
19035 lt_cv_path_LD=$lt_cv_path_LDCXX
19036 else
19037 $as_unset lt_cv_path_LD
19039 test -z "${LDCXX+set}" || LD=$LDCXX
19040 CC=${CXX-"c++"}
19041 compiler=$CC
19042 compiler_CXX=$CC
19043 for cc_temp in $compiler""; do
19044 case $cc_temp in
19045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19047 \-*) ;;
19048 *) break;;
19049 esac
19050 done
19051 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19054 if test -n "$compiler"; then
19055 # We don't want -fno-exception when compiling C++ code, so set the
19056 # no_builtin_flag separately
19057 if test "$GXX" = yes; then
19058 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19059 else
19060 lt_prog_compiler_no_builtin_flag_CXX=
19063 if test "$GXX" = yes; then
19064 # Set up default GNU C++ configuration
19068 # Check whether --with-gnu-ld was given.
19069 if test "${with_gnu_ld+set}" = set; then :
19070 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19071 else
19072 with_gnu_ld=no
19075 ac_prog=ld
19076 if test "$GCC" = yes; then
19077 # Check if gcc -print-prog-name=ld gives a path.
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19079 $as_echo_n "checking for ld used by $CC... " >&6; }
19080 case $host in
19081 *-*-mingw*)
19082 # gcc leaves a trailing carriage return which upsets mingw
19083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19086 esac
19087 case $ac_prog in
19088 # Accept absolute paths.
19089 [\\/]* | ?:[\\/]*)
19090 re_direlt='/[^/][^/]*/\.\./'
19091 # Canonicalize the pathname of ld
19092 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19093 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19094 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19095 done
19096 test -z "$LD" && LD="$ac_prog"
19099 # If it fails, then pretend we aren't using GCC.
19100 ac_prog=ld
19103 # If it is relative, then search for the first ld in PATH.
19104 with_gnu_ld=unknown
19106 esac
19107 elif test "$with_gnu_ld" = yes; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19109 $as_echo_n "checking for GNU ld... " >&6; }
19110 else
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19112 $as_echo_n "checking for non-GNU ld... " >&6; }
19114 if test "${lt_cv_path_LD+set}" = set; then :
19115 $as_echo_n "(cached) " >&6
19116 else
19117 if test -z "$LD"; then
19118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19119 for ac_dir in $PATH; do
19120 IFS="$lt_save_ifs"
19121 test -z "$ac_dir" && ac_dir=.
19122 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19123 lt_cv_path_LD="$ac_dir/$ac_prog"
19124 # Check to see if the program is GNU ld. I'd rather use --version,
19125 # but apparently some variants of GNU ld only accept -v.
19126 # Break only if it was the GNU/non-GNU ld that we prefer.
19127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19128 *GNU* | *'with BFD'*)
19129 test "$with_gnu_ld" != no && break
19132 test "$with_gnu_ld" != yes && break
19134 esac
19136 done
19137 IFS="$lt_save_ifs"
19138 else
19139 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19143 LD="$lt_cv_path_LD"
19144 if test -n "$LD"; then
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19146 $as_echo "$LD" >&6; }
19147 else
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19149 $as_echo "no" >&6; }
19151 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19153 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19154 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19155 $as_echo_n "(cached) " >&6
19156 else
19157 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19158 case `$LD -v 2>&1 </dev/null` in
19159 *GNU* | *'with BFD'*)
19160 lt_cv_prog_gnu_ld=yes
19163 lt_cv_prog_gnu_ld=no
19165 esac
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19168 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19169 with_gnu_ld=$lt_cv_prog_gnu_ld
19177 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19178 # archiving commands below assume that GNU ld is being used.
19179 if test "$with_gnu_ld" = yes; then
19180 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19181 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'
19183 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19184 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19186 # If archive_cmds runs LD, not CC, wlarc should be empty
19187 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19188 # investigate it a little bit more. (MM)
19189 wlarc='${wl}'
19191 # ancient GNU ld didn't support --whole-archive et. al.
19192 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19193 $GREP 'no-whole-archive' > /dev/null; then
19194 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19195 else
19196 whole_archive_flag_spec_CXX=
19198 else
19199 with_gnu_ld=no
19200 wlarc=
19202 # A generic and very simple default shared library creation
19203 # command for GNU C++ for the case where it uses the native
19204 # linker, instead of GNU ld. If possible, this setting should
19205 # overridden to take advantage of the native linker features on
19206 # the platform it is being used on.
19207 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19210 # Commands to make compiler produce verbose output that lists
19211 # what "hidden" libraries, object files and flags are used when
19212 # linking a shared library.
19213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19215 else
19216 GXX=no
19217 with_gnu_ld=no
19218 wlarc=
19221 # PORTME: fill in a description of your system's C++ link characteristics
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19223 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19224 ld_shlibs_CXX=yes
19225 case $host_os in
19226 aix3*)
19227 # FIXME: insert proper C++ library support
19228 ld_shlibs_CXX=no
19230 aix[4-9]*)
19231 if test "$host_cpu" = ia64; then
19232 # On IA64, the linker does run time linking by default, so we don't
19233 # have to do anything special.
19234 aix_use_runtimelinking=no
19235 exp_sym_flag='-Bexport'
19236 no_entry_flag=""
19237 else
19238 aix_use_runtimelinking=no
19240 # Test if we are trying to use run time linking or normal
19241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19242 # need to do runtime linking.
19243 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19244 for ld_flag in $LDFLAGS; do
19245 case $ld_flag in
19246 *-brtl*)
19247 aix_use_runtimelinking=yes
19248 break
19250 esac
19251 done
19253 esac
19255 exp_sym_flag='-bexport'
19256 no_entry_flag='-bnoentry'
19259 # When large executables or shared objects are built, AIX ld can
19260 # have problems creating the table of contents. If linking a library
19261 # or program results in "error TOC overflow" add -mminimal-toc to
19262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19265 archive_cmds_CXX=''
19266 hardcode_direct_CXX=yes
19267 hardcode_direct_absolute_CXX=yes
19268 hardcode_libdir_separator_CXX=':'
19269 link_all_deplibs_CXX=yes
19270 file_list_spec_CXX='${wl}-f,'
19272 if test "$GXX" = yes; then
19273 case $host_os in aix4.[012]|aix4.[012].*)
19274 # We only want to do this on AIX 4.2 and lower, the check
19275 # below for broken collect2 doesn't work under 4.3+
19276 collect2name=`${CC} -print-prog-name=collect2`
19277 if test -f "$collect2name" &&
19278 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19279 then
19280 # We have reworked collect2
19282 else
19283 # We have old collect2
19284 hardcode_direct_CXX=unsupported
19285 # It fails to find uninstalled libraries when the uninstalled
19286 # path is not listed in the libpath. Setting hardcode_minus_L
19287 # to unsupported forces relinking
19288 hardcode_minus_L_CXX=yes
19289 hardcode_libdir_flag_spec_CXX='-L$libdir'
19290 hardcode_libdir_separator_CXX=
19292 esac
19293 shared_flag='-shared'
19294 if test "$aix_use_runtimelinking" = yes; then
19295 shared_flag="$shared_flag "'${wl}-G'
19297 else
19298 # not using gcc
19299 if test "$host_cpu" = ia64; then
19300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19301 # chokes on -Wl,-G. The following line is correct:
19302 shared_flag='-G'
19303 else
19304 if test "$aix_use_runtimelinking" = yes; then
19305 shared_flag='${wl}-G'
19306 else
19307 shared_flag='${wl}-bM:SRE'
19312 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19313 # It seems that -bexpall does not export symbols beginning with
19314 # underscore (_), so it is better to generate a list of symbols to
19315 # export.
19316 always_export_symbols_CXX=yes
19317 if test "$aix_use_runtimelinking" = yes; then
19318 # Warning - without using the other runtime loading flags (-brtl),
19319 # -berok will link without error, but may produce a broken library.
19320 allow_undefined_flag_CXX='-berok'
19321 # Determine the default libpath from the value encoded in an empty
19322 # executable.
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19327 main ()
19331 return 0;
19333 _ACEOF
19334 if ac_fn_cxx_try_link "$LINENO"; then :
19336 lt_aix_libpath_sed='
19337 /Import File Strings/,/^$/ {
19338 /^0/ {
19339 s/^0 *\(.*\)$/\1/
19343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19344 # Check for a 64-bit object if we didn't find anything.
19345 if test -z "$aix_libpath"; then
19346 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19349 rm -f core conftest.err conftest.$ac_objext \
19350 conftest$ac_exeext conftest.$ac_ext
19351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19353 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19355 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"
19356 else
19357 if test "$host_cpu" = ia64; then
19358 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19359 allow_undefined_flag_CXX="-z nodefs"
19360 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"
19361 else
19362 # Determine the default libpath from the value encoded in an
19363 # empty executable.
19364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19368 main ()
19372 return 0;
19374 _ACEOF
19375 if ac_fn_cxx_try_link "$LINENO"; then :
19377 lt_aix_libpath_sed='
19378 /Import File Strings/,/^$/ {
19379 /^0/ {
19380 s/^0 *\(.*\)$/\1/
19384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19385 # Check for a 64-bit object if we didn't find anything.
19386 if test -z "$aix_libpath"; then
19387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19390 rm -f core conftest.err conftest.$ac_objext \
19391 conftest$ac_exeext conftest.$ac_ext
19392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19394 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19395 # Warning - without using the other run time loading flags,
19396 # -berok will link without error, but may produce a broken library.
19397 no_undefined_flag_CXX=' ${wl}-bernotok'
19398 allow_undefined_flag_CXX=' ${wl}-berok'
19399 if test "$with_gnu_ld" = yes; then
19400 # We only use this code for GNU lds that support --whole-archive.
19401 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19402 else
19403 # Exported symbols can be pulled into shared objects from archives
19404 whole_archive_flag_spec_CXX='$convenience'
19406 archive_cmds_need_lc_CXX=yes
19407 # This is similar to how AIX traditionally builds its shared
19408 # libraries.
19409 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'
19414 beos*)
19415 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19416 allow_undefined_flag_CXX=unsupported
19417 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19418 # support --undefined. This deserves some investigation. FIXME
19419 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19420 else
19421 ld_shlibs_CXX=no
19425 chorus*)
19426 case $cc_basename in
19428 # FIXME: insert proper C++ library support
19429 ld_shlibs_CXX=no
19431 esac
19434 cygwin* | mingw* | pw32* | cegcc*)
19435 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19436 # as there is no search path for DLLs.
19437 hardcode_libdir_flag_spec_CXX='-L$libdir'
19438 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19439 allow_undefined_flag_CXX=unsupported
19440 always_export_symbols_CXX=no
19441 enable_shared_with_static_runtimes_CXX=yes
19443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19444 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'
19445 # If the export-symbols file already is a .def file (1st line
19446 # is EXPORTS), use it as is; otherwise, prepend...
19447 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19448 cp $export_symbols $output_objdir/$soname.def;
19449 else
19450 echo EXPORTS > $output_objdir/$soname.def;
19451 cat $export_symbols >> $output_objdir/$soname.def;
19453 $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'
19454 else
19455 ld_shlibs_CXX=no
19458 darwin* | rhapsody*)
19461 archive_cmds_need_lc_CXX=no
19462 hardcode_direct_CXX=no
19463 hardcode_automatic_CXX=yes
19464 hardcode_shlibpath_var_CXX=unsupported
19465 if test "$lt_cv_ld_force_load" = "yes"; then
19466 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\"`'
19467 else
19468 whole_archive_flag_spec_CXX=''
19470 link_all_deplibs_CXX=yes
19471 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19472 case $cc_basename in
19473 ifort*) _lt_dar_can_shared=yes ;;
19474 *) _lt_dar_can_shared=$GCC ;;
19475 esac
19476 if test "$_lt_dar_can_shared" = "yes"; then
19477 output_verbose_link_cmd=func_echo_all
19478 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}"
19479 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19480 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}"
19481 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}"
19482 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19483 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}"
19484 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}"
19487 else
19488 ld_shlibs_CXX=no
19493 dgux*)
19494 case $cc_basename in
19495 ec++*)
19496 # FIXME: insert proper C++ library support
19497 ld_shlibs_CXX=no
19499 ghcx*)
19500 # Green Hills C++ Compiler
19501 # FIXME: insert proper C++ library support
19502 ld_shlibs_CXX=no
19505 # FIXME: insert proper C++ library support
19506 ld_shlibs_CXX=no
19508 esac
19511 freebsd2.*)
19512 # C++ shared libraries reported to be fairly broken before
19513 # switch to ELF
19514 ld_shlibs_CXX=no
19517 freebsd-elf*)
19518 archive_cmds_need_lc_CXX=no
19521 freebsd* | dragonfly*)
19522 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19523 # conventions
19524 ld_shlibs_CXX=yes
19527 gnu*)
19530 haiku*)
19531 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19532 link_all_deplibs_CXX=yes
19535 hpux9*)
19536 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19537 hardcode_libdir_separator_CXX=:
19538 export_dynamic_flag_spec_CXX='${wl}-E'
19539 hardcode_direct_CXX=yes
19540 hardcode_minus_L_CXX=yes # Not in the search PATH,
19541 # but as the default
19542 # location of the library.
19544 case $cc_basename in
19545 CC*)
19546 # FIXME: insert proper C++ library support
19547 ld_shlibs_CXX=no
19549 aCC*)
19550 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'
19551 # Commands to make compiler produce verbose output that lists
19552 # what "hidden" libraries, object files and flags are used when
19553 # linking a shared library.
19555 # There doesn't appear to be a way to prevent this compiler from
19556 # explicitly linking system object files so we need to strip them
19557 # from the output so that they don't get included in the library
19558 # dependencies.
19559 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"'
19562 if test "$GXX" = yes; then
19563 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'
19564 else
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19569 esac
19572 hpux10*|hpux11*)
19573 if test $with_gnu_ld = no; then
19574 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19575 hardcode_libdir_separator_CXX=:
19577 case $host_cpu in
19578 hppa*64*|ia64*)
19581 export_dynamic_flag_spec_CXX='${wl}-E'
19583 esac
19585 case $host_cpu in
19586 hppa*64*|ia64*)
19587 hardcode_direct_CXX=no
19588 hardcode_shlibpath_var_CXX=no
19591 hardcode_direct_CXX=yes
19592 hardcode_direct_absolute_CXX=yes
19593 hardcode_minus_L_CXX=yes # Not in the search PATH,
19594 # but as the default
19595 # location of the library.
19597 esac
19599 case $cc_basename in
19600 CC*)
19601 # FIXME: insert proper C++ library support
19602 ld_shlibs_CXX=no
19604 aCC*)
19605 case $host_cpu in
19606 hppa*64*)
19607 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19609 ia64*)
19610 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19613 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19615 esac
19616 # Commands to make compiler produce verbose output that lists
19617 # what "hidden" libraries, object files and flags are used when
19618 # linking a shared library.
19620 # There doesn't appear to be a way to prevent this compiler from
19621 # explicitly linking system object files so we need to strip them
19622 # from the output so that they don't get included in the library
19623 # dependencies.
19624 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"'
19627 if test "$GXX" = yes; then
19628 if test $with_gnu_ld = no; then
19629 case $host_cpu in
19630 hppa*64*)
19631 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19633 ia64*)
19634 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19637 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'
19639 esac
19641 else
19642 # FIXME: insert proper C++ library support
19643 ld_shlibs_CXX=no
19646 esac
19649 interix[3-9]*)
19650 hardcode_direct_CXX=no
19651 hardcode_shlibpath_var_CXX=no
19652 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19653 export_dynamic_flag_spec_CXX='${wl}-E'
19654 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19655 # Instead, shared libraries are loaded at an image base (0x10000000 by
19656 # default) and relocated if they conflict, which is a slow very memory
19657 # consuming and fragmenting process. To avoid this, we pick a random,
19658 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19659 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19660 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'
19661 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'
19663 irix5* | irix6*)
19664 case $cc_basename in
19665 CC*)
19666 # SGI C++
19667 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'
19669 # Archives containing C++ object files must be created using
19670 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19671 # necessary to make sure instantiated templates are included
19672 # in the archive.
19673 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19676 if test "$GXX" = yes; then
19677 if test "$with_gnu_ld" = no; then
19678 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'
19679 else
19680 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'
19683 link_all_deplibs_CXX=yes
19685 esac
19686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19687 hardcode_libdir_separator_CXX=:
19688 inherit_rpath_CXX=yes
19691 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19692 case $cc_basename in
19693 KCC*)
19694 # Kuck and Associates, Inc. (KAI) C++ Compiler
19696 # KCC will only create a shared library if the output file
19697 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19698 # to its proper name (with version) after linking.
19699 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'
19700 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'
19701 # Commands to make compiler produce verbose output that lists
19702 # what "hidden" libraries, object files and flags are used when
19703 # linking a shared library.
19705 # There doesn't appear to be a way to prevent this compiler from
19706 # explicitly linking system object files so we need to strip them
19707 # from the output so that they don't get included in the library
19708 # dependencies.
19709 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"'
19711 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19712 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19714 # Archives containing C++ object files must be created using
19715 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19716 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19718 icpc* | ecpc* )
19719 # Intel C++
19720 with_gnu_ld=yes
19721 # version 8.0 and above of icpc choke on multiply defined symbols
19722 # if we add $predep_objects and $postdep_objects, however 7.1 and
19723 # earlier do not add the objects themselves.
19724 case `$CC -V 2>&1` in
19725 *"Version 7."*)
19726 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19727 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'
19729 *) # Version 8.0 or newer
19730 tmp_idyn=
19731 case $host_cpu in
19732 ia64*) tmp_idyn=' -i_dynamic';;
19733 esac
19734 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19735 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'
19737 esac
19738 archive_cmds_need_lc_CXX=no
19739 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19740 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19741 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19743 pgCC* | pgcpp*)
19744 # Portland Group C++ compiler
19745 case `$CC -V` in
19746 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19747 prelink_cmds_CXX='tpldir=Template.dir~
19748 rm -rf $tpldir~
19749 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19750 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19751 old_archive_cmds_CXX='tpldir=Template.dir~
19752 rm -rf $tpldir~
19753 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19754 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19755 $RANLIB $oldlib'
19756 archive_cmds_CXX='tpldir=Template.dir~
19757 rm -rf $tpldir~
19758 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19759 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19760 archive_expsym_cmds_CXX='tpldir=Template.dir~
19761 rm -rf $tpldir~
19762 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19763 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19765 *) # Version 6 and above use weak symbols
19766 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19767 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'
19769 esac
19771 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19772 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19773 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'
19775 cxx*)
19776 # Compaq C++
19777 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19778 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'
19780 runpath_var=LD_RUN_PATH
19781 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19782 hardcode_libdir_separator_CXX=:
19784 # Commands to make compiler produce verbose output that lists
19785 # what "hidden" libraries, object files and flags are used when
19786 # linking a shared library.
19788 # There doesn't appear to be a way to prevent this compiler from
19789 # explicitly linking system object files so we need to strip them
19790 # from the output so that they don't get included in the library
19791 # dependencies.
19792 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'
19794 xl* | mpixl* | bgxl*)
19795 # IBM XL 8.0 on PPC, with GNU ld
19796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19798 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19799 if test "x$supports_anon_versioning" = xyes; then
19800 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19802 echo "local: *; };" >> $output_objdir/$libname.ver~
19803 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19807 case `$CC -V 2>&1 | sed 5q` in
19808 *Sun\ C*)
19809 # Sun C++ 5.9
19810 no_undefined_flag_CXX=' -zdefs'
19811 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19812 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'
19813 hardcode_libdir_flag_spec_CXX='-R$libdir'
19814 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'
19815 compiler_needs_object_CXX=yes
19817 # Not sure whether something based on
19818 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19819 # would be better.
19820 output_verbose_link_cmd='func_echo_all'
19822 # Archives containing C++ object files must be created using
19823 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19824 # necessary to make sure instantiated templates are included
19825 # in the archive.
19826 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19828 esac
19830 esac
19833 lynxos*)
19834 # FIXME: insert proper C++ library support
19835 ld_shlibs_CXX=no
19838 m88k*)
19839 # FIXME: insert proper C++ library support
19840 ld_shlibs_CXX=no
19843 mvs*)
19844 case $cc_basename in
19845 cxx*)
19846 # FIXME: insert proper C++ library support
19847 ld_shlibs_CXX=no
19850 # FIXME: insert proper C++ library support
19851 ld_shlibs_CXX=no
19853 esac
19856 netbsd*)
19857 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19858 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19859 wlarc=
19860 hardcode_libdir_flag_spec_CXX='-R$libdir'
19861 hardcode_direct_CXX=yes
19862 hardcode_shlibpath_var_CXX=no
19864 # Workaround some broken pre-1.5 toolchains
19865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19868 *nto* | *qnx*)
19869 ld_shlibs_CXX=yes
19872 openbsd2*)
19873 # C++ shared libraries are fairly broken
19874 ld_shlibs_CXX=no
19877 openbsd*)
19878 if test -f /usr/libexec/ld.so; then
19879 hardcode_direct_CXX=yes
19880 hardcode_shlibpath_var_CXX=no
19881 hardcode_direct_absolute_CXX=yes
19882 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19885 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19886 export_dynamic_flag_spec_CXX='${wl}-E'
19887 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19889 output_verbose_link_cmd=func_echo_all
19890 else
19891 ld_shlibs_CXX=no
19895 osf3* | osf4* | osf5*)
19896 case $cc_basename in
19897 KCC*)
19898 # Kuck and Associates, Inc. (KAI) C++ Compiler
19900 # KCC will only create a shared library if the output file
19901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19902 # to its proper name (with version) after linking.
19903 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'
19905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19906 hardcode_libdir_separator_CXX=:
19908 # Archives containing C++ object files must be created using
19909 # the KAI C++ compiler.
19910 case $host in
19911 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19912 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19913 esac
19915 RCC*)
19916 # Rational C++ 2.4.1
19917 # FIXME: insert proper C++ library support
19918 ld_shlibs_CXX=no
19920 cxx*)
19921 case $host in
19922 osf3*)
19923 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19924 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'
19925 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19928 allow_undefined_flag_CXX=' -expect_unresolved \*'
19929 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'
19930 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19931 echo "-hidden">> $lib.exp~
19932 $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~
19933 $RM $lib.exp'
19934 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19936 esac
19938 hardcode_libdir_separator_CXX=:
19940 # Commands to make compiler produce verbose output that lists
19941 # what "hidden" libraries, object files and flags are used when
19942 # linking a shared library.
19944 # There doesn't appear to be a way to prevent this compiler from
19945 # explicitly linking system object files so we need to strip them
19946 # from the output so that they don't get included in the library
19947 # dependencies.
19948 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"'
19951 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19952 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19953 case $host in
19954 osf3*)
19955 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'
19958 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'
19960 esac
19962 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19963 hardcode_libdir_separator_CXX=:
19965 # Commands to make compiler produce verbose output that lists
19966 # what "hidden" libraries, object files and flags are used when
19967 # linking a shared library.
19968 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19970 else
19971 # FIXME: insert proper C++ library support
19972 ld_shlibs_CXX=no
19975 esac
19978 psos*)
19979 # FIXME: insert proper C++ library support
19980 ld_shlibs_CXX=no
19983 sunos4*)
19984 case $cc_basename in
19985 CC*)
19986 # Sun C++ 4.x
19987 # FIXME: insert proper C++ library support
19988 ld_shlibs_CXX=no
19990 lcc*)
19991 # Lucid
19992 # FIXME: insert proper C++ library support
19993 ld_shlibs_CXX=no
19996 # FIXME: insert proper C++ library support
19997 ld_shlibs_CXX=no
19999 esac
20002 solaris*)
20003 case $cc_basename in
20004 CC*)
20005 # Sun C++ 4.2, 5.x and Centerline C++
20006 archive_cmds_need_lc_CXX=yes
20007 no_undefined_flag_CXX=' -zdefs'
20008 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20009 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20010 $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'
20012 hardcode_libdir_flag_spec_CXX='-R$libdir'
20013 hardcode_shlibpath_var_CXX=no
20014 case $host_os in
20015 solaris2.[0-5] | solaris2.[0-5].*) ;;
20017 # The compiler driver will combine and reorder linker options,
20018 # but understands `-z linker_flag'.
20019 # Supported since Solaris 2.6 (maybe 2.5.1?)
20020 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20022 esac
20023 link_all_deplibs_CXX=yes
20025 output_verbose_link_cmd='func_echo_all'
20027 # Archives containing C++ object files must be created using
20028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20029 # necessary to make sure instantiated templates are included
20030 # in the archive.
20031 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20033 gcx*)
20034 # Green Hills C++ Compiler
20035 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20037 # The C++ compiler must be used to create the archive.
20038 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20041 # GNU C++ compiler with Solaris linker
20042 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20043 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20044 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20045 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20046 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20047 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20049 # Commands to make compiler produce verbose output that lists
20050 # what "hidden" libraries, object files and flags are used when
20051 # linking a shared library.
20052 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20053 else
20054 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20055 # platform.
20056 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20057 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20058 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20060 # Commands to make compiler produce verbose output that lists
20061 # what "hidden" libraries, object files and flags are used when
20062 # linking a shared library.
20063 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20066 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20067 case $host_os in
20068 solaris2.[0-5] | solaris2.[0-5].*) ;;
20070 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20072 esac
20075 esac
20078 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20079 no_undefined_flag_CXX='${wl}-z,text'
20080 archive_cmds_need_lc_CXX=no
20081 hardcode_shlibpath_var_CXX=no
20082 runpath_var='LD_RUN_PATH'
20084 case $cc_basename in
20085 CC*)
20086 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20091 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20093 esac
20096 sysv5* | sco3.2v5* | sco5v6*)
20097 # Note: We can NOT use -z defs as we might desire, because we do not
20098 # link with -lc, and that would cause any symbols used from libc to
20099 # always be unresolved, which means just about no library would
20100 # ever link correctly. If we're not using GNU ld we use -z text
20101 # though, which does catch some bad symbols but isn't as heavy-handed
20102 # as -z defs.
20103 no_undefined_flag_CXX='${wl}-z,text'
20104 allow_undefined_flag_CXX='${wl}-z,nodefs'
20105 archive_cmds_need_lc_CXX=no
20106 hardcode_shlibpath_var_CXX=no
20107 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20108 hardcode_libdir_separator_CXX=':'
20109 link_all_deplibs_CXX=yes
20110 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20111 runpath_var='LD_RUN_PATH'
20113 case $cc_basename in
20114 CC*)
20115 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20116 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20117 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20118 '"$old_archive_cmds_CXX"
20119 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20120 '"$reload_cmds_CXX"
20123 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20124 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20126 esac
20129 tandem*)
20130 case $cc_basename in
20131 NCC*)
20132 # NonStop-UX NCC 3.20
20133 # FIXME: insert proper C++ library support
20134 ld_shlibs_CXX=no
20137 # FIXME: insert proper C++ library support
20138 ld_shlibs_CXX=no
20140 esac
20143 vxworks*)
20144 # FIXME: insert proper C++ library support
20145 ld_shlibs_CXX=no
20149 # FIXME: insert proper C++ library support
20150 ld_shlibs_CXX=no
20152 esac
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20155 $as_echo "$ld_shlibs_CXX" >&6; }
20156 test "$ld_shlibs_CXX" = no && can_build_shared=no
20158 GCC_CXX="$GXX"
20159 LD_CXX="$LD"
20161 ## CAVEAT EMPTOR:
20162 ## There is no encapsulation within the following macros, do not change
20163 ## the running order or otherwise move them around unless you know exactly
20164 ## what you are doing...
20165 # Dependencies to place before and after the object being linked:
20166 predep_objects_CXX=
20167 postdep_objects_CXX=
20168 predeps_CXX=
20169 postdeps_CXX=
20170 compiler_lib_search_path_CXX=
20172 cat > conftest.$ac_ext <<_LT_EOF
20173 class Foo
20175 public:
20176 Foo (void) { a = 0; }
20177 private:
20178 int a;
20180 _LT_EOF
20182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20183 (eval $ac_compile) 2>&5
20184 ac_status=$?
20185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20186 test $ac_status = 0; }; then
20187 # Parse the compiler output and extract the necessary
20188 # objects, libraries and library flags.
20190 # Sentinel used to keep track of whether or not we are before
20191 # the conftest object file.
20192 pre_test_object_deps_done=no
20194 for p in `eval "$output_verbose_link_cmd"`; do
20195 case $p in
20197 -L* | -R* | -l*)
20198 # Some compilers place space between "-{L,R}" and the path.
20199 # Remove the space.
20200 if test $p = "-L" ||
20201 test $p = "-R"; then
20202 prev=$p
20203 continue
20204 else
20205 prev=
20208 if test "$pre_test_object_deps_done" = no; then
20209 case $p in
20210 -L* | -R*)
20211 # Internal compiler library paths should come after those
20212 # provided the user. The postdeps already come after the
20213 # user supplied libs so there is no need to process them.
20214 if test -z "$compiler_lib_search_path_CXX"; then
20215 compiler_lib_search_path_CXX="${prev}${p}"
20216 else
20217 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20220 # The "-l" case would never come before the object being
20221 # linked, so don't bother handling this case.
20222 esac
20223 else
20224 if test -z "$postdeps_CXX"; then
20225 postdeps_CXX="${prev}${p}"
20226 else
20227 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20232 *.$objext)
20233 # This assumes that the test object file only shows up
20234 # once in the compiler output.
20235 if test "$p" = "conftest.$objext"; then
20236 pre_test_object_deps_done=yes
20237 continue
20240 if test "$pre_test_object_deps_done" = no; then
20241 if test -z "$predep_objects_CXX"; then
20242 predep_objects_CXX="$p"
20243 else
20244 predep_objects_CXX="$predep_objects_CXX $p"
20246 else
20247 if test -z "$postdep_objects_CXX"; then
20248 postdep_objects_CXX="$p"
20249 else
20250 postdep_objects_CXX="$postdep_objects_CXX $p"
20255 *) ;; # Ignore the rest.
20257 esac
20258 done
20260 # Clean up.
20261 rm -f a.out a.exe
20262 else
20263 echo "libtool.m4: error: problem compiling CXX test program"
20266 $RM -f confest.$objext
20268 # PORTME: override above test on systems where it is broken
20269 case $host_os in
20270 interix[3-9]*)
20271 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20272 # hack all around it, let's just trust "g++" to DTRT.
20273 predep_objects_CXX=
20274 postdep_objects_CXX=
20275 postdeps_CXX=
20278 linux*)
20279 case `$CC -V 2>&1 | sed 5q` in
20280 *Sun\ C*)
20281 # Sun C++ 5.9
20283 # The more standards-conforming stlport4 library is
20284 # incompatible with the Cstd library. Avoid specifying
20285 # it if it's in CXXFLAGS. Ignore libCrun as
20286 # -library=stlport4 depends on it.
20287 case " $CXX $CXXFLAGS " in
20288 *" -library=stlport4 "*)
20289 solaris_use_stlport4=yes
20291 esac
20293 if test "$solaris_use_stlport4" != yes; then
20294 postdeps_CXX='-library=Cstd -library=Crun'
20297 esac
20300 solaris*)
20301 case $cc_basename in
20302 CC*)
20303 # The more standards-conforming stlport4 library is
20304 # incompatible with the Cstd library. Avoid specifying
20305 # it if it's in CXXFLAGS. Ignore libCrun as
20306 # -library=stlport4 depends on it.
20307 case " $CXX $CXXFLAGS " in
20308 *" -library=stlport4 "*)
20309 solaris_use_stlport4=yes
20311 esac
20313 # Adding this requires a known-good setup of shared libraries for
20314 # Sun compiler versions before 5.6, else PIC objects from an old
20315 # archive will be linked into the output, leading to subtle bugs.
20316 if test "$solaris_use_stlport4" != yes; then
20317 postdeps_CXX='-library=Cstd -library=Crun'
20320 esac
20322 esac
20325 case " $postdeps_CXX " in
20326 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20327 esac
20328 compiler_lib_search_dirs_CXX=
20329 if test -n "${compiler_lib_search_path_CXX}"; then
20330 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20363 lt_prog_compiler_wl_CXX=
20364 lt_prog_compiler_pic_CXX=
20365 lt_prog_compiler_static_CXX=
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20368 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20370 # C++ specific cases for pic, static, wl, etc.
20371 if test "$GXX" = yes; then
20372 lt_prog_compiler_wl_CXX='-Wl,'
20373 lt_prog_compiler_static_CXX='-static'
20375 case $host_os in
20376 aix*)
20377 # All AIX code is PIC.
20378 if test "$host_cpu" = ia64; then
20379 # AIX 5 now supports IA64 processor
20380 lt_prog_compiler_static_CXX='-Bstatic'
20382 lt_prog_compiler_pic_CXX='-fPIC'
20385 amigaos*)
20386 case $host_cpu in
20387 powerpc)
20388 # see comment about AmigaOS4 .so support
20389 lt_prog_compiler_pic_CXX='-fPIC'
20391 m68k)
20392 # FIXME: we need at least 68020 code to build shared libraries, but
20393 # adding the `-m68020' flag to GCC prevents building anything better,
20394 # like `-m68040'.
20395 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20397 esac
20400 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20401 # PIC is the default for these OSes.
20403 mingw* | cygwin* | os2* | pw32* | cegcc*)
20404 # This hack is so that the source file can tell whether it is being
20405 # built for inclusion in a dll (and should export symbols for example).
20406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20407 # (--disable-auto-import) libraries
20408 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20410 darwin* | rhapsody*)
20411 # PIC is the default on this platform
20412 # Common symbols not allowed in MH_DYLIB files
20413 lt_prog_compiler_pic_CXX='-fno-common'
20415 *djgpp*)
20416 # DJGPP does not support shared libraries at all
20417 lt_prog_compiler_pic_CXX=
20419 haiku*)
20420 # PIC is the default for Haiku.
20421 # The "-static" flag exists, but is broken.
20422 lt_prog_compiler_static_CXX=
20424 interix[3-9]*)
20425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20426 # Instead, we relocate shared libraries at runtime.
20428 sysv4*MP*)
20429 if test -d /usr/nec; then
20430 lt_prog_compiler_pic_CXX=-Kconform_pic
20433 hpux*)
20434 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20435 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20436 # sets the default TLS model and affects inlining.
20437 case $host_cpu in
20438 hppa*64*)
20441 lt_prog_compiler_pic_CXX='-fPIC'
20443 esac
20445 *qnx* | *nto*)
20446 # QNX uses GNU C++, but need to define -shared option too, otherwise
20447 # it will coredump.
20448 lt_prog_compiler_pic_CXX='-fPIC -shared'
20451 lt_prog_compiler_pic_CXX='-fPIC'
20453 esac
20454 else
20455 case $host_os in
20456 aix[4-9]*)
20457 # All AIX code is PIC.
20458 if test "$host_cpu" = ia64; then
20459 # AIX 5 now supports IA64 processor
20460 lt_prog_compiler_static_CXX='-Bstatic'
20461 else
20462 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20465 chorus*)
20466 case $cc_basename in
20467 cxch68*)
20468 # Green Hills C++ Compiler
20469 # _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"
20471 esac
20473 dgux*)
20474 case $cc_basename in
20475 ec++*)
20476 lt_prog_compiler_pic_CXX='-KPIC'
20478 ghcx*)
20479 # Green Hills C++ Compiler
20480 lt_prog_compiler_pic_CXX='-pic'
20484 esac
20486 freebsd* | dragonfly*)
20487 # FreeBSD uses GNU C++
20489 hpux9* | hpux10* | hpux11*)
20490 case $cc_basename in
20491 CC*)
20492 lt_prog_compiler_wl_CXX='-Wl,'
20493 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20494 if test "$host_cpu" != ia64; then
20495 lt_prog_compiler_pic_CXX='+Z'
20498 aCC*)
20499 lt_prog_compiler_wl_CXX='-Wl,'
20500 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20501 case $host_cpu in
20502 hppa*64*|ia64*)
20503 # +Z the default
20506 lt_prog_compiler_pic_CXX='+Z'
20508 esac
20512 esac
20514 interix*)
20515 # This is c89, which is MS Visual C++ (no shared libs)
20516 # Anyone wants to do a port?
20518 irix5* | irix6* | nonstopux*)
20519 case $cc_basename in
20520 CC*)
20521 lt_prog_compiler_wl_CXX='-Wl,'
20522 lt_prog_compiler_static_CXX='-non_shared'
20523 # CC pic flag -KPIC is the default.
20527 esac
20529 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20530 case $cc_basename in
20531 KCC*)
20532 # KAI C++ Compiler
20533 lt_prog_compiler_wl_CXX='--backend -Wl,'
20534 lt_prog_compiler_pic_CXX='-fPIC'
20536 ecpc* )
20537 # old Intel C++ for x86_64 which still supported -KPIC.
20538 lt_prog_compiler_wl_CXX='-Wl,'
20539 lt_prog_compiler_pic_CXX='-KPIC'
20540 lt_prog_compiler_static_CXX='-static'
20542 icpc* )
20543 # Intel C++, used to be incompatible with GCC.
20544 # ICC 10 doesn't accept -KPIC any more.
20545 lt_prog_compiler_wl_CXX='-Wl,'
20546 lt_prog_compiler_pic_CXX='-fPIC'
20547 lt_prog_compiler_static_CXX='-static'
20549 pgCC* | pgcpp*)
20550 # Portland Group C++ compiler
20551 lt_prog_compiler_wl_CXX='-Wl,'
20552 lt_prog_compiler_pic_CXX='-fpic'
20553 lt_prog_compiler_static_CXX='-Bstatic'
20555 cxx*)
20556 # Compaq C++
20557 # Make sure the PIC flag is empty. It appears that all Alpha
20558 # Linux and Compaq Tru64 Unix objects are PIC.
20559 lt_prog_compiler_pic_CXX=
20560 lt_prog_compiler_static_CXX='-non_shared'
20562 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20563 # IBM XL 8.0, 9.0 on PPC and BlueGene
20564 lt_prog_compiler_wl_CXX='-Wl,'
20565 lt_prog_compiler_pic_CXX='-qpic'
20566 lt_prog_compiler_static_CXX='-qstaticlink'
20569 case `$CC -V 2>&1 | sed 5q` in
20570 *Sun\ C*)
20571 # Sun C++ 5.9
20572 lt_prog_compiler_pic_CXX='-KPIC'
20573 lt_prog_compiler_static_CXX='-Bstatic'
20574 lt_prog_compiler_wl_CXX='-Qoption ld '
20576 esac
20578 esac
20580 lynxos*)
20582 m88k*)
20584 mvs*)
20585 case $cc_basename in
20586 cxx*)
20587 lt_prog_compiler_pic_CXX='-W c,exportall'
20591 esac
20593 netbsd*)
20595 *qnx* | *nto*)
20596 # QNX uses GNU C++, but need to define -shared option too, otherwise
20597 # it will coredump.
20598 lt_prog_compiler_pic_CXX='-fPIC -shared'
20600 osf3* | osf4* | osf5*)
20601 case $cc_basename in
20602 KCC*)
20603 lt_prog_compiler_wl_CXX='--backend -Wl,'
20605 RCC*)
20606 # Rational C++ 2.4.1
20607 lt_prog_compiler_pic_CXX='-pic'
20609 cxx*)
20610 # Digital/Compaq C++
20611 lt_prog_compiler_wl_CXX='-Wl,'
20612 # Make sure the PIC flag is empty. It appears that all Alpha
20613 # Linux and Compaq Tru64 Unix objects are PIC.
20614 lt_prog_compiler_pic_CXX=
20615 lt_prog_compiler_static_CXX='-non_shared'
20619 esac
20621 psos*)
20623 solaris*)
20624 case $cc_basename in
20625 CC*)
20626 # Sun C++ 4.2, 5.x and Centerline C++
20627 lt_prog_compiler_pic_CXX='-KPIC'
20628 lt_prog_compiler_static_CXX='-Bstatic'
20629 lt_prog_compiler_wl_CXX='-Qoption ld '
20631 gcx*)
20632 # Green Hills C++ Compiler
20633 lt_prog_compiler_pic_CXX='-PIC'
20637 esac
20639 sunos4*)
20640 case $cc_basename in
20641 CC*)
20642 # Sun C++ 4.x
20643 lt_prog_compiler_pic_CXX='-pic'
20644 lt_prog_compiler_static_CXX='-Bstatic'
20646 lcc*)
20647 # Lucid
20648 lt_prog_compiler_pic_CXX='-pic'
20652 esac
20654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20655 case $cc_basename in
20656 CC*)
20657 lt_prog_compiler_wl_CXX='-Wl,'
20658 lt_prog_compiler_pic_CXX='-KPIC'
20659 lt_prog_compiler_static_CXX='-Bstatic'
20661 esac
20663 tandem*)
20664 case $cc_basename in
20665 NCC*)
20666 # NonStop-UX NCC 3.20
20667 lt_prog_compiler_pic_CXX='-KPIC'
20671 esac
20673 vxworks*)
20676 lt_prog_compiler_can_build_shared_CXX=no
20678 esac
20681 case $host_os in
20682 # For platforms which do not support PIC, -DPIC is meaningless:
20683 *djgpp*)
20684 lt_prog_compiler_pic_CXX=
20687 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20689 esac
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20691 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20696 # Check to make sure the PIC flag actually works.
20698 if test -n "$lt_prog_compiler_pic_CXX"; then
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20700 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20701 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20702 $as_echo_n "(cached) " >&6
20703 else
20704 lt_cv_prog_compiler_pic_works_CXX=no
20705 ac_outfile=conftest.$ac_objext
20706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20707 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20708 # Insert the option either (1) after the last *FLAGS variable, or
20709 # (2) before a word containing "conftest.", or (3) at the end.
20710 # Note that $ac_compile itself does not contain backslashes and begins
20711 # with a dollar sign (not a hyphen), so the echo should work correctly.
20712 # The option is referenced via a variable to avoid confusing sed.
20713 lt_compile=`echo "$ac_compile" | $SED \
20714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20716 -e 's:$: $lt_compiler_flag:'`
20717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20718 (eval "$lt_compile" 2>conftest.err)
20719 ac_status=$?
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 if (exit $ac_status) && test -s "$ac_outfile"; then
20723 # The compiler can only warn and ignore the option if not recognized
20724 # So say no if there are warnings other than the usual output.
20725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20728 lt_cv_prog_compiler_pic_works_CXX=yes
20731 $RM conftest*
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20735 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20737 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20738 case $lt_prog_compiler_pic_CXX in
20739 "" | " "*) ;;
20740 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20741 esac
20742 else
20743 lt_prog_compiler_pic_CXX=
20744 lt_prog_compiler_can_build_shared_CXX=no
20752 # Check to make sure the static flag actually works.
20754 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20756 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20757 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20758 $as_echo_n "(cached) " >&6
20759 else
20760 lt_cv_prog_compiler_static_works_CXX=no
20761 save_LDFLAGS="$LDFLAGS"
20762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20765 # The linker can only warn and ignore the option if not recognized
20766 # So say no if there are warnings
20767 if test -s conftest.err; then
20768 # Append any errors to the config.log.
20769 cat conftest.err 1>&5
20770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20772 if diff conftest.exp conftest.er2 >/dev/null; then
20773 lt_cv_prog_compiler_static_works_CXX=yes
20775 else
20776 lt_cv_prog_compiler_static_works_CXX=yes
20779 $RM -r conftest*
20780 LDFLAGS="$save_LDFLAGS"
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20784 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20786 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20788 else
20789 lt_prog_compiler_static_CXX=
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20797 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20798 $as_echo_n "(cached) " >&6
20799 else
20800 lt_cv_prog_compiler_c_o_CXX=no
20801 $RM -r conftest 2>/dev/null
20802 mkdir conftest
20803 cd conftest
20804 mkdir out
20805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20807 lt_compiler_flag="-o out/conftest2.$ac_objext"
20808 # Insert the option either (1) after the last *FLAGS variable, or
20809 # (2) before a word containing "conftest.", or (3) at the end.
20810 # Note that $ac_compile itself does not contain backslashes and begins
20811 # with a dollar sign (not a hyphen), so the echo should work correctly.
20812 lt_compile=`echo "$ac_compile" | $SED \
20813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20815 -e 's:$: $lt_compiler_flag:'`
20816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20817 (eval "$lt_compile" 2>out/conftest.err)
20818 ac_status=$?
20819 cat out/conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20822 then
20823 # The compiler can only warn and ignore the option if not recognized
20824 # So say no if there are warnings
20825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20826 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20827 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20828 lt_cv_prog_compiler_c_o_CXX=yes
20831 chmod u+w . 2>&5
20832 $RM conftest*
20833 # SGI C++ compiler will create directory out/ii_files/ for
20834 # template instantiation
20835 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20836 $RM out/* && rmdir out
20837 cd ..
20838 $RM -r conftest
20839 $RM conftest*
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20843 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20849 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20850 $as_echo_n "(cached) " >&6
20851 else
20852 lt_cv_prog_compiler_c_o_CXX=no
20853 $RM -r conftest 2>/dev/null
20854 mkdir conftest
20855 cd conftest
20856 mkdir out
20857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20859 lt_compiler_flag="-o out/conftest2.$ac_objext"
20860 # Insert the option either (1) after the last *FLAGS variable, or
20861 # (2) before a word containing "conftest.", or (3) at the end.
20862 # Note that $ac_compile itself does not contain backslashes and begins
20863 # with a dollar sign (not a hyphen), so the echo should work correctly.
20864 lt_compile=`echo "$ac_compile" | $SED \
20865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20867 -e 's:$: $lt_compiler_flag:'`
20868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20869 (eval "$lt_compile" 2>out/conftest.err)
20870 ac_status=$?
20871 cat out/conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20874 then
20875 # The compiler can only warn and ignore the option if not recognized
20876 # So say no if there are warnings
20877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20878 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20879 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20880 lt_cv_prog_compiler_c_o_CXX=yes
20883 chmod u+w . 2>&5
20884 $RM conftest*
20885 # SGI C++ compiler will create directory out/ii_files/ for
20886 # template instantiation
20887 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20888 $RM out/* && rmdir out
20889 cd ..
20890 $RM -r conftest
20891 $RM conftest*
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20895 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20900 hard_links="nottested"
20901 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20902 # do not overwrite the value of need_locks provided by the user
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20904 $as_echo_n "checking if we can lock with hard links... " >&6; }
20905 hard_links=yes
20906 $RM conftest*
20907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20908 touch conftest.a
20909 ln conftest.a conftest.b 2>&5 || hard_links=no
20910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20912 $as_echo "$hard_links" >&6; }
20913 if test "$hard_links" = no; then
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20916 need_locks=warn
20918 else
20919 need_locks=no
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20927 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20928 case $host_os in
20929 aix[4-9]*)
20930 # If we're using GNU nm, then we don't want the "-C" option.
20931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20932 # Also, AIX nm treats weak defined symbols like other global defined
20933 # symbols, whereas GNU nm marks them as "W".
20934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20935 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'
20936 else
20937 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'
20940 pw32*)
20941 export_symbols_cmds_CXX="$ltdll_cmds"
20943 cygwin* | mingw* | cegcc*)
20944 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'
20947 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20949 esac
20950 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20953 $as_echo "$ld_shlibs_CXX" >&6; }
20954 test "$ld_shlibs_CXX" = no && can_build_shared=no
20956 with_gnu_ld_CXX=$with_gnu_ld
20964 # Do we need to explicitly link libc?
20966 case "x$archive_cmds_need_lc_CXX" in
20967 x|xyes)
20968 # Assume -lc should be added
20969 archive_cmds_need_lc_CXX=yes
20971 if test "$enable_shared" = yes && test "$GCC" = yes; then
20972 case $archive_cmds_CXX in
20973 *'~'*)
20974 # FIXME: we may have to deal with multi-command sequences.
20976 '$CC '*)
20977 # Test whether the compiler implicitly links with -lc since on some
20978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20979 # to ld, don't add -lc before -lgcc.
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20981 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20982 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20983 $as_echo_n "(cached) " >&6
20984 else
20985 $RM conftest*
20986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20989 (eval $ac_compile) 2>&5
20990 ac_status=$?
20991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20992 test $ac_status = 0; } 2>conftest.err; then
20993 soname=conftest
20994 lib=conftest
20995 libobjs=conftest.$ac_objext
20996 deplibs=
20997 wl=$lt_prog_compiler_wl_CXX
20998 pic_flag=$lt_prog_compiler_pic_CXX
20999 compiler_flags=-v
21000 linker_flags=-v
21001 verstring=
21002 output_objdir=.
21003 libname=conftest
21004 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21005 allow_undefined_flag_CXX=
21006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21007 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21008 ac_status=$?
21009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21010 test $ac_status = 0; }
21011 then
21012 lt_cv_archive_cmds_need_lc_CXX=no
21013 else
21014 lt_cv_archive_cmds_need_lc_CXX=yes
21016 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21017 else
21018 cat conftest.err 1>&5
21020 $RM conftest*
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21024 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21025 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21027 esac
21030 esac
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21096 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21098 library_names_spec=
21099 libname_spec='lib$name'
21100 soname_spec=
21101 shrext_cmds=".so"
21102 postinstall_cmds=
21103 postuninstall_cmds=
21104 finish_cmds=
21105 finish_eval=
21106 shlibpath_var=
21107 shlibpath_overrides_runpath=unknown
21108 version_type=none
21109 dynamic_linker="$host_os ld.so"
21110 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21111 need_lib_prefix=unknown
21112 hardcode_into_libs=no
21114 # when you set need_version to no, make sure it does not cause -set_version
21115 # flags to be left without arguments
21116 need_version=unknown
21118 case $host_os in
21119 aix3*)
21120 version_type=linux
21121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21122 shlibpath_var=LIBPATH
21124 # AIX 3 has no versioning support, so we append a major version to the name.
21125 soname_spec='${libname}${release}${shared_ext}$major'
21128 aix[4-9]*)
21129 version_type=linux
21130 need_lib_prefix=no
21131 need_version=no
21132 hardcode_into_libs=yes
21133 if test "$host_cpu" = ia64; then
21134 # AIX 5 supports IA64
21135 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21136 shlibpath_var=LD_LIBRARY_PATH
21137 else
21138 # With GCC up to 2.95.x, collect2 would create an import file
21139 # for dependence libraries. The import file would start with
21140 # the line `#! .'. This would cause the generated library to
21141 # depend on `.', always an invalid library. This was fixed in
21142 # development snapshots of GCC prior to 3.0.
21143 case $host_os in
21144 aix4 | aix4.[01] | aix4.[01].*)
21145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21146 echo ' yes '
21147 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21149 else
21150 can_build_shared=no
21153 esac
21154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21155 # soname into executable. Probably we can add versioning support to
21156 # collect2, so additional links can be useful in future.
21157 if test "$aix_use_runtimelinking" = yes; then
21158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21159 # instead of lib<name>.a to let people know that these are not
21160 # typical AIX shared libraries.
21161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21162 else
21163 # We preserve .a as extension for shared libraries through AIX4.2
21164 # and later when we are not doing run time linking.
21165 library_names_spec='${libname}${release}.a $libname.a'
21166 soname_spec='${libname}${release}${shared_ext}$major'
21168 shlibpath_var=LIBPATH
21172 amigaos*)
21173 case $host_cpu in
21174 powerpc)
21175 # Since July 2007 AmigaOS4 officially supports .so libraries.
21176 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21179 m68k)
21180 library_names_spec='$libname.ixlibrary $libname.a'
21181 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21182 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'
21184 esac
21187 beos*)
21188 library_names_spec='${libname}${shared_ext}'
21189 dynamic_linker="$host_os ld.so"
21190 shlibpath_var=LIBRARY_PATH
21193 bsdi[45]*)
21194 version_type=linux
21195 need_version=no
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 soname_spec='${libname}${release}${shared_ext}$major'
21198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21199 shlibpath_var=LD_LIBRARY_PATH
21200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21202 # the default ld.so.conf also contains /usr/contrib/lib and
21203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21204 # libtool to hard-code these into programs
21207 cygwin* | mingw* | pw32* | cegcc*)
21208 version_type=windows
21209 shrext_cmds=".dll"
21210 need_version=no
21211 need_lib_prefix=no
21213 case $GCC,$host_os in
21214 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21215 library_names_spec='$libname.dll.a'
21216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21217 postinstall_cmds='base_file=`basename \${file}`~
21218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21219 dldir=$destdir/`dirname \$dlpath`~
21220 test -d \$dldir || mkdir -p \$dldir~
21221 $install_prog $dir/$dlname \$dldir/$dlname~
21222 chmod a+x \$dldir/$dlname~
21223 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21224 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21227 dlpath=$dir/\$dldll~
21228 $RM \$dlpath'
21229 shlibpath_overrides_runpath=yes
21231 case $host_os in
21232 cygwin*)
21233 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21234 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21237 mingw* | cegcc*)
21238 # MinGW DLLs use traditional 'lib' prefix
21239 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21241 pw32*)
21242 # pw32 DLLs use 'pw' prefix rather than 'lib'
21243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21245 esac
21249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21251 esac
21252 dynamic_linker='Win32 ld.exe'
21253 # FIXME: first we should search . and the directory the executable is in
21254 shlibpath_var=PATH
21257 darwin* | rhapsody*)
21258 dynamic_linker="$host_os dyld"
21259 version_type=darwin
21260 need_lib_prefix=no
21261 need_version=no
21262 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21263 soname_spec='${libname}${release}${major}$shared_ext'
21264 shlibpath_overrides_runpath=yes
21265 shlibpath_var=DYLD_LIBRARY_PATH
21266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21271 dgux*)
21272 version_type=linux
21273 need_lib_prefix=no
21274 need_version=no
21275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 shlibpath_var=LD_LIBRARY_PATH
21280 freebsd* | dragonfly*)
21281 # DragonFly does not have aout. When/if they implement a new
21282 # versioning mechanism, adjust this.
21283 if test -x /usr/bin/objformat; then
21284 objformat=`/usr/bin/objformat`
21285 else
21286 case $host_os in
21287 freebsd[23].*) objformat=aout ;;
21288 *) objformat=elf ;;
21289 esac
21291 version_type=freebsd-$objformat
21292 case $version_type in
21293 freebsd-elf*)
21294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21295 need_version=no
21296 need_lib_prefix=no
21298 freebsd-*)
21299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21300 need_version=yes
21302 esac
21303 shlibpath_var=LD_LIBRARY_PATH
21304 case $host_os in
21305 freebsd2.*)
21306 shlibpath_overrides_runpath=yes
21308 freebsd3.[01]* | freebsdelf3.[01]*)
21309 shlibpath_overrides_runpath=yes
21310 hardcode_into_libs=yes
21312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21314 shlibpath_overrides_runpath=no
21315 hardcode_into_libs=yes
21317 *) # from 4.6 on, and DragonFly
21318 shlibpath_overrides_runpath=yes
21319 hardcode_into_libs=yes
21321 esac
21324 gnu*)
21325 version_type=linux
21326 need_lib_prefix=no
21327 need_version=no
21328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21329 soname_spec='${libname}${release}${shared_ext}$major'
21330 shlibpath_var=LD_LIBRARY_PATH
21331 hardcode_into_libs=yes
21334 haiku*)
21335 version_type=linux
21336 need_lib_prefix=no
21337 need_version=no
21338 dynamic_linker="$host_os runtime_loader"
21339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21340 soname_spec='${libname}${release}${shared_ext}$major'
21341 shlibpath_var=LIBRARY_PATH
21342 shlibpath_overrides_runpath=yes
21343 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21344 hardcode_into_libs=yes
21347 hpux9* | hpux10* | hpux11*)
21348 # Give a soname corresponding to the major version so that dld.sl refuses to
21349 # link against other versions.
21350 version_type=sunos
21351 need_lib_prefix=no
21352 need_version=no
21353 case $host_cpu in
21354 ia64*)
21355 shrext_cmds='.so'
21356 hardcode_into_libs=yes
21357 dynamic_linker="$host_os dld.so"
21358 shlibpath_var=LD_LIBRARY_PATH
21359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21361 soname_spec='${libname}${release}${shared_ext}$major'
21362 if test "X$HPUX_IA64_MODE" = X32; then
21363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21364 else
21365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21369 hppa*64*)
21370 shrext_cmds='.sl'
21371 hardcode_into_libs=yes
21372 dynamic_linker="$host_os dld.sl"
21373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21376 soname_spec='${libname}${release}${shared_ext}$major'
21377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21381 shrext_cmds='.sl'
21382 dynamic_linker="$host_os dld.sl"
21383 shlibpath_var=SHLIB_PATH
21384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21386 soname_spec='${libname}${release}${shared_ext}$major'
21388 esac
21389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21390 postinstall_cmds='chmod 555 $lib'
21391 # or fails outright, so override atomically:
21392 install_override_mode=555
21395 interix[3-9]*)
21396 version_type=linux
21397 need_lib_prefix=no
21398 need_version=no
21399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21400 soname_spec='${libname}${release}${shared_ext}$major'
21401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21402 shlibpath_var=LD_LIBRARY_PATH
21403 shlibpath_overrides_runpath=no
21404 hardcode_into_libs=yes
21407 irix5* | irix6* | nonstopux*)
21408 case $host_os in
21409 nonstopux*) version_type=nonstopux ;;
21411 if test "$lt_cv_prog_gnu_ld" = yes; then
21412 version_type=linux
21413 else
21414 version_type=irix
21415 fi ;;
21416 esac
21417 need_lib_prefix=no
21418 need_version=no
21419 soname_spec='${libname}${release}${shared_ext}$major'
21420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21421 case $host_os in
21422 irix5* | nonstopux*)
21423 libsuff= shlibsuff=
21426 case $LD in # libtool.m4 will add one of these switches to LD
21427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21428 libsuff= shlibsuff= libmagic=32-bit;;
21429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21430 libsuff=32 shlibsuff=N32 libmagic=N32;;
21431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21433 *) libsuff= shlibsuff= libmagic=never-match;;
21434 esac
21436 esac
21437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21438 shlibpath_overrides_runpath=no
21439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21441 hardcode_into_libs=yes
21444 # No shared lib support for Linux oldld, aout, or coff.
21445 linux*oldld* | linux*aout* | linux*coff*)
21446 dynamic_linker=no
21449 # This must be Linux ELF.
21450 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21451 version_type=linux
21452 need_lib_prefix=no
21453 need_version=no
21454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21455 soname_spec='${libname}${release}${shared_ext}$major'
21456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21457 shlibpath_var=LD_LIBRARY_PATH
21458 shlibpath_overrides_runpath=no
21460 # Some binutils ld are patched to set DT_RUNPATH
21461 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21463 else
21464 lt_cv_shlibpath_overrides_runpath=no
21465 save_LDFLAGS=$LDFLAGS
21466 save_libdir=$libdir
21467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21470 /* end confdefs.h. */
21473 main ()
21477 return 0;
21479 _ACEOF
21480 if ac_fn_cxx_try_link "$LINENO"; then :
21481 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21482 lt_cv_shlibpath_overrides_runpath=yes
21485 rm -f core conftest.err conftest.$ac_objext \
21486 conftest$ac_exeext conftest.$ac_ext
21487 LDFLAGS=$save_LDFLAGS
21488 libdir=$save_libdir
21492 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21494 # This implies no fast_install, which is unacceptable.
21495 # Some rework will be needed to allow for fast_install
21496 # before this can be enabled.
21497 hardcode_into_libs=yes
21499 # Append ld.so.conf contents to the search path
21500 if test -f /etc/ld.so.conf; then
21501 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' ' '`
21502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21505 # We used to test for /lib/ld.so.1 and disable shared libraries on
21506 # powerpc, because MkLinux only supported shared libraries with the
21507 # GNU dynamic linker. Since this was broken with cross compilers,
21508 # most powerpc-linux boxes support dynamic linking these days and
21509 # people can always --disable-shared, the test was removed, and we
21510 # assume the GNU/Linux dynamic linker is in use.
21511 dynamic_linker='GNU/Linux ld.so'
21514 netbsd*)
21515 version_type=sunos
21516 need_lib_prefix=no
21517 need_version=no
21518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21521 dynamic_linker='NetBSD (a.out) ld.so'
21522 else
21523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21524 soname_spec='${libname}${release}${shared_ext}$major'
21525 dynamic_linker='NetBSD ld.elf_so'
21527 shlibpath_var=LD_LIBRARY_PATH
21528 shlibpath_overrides_runpath=yes
21529 hardcode_into_libs=yes
21532 newsos6)
21533 version_type=linux
21534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21535 shlibpath_var=LD_LIBRARY_PATH
21536 shlibpath_overrides_runpath=yes
21539 *nto* | *qnx*)
21540 version_type=qnx
21541 need_lib_prefix=no
21542 need_version=no
21543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21544 soname_spec='${libname}${release}${shared_ext}$major'
21545 shlibpath_var=LD_LIBRARY_PATH
21546 shlibpath_overrides_runpath=no
21547 hardcode_into_libs=yes
21548 dynamic_linker='ldqnx.so'
21551 openbsd*)
21552 version_type=sunos
21553 sys_lib_dlsearch_path_spec="/usr/lib"
21554 need_lib_prefix=no
21555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21556 case $host_os in
21557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21558 *) need_version=no ;;
21559 esac
21560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21562 shlibpath_var=LD_LIBRARY_PATH
21563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21564 case $host_os in
21565 openbsd2.[89] | openbsd2.[89].*)
21566 shlibpath_overrides_runpath=no
21569 shlibpath_overrides_runpath=yes
21571 esac
21572 else
21573 shlibpath_overrides_runpath=yes
21577 os2*)
21578 libname_spec='$name'
21579 shrext_cmds=".dll"
21580 need_lib_prefix=no
21581 library_names_spec='$libname${shared_ext} $libname.a'
21582 dynamic_linker='OS/2 ld.exe'
21583 shlibpath_var=LIBPATH
21586 osf3* | osf4* | osf5*)
21587 version_type=osf
21588 need_lib_prefix=no
21589 need_version=no
21590 soname_spec='${libname}${release}${shared_ext}$major'
21591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21592 shlibpath_var=LD_LIBRARY_PATH
21593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21597 rdos*)
21598 dynamic_linker=no
21601 solaris*)
21602 version_type=linux
21603 need_lib_prefix=no
21604 need_version=no
21605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21606 soname_spec='${libname}${release}${shared_ext}$major'
21607 shlibpath_var=LD_LIBRARY_PATH
21608 shlibpath_overrides_runpath=yes
21609 hardcode_into_libs=yes
21610 # ldd complains unless libraries are executable
21611 postinstall_cmds='chmod +x $lib'
21614 sunos4*)
21615 version_type=sunos
21616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21618 shlibpath_var=LD_LIBRARY_PATH
21619 shlibpath_overrides_runpath=yes
21620 if test "$with_gnu_ld" = yes; then
21621 need_lib_prefix=no
21623 need_version=yes
21626 sysv4 | sysv4.3*)
21627 version_type=linux
21628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21629 soname_spec='${libname}${release}${shared_ext}$major'
21630 shlibpath_var=LD_LIBRARY_PATH
21631 case $host_vendor in
21632 sni)
21633 shlibpath_overrides_runpath=no
21634 need_lib_prefix=no
21635 runpath_var=LD_RUN_PATH
21637 siemens)
21638 need_lib_prefix=no
21640 motorola)
21641 need_lib_prefix=no
21642 need_version=no
21643 shlibpath_overrides_runpath=no
21644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21646 esac
21649 sysv4*MP*)
21650 if test -d /usr/nec ;then
21651 version_type=linux
21652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21653 soname_spec='$libname${shared_ext}.$major'
21654 shlibpath_var=LD_LIBRARY_PATH
21658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21659 version_type=freebsd-elf
21660 need_lib_prefix=no
21661 need_version=no
21662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21663 soname_spec='${libname}${release}${shared_ext}$major'
21664 shlibpath_var=LD_LIBRARY_PATH
21665 shlibpath_overrides_runpath=yes
21666 hardcode_into_libs=yes
21667 if test "$with_gnu_ld" = yes; then
21668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21669 else
21670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21671 case $host_os in
21672 sco3.2v5*)
21673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21675 esac
21677 sys_lib_dlsearch_path_spec='/usr/lib'
21680 tpf*)
21681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21682 version_type=linux
21683 need_lib_prefix=no
21684 need_version=no
21685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21686 shlibpath_var=LD_LIBRARY_PATH
21687 shlibpath_overrides_runpath=no
21688 hardcode_into_libs=yes
21691 uts4*)
21692 version_type=linux
21693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21694 soname_spec='${libname}${release}${shared_ext}$major'
21695 shlibpath_var=LD_LIBRARY_PATH
21699 dynamic_linker=no
21701 esac
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21703 $as_echo "$dynamic_linker" >&6; }
21704 test "$dynamic_linker" = no && can_build_shared=no
21706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21707 if test "$GCC" = yes; then
21708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21757 hardcode_action_CXX=
21758 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21759 test -n "$runpath_var_CXX" ||
21760 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21762 # We can hardcode non-existent directories.
21763 if test "$hardcode_direct_CXX" != no &&
21764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21765 # have to relink, otherwise we might link with an installed library
21766 # when we should be linking with a yet-to-be-installed one
21767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21768 test "$hardcode_minus_L_CXX" != no; then
21769 # Linking always hardcodes the temporary library directory.
21770 hardcode_action_CXX=relink
21771 else
21772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21773 hardcode_action_CXX=immediate
21775 else
21776 # We cannot hardcode anything, or else we can only hardcode existing
21777 # directories.
21778 hardcode_action_CXX=unsupported
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21781 $as_echo "$hardcode_action_CXX" >&6; }
21783 if test "$hardcode_action_CXX" = relink ||
21784 test "$inherit_rpath_CXX" = yes; then
21785 # Fast installation is not supported
21786 enable_fast_install=no
21787 elif test "$shlibpath_overrides_runpath" = yes ||
21788 test "$enable_shared" = no; then
21789 # Fast installation is not necessary
21790 enable_fast_install=needless
21799 fi # test -n "$compiler"
21801 CC=$lt_save_CC
21802 LDCXX=$LD
21803 LD=$lt_save_LD
21804 GCC=$lt_save_GCC
21805 with_gnu_ld=$lt_save_with_gnu_ld
21806 lt_cv_path_LDCXX=$lt_cv_path_LD
21807 lt_cv_path_LD=$lt_save_path_LD
21808 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21809 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21810 fi # test "$_lt_caught_CXX_error" != yes
21812 ac_ext=cpp
21813 ac_cpp='$CXXCPP $CPPFLAGS'
21814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21833 # Only expand once:
21839 # Identify the assembler which will work hand-in-glove with the newly
21840 # built GCC, so that we can examine its features. This is the assembler
21841 # which will be driven by the driver program.
21843 # If build != host, and we aren't building gas in-tree, we identify a
21844 # build->target assembler and hope that it will have the same features
21845 # as the host->target assembler we'll be using.
21846 gcc_cv_gas_major_version=
21847 gcc_cv_gas_minor_version=
21848 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21850 if test "${gcc_cv_as+set}" = set; then :
21852 else
21854 if test -x "$DEFAULT_ASSEMBLER"; then
21855 gcc_cv_as="$DEFAULT_ASSEMBLER"
21856 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21857 && test -f ../gas/Makefile \
21858 && test x$build = x$host; then
21859 gcc_cv_as=../gas/as-new$build_exeext
21860 elif test -x as$build_exeext; then
21861 # Build using assembler in the current directory.
21862 gcc_cv_as=./as$build_exeext
21863 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21864 gcc_cv_as="$AS_FOR_TARGET"
21865 else
21866 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21867 set dummy $AS_FOR_TARGET; ac_word=$2
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21869 $as_echo_n "checking for $ac_word... " >&6; }
21870 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21871 $as_echo_n "(cached) " >&6
21872 else
21873 case $gcc_cv_as in
21874 [\\/]* | ?:[\\/]*)
21875 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21879 for as_dir in $PATH
21881 IFS=$as_save_IFS
21882 test -z "$as_dir" && as_dir=.
21883 for ac_exec_ext in '' $ac_executable_extensions; do
21884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21885 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21887 break 2
21889 done
21890 done
21891 IFS=$as_save_IFS
21894 esac
21896 gcc_cv_as=$ac_cv_path_gcc_cv_as
21897 if test -n "$gcc_cv_as"; then
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21899 $as_echo "$gcc_cv_as" >&6; }
21900 else
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 $as_echo "no" >&6; }
21909 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21911 case "$ORIGINAL_AS_FOR_TARGET" in
21912 ./as | ./as$build_exeext) ;;
21913 *) ac_config_files="$ac_config_files as:exec-tool.in"
21915 esac
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21918 $as_echo_n "checking what assembler to use... " >&6; }
21919 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21920 # Single tree build which includes gas. We want to prefer it
21921 # over whatever linker top-level may have detected, since
21922 # we'll use what we're building after installation anyway.
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21924 $as_echo "newly built gas" >&6; }
21925 in_tree_gas=yes
21926 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21927 for f in $gcc_cv_as_bfd_srcdir/configure \
21928 $gcc_cv_as_gas_srcdir/configure \
21929 $gcc_cv_as_gas_srcdir/configure.ac \
21930 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21931 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21932 if test x$gcc_cv_gas_version != x; then
21933 break
21935 done
21936 case $gcc_cv_gas_version in
21937 VERSION=[0-9]*) ;;
21938 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21939 esac
21940 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21941 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21942 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21943 case $gcc_cv_gas_patch_version in
21944 "") gcc_cv_gas_patch_version="0" ;;
21945 esac
21946 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21947 + $gcc_cv_gas_minor_version \) \* 1000 \
21948 + $gcc_cv_gas_patch_version`
21950 in_tree_gas_is_elf=no
21951 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21952 || (grep 'obj_format = multi' ../gas/Makefile \
21953 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21954 then
21955 in_tree_gas_is_elf=yes
21957 else
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21959 $as_echo "$gcc_cv_as" >&6; }
21960 in_tree_gas=no
21963 default_ld=
21964 # Check whether --enable-ld was given.
21965 if test "${enable_ld+set}" = set; then :
21966 enableval=$enable_ld; case "${enableval}" in
21968 default_ld=ld.gold
21970 esac
21974 install_gold_as_default=no
21975 # Check whether --enable-gold was given.
21976 if test "${enable_gold+set}" = set; then :
21977 enableval=$enable_gold; case "${enableval}" in
21978 default)
21979 install_gold_as_default=yes
21981 yes)
21982 if test x${default_ld} != x; then
21983 install_gold_as_default=yes
21989 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21991 esac
21995 # Identify the linker which will work hand-in-glove with the newly
21996 # built GCC, so that we can examine its features. This is the linker
21997 # which will be driven by the driver program.
21999 # If build != host, and we aren't building gas in-tree, we identify a
22000 # build->target linker and hope that it will have the same features
22001 # as the host->target linker we'll be using.
22002 gcc_cv_gld_major_version=
22003 gcc_cv_gld_minor_version=
22004 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22005 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22006 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22008 if test "${gcc_cv_ld+set}" = set; then :
22010 else
22012 if test -x "$DEFAULT_LINKER"; then
22013 gcc_cv_ld="$DEFAULT_LINKER"
22014 elif test $install_gold_as_default = yes \
22015 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22016 && test -f ../gold/Makefile \
22017 && test x$build = x$host; then
22018 gcc_cv_ld=../gold/ld-new$build_exeext
22019 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22020 && test -f ../ld/Makefile \
22021 && test x$build = x$host; then
22022 gcc_cv_ld=../ld/ld-new$build_exeext
22023 elif test -x collect-ld$build_exeext; then
22024 # Build using linker in the current directory.
22025 gcc_cv_ld=./collect-ld$build_exeext
22026 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22027 gcc_cv_ld="$LD_FOR_TARGET"
22028 else
22029 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22030 set dummy $LD_FOR_TARGET; ac_word=$2
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22032 $as_echo_n "checking for $ac_word... " >&6; }
22033 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22034 $as_echo_n "(cached) " >&6
22035 else
22036 case $gcc_cv_ld in
22037 [\\/]* | ?:[\\/]*)
22038 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22042 for as_dir in $PATH
22044 IFS=$as_save_IFS
22045 test -z "$as_dir" && as_dir=.
22046 for ac_exec_ext in '' $ac_executable_extensions; do
22047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22048 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22050 break 2
22052 done
22053 done
22054 IFS=$as_save_IFS
22057 esac
22059 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22060 if test -n "$gcc_cv_ld"; then
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22062 $as_echo "$gcc_cv_ld" >&6; }
22063 else
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065 $as_echo "no" >&6; }
22072 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22073 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22074 # if the PLUGIN_LD is set ld-new, just have it as ld
22075 # as that is the installed named.
22076 if test x$PLUGIN_LD_SUFFIX = xld-new \
22077 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22078 PLUGIN_LD_SUFFIX=ld
22081 # Check whether --with-plugin-ld was given.
22082 if test "${with_plugin_ld+set}" = set; then :
22083 withval=$with_plugin_ld; if test x"$withval" != x; then
22084 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22085 PLUGIN_LD_SUFFIX="$withval"
22091 cat >>confdefs.h <<_ACEOF
22092 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22093 _ACEOF
22096 # Check to see if we are using gold instead of ld
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22098 $as_echo_n "checking whether we are using gold... " >&6; }
22099 ld_is_gold=no
22100 if test x$gcc_cv_ld != x; then
22101 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22102 | grep "GNU gold" > /dev/null; then
22103 ld_is_gold=yes
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22107 $as_echo "$ld_is_gold" >&6; }
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22110 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22111 # Check to see if default ld is not gold, but gold is
22112 # available and has support for split stack. If gcc was configured
22113 # with gold then no checking is done.
22115 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22117 # For platforms other than powerpc64*, enable as appropriate.
22119 gold_non_default=no
22120 ld_gold=`which ${gcc_cv_ld}.gold`
22121 # Make sure this gold has minimal split stack support
22122 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22123 ld_vers=`$ld_gold --version | sed 1q`
22124 gold_vers=`echo $ld_vers | sed -n \
22125 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22126 case $target in
22127 # check that the gold version contains the complete split stack support
22128 # on powerpc64 big and little endian
22129 powerpc64*-*-*)
22130 case "$gold_vers" in
22131 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22133 *) gold_non_default=no
22135 esac
22137 esac
22139 if test $gold_non_default = yes; then
22141 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22146 $as_echo "$gold_non_default" >&6; }
22148 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22150 case "$ORIGINAL_LD_FOR_TARGET" in
22151 ./collect-ld | ./collect-ld$build_exeext) ;;
22152 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22154 esac
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22157 $as_echo_n "checking what linker to use... " >&6; }
22158 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22159 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22160 # Single tree build which includes ld. We want to prefer it
22161 # over whatever linker top-level may have detected, since
22162 # we'll use what we're building after installation anyway.
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22164 $as_echo "newly built ld" >&6; }
22165 in_tree_ld=yes
22166 in_tree_ld_is_elf=no
22167 if (grep 'EMUL = .*elf' ../ld/Makefile \
22168 || grep 'EMUL = .*linux' ../ld/Makefile \
22169 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22170 in_tree_ld_is_elf=yes
22171 elif test "$ld_is_gold" = yes; then
22172 in_tree_ld_is_elf=yes
22174 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
22176 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22177 if test x$gcc_cv_gld_version != x; then
22178 break
22180 done
22181 case $gcc_cv_gld_version in
22182 VERSION=[0-9]*) ;;
22183 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22184 esac
22185 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22186 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22187 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22188 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22189 else
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22191 $as_echo "$gcc_cv_ld" >&6; }
22192 in_tree_ld=no
22193 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22194 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22195 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22201 # Figure out what nm we will be using.
22202 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22203 if test "${gcc_cv_nm+set}" = set; then :
22205 else
22207 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22208 && test -f ../binutils/Makefile \
22209 && test x$build = x$host; then
22210 gcc_cv_nm=../binutils/nm-new$build_exeext
22211 elif test -x nm$build_exeext; then
22212 gcc_cv_nm=./nm$build_exeext
22213 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22214 gcc_cv_nm="$NM_FOR_TARGET"
22215 else
22216 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22217 set dummy $NM_FOR_TARGET; ac_word=$2
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22219 $as_echo_n "checking for $ac_word... " >&6; }
22220 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22221 $as_echo_n "(cached) " >&6
22222 else
22223 case $gcc_cv_nm in
22224 [\\/]* | ?:[\\/]*)
22225 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22229 for as_dir in $PATH
22231 IFS=$as_save_IFS
22232 test -z "$as_dir" && as_dir=.
22233 for ac_exec_ext in '' $ac_executable_extensions; do
22234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22235 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22237 break 2
22239 done
22240 done
22241 IFS=$as_save_IFS
22244 esac
22246 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22247 if test -n "$gcc_cv_nm"; then
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22249 $as_echo "$gcc_cv_nm" >&6; }
22250 else
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22252 $as_echo "no" >&6; }
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22260 $as_echo_n "checking what nm to use... " >&6; }
22261 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22262 # Single tree build which includes binutils.
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22264 $as_echo "newly built nm" >&6; }
22265 in_tree_nm=yes
22266 else
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22268 $as_echo "$gcc_cv_nm" >&6; }
22269 in_tree_nm=no
22272 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22274 case "$ORIGINAL_NM_FOR_TARGET" in
22275 ./nm | ./nm$build_exeext) ;;
22276 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22278 esac
22281 # Figure out what objdump we will be using.
22282 if test "${gcc_cv_objdump+set}" = set; then :
22284 else
22286 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22287 && test -f ../binutils/Makefile \
22288 && test x$build = x$host; then
22289 # Single tree build which includes binutils.
22290 gcc_cv_objdump=../binutils/objdump$build_exeext
22291 elif test -x objdump$build_exeext; then
22292 gcc_cv_objdump=./objdump$build_exeext
22293 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22294 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22295 else
22296 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22297 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22299 $as_echo_n "checking for $ac_word... " >&6; }
22300 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22301 $as_echo_n "(cached) " >&6
22302 else
22303 case $gcc_cv_objdump in
22304 [\\/]* | ?:[\\/]*)
22305 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22309 for as_dir in $PATH
22311 IFS=$as_save_IFS
22312 test -z "$as_dir" && as_dir=.
22313 for ac_exec_ext in '' $ac_executable_extensions; do
22314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22315 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22317 break 2
22319 done
22320 done
22321 IFS=$as_save_IFS
22324 esac
22326 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22327 if test -n "$gcc_cv_objdump"; then
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22329 $as_echo "$gcc_cv_objdump" >&6; }
22330 else
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22332 $as_echo "no" >&6; }
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22340 $as_echo_n "checking what objdump to use... " >&6; }
22341 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22342 # Single tree build which includes binutils.
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22344 $as_echo "newly built objdump" >&6; }
22345 elif test x$gcc_cv_objdump = x; then
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22347 $as_echo "not found" >&6; }
22348 else
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22350 $as_echo "$gcc_cv_objdump" >&6; }
22353 # Figure out what readelf we will be using.
22354 if test "${gcc_cv_readelf+set}" = set; then :
22356 else
22358 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22359 && test -f ../binutils/Makefile \
22360 && test x$build = x$host; then
22361 # Single tree build which includes binutils.
22362 gcc_cv_readelf=../binutils/readelf$build_exeext
22363 elif test -x readelf$build_exeext; then
22364 gcc_cv_readelf=./readelf$build_exeext
22365 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22366 gcc_cv_readelf="$READELF_FOR_TARGET"
22367 else
22368 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22369 set dummy $READELF_FOR_TARGET; ac_word=$2
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22371 $as_echo_n "checking for $ac_word... " >&6; }
22372 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22373 $as_echo_n "(cached) " >&6
22374 else
22375 case $gcc_cv_readelf in
22376 [\\/]* | ?:[\\/]*)
22377 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22381 for as_dir in $PATH
22383 IFS=$as_save_IFS
22384 test -z "$as_dir" && as_dir=.
22385 for ac_exec_ext in '' $ac_executable_extensions; do
22386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22387 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22389 break 2
22391 done
22392 done
22393 IFS=$as_save_IFS
22396 esac
22398 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22399 if test -n "$gcc_cv_readelf"; then
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22401 $as_echo "$gcc_cv_readelf" >&6; }
22402 else
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22404 $as_echo "no" >&6; }
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22412 $as_echo_n "checking what readelf to use... " >&6; }
22413 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22414 # Single tree build which includes binutils.
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22416 $as_echo "newly built readelf" >&6; }
22417 elif test x$gcc_cv_readelf = x; then
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22419 $as_echo "not found" >&6; }
22420 else
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22422 $as_echo "$gcc_cv_readelf" >&6; }
22425 # Figure out what assembler alignment features are present.
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22427 $as_echo_n "checking assembler flags... " >&6; }
22428 if test "${gcc_cv_as_flags+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22430 else
22431 case "$target" in
22432 i[34567]86-*-linux*)
22433 gcc_cv_as_flags=--32
22435 x86_64-*-linux-gnux32)
22436 gcc_cv_as_flags=--x32
22438 x86_64-*-linux*)
22439 gcc_cv_as_flags=--64
22441 powerpc*-*-darwin*)
22442 gcc_cv_as_flags="-arch ppc"
22445 gcc_cv_as_flags=" "
22447 esac
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22450 $as_echo "$gcc_cv_as_flags" >&6; }
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22453 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22454 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 gcc_cv_as_balign_and_p2align=no
22458 if test $in_tree_gas = yes; then
22459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22460 then gcc_cv_as_balign_and_p2align=yes
22462 elif test x$gcc_cv_as != x; then
22463 $as_echo '.balign 4
22464 .p2align 2' > conftest.s
22465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470 test $ac_status = 0; }; }
22471 then
22472 gcc_cv_as_balign_and_p2align=yes
22473 else
22474 echo "configure: failed program was" >&5
22475 cat conftest.s >&5
22477 rm -f conftest.o conftest.s
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22481 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22482 if test $gcc_cv_as_balign_and_p2align = yes; then
22484 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22489 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22490 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22491 $as_echo_n "(cached) " >&6
22492 else
22493 gcc_cv_as_max_skip_p2align=no
22494 if test $in_tree_gas = yes; then
22495 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22496 then gcc_cv_as_max_skip_p2align=yes
22498 elif test x$gcc_cv_as != x; then
22499 $as_echo '.p2align 4,,7' > conftest.s
22500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22505 test $ac_status = 0; }; }
22506 then
22507 gcc_cv_as_max_skip_p2align=yes
22508 else
22509 echo "configure: failed program was" >&5
22510 cat conftest.s >&5
22512 rm -f conftest.o conftest.s
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22516 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22517 if test $gcc_cv_as_max_skip_p2align = yes; then
22519 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22524 $as_echo_n "checking assembler for .literal16... " >&6; }
22525 if test "${gcc_cv_as_literal16+set}" = set; then :
22526 $as_echo_n "(cached) " >&6
22527 else
22528 gcc_cv_as_literal16=no
22529 if test $in_tree_gas = yes; then
22530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22531 then gcc_cv_as_literal16=yes
22533 elif test x$gcc_cv_as != x; then
22534 $as_echo '.literal16' > conftest.s
22535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22537 (eval $ac_try) 2>&5
22538 ac_status=$?
22539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22540 test $ac_status = 0; }; }
22541 then
22542 gcc_cv_as_literal16=yes
22543 else
22544 echo "configure: failed program was" >&5
22545 cat conftest.s >&5
22547 rm -f conftest.o conftest.s
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22551 $as_echo "$gcc_cv_as_literal16" >&6; }
22552 if test $gcc_cv_as_literal16 = yes; then
22554 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22559 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22560 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562 else
22563 gcc_cv_as_subsection_m1=no
22564 if test $in_tree_gas = yes; then
22565 if test $in_tree_gas_is_elf = yes \
22566 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22567 then gcc_cv_as_subsection_m1=yes
22569 elif test x$gcc_cv_as != x; then
22570 $as_echo 'conftest_label1: .word 0
22571 .subsection -1
22572 conftest_label2: .word 0
22573 .previous' > conftest.s
22574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22576 (eval $ac_try) 2>&5
22577 ac_status=$?
22578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22579 test $ac_status = 0; }; }
22580 then
22581 if test x$gcc_cv_nm != x; then
22582 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22583 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22584 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22585 then :
22586 else gcc_cv_as_subsection_m1=yes
22588 rm -f conftest.nm1 conftest.nm2
22590 else
22591 echo "configure: failed program was" >&5
22592 cat conftest.s >&5
22594 rm -f conftest.o conftest.s
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22598 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22599 if test $gcc_cv_as_subsection_m1 = yes; then
22601 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22606 $as_echo_n "checking assembler for .weak... " >&6; }
22607 if test "${gcc_cv_as_weak+set}" = set; then :
22608 $as_echo_n "(cached) " >&6
22609 else
22610 gcc_cv_as_weak=no
22611 if test $in_tree_gas = yes; then
22612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22613 then gcc_cv_as_weak=yes
22615 elif test x$gcc_cv_as != x; then
22616 $as_echo ' .weak foobar' > conftest.s
22617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
22621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22622 test $ac_status = 0; }; }
22623 then
22624 gcc_cv_as_weak=yes
22625 else
22626 echo "configure: failed program was" >&5
22627 cat conftest.s >&5
22629 rm -f conftest.o conftest.s
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22633 $as_echo "$gcc_cv_as_weak" >&6; }
22634 if test $gcc_cv_as_weak = yes; then
22636 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22641 $as_echo_n "checking assembler for .weakref... " >&6; }
22642 if test "${gcc_cv_as_weakref+set}" = set; then :
22643 $as_echo_n "(cached) " >&6
22644 else
22645 gcc_cv_as_weakref=no
22646 if test $in_tree_gas = yes; then
22647 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22648 then gcc_cv_as_weakref=yes
22650 elif test x$gcc_cv_as != x; then
22651 $as_echo ' .weakref foobar, barfnot' > conftest.s
22652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22654 (eval $ac_try) 2>&5
22655 ac_status=$?
22656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22657 test $ac_status = 0; }; }
22658 then
22659 gcc_cv_as_weakref=yes
22660 else
22661 echo "configure: failed program was" >&5
22662 cat conftest.s >&5
22664 rm -f conftest.o conftest.s
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22668 $as_echo "$gcc_cv_as_weakref" >&6; }
22669 if test $gcc_cv_as_weakref = yes; then
22671 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22676 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22677 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22678 $as_echo_n "(cached) " >&6
22679 else
22680 gcc_cv_as_nsubspa_comdat=no
22681 if test $in_tree_gas = yes; then
22682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22683 then gcc_cv_as_nsubspa_comdat=yes
22685 elif test x$gcc_cv_as != x; then
22686 $as_echo ' .SPACE $TEXT$
22687 .NSUBSPA $CODE$,COMDAT' > conftest.s
22688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; }; }
22694 then
22695 gcc_cv_as_nsubspa_comdat=yes
22696 else
22697 echo "configure: failed program was" >&5
22698 cat conftest.s >&5
22700 rm -f conftest.o conftest.s
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22704 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22705 if test $gcc_cv_as_nsubspa_comdat = yes; then
22707 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22711 # .hidden needs to be supported in both the assembler and the linker,
22712 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22713 # This is irritatingly difficult to feature test for; we have to check the
22714 # date string after the version number. If we've got an in-tree
22715 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22716 # to be safe.
22717 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22719 $as_echo_n "checking assembler for .hidden... " >&6; }
22720 if test "${gcc_cv_as_hidden+set}" = set; then :
22721 $as_echo_n "(cached) " >&6
22722 else
22723 gcc_cv_as_hidden=no
22724 if test $in_tree_gas = yes; then
22725 if test $in_tree_gas_is_elf = yes \
22726 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22727 then gcc_cv_as_hidden=yes
22729 elif test x$gcc_cv_as != x; then
22730 $as_echo ' .hidden foobar
22731 foobar:' > conftest.s
22732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22734 (eval $ac_try) 2>&5
22735 ac_status=$?
22736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22737 test $ac_status = 0; }; }
22738 then
22739 gcc_cv_as_hidden=yes
22740 else
22741 echo "configure: failed program was" >&5
22742 cat conftest.s >&5
22744 rm -f conftest.o conftest.s
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22748 $as_echo "$gcc_cv_as_hidden" >&6; }
22750 case "${target}" in
22751 *-*-darwin*)
22752 # Darwin as has some visibility support, though with a different syntax.
22753 gcc_cv_as_hidden=yes
22755 esac
22757 # gnu_indirect_function type is an extension proposed at
22758 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22759 # selection of function implementation
22760 # Check whether --enable-gnu-indirect-function was given.
22761 if test "${enable_gnu_indirect_function+set}" = set; then :
22762 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22763 yes | no) ;;
22764 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22765 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22766 esac
22767 else
22768 enable_gnu_indirect_function="$default_gnu_indirect_function"
22772 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22774 cat >>confdefs.h <<_ACEOF
22775 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22776 _ACEOF
22780 if test $in_tree_ld != yes ; then
22781 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22782 if echo "$ld_ver" | grep GNU > /dev/null; then
22783 if test x"$ld_is_gold" = xyes; then
22784 # GNU gold --version looks like this:
22786 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22788 # We extract the binutils version which is more familiar and specific
22789 # than the gold version.
22790 ld_vers=`echo $ld_ver | sed -n \
22791 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22792 else
22793 # GNU ld --version looks like this:
22795 # GNU ld (GNU Binutils) 2.21.51.20110225
22796 ld_vers=`echo $ld_ver | sed -n \
22797 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22799 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'`
22800 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22801 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22802 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22803 else
22804 case "${target}" in
22805 *-*-solaris2*)
22806 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22807 # format.
22809 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22810 # /usr/ccs/bin/ld has been configured.
22811 ld_ver=`$gcc_cv_ld -V 2>&1`
22812 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22813 ld_vers=`echo $ld_ver | sed -n \
22814 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22815 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22816 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22819 esac
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22824 $as_echo_n "checking linker for .hidden support... " >&6; }
22825 if test "${gcc_cv_ld_hidden+set}" = set; then :
22826 $as_echo_n "(cached) " >&6
22827 else
22828 if test $in_tree_ld = yes ; then
22829 gcc_cv_ld_hidden=no
22830 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 \
22831 && test $in_tree_ld_is_elf = yes; then
22832 gcc_cv_ld_hidden=yes
22834 else
22835 gcc_cv_ld_hidden=yes
22836 if test x"$ld_is_gold" = xyes; then
22838 elif echo "$ld_ver" | grep GNU > /dev/null; then
22839 case "${target}" in
22840 mmix-knuth-mmixware)
22841 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22842 gcc_cv_ld_hidden=no
22844 esac
22845 if test 0"$ld_date" -lt 20020404; then
22846 if test -n "$ld_date"; then
22847 # If there was date string, but was earlier than 2002-04-04, fail
22848 gcc_cv_ld_hidden=no
22849 elif test -z "$ld_vers"; then
22850 # If there was no date string nor ld version number, something is wrong
22851 gcc_cv_ld_hidden=no
22852 else
22853 test -z "$ld_vers_patch" && ld_vers_patch=0
22854 if test "$ld_vers_major" -lt 2; then
22855 gcc_cv_ld_hidden=no
22856 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22857 gcc_cv_ld_hidden="no"
22858 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22859 gcc_cv_ld_hidden=no
22863 else
22864 case "${target}" in
22865 *-*-darwin*)
22866 # Darwin ld has some visibility support.
22867 gcc_cv_ld_hidden=yes
22869 hppa64*-*-hpux* | ia64*-*-hpux*)
22870 gcc_cv_ld_hidden=yes
22872 *-*-solaris2.1[0-9]*)
22873 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22874 # .symbolic was only added in Solaris 9 12/02.
22875 gcc_cv_ld_hidden=yes
22878 gcc_cv_ld_hidden=no
22880 esac
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22885 $as_echo "$gcc_cv_ld_hidden" >&6; }
22886 libgcc_visibility=no
22889 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22890 libgcc_visibility=yes
22892 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22897 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22898 gcc_cv_ld_ro_rw_mix=unknown
22899 if test $in_tree_ld = yes ; then
22900 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 \
22901 && test $in_tree_ld_is_elf = yes; then
22902 gcc_cv_ld_ro_rw_mix=read-write
22904 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22905 echo '.section myfoosect, "a"' > conftest1.s
22906 echo '.section myfoosect, "aw"' > conftest2.s
22907 echo '.byte 1' >> conftest2.s
22908 echo '.section myfoosect, "a"' > conftest3.s
22909 echo '.byte 0' >> conftest3.s
22910 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22911 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22912 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22913 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22914 conftest2.o conftest3.o > /dev/null 2>&1; then
22915 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22916 | sed -e '/myfoosect/!d' -e N`
22917 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22918 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22919 gcc_cv_ld_ro_rw_mix=read-only
22920 else
22921 gcc_cv_ld_ro_rw_mix=read-write
22925 rm -f conftest.* conftest[123].*
22927 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22929 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22933 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22935 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22936 case "${target}" in
22937 *-*-solaris2*)
22939 # Solaris 2 ld -V output looks like this for a regular version:
22941 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22943 # but test versions add stuff at the end:
22945 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22947 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22948 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22949 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22950 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22951 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22952 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22955 esac
22958 # Check whether --enable-initfini-array was given.
22959 if test "${enable_initfini_array+set}" = set; then :
22960 enableval=$enable_initfini_array;
22961 else
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22964 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22965 if test "${gcc_cv_initfini_array+set}" = set; then :
22966 $as_echo_n "(cached) " >&6
22967 else
22968 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22969 case "${target}" in
22970 ia64-*)
22971 if test "$cross_compiling" = yes; then :
22972 gcc_cv_initfini_array=no
22973 else
22974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22975 /* end confdefs.h. */
22977 #ifndef __ELF__
22978 #error Not an ELF OS
22979 #endif
22980 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22981 if it can be used. */
22982 static int x = -1;
22983 int main (void) { return x; }
22984 int foo (void) { x = 0; }
22985 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22987 _ACEOF
22988 if ac_fn_cxx_try_run "$LINENO"; then :
22989 gcc_cv_initfini_array=yes
22990 else
22991 gcc_cv_initfini_array=no
22993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22994 conftest.$ac_objext conftest.beam conftest.$ac_ext
22998 gcc_cv_initfini_array=no
22999 if test $in_tree_ld = yes ; then
23000 if test "$gcc_cv_gld_major_version" -eq 2 \
23001 -a "$gcc_cv_gld_minor_version" -ge 22 \
23002 -o "$gcc_cv_gld_major_version" -gt 2 \
23003 && test $in_tree_ld_is_elf = yes; then
23004 gcc_cv_initfini_array=yes
23006 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23007 case $target:$gas in
23008 *:yes)
23009 sh_flags='"a"'
23010 sh_type='%progbits'
23012 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23013 sh_flags='"a"'
23014 sh_type='@progbits'
23016 sparc*-*-solaris2*:no)
23017 sh_flags='#alloc'
23018 sh_type='#progbits'
23019 sh_quote='"'
23021 esac
23022 case "$target:$gnu_ld" in
23023 *:yes)
23024 cat > conftest.s <<EOF
23025 .section .dtors,$sh_flags,$sh_type
23026 .balign 4
23027 .byte 'A', 'A', 'A', 'A'
23028 .section .ctors,$sh_flags,$sh_type
23029 .balign 4
23030 .byte 'B', 'B', 'B', 'B'
23031 .section .fini_array.65530,$sh_flags,$sh_type
23032 .balign 4
23033 .byte 'C', 'C', 'C', 'C'
23034 .section .init_array.65530,$sh_flags,$sh_type
23035 .balign 4
23036 .byte 'D', 'D', 'D', 'D'
23037 .section .dtors.64528,$sh_flags,$sh_type
23038 .balign 4
23039 .byte 'E', 'E', 'E', 'E'
23040 .section .ctors.64528,$sh_flags,$sh_type
23041 .balign 4
23042 .byte 'F', 'F', 'F', 'F'
23043 .section .fini_array.01005,$sh_flags,$sh_type
23044 .balign 4
23045 .byte 'G', 'G', 'G', 'G'
23046 .section .init_array.01005,$sh_flags,$sh_type
23047 .balign 4
23048 .byte 'H', 'H', 'H', 'H'
23049 .text
23050 .globl _start
23051 _start:
23053 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23054 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23055 && $gcc_cv_objdump -s -j .init_array conftest \
23056 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23057 && $gcc_cv_objdump -s -j .fini_array conftest \
23058 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23059 gcc_cv_initfini_array=yes
23062 *-*-solaris2*:no)
23063 # When Solaris ld added constructor priority support, it was
23064 # decided to only handle .init_array.N/.fini_array.N since
23065 # there was no need for backwards compatibility with
23066 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23067 # sections with correct execution order resp. to
23068 # .init_array/.fini_array, while gld merges them into
23069 # .init_array/.fini_array.
23070 cat > conftest.s <<EOF
23071 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23072 .align 4
23073 .byte 'C', 'C', 'C', 'C'
23074 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23075 .align 4
23076 .byte 'D', 'D', 'D', 'D'
23077 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23078 .align 4
23079 .byte 'G', 'G', 'G', 'G'
23080 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23081 .align 4
23082 .byte 'H', 'H', 'H', 'H'
23083 .text
23084 .globl _start
23085 _start:
23087 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23088 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23089 && $gcc_cv_objdump -s -j .init_array conftest \
23090 | grep HHHHDDDD > /dev/null 2>&1 \
23091 && $gcc_cv_objdump -s -j .fini_array conftest \
23092 | grep GGGGCCCC > /dev/null 2>&1; then
23093 gcc_cv_initfini_array=yes
23096 esac
23097 rm -f conftest conftest.*
23099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h. */
23102 #ifndef __ELF__
23103 # error Not an ELF OS
23104 #endif
23105 #include <stdlib.h>
23106 #if defined __GLIBC_PREREQ
23107 # if __GLIBC_PREREQ (2, 4)
23108 # else
23109 # error GLIBC 2.4 required
23110 # endif
23111 #else
23112 # if defined __sun__ && defined __svr4__
23113 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23114 # else
23115 # error The C library not known to support .init_array/.fini_array
23116 # endif
23117 #endif
23119 _ACEOF
23120 if ac_fn_cxx_try_cpp "$LINENO"; then :
23122 else
23123 gcc_cv_initfini_array=no
23125 rm -f conftest.err conftest.$ac_ext;;
23126 esac
23127 else
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23129 $as_echo_n "checking cross compile... guessing... " >&6; }
23130 gcc_cv_initfini_array=no
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23134 $as_echo "$gcc_cv_initfini_array" >&6; }
23135 enable_initfini_array=$gcc_cv_initfini_array
23140 cat >>confdefs.h <<_ACEOF
23141 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23142 _ACEOF
23146 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23148 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23149 if test "${gcc_cv_as_leb128+set}" = set; then :
23150 $as_echo_n "(cached) " >&6
23151 else
23152 gcc_cv_as_leb128=no
23153 if test $in_tree_gas = yes; then
23154 if test $in_tree_gas_is_elf = yes \
23155 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23156 then gcc_cv_as_leb128=yes
23158 elif test x$gcc_cv_as != x; then
23159 $as_echo ' .data
23160 .uleb128 L2 - L1
23162 .uleb128 1280
23163 .sleb128 -1010
23164 L2:' > conftest.s
23165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23170 test $ac_status = 0; }; }
23171 then
23172 # GAS versions before 2.11 do not support uleb128,
23173 # despite appearing to.
23174 # ??? There exists an elf-specific test that will crash
23175 # the assembler. Perhaps it's better to figure out whether
23176 # arbitrary sections are supported and try the test.
23177 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23178 if echo "$as_ver" | grep GNU > /dev/null; then
23179 as_vers=`echo $as_ver | sed -n \
23180 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23181 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23182 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23183 if test $as_major -eq 2 && test $as_minor -lt 11
23184 then :
23185 else gcc_cv_as_leb128=yes
23188 else
23189 echo "configure: failed program was" >&5
23190 cat conftest.s >&5
23192 rm -f conftest.o conftest.s
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23196 $as_echo "$gcc_cv_as_leb128" >&6; }
23197 if test $gcc_cv_as_leb128 = yes; then
23199 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23203 # Check if we have assembler support for unwind directives.
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23205 $as_echo_n "checking assembler for cfi directives... " >&6; }
23206 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23207 $as_echo_n "(cached) " >&6
23208 else
23209 gcc_cv_as_cfi_directive=no
23210 if test x$gcc_cv_as != x; then
23211 $as_echo ' .text
23212 .cfi_startproc
23213 .cfi_offset 0, 0
23214 .cfi_same_value 1
23215 .cfi_def_cfa 1, 2
23216 .cfi_escape 1, 2, 3, 4, 5
23217 .cfi_endproc' > conftest.s
23218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23223 test $ac_status = 0; }; }
23224 then
23225 case "$target" in
23226 *-*-solaris*)
23227 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23228 # read-only and read-write sections, we need to make sure that the
23229 # assembler used emits read-write .eh_frame sections.
23230 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23231 if test "x$gcc_cv_objdump" != x; then
23232 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23233 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23234 gcc_cv_as_cfi_directive=no
23235 else
23236 case "$target" in
23237 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23238 # On Solaris/x86, make sure that GCC and assembler agree on using
23239 # read-only .eh_frame sections for 64-bit.
23240 if test x$gas = xyes; then
23241 as_ix86_64_opt="--64"
23242 else
23243 as_ix86_64_opt="-xarch=amd64"
23245 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23246 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23247 sed -e /.eh_frame/!d -e N | \
23248 grep READONLY > /dev/null; then
23249 gcc_cv_as_cfi_directive=yes
23250 else
23251 gcc_cv_as_cfi_directive=no
23255 gcc_cv_as_cfi_directive=yes
23257 esac
23259 else
23260 # no objdump, err on the side of caution
23261 gcc_cv_as_cfi_directive=no
23263 else
23264 gcc_cv_as_cfi_directive=yes
23267 *-*-*)
23268 gcc_cv_as_cfi_directive=yes
23270 esac
23271 else
23272 echo "configure: failed program was" >&5
23273 cat conftest.s >&5
23275 rm -f conftest.o conftest.s
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23279 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23281 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23283 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23284 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23285 $as_echo_n "(cached) " >&6
23286 else
23287 gcc_cv_as_cfi_advance_working=no
23288 if test x$gcc_cv_as != x; then
23289 $as_echo ' .text
23290 .cfi_startproc
23291 .cfi_adjust_cfa_offset 64
23292 .skip 75040, 0
23293 .cfi_adjust_cfa_offset 128
23294 .cfi_endproc' > conftest.s
23295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23297 (eval $ac_try) 2>&5
23298 ac_status=$?
23299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23300 test $ac_status = 0; }; }
23301 then
23303 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23304 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23305 gcc_cv_as_cfi_advance_working=yes
23308 else
23309 echo "configure: failed program was" >&5
23310 cat conftest.s >&5
23312 rm -f conftest.o conftest.s
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23316 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23318 else
23319 # no objdump, err on the side of caution
23320 gcc_cv_as_cfi_advance_working=no
23324 cat >>confdefs.h <<_ACEOF
23325 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23326 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23327 _ACEOF
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23332 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23333 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23334 $as_echo_n "(cached) " >&6
23335 else
23336 gcc_cv_as_cfi_personality_directive=no
23337 if test x$gcc_cv_as != x; then
23338 $as_echo ' .text
23339 .cfi_startproc
23340 .cfi_personality 0, symbol
23341 .cfi_endproc' > conftest.s
23342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23347 test $ac_status = 0; }; }
23348 then
23349 gcc_cv_as_cfi_personality_directive=yes
23350 else
23351 echo "configure: failed program was" >&5
23352 cat conftest.s >&5
23354 rm -f conftest.o conftest.s
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23358 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23361 cat >>confdefs.h <<_ACEOF
23362 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23363 then echo 1; else echo 0; fi`
23364 _ACEOF
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23368 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23369 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23370 $as_echo_n "(cached) " >&6
23371 else
23372 gcc_cv_as_cfi_sections_directive=no
23373 if test x$gcc_cv_as != x; then
23374 $as_echo ' .text
23375 .cfi_sections .debug_frame, .eh_frame
23376 .cfi_startproc
23377 .cfi_endproc' > conftest.s
23378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; }
23384 then
23385 case $target_os in
23386 win32 | pe | cygwin* | mingw32*)
23387 # Need to check that we generated the correct relocation for the
23388 # .debug_frame section. This was fixed for binutils 2.21.
23389 gcc_cv_as_cfi_sections_directive=no
23390 if test "x$gcc_cv_objdump" != x; then
23391 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23392 grep secrel > /dev/null; then
23393 gcc_cv_as_cfi_sections_directive=yes
23398 gcc_cv_as_cfi_sections_directive=yes
23400 esac
23401 else
23402 echo "configure: failed program was" >&5
23403 cat conftest.s >&5
23405 rm -f conftest.o conftest.s
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23409 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23413 cat >>confdefs.h <<_ACEOF
23414 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23415 then echo 1; else echo 0; fi`
23416 _ACEOF
23419 # GAS versions up to and including 2.11.0 may mis-optimize
23420 # .eh_frame data.
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23422 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23423 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23424 $as_echo_n "(cached) " >&6
23425 else
23426 gcc_cv_as_eh_frame=no
23427 if test $in_tree_gas = yes; then
23428 if test $in_tree_gas_is_elf = yes \
23429 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23430 then gcc_cv_as_eh_frame=yes
23432 elif test x$gcc_cv_as != x; then
23433 $as_echo ' .text
23434 .LFB1:
23435 .4byte 0
23436 .L1:
23437 .4byte 0
23438 .LFE1:
23439 .section .eh_frame,"aw",@progbits
23440 __FRAME_BEGIN__:
23441 .4byte .LECIE1-.LSCIE1
23442 .LSCIE1:
23443 .4byte 0x0
23444 .byte 0x1
23445 .ascii "z\0"
23446 .byte 0x1
23447 .byte 0x78
23448 .byte 0x1a
23449 .byte 0x0
23450 .byte 0x4
23451 .4byte 1
23452 .p2align 1
23453 .LECIE1:
23454 .LSFDE1:
23455 .4byte .LEFDE1-.LASFDE1
23456 .LASFDE1:
23457 .4byte .LASFDE1-__FRAME_BEGIN__
23458 .4byte .LFB1
23459 .4byte .LFE1-.LFB1
23460 .byte 0x4
23461 .4byte .LFE1-.LFB1
23462 .byte 0x4
23463 .4byte .L1-.LFB1
23464 .LEFDE1:' > conftest.s
23465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23470 test $ac_status = 0; }; }
23471 then
23472 cat > conftest.lit <<EOF
23473 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23474 0010 01000000 12000000 18000000 00000000 ................
23475 0020 08000000 04080000 0044 .........D
23477 cat > conftest.big <<EOF
23478 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23479 0010 00000001 00000012 00000018 00000000 ................
23480 0020 00000008 04000000 0844 .........D
23482 # If the assembler didn't choke, and we can objdump,
23483 # and we got the correct data, then succeed.
23484 # The text in the here-document typically retains its unix-style line
23485 # endings, while the output of objdump will use host line endings.
23486 # Therefore, use diff -b for the comparisons.
23487 if test x$gcc_cv_objdump != x \
23488 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23489 | tail -3 > conftest.got \
23490 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23491 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23492 then
23493 gcc_cv_as_eh_frame=yes
23494 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499 test $ac_status = 0; }; }; then
23500 gcc_cv_as_eh_frame=buggy
23501 else
23502 # Uh oh, what do we do now?
23503 gcc_cv_as_eh_frame=no
23505 else
23506 echo "configure: failed program was" >&5
23507 cat conftest.s >&5
23509 rm -f conftest.o conftest.s
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23513 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23516 if test $gcc_cv_as_eh_frame = buggy; then
23518 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23523 $as_echo_n "checking assembler for section merging support... " >&6; }
23524 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23525 $as_echo_n "(cached) " >&6
23526 else
23527 gcc_cv_as_shf_merge=no
23528 if test $in_tree_gas = yes; then
23529 if test $in_tree_gas_is_elf = yes \
23530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23531 then gcc_cv_as_shf_merge=yes
23533 elif test x$gcc_cv_as != x; then
23534 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23538 ac_status=$?
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23541 then
23542 gcc_cv_as_shf_merge=yes
23543 else
23544 echo "configure: failed program was" >&5
23545 cat conftest.s >&5
23547 rm -f conftest.o conftest.s
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23551 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23553 if test $gcc_cv_as_shf_merge = no; then
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23555 $as_echo_n "checking assembler for section merging support... " >&6; }
23556 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23557 $as_echo_n "(cached) " >&6
23558 else
23559 gcc_cv_as_shf_merge=no
23560 if test $in_tree_gas = yes; then
23561 if test $in_tree_gas_is_elf = yes \
23562 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23563 then gcc_cv_as_shf_merge=yes
23565 elif test x$gcc_cv_as != x; then
23566 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23572 test $ac_status = 0; }; }
23573 then
23574 gcc_cv_as_shf_merge=yes
23575 else
23576 echo "configure: failed program was" >&5
23577 cat conftest.s >&5
23579 rm -f conftest.o conftest.s
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23583 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23587 cat >>confdefs.h <<_ACEOF
23588 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23589 _ACEOF
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23593 $as_echo_n "checking assembler for stabs directive... " >&6; }
23594 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23595 $as_echo_n "(cached) " >&6
23596 else
23597 gcc_cv_as_stabs_directive=no
23598 if test x$gcc_cv_as != x; then
23599 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23605 test $ac_status = 0; }; }
23606 then
23607 gcc_cv_as_stabs_directive=yes
23608 else
23609 echo "configure: failed program was" >&5
23610 cat conftest.s >&5
23612 rm -f conftest.o conftest.s
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23616 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23617 if test $gcc_cv_as_stabs_directive = yes; then
23619 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23624 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23625 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23626 $as_echo_n "(cached) " >&6
23627 else
23628 gcc_cv_as_comdat_group=no
23629 if test $in_tree_gas = yes; then
23630 if test $in_tree_gas_is_elf = yes \
23631 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23632 then gcc_cv_as_comdat_group=yes
23634 elif test x$gcc_cv_as != x; then
23635 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23641 test $ac_status = 0; }; }
23642 then
23643 gcc_cv_as_comdat_group=yes
23644 else
23645 echo "configure: failed program was" >&5
23646 cat conftest.s >&5
23648 rm -f conftest.o conftest.s
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23652 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23654 if test $gcc_cv_as_comdat_group = yes; then
23655 gcc_cv_as_comdat_group_percent=no
23656 gcc_cv_as_comdat_group_group=no
23657 else
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23659 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23660 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23661 $as_echo_n "(cached) " >&6
23662 else
23663 gcc_cv_as_comdat_group_percent=no
23664 if test $in_tree_gas = yes; then
23665 if test $in_tree_gas_is_elf = yes \
23666 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23667 then gcc_cv_as_comdat_group_percent=yes
23669 elif test x$gcc_cv_as != x; then
23670 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23673 (eval $ac_try) 2>&5
23674 ac_status=$?
23675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23676 test $ac_status = 0; }; }
23677 then
23678 gcc_cv_as_comdat_group_percent=yes
23679 else
23680 echo "configure: failed program was" >&5
23681 cat conftest.s >&5
23683 rm -f conftest.o conftest.s
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23687 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23689 if test $gcc_cv_as_comdat_group_percent = yes; then
23690 gcc_cv_as_comdat_group_group=no
23691 else
23692 case "${target}" in
23693 # Sun as uses a completely different syntax.
23694 *-*-solaris2*)
23695 case "${target}" in
23696 sparc*-*-solaris2*)
23697 conftest_s='
23698 .group foo,".text%foo",#comdat
23699 .section ".text%foo", #alloc,#execinstr,#progbits
23700 .globl foo
23701 foo:
23704 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23705 conftest_s='
23706 .group foo,.text%foo,#comdat
23707 .section .text%foo, "ax", @progbits
23708 .globl foo
23709 foo:
23712 esac
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23714 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23715 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23716 $as_echo_n "(cached) " >&6
23717 else
23718 gcc_cv_as_comdat_group_group=no
23719 if test x$gcc_cv_as != x; then
23720 $as_echo "$conftest_s" > conftest.s
23721 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23726 test $ac_status = 0; }; }
23727 then
23728 gcc_cv_as_comdat_group_group=yes
23729 else
23730 echo "configure: failed program was" >&5
23731 cat conftest.s >&5
23733 rm -f conftest.o conftest.s
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23737 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23740 esac
23741 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23742 gcc_cv_as_comdat_group_group=no
23746 if test x"$ld_is_gold" = xyes; then
23747 comdat_group=yes
23748 elif test $in_tree_ld = yes ; then
23749 comdat_group=no
23750 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 \
23751 && test $in_tree_ld_is_elf = yes; then
23752 comdat_group=yes
23754 elif echo "$ld_ver" | grep GNU > /dev/null; then
23755 comdat_group=yes
23756 if test 0"$ld_date" -lt 20050308; then
23757 if test -n "$ld_date"; then
23758 # If there was date string, but was earlier than 2005-03-08, fail
23759 comdat_group=no
23760 elif test "$ld_vers_major" -lt 2; then
23761 comdat_group=no
23762 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23763 comdat_group=no
23766 else
23767 case "${target}" in
23768 *-*-solaris2.1[1-9]*)
23769 comdat_group=no
23770 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23771 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23772 # version 1.688.
23774 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23775 # least ld version 1.2267.
23776 if test "$ld_vers_major" -gt 1; then
23777 comdat_group=yes
23778 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23779 comdat_group=yes
23780 elif test "$ld_vers_minor" -ge 2267; then
23781 comdat_group=yes
23785 # Assume linkers other than GNU ld don't support COMDAT group.
23786 comdat_group=no
23788 esac
23790 # Allow overriding the automatic COMDAT group tests above.
23791 # Check whether --enable-comdat was given.
23792 if test "${enable_comdat+set}" = set; then :
23793 enableval=$enable_comdat; comdat_group="$enable_comdat"
23796 if test $comdat_group = no; then
23797 gcc_cv_as_comdat_group=no
23798 gcc_cv_as_comdat_group_percent=no
23799 gcc_cv_as_comdat_group_group=no
23802 cat >>confdefs.h <<_ACEOF
23803 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23804 || test $gcc_cv_as_comdat_group_percent = yes \
23805 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23806 _ACEOF
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23810 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23811 if test "${gcc_cv_as_discriminator+set}" = set; then :
23812 $as_echo_n "(cached) " >&6
23813 else
23814 gcc_cv_as_discriminator=no
23815 if test $in_tree_gas = yes; then
23816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23817 then gcc_cv_as_discriminator=yes
23819 elif test x$gcc_cv_as != x; then
23820 $as_echo ' .text
23821 .file 1 "conf.c"
23822 .loc 1 1 0 discriminator 1' > conftest.s
23823 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23828 test $ac_status = 0; }; }
23829 then
23830 gcc_cv_as_discriminator=yes
23831 else
23832 echo "configure: failed program was" >&5
23833 cat conftest.s >&5
23835 rm -f conftest.o conftest.s
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23839 $as_echo "$gcc_cv_as_discriminator" >&6; }
23840 if test $gcc_cv_as_discriminator = yes; then
23842 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23846 # Thread-local storage - the check is heavily parameterized.
23847 conftest_s=
23848 tls_first_major=
23849 tls_first_minor=
23850 tls_as_opt=
23851 case "$target" in
23852 alpha*-*-*)
23853 conftest_s='
23854 .section ".tdata","awT",@progbits
23855 foo: .long 25
23856 .text
23857 ldq $27,__tls_get_addr($29) !literal!1
23858 lda $16,foo($29) !tlsgd!1
23859 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23860 ldq $27,__tls_get_addr($29) !literal!2
23861 lda $16,foo($29) !tlsldm!2
23862 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23863 ldq $1,foo($29) !gotdtprel
23864 ldah $2,foo($29) !dtprelhi
23865 lda $3,foo($2) !dtprello
23866 lda $4,foo($29) !dtprel
23867 ldq $1,foo($29) !gottprel
23868 ldah $2,foo($29) !tprelhi
23869 lda $3,foo($2) !tprello
23870 lda $4,foo($29) !tprel'
23871 tls_first_major=2
23872 tls_first_minor=13
23873 tls_as_opt=--fatal-warnings
23875 arc*-*-*)
23876 conftest_s='
23877 add_s r0,r0, @foo@tpoff'
23878 tls_first_major=2
23879 tls_first_minor=23
23881 cris-*-*|crisv32-*-*)
23882 conftest_s='
23883 .section ".tdata","awT",@progbits
23884 x: .long 25
23885 .text
23886 move.d x:IE,$r10
23887 nop'
23888 tls_first_major=2
23889 tls_first_minor=20
23890 tls_as_opt=--fatal-warnings
23892 frv*-*-*)
23893 conftest_s='
23894 .section ".tdata","awT",@progbits
23895 x: .long 25
23896 .text
23897 call #gettlsoff(x)'
23898 tls_first_major=2
23899 tls_first_minor=14
23901 hppa*-*-linux*)
23902 conftest_s='
23903 t1: .reg %r20
23904 t2: .reg %r21
23905 gp: .reg %r19
23906 .section ".tdata","awT",@progbits
23907 foo: .long 25
23908 .text
23909 .align 4
23910 addil LT%foo-$tls_gdidx$,gp
23911 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23912 b __tls_get_addr
23914 addil LT%foo-$tls_ldidx$,gp
23915 b __tls_get_addr
23916 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23917 addil LR%foo-$tls_dtpoff$,%ret0
23918 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23919 mfctl %cr27,%t1
23920 addil LT%foo-$tls_ieoff$,gp
23921 ldw RT%foo-$tls_ieoff$(%r1),%t2
23922 add %t1,%t2,%t3
23923 mfctl %cr27,%t1
23924 addil LR%foo-$tls_leoff$,%t1
23925 ldo RR%foo-$tls_leoff$(%r1),%t2'
23926 tls_first_major=2
23927 tls_first_minor=15
23928 tls_as_opt=--fatal-warnings
23930 arm*-*-*)
23931 conftest_s='
23932 .section ".tdata","awT",%progbits
23933 foo: .long 25
23934 .text
23935 .word foo(gottpoff)
23936 .word foo(tpoff)
23937 .word foo(tlsgd)
23938 .word foo(tlsldm)
23939 .word foo(tlsldo)'
23940 tls_first_major=2
23941 tls_first_minor=17
23943 i[34567]86-*-* | x86_64-*-*)
23944 case "$target" in
23945 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23946 on_solaris=yes
23949 on_solaris=no
23951 esac
23952 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23953 conftest_s='
23954 .section .tdata,"awt",@progbits'
23955 tls_first_major=0
23956 tls_first_minor=0
23957 tls_section_flag=t
23959 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23961 else
23962 conftest_s='
23963 .section ".tdata","awT",@progbits'
23964 tls_first_major=2
23965 tls_first_minor=14
23966 tls_section_flag=T
23967 tls_as_opt="--fatal-warnings"
23969 case "$target" in
23970 i[34567]86-*-*)
23971 conftest_s="$conftest_s
23972 foo: .long 25
23973 .text
23974 movl %gs:0, %eax
23975 leal foo@tlsgd(,%ebx,1), %eax
23976 leal foo@tlsldm(%ebx), %eax
23977 leal foo@dtpoff(%eax), %edx
23978 movl foo@gottpoff(%ebx), %eax
23979 subl foo@gottpoff(%ebx), %eax
23980 addl foo@gotntpoff(%ebx), %eax
23981 movl foo@indntpoff, %eax
23982 movl \$foo@tpoff, %eax
23983 subl \$foo@tpoff, %eax
23984 leal foo@ntpoff(%ecx), %eax"
23986 x86_64-*-*)
23987 if test x$on_solaris = xyes; then
23988 case $gas_flag in
23989 yes) tls_as_opt="$tls_as_opt --64" ;;
23990 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23991 esac
23993 conftest_s="$conftest_s
23994 foo: .long 25
23995 .text
23996 movq %fs:0, %rax
23997 leaq foo@tlsgd(%rip), %rdi
23998 leaq foo@tlsld(%rip), %rdi
23999 leaq foo@dtpoff(%rax), %rdx
24000 movq foo@gottpoff(%rip), %rax
24001 movq \$foo@tpoff, %rax"
24003 esac
24005 ia64-*-*)
24006 conftest_s='
24007 .section ".tdata","awT",@progbits
24008 foo: data8 25
24009 .text
24010 addl r16 = @ltoff(@dtpmod(foo#)), gp
24011 addl r17 = @ltoff(@dtprel(foo#)), gp
24012 addl r18 = @ltoff(@tprel(foo#)), gp
24013 addl r19 = @dtprel(foo#), gp
24014 adds r21 = @dtprel(foo#), r13
24015 movl r23 = @dtprel(foo#)
24016 addl r20 = @tprel(foo#), gp
24017 adds r22 = @tprel(foo#), r13
24018 movl r24 = @tprel(foo#)'
24019 tls_first_major=2
24020 tls_first_minor=13
24021 tls_as_opt=--fatal-warnings
24023 microblaze*-*-*)
24024 conftest_s='
24025 .section .tdata,"awT",@progbits
24027 .word 2
24028 .text
24029 addik r5,r20,x@TLSGD
24030 addik r5,r20,x@TLSLDM'
24031 tls_first_major=2
24032 tls_first_minor=20
24033 tls_as_opt='--fatal-warnings'
24035 mips*-*-*)
24036 conftest_s='
24037 .section .tdata,"awT",@progbits
24039 .word 2
24040 .text
24041 addiu $4, $28, %tlsgd(x)
24042 addiu $4, $28, %tlsldm(x)
24043 lui $4, %dtprel_hi(x)
24044 addiu $4, $4, %dtprel_lo(x)
24045 lw $4, %gottprel(x)($28)
24046 lui $4, %tprel_hi(x)
24047 addiu $4, $4, %tprel_lo(x)'
24048 tls_first_major=2
24049 tls_first_minor=16
24050 tls_as_opt='-32 --fatal-warnings'
24052 m68k-*-*)
24053 conftest_s='
24054 .section .tdata,"awT",@progbits
24056 .word 2
24057 .text
24058 foo:
24059 move.l x@TLSGD(%a5),%a0
24060 move.l x@TLSLDM(%a5),%a0
24061 move.l x@TLSLDO(%a5),%a0
24062 move.l x@TLSIE(%a5),%a0
24063 move.l x@TLSLE(%a5),%a0'
24064 tls_first_major=2
24065 tls_first_minor=19
24066 tls_as_opt='--fatal-warnings'
24068 nios2-*-*)
24069 conftest_s='
24070 .section ".tdata","awT",@progbits'
24071 tls_first_major=2
24072 tls_first_minor=23
24073 tls_as_opt="--fatal-warnings"
24075 aarch64*-*-*)
24076 conftest_s='
24077 .section ".tdata","awT",%progbits
24078 foo: .long 25
24079 .text
24080 adrp x0, :tlsgd:x
24081 add x0, x0, #:tlsgd_lo12:x
24082 bl __tls_get_addr
24083 nop'
24084 tls_first_major=2
24085 tls_first_minor=20
24086 tls_as_opt='--fatal-warnings'
24088 powerpc-ibm-aix*)
24089 conftest_s='
24090 .extern __get_tpointer
24091 .toc
24092 LC..1:
24093 .tc a[TC],a[TL]@le
24094 .csect .text[PR]
24095 .tlstest:
24096 lwz 9,LC..1(2)
24097 bla __get_tpointer
24098 lwzx 3,9,3
24099 .globl a
24100 .csect a[TL],4
24102 .space 4'
24103 tls_first_major=0
24104 tls_first_minor=0
24106 powerpc64*-*-*)
24107 conftest_s='
24108 .section ".tdata","awT",@progbits
24109 .align 3
24110 ld0: .space 8
24111 ld1: .space 8
24112 x1: .space 8
24113 x2: .space 8
24114 x3: .space 8
24115 .text
24116 addi 3,2,ld0@got@tlsgd
24117 bl .__tls_get_addr
24119 addi 3,2,ld1@toc
24120 bl .__tls_get_addr
24122 addi 3,2,x1@got@tlsld
24123 bl .__tls_get_addr
24125 addi 9,3,x1@dtprel
24126 bl .__tls_get_addr
24128 addis 9,3,x2@dtprel@ha
24129 addi 9,9,x2@dtprel@l
24130 bl .__tls_get_addr
24132 ld 9,x3@got@dtprel(2)
24133 add 9,9,3
24134 bl .__tls_get_addr
24135 nop'
24136 tls_first_major=2
24137 tls_first_minor=14
24138 tls_as_opt="-a64 --fatal-warnings"
24140 powerpc*-*-*)
24141 conftest_s='
24142 .section ".tdata","awT",@progbits
24143 .align 2
24144 ld0: .space 4
24145 ld1: .space 4
24146 x1: .space 4
24147 x2: .space 4
24148 x3: .space 4
24149 .text
24150 addi 3,31,ld0@got@tlsgd
24151 bl __tls_get_addr
24152 addi 3,31,x1@got@tlsld
24153 bl __tls_get_addr
24154 addi 9,3,x1@dtprel
24155 addis 9,3,x2@dtprel@ha
24156 addi 9,9,x2@dtprel@l
24157 lwz 9,x3@got@tprel(31)
24158 add 9,9,x@tls
24159 addi 9,2,x1@tprel
24160 addis 9,2,x2@tprel@ha
24161 addi 9,9,x2@tprel@l'
24162 tls_first_major=2
24163 tls_first_minor=14
24164 tls_as_opt="-a32 --fatal-warnings"
24166 s390-*-*)
24167 conftest_s='
24168 .section ".tdata","awT",@progbits
24169 foo: .long 25
24170 .text
24171 .long foo@TLSGD
24172 .long foo@TLSLDM
24173 .long foo@DTPOFF
24174 .long foo@NTPOFF
24175 .long foo@GOTNTPOFF
24176 .long foo@INDNTPOFF
24177 l %r1,foo@GOTNTPOFF(%r12)
24178 l %r1,0(%r1):tls_load:foo
24179 bas %r14,0(%r1,%r13):tls_gdcall:foo
24180 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24181 tls_first_major=2
24182 tls_first_minor=14
24183 tls_as_opt="-m31 --fatal-warnings"
24185 s390x-*-*)
24186 conftest_s='
24187 .section ".tdata","awT",@progbits
24188 foo: .long 25
24189 .text
24190 .quad foo@TLSGD
24191 .quad foo@TLSLDM
24192 .quad foo@DTPOFF
24193 .quad foo@NTPOFF
24194 .quad foo@GOTNTPOFF
24195 lg %r1,foo@GOTNTPOFF(%r12)
24196 larl %r1,foo@INDNTPOFF
24197 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24198 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24199 tls_first_major=2
24200 tls_first_minor=14
24201 tls_as_opt="-m64 -Aesame --fatal-warnings"
24203 sh-*-* | sh[123456789lbe]*-*-*)
24204 conftest_s='
24205 .section ".tdata","awT",@progbits
24206 foo: .long 25
24207 .text
24208 .long foo@TLSGD
24209 .long foo@TLSLDM
24210 .long foo@DTPOFF
24211 .long foo@GOTTPOFF
24212 .long foo@TPOFF'
24213 tls_first_major=2
24214 tls_first_minor=13
24215 tls_as_opt=--fatal-warnings
24217 sparc*-*-*)
24218 case "$target" in
24219 sparc*-sun-solaris2.*)
24220 on_solaris=yes
24223 on_solaris=no
24225 esac
24226 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24227 conftest_s='
24228 .section ".tdata",#alloc,#write,#tls'
24229 tls_first_major=0
24230 tls_first_minor=0
24231 else
24232 conftest_s='
24233 .section ".tdata","awT",@progbits'
24234 tls_first_major=2
24235 tls_first_minor=14
24236 tls_as_opt="-32 --fatal-warnings"
24238 conftest_s="$conftest_s
24239 foo: .long 25
24240 .text
24241 sethi %tgd_hi22(foo), %o0
24242 add %o0, %tgd_lo10(foo), %o1
24243 add %l7, %o1, %o0, %tgd_add(foo)
24244 call __tls_get_addr, %tgd_call(foo)
24245 sethi %tldm_hi22(foo), %l1
24246 add %l1, %tldm_lo10(foo), %l2
24247 add %l7, %l2, %o0, %tldm_add(foo)
24248 call __tls_get_addr, %tldm_call(foo)
24249 sethi %tldo_hix22(foo), %l3
24250 xor %l3, %tldo_lox10(foo), %l4
24251 add %o0, %l4, %l5, %tldo_add(foo)
24252 sethi %tie_hi22(foo), %o3
24253 add %o3, %tie_lo10(foo), %o3
24254 ld [%l7 + %o3], %o2, %tie_ld(foo)
24255 add %g7, %o2, %o4, %tie_add(foo)
24256 sethi %tle_hix22(foo), %l1
24257 xor %l1, %tle_lox10(foo), %o5
24258 ld [%g7 + %o5], %o1"
24260 tilepro*-*-*)
24261 conftest_s='
24262 .section ".tdata","awT",@progbits
24263 foo: .long 25
24264 .text
24265 addli r0, zero, tls_gd(foo)
24266 auli r0, zero, tls_gd_ha16(foo)
24267 addli r0, r0, tls_gd_lo16(foo)
24268 jal __tls_get_addr
24269 addli r0, zero, tls_ie(foo)
24270 auli r0, r0, tls_ie_ha16(foo)
24271 addli r0, r0, tls_ie_lo16(foo)'
24272 tls_first_major=2
24273 tls_first_minor=22
24274 tls_as_opt="--fatal-warnings"
24276 tilegx*-*-*)
24277 conftest_s='
24278 .section ".tdata","awT",@progbits
24279 foo: .long 25
24280 .text
24281 shl16insli r0, zero, hw0_last_tls_gd(foo)
24282 shl16insli r0, zero, hw1_last_tls_gd(foo)
24283 shl16insli r0, r0, hw0_tls_gd(foo)
24284 jal __tls_get_addr
24285 shl16insli r0, zero, hw1_last_tls_ie(foo)
24286 shl16insli r0, r0, hw0_tls_ie(foo)'
24287 tls_first_major=2
24288 tls_first_minor=22
24289 tls_as_opt="--fatal-warnings"
24291 xtensa*-*-*)
24292 conftest_s='
24293 .section ".tdata","awT",@progbits
24294 foo: .long 25
24295 .text
24296 movi a8, foo@TLSFUNC
24297 movi a10, foo@TLSARG
24298 callx8.tls a8, foo@TLSCALL'
24299 tls_first_major=2
24300 tls_first_minor=19
24302 esac
24303 set_have_as_tls=no
24304 if test "x$enable_tls" = xno ; then
24305 : # TLS explicitly disabled.
24306 elif test "x$enable_tls" = xyes ; then
24307 set_have_as_tls=yes # TLS explicitly enabled.
24308 elif test -z "$tls_first_major"; then
24309 : # If we don't have a check, assume no support.
24310 else
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24312 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24313 if test "${gcc_cv_as_tls+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24315 else
24316 gcc_cv_as_tls=no
24317 if test $in_tree_gas = yes; then
24318 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24319 then gcc_cv_as_tls=yes
24321 elif test x$gcc_cv_as != x; then
24322 $as_echo "$conftest_s" > conftest.s
24323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24325 (eval $ac_try) 2>&5
24326 ac_status=$?
24327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24328 test $ac_status = 0; }; }
24329 then
24330 gcc_cv_as_tls=yes
24331 else
24332 echo "configure: failed program was" >&5
24333 cat conftest.s >&5
24335 rm -f conftest.o conftest.s
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24339 $as_echo "$gcc_cv_as_tls" >&6; }
24340 if test $gcc_cv_as_tls = yes; then
24341 set_have_as_tls=yes
24344 if test $set_have_as_tls = yes ; then
24346 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24350 # Target-specific assembler checks.
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24353 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24354 gcc_cv_ld_static_dynamic=no
24355 gcc_cv_ld_static_option='-Bstatic'
24356 gcc_cv_ld_dynamic_option='-Bdynamic'
24357 if test $in_tree_ld = yes ; then
24358 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
24359 gcc_cv_ld_static_dynamic=yes
24361 elif test x$gcc_cv_ld != x; then
24362 # Check if linker supports -Bstatic/-Bdynamic option
24363 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24364 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24365 gcc_cv_ld_static_dynamic=yes
24366 else
24367 case "$target" in
24368 # AIX ld uses -b flags
24369 *-*-aix4.[23]* | *-*-aix[5-9]*)
24370 gcc_cv_ld_static_dynamic=yes
24371 gcc_cv_ld_static_option="-bstatic"
24372 gcc_cv_ld_dynamic_option="-bdynamic"
24374 # HP-UX ld uses -a flags to select between shared and archive.
24375 *-*-hpux*)
24376 if test x"$gnu_ld" = xno; then
24377 gcc_cv_ld_static_dynamic=yes
24378 gcc_cv_ld_static_option="-aarchive_shared"
24379 gcc_cv_ld_dynamic_option="-adefault"
24382 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24383 *-*-solaris2*)
24384 gcc_cv_ld_static_dynamic=yes
24386 esac
24389 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24391 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24394 cat >>confdefs.h <<_ACEOF
24395 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24396 _ACEOF
24399 cat >>confdefs.h <<_ACEOF
24400 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24401 _ACEOF
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24405 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24407 if test x"$demangler_in_ld" = xyes; then
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24409 $as_echo_n "checking linker --demangle support... " >&6; }
24410 gcc_cv_ld_demangle=no
24411 if test $in_tree_ld = yes; then
24412 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 \
24413 gcc_cv_ld_demangle=yes
24415 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24416 # Check if the GNU linker supports --demangle option
24417 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24418 gcc_cv_ld_demangle=yes
24421 if test x"$gcc_cv_ld_demangle" = xyes; then
24423 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24427 $as_echo "$gcc_cv_ld_demangle" >&6; }
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24431 $as_echo_n "checking linker plugin support... " >&6; }
24432 gcc_cv_lto_plugin=0
24433 if test -f liblto_plugin.la; then
24434 save_ld_ver="$ld_ver"
24435 save_ld_vers_major="$ld_vers_major"
24436 save_ld_vers_minor="$ld_vers_minor"
24437 save_ld_is_gold="$ld_is_gold"
24439 ld_is_gold=no
24441 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24442 ld_ver="GNU ld"
24443 # FIXME: ld_is_gold?
24444 ld_vers_major="$gcc_cv_gld_major_version"
24445 ld_vers_minor="$gcc_cv_gld_minor_version"
24446 else
24447 # Determine plugin linker version.
24448 # FIXME: Partial duplicate from above, generalize.
24449 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24450 if echo "$ld_ver" | grep GNU > /dev/null; then
24451 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24452 ld_is_gold=yes
24453 ld_vers=`echo $ld_ver | sed -n \
24454 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24455 else
24456 ld_vers=`echo $ld_ver | sed -n \
24457 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24459 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24460 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24464 # Determine plugin support.
24465 if echo "$ld_ver" | grep GNU > /dev/null; then
24466 # Require GNU ld or gold 2.21+ for plugin support by default.
24467 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24468 gcc_cv_lto_plugin=2
24469 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24470 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24471 gcc_cv_lto_plugin=1
24475 ld_ver="$save_ld_ver"
24476 ld_vers_major="$save_ld_vers_major"
24477 ld_vers_minor="$save_ld_vers_minor"
24478 ld_is_gold="$save_ld_is_gold"
24481 cat >>confdefs.h <<_ACEOF
24482 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24483 _ACEOF
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24486 $as_echo "$gcc_cv_lto_plugin" >&6; }
24488 case "$target" in
24489 aarch64*-*-*)
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24491 $as_echo_n "checking assembler for -mabi option... " >&6; }
24492 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24494 else
24495 gcc_cv_as_aarch64_mabi=no
24496 if test x$gcc_cv_as != x; then
24497 $as_echo '.text' > conftest.s
24498 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24503 test $ac_status = 0; }; }
24504 then
24505 gcc_cv_as_aarch64_mabi=yes
24506 else
24507 echo "configure: failed program was" >&5
24508 cat conftest.s >&5
24510 rm -f conftest.o conftest.s
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24514 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24516 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24518 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24520 else
24521 if test x$with_abi = xilp32; then
24522 as_fn_error "Assembler does not support -mabi=ilp32.\
24523 Upgrade the Assembler." "$LINENO" 5
24525 if test x"$with_multilib_list" = xdefault; then
24526 TM_MULTILIB_CONFIG=lp64
24527 else
24528 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24529 for aarch64_multilib in ${aarch64_multilibs}; do
24530 case ${aarch64_multilib} in
24531 ilp32)
24532 as_fn_error "Assembler does not support -mabi=ilp32.\
24533 Upgrade the Assembler." "$LINENO" 5
24537 esac
24538 done
24541 # Check if we have binutils support for relocations types needed by -fpic
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24543 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24544 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24545 $as_echo_n "(cached) " >&6
24546 else
24547 gcc_cv_as_aarch64_picreloc=no
24548 if test x$gcc_cv_as != x; then
24549 $as_echo '
24550 .text
24551 ldr x0, [x2, #:gotpage_lo15:globalsym]
24552 ' > conftest.s
24553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24555 (eval $ac_try) 2>&5
24556 ac_status=$?
24557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24558 test $ac_status = 0; }; }
24559 then
24560 gcc_cv_as_aarch64_picreloc=yes
24561 else
24562 echo "configure: failed program was" >&5
24563 cat conftest.s >&5
24565 rm -f conftest.o conftest.s
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24569 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24570 if test $gcc_cv_as_aarch64_picreloc = yes; then
24572 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24575 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24576 # Check whether --enable-fix-cortex-a53-835769 was given.
24577 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24578 enableval=$enable_fix_cortex_a53_835769;
24579 case $enableval in
24580 yes)
24581 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24586 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24587 Valid choices are 'yes' and 'no'." "$LINENO" 5
24590 esac
24594 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24595 # Check whether --enable-fix-cortex-a53-843419 was given.
24596 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24597 enableval=$enable_fix_cortex_a53_843419;
24598 case $enableval in
24599 yes)
24600 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24605 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24606 Valid choices are 'yes' and 'no'." "$LINENO" 5
24609 esac
24615 # All TARGET_ABI_OSF targets.
24616 alpha*-*-linux* | alpha*-*-*bsd*)
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24618 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24619 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24620 $as_echo_n "(cached) " >&6
24621 else
24622 gcc_cv_as_alpha_explicit_relocs=no
24623 if test $in_tree_gas = yes; then
24624 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24625 then gcc_cv_as_alpha_explicit_relocs=yes
24627 elif test x$gcc_cv_as != x; then
24628 $as_echo ' .set nomacro
24629 .text
24630 extbl $3, $2, $3 !lituse_bytoff!1
24631 ldq $2, a($29) !literal!1
24632 ldq $4, b($29) !literal!2
24633 ldq_u $3, 0($2) !lituse_base!1
24634 ldq $27, f($29) !literal!5
24635 jsr $26, ($27), f !lituse_jsr!5
24636 ldah $29, 0($26) !gpdisp!3
24637 lda $0, c($29) !gprel
24638 ldah $1, d($29) !gprelhigh
24639 lda $1, d($1) !gprellow
24640 lda $29, 0($29) !gpdisp!3' > conftest.s
24641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24643 (eval $ac_try) 2>&5
24644 ac_status=$?
24645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24646 test $ac_status = 0; }; }
24647 then
24648 gcc_cv_as_alpha_explicit_relocs=yes
24649 else
24650 echo "configure: failed program was" >&5
24651 cat conftest.s >&5
24653 rm -f conftest.o conftest.s
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24657 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24658 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24660 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24664 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24665 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24666 $as_echo_n "(cached) " >&6
24667 else
24668 gcc_cv_as_alpha_jsrdirect_relocs=no
24669 if test $in_tree_gas = yes; then
24670 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24671 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24673 elif test x$gcc_cv_as != x; then
24674 $as_echo ' .set nomacro
24675 .text
24676 ldq $27, a($29) !literal!1
24677 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24680 (eval $ac_try) 2>&5
24681 ac_status=$?
24682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24683 test $ac_status = 0; }; }
24684 then
24685 gcc_cv_as_alpha_jsrdirect_relocs=yes
24686 else
24687 echo "configure: failed program was" >&5
24688 cat conftest.s >&5
24690 rm -f conftest.o conftest.s
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24694 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24695 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24697 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24702 avr-*-*)
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24704 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24705 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24706 $as_echo_n "(cached) " >&6
24707 else
24708 gcc_cv_as_avr_mlink_relax=no
24709 if test x$gcc_cv_as != x; then
24710 $as_echo '.text' > conftest.s
24711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }
24717 then
24718 gcc_cv_as_avr_mlink_relax=yes
24719 else
24720 echo "configure: failed program was" >&5
24721 cat conftest.s >&5
24723 rm -f conftest.o conftest.s
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24727 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24728 if test $gcc_cv_as_avr_mlink_relax = yes; then
24730 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24735 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24736 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24738 else
24739 gcc_cv_as_avr_mrmw=no
24740 if test x$gcc_cv_as != x; then
24741 $as_echo '.text' > conftest.s
24742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24744 (eval $ac_try) 2>&5
24745 ac_status=$?
24746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24747 test $ac_status = 0; }; }
24748 then
24749 gcc_cv_as_avr_mrmw=yes
24750 else
24751 echo "configure: failed program was" >&5
24752 cat conftest.s >&5
24754 rm -f conftest.o conftest.s
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24758 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24759 if test $gcc_cv_as_avr_mrmw = yes; then
24761 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24766 cris-*-*)
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24768 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24769 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24770 $as_echo_n "(cached) " >&6
24771 else
24772 gcc_cv_as_cris_no_mul_bug=no
24773 if test $in_tree_gas = yes; then
24774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24775 then gcc_cv_as_cris_no_mul_bug=yes
24777 elif test x$gcc_cv_as != x; then
24778 $as_echo '.text' > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24785 then
24786 gcc_cv_as_cris_no_mul_bug=yes
24787 else
24788 echo "configure: failed program was" >&5
24789 cat conftest.s >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24795 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24796 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24798 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24803 sparc*-*-*)
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24805 $as_echo_n "checking assembler for .register... " >&6; }
24806 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24808 else
24809 gcc_cv_as_sparc_register_op=no
24810 if test x$gcc_cv_as != x; then
24811 $as_echo '.register %g2, #scratch' > conftest.s
24812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24814 (eval $ac_try) 2>&5
24815 ac_status=$?
24816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817 test $ac_status = 0; }; }
24818 then
24819 gcc_cv_as_sparc_register_op=yes
24820 else
24821 echo "configure: failed program was" >&5
24822 cat conftest.s >&5
24824 rm -f conftest.o conftest.s
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24828 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24829 if test $gcc_cv_as_sparc_register_op = yes; then
24831 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24836 $as_echo_n "checking assembler for -relax option... " >&6; }
24837 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24838 $as_echo_n "(cached) " >&6
24839 else
24840 gcc_cv_as_sparc_relax=no
24841 if test x$gcc_cv_as != x; then
24842 $as_echo '.text' > conftest.s
24843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848 test $ac_status = 0; }; }
24849 then
24850 gcc_cv_as_sparc_relax=yes
24851 else
24852 echo "configure: failed program was" >&5
24853 cat conftest.s >&5
24855 rm -f conftest.o conftest.s
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24859 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24860 if test $gcc_cv_as_sparc_relax = yes; then
24862 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24867 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24868 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24869 $as_echo_n "(cached) " >&6
24870 else
24871 gcc_cv_as_sparc_gotdata_op=no
24872 if test x$gcc_cv_as != x; then
24873 $as_echo '.text
24874 .align 4
24875 foo:
24877 bar:
24878 sethi %gdop_hix22(foo), %g1
24879 xor %g1, %gdop_lox10(foo), %g1
24880 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24884 ac_status=$?
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24887 then
24888 if test x$gcc_cv_ld != x \
24889 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24890 if test x$gcc_cv_objdump != x; then
24891 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24892 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24893 gcc_cv_as_sparc_gotdata_op=no
24894 else
24895 gcc_cv_as_sparc_gotdata_op=yes
24899 rm -f conftest
24900 else
24901 echo "configure: failed program was" >&5
24902 cat conftest.s >&5
24904 rm -f conftest.o conftest.s
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24908 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24909 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24911 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24916 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24917 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24918 $as_echo_n "(cached) " >&6
24919 else
24920 gcc_cv_as_sparc_ua_pcrel=no
24921 if test x$gcc_cv_as != x; then
24922 $as_echo '.text
24923 foo:
24925 .data
24926 .align 4
24927 .byte 0
24928 .uaword %r_disp32(foo)' > conftest.s
24929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931 (eval $ac_try) 2>&5
24932 ac_status=$?
24933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934 test $ac_status = 0; }; }
24935 then
24936 if test x$gcc_cv_ld != x \
24937 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24938 gcc_cv_as_sparc_ua_pcrel=yes
24940 rm -f conftest
24941 else
24942 echo "configure: failed program was" >&5
24943 cat conftest.s >&5
24945 rm -f conftest.o conftest.s
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24949 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24950 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24952 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24956 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24957 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24959 else
24960 gcc_cv_as_sparc_ua_pcrel_hidden=no
24961 if test x$gcc_cv_as != x; then
24962 $as_echo '.data
24963 .align 4
24964 .byte 0x31
24965 .uaword %r_disp32(foo)
24966 .byte 0x32, 0x33, 0x34
24967 .global foo
24968 .hidden foo
24969 foo:
24970 .skip 4' > conftest.s
24971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24974 ac_status=$?
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24977 then
24978 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24979 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24980 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24981 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24982 if $gcc_cv_objdump -R conftest 2> /dev/null \
24983 | grep 'DISP32' > /dev/null 2>&1; then
24985 else
24986 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24989 rm -f conftest
24990 else
24991 echo "configure: failed program was" >&5
24992 cat conftest.s >&5
24994 rm -f conftest.o conftest.s
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24998 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24999 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25001 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25005 fi # unaligned pcrel relocs
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25008 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25009 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25010 $as_echo_n "(cached) " >&6
25011 else
25012 gcc_cv_as_sparc_offsetable_lo10=no
25013 if test x$gcc_cv_as != x; then
25014 $as_echo '.text
25015 or %g1, %lo(ab) + 12, %g1
25016 or %g1, %lo(ab + 12), %g1' > conftest.s
25017 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25023 then
25024 if test x$gcc_cv_objdump != x \
25025 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25026 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25027 gcc_cv_as_sparc_offsetable_lo10=yes
25029 else
25030 echo "configure: failed program was" >&5
25031 cat conftest.s >&5
25033 rm -f conftest.o conftest.s
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25037 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25038 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25040 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25045 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25046 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25048 else
25049 gcc_cv_as_sparc_fmaf=no
25050 if test x$gcc_cv_as != x; then
25051 $as_echo '.text
25052 .register %g2, #scratch
25053 .register %g3, #scratch
25054 .align 4
25055 fmaddd %f0, %f2, %f4, %f6
25056 addxccc %g1, %g2, %g3
25057 fsrl32 %f2, %f4, %f8
25058 fnaddd %f10, %f12, %f14' > conftest.s
25059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25065 then
25066 gcc_cv_as_sparc_fmaf=yes
25067 else
25068 echo "configure: failed program was" >&5
25069 cat conftest.s >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25075 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25076 if test $gcc_cv_as_sparc_fmaf = yes; then
25078 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25083 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25084 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25085 $as_echo_n "(cached) " >&6
25086 else
25087 gcc_cv_as_sparc_sparc4=no
25088 if test x$gcc_cv_as != x; then
25089 $as_echo '.text
25090 .register %g2, #scratch
25091 .register %g3, #scratch
25092 .align 4
25093 cxbe %g2, %g3, 1f
25094 1: cwbneg %g2, %g3, 1f
25095 1: sha1
25097 aes_kexpand0 %f4, %f6, %f8
25098 des_round %f38, %f40, %f42, %f44
25099 camellia_f %f54, %f56, %f58, %f60
25100 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25107 then
25108 gcc_cv_as_sparc_sparc4=yes
25109 else
25110 echo "configure: failed program was" >&5
25111 cat conftest.s >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25117 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25118 if test $gcc_cv_as_sparc_sparc4 = yes; then
25120 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25125 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25126 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25128 else
25129 gcc_cv_as_sparc_sparc5=no
25130 if test x$gcc_cv_as != x; then
25131 $as_echo '.text
25132 .register %g2, #scratch
25133 .register %g3, #scratch
25134 .align 4
25135 subxc %g1, %g2, %g3
25136 fpadd8 %f0, %f2, %f4' > conftest.s
25137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25142 test $ac_status = 0; }; }
25143 then
25144 gcc_cv_as_sparc_sparc5=yes
25145 else
25146 echo "configure: failed program was" >&5
25147 cat conftest.s >&5
25149 rm -f conftest.o conftest.s
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25153 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25154 if test $gcc_cv_as_sparc_sparc5 = yes; then
25156 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25161 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25162 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25163 $as_echo_n "(cached) " >&6
25164 else
25165 gcc_cv_as_sparc_leon=no
25166 if test x$gcc_cv_as != x; then
25167 $as_echo '.text
25168 .register %g2, #scratch
25169 .register %g3, #scratch
25170 .align 4
25171 smac %g2, %g3, %g1
25172 umac %g2, %g3, %g1
25173 casa [%g2] 0xb, %g3, %g1' > conftest.s
25174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25179 test $ac_status = 0; }; }
25180 then
25181 gcc_cv_as_sparc_leon=yes
25182 else
25183 echo "configure: failed program was" >&5
25184 cat conftest.s >&5
25186 rm -f conftest.o conftest.s
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25190 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25191 if test $gcc_cv_as_sparc_leon = yes; then
25193 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25198 i[34567]86-*-* | x86_64-*-*)
25199 case $target_os in
25200 cygwin*)
25201 # Full C++ conformance when using a shared libstdc++-v3 requires some
25202 # support from the Cygwin DLL, which in more recent versions exports
25203 # wrappers to aid in interposing and redirecting operators new, delete,
25204 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25205 # are configuring for a version of Cygwin that exports the wrappers.
25206 if test x$host = x$target && test x$host_cpu = xi686; then
25207 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25208 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25209 gcc_ac_cygwin_dll_wrappers=yes
25210 else
25211 gcc_ac_cygwin_dll_wrappers=no
25214 else
25215 # Can't check presence of libc functions during cross-compile, so
25216 # we just have to assume we're building for an up-to-date target.
25217 gcc_ac_cygwin_dll_wrappers=yes
25220 cat >>confdefs.h <<_ACEOF
25221 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25222 _ACEOF
25224 esac
25225 case $target_os in
25226 cygwin* | pe | mingw32*)
25227 # Recent binutils allows the three-operand form of ".comm" on PE. This
25228 # definition is used unconditionally to initialise the default state of
25229 # the target option variable that governs usage of the feature.
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25231 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25232 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25233 $as_echo_n "(cached) " >&6
25234 else
25235 gcc_cv_as_comm_has_align=no
25236 if test $in_tree_gas = yes; then
25237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25238 then gcc_cv_as_comm_has_align=yes
25240 elif test x$gcc_cv_as != x; then
25241 $as_echo '.comm foo,1,32' > conftest.s
25242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25244 (eval $ac_try) 2>&5
25245 ac_status=$?
25246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25247 test $ac_status = 0; }; }
25248 then
25249 gcc_cv_as_comm_has_align=yes
25250 else
25251 echo "configure: failed program was" >&5
25252 cat conftest.s >&5
25254 rm -f conftest.o conftest.s
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25258 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25261 cat >>confdefs.h <<_ACEOF
25262 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25263 _ACEOF
25265 # Used for DWARF 2 in PE
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25267 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25268 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25269 $as_echo_n "(cached) " >&6
25270 else
25271 gcc_cv_as_ix86_pe_secrel32=no
25272 if test $in_tree_gas = yes; then
25273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25274 then gcc_cv_as_ix86_pe_secrel32=yes
25276 elif test x$gcc_cv_as != x; then
25277 $as_echo '.text
25278 foo: nop
25279 .data
25280 .secrel32 foo' > conftest.s
25281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286 test $ac_status = 0; }; }
25287 then
25288 if test x$gcc_cv_ld != x \
25289 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25290 gcc_cv_as_ix86_pe_secrel32=yes
25292 rm -f conftest
25293 else
25294 echo "configure: failed program was" >&5
25295 cat conftest.s >&5
25297 rm -f conftest.o conftest.s
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25301 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25302 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25304 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25307 # Test if the assembler supports the extended form of the .section
25308 # directive that specifies section alignment. LTO support uses this,
25309 # but normally only after installation, so we warn but don't fail the
25310 # configure if LTO is enabled but the assembler does not support it.
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25312 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25313 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25315 else
25316 gcc_cv_as_section_has_align=no
25317 if test $in_tree_gas = yes; then
25318 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25319 then gcc_cv_as_section_has_align=yes
25321 elif test x$gcc_cv_as != x; then
25322 $as_echo '.section lto_test,"dr0"' > conftest.s
25323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25329 then
25330 gcc_cv_as_section_has_align=yes
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_section_has_align" >&5
25339 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25341 if test x$gcc_cv_as_section_has_align != xyes; then
25342 case ",$enable_languages," in
25343 *,lto,*)
25344 { $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
25345 $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;}
25347 esac
25350 esac
25352 # Test if the assembler supports the section flag 'e' for specifying
25353 # an excluded section.
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25355 $as_echo_n "checking assembler for .section with e... " >&6; }
25356 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25357 $as_echo_n "(cached) " >&6
25358 else
25359 gcc_cv_as_section_has_e=no
25360 if test $in_tree_gas = yes; then
25361 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25362 then gcc_cv_as_section_has_e=yes
25364 elif test x$gcc_cv_as != x; then
25365 $as_echo '.section foo1,"e"
25366 .byte 0,0,0,0' > conftest.s
25367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25369 (eval $ac_try) 2>&5
25370 ac_status=$?
25371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25372 test $ac_status = 0; }; }
25373 then
25374 gcc_cv_as_section_has_e=yes
25375 else
25376 echo "configure: failed program was" >&5
25377 cat conftest.s >&5
25379 rm -f conftest.o conftest.s
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25383 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25386 cat >>confdefs.h <<_ACEOF
25387 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25388 _ACEOF
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25392 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25393 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25394 $as_echo_n "(cached) " >&6
25395 else
25396 gcc_cv_as_ix86_filds=no
25397 if test x$gcc_cv_as != x; then
25398 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404 test $ac_status = 0; }; }
25405 then
25406 gcc_cv_as_ix86_filds=yes
25407 else
25408 echo "configure: failed program was" >&5
25409 cat conftest.s >&5
25411 rm -f conftest.o conftest.s
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25415 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25416 if test $gcc_cv_as_ix86_filds = yes; then
25418 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25423 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25424 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25425 $as_echo_n "(cached) " >&6
25426 else
25427 gcc_cv_as_ix86_fildq=no
25428 if test x$gcc_cv_as != x; then
25429 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25436 then
25437 gcc_cv_as_ix86_fildq=yes
25438 else
25439 echo "configure: failed program was" >&5
25440 cat conftest.s >&5
25442 rm -f conftest.o conftest.s
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25446 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25447 if test $gcc_cv_as_ix86_fildq = yes; then
25449 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25454 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25455 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25456 $as_echo_n "(cached) " >&6
25457 else
25458 gcc_cv_as_ix86_cmov_sun_syntax=no
25459 if test x$gcc_cv_as != x; then
25460 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25466 test $ac_status = 0; }; }
25467 then
25468 gcc_cv_as_ix86_cmov_sun_syntax=yes
25469 else
25470 echo "configure: failed program was" >&5
25471 cat conftest.s >&5
25473 rm -f conftest.o conftest.s
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25477 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25478 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25480 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25485 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25486 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25487 $as_echo_n "(cached) " >&6
25488 else
25489 gcc_cv_as_ix86_ffreep=no
25490 if test x$gcc_cv_as != x; then
25491 $as_echo 'ffreep %st(1)' > conftest.s
25492 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25494 (eval $ac_try) 2>&5
25495 ac_status=$?
25496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25497 test $ac_status = 0; }; }
25498 then
25499 gcc_cv_as_ix86_ffreep=yes
25500 else
25501 echo "configure: failed program was" >&5
25502 cat conftest.s >&5
25504 rm -f conftest.o conftest.s
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25508 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25509 if test $gcc_cv_as_ix86_ffreep = yes; then
25511 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25516 $as_echo_n "checking assembler for .quad directive... " >&6; }
25517 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25518 $as_echo_n "(cached) " >&6
25519 else
25520 gcc_cv_as_ix86_quad=no
25521 if test x$gcc_cv_as != x; then
25522 $as_echo '.quad 0' > conftest.s
25523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25526 ac_status=$?
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; }
25529 then
25530 gcc_cv_as_ix86_quad=yes
25531 else
25532 echo "configure: failed program was" >&5
25533 cat conftest.s >&5
25535 rm -f conftest.o conftest.s
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25539 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25540 if test $gcc_cv_as_ix86_quad = yes; then
25542 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25547 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25548 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25549 $as_echo_n "(cached) " >&6
25550 else
25551 gcc_cv_as_ix86_sahf=no
25552 if test x$gcc_cv_as != x; then
25553 $as_echo '.code64
25554 sahf' > conftest.s
25555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25561 then
25562 gcc_cv_as_ix86_sahf=yes
25563 else
25564 echo "configure: failed program was" >&5
25565 cat conftest.s >&5
25567 rm -f conftest.o conftest.s
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25571 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25572 if test $gcc_cv_as_ix86_sahf = yes; then
25574 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25579 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25580 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25582 else
25583 gcc_cv_as_ix86_interunit_movq=no
25584 if test x$gcc_cv_as != x; then
25585 $as_echo '.code64
25586 movq %mm0, %rax
25587 movq %rax, %xmm0' > conftest.s
25588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25593 test $ac_status = 0; }; }
25594 then
25595 gcc_cv_as_ix86_interunit_movq=yes
25596 else
25597 echo "configure: failed program was" >&5
25598 cat conftest.s >&5
25600 rm -f conftest.o conftest.s
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25604 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25607 cat >>confdefs.h <<_ACEOF
25608 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25609 _ACEOF
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25613 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25614 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25615 $as_echo_n "(cached) " >&6
25616 else
25617 gcc_cv_as_ix86_hle=no
25618 if test x$gcc_cv_as != x; then
25619 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25625 test $ac_status = 0; }; }
25626 then
25627 gcc_cv_as_ix86_hle=yes
25628 else
25629 echo "configure: failed program was" >&5
25630 cat conftest.s >&5
25632 rm -f conftest.o conftest.s
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25636 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25637 if test $gcc_cv_as_ix86_hle = yes; then
25639 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25644 $as_echo_n "checking assembler for swap suffix... " >&6; }
25645 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25646 $as_echo_n "(cached) " >&6
25647 else
25648 gcc_cv_as_ix86_swap=no
25649 if test x$gcc_cv_as != x; then
25650 $as_echo 'movl.s %esp, %ebp' > conftest.s
25651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25657 then
25658 gcc_cv_as_ix86_swap=yes
25659 else
25660 echo "configure: failed program was" >&5
25661 cat conftest.s >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25667 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25668 if test $gcc_cv_as_ix86_swap = yes; then
25670 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25675 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25676 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25677 $as_echo_n "(cached) " >&6
25678 else
25679 gcc_cv_as_ix86_diff_sect_delta=no
25680 if test x$gcc_cv_as != x; then
25681 $as_echo '.section .rodata
25682 .L1:
25683 .long .L2-.L1
25684 .long .L3-.L1
25685 .text
25686 .L3: nop
25687 .L2: nop' > conftest.s
25688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25690 (eval $ac_try) 2>&5
25691 ac_status=$?
25692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25693 test $ac_status = 0; }; }
25694 then
25695 gcc_cv_as_ix86_diff_sect_delta=yes
25696 else
25697 echo "configure: failed program was" >&5
25698 cat conftest.s >&5
25700 rm -f conftest.o conftest.s
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25704 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25705 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25707 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25712 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25713 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25714 $as_echo_n "(cached) " >&6
25715 else
25716 gcc_cv_as_ix86_rep_lock_prefix=no
25717 if test x$gcc_cv_as != x; then
25718 $as_echo 'rep movsl
25719 rep ret
25720 rep nop
25721 rep bsf %ecx, %eax
25722 rep bsr %ecx, %eax
25723 lock addl %edi, (%eax,%esi)
25724 lock orl $0, (%esp)' > conftest.s
25725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25731 then
25732 gcc_cv_as_ix86_rep_lock_prefix=yes
25733 else
25734 echo "configure: failed program was" >&5
25735 cat conftest.s >&5
25737 rm -f conftest.o conftest.s
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25741 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25742 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25744 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25749 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25750 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25751 $as_echo_n "(cached) " >&6
25752 else
25753 gcc_cv_as_ix86_ud2=no
25754 if test x$gcc_cv_as != x; then
25755 $as_echo 'ud2' > conftest.s
25756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761 test $ac_status = 0; }; }
25762 then
25763 gcc_cv_as_ix86_ud2=yes
25764 else
25765 echo "configure: failed program was" >&5
25766 cat conftest.s >&5
25768 rm -f conftest.o conftest.s
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25772 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25773 if test $gcc_cv_as_ix86_ud2 = yes; then
25775 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25779 # Enforce 32-bit output with gas and gld.
25780 if test x$gas = xyes; then
25781 as_ix86_gas_32_opt="--32"
25783 if echo "$ld_ver" | grep GNU > /dev/null; then
25784 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25785 ld_ix86_gld_32_opt="-melf_i386_sol2"
25786 else
25787 ld_ix86_gld_32_opt="-melf_i386"
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25792 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25793 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25794 $as_echo_n "(cached) " >&6
25795 else
25796 gcc_cv_as_ix86_tlsgdplt=no
25797 if test x$gcc_cv_as != x; then
25798 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25801 (eval $ac_try) 2>&5
25802 ac_status=$?
25803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25804 test $ac_status = 0; }; }
25805 then
25806 if test x$gcc_cv_ld != x \
25807 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25808 gcc_cv_as_ix86_tlsgdplt=yes
25810 rm -f conftest
25811 else
25812 echo "configure: failed program was" >&5
25813 cat conftest.s >&5
25815 rm -f conftest.o conftest.s
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25819 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25820 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25822 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25826 conftest_s='
25827 .section .tdata,"aw'$tls_section_flag'",@progbits
25828 tls_ld:
25829 .section .text,"ax",@progbits
25830 call tls_ld@tlsldmplt'
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25833 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25834 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25835 $as_echo_n "(cached) " >&6
25836 else
25837 gcc_cv_as_ix86_tlsldmplt=no
25838 if test x$gcc_cv_as != x; then
25839 $as_echo "$conftest_s" > conftest.s
25840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25845 test $ac_status = 0; }; }
25846 then
25847 if test x$gcc_cv_ld != x \
25848 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25849 gcc_cv_as_ix86_tlsldmplt=yes
25851 rm -f conftest
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_tlsldmplt" >&5
25860 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25863 cat >>confdefs.h <<_ACEOF
25864 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25865 _ACEOF
25868 conftest_s='
25869 .section .text,"ax",@progbits
25870 .globl _start
25871 .type _start, @function
25872 _start:
25873 leal value@tlsldm(%ebx), %eax
25874 call ___tls_get_addr@plt
25876 .section .tdata,"aw'$tls_section_flag'",@progbits
25877 .type value, @object
25878 value:'
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25880 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25881 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25882 $as_echo_n "(cached) " >&6
25883 else
25884 gcc_cv_as_ix86_tlsldm=no
25885 if test x$gcc_cv_as != x; then
25886 $as_echo "$conftest_s" > conftest.s
25887 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25889 (eval $ac_try) 2>&5
25890 ac_status=$?
25891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25892 test $ac_status = 0; }; }
25893 then
25894 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25895 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25896 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25897 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25898 gcc_cv_as_ix86_tlsldm=yes
25901 rm -f conftest
25902 else
25903 echo "configure: failed program was" >&5
25904 cat conftest.s >&5
25906 rm -f conftest.o conftest.s
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25910 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25913 cat >>confdefs.h <<_ACEOF
25914 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25915 _ACEOF
25918 conftest_s='
25919 .data
25920 bar:
25921 .byte 1
25922 .text
25923 .global _start
25924 _start:
25925 cmpl $0, bar@GOT
25926 jmp *_start@GOT'
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25928 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25929 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25930 $as_echo_n "(cached) " >&6
25931 else
25932 gcc_cv_as_ix86_got32x=no
25933 if test x$gcc_cv_as != x; then
25934 $as_echo "$conftest_s" > conftest.s
25935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25940 test $ac_status = 0; }; }
25941 then
25942 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25943 && test x$gcc_cv_readelf != x \
25944 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
25945 | grep R_386_GOT32X > /dev/null 2>&1 \
25946 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25947 if $gcc_cv_objdump -dw conftest 2>&1 \
25948 | grep 0xffffff > /dev/null 2>&1; then
25949 gcc_cv_as_ix86_got32x=no
25950 else
25951 gcc_cv_as_ix86_got32x=yes
25954 rm -f conftest
25955 else
25956 echo "configure: failed program was" >&5
25957 cat conftest.s >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
25963 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
25966 cat >>confdefs.h <<_ACEOF
25967 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
25968 _ACEOF
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25972 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25973 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25974 $as_echo_n "(cached) " >&6
25975 else
25976 gcc_cv_as_ix86_gotoff_in_data=no
25977 if test $in_tree_gas = yes; then
25978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25979 then gcc_cv_as_ix86_gotoff_in_data=yes
25981 elif test x$gcc_cv_as != x; then
25982 $as_echo ' .text
25983 .L0:
25985 .data
25986 .long .L0@GOTOFF' > conftest.s
25987 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25989 (eval $ac_try) 2>&5
25990 ac_status=$?
25991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25992 test $ac_status = 0; }; }
25993 then
25994 gcc_cv_as_ix86_gotoff_in_data=yes
25995 else
25996 echo "configure: failed program was" >&5
25997 cat conftest.s >&5
25999 rm -f conftest.o conftest.s
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26003 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26006 cat >>confdefs.h <<_ACEOF
26007 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26008 _ACEOF
26011 conftest_s='
26012 .section .text,"ax",@progbits
26013 .globl _start
26014 .type _start, @function
26015 _start:
26016 leal ld@tlsldm(%ecx), %eax
26017 call *___tls_get_addr@GOT(%ecx)
26018 leal gd@tlsgd(%ecx), %eax
26019 call *___tls_get_addr@GOT(%ecx)
26021 .section .tdata,"aw'$tls_section_flag'",@progbits
26022 .type ld, @object
26024 .byte 0
26025 .globl gd
26026 .type gd, @object
26028 .byte 0'
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26030 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26031 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26032 $as_echo_n "(cached) " >&6
26033 else
26034 gcc_cv_as_ix86_tls_get_addr_via_got=no
26035 if test x$gcc_cv_as != x; then
26036 $as_echo "$conftest_s" > conftest.s
26037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26039 (eval $ac_try) 2>&5
26040 ac_status=$?
26041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26042 test $ac_status = 0; }; }
26043 then
26044 if test x$gcc_cv_ld != x \
26045 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26046 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26048 rm -f conftest
26049 else
26050 echo "configure: failed program was" >&5
26051 cat conftest.s >&5
26053 rm -f conftest.o conftest.s
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26057 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26060 cat >>confdefs.h <<_ACEOF
26061 #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`
26062 _ACEOF
26066 ia64*-*-*)
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26068 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26069 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26070 $as_echo_n "(cached) " >&6
26071 else
26072 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26073 if test $in_tree_gas = yes; then
26074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26075 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26077 elif test x$gcc_cv_as != x; then
26078 $as_echo ' .text
26079 addl r15 = @ltoffx(x#), gp
26081 ld8.mov r16 = [r15], x#' > conftest.s
26082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26084 (eval $ac_try) 2>&5
26085 ac_status=$?
26086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26087 test $ac_status = 0; }; }
26088 then
26089 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26090 else
26091 echo "configure: failed program was" >&5
26092 cat conftest.s >&5
26094 rm -f conftest.o conftest.s
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26098 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26099 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26101 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26107 powerpc*-*-*)
26109 case $target in
26110 *-*-darwin*)
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26112 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26113 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26114 $as_echo_n "(cached) " >&6
26115 else
26116 gcc_cv_as_machine_directive=no
26117 if test x$gcc_cv_as != x; then
26118 $as_echo ' .machine ppc7400' > conftest.s
26119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26121 (eval $ac_try) 2>&5
26122 ac_status=$?
26123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26124 test $ac_status = 0; }; }
26125 then
26126 gcc_cv_as_machine_directive=yes
26127 else
26128 echo "configure: failed program was" >&5
26129 cat conftest.s >&5
26131 rm -f conftest.o conftest.s
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26135 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26137 if test x$gcc_cv_as_machine_directive != xyes; then
26138 echo "*** This target requires an assembler supporting \".machine\"" >&2
26139 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26140 test x$build = x$target && exit 1
26143 esac
26145 case $target in
26146 *-*-aix*) conftest_s=' .machine "pwr5"
26147 .csect .text[PR]
26148 mfcr 3,128';;
26149 *-*-darwin*) conftest_s=' .text
26150 mfcr r3,128';;
26151 *) conftest_s=' .machine power4
26152 .text
26153 mfcr 3,128';;
26154 esac
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26157 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26158 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26159 $as_echo_n "(cached) " >&6
26160 else
26161 gcc_cv_as_powerpc_mfcrf=no
26162 if test $in_tree_gas = yes; then
26163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26164 then gcc_cv_as_powerpc_mfcrf=yes
26166 elif test x$gcc_cv_as != x; then
26167 $as_echo "$conftest_s" > conftest.s
26168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26170 (eval $ac_try) 2>&5
26171 ac_status=$?
26172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26173 test $ac_status = 0; }; }
26174 then
26175 gcc_cv_as_powerpc_mfcrf=yes
26176 else
26177 echo "configure: failed program was" >&5
26178 cat conftest.s >&5
26180 rm -f conftest.o conftest.s
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26184 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26185 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26187 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26191 case $target in
26192 *-*-aix*) conftest_s=' .machine "pwr5"
26193 .csect .text[PR]
26194 popcntb 3,3';;
26195 *) conftest_s=' .machine power5
26196 .text
26197 popcntb 3,3';;
26198 esac
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26201 $as_echo_n "checking assembler for popcntb support... " >&6; }
26202 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26203 $as_echo_n "(cached) " >&6
26204 else
26205 gcc_cv_as_powerpc_popcntb=no
26206 if test $in_tree_gas = yes; then
26207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26208 then gcc_cv_as_powerpc_popcntb=yes
26210 elif test x$gcc_cv_as != x; then
26211 $as_echo "$conftest_s" > conftest.s
26212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26214 (eval $ac_try) 2>&5
26215 ac_status=$?
26216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26217 test $ac_status = 0; }; }
26218 then
26219 gcc_cv_as_powerpc_popcntb=yes
26220 else
26221 echo "configure: failed program was" >&5
26222 cat conftest.s >&5
26224 rm -f conftest.o conftest.s
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26228 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26229 if test $gcc_cv_as_powerpc_popcntb = yes; then
26231 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26235 case $target in
26236 *-*-aix*) conftest_s=' .machine "pwr5x"
26237 .csect .text[PR]
26238 frin 1,1';;
26239 *) conftest_s=' .machine power5
26240 .text
26241 frin 1,1';;
26242 esac
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26245 $as_echo_n "checking assembler for fp round support... " >&6; }
26246 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26248 else
26249 gcc_cv_as_powerpc_fprnd=no
26250 if test $in_tree_gas = yes; then
26251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26252 then gcc_cv_as_powerpc_fprnd=yes
26254 elif test x$gcc_cv_as != x; then
26255 $as_echo "$conftest_s" > conftest.s
26256 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26258 (eval $ac_try) 2>&5
26259 ac_status=$?
26260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26261 test $ac_status = 0; }; }
26262 then
26263 gcc_cv_as_powerpc_fprnd=yes
26264 else
26265 echo "configure: failed program was" >&5
26266 cat conftest.s >&5
26268 rm -f conftest.o conftest.s
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26272 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26273 if test $gcc_cv_as_powerpc_fprnd = yes; then
26275 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26279 case $target in
26280 *-*-aix*) conftest_s=' .machine "pwr6"
26281 .csect .text[PR]
26282 mffgpr 1,3';;
26283 *) conftest_s=' .machine power6
26284 .text
26285 mffgpr 1,3';;
26286 esac
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26289 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26290 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26291 $as_echo_n "(cached) " >&6
26292 else
26293 gcc_cv_as_powerpc_mfpgpr=no
26294 if test $in_tree_gas = yes; then
26295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26296 then gcc_cv_as_powerpc_mfpgpr=yes
26298 elif test x$gcc_cv_as != x; then
26299 $as_echo "$conftest_s" > conftest.s
26300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26302 (eval $ac_try) 2>&5
26303 ac_status=$?
26304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26305 test $ac_status = 0; }; }
26306 then
26307 gcc_cv_as_powerpc_mfpgpr=yes
26308 else
26309 echo "configure: failed program was" >&5
26310 cat conftest.s >&5
26312 rm -f conftest.o conftest.s
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26316 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26317 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26319 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26323 case $target in
26324 *-*-aix*) conftest_s=' .csect .text[PR]
26325 LCF..0:
26326 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26327 *-*-darwin*)
26328 conftest_s=' .text
26329 LCF0:
26330 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26331 *) conftest_s=' .text
26332 .LCF0:
26333 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26334 esac
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26337 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26338 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26339 $as_echo_n "(cached) " >&6
26340 else
26341 gcc_cv_as_powerpc_rel16=no
26342 if test $in_tree_gas = yes; then
26343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26344 then gcc_cv_as_powerpc_rel16=yes
26346 elif test x$gcc_cv_as != x; then
26347 $as_echo "$conftest_s" > conftest.s
26348 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26350 (eval $ac_try) 2>&5
26351 ac_status=$?
26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26353 test $ac_status = 0; }; }
26354 then
26355 gcc_cv_as_powerpc_rel16=yes
26356 else
26357 echo "configure: failed program was" >&5
26358 cat conftest.s >&5
26360 rm -f conftest.o conftest.s
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26364 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26365 if test $gcc_cv_as_powerpc_rel16 = yes; then
26367 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26371 case $target in
26372 *-*-aix*) conftest_s=' .machine "pwr6"
26373 .csect .text[PR]
26374 cmpb 3,4,5';;
26375 *) conftest_s=' .machine power6
26376 .text
26377 cmpb 3,4,5';;
26378 esac
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26381 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26382 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26383 $as_echo_n "(cached) " >&6
26384 else
26385 gcc_cv_as_powerpc_cmpb=no
26386 if test $in_tree_gas = yes; then
26387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26388 then gcc_cv_as_powerpc_cmpb=yes
26390 elif test x$gcc_cv_as != x; then
26391 $as_echo "$conftest_s" > conftest.s
26392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26394 (eval $ac_try) 2>&5
26395 ac_status=$?
26396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26397 test $ac_status = 0; }; }
26398 then
26399 gcc_cv_as_powerpc_cmpb=yes
26400 else
26401 echo "configure: failed program was" >&5
26402 cat conftest.s >&5
26404 rm -f conftest.o conftest.s
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26408 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26409 if test $gcc_cv_as_powerpc_cmpb = yes; then
26411 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26415 case $target in
26416 *-*-aix*) conftest_s=' .machine "pwr6"
26417 .csect .text[PR]
26418 dadd 1,2,3';;
26419 *) conftest_s=' .machine power6
26420 .text
26421 dadd 1,2,3';;
26422 esac
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26425 $as_echo_n "checking assembler for decimal float support... " >&6; }
26426 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26427 $as_echo_n "(cached) " >&6
26428 else
26429 gcc_cv_as_powerpc_dfp=no
26430 if test $in_tree_gas = yes; then
26431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26432 then gcc_cv_as_powerpc_dfp=yes
26434 elif test x$gcc_cv_as != x; then
26435 $as_echo "$conftest_s" > conftest.s
26436 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26438 (eval $ac_try) 2>&5
26439 ac_status=$?
26440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26441 test $ac_status = 0; }; }
26442 then
26443 gcc_cv_as_powerpc_dfp=yes
26444 else
26445 echo "configure: failed program was" >&5
26446 cat conftest.s >&5
26448 rm -f conftest.o conftest.s
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26452 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26453 if test $gcc_cv_as_powerpc_dfp = yes; then
26455 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26459 case $target in
26460 *-*-aix*) conftest_s=' .machine "pwr7"
26461 .csect .text[PR]
26462 lxvd2x 1,2,3';;
26463 *) conftest_s=' .machine power7
26464 .text
26465 lxvd2x 1,2,3';;
26466 esac
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26469 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26470 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26471 $as_echo_n "(cached) " >&6
26472 else
26473 gcc_cv_as_powerpc_vsx=no
26474 if test $in_tree_gas = yes; then
26475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26476 then gcc_cv_as_powerpc_vsx=yes
26478 elif test x$gcc_cv_as != x; then
26479 $as_echo "$conftest_s" > conftest.s
26480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26482 (eval $ac_try) 2>&5
26483 ac_status=$?
26484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26485 test $ac_status = 0; }; }
26486 then
26487 gcc_cv_as_powerpc_vsx=yes
26488 else
26489 echo "configure: failed program was" >&5
26490 cat conftest.s >&5
26492 rm -f conftest.o conftest.s
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26496 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26497 if test $gcc_cv_as_powerpc_vsx = yes; then
26499 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26503 case $target in
26504 *-*-aix*) conftest_s=' .machine "pwr7"
26505 .csect .text[PR]
26506 popcntd 3,3';;
26507 *) conftest_s=' .machine power7
26508 .text
26509 popcntd 3,3';;
26510 esac
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26513 $as_echo_n "checking assembler for popcntd support... " >&6; }
26514 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26516 else
26517 gcc_cv_as_powerpc_popcntd=no
26518 if test $in_tree_gas = yes; then
26519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26520 then gcc_cv_as_powerpc_popcntd=yes
26522 elif test x$gcc_cv_as != x; then
26523 $as_echo "$conftest_s" > conftest.s
26524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26526 (eval $ac_try) 2>&5
26527 ac_status=$?
26528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26529 test $ac_status = 0; }; }
26530 then
26531 gcc_cv_as_powerpc_popcntd=yes
26532 else
26533 echo "configure: failed program was" >&5
26534 cat conftest.s >&5
26536 rm -f conftest.o conftest.s
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26540 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26541 if test $gcc_cv_as_powerpc_popcntd = yes; then
26543 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26547 case $target in
26548 *-*-aix*) conftest_s=' .machine "pwr8"
26549 .csect .text[PR]';;
26550 *) conftest_s=' .machine power8
26551 .text';;
26552 esac
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26555 $as_echo_n "checking assembler for power8 support... " >&6; }
26556 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26557 $as_echo_n "(cached) " >&6
26558 else
26559 gcc_cv_as_powerpc_power8=no
26560 if test $in_tree_gas = yes; then
26561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26562 then gcc_cv_as_powerpc_power8=yes
26564 elif test x$gcc_cv_as != x; then
26565 $as_echo "$conftest_s" > conftest.s
26566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26568 (eval $ac_try) 2>&5
26569 ac_status=$?
26570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571 test $ac_status = 0; }; }
26572 then
26573 gcc_cv_as_powerpc_power8=yes
26574 else
26575 echo "configure: failed program was" >&5
26576 cat conftest.s >&5
26578 rm -f conftest.o conftest.s
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26582 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26583 if test $gcc_cv_as_powerpc_power8 = yes; then
26585 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26589 case $target in
26590 *-*-aix*) conftest_s=' .machine "pwr9"
26591 .csect .text[PR]';;
26592 *) conftest_s=' .machine power9
26593 .text';;
26594 esac
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26597 $as_echo_n "checking assembler for power9 support... " >&6; }
26598 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26599 $as_echo_n "(cached) " >&6
26600 else
26601 gcc_cv_as_powerpc_power9=no
26602 if test $in_tree_gas = yes; then
26603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26604 then gcc_cv_as_powerpc_power9=yes
26606 elif test x$gcc_cv_as != x; then
26607 $as_echo "$conftest_s" > conftest.s
26608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613 test $ac_status = 0; }; }
26614 then
26615 gcc_cv_as_powerpc_power9=yes
26616 else
26617 echo "configure: failed program was" >&5
26618 cat conftest.s >&5
26620 rm -f conftest.o conftest.s
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26624 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26625 if test $gcc_cv_as_powerpc_power9 = yes; then
26627 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26631 case $target in
26632 *-*-aix*) conftest_s=' .csect .text[PR]
26633 lwsync';;
26634 *) conftest_s=' .text
26635 lwsync';;
26636 esac
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26639 $as_echo_n "checking assembler for lwsync support... " >&6; }
26640 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26641 $as_echo_n "(cached) " >&6
26642 else
26643 gcc_cv_as_powerpc_lwsync=no
26644 if test $in_tree_gas = yes; then
26645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26646 then gcc_cv_as_powerpc_lwsync=yes
26648 elif test x$gcc_cv_as != x; then
26649 $as_echo "$conftest_s" > conftest.s
26650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26652 (eval $ac_try) 2>&5
26653 ac_status=$?
26654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26655 test $ac_status = 0; }; }
26656 then
26657 gcc_cv_as_powerpc_lwsync=yes
26658 else
26659 echo "configure: failed program was" >&5
26660 cat conftest.s >&5
26662 rm -f conftest.o conftest.s
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26666 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26667 if test $gcc_cv_as_powerpc_lwsync = yes; then
26669 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26673 case $target in
26674 *-*-aix*) conftest_s=' .machine "476"
26675 .csect .text[PR]
26676 dci 0';;
26677 *) conftest_s=' .machine "476"
26678 .text
26679 dci 0';;
26680 esac
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26683 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26684 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26685 $as_echo_n "(cached) " >&6
26686 else
26687 gcc_cv_as_powerpc_dci=no
26688 if test $in_tree_gas = yes; then
26689 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26690 then gcc_cv_as_powerpc_dci=yes
26692 elif test x$gcc_cv_as != x; then
26693 $as_echo "$conftest_s" > conftest.s
26694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26696 (eval $ac_try) 2>&5
26697 ac_status=$?
26698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26699 test $ac_status = 0; }; }
26700 then
26701 gcc_cv_as_powerpc_dci=yes
26702 else
26703 echo "configure: failed program was" >&5
26704 cat conftest.s >&5
26706 rm -f conftest.o conftest.s
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26710 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26711 if test $gcc_cv_as_powerpc_dci = yes; then
26713 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26718 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26719 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26720 $as_echo_n "(cached) " >&6
26721 else
26722 gcc_cv_as_powerpc_gnu_attribute=no
26723 if test $in_tree_gas = yes; then
26724 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26725 then gcc_cv_as_powerpc_gnu_attribute=yes
26727 elif test x$gcc_cv_as != x; then
26728 $as_echo '.gnu_attribute 4,1' > conftest.s
26729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26734 test $ac_status = 0; }; }
26735 then
26736 gcc_cv_as_powerpc_gnu_attribute=yes
26737 else
26738 echo "configure: failed program was" >&5
26739 cat conftest.s >&5
26741 rm -f conftest.o conftest.s
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26745 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26746 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26748 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26753 $as_echo_n "checking assembler for tls marker support... " >&6; }
26754 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26755 $as_echo_n "(cached) " >&6
26756 else
26757 gcc_cv_as_powerpc_tls_markers=no
26758 if test $in_tree_gas = yes; then
26759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26760 then gcc_cv_as_powerpc_tls_markers=yes
26762 elif test x$gcc_cv_as != x; then
26763 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26770 then
26771 gcc_cv_as_powerpc_tls_markers=yes
26772 else
26773 echo "configure: failed program was" >&5
26774 cat conftest.s >&5
26776 rm -f conftest.o conftest.s
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26780 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26781 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26783 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26788 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26789 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26790 $as_echo_n "(cached) " >&6
26791 else
26792 gcc_cv_as_powerpc_entry_markers=no
26793 if test $in_tree_gas = yes; then
26794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26795 then gcc_cv_as_powerpc_entry_markers=yes
26797 elif test x$gcc_cv_as != x; then
26798 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26804 test $ac_status = 0; }; }
26805 then
26806 gcc_cv_as_powerpc_entry_markers=yes
26807 else
26808 echo "configure: failed program was" >&5
26809 cat conftest.s >&5
26811 rm -f conftest.o conftest.s
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26815 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26816 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26818 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26822 case $target in
26823 *-*-aix*)
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26825 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26826 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26827 $as_echo_n "(cached) " >&6
26828 else
26829 gcc_cv_as_aix_ref=no
26830 if test $in_tree_gas = yes; then
26831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26832 then gcc_cv_as_aix_ref=yes
26834 elif test x$gcc_cv_as != x; then
26835 $as_echo ' .csect stuff[rw]
26836 stuff:
26837 .long 1
26838 .extern sym
26839 .ref sym
26840 ' > conftest.s
26841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26843 (eval $ac_try) 2>&5
26844 ac_status=$?
26845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26846 test $ac_status = 0; }; }
26847 then
26848 gcc_cv_as_aix_ref=yes
26849 else
26850 echo "configure: failed program was" >&5
26851 cat conftest.s >&5
26853 rm -f conftest.o conftest.s
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26857 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26858 if test $gcc_cv_as_aix_ref = yes; then
26860 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26865 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26866 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26867 $as_echo_n "(cached) " >&6
26868 else
26869 gcc_cv_as_aix_dwloc=no
26870 if test $in_tree_gas = yes; then
26871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26872 then gcc_cv_as_aix_dwloc=yes
26874 elif test x$gcc_cv_as != x; then
26875 $as_echo ' .dwsect 0xA0000
26876 Lframe..0:
26877 .vbyte 4,Lframe..0:
26878 ' > conftest.s
26879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26882 ac_status=$?
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; }
26885 then
26886 gcc_cv_as_aix_dwloc=yes
26887 else
26888 echo "configure: failed program was" >&5
26889 cat conftest.s >&5
26891 rm -f conftest.o conftest.s
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26895 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26896 if test $gcc_cv_as_aix_dwloc = yes; then
26898 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26902 esac
26905 mips*-*-*)
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26907 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26908 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26909 $as_echo_n "(cached) " >&6
26910 else
26911 gcc_cv_as_mips_explicit_relocs=no
26912 if test $in_tree_gas = yes; then
26913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26914 then gcc_cv_as_mips_explicit_relocs=yes
26916 elif test x$gcc_cv_as != x; then
26917 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26920 (eval $ac_try) 2>&5
26921 ac_status=$?
26922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26923 test $ac_status = 0; }; }
26924 then
26925 gcc_cv_as_mips_explicit_relocs=yes
26926 else
26927 echo "configure: failed program was" >&5
26928 cat conftest.s >&5
26930 rm -f conftest.o conftest.s
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26934 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26935 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26936 if test x$target_cpu_default = x
26937 then target_cpu_default=MASK_EXPLICIT_RELOCS
26938 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26943 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26944 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26945 $as_echo_n "(cached) " >&6
26946 else
26947 gcc_cv_as_mips_no_shared=no
26948 if test $in_tree_gas = yes; then
26949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26950 then gcc_cv_as_mips_no_shared=yes
26952 elif test x$gcc_cv_as != x; then
26953 $as_echo 'nop' > conftest.s
26954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26956 (eval $ac_try) 2>&5
26957 ac_status=$?
26958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26959 test $ac_status = 0; }; }
26960 then
26961 gcc_cv_as_mips_no_shared=yes
26962 else
26963 echo "configure: failed program was" >&5
26964 cat conftest.s >&5
26966 rm -f conftest.o conftest.s
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26970 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26971 if test $gcc_cv_as_mips_no_shared = yes; then
26973 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26978 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26979 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26980 $as_echo_n "(cached) " >&6
26981 else
26982 gcc_cv_as_mips_gnu_attribute=no
26983 if test $in_tree_gas = yes; then
26984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26985 then gcc_cv_as_mips_gnu_attribute=yes
26987 elif test x$gcc_cv_as != x; then
26988 $as_echo '.gnu_attribute 4,1' > conftest.s
26989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26991 (eval $ac_try) 2>&5
26992 ac_status=$?
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; }
26995 then
26996 gcc_cv_as_mips_gnu_attribute=yes
26997 else
26998 echo "configure: failed program was" >&5
26999 cat conftest.s >&5
27001 rm -f conftest.o conftest.s
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27005 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27006 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27008 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27013 $as_echo_n "checking assembler for .module support... " >&6; }
27014 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27015 $as_echo_n "(cached) " >&6
27016 else
27017 gcc_cv_as_mips_dot_module=no
27018 if test x$gcc_cv_as != x; then
27019 $as_echo '.module mips2
27020 .module fp=xx' > conftest.s
27021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27027 then
27028 gcc_cv_as_mips_dot_module=yes
27029 else
27030 echo "configure: failed program was" >&5
27031 cat conftest.s >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27037 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27038 if test $gcc_cv_as_mips_dot_module = yes; then
27040 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27043 if test x$gcc_cv_as_mips_dot_module = xno \
27044 && test x$with_fp_32 != x; then
27045 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27049 $as_echo_n "checking assembler for .micromips support... " >&6; }
27050 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27051 $as_echo_n "(cached) " >&6
27052 else
27053 gcc_cv_as_micromips_support=no
27054 if test x$gcc_cv_as != x; then
27055 $as_echo '.set micromips' > conftest.s
27056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27058 (eval $ac_try) 2>&5
27059 ac_status=$?
27060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27061 test $ac_status = 0; }; }
27062 then
27063 gcc_cv_as_micromips_support=yes
27064 else
27065 echo "configure: failed program was" >&5
27066 cat conftest.s >&5
27068 rm -f conftest.o conftest.s
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27072 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27073 if test $gcc_cv_as_micromips_support = yes; then
27075 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27080 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27081 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27082 $as_echo_n "(cached) " >&6
27083 else
27084 gcc_cv_as_mips_dtprelword=no
27085 if test $in_tree_gas = yes; then
27086 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27087 then gcc_cv_as_mips_dtprelword=yes
27089 elif test x$gcc_cv_as != x; then
27090 $as_echo '.section .tdata,"awT",@progbits
27092 .word 2
27093 .text
27094 .dtprelword x+0x8000' > conftest.s
27095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27097 (eval $ac_try) 2>&5
27098 ac_status=$?
27099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27100 test $ac_status = 0; }; }
27101 then
27102 gcc_cv_as_mips_dtprelword=yes
27103 else
27104 echo "configure: failed program was" >&5
27105 cat conftest.s >&5
27107 rm -f conftest.o conftest.s
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27111 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27112 if test $gcc_cv_as_mips_dtprelword = yes; then
27114 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27119 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27120 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27121 $as_echo_n "(cached) " >&6
27122 else
27123 gcc_cv_as_mips_dspr1_mult=no
27124 if test x$gcc_cv_as != x; then
27125 $as_echo ' .set mips32r2
27126 .set nodspr2
27127 .set dsp
27128 madd $ac3,$4,$5
27129 maddu $ac3,$4,$5
27130 msub $ac3,$4,$5
27131 msubu $ac3,$4,$5
27132 mult $ac3,$4,$5
27133 multu $ac3,$4,$5' > conftest.s
27134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27136 (eval $ac_try) 2>&5
27137 ac_status=$?
27138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27139 test $ac_status = 0; }; }
27140 then
27141 gcc_cv_as_mips_dspr1_mult=yes
27142 else
27143 echo "configure: failed program was" >&5
27144 cat conftest.s >&5
27146 rm -f conftest.o conftest.s
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27150 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27151 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27153 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27158 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27159 gcc_cv_as_ld_jalr_reloc=no
27160 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27161 if test $in_tree_ld = yes ; then
27162 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 \
27163 && test $in_tree_ld_is_elf = yes; then
27164 gcc_cv_as_ld_jalr_reloc=yes
27166 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27167 echo ' .ent x' > conftest.s
27168 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27169 echo ' lw $25,%call16(y)($28)' >> conftest.s
27170 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27171 echo '1: jalr $25' >> conftest.s
27172 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27173 echo '1: jalr $25' >> conftest.s
27174 echo ' .end x' >> conftest.s
27175 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27176 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27177 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27178 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27179 gcc_cv_as_ld_jalr_reloc=yes
27182 rm -f conftest.*
27185 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27186 if test x$target_cpu_default = x; then
27187 target_cpu_default=MASK_RELAX_PIC_CALLS
27188 else
27189 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27193 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27196 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27197 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27198 $as_echo_n "(cached) " >&6
27199 else
27200 gcc_cv_ld_mips_personality_relaxation=no
27201 if test $in_tree_ld = yes ; then
27202 if test "$gcc_cv_gld_major_version" -eq 2 \
27203 -a "$gcc_cv_gld_minor_version" -ge 21 \
27204 -o "$gcc_cv_gld_major_version" -gt 2; then
27205 gcc_cv_ld_mips_personality_relaxation=yes
27207 elif test x$gcc_cv_as != x \
27208 -a x$gcc_cv_ld != x \
27209 -a x$gcc_cv_readelf != x ; then
27210 cat > conftest.s <<EOF
27211 .cfi_startproc
27212 .cfi_personality 0x80,indirect_ptr
27213 .ent test
27214 test:
27216 .end test
27217 .cfi_endproc
27219 .section .data,"aw",@progbits
27220 indirect_ptr:
27221 .dc.a personality
27223 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27224 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27225 if $gcc_cv_readelf -d conftest 2>&1 \
27226 | grep TEXTREL > /dev/null 2>&1; then
27228 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27229 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27231 else
27232 gcc_cv_ld_mips_personality_relaxation=yes
27236 rm -f conftest.s conftest.o conftest
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27239 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27240 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27242 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27247 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27248 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27249 $as_echo_n "(cached) " >&6
27250 else
27251 gcc_cv_as_mips_nan=no
27252 if test x$gcc_cv_as != x; then
27253 $as_echo '' > conftest.s
27254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27256 (eval $ac_try) 2>&5
27257 ac_status=$?
27258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27259 test $ac_status = 0; }; }
27260 then
27261 gcc_cv_as_mips_nan=yes
27262 else
27263 echo "configure: failed program was" >&5
27264 cat conftest.s >&5
27266 rm -f conftest.o conftest.s
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27270 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27271 if test $gcc_cv_as_mips_nan = yes; then
27273 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27276 if test x$gcc_cv_as_mips_nan = xno \
27277 && test x$with_nan != x; then
27278 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27281 s390*-*-*)
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27283 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27284 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27285 $as_echo_n "(cached) " >&6
27286 else
27287 gcc_cv_as_s390_gnu_attribute=no
27288 if test $in_tree_gas = yes; then
27289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27290 then gcc_cv_as_s390_gnu_attribute=yes
27292 elif test x$gcc_cv_as != x; then
27293 $as_echo '.gnu_attribute 8,1' > conftest.s
27294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27296 (eval $ac_try) 2>&5
27297 ac_status=$?
27298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27299 test $ac_status = 0; }; }
27300 then
27301 gcc_cv_as_s390_gnu_attribute=yes
27302 else
27303 echo "configure: failed program was" >&5
27304 cat conftest.s >&5
27306 rm -f conftest.o conftest.s
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27310 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27311 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27313 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27317 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27318 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27319 $as_echo_n "(cached) " >&6
27320 else
27321 gcc_cv_as_s390_machine_machinemode=no
27322 if test $in_tree_gas = yes; then
27323 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27324 then gcc_cv_as_s390_machine_machinemode=yes
27326 elif test x$gcc_cv_as != x; then
27327 $as_echo ' .machinemode push
27328 .machinemode pop
27329 .machine push
27330 .machine pop' > conftest.s
27331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27333 (eval $ac_try) 2>&5
27334 ac_status=$?
27335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27336 test $ac_status = 0; }; }
27337 then
27338 gcc_cv_as_s390_machine_machinemode=yes
27339 else
27340 echo "configure: failed program was" >&5
27341 cat conftest.s >&5
27343 rm -f conftest.o conftest.s
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27347 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27348 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27350 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27354 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27355 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27356 $as_echo_n "(cached) " >&6
27357 else
27358 gcc_cv_as_s390_architecture_modifiers=no
27359 if test $in_tree_gas = yes; then
27360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27361 then gcc_cv_as_s390_architecture_modifiers=yes
27363 elif test x$gcc_cv_as != x; then
27364 $as_echo ' .machine z13+vx ' > conftest.s
27365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27367 (eval $ac_try) 2>&5
27368 ac_status=$?
27369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27370 test $ac_status = 0; }; }
27371 then
27372 gcc_cv_as_s390_architecture_modifiers=yes
27373 else
27374 echo "configure: failed program was" >&5
27375 cat conftest.s >&5
27377 rm -f conftest.o conftest.s
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27381 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27382 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27384 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27388 esac
27390 # Mips and HP-UX need the GNU assembler.
27391 # Linux on IA64 might be able to use the Intel assembler.
27393 case "$target" in
27394 mips*-*-* | *-*-hpux* )
27395 if test x$gas_flag = xyes \
27396 || test x"$host" != x"$build" \
27397 || test ! -x "$gcc_cv_as" \
27398 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27400 else
27401 echo "*** This configuration requires the GNU assembler" >&2
27402 exit 1
27405 esac
27407 # ??? Not all targets support dwarf2 debug_line, even within a version
27408 # of gas. Moreover, we need to emit a valid instruction to trigger any
27409 # info to the output file. So, as supported targets are added to gas 2.11,
27410 # add some instruction here to (also) show we expect this might work.
27411 # ??? Once 2.11 is released, probably need to add first known working
27412 # version to the per-target configury.
27413 case "$cpu_type" in
27414 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27415 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27416 | visium | xstormy16 | xtensa)
27417 insn="nop"
27419 ia64 | s390)
27420 insn="nop 0"
27422 mmix)
27423 insn="swym 0"
27425 esac
27426 if test x"$insn" != x; then
27427 conftest_s="\
27428 .file 1 \"conftest.s\"
27429 .loc 1 3 0
27430 $insn"
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27432 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27433 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27434 $as_echo_n "(cached) " >&6
27435 else
27436 gcc_cv_as_dwarf2_debug_line=no
27437 if test $in_tree_gas = yes; then
27438 if test $in_tree_gas_is_elf = yes \
27439 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27440 then gcc_cv_as_dwarf2_debug_line=yes
27442 elif test x$gcc_cv_as != x; then
27443 $as_echo "$conftest_s" > conftest.s
27444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27446 (eval $ac_try) 2>&5
27447 ac_status=$?
27448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27449 test $ac_status = 0; }; }
27450 then
27451 if test x$gcc_cv_objdump != x \
27452 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27453 | grep debug_line > /dev/null 2>&1; then
27454 gcc_cv_as_dwarf2_debug_line=yes
27456 else
27457 echo "configure: failed program was" >&5
27458 cat conftest.s >&5
27460 rm -f conftest.o conftest.s
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27464 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27467 # The .debug_line file table must be in the exact order that
27468 # we specified the files, since these indices are also used
27469 # by DW_AT_decl_file. Approximate this test by testing if
27470 # the assembler bitches if the same index is assigned twice.
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27472 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27473 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27474 $as_echo_n "(cached) " >&6
27475 else
27476 gcc_cv_as_dwarf2_file_buggy=no
27477 if test x$gcc_cv_as != x; then
27478 $as_echo ' .file 1 "foo.s"
27479 .file 1 "bar.s"' > conftest.s
27480 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27482 (eval $ac_try) 2>&5
27483 ac_status=$?
27484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27485 test $ac_status = 0; }; }
27486 then
27487 gcc_cv_as_dwarf2_file_buggy=yes
27488 else
27489 echo "configure: failed program was" >&5
27490 cat conftest.s >&5
27492 rm -f conftest.o conftest.s
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27496 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27499 if test $gcc_cv_as_dwarf2_debug_line = yes \
27500 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27502 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27507 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27508 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27509 $as_echo_n "(cached) " >&6
27510 else
27511 gcc_cv_as_gdwarf2_flag=no
27512 if test $in_tree_gas = yes; then
27513 if test $in_tree_gas_is_elf = yes \
27514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27515 then gcc_cv_as_gdwarf2_flag=yes
27517 elif test x$gcc_cv_as != x; then
27518 $as_echo "$insn" > conftest.s
27519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -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_gdwarf2_flag=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_gdwarf2_flag" >&5
27535 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27536 if test $gcc_cv_as_gdwarf2_flag = yes; then
27538 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27543 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27544 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27545 $as_echo_n "(cached) " >&6
27546 else
27547 gcc_cv_as_gstabs_flag=no
27548 if test $in_tree_gas = yes; then
27549 if test $in_tree_gas_is_elf = yes \
27550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27551 then gcc_cv_as_gstabs_flag=yes
27553 elif test x$gcc_cv_as != x; then
27554 $as_echo "$insn" > conftest.s
27555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27557 (eval $ac_try) 2>&5
27558 ac_status=$?
27559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27560 test $ac_status = 0; }; }
27561 then
27562 gcc_cv_as_gstabs_flag=yes
27563 else
27564 echo "configure: failed program was" >&5
27565 cat conftest.s >&5
27567 rm -f conftest.o conftest.s
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27571 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27572 if test $gcc_cv_as_gstabs_flag = yes; then
27574 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27579 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27580 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27581 $as_echo_n "(cached) " >&6
27582 else
27583 gcc_cv_as_debug_prefix_map_flag=no
27584 if test $in_tree_gas = yes; then
27585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27586 then gcc_cv_as_debug_prefix_map_flag=yes
27588 elif test x$gcc_cv_as != x; then
27589 $as_echo "$insn" > conftest.s
27590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27592 (eval $ac_try) 2>&5
27593 ac_status=$?
27594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27595 test $ac_status = 0; }; }
27596 then
27597 gcc_cv_as_debug_prefix_map_flag=yes
27598 else
27599 echo "configure: failed program was" >&5
27600 cat conftest.s >&5
27602 rm -f conftest.o conftest.s
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27606 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27607 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27609 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27615 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27616 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27617 $as_echo_n "(cached) " >&6
27618 else
27619 gcc_cv_as_compress_debug=no
27620 if test x$gcc_cv_as != x; then
27621 $as_echo '' > conftest.s
27622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27625 ac_status=$?
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; }
27628 then
27629 # gas compiled without zlib cannot compress debug sections and warns
27630 # about it, but still exits successfully. So check for this, too.
27631 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27632 then
27633 gcc_cv_as_compress_debug=0
27634 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27635 # defaulting to the ELF gABI format.
27636 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27637 then
27638 gcc_cv_as_compress_debug=2
27639 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27640 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27641 # Before binutils 2.26, gas only supported --compress-debug-options and
27642 # emitted the traditional GNU format.
27643 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27644 then
27645 gcc_cv_as_compress_debug=1
27646 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27647 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27648 else
27649 gcc_cv_as_compress_debug=0
27651 else
27652 echo "configure: failed program was" >&5
27653 cat conftest.s >&5
27655 rm -f conftest.o conftest.s
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27659 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27662 cat >>confdefs.h <<_ACEOF
27663 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27664 _ACEOF
27667 cat >>confdefs.h <<_ACEOF
27668 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27669 _ACEOF
27672 cat >>confdefs.h <<_ACEOF
27673 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27674 _ACEOF
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27678 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27679 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27680 $as_echo_n "(cached) " >&6
27681 else
27682 gcc_cv_as_lcomm_with_alignment=no
27683 if test x$gcc_cv_as != x; then
27684 $as_echo '.lcomm bar,4,16' > conftest.s
27685 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27687 (eval $ac_try) 2>&5
27688 ac_status=$?
27689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27690 test $ac_status = 0; }; }
27691 then
27692 gcc_cv_as_lcomm_with_alignment=yes
27693 else
27694 echo "configure: failed program was" >&5
27695 cat conftest.s >&5
27697 rm -f conftest.o conftest.s
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27701 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27702 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27704 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27708 if test x$with_sysroot = x && test x$host = x$target \
27709 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27710 && test "$prefix" != "NONE"; then
27712 cat >>confdefs.h <<_ACEOF
27713 #define PREFIX_INCLUDE_DIR "$prefix/include"
27714 _ACEOF
27718 # Determine the version of glibc, if any, used on the target.
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27720 $as_echo_n "checking for target glibc version... " >&6; }
27722 # Check whether --with-glibc-version was given.
27723 if test "${with_glibc_version+set}" = set; then :
27724 withval=$with_glibc_version;
27725 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27726 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27727 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27728 else
27729 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27731 else
27733 glibc_version_major=0
27734 glibc_version_minor=0
27735 if test -f $target_header_dir/features.h \
27736 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27737 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27738 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27739 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27744 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27746 cat >>confdefs.h <<_ACEOF
27747 #define TARGET_GLIBC_MAJOR $glibc_version_major
27748 _ACEOF
27751 cat >>confdefs.h <<_ACEOF
27752 #define TARGET_GLIBC_MINOR $glibc_version_minor
27753 _ACEOF
27756 # Check whether --enable-gnu-unique-object was given.
27757 if test "${enable_gnu_unique_object+set}" = set; then :
27758 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27759 yes | no) ;;
27760 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27761 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27762 esac
27763 else
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27765 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27766 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27767 $as_echo_n "(cached) " >&6
27768 else
27769 gcc_cv_as_gnu_unique_object=no
27770 if test $in_tree_gas = yes; then
27771 if test $in_tree_gas_is_elf = yes \
27772 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27773 then gcc_cv_as_gnu_unique_object=yes
27775 elif test x$gcc_cv_as != x; then
27776 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27779 (eval $ac_try) 2>&5
27780 ac_status=$?
27781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27782 test $ac_status = 0; }; }
27783 then
27784 gcc_cv_as_gnu_unique_object=yes
27785 else
27786 echo "configure: failed program was" >&5
27787 cat conftest.s >&5
27789 rm -f conftest.o conftest.s
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27793 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27794 if test $gcc_cv_as_gnu_unique_object = yes; then
27795 # We need to unquote above to to use the definition from config.gcc.
27796 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27798 if test $glibc_version_major -gt 2 \
27799 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27800 enable_gnu_unique_object=yes
27806 if test x$enable_gnu_unique_object = xyes; then
27808 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27813 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27814 if test "${gcc_cv_as_line_zero+set}" = set; then :
27815 $as_echo_n "(cached) " >&6
27816 else
27817 gcc_cv_as_line_zero=no
27818 if test $in_tree_gas = yes; then
27819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27820 then gcc_cv_as_line_zero=yes
27822 elif test "x$gcc_cv_as" != x; then
27823 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27824 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27826 (eval $ac_try) 2>&5
27827 ac_status=$?
27828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27829 test $ac_status = 0; }; } &&
27830 test "x`cat conftest.out`" = x
27831 then
27832 gcc_cv_as_line_zero=yes
27833 else
27834 echo "configure: failed program was" >&5
27835 cat conftest.s >&5
27836 echo "configure: error output was" >&5
27837 cat conftest.out >&5
27839 rm -f conftest.o conftest.s conftest.out
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27843 $as_echo "$gcc_cv_as_line_zero" >&6; }
27844 if test "x$gcc_cv_as_line_zero" = xyes; then
27846 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27851 $as_echo_n "checking support for thin archives... " >&6; }
27852 thin_archive_support=no
27853 echo 'int main (void) { return 0; }' > conftest.c
27854 if ($AR --version | sed 1q | grep "GNU ar" \
27855 && $CC $CFLAGS -c conftest.c \
27856 && $AR rcT conftest.a conftest.o \
27857 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27858 thin_archive_support=yes
27860 rm -f conftest.c conftest.o conftest.a conftest
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27862 $as_echo "$thin_archive_support" >&6; }
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27866 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27867 gcc_cv_ld_eh_frame_hdr=no
27868 if test $in_tree_ld = yes ; then
27869 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 \
27870 && test $in_tree_ld_is_elf = yes; then
27871 gcc_cv_ld_eh_frame_hdr=yes
27873 elif test x$gcc_cv_ld != x; then
27874 if echo "$ld_ver" | grep GNU > /dev/null; then
27875 # Check if linker supports --eh-frame-hdr option
27876 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27877 gcc_cv_ld_eh_frame_hdr=yes
27879 else
27880 case "$target" in
27881 *-*-solaris2*)
27882 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27883 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27884 gcc_cv_ld_eh_frame_hdr=yes
27887 esac
27891 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27893 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27897 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27900 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27901 gcc_cv_ld_eh_frame_ciev3=no
27902 if test $in_tree_ld = yes ; then
27903 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 \
27904 && test $in_tree_ld_is_elf = yes; then
27905 gcc_cv_ld_eh_frame_ciev3=yes
27907 elif test x$gcc_cv_ld != x; then
27908 if echo "$ld_ver" | grep GNU > /dev/null; then
27909 gcc_cv_ld_eh_frame_ciev3=yes
27910 if test 0"$ld_date" -lt 20040513; then
27911 if test -n "$ld_date"; then
27912 # If there was date string, but was earlier than 2004-05-13, fail
27913 gcc_cv_ld_eh_frame_ciev3=no
27914 elif test "$ld_vers_major" -lt 2; then
27915 gcc_cv_ld_eh_frame_ciev3=no
27916 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27917 gcc_cv_ld_eh_frame_ciev3=no
27920 else
27921 case "$target" in
27922 *-*-solaris2*)
27923 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27924 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27925 gcc_cv_ld_eh_frame_ciev3=yes
27928 esac
27932 cat >>confdefs.h <<_ACEOF
27933 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27934 _ACEOF
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27937 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27940 $as_echo_n "checking linker position independent executable support... " >&6; }
27941 gcc_cv_ld_pie=no
27942 if test $in_tree_ld = yes ; then
27943 case "$target" in
27944 # Full PIE support on Solaris was only introduced in gld 2.26.
27945 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27946 *) gcc_gld_pie_min_version=15 ;;
27947 esac
27948 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 \
27949 && test $in_tree_ld_is_elf = yes; then
27950 gcc_cv_ld_pie=yes
27952 elif test x$gcc_cv_ld != x; then
27953 # Check if linker supports -pie option
27954 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27955 gcc_cv_ld_pie=yes
27956 case "$target" in
27957 *-*-solaris2*)
27958 if echo "$ld_ver" | grep GNU > /dev/null \
27959 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27960 gcc_cv_ld_pie=no
27963 esac
27964 else
27965 case "$target" in
27966 *-*-solaris2.1[1-9]*)
27967 # Solaris 11.x and Solaris 12 added PIE support.
27968 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27969 gcc_cv_ld_pie=yes
27972 esac
27975 if test x"$gcc_cv_ld_pie" = xyes; then
27977 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27981 $as_echo "$gcc_cv_ld_pie" >&6; }
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27984 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27985 gcc_cv_ld_pie_copyreloc=no
27986 if test $gcc_cv_ld_pie = yes ; then
27987 if test $in_tree_ld = yes ; then
27988 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
27989 gcc_cv_ld_pie_copyreloc=yes
27991 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27992 # Check if linker supports -pie option with copy reloc
27993 case "$target" in
27994 i?86-*-linux* | x86_64-*-linux*)
27995 cat > conftest1.s <<EOF
27996 .globl a_glob
27997 .data
27998 .type a_glob, @object
27999 .size a_glob, 4
28000 a_glob:
28001 .long 2
28003 cat > conftest2.s <<EOF
28004 .text
28005 .globl main
28006 .type main, @function
28007 main:
28008 movl %eax, a_glob(%rip)
28009 .size main, .-main
28010 .globl ptr
28011 .section .data.rel,"aw",@progbits
28012 .type ptr, @object
28013 ptr:
28014 .quad a_glob
28016 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28017 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28018 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28019 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28020 gcc_cv_ld_pie_copyreloc=yes
28022 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28024 esac
28028 cat >>confdefs.h <<_ACEOF
28029 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28030 _ACEOF
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28033 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28036 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28037 gcc_cv_ld_eh_gc_sections=no
28038 if test $in_tree_ld = yes ; then
28039 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 \
28040 && test $in_tree_ld_is_elf = yes; then
28041 gcc_cv_ld_eh_gc_sections=yes
28043 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28044 cat > conftest.s <<EOF
28045 .section .text
28046 .globl _start
28047 .type _start, @function
28048 _start:
28049 .long foo
28050 .size _start, .-_start
28051 .section .text.foo,"ax",@progbits
28052 .type foo, @function
28053 foo:
28054 .long 0
28055 .size foo, .-foo
28056 .section .gcc_except_table.foo,"a",@progbits
28057 .L0:
28058 .long 0
28059 .section .eh_frame,"a",@progbits
28060 .long .L0
28062 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28063 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28064 | grep "gc-sections option ignored" > /dev/null; then
28065 gcc_cv_ld_eh_gc_sections=no
28066 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28067 | grep gcc_except_table > /dev/null; then
28068 gcc_cv_ld_eh_gc_sections=yes
28069 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28070 if test x$gcc_cv_as_comdat_group != xyes; then
28071 gcc_cv_ld_eh_gc_sections=no
28072 cat > conftest.s <<EOF
28073 .section .text
28074 .globl _start
28075 .type _start, @function
28076 _start:
28077 .long foo
28078 .size _start, .-_start
28079 .section .gnu.linkonce.t.foo,"ax",@progbits
28080 .type foo, @function
28081 foo:
28082 .long 0
28083 .size foo, .-foo
28084 .section .gcc_except_table.foo,"a",@progbits
28085 .L0:
28086 .long 0
28087 .section .eh_frame,"a",@progbits
28088 .long .L0
28090 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28091 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28092 | grep "gc-sections option ignored" > /dev/null; then
28093 gcc_cv_ld_eh_gc_sections=no
28094 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28095 | grep gcc_except_table > /dev/null; then
28096 gcc_cv_ld_eh_gc_sections=yes
28102 rm -f conftest.s conftest.o conftest
28104 case "$target" in
28105 hppa*-*-linux*)
28106 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28107 gcc_cv_ld_eh_gc_sections=no
28109 esac
28110 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28112 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28116 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28119 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28120 gcc_cv_ld_eh_gc_sections_bug=no
28121 if test $in_tree_ld = yes ; then
28122 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 \
28123 && test $in_tree_ld_is_elf = yes; then
28124 gcc_cv_ld_eh_gc_sections_bug=yes
28126 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
28127 gcc_cv_ld_eh_gc_sections_bug=yes
28128 cat > conftest.s <<EOF
28129 .section .text
28130 .globl _start
28131 .type _start, @function
28132 _start:
28133 .long foo
28134 .size _start, .-_start
28135 .section .text.startup.foo,"ax",@progbits
28136 .type foo, @function
28137 foo:
28138 .long 0
28139 .size foo, .-foo
28140 .section .gcc_except_table.foo,"a",@progbits
28141 .L0:
28142 .long 0
28143 .section .eh_frame,"a",@progbits
28144 .long .L0
28146 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28147 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28148 | grep "gc-sections option ignored" > /dev/null; then
28150 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28151 | grep gcc_except_table > /dev/null; then
28152 gcc_cv_ld_eh_gc_sections_bug=no
28155 rm -f conftest.s conftest.o conftest
28157 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28159 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28163 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28166 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28167 # gold/gld support compressed debug sections since binutils 2.19/2.21
28168 # In binutils 2.26, gld gained support for the ELF gABI format.
28169 if test $in_tree_ld = yes ; then
28170 gcc_cv_ld_compress_debug=0
28171 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 \
28172 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28173 gcc_cv_ld_compress_debug=2
28174 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28175 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 \
28176 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28177 gcc_cv_ld_compress_debug=3
28178 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28179 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 \
28180 && test $in_tree_ld_is_elf = yes; then
28181 gcc_cv_ld_compress_debug=1
28183 elif echo "$ld_ver" | grep GNU > /dev/null; then
28184 if test "$ld_vers_major" -lt 2 \
28185 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28186 gcc_cv_ld_compress_debug=0
28187 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28188 gcc_cv_ld_compress_debug=1
28189 else
28190 gcc_cv_ld_compress_debug=3
28191 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28193 if test $ld_is_gold = yes; then
28194 gcc_cv_ld_compress_debug=2
28195 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28197 else
28198 case "${target}" in
28199 *-*-solaris2*)
28200 # Introduced in Solaris 11.2.
28201 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28202 gcc_cv_ld_compress_debug=3
28203 gcc_cv_ld_compress_debug_option="-z compress-sections"
28204 else
28205 gcc_cv_ld_compress_debug=0
28209 # Assume linkers other than GNU ld don't support compessed debug
28210 # sections.
28211 gcc_cv_ld_compress_debug=0
28213 esac
28216 cat >>confdefs.h <<_ACEOF
28217 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28218 _ACEOF
28221 cat >>confdefs.h <<_ACEOF
28222 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28223 _ACEOF
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28226 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28228 # --------
28229 # UNSORTED
28230 # --------
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28233 $as_echo_n "checking linker --as-needed support... " >&6; }
28234 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28235 $as_echo_n "(cached) " >&6
28236 else
28237 gcc_cv_ld_as_needed=no
28238 gcc_cv_ld_as_needed_option='--as-needed'
28239 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28240 if test $in_tree_ld = yes ; then
28241 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 \
28242 && test $in_tree_ld_is_elf = yes; then
28243 gcc_cv_ld_as_needed=yes
28245 elif test x$gcc_cv_ld != x; then
28246 # Check if linker supports --as-needed and --no-as-needed options
28247 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28248 gcc_cv_ld_as_needed=yes
28249 else
28250 case "$target" in
28251 # Solaris 2 ld always supports -z ignore/-z record.
28252 *-*-solaris2*)
28253 gcc_cv_ld_as_needed=yes
28254 gcc_cv_ld_as_needed_option="-z ignore"
28255 gcc_cv_ld_no_as_needed_option="-z record"
28257 esac
28260 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28261 # dl_iterate_phdr, i.e. since Solaris 11.
28262 case "$target" in
28263 *-*-solaris2.1[1-9]*)
28264 case "$target" in
28265 i?86-*-* | x86_64-*-*)
28266 if echo "$ld_ver" | grep GNU > /dev/null; then
28267 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28268 gcc_cv_ld_as_needed=no
28271 esac
28273 *-*-solaris2*)
28274 gcc_cv_ld_as_needed=no
28276 esac
28279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28280 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28281 if test x"$gcc_cv_ld_as_needed" = xyes; then
28283 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28286 cat >>confdefs.h <<_ACEOF
28287 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28288 _ACEOF
28291 cat >>confdefs.h <<_ACEOF
28292 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28293 _ACEOF
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28298 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28299 saved_LDFLAGS="$LDFLAGS"
28300 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28301 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28303 /* end confdefs.h. */
28304 int main(void) {return 0;}
28305 _ACEOF
28306 if ac_fn_cxx_try_link "$LINENO"; then :
28307 gcc_cv_ld_clearcap=yes; break
28308 else
28309 gcc_cv_ld_clearcap=no
28311 rm -f core conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext conftest.$ac_ext
28313 done
28314 LDFLAGS="$saved_LDFLAGS"
28315 if test "x$gcc_cv_ld_clearcap" = xyes; then
28317 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28319 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28323 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28325 case "$target:$tm_file" in
28326 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28327 case "$target" in
28328 *le-*-linux*)
28329 emul_name="-melf64lppc"
28331 *-*-linux*)
28332 emul_name="-melf64ppc"
28334 *-*-freebsd*)
28335 emul_name="-melf64ppc_fbsd"
28337 esac
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28339 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28340 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28341 $as_echo_n "(cached) " >&6
28342 else
28343 gcc_cv_ld_no_dot_syms=no
28344 if test x"$ld_is_gold" = xyes; then
28345 gcc_cv_ld_no_dot_syms=yes
28346 elif test $in_tree_ld = yes ; then
28347 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
28348 gcc_cv_ld_no_dot_syms=yes
28350 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28351 cat > conftest1.s <<EOF
28352 .text
28353 bl .foo
28355 cat > conftest2.s <<EOF
28356 .section ".opd","aw"
28357 .align 3
28358 .globl foo
28359 .type foo,@function
28360 foo:
28361 .quad .LEfoo,.TOC.@tocbase,0
28362 .text
28363 .LEfoo:
28365 .size foo,.-.LEfoo
28367 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28368 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28369 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28370 gcc_cv_ld_no_dot_syms=yes
28372 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28377 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28378 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28380 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28385 $as_echo_n "checking linker large toc support... " >&6; }
28386 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28387 $as_echo_n "(cached) " >&6
28388 else
28389 gcc_cv_ld_large_toc=no
28390 if test x"$ld_is_gold" = xyes; then
28391 gcc_cv_ld_large_toc=yes
28392 elif test $in_tree_ld = yes ; then
28393 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
28394 gcc_cv_ld_large_toc=yes
28396 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28397 cat > conftest.s <<EOF
28398 .section ".tbss","awT",@nobits
28399 .align 3
28400 ie0: .space 8
28401 .global _start
28402 .text
28403 _start:
28404 addis 9,13,ie0@got@tprel@ha
28405 ld 9,ie0@got@tprel@l(9)
28407 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28408 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28409 gcc_cv_ld_large_toc=yes
28411 rm -f conftest conftest.o conftest.s
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28416 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28417 if test x"$gcc_cv_ld_large_toc" = xyes; then
28419 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28424 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28425 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28426 $as_echo_n "(cached) " >&6
28427 else
28428 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28429 cat > conftest.s <<EOF
28430 .global _start
28431 .text
28432 _start:
28433 addis 9,2,x@got@ha
28434 .section .data.rel.ro,"aw",@progbits
28435 .p2align 16
28436 .space 32768
28437 x: .quad .TOC.
28439 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28440 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28441 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)) }'`
28443 rm -f conftest conftest.o conftest.s
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28448 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28449 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28451 cat >>confdefs.h <<_ACEOF
28452 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28453 _ACEOF
28457 esac
28459 case "$target" in
28460 *-*-aix*)
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28462 $as_echo_n "checking linker large toc support... " >&6; }
28463 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28464 $as_echo_n "(cached) " >&6
28465 else
28466 gcc_cv_ld_large_toc=no
28467 if test x$gcc_cv_as != x ; then
28468 cat > conftest.s <<EOF
28469 .toc
28470 LC..1:
28471 .tc a[TC],a[RW]
28472 .extern a[RW]
28473 .csect .text[PR]
28474 .largetoctest:
28475 addis 9,LC..1@u(2)
28476 ld 3,LC..1@l(9)
28478 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28479 gcc_cv_ld_large_toc=yes
28481 rm -f conftest conftest.o conftest.s
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28486 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28487 if test x"$gcc_cv_ld_large_toc" = xyes; then
28489 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28493 esac
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28496 $as_echo_n "checking linker --build-id support... " >&6; }
28497 if test "${gcc_cv_ld_buildid+set}" = set; then :
28498 $as_echo_n "(cached) " >&6
28499 else
28500 gcc_cv_ld_buildid=no
28501 if test $in_tree_ld = yes ; then
28502 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28503 "$gcc_cv_gld_minor_version" -ge 18 -o \
28504 "$gcc_cv_gld_major_version" -gt 2 \
28505 && test $in_tree_ld_is_elf = yes; then
28506 gcc_cv_ld_buildid=yes
28508 elif test x$gcc_cv_ld != x; then
28509 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28510 gcc_cv_ld_buildid=yes
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28515 $as_echo "$gcc_cv_ld_buildid" >&6; }
28516 if test x"$gcc_cv_ld_buildid" = xyes; then
28518 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28522 # Check whether --enable-linker-build-id was given.
28523 if test "${enable_linker_build_id+set}" = set; then :
28524 enableval=$enable_linker_build_id;
28525 else
28526 enable_linker_build_id=no
28530 if test x"$enable_linker_build_id" = xyes; then
28531 if test x"$gcc_cv_ld_buildid" = xyes; then
28533 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28535 else
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28537 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28541 # In binutils 2.21, GNU ld gained support for new emulations fully
28542 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28544 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28545 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28546 $as_echo_n "(cached) " >&6
28547 else
28548 gcc_cv_ld_sol2_emulation=no
28549 if test $in_tree_ld = yes ; then
28550 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28551 "$gcc_cv_gld_minor_version" -ge 21 -o \
28552 "$gcc_cv_gld_major_version" -gt 2 \
28553 && test $in_tree_ld_is_elf = yes; then
28554 gcc_cv_ld_sol2_emulation=yes
28556 elif test x$gcc_cv_ld != x; then
28557 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28558 grep _sol2 > /dev/null; then
28559 gcc_cv_ld_sol2_emulation=yes
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28564 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28565 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28567 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28572 $as_echo_n "checking linker --sysroot support... " >&6; }
28573 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28574 $as_echo_n "(cached) " >&6
28575 else
28576 gcc_cv_ld_sysroot=no
28577 if test $in_tree_ld = yes ; then
28578 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
28579 gcc_cv_ld_sysroot=yes
28581 elif test x$gcc_cv_ld != x; then
28582 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28583 gcc_cv_ld_sysroot=yes
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28588 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28589 if test x"$gcc_cv_ld_sysroot" = xyes; then
28591 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28595 case $target in
28596 *-*-solaris2*)
28597 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28599 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28600 if test "${gcc_cv_solaris_crts+set}" = set; then :
28601 $as_echo_n "(cached) " >&6
28602 else
28603 gcc_cv_solaris_crts=no
28604 if test x$host != x$target; then
28605 if test "x$with_sysroot" = xyes; then
28606 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28607 else
28608 target_sysroot="${with_sysroot}"
28611 target_libdir="$target_sysroot/usr/lib"
28612 # At the time they were added, gcrt1.o became a symlink for backwards
28613 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28614 case $target in
28615 i?86-*-solaris2* | x86_64-*-solaris2*)
28616 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28618 sparc*-*-solaris2*)
28619 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28621 esac
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28624 $as_echo "$gcc_cv_solaris_crts" >&6; }
28626 esac
28627 if test x$gcc_cv_solaris_crts = xyes; then
28629 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28633 # Test for stack protector support in target C library.
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28635 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28636 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28637 $as_echo_n "(cached) " >&6
28638 else
28639 gcc_cv_libc_provides_ssp=no
28640 case "$target" in
28641 *-*-musl*)
28642 # All versions of musl provide stack protector
28643 gcc_cv_libc_provides_ssp=yes;;
28644 *-*-linux* | *-*-kfreebsd*-gnu)
28645 # glibc 2.4 and later provides __stack_chk_fail and
28646 # either __stack_chk_guard, or TLS access to stack guard canary.
28648 if test $glibc_version_major -gt 2 \
28649 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28650 gcc_cv_libc_provides_ssp=yes
28651 else
28653 if test -f $target_header_dir/features.h \
28654 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28655 $target_header_dir/features.h > /dev/null; then
28656 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28657 $target_header_dir/features.h > /dev/null && \
28658 test -f $target_header_dir/bits/uClibc_config.h && \
28659 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28660 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28661 gcc_cv_libc_provides_ssp=yes
28663 # all versions of Bionic support stack protector
28664 elif test -f $target_header_dir/sys/cdefs.h \
28665 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28666 $target_header_dir/sys/cdefs.h > /dev/null; then
28667 gcc_cv_libc_provides_ssp=yes
28671 *-*-gnu*)
28672 # Avoid complicated tests (see
28673 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28674 # simply assert that glibc does provide this, which is true for all
28675 # realistically usable GNU/Hurd configurations.
28676 # All supported versions of musl provide it as well
28677 gcc_cv_libc_provides_ssp=yes;;
28678 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28679 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28680 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28681 gcc_cv_libc_provides_ssp=yes
28682 else
28683 echo "no __stack_chk_fail on this target"
28687 *) gcc_cv_libc_provides_ssp=no ;;
28688 esac
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28691 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28693 if test x$gcc_cv_libc_provides_ssp = xyes; then
28695 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28699 # Check whether --enable-default-ssp was given.
28700 # Check whether --enable-default-ssp was given.
28701 if test "${enable_default_ssp+set}" = set; then :
28702 enableval=$enable_default_ssp;
28703 if test x$gcc_cv_libc_provides_ssp = xyes; then
28704 case "$target" in
28705 ia64*-*-*) enable_default_ssp=no ;;
28706 *) enable_default_ssp=$enableval ;;
28707 esac
28708 else
28709 enable_default_ssp=no
28711 else
28712 enable_default_ssp=no
28715 if test x$enable_default_ssp = xyes ; then
28717 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28722 # Test for <sys/sdt.h> on the target.
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28725 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28726 have_sys_sdt_h=no
28727 if test -f $target_header_dir/sys/sdt.h; then
28728 have_sys_sdt_h=yes
28730 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28734 $as_echo "$have_sys_sdt_h" >&6; }
28736 # Check if TFmode long double should be used by default or not.
28737 # Some glibc targets used DFmode long double, but with glibc 2.4
28738 # and later they can use TFmode.
28739 case "$target" in
28740 powerpc*-*-linux* | \
28741 sparc*-*-linux* | \
28742 s390*-*-linux* | \
28743 alpha*-*-linux*)
28745 # Check whether --with-long-double-128 was given.
28746 if test "${with_long_double_128+set}" = set; then :
28747 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28748 else
28750 if test $glibc_version_major -gt 2 \
28751 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28752 gcc_cv_target_ldbl128=yes
28753 else
28755 gcc_cv_target_ldbl128=no
28756 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28757 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28758 && gcc_cv_target_ldbl128=yes
28764 esac
28765 if test x$gcc_cv_target_ldbl128 = xyes; then
28767 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28771 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28772 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28773 gcc_cv_libc_provides_hwcap_in_tcb=no
28774 case "$target" in
28775 powerpc*-*-linux*)
28777 if test $glibc_version_major -gt 2 \
28778 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28779 gcc_cv_libc_provides_hwcap_in_tcb=yes
28782 esac
28783 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28785 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28790 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28791 gcc_cv_target_dl_iterate_phdr=unknown
28792 case "$target" in
28793 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28794 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28795 # libdl there, both complicating its use and breaking compatibility
28796 # between Solaris 10 updates.
28797 *-*-solaris2.1[1-9]*)
28798 # <link.h> needs both a dl_iterate_phdr declaration and support for
28799 # compilation with largefile support.
28800 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28801 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28802 gcc_cv_target_dl_iterate_phdr=yes
28803 else
28804 gcc_cv_target_dl_iterate_phdr=no
28807 *-*-dragonfly* | *-*-freebsd*)
28808 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28809 gcc_cv_target_dl_iterate_phdr=yes
28810 else
28811 gcc_cv_target_dl_iterate_phdr=no
28814 *-linux-musl*)
28815 gcc_cv_target_dl_iterate_phdr=yes
28817 esac
28819 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28821 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28825 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28827 # We no longer support different GC mechanisms. Emit an error if
28828 # the user configures with --with-gc.
28830 # Check whether --with-gc was given.
28831 if test "${with_gc+set}" = set; then :
28832 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28836 # Libraries to use on the host. This will normally be set by the top
28837 # level Makefile. Here we simply capture the value for our Makefile.
28838 if test -z "${HOST_LIBS+set}"; then
28839 HOST_LIBS=
28843 # Use the system's zlib library.
28845 # Use the system's zlib library.
28846 zlibdir="-L\$(top_builddir)/../zlib"
28847 zlibinc="-I\$(top_srcdir)/../zlib"
28849 # Check whether --with-system-zlib was given.
28850 if test "${with_system_zlib+set}" = set; then :
28851 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28852 zlibdir=
28853 zlibinc=
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28864 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28865 # Check whether --enable-maintainer-mode was given.
28866 if test "${enable_maintainer_mode+set}" = set; then :
28867 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28868 else
28869 maintainer_mode=no
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28874 $as_echo "$maintainer_mode" >&6; }
28876 if test "$maintainer_mode" = "yes"; then
28877 MAINT=''
28878 else
28879 MAINT='#'
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28884 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28885 # Check whether --enable-link-mutex was given.
28886 if test "${enable_link_mutex+set}" = set; then :
28887 enableval=$enable_link_mutex; do_link_mutex=$enableval
28888 else
28889 do_link_mutex=no
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28893 $as_echo "$do_link_mutex" >&6; }
28895 if test "$do_link_mutex" = "yes"; then
28896 DO_LINK_MUTEX=true
28897 else
28898 DO_LINK_MUTEX=false
28902 # --------------
28903 # Language hooks
28904 # --------------
28906 # Make empty files to contain the specs and options for each language.
28907 # Then add #include lines to for a compiler that has specs and/or options.
28909 subdirs=
28910 lang_opt_files=
28911 lang_specs_files=
28912 lang_tree_files=
28913 # These (without "all_") are set in each config-lang.in.
28914 # `language' must be a single word so is spelled singularly.
28915 all_languages=
28916 all_compilers=
28917 all_outputs='Makefile'
28918 # List of language makefile fragments.
28919 all_lang_makefrags=
28920 # Additional files for gengtype
28921 all_gtfiles="$target_gtfiles"
28923 # These are the languages that are set in --enable-languages,
28924 # and are available in the GCC tree.
28925 all_selected_languages=
28927 # Add the language fragments.
28928 # Languages are added via two mechanisms. Some information must be
28929 # recorded in makefile variables, these are defined in config-lang.in.
28930 # We accumulate them and plug them into the main Makefile.
28931 # The other mechanism is a set of hooks for each of the main targets
28932 # like `clean', `install', etc.
28934 language_hooks="Make-hooks"
28936 for lang in ${srcdir}/*/config-lang.in
28938 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28940 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28941 if test "x$lang_alias" = x
28942 then
28943 echo "$lang doesn't set \$language." 1>&2
28944 exit 1
28946 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28947 subdirs="$subdirs $subdir"
28949 # $gcc_subdir is where the gcc integration files are to be found
28950 # for a language, both for internal compiler purposes (compiler
28951 # sources implementing front-end to GCC tree converters), and for
28952 # build infrastructure purposes (Make-lang.in, etc.)
28954 # This will be <subdir> (relative to $srcdir) if a line like
28955 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28956 # is found in <langdir>/config-lang.in, and will remain <langdir>
28957 # otherwise.
28959 # Except for the language alias (fetched above), the regular
28960 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28961 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28962 # only this and the language alias.
28964 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28965 if [ "$gcc_subdir" = "" ]; then
28966 gcc_subdir="$subdir"
28969 case ",$enable_languages," in
28970 *,$lang_alias,*)
28971 all_selected_languages="$all_selected_languages $lang_alias"
28972 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28973 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28976 esac
28978 language=
28979 boot_language=
28980 compilers=
28981 outputs=
28982 gtfiles=
28983 subdir_requires=
28984 . ${srcdir}/$gcc_subdir/config-lang.in
28985 if test "x$language" = x
28986 then
28987 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28988 exit 1
28991 ok=:
28992 case ",$enable_languages," in
28993 *,$lang_alias,*) ;;
28995 for i in $subdir_requires; do
28996 test -f "${srcdir}/$i/config-lang.in" && continue
28997 ok=false
28998 break
28999 done
29001 esac
29002 $ok || continue
29004 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29005 if test -f $srcdir/$gcc_subdir/lang.opt; then
29006 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29007 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29009 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29010 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29012 all_languages="$all_languages $language"
29013 all_compilers="$all_compilers $compilers"
29014 all_outputs="$all_outputs $outputs"
29015 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29016 case ",$enable_languages," in
29017 *,lto,*)
29019 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29021 enable_lto=yes
29024 *) ;;
29025 esac
29026 done
29028 check_languages=
29029 for language in $all_selected_languages
29031 check_languages="$check_languages check-$language"
29032 done
29034 # We link each language in with a set of hooks, reached indirectly via
29035 # lang.${target}. Only do so for selected languages.
29037 rm -f Make-hooks
29038 touch Make-hooks
29039 target_list="all.cross start.encap rest.encap tags \
29040 install-common install-man install-info install-pdf install-html dvi \
29041 pdf html uninstall info man srcextra srcman srcinfo \
29042 mostlyclean clean distclean maintainer-clean install-plugin"
29044 for t in $target_list
29047 for lang in $all_selected_languages
29049 x="$x $lang.$t"
29050 done
29051 echo "lang.$t: $x" >> Make-hooks
29052 done
29054 # --------
29055 # Option include files
29056 # --------
29058 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29059 option_includes="option-includes.mk"
29062 # --------
29063 # UNSORTED
29064 # --------
29066 # Create .gdbinit.
29068 echo "dir ." > .gdbinit
29069 echo "dir ${srcdir}" >> .gdbinit
29070 if test x$gdb_needs_out_file_path = xyes
29071 then
29072 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29074 if test "x$subdirs" != x; then
29075 for s in $subdirs
29077 echo "dir ${srcdir}/$s" >> .gdbinit
29078 done
29080 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29081 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29083 # Put a breakpoint on __asan_report_error to help with debugging buffer
29084 # overflow.
29085 case "$CFLAGS" in
29086 *-fsanitize=address*)
29087 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29089 esac
29091 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29095 # Find a directory in which to install a shared libgcc.
29097 # Check whether --enable-version-specific-runtime-libs was given.
29098 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29099 enableval=$enable_version_specific_runtime_libs;
29103 # Substitute configuration variables
29166 # Echo link setup.
29167 if test x${build} = x${host} ; then
29168 if test x${host} = x${target} ; then
29169 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29170 else
29171 echo "Links are now set up to build a cross-compiler" 1>&2
29172 echo " from ${host} to ${target}." 1>&2
29174 else
29175 if test x${host} = x${target} ; then
29176 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29177 echo " for ${target}." 1>&2
29178 else
29179 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29180 echo " from ${host} to ${target}." 1>&2
29189 if test "x${ISLLIBS}" != "x" ; then
29191 $as_echo "#define HAVE_isl 1" >>confdefs.h
29195 # Check whether isl_options_set_schedule_serialize_sccs is available;
29196 # it's new in isl 0.15.
29197 if test "x${ISLLIBS}" != "x" ; then
29198 saved_CXXFLAGS="$CXXFLAGS"
29199 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29200 saved_LIBS="$LIBS"
29201 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29204 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29206 /* end confdefs.h. */
29207 #include <isl/schedule.h>
29209 main ()
29211 isl_options_set_schedule_serialize_sccs (NULL, 0);
29213 return 0;
29215 _ACEOF
29216 if ac_fn_cxx_try_link "$LINENO"; then :
29217 ac_has_isl_options_set_schedule_serialize_sccs=yes
29218 else
29219 ac_has_isl_options_set_schedule_serialize_sccs=no
29221 rm -f core conftest.err conftest.$ac_objext \
29222 conftest$ac_exeext conftest.$ac_ext
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29224 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29226 LIBS="$saved_LIBS"
29227 CXXFLAGS="$saved_CXXFLAGS"
29229 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29231 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29236 # Check for plugin support
29237 # Check whether --enable-plugin was given.
29238 if test "${enable_plugin+set}" = set; then :
29239 enableval=$enable_plugin; enable_plugin=$enableval
29240 else
29241 enable_plugin=yes; default_plugin=yes
29245 pluginlibs=
29247 case "${host}" in
29248 *-*-darwin*)
29249 if test x$build = x$host; then
29250 export_sym_check="nm${exeext} -g"
29251 elif test x$host = x$target; then
29252 export_sym_check="$gcc_cv_nm -g"
29253 else
29254 export_sym_check=
29258 if test x$build = x$host; then
29259 export_sym_check="objdump${exeext} -T"
29260 elif test x$host = x$target; then
29261 export_sym_check="$gcc_cv_objdump -T"
29262 else
29263 export_sym_check=
29266 esac
29268 if test x"$enable_plugin" = x"yes"; then
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29271 $as_echo_n "checking for exported symbols... " >&6; }
29272 if test "x$export_sym_check" != x; then
29273 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29274 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29275 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29276 : # No need to use a flag
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29278 $as_echo "yes" >&6; }
29279 else
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29281 $as_echo "yes" >&6; }
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29283 $as_echo_n "checking for -rdynamic... " >&6; }
29284 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29285 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29286 plugin_rdynamic=yes
29287 pluginlibs="-rdynamic"
29288 else
29289 plugin_rdynamic=no
29290 enable_plugin=no
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29293 $as_echo "$plugin_rdynamic" >&6; }
29295 else
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29297 $as_echo "unable to check" >&6; }
29300 # Check -ldl
29301 saved_LIBS="$LIBS"
29302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29303 $as_echo_n "checking for library containing dlopen... " >&6; }
29304 if test "${ac_cv_search_dlopen+set}" = set; then :
29305 $as_echo_n "(cached) " >&6
29306 else
29307 ac_func_search_save_LIBS=$LIBS
29308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29309 /* end confdefs.h. */
29311 /* Override any GCC internal prototype to avoid an error.
29312 Use char because int might match the return type of a GCC
29313 builtin and then its argument prototype would still apply. */
29314 #ifdef __cplusplus
29315 extern "C"
29316 #endif
29317 char dlopen ();
29319 main ()
29321 return dlopen ();
29323 return 0;
29325 _ACEOF
29326 for ac_lib in '' dl; do
29327 if test -z "$ac_lib"; then
29328 ac_res="none required"
29329 else
29330 ac_res=-l$ac_lib
29331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29333 if ac_fn_cxx_try_link "$LINENO"; then :
29334 ac_cv_search_dlopen=$ac_res
29336 rm -f core conftest.err conftest.$ac_objext \
29337 conftest$ac_exeext
29338 if test "${ac_cv_search_dlopen+set}" = set; then :
29339 break
29341 done
29342 if test "${ac_cv_search_dlopen+set}" = set; then :
29344 else
29345 ac_cv_search_dlopen=no
29347 rm conftest.$ac_ext
29348 LIBS=$ac_func_search_save_LIBS
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29351 $as_echo "$ac_cv_search_dlopen" >&6; }
29352 ac_res=$ac_cv_search_dlopen
29353 if test "$ac_res" != no; then :
29354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29358 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29359 pluginlibs="$pluginlibs -ldl"
29361 LIBS="$saved_LIBS"
29363 # Check that we can build shared objects with -fPIC -shared
29364 saved_LDFLAGS="$LDFLAGS"
29365 saved_CFLAGS="$CFLAGS"
29366 case "${host}" in
29367 *-*-darwin*)
29368 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29369 CFLAGS="$CFLAGS -fPIC"
29370 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29373 CFLAGS="$CFLAGS -fPIC"
29374 LDFLAGS="$LDFLAGS -fPIC -shared"
29376 esac
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29378 $as_echo_n "checking for -fPIC -shared... " >&6; }
29379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29380 /* end confdefs.h. */
29381 extern int X;
29383 main ()
29385 return X == 0;
29387 return 0;
29389 _ACEOF
29390 if ac_fn_cxx_try_link "$LINENO"; then :
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29392 $as_echo "yes" >&6; }; have_pic_shared=yes
29393 else
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29395 $as_echo "no" >&6; }; have_pic_shared=no
29397 rm -f core conftest.err conftest.$ac_objext \
29398 conftest$ac_exeext conftest.$ac_ext
29399 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29400 pluginlibs=
29401 enable_plugin=no
29403 LDFLAGS="$saved_LDFLAGS"
29404 CFLAGS="$saved_CFLAGS"
29406 # If plugin support had been requested but not available, fail.
29407 if test x"$enable_plugin" = x"no" ; then
29408 if test x"$default_plugin" != x"yes"; then
29409 as_fn_error "
29410 Building GCC with plugin support requires a host that supports
29411 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29418 if test x"$enable_plugin" = x"yes"; then
29420 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29425 # Enable --enable-host-shared
29426 # Check whether --enable-host-shared was given.
29427 if test "${enable_host_shared+set}" = set; then :
29428 enableval=$enable_host_shared; PICFLAG=-fPIC
29429 else
29430 PICFLAG=
29437 # Check whether --enable-libquadmath-support was given.
29438 if test "${enable_libquadmath_support+set}" = set; then :
29439 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29440 else
29441 ENABLE_LIBQUADMATH_SUPPORT=yes
29444 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29446 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29451 # Specify what hash style to use by default.
29453 # Check whether --with-linker-hash-style was given.
29454 if test "${with_linker_hash_style+set}" = set; then :
29455 withval=$with_linker_hash_style; case x"$withval" in
29456 xsysv)
29457 LINKER_HASH_STYLE=sysv
29459 xgnu)
29460 LINKER_HASH_STYLE=gnu
29462 xboth)
29463 LINKER_HASH_STYLE=both
29466 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29468 esac
29469 else
29470 LINKER_HASH_STYLE=''
29473 if test x"${LINKER_HASH_STYLE}" != x; then
29475 cat >>confdefs.h <<_ACEOF
29476 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29477 _ACEOF
29481 # Specify what should be the default of -fdiagnostics-color option.
29483 # Check whether --with-diagnostics-color was given.
29484 if test "${with_diagnostics_color+set}" = set; then :
29485 withval=$with_diagnostics_color; case x"$withval" in
29486 xnever)
29487 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29489 xauto)
29490 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29492 xauto-if-env)
29493 DIAGNOSTICS_COLOR_DEFAULT=-1
29495 xalways)
29496 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29499 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29501 esac
29502 else
29503 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29507 cat >>confdefs.h <<_ACEOF
29508 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29509 _ACEOF
29512 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29513 # of jit/jit-playback.c.
29514 cat > gcc-driver-name.h <<EOF
29515 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29518 # Check whether --enable-default-pie was given.
29519 # Check whether --enable-default-pie was given.
29520 if test "${enable_default_pie+set}" = set; then :
29521 enableval=$enable_default_pie; enable_default_pie=$enableval
29522 else
29523 enable_default_pie=no
29526 if test x$enable_default_pie = xyes ; then
29528 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29533 # Check if -fno-PIE works.
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29535 $as_echo_n "checking for -fno-PIE option... " >&6; }
29536 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29537 $as_echo_n "(cached) " >&6
29538 else
29539 saved_CXXFLAGS="$CXXFLAGS"
29540 CXXFLAGS="$CXXFLAGS -fno-PIE"
29541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29542 /* end confdefs.h. */
29543 int main(void) {return 0;}
29544 _ACEOF
29545 if ac_fn_cxx_try_compile "$LINENO"; then :
29546 gcc_cv_c_no_fpie=yes
29547 else
29548 gcc_cv_c_no_fpie=no
29550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29551 CXXFLAGS="$saved_CXXFLAGS"
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29554 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29555 if test "$gcc_cv_c_no_fpie" = "yes"; then
29556 NO_PIE_CFLAGS="-fno-PIE"
29560 # Check if -no-pie works.
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29562 $as_echo_n "checking for -no-pie option... " >&6; }
29563 if test "${gcc_cv_no_pie+set}" = set; then :
29564 $as_echo_n "(cached) " >&6
29565 else
29566 saved_LDFLAGS="$LDFLAGS"
29567 LDFLAGS="$LDFLAGS -no-pie"
29568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29569 /* end confdefs.h. */
29570 int main(void) {return 0;}
29571 _ACEOF
29572 if ac_fn_cxx_try_link "$LINENO"; then :
29573 gcc_cv_no_pie=yes
29574 else
29575 gcc_cv_no_pie=no
29577 rm -f core conftest.err conftest.$ac_objext \
29578 conftest$ac_exeext conftest.$ac_ext
29579 LDFLAGS="$saved_LDFLAGS"
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29582 $as_echo "$gcc_cv_no_pie" >&6; }
29583 if test "$gcc_cv_no_pie" = "yes"; then
29584 NO_PIE_FLAG="-no-pie"
29588 # Check linker supports '-z bndplt'
29589 ld_bndplt_support=no
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29591 $as_echo_n "checking linker -z bndplt option... " >&6; }
29592 if test x"$ld_is_gold" = xno; then
29593 if test $in_tree_ld = yes ; then
29594 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
29595 ld_bndplt_support=yes
29597 elif test x$gcc_cv_ld != x; then
29598 # Check if linker supports -a bndplt option
29599 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29600 ld_bndplt_support=yes
29604 if test x"$ld_bndplt_support" = xyes; then
29606 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29610 $as_echo "$ld_bndplt_support" >&6; }
29612 # Configure the subdirectories
29613 # AC_CONFIG_SUBDIRS($subdirs)
29615 # Create the Makefile
29616 # and configure language subdirectories
29617 ac_config_files="$ac_config_files $all_outputs"
29620 ac_config_commands="$ac_config_commands default"
29622 cat >confcache <<\_ACEOF
29623 # This file is a shell script that caches the results of configure
29624 # tests run on this system so they can be shared between configure
29625 # scripts and configure runs, see configure's option --config-cache.
29626 # It is not useful on other systems. If it contains results you don't
29627 # want to keep, you may remove or edit it.
29629 # config.status only pays attention to the cache file if you give it
29630 # the --recheck option to rerun configure.
29632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29634 # following values.
29636 _ACEOF
29638 # The following way of writing the cache mishandles newlines in values,
29639 # but we know of no workaround that is simple, portable, and efficient.
29640 # So, we kill variables containing newlines.
29641 # Ultrix sh set writes to stderr and can't be redirected directly,
29642 # and sets the high bit in the cache file unless we assign to the vars.
29644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29645 eval ac_val=\$$ac_var
29646 case $ac_val in #(
29647 *${as_nl}*)
29648 case $ac_var in #(
29649 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29650 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29651 esac
29652 case $ac_var in #(
29653 _ | IFS | as_nl) ;; #(
29654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29655 *) { eval $ac_var=; unset $ac_var;} ;;
29656 esac ;;
29657 esac
29658 done
29660 (set) 2>&1 |
29661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29662 *${as_nl}ac_space=\ *)
29663 # `set' does not quote correctly, so add quotes: double-quote
29664 # substitution turns \\\\ into \\, and sed turns \\ into \.
29665 sed -n \
29666 "s/'/'\\\\''/g;
29667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29668 ;; #(
29670 # `set' quotes correctly as required by POSIX, so do not add quotes.
29671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29673 esac |
29674 sort
29676 sed '
29677 /^ac_cv_env_/b end
29678 t clear
29679 :clear
29680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29681 t end
29682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29683 :end' >>confcache
29684 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29685 if test -w "$cache_file"; then
29686 test "x$cache_file" != "x/dev/null" &&
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29688 $as_echo "$as_me: updating cache $cache_file" >&6;}
29689 cat confcache >$cache_file
29690 else
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29692 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29695 rm -f confcache
29697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29698 # Let make expand exec_prefix.
29699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29701 DEFS=-DHAVE_CONFIG_H
29703 ac_libobjs=
29704 ac_ltlibobjs=
29705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29706 # 1. Remove the extension, and $U if already installed.
29707 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29708 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29710 # will be set to the directory where LIBOBJS objects are built.
29711 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29712 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29713 done
29714 LIBOBJS=$ac_libobjs
29716 LTLIBOBJS=$ac_ltlibobjs
29721 : ${CONFIG_STATUS=./config.status}
29722 ac_write_fail=0
29723 ac_clean_files_save=$ac_clean_files
29724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29727 as_write_fail=0
29728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29729 #! $SHELL
29730 # Generated by $as_me.
29731 # Run this file to recreate the current configuration.
29732 # Compiler output produced by configure, useful for debugging
29733 # configure, is in config.log if it exists.
29735 debug=false
29736 ac_cs_recheck=false
29737 ac_cs_silent=false
29739 SHELL=\${CONFIG_SHELL-$SHELL}
29740 export SHELL
29741 _ASEOF
29742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29743 ## -------------------- ##
29744 ## M4sh Initialization. ##
29745 ## -------------------- ##
29747 # Be more Bourne compatible
29748 DUALCASE=1; export DUALCASE # for MKS sh
29749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29750 emulate sh
29751 NULLCMD=:
29752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29753 # is contrary to our usage. Disable this feature.
29754 alias -g '${1+"$@"}'='"$@"'
29755 setopt NO_GLOB_SUBST
29756 else
29757 case `(set -o) 2>/dev/null` in #(
29758 *posix*) :
29759 set -o posix ;; #(
29760 *) :
29762 esac
29766 as_nl='
29768 export as_nl
29769 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29770 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29773 # Prefer a ksh shell builtin over an external printf program on Solaris,
29774 # but without wasting forks for bash or zsh.
29775 if test -z "$BASH_VERSION$ZSH_VERSION" \
29776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29777 as_echo='print -r --'
29778 as_echo_n='print -rn --'
29779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29780 as_echo='printf %s\n'
29781 as_echo_n='printf %s'
29782 else
29783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29785 as_echo_n='/usr/ucb/echo -n'
29786 else
29787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29788 as_echo_n_body='eval
29789 arg=$1;
29790 case $arg in #(
29791 *"$as_nl"*)
29792 expr "X$arg" : "X\\(.*\\)$as_nl";
29793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29794 esac;
29795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29797 export as_echo_n_body
29798 as_echo_n='sh -c $as_echo_n_body as_echo'
29800 export as_echo_body
29801 as_echo='sh -c $as_echo_body as_echo'
29804 # The user is always right.
29805 if test "${PATH_SEPARATOR+set}" != set; then
29806 PATH_SEPARATOR=:
29807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29809 PATH_SEPARATOR=';'
29814 # IFS
29815 # We need space, tab and new line, in precisely that order. Quoting is
29816 # there to prevent editors from complaining about space-tab.
29817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29818 # splitting by setting IFS to empty value.)
29819 IFS=" "" $as_nl"
29821 # Find who we are. Look in the path if we contain no directory separator.
29822 case $0 in #((
29823 *[\\/]* ) as_myself=$0 ;;
29824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29825 for as_dir in $PATH
29827 IFS=$as_save_IFS
29828 test -z "$as_dir" && as_dir=.
29829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29830 done
29831 IFS=$as_save_IFS
29834 esac
29835 # We did not find ourselves, most probably we were run as `sh COMMAND'
29836 # in which case we are not to be found in the path.
29837 if test "x$as_myself" = x; then
29838 as_myself=$0
29840 if test ! -f "$as_myself"; then
29841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29842 exit 1
29845 # Unset variables that we do not need and which cause bugs (e.g. in
29846 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29847 # suppresses any "Segmentation fault" message there. '((' could
29848 # trigger a bug in pdksh 5.2.14.
29849 for as_var in BASH_ENV ENV MAIL MAILPATH
29850 do eval test x\${$as_var+set} = xset \
29851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29852 done
29853 PS1='$ '
29854 PS2='> '
29855 PS4='+ '
29857 # NLS nuisances.
29858 LC_ALL=C
29859 export LC_ALL
29860 LANGUAGE=C
29861 export LANGUAGE
29863 # CDPATH.
29864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29867 # as_fn_error ERROR [LINENO LOG_FD]
29868 # ---------------------------------
29869 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29870 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29871 # script with status $?, using 1 if that was 0.
29872 as_fn_error ()
29874 as_status=$?; test $as_status -eq 0 && as_status=1
29875 if test "$3"; then
29876 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29879 $as_echo "$as_me: error: $1" >&2
29880 as_fn_exit $as_status
29881 } # as_fn_error
29884 # as_fn_set_status STATUS
29885 # -----------------------
29886 # Set $? to STATUS, without forking.
29887 as_fn_set_status ()
29889 return $1
29890 } # as_fn_set_status
29892 # as_fn_exit STATUS
29893 # -----------------
29894 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29895 as_fn_exit ()
29897 set +e
29898 as_fn_set_status $1
29899 exit $1
29900 } # as_fn_exit
29902 # as_fn_unset VAR
29903 # ---------------
29904 # Portably unset VAR.
29905 as_fn_unset ()
29907 { eval $1=; unset $1;}
29909 as_unset=as_fn_unset
29910 # as_fn_append VAR VALUE
29911 # ----------------------
29912 # Append the text in VALUE to the end of the definition contained in VAR. Take
29913 # advantage of any shell optimizations that allow amortized linear growth over
29914 # repeated appends, instead of the typical quadratic growth present in naive
29915 # implementations.
29916 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29917 eval 'as_fn_append ()
29919 eval $1+=\$2
29921 else
29922 as_fn_append ()
29924 eval $1=\$$1\$2
29926 fi # as_fn_append
29928 # as_fn_arith ARG...
29929 # ------------------
29930 # Perform arithmetic evaluation on the ARGs, and store the result in the
29931 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29932 # must be portable across $(()) and expr.
29933 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29934 eval 'as_fn_arith ()
29936 as_val=$(( $* ))
29938 else
29939 as_fn_arith ()
29941 as_val=`expr "$@" || test $? -eq 1`
29943 fi # as_fn_arith
29946 if expr a : '\(a\)' >/dev/null 2>&1 &&
29947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29948 as_expr=expr
29949 else
29950 as_expr=false
29953 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29954 as_basename=basename
29955 else
29956 as_basename=false
29959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29960 as_dirname=dirname
29961 else
29962 as_dirname=false
29965 as_me=`$as_basename -- "$0" ||
29966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29967 X"$0" : 'X\(//\)$' \| \
29968 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29969 $as_echo X/"$0" |
29970 sed '/^.*\/\([^/][^/]*\)\/*$/{
29971 s//\1/
29974 /^X\/\(\/\/\)$/{
29975 s//\1/
29978 /^X\/\(\/\).*/{
29979 s//\1/
29982 s/.*/./; q'`
29984 # Avoid depending upon Character Ranges.
29985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29988 as_cr_digits='0123456789'
29989 as_cr_alnum=$as_cr_Letters$as_cr_digits
29991 ECHO_C= ECHO_N= ECHO_T=
29992 case `echo -n x` in #(((((
29993 -n*)
29994 case `echo 'xy\c'` in
29995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29996 xy) ECHO_C='\c';;
29997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29998 ECHO_T=' ';;
29999 esac;;
30001 ECHO_N='-n';;
30002 esac
30004 rm -f conf$$ conf$$.exe conf$$.file
30005 if test -d conf$$.dir; then
30006 rm -f conf$$.dir/conf$$.file
30007 else
30008 rm -f conf$$.dir
30009 mkdir conf$$.dir 2>/dev/null
30011 if (echo >conf$$.file) 2>/dev/null; then
30012 if ln -s conf$$.file conf$$ 2>/dev/null; then
30013 as_ln_s='ln -s'
30014 # ... but there are two gotchas:
30015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30017 # In both cases, we have to default to `cp -p'.
30018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30019 as_ln_s='cp -p'
30020 elif ln conf$$.file conf$$ 2>/dev/null; then
30021 as_ln_s=ln
30022 else
30023 as_ln_s='cp -p'
30025 else
30026 as_ln_s='cp -p'
30028 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30029 rmdir conf$$.dir 2>/dev/null
30032 # as_fn_mkdir_p
30033 # -------------
30034 # Create "$as_dir" as a directory, including parents if necessary.
30035 as_fn_mkdir_p ()
30038 case $as_dir in #(
30039 -*) as_dir=./$as_dir;;
30040 esac
30041 test -d "$as_dir" || eval $as_mkdir_p || {
30042 as_dirs=
30043 while :; do
30044 case $as_dir in #(
30045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30046 *) as_qdir=$as_dir;;
30047 esac
30048 as_dirs="'$as_qdir' $as_dirs"
30049 as_dir=`$as_dirname -- "$as_dir" ||
30050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30051 X"$as_dir" : 'X\(//\)[^/]' \| \
30052 X"$as_dir" : 'X\(//\)$' \| \
30053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30054 $as_echo X"$as_dir" |
30055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30056 s//\1/
30059 /^X\(\/\/\)[^/].*/{
30060 s//\1/
30063 /^X\(\/\/\)$/{
30064 s//\1/
30067 /^X\(\/\).*/{
30068 s//\1/
30071 s/.*/./; q'`
30072 test -d "$as_dir" && break
30073 done
30074 test -z "$as_dirs" || eval "mkdir $as_dirs"
30075 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30078 } # as_fn_mkdir_p
30079 if mkdir -p . 2>/dev/null; then
30080 as_mkdir_p='mkdir -p "$as_dir"'
30081 else
30082 test -d ./-p && rmdir ./-p
30083 as_mkdir_p=false
30086 if test -x / >/dev/null 2>&1; then
30087 as_test_x='test -x'
30088 else
30089 if ls -dL / >/dev/null 2>&1; then
30090 as_ls_L_option=L
30091 else
30092 as_ls_L_option=
30094 as_test_x='
30095 eval sh -c '\''
30096 if test -d "$1"; then
30097 test -d "$1/.";
30098 else
30099 case $1 in #(
30100 -*)set "./$1";;
30101 esac;
30102 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30103 ???[sx]*):;;*)false;;esac;fi
30104 '\'' sh
30107 as_executable_p=$as_test_x
30109 # Sed expression to map a string onto a valid CPP name.
30110 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30112 # Sed expression to map a string onto a valid variable name.
30113 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30116 exec 6>&1
30117 ## ----------------------------------- ##
30118 ## Main body of $CONFIG_STATUS script. ##
30119 ## ----------------------------------- ##
30120 _ASEOF
30121 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30124 # Save the log message, to keep $0 and so on meaningful, and to
30125 # report actual input values of CONFIG_FILES etc. instead of their
30126 # values after options handling.
30127 ac_log="
30128 This file was extended by $as_me, which was
30129 generated by GNU Autoconf 2.64. Invocation command line was
30131 CONFIG_FILES = $CONFIG_FILES
30132 CONFIG_HEADERS = $CONFIG_HEADERS
30133 CONFIG_LINKS = $CONFIG_LINKS
30134 CONFIG_COMMANDS = $CONFIG_COMMANDS
30135 $ $0 $@
30137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30140 _ACEOF
30142 case $ac_config_files in *"
30143 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30144 esac
30146 case $ac_config_headers in *"
30147 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30148 esac
30151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30152 # Files that config.status was made for.
30153 config_files="$ac_config_files"
30154 config_headers="$ac_config_headers"
30155 config_links="$ac_config_links"
30156 config_commands="$ac_config_commands"
30158 _ACEOF
30160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30161 ac_cs_usage="\
30162 \`$as_me' instantiates files and other configuration actions
30163 from templates according to the current configuration. Unless the files
30164 and actions are specified as TAGs, all are instantiated by default.
30166 Usage: $0 [OPTION]... [TAG]...
30168 -h, --help print this help, then exit
30169 -V, --version print version number and configuration settings, then exit
30170 -q, --quiet, --silent
30171 do not print progress messages
30172 -d, --debug don't remove temporary files
30173 --recheck update $as_me by reconfiguring in the same conditions
30174 --file=FILE[:TEMPLATE]
30175 instantiate the configuration file FILE
30176 --header=FILE[:TEMPLATE]
30177 instantiate the configuration header FILE
30179 Configuration files:
30180 $config_files
30182 Configuration headers:
30183 $config_headers
30185 Configuration links:
30186 $config_links
30188 Configuration commands:
30189 $config_commands
30191 Report bugs to the package provider."
30193 _ACEOF
30194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30195 ac_cs_version="\\
30196 config.status
30197 configured by $0, generated by GNU Autoconf 2.64,
30198 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30200 Copyright (C) 2009 Free Software Foundation, Inc.
30201 This config.status script is free software; the Free Software Foundation
30202 gives unlimited permission to copy, distribute and modify it."
30204 ac_pwd='$ac_pwd'
30205 srcdir='$srcdir'
30206 AWK='$AWK'
30207 test -n "\$AWK" || AWK=awk
30208 _ACEOF
30210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30211 # The default lists apply if the user does not specify any file.
30212 ac_need_defaults=:
30213 while test $# != 0
30215 case $1 in
30216 --*=*)
30217 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30219 ac_shift=:
30222 ac_option=$1
30223 ac_optarg=$2
30224 ac_shift=shift
30226 esac
30228 case $ac_option in
30229 # Handling of the options.
30230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30231 ac_cs_recheck=: ;;
30232 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30233 $as_echo "$ac_cs_version"; exit ;;
30234 --debug | --debu | --deb | --de | --d | -d )
30235 debug=: ;;
30236 --file | --fil | --fi | --f )
30237 $ac_shift
30238 case $ac_optarg in
30239 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30240 esac
30241 as_fn_append CONFIG_FILES " '$ac_optarg'"
30242 ac_need_defaults=false;;
30243 --header | --heade | --head | --hea )
30244 $ac_shift
30245 case $ac_optarg in
30246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30247 esac
30248 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30249 ac_need_defaults=false;;
30250 --he | --h)
30251 # Conflict between --help and --header
30252 as_fn_error "ambiguous option: \`$1'
30253 Try \`$0 --help' for more information.";;
30254 --help | --hel | -h )
30255 $as_echo "$ac_cs_usage"; exit ;;
30256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30257 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30258 ac_cs_silent=: ;;
30260 # This is an error.
30261 -*) as_fn_error "unrecognized option: \`$1'
30262 Try \`$0 --help' for more information." ;;
30264 *) as_fn_append ac_config_targets " $1"
30265 ac_need_defaults=false ;;
30267 esac
30268 shift
30269 done
30271 ac_configure_extra_args=
30273 if $ac_cs_silent; then
30274 exec 6>/dev/null
30275 ac_configure_extra_args="$ac_configure_extra_args --silent"
30278 _ACEOF
30279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30280 if \$ac_cs_recheck; then
30281 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30282 shift
30283 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30284 CONFIG_SHELL='$SHELL'
30285 export CONFIG_SHELL
30286 exec "\$@"
30289 _ACEOF
30290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30291 exec 5>>config.log
30293 echo
30294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30295 ## Running $as_me. ##
30296 _ASBOX
30297 $as_echo "$ac_log"
30298 } >&5
30300 _ACEOF
30301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30303 # INIT-COMMANDS
30305 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30306 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30307 subdirs='$subdirs'
30309 _ACEOF
30311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30313 # Handling of arguments.
30314 for ac_config_target in $ac_config_targets
30316 case $ac_config_target in
30317 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30318 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30319 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30320 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30321 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30322 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30323 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30324 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30325 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30327 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30328 esac
30329 done
30332 # If the user did not use the arguments to specify the items to instantiate,
30333 # then the envvar interface is used. Set only those that are not.
30334 # We use the long form for the default assignment because of an extremely
30335 # bizarre bug on SunOS 4.1.3.
30336 if $ac_need_defaults; then
30337 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30338 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30339 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30340 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30343 # Have a temporary directory for convenience. Make it in the build tree
30344 # simply because there is no reason against having it here, and in addition,
30345 # creating and moving files from /tmp can sometimes cause problems.
30346 # Hook for its removal unless debugging.
30347 # Note that there is a small window in which the directory will not be cleaned:
30348 # after its creation but before its name has been assigned to `$tmp'.
30349 $debug ||
30351 tmp=
30352 trap 'exit_status=$?
30353 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30355 trap 'as_fn_exit 1' 1 2 13 15
30357 # Create a (secure) tmp directory for tmp files.
30360 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30361 test -n "$tmp" && test -d "$tmp"
30362 } ||
30364 tmp=./conf$$-$RANDOM
30365 (umask 077 && mkdir "$tmp")
30366 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30368 # Set up the scripts for CONFIG_FILES section.
30369 # No need to generate them if there are no CONFIG_FILES.
30370 # This happens for instance with `./config.status config.h'.
30371 if test -n "$CONFIG_FILES"; then
30373 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30374 ac_cs_awk_getline=:
30375 ac_cs_awk_pipe_init=
30376 ac_cs_awk_read_file='
30377 while ((getline aline < (F[key])) > 0)
30378 print(aline)
30379 close(F[key])'
30380 ac_cs_awk_pipe_fini=
30381 else
30382 ac_cs_awk_getline=false
30383 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30384 ac_cs_awk_read_file='
30385 print "|#_!!_#|"
30386 print "cat " F[key] " &&"
30387 '$ac_cs_awk_pipe_init
30388 # The final `:' finishes the AND list.
30389 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30391 ac_cr=`echo X | tr X '\015'`
30392 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30393 # But we know of no other shell where ac_cr would be empty at this
30394 # point, so we can use a bashism as a fallback.
30395 if test "x$ac_cr" = x; then
30396 eval ac_cr=\$\'\\r\'
30398 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30399 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30400 ac_cs_awk_cr='\r'
30401 else
30402 ac_cs_awk_cr=$ac_cr
30405 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30406 _ACEOF
30408 # Create commands to substitute file output variables.
30410 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30411 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30412 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30413 echo "_ACAWK" &&
30414 echo "_ACEOF"
30415 } >conf$$files.sh &&
30416 . ./conf$$files.sh ||
30417 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30418 rm -f conf$$files.sh
30421 echo "cat >conf$$subs.awk <<_ACEOF" &&
30422 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30423 echo "_ACEOF"
30424 } >conf$$subs.sh ||
30425 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30426 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30427 ac_delim='%!_!# '
30428 for ac_last_try in false false false false false :; do
30429 . ./conf$$subs.sh ||
30430 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30432 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30433 if test $ac_delim_n = $ac_delim_num; then
30434 break
30435 elif $ac_last_try; then
30436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30437 else
30438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30440 done
30441 rm -f conf$$subs.sh
30443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30444 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30445 _ACEOF
30446 sed -n '
30448 s/^/S["/; s/!.*/"]=/
30451 s/^[^!]*!//
30452 :repl
30453 t repl
30454 s/'"$ac_delim"'$//
30455 t delim
30458 s/\(.\{148\}\).*/\1/
30459 t more1
30460 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30463 b repl
30464 :more1
30465 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30468 s/.\{148\}//
30469 t nl
30470 :delim
30472 s/\(.\{148\}\).*/\1/
30473 t more2
30474 s/["\\]/\\&/g; s/^/"/; s/$/"/
30477 :more2
30478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30481 s/.\{148\}//
30482 t delim
30483 ' <conf$$subs.awk | sed '
30484 /^[^""]/{
30486 s/\n//
30488 ' >>$CONFIG_STATUS || ac_write_fail=1
30489 rm -f conf$$subs.awk
30490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30491 _ACAWK
30492 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30493 for (key in S) S_is_set[key] = 1
30494 FS = "\a"
30495 \$ac_cs_awk_pipe_init
30498 line = $ 0
30499 nfields = split(line, field, "@")
30500 substed = 0
30501 len = length(field[1])
30502 for (i = 2; i < nfields; i++) {
30503 key = field[i]
30504 keylen = length(key)
30505 if (S_is_set[key]) {
30506 value = S[key]
30507 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30508 len += length(value) + length(field[++i])
30509 substed = 1
30510 } else
30511 len += 1 + keylen
30513 if (nfields == 3 && !substed) {
30514 key = field[2]
30515 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30516 \$ac_cs_awk_read_file
30517 next
30520 print line
30522 \$ac_cs_awk_pipe_fini
30523 _ACAWK
30524 _ACEOF
30525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30526 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30527 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30528 else
30530 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30531 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30532 _ACEOF
30534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30536 # trailing colons and then remove the whole line if VPATH becomes empty
30537 # (actually we leave an empty line to preserve line numbers).
30538 if test "x$srcdir" = x.; then
30539 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30540 s/:*\$(srcdir):*/:/
30541 s/:*\${srcdir}:*/:/
30542 s/:*@srcdir@:*/:/
30543 s/^\([^=]*=[ ]*\):*/\1/
30544 s/:*$//
30545 s/^[^=]*=[ ]*$//
30549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30550 fi # test -n "$CONFIG_FILES"
30552 # Set up the scripts for CONFIG_HEADERS section.
30553 # No need to generate them if there are no CONFIG_HEADERS.
30554 # This happens for instance with `./config.status Makefile'.
30555 if test -n "$CONFIG_HEADERS"; then
30556 cat >"$tmp/defines.awk" <<\_ACAWK ||
30557 BEGIN {
30558 _ACEOF
30560 # Transform confdefs.h into an awk script `defines.awk', embedded as
30561 # here-document in config.status, that substitutes the proper values into
30562 # config.h.in to produce config.h.
30564 # Create a delimiter string that does not exist in confdefs.h, to ease
30565 # handling of long lines.
30566 ac_delim='%!_!# '
30567 for ac_last_try in false false :; do
30568 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30569 if test -z "$ac_t"; then
30570 break
30571 elif $ac_last_try; then
30572 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30573 else
30574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30576 done
30578 # For the awk script, D is an array of macro values keyed by name,
30579 # likewise P contains macro parameters if any. Preserve backslash
30580 # newline sequences.
30582 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30583 sed -n '
30584 s/.\{148\}/&'"$ac_delim"'/g
30585 t rset
30586 :rset
30587 s/^[ ]*#[ ]*define[ ][ ]*/ /
30588 t def
30590 :def
30591 s/\\$//
30592 t bsnl
30593 s/["\\]/\\&/g
30594 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30595 D["\1"]=" \3"/p
30596 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30598 :bsnl
30599 s/["\\]/\\&/g
30600 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30601 D["\1"]=" \3\\\\\\n"\\/p
30602 t cont
30603 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30604 t cont
30606 :cont
30608 s/.\{148\}/&'"$ac_delim"'/g
30609 t clear
30610 :clear
30611 s/\\$//
30612 t bsnlc
30613 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30615 :bsnlc
30616 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30617 b cont
30618 ' <confdefs.h | sed '
30619 s/'"$ac_delim"'/"\\\
30620 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30623 for (key in D) D_is_set[key] = 1
30624 FS = "\a"
30626 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30627 line = \$ 0
30628 split(line, arg, " ")
30629 if (arg[1] == "#") {
30630 defundef = arg[2]
30631 mac1 = arg[3]
30632 } else {
30633 defundef = substr(arg[1], 2)
30634 mac1 = arg[2]
30636 split(mac1, mac2, "(") #)
30637 macro = mac2[1]
30638 prefix = substr(line, 1, index(line, defundef) - 1)
30639 if (D_is_set[macro]) {
30640 # Preserve the white space surrounding the "#".
30641 print prefix "define", macro P[macro] D[macro]
30642 next
30643 } else {
30644 # Replace #undef with comments. This is necessary, for example,
30645 # in the case of _POSIX_SOURCE, which is predefined and required
30646 # on some systems where configure will not decide to define it.
30647 if (defundef == "undef") {
30648 print "/*", prefix defundef, macro, "*/"
30649 next
30653 { print }
30654 _ACAWK
30655 _ACEOF
30656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30657 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30658 fi # test -n "$CONFIG_HEADERS"
30661 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30662 shift
30663 for ac_tag
30665 case $ac_tag in
30666 :[FHLC]) ac_mode=$ac_tag; continue;;
30667 esac
30668 case $ac_mode$ac_tag in
30669 :[FHL]*:*);;
30670 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30671 :[FH]-) ac_tag=-:-;;
30672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30673 esac
30674 ac_save_IFS=$IFS
30675 IFS=:
30676 set x $ac_tag
30677 IFS=$ac_save_IFS
30678 shift
30679 ac_file=$1
30680 shift
30682 case $ac_mode in
30683 :L) ac_source=$1;;
30684 :[FH])
30685 ac_file_inputs=
30686 for ac_f
30688 case $ac_f in
30689 -) ac_f="$tmp/stdin";;
30690 *) # Look for the file first in the build tree, then in the source tree
30691 # (if the path is not absolute). The absolute path cannot be DOS-style,
30692 # because $ac_f cannot contain `:'.
30693 test -f "$ac_f" ||
30694 case $ac_f in
30695 [\\/$]*) false;;
30696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30697 esac ||
30698 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30699 esac
30700 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30701 as_fn_append ac_file_inputs " '$ac_f'"
30702 done
30704 # Let's still pretend it is `configure' which instantiates (i.e., don't
30705 # use $as_me), people would be surprised to read:
30706 # /* config.h. Generated by config.status. */
30707 configure_input='Generated from '`
30708 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30709 `' by configure.'
30710 if test x"$ac_file" != x-; then
30711 configure_input="$ac_file. $configure_input"
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30713 $as_echo "$as_me: creating $ac_file" >&6;}
30715 # Neutralize special characters interpreted by sed in replacement strings.
30716 case $configure_input in #(
30717 *\&* | *\|* | *\\* )
30718 ac_sed_conf_input=`$as_echo "$configure_input" |
30719 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30720 *) ac_sed_conf_input=$configure_input;;
30721 esac
30723 case $ac_tag in
30724 *:-:* | *:-) cat >"$tmp/stdin" \
30725 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30726 esac
30728 esac
30730 ac_dir=`$as_dirname -- "$ac_file" ||
30731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30732 X"$ac_file" : 'X\(//\)[^/]' \| \
30733 X"$ac_file" : 'X\(//\)$' \| \
30734 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30735 $as_echo X"$ac_file" |
30736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30737 s//\1/
30740 /^X\(\/\/\)[^/].*/{
30741 s//\1/
30744 /^X\(\/\/\)$/{
30745 s//\1/
30748 /^X\(\/\).*/{
30749 s//\1/
30752 s/.*/./; q'`
30753 as_dir="$ac_dir"; as_fn_mkdir_p
30754 ac_builddir=.
30756 case "$ac_dir" in
30757 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30759 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30760 # A ".." for each directory in $ac_dir_suffix.
30761 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30762 case $ac_top_builddir_sub in
30763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30765 esac ;;
30766 esac
30767 ac_abs_top_builddir=$ac_pwd
30768 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30769 # for backward compatibility:
30770 ac_top_builddir=$ac_top_build_prefix
30772 case $srcdir in
30773 .) # We are building in place.
30774 ac_srcdir=.
30775 ac_top_srcdir=$ac_top_builddir_sub
30776 ac_abs_top_srcdir=$ac_pwd ;;
30777 [\\/]* | ?:[\\/]* ) # Absolute name.
30778 ac_srcdir=$srcdir$ac_dir_suffix;
30779 ac_top_srcdir=$srcdir
30780 ac_abs_top_srcdir=$srcdir ;;
30781 *) # Relative name.
30782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30783 ac_top_srcdir=$ac_top_build_prefix$srcdir
30784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30785 esac
30786 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30789 case $ac_mode in
30792 # CONFIG_FILE
30795 _ACEOF
30797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30798 # If the template does not know about datarootdir, expand it.
30799 # FIXME: This hack should be removed a few years after 2.60.
30800 ac_datarootdir_hack=; ac_datarootdir_seen=
30801 ac_sed_dataroot='
30802 /datarootdir/ {
30806 /@datadir@/p
30807 /@docdir@/p
30808 /@infodir@/p
30809 /@localedir@/p
30810 /@mandir@/p'
30811 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30812 *datarootdir*) ac_datarootdir_seen=yes;;
30813 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30815 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30816 _ACEOF
30817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30818 ac_datarootdir_hack='
30819 s&@datadir@&$datadir&g
30820 s&@docdir@&$docdir&g
30821 s&@infodir@&$infodir&g
30822 s&@localedir@&$localedir&g
30823 s&@mandir@&$mandir&g
30824 s&\\\${datarootdir}&$datarootdir&g' ;;
30825 esac
30826 _ACEOF
30828 # Neutralize VPATH when `$srcdir' = `.'.
30829 # Shell code in configure.ac might set extrasub.
30830 # FIXME: do we really want to maintain this feature?
30831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30832 ac_sed_extra="$ac_vpsub
30833 $extrasub
30834 _ACEOF
30835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30837 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30838 s|@configure_input@|$ac_sed_conf_input|;t t
30839 s&@top_builddir@&$ac_top_builddir_sub&;t t
30840 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30841 s&@srcdir@&$ac_srcdir&;t t
30842 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30843 s&@top_srcdir@&$ac_top_srcdir&;t t
30844 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30845 s&@builddir@&$ac_builddir&;t t
30846 s&@abs_builddir@&$ac_abs_builddir&;t t
30847 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30848 $ac_datarootdir_hack
30850 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30851 if $ac_cs_awk_getline; then
30852 $AWK -f "$tmp/subs.awk"
30853 else
30854 $AWK -f "$tmp/subs.awk" | $SHELL
30855 fi >$tmp/out \
30856 || as_fn_error "could not create $ac_file" "$LINENO" 5
30858 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30859 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30860 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30862 which seems to be undefined. Please make sure it is defined." >&5
30863 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30864 which seems to be undefined. Please make sure it is defined." >&2;}
30866 rm -f "$tmp/stdin"
30867 case $ac_file in
30868 -) cat "$tmp/out" && rm -f "$tmp/out";;
30869 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30870 esac \
30871 || as_fn_error "could not create $ac_file" "$LINENO" 5
30875 # CONFIG_HEADER
30877 if test x"$ac_file" != x-; then
30879 $as_echo "/* $configure_input */" \
30880 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30881 } >"$tmp/config.h" \
30882 || as_fn_error "could not create $ac_file" "$LINENO" 5
30883 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30885 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30886 else
30887 rm -f "$ac_file"
30888 mv "$tmp/config.h" "$ac_file" \
30889 || as_fn_error "could not create $ac_file" "$LINENO" 5
30891 else
30892 $as_echo "/* $configure_input */" \
30893 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30894 || as_fn_error "could not create -" "$LINENO" 5
30899 # CONFIG_LINK
30902 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30904 else
30905 # Prefer the file from the source tree if names are identical.
30906 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30907 ac_source=$srcdir/$ac_source
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30911 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30913 if test ! -r "$ac_source"; then
30914 as_fn_error "$ac_source: file not found" "$LINENO" 5
30916 rm -f "$ac_file"
30918 # Try a relative symlink, then a hard link, then a copy.
30919 case $srcdir in
30920 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30921 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30922 esac
30923 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30924 ln "$ac_source" "$ac_file" 2>/dev/null ||
30925 cp -p "$ac_source" "$ac_file" ||
30926 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30930 $as_echo "$as_me: executing $ac_file commands" >&6;}
30932 esac
30935 case $ac_file$ac_mode in
30936 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30937 "gccdepdir":C)
30938 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30939 for lang in $subdirs c-family common
30941 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30942 done ;;
30943 "as":F) chmod +x as ;;
30944 "collect-ld":F) chmod +x collect-ld ;;
30945 "nm":F) chmod +x nm ;;
30946 "default":C)
30947 case ${CONFIG_HEADERS} in
30948 *auto-host.h:config.in*)
30949 echo > cstamp-h ;;
30950 esac
30951 # Make sure all the subdirs exist.
30952 for d in $subdirs doc build common c-family
30954 test -d $d || mkdir $d
30955 done
30958 esac
30959 done # for ac_tag
30962 as_fn_exit 0
30963 _ACEOF
30964 ac_clean_files=$ac_clean_files_save
30966 test $ac_write_fail = 0 ||
30967 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30970 # configure is writing to config.log, and then calls config.status.
30971 # config.status does its own redirection, appending to config.log.
30972 # Unfortunately, on DOS this fails, as config.log is still kept open
30973 # by configure, so config.status won't be able to write to it; its
30974 # output is simply discarded. So we exec the FD to /dev/null,
30975 # effectively closing config.log, so it can be properly (re)opened and
30976 # appended to by config.status. When coming back to configure, we
30977 # need to make the FD available again.
30978 if test "$no_create" != yes; then
30979 ac_cs_success=:
30980 ac_config_status_args=
30981 test "$silent" = yes &&
30982 ac_config_status_args="$ac_config_status_args --quiet"
30983 exec 5>/dev/null
30984 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30985 exec 5>>config.log
30986 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30987 # would make configure fail if this is the last instruction.
30988 $ac_cs_success || as_fn_exit $?
30990 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30992 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}