min(-x, -y), min(~x, ~y)
[official-gcc.git] / gcc / configure
blob1c6e3407ce7cad2567b05a848ebd16009adf9919
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
767 LN_S
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files='option_includes
876 language_hooks'
877 ac_user_opts='
878 enable_option_checking
879 with_build_libsubdir
880 with_local_prefix
881 with_native_system_header_dir
882 with_build_sysroot
883 with_sysroot
884 with_gxx_include_dir
885 with_cpp_install_dir
886 enable_generated_files_in_srcdir
887 with_gnu_ld
888 with_ld
889 with_demangler_in_ld
890 with_gnu_as
891 with_as
892 enable_largefile
893 enable_build_format_warnings
894 enable_werror_always
895 enable_checking
896 enable_coverage
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
899 with_stabs
900 enable_multilib
901 enable_multiarch
902 enable___cxa_atexit
903 enable_decimal_float
904 enable_fixed_point
905 enable_threads
906 enable_tls
907 enable_objc_gc
908 with_dwarf2
909 enable_shared
910 with_specs
911 with_pkgversion
912 with_bugurl
913 enable_languages
914 with_multilib_list
915 enable_rpath
916 with_libiconv_prefix
917 enable_sjlj_exceptions
918 enable_secureplt
919 enable_leading_mingw64_underscores
920 enable_cld
921 enable_frame_pointer
922 enable_win32_registry
923 enable_static
924 with_pic
925 enable_fast_install
926 enable_libtool_lock
927 enable_ld
928 enable_gold
929 with_plugin_ld
930 enable_gnu_indirect_function
931 enable_initfini_array
932 enable_comdat
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
935 with_glibc_version
936 enable_gnu_unique_object
937 enable_linker_build_id
938 enable_default_ssp
939 with_long_double_128
940 with_gc
941 with_system_zlib
942 enable_maintainer_mode
943 enable_link_mutex
944 enable_version_specific_runtime_libs
945 enable_plugin
946 enable_host_shared
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
950 enable_default_pie
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
961 CXXFLAGS
963 CXXCPP
965 GMPLIBS
966 GMPINC
967 ISLLIBS
968 ISLINC'
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1026 ac_prev=
1027 continue
1030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1039 ac_dashdash=yes ;;
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 ac_prev=sbindir ;;
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 | --sbi=* | --sb=*)
1262 sbindir=$ac_optarg ;;
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1267 | --sha | --sh)
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 | --sha=* | --sh=*)
1273 sharedstatedir=$ac_optarg ;;
1275 -site | --site | --sit)
1276 ac_prev=site ;;
1277 -site=* | --site=* | --sit=*)
1278 site=$ac_optarg ;;
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 ac_prev=srcdir ;;
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 verbose=yes ;;
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1303 -with-* | --with-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=\$ac_optarg ;;
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=no ;;
1335 --x)
1336 # Obsolete; use --with-x.
1337 with_x=yes ;;
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1353 -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1357 *=*)
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1363 esac
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 esac
1376 done
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error "missing argument to $ac_option"
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1385 no) ;;
1386 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error "pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1462 /^X\(\/\/\)$/{
1463 s//\1/
1466 /^X\(\/\).*/{
1467 s//\1/
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1475 else
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1565 cat <<\_ACEOF
1567 Program names:
1568 --program-prefix=PREFIX prepend PREFIX to installed program names
1569 --program-suffix=SUFFIX append SUFFIX to installed program names
1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 --target=TARGET configure for building compilers for TARGET [HOST]
1576 _ACEOF
1579 if test -n "$ac_init_help"; then
1581 cat <<\_ACEOF
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-generated-files-in-srcdir
1588 put copies of generated files in source dir intended
1589 for creating source tarballs for users without
1590 texinfo bison or flex
1591 --disable-largefile omit support for large files
1592 --disable-build-format-warnings
1593 don't use -Wformat while building GCC
1594 --enable-werror-always enable -Werror despite compiler version
1595 --enable-checking[=LIST]
1596 enable expensive run-time checks. With LIST, enable
1597 only specific categories of checks. Categories are:
1598 yes,no,all,none,release. Flags are:
1599 assert,df,fold,gc,gcac,gimple,misc,
1600 rtlflag,rtl,runtime,tree,valgrind,types
1601 --enable-coverage[=LEVEL]
1602 enable compiler's code coverage collection. Use to
1603 measure compiler performance and locate unused parts
1604 of the compiler. With LEVEL, specify optimization.
1605 Values are opt, noopt, default is noopt
1606 --enable-gather-detailed-mem-stats
1607 enable detailed memory allocation stats gathering
1608 --enable-valgrind-annotations
1609 enable valgrind runtime interaction
1610 --enable-multilib enable library support for multiple ABIs
1611 --enable-multiarch enable support for multiarch paths
1612 --enable-__cxa_atexit enable __cxa_atexit for C++
1613 --enable-decimal-float={no,yes,bid,dpd}
1614 enable decimal float extension to C. Selecting 'bid'
1615 or 'dpd' choses which decimal floating point format
1616 to use
1617 --enable-fixed-point enable fixed-point arithmetic extension to C
1618 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1619 package
1620 --enable-tls enable or disable generation of tls code overriding
1621 the assembler check for tls support
1622 --enable-objc-gc enable the use of Boehm's garbage collector with the
1623 GNU Objective-C runtime
1624 --disable-shared don't provide a shared libgcc
1625 --enable-languages=LIST specify which front-ends to build
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-sjlj-exceptions
1628 arrange to use setjmp/longjmp exception handling
1629 --enable-secureplt enable -msecure-plt by default for PowerPC
1630 --enable-leading-mingw64-underscores
1631 enable leading underscores on 64 bit mingw targets
1632 --enable-cld enable -mcld by default for 32bit x86
1633 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1635 --disable-win32-registry
1636 disable lookup of installation paths in the Registry
1637 on Windows hosts
1638 --enable-win32-registry enable registry lookup (default)
1639 --enable-win32-registry=KEY
1640 use KEY instead of GCC version as the last portion
1641 of the registry key
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=yes]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1648 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1649 --enable-gnu-indirect-function
1650 enable the use of the @gnu_indirect_function to
1651 glibc systems
1652 --enable-initfini-array use .init_array/.fini_array sections
1653 --enable-comdat enable COMDAT group support
1655 --enable-fix-cortex-a53-835769
1656 enable workaround for AArch64 Cortex-A53 erratum
1657 835769 by default
1658 --disable-fix-cortex-a53-835769
1659 disable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1663 --enable-fix-cortex-a53-843419
1664 enable workaround for AArch64 Cortex-A53 erratum
1665 843419 by default
1666 --disable-fix-cortex-a53-843419
1667 disable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1670 --enable-gnu-unique-object
1671 enable the use of the @gnu_unique_object ELF
1672 extension on glibc systems
1673 --enable-linker-build-id
1674 compiler will always pass --build-id to linker
1675 --enable-default-ssp enable Stack Smashing Protection as default
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1680 thrashing on the build machine
1681 --enable-version-specific-runtime-libs
1682 specify that runtime libraries should be installed
1683 in a compiler-specific directory
1684 --enable-plugin enable plugin support
1685 --enable-host-shared build host code as shared libraries
1686 --disable-libquadmath-support
1687 disable libquadmath support for Fortran
1688 --enable-default-pie enable Position Independent Executable as default
1690 Optional Packages:
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --with-build-libsubdir=DIR Directory where to find libraries for build system
1694 --with-local-prefix=DIR specifies directory to put local include
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-gxx-include-dir=DIR
1702 specifies directory to put g++ header files
1703 --with-cpp-install-dir=DIR
1704 install the user visible C preprocessor in DIR
1705 (relative to PREFIX) as well as PREFIX/bin
1706 --with-gnu-ld arrange to work with GNU ld
1707 --with-ld arrange to use the specified ld (full pathname)
1708 --with-demangler-in-ld try to use demangler in GNU ld
1709 --with-gnu-as arrange to work with GNU as
1710 --with-as arrange to use the specified as (full pathname)
1711 --with-stabs arrange to use stabs instead of host debug format
1712 --with-dwarf2 force the default debug format to be DWARF 2
1713 --with-specs=SPECS add SPECS to driver command-line processing
1714 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1715 --with-bugurl=URL Direct users to URL to report a bug
1716 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1717 --with-gnu-ld assume the C compiler uses GNU ld default=no
1718 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1719 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1720 --with-pic try to use only PIC/non-PIC objects [default=use
1721 both]
1722 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 --with-plugin-ld=[ARG] specify the plugin linker
1724 --with-glibc-version=M.N
1725 assume GCC used with glibc version M.N or later
1726 --with-long-double-128 use 128-bit long double by default
1727 --with-gc={page,zone} this option is not supported anymore. It used to
1728 choose the garbage collection mechanism to use with
1729 the compiler
1730 --with-system-zlib use installed libz
1731 --with-linker-hash-style={sysv,gnu,both}
1732 specify the linker hash style
1733 --with-diagnostics-color={never,auto,auto-if-env,always}
1734 specify the default of -fdiagnostics-color option
1735 auto-if-env stands for -fdiagnostics-color=auto if
1736 GCC_COLOR environment variable is present and
1737 -fdiagnostics-color=never otherwise
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1750 CPP C preprocessor
1751 GMPLIBS How to link GMP
1752 GMPINC How to find GMP include files
1753 ISLLIBS How to link isl
1754 ISLINC How to find isl include files
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1759 Report bugs to the package provider.
1760 _ACEOF
1761 ac_status=$?
1764 if test "$ac_init_help" = "recursive"; then
1765 # If there are subdirs, report their specific --help.
1766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1767 test -d "$ac_dir" ||
1768 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769 continue
1770 ac_builddir=.
1772 case "$ac_dir" in
1773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776 # A ".." for each directory in $ac_dir_suffix.
1777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778 case $ac_top_builddir_sub in
1779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1781 esac ;;
1782 esac
1783 ac_abs_top_builddir=$ac_pwd
1784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir=$ac_top_build_prefix
1788 case $srcdir in
1789 .) # We are building in place.
1790 ac_srcdir=.
1791 ac_top_srcdir=$ac_top_builddir_sub
1792 ac_abs_top_srcdir=$ac_pwd ;;
1793 [\\/]* | ?:[\\/]* ) # Absolute name.
1794 ac_srcdir=$srcdir$ac_dir_suffix;
1795 ac_top_srcdir=$srcdir
1796 ac_abs_top_srcdir=$srcdir ;;
1797 *) # Relative name.
1798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799 ac_top_srcdir=$ac_top_build_prefix$srcdir
1800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1801 esac
1802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1804 cd "$ac_dir" || { ac_status=$?; continue; }
1805 # Check for guested configure.
1806 if test -f "$ac_srcdir/configure.gnu"; then
1807 echo &&
1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809 elif test -f "$ac_srcdir/configure"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure" --help=recursive
1812 else
1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1814 fi || ac_status=$?
1815 cd "$ac_pwd" || { ac_status=$?; break; }
1816 done
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1821 cat <<\_ACEOF
1822 configure
1823 generated by GNU Autoconf 2.64
1825 Copyright (C) 2009 Free Software Foundation, Inc.
1826 This configure script is free software; the Free Software Foundation
1827 gives unlimited permission to copy, distribute and modify it.
1828 _ACEOF
1829 exit
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_c_try_compile
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1910 } # ac_fn_cxx_try_compile
1912 # ac_fn_cxx_try_cpp LINENO
1913 # ------------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_cpp ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_cpp conftest.$ac_ext"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } >/dev/null && {
1934 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1935 test ! -s conftest.err
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=1
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 return $ac_retval
1947 } # ac_fn_cxx_try_cpp
1949 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # ---------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_cxx_check_header_mongrel ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_cxx_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_cxx_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020 esac
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 eval "$3=\$ac_header_compiler"
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 } # ac_fn_cxx_check_header_mongrel
2036 # ac_fn_cxx_try_run LINENO
2037 # ------------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2040 ac_fn_cxx_try_run ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2051 ac_status=$?
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2061 ac_status=$?
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2064 ac_retval=0
2065 else
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=$ac_status
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 return $ac_retval
2076 } # ac_fn_cxx_try_run
2078 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2079 # ---------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_cxx_check_header_compile ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2093 #include <$2>
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 } # ac_fn_cxx_check_header_compile
2109 # ac_fn_c_try_cpp LINENO
2110 # ----------------------
2111 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_c_try_cpp ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_cpp conftest.$ac_ext"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } >/dev/null && {
2131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2132 test ! -s conftest.err
2133 }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 ac_retval=1
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142 return $ac_retval
2144 } # ac_fn_c_try_cpp
2146 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2147 # ----------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2150 # computed
2151 ac_fn_cxx_compute_int ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 ac_lo=0 ac_mid=0
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2176 main ()
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179 test_array [0] = 0
2182 return 0;
2184 _ACEOF
2185 if ac_fn_cxx_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid; break
2187 else
2188 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2202 main ()
2204 static int test_array [1 - 2 * !(($2) < 0)];
2205 test_array [0] = 0
2208 return 0;
2210 _ACEOF
2211 if ac_fn_cxx_try_compile "$LINENO"; then :
2212 ac_hi=-1 ac_mid=-1
2213 while :; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2218 main ()
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 test_array [0] = 0
2224 return 0;
2226 _ACEOF
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229 else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 else
2240 ac_lo= ac_hi=
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2252 main ()
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0
2258 return 0;
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid
2263 else
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 case $ac_lo in #((
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270 '') ac_retval=1 ;;
2271 esac
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2278 #include <stdio.h>
2279 #include <stdlib.h>
2281 main ()
2284 FILE *f = fopen ("conftest.val", "w");
2285 if (! f)
2286 return 1;
2287 if (($2) < 0)
2289 long int i = longval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%ld", i);
2294 else
2296 unsigned long int i = ulongval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%lu", i);
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2306 return 0;
2308 _ACEOF
2309 if ac_fn_cxx_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311 else
2312 ac_retval=1
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 rm -f conftest.val
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 return $ac_retval
2322 } # ac_fn_cxx_compute_int
2324 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2325 # ---------------------------------------------
2326 # Tests whether TYPE exists after having included INCLUDES, setting cache
2327 # variable VAR accordingly.
2328 ac_fn_cxx_check_type ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=no"
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2341 main ()
2343 if (sizeof ($2))
2344 return 0;
2346 return 0;
2348 _ACEOF
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2354 main ()
2356 if (sizeof (($2)))
2357 return 0;
2359 return 0;
2361 _ACEOF
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2364 else
2365 eval "$3=yes"
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_cxx_check_type
2378 # ac_fn_c_find_intX_t LINENO BITS VAR
2379 # -----------------------------------
2380 # Finds a signed integer type with width BITS, setting cache variable VAR
2381 # accordingly.
2382 ac_fn_c_find_intX_t ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2386 $as_echo_n "checking for int$2_t... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 eval "$3=no"
2391 for ac_type in int$2_t 'int' 'long int' \
2392 'long long int' 'short int' 'signed char'; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $ac_includes_default
2397 main ()
2399 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2400 test_array [0] = 0
2403 return 0;
2405 _ACEOF
2406 if ac_fn_cxx_try_compile "$LINENO"; then :
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $ac_includes_default
2411 main ()
2413 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2414 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2415 test_array [0] = 0
2418 return 0;
2420 _ACEOF
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2423 else
2424 case $ac_type in #(
2425 int$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2437 else
2438 break
2440 done
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447 } # ac_fn_c_find_intX_t
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 rm -f conftest.$ac_objext conftest$ac_exeext
2456 if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>conftest.err
2464 ac_status=$?
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } && {
2472 test -z "$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 } && test -s conftest$ac_exeext && {
2475 test "$cross_compiling" = yes ||
2476 $as_test_x conftest$ac_exeext
2477 }; then :
2478 ac_retval=0
2479 else
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 ac_retval=1
2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487 # interfere with the next link command; also delete a directory that is
2488 # left behind by Apple's compiler. We do this before executing the actions.
2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 return $ac_retval
2493 } # ac_fn_cxx_try_link
2495 # ac_fn_c_find_uintX_t LINENO BITS VAR
2496 # ------------------------------------
2497 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2498 # accordingly.
2499 ac_fn_c_find_uintX_t ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2503 $as_echo_n "checking for uint$2_t... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 eval "$3=no"
2508 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2509 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $ac_includes_default
2514 main ()
2516 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2517 test_array [0] = 0
2520 return 0;
2522 _ACEOF
2523 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 case $ac_type in #(
2525 uint$2_t) :
2526 eval "$3=yes" ;; #(
2527 *) :
2528 eval "$3=\$ac_type" ;;
2529 esac
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 eval as_val=\$$3
2533 if test "x$as_val" = x""no; then :
2535 else
2536 break
2538 done
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545 } # ac_fn_c_find_uintX_t
2547 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2548 # ------------------------------------------------
2549 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2550 ac_fn_cxx_check_header_preproc ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 #include <$2>
2561 _ACEOF
2562 if ac_fn_cxx_try_cpp "$LINENO"; then :
2563 eval "$3=yes"
2564 else
2565 eval "$3=no"
2567 rm -f conftest.err conftest.$ac_ext
2569 eval ac_res=\$$3
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574 } # ac_fn_cxx_check_header_preproc
2576 # ac_fn_cxx_check_func LINENO FUNC VAR
2577 # ------------------------------------
2578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2579 ac_fn_cxx_check_func ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2591 #define $2 innocuous_$2
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $2 (); below.
2595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596 <limits.h> exists even on freestanding compilers. */
2598 #ifdef __STDC__
2599 # include <limits.h>
2600 #else
2601 # include <assert.h>
2602 #endif
2604 #undef $2
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 char $2 ();
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2617 choke me
2618 #endif
2621 main ()
2623 return $2 ();
2625 return 0;
2627 _ACEOF
2628 if ac_fn_cxx_try_link "$LINENO"; then :
2629 eval "$3=yes"
2630 else
2631 eval "$3=no"
2633 rm -f core conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2636 eval ac_res=\$$3
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641 } # ac_fn_cxx_check_func
2643 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2644 # --------------------------------------
2645 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2646 ac_fn_cxx_check_decl ()
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 as_decl_name=`echo $2|sed 's/ *(.*//'`
2650 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2652 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2660 main ()
2662 #ifndef $as_decl_name
2663 #ifdef __cplusplus
2664 (void) $as_decl_use;
2665 #else
2666 (void) $as_decl_name;
2667 #endif
2668 #endif
2671 return 0;
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 eval "$3=yes"
2676 else
2677 eval "$3=no"
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 eval ac_res=\$$3
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686 } # ac_fn_cxx_check_decl
2688 # ac_fn_c_try_link LINENO
2689 # -----------------------
2690 # Try to link conftest.$ac_ext, and return whether this succeeded.
2691 ac_fn_c_try_link ()
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 rm -f conftest.$ac_objext conftest$ac_exeext
2695 if { { ac_try="$ac_link"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest$ac_exeext && {
2714 test "$cross_compiling" = yes ||
2715 $as_test_x conftest$ac_exeext
2716 }; then :
2717 ac_retval=0
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_retval=1
2724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2726 # interfere with the next link command; also delete a directory that is
2727 # left behind by Apple's compiler. We do this before executing the actions.
2728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2730 return $ac_retval
2732 } # ac_fn_c_try_link
2734 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2735 # ----------------------------------------------
2736 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2737 ac_fn_c_check_header_preproc ()
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2741 $as_echo_n "checking for $2... " >&6; }
2742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747 #include <$2>
2748 _ACEOF
2749 if ac_fn_c_try_cpp "$LINENO"; then :
2750 eval "$3=yes"
2751 else
2752 eval "$3=no"
2754 rm -f conftest.err conftest.$ac_ext
2756 eval ac_res=\$$3
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2761 } # ac_fn_c_check_header_preproc
2763 # ac_fn_c_check_func LINENO FUNC VAR
2764 # ----------------------------------
2765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2766 ac_fn_c_check_func ()
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2778 #define $2 innocuous_$2
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char $2 (); below.
2782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783 <limits.h> exists even on freestanding compilers. */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2791 #undef $2
2793 /* Override any GCC internal prototype to avoid an error.
2794 Use char because int might match the return type of a GCC
2795 builtin and then its argument prototype would still apply. */
2796 #ifdef __cplusplus
2797 extern "C"
2798 #endif
2799 char $2 ();
2800 /* The GNU C library defines this for functions which it implements
2801 to always fail with ENOSYS. Some functions are actually named
2802 something starting with __ and the normal name is an alias. */
2803 #if defined __stub_$2 || defined __stub___$2
2804 choke me
2805 #endif
2808 main ()
2810 return $2 ();
2812 return 0;
2814 _ACEOF
2815 if ac_fn_c_try_link "$LINENO"; then :
2816 eval "$3=yes"
2817 else
2818 eval "$3=no"
2820 rm -f core conftest.err conftest.$ac_objext \
2821 conftest$ac_exeext conftest.$ac_ext
2823 eval ac_res=\$$3
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2828 } # ac_fn_c_check_func
2829 cat >config.log <<_ACEOF
2830 This file contains any messages produced by compilers while
2831 running configure, to aid debugging if configure makes a mistake.
2833 It was created by $as_me, which was
2834 generated by GNU Autoconf 2.64. Invocation command line was
2836 $ $0 $@
2838 _ACEOF
2839 exec 5>>config.log
2841 cat <<_ASUNAME
2842 ## --------- ##
2843 ## Platform. ##
2844 ## --------- ##
2846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2863 _ASUNAME
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 $as_echo "PATH: $as_dir"
2871 done
2872 IFS=$as_save_IFS
2874 } >&5
2876 cat >&5 <<_ACEOF
2879 ## ----------- ##
2880 ## Core tests. ##
2881 ## ----------- ##
2883 _ACEOF
2886 # Keep a trace of the command line.
2887 # Strip out --no-create and --no-recursion so they do not pile up.
2888 # Strip out --silent because we don't want to record it for future runs.
2889 # Also quote any args containing shell meta-characters.
2890 # Make two passes to allow for proper duplicate-argument suppression.
2891 ac_configure_args=
2892 ac_configure_args0=
2893 ac_configure_args1=
2894 ac_must_keep_next=false
2895 for ac_pass in 1 2
2897 for ac_arg
2899 case $ac_arg in
2900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2902 | -silent | --silent | --silen | --sile | --sil)
2903 continue ;;
2904 *\'*)
2905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2906 esac
2907 case $ac_pass in
2908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2910 as_fn_append ac_configure_args1 " '$ac_arg'"
2911 if test $ac_must_keep_next = true; then
2912 ac_must_keep_next=false # Got value, back to normal.
2913 else
2914 case $ac_arg in
2915 *=* | --config-cache | -C | -disable-* | --disable-* \
2916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2918 | -with-* | --with-* | -without-* | --without-* | --x)
2919 case "$ac_configure_args0 " in
2920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2921 esac
2923 -* ) ac_must_keep_next=true ;;
2924 esac
2926 as_fn_append ac_configure_args " '$ac_arg'"
2928 esac
2929 done
2930 done
2931 { ac_configure_args0=; unset ac_configure_args0;}
2932 { ac_configure_args1=; unset ac_configure_args1;}
2934 # When interrupted or exit'd, cleanup temporary files, and complete
2935 # config.log. We remove comments because anyway the quotes in there
2936 # would cause problems or look ugly.
2937 # WARNING: Use '\'' to represent an apostrophe within the trap.
2938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2939 trap 'exit_status=$?
2940 # Save into config.log some information that might help in debugging.
2942 echo
2944 cat <<\_ASBOX
2945 ## ---------------- ##
2946 ## Cache variables. ##
2947 ## ---------------- ##
2948 _ASBOX
2949 echo
2950 # The following way of writing the cache mishandles newlines in values,
2952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2953 eval ac_val=\$$ac_var
2954 case $ac_val in #(
2955 *${as_nl}*)
2956 case $ac_var in #(
2957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2959 esac
2960 case $ac_var in #(
2961 _ | IFS | as_nl) ;; #(
2962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2963 *) { eval $ac_var=; unset $ac_var;} ;;
2964 esac ;;
2965 esac
2966 done
2967 (set) 2>&1 |
2968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2969 *${as_nl}ac_space=\ *)
2970 sed -n \
2971 "s/'\''/'\''\\\\'\'''\''/g;
2972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2973 ;; #(
2975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2977 esac |
2978 sort
2980 echo
2982 cat <<\_ASBOX
2983 ## ----------------- ##
2984 ## Output variables. ##
2985 ## ----------------- ##
2986 _ASBOX
2987 echo
2988 for ac_var in $ac_subst_vars
2990 eval ac_val=\$$ac_var
2991 case $ac_val in
2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993 esac
2994 $as_echo "$ac_var='\''$ac_val'\''"
2995 done | sort
2996 echo
2998 if test -n "$ac_subst_files"; then
2999 cat <<\_ASBOX
3000 ## ------------------- ##
3001 ## File substitutions. ##
3002 ## ------------------- ##
3003 _ASBOX
3004 echo
3005 for ac_var in $ac_subst_files
3007 eval ac_val=\$$ac_var
3008 case $ac_val in
3009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3010 esac
3011 $as_echo "$ac_var='\''$ac_val'\''"
3012 done | sort
3013 echo
3016 if test -s confdefs.h; then
3017 cat <<\_ASBOX
3018 ## ----------- ##
3019 ## confdefs.h. ##
3020 ## ----------- ##
3021 _ASBOX
3022 echo
3023 cat confdefs.h
3024 echo
3026 test "$ac_signal" != 0 &&
3027 $as_echo "$as_me: caught signal $ac_signal"
3028 $as_echo "$as_me: exit $exit_status"
3029 } >&5
3030 rm -f core *.core core.conftest.* &&
3031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3032 exit $exit_status
3034 for ac_signal in 1 2 13 15; do
3035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3036 done
3037 ac_signal=0
3039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3040 rm -f -r conftest* confdefs.h
3042 $as_echo "/* confdefs.h */" > confdefs.h
3044 # Predefined preprocessor variables.
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_NAME "$PACKAGE_NAME"
3048 _ACEOF
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_STRING "$PACKAGE_STRING"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_URL "$PACKAGE_URL"
3068 _ACEOF
3071 # Let the site file select an alternate cache file if it wants to.
3072 # Prefer an explicitly selected file to automatically selected ones.
3073 ac_site_file1=NONE
3074 ac_site_file2=NONE
3075 if test -n "$CONFIG_SITE"; then
3076 ac_site_file1=$CONFIG_SITE
3077 elif test "x$prefix" != xNONE; then
3078 ac_site_file1=$prefix/share/config.site
3079 ac_site_file2=$prefix/etc/config.site
3080 else
3081 ac_site_file1=$ac_default_prefix/share/config.site
3082 ac_site_file2=$ac_default_prefix/etc/config.site
3084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3086 test "x$ac_site_file" = xNONE && continue
3087 if test -r "$ac_site_file"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3090 sed 's/^/| /' "$ac_site_file" >&5
3091 . "$ac_site_file"
3093 done
3095 if test -r "$cache_file"; then
3096 # Some versions of bash will fail to source /dev/null (special
3097 # files actually), so we avoid doing that.
3098 if test -f "$cache_file"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3100 $as_echo "$as_me: loading cache $cache_file" >&6;}
3101 case $cache_file in
3102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3103 *) . "./$cache_file";;
3104 esac
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3108 $as_echo "$as_me: creating cache $cache_file" >&6;}
3109 >$cache_file
3112 # Check that the precious variables saved in the cache have kept the same
3113 # value.
3114 ac_cache_corrupted=false
3115 for ac_var in $ac_precious_vars; do
3116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3117 eval ac_new_set=\$ac_env_${ac_var}_set
3118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3119 eval ac_new_val=\$ac_env_${ac_var}_value
3120 case $ac_old_set,$ac_new_set in
3121 set,)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,set)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,);;
3131 if test "x$ac_old_val" != "x$ac_new_val"; then
3132 # differences in whitespace do not lead to failure.
3133 ac_old_val_w=`echo x $ac_old_val`
3134 ac_new_val_w=`echo x $ac_new_val`
3135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3138 ac_cache_corrupted=:
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3142 eval $ac_var=\$ac_old_val
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3148 fi;;
3149 esac
3150 # Pass precious variables to config.status.
3151 if test "$ac_new_set" = set; then
3152 case $ac_new_val in
3153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3154 *) ac_arg=$ac_var=$ac_new_val ;;
3155 esac
3156 case " $ac_configure_args " in
3157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3159 esac
3161 done
3162 if $ac_cache_corrupted; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3169 ## -------------------- ##
3170 ## Main body of script. ##
3171 ## -------------------- ##
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3187 gcc_version=`cat $srcdir/BASE-VER`
3189 # Determine the host, build, and target systems
3190 ac_aux_dir=
3191 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3192 for ac_t in install-sh install.sh shtool; do
3193 if test -f "$ac_dir/$ac_t"; then
3194 ac_aux_dir=$ac_dir
3195 ac_install_sh="$ac_aux_dir/$ac_t -c"
3196 break 2
3198 done
3199 done
3200 if test -z "$ac_aux_dir"; then
3201 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3204 # These three variables are undocumented and unsupported,
3205 # and are intended to be withdrawn in a future Autoconf release.
3206 # They can cause serious problems if a builder's source tree is in a directory
3207 # whose full name contains unusual characters.
3208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3213 # Make sure we can run config.sub.
3214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3215 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3218 $as_echo_n "checking build system type... " >&6; }
3219 if test "${ac_cv_build+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 ac_build_alias=$build_alias
3223 test "x$ac_build_alias" = x &&
3224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3225 test "x$ac_build_alias" = x &&
3226 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3228 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3232 $as_echo "$ac_cv_build" >&6; }
3233 case $ac_cv_build in
3234 *-*-*) ;;
3235 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3236 esac
3237 build=$ac_cv_build
3238 ac_save_IFS=$IFS; IFS='-'
3239 set x $ac_cv_build
3240 shift
3241 build_cpu=$1
3242 build_vendor=$2
3243 shift; shift
3244 # Remember, the first character of IFS is used to create $*,
3245 # except with old shells:
3246 build_os=$*
3247 IFS=$ac_save_IFS
3248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3252 $as_echo_n "checking host system type... " >&6; }
3253 if test "${ac_cv_host+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test "x$host_alias" = x; then
3257 ac_cv_host=$ac_cv_build
3258 else
3259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3260 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3266 case $ac_cv_host in
3267 *-*-*) ;;
3268 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3269 esac
3270 host=$ac_cv_host
3271 ac_save_IFS=$IFS; IFS='-'
3272 set x $ac_cv_host
3273 shift
3274 host_cpu=$1
3275 host_vendor=$2
3276 shift; shift
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3279 host_os=$*
3280 IFS=$ac_save_IFS
3281 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3285 $as_echo_n "checking target system type... " >&6; }
3286 if test "${ac_cv_target+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test "x$target_alias" = x; then
3290 ac_cv_target=$ac_cv_host
3291 else
3292 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3293 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3298 $as_echo "$ac_cv_target" >&6; }
3299 case $ac_cv_target in
3300 *-*-*) ;;
3301 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3302 esac
3303 target=$ac_cv_target
3304 ac_save_IFS=$IFS; IFS='-'
3305 set x $ac_cv_target
3306 shift
3307 target_cpu=$1
3308 target_vendor=$2
3309 shift; shift
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3312 target_os=$*
3313 IFS=$ac_save_IFS
3314 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3317 # The aliases save the names the user supplied, while $host etc.
3318 # will get canonicalized.
3319 test -n "$target_alias" &&
3320 test "$program_prefix$program_suffix$program_transform_name" = \
3321 NONENONEs,x,x, &&
3322 program_prefix=${target_alias}-
3324 # Determine the noncanonical target name, for directory use.
3325 case ${build_alias} in
3326 "") build_noncanonical=${build} ;;
3327 *) build_noncanonical=${build_alias} ;;
3328 esac
3330 case ${host_alias} in
3331 "") host_noncanonical=${build_noncanonical} ;;
3332 *) host_noncanonical=${host_alias} ;;
3333 esac
3335 case ${target_alias} in
3336 "") target_noncanonical=${host_noncanonical} ;;
3337 *) target_noncanonical=${target_alias} ;;
3338 esac
3343 # Used for constructing correct paths for offload compilers.
3344 real_target_noncanonical=${target_noncanonical}
3345 accel_dir_suffix=
3347 # Determine the target- and build-specific subdirectories
3349 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3350 # have matching libraries, they should use host libraries: Makefile.tpl
3351 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3352 # However, they still use the build modules, because the corresponding
3353 # host modules (e.g. bison) are only built for the host when bootstrap
3354 # finishes. So:
3355 # - build_subdir is where we find build modules, and never changes.
3356 # - build_libsubdir is where we find build libraries, and can be overridden.
3358 # Prefix 'build-' so this never conflicts with target_subdir.
3359 build_subdir="build-${build_noncanonical}"
3361 # Check whether --with-build-libsubdir was given.
3362 if test "${with_build_libsubdir+set}" = set; then :
3363 withval=$with_build_libsubdir; build_libsubdir="$withval"
3364 else
3365 build_libsubdir="$build_subdir"
3368 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3369 if ( test $srcdir = . && test -d gcc ) \
3370 || test -d $srcdir/../host-${host_noncanonical}; then
3371 host_subdir="host-${host_noncanonical}"
3372 else
3373 host_subdir=.
3375 # No prefix.
3376 target_subdir=${target_noncanonical}
3379 # Set program_transform_name
3380 test "$program_prefix" != NONE &&
3381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3382 # Use a double $ so make ignores it.
3383 test "$program_suffix" != NONE &&
3384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3385 # Double any \ or $.
3386 # By default was `s,x,x', remove it if useless.
3387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3391 # Check for bogus environment variables.
3392 # Test if LIBRARY_PATH contains the notation for the current directory
3393 # since this would lead to problems installing/building glibc.
3394 # LIBRARY_PATH contains the current directory if one of the following
3395 # is true:
3396 # - one of the terminals (":" and ";") is the first or last sign
3397 # - two terminals occur directly after each other
3398 # - the path contains an element with a dot in it
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3400 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3401 case ${LIBRARY_PATH} in
3402 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3403 library_path_setting="contains current directory"
3406 library_path_setting="ok"
3408 esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3410 $as_echo "$library_path_setting" >&6; }
3411 if test "$library_path_setting" != "ok"; then
3412 as_fn_error "
3413 *** LIBRARY_PATH shouldn't contain the current directory when
3414 *** building gcc. Please change the environment variable
3415 *** and run configure again." "$LINENO" 5
3418 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3419 # since this would lead to problems installing/building glibc.
3420 # GCC_EXEC_PREFIX contains the current directory if one of the following
3421 # is true:
3422 # - one of the terminals (":" and ";") is the first or last sign
3423 # - two terminals occur directly after each other
3424 # - the path contains an element with a dot in it
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3426 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3427 case ${GCC_EXEC_PREFIX} in
3428 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3429 gcc_exec_prefix_setting="contains current directory"
3432 gcc_exec_prefix_setting="ok"
3434 esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3436 $as_echo "$gcc_exec_prefix_setting" >&6; }
3437 if test "$gcc_exec_prefix_setting" != "ok"; then
3438 as_fn_error "
3439 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3440 *** building gcc. Please change the environment variable
3441 *** and run configure again." "$LINENO" 5
3444 # -----------
3445 # Directories
3446 # -----------
3448 # Specify the local prefix
3449 local_prefix=
3451 # Check whether --with-local-prefix was given.
3452 if test "${with_local_prefix+set}" = set; then :
3453 withval=$with_local_prefix; case "${withval}" in
3454 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3455 no) ;;
3456 *) local_prefix=$with_local_prefix ;;
3457 esac
3461 # Default local prefix if it is empty
3462 if test x$local_prefix = x; then
3463 local_prefix=/usr/local
3467 # Check whether --with-native-system-header-dir was given.
3468 if test "${with_native_system_header_dir+set}" = set; then :
3469 withval=$with_native_system_header_dir;
3470 case ${with_native_system_header_dir} in
3471 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3472 /* | [A-Za-z]:[\\/]*) ;;
3473 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3474 esac
3475 configured_native_system_header_dir="${withval}"
3477 else
3478 configured_native_system_header_dir=
3483 # Check whether --with-build-sysroot was given.
3484 if test "${with_build_sysroot+set}" = set; then :
3485 withval=$with_build_sysroot; if test x"$withval" != x ; then
3486 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3488 else
3489 SYSROOT_CFLAGS_FOR_TARGET=
3494 if test "x$prefix" = xNONE; then
3495 test_prefix=/usr/local
3496 else
3497 test_prefix=$prefix
3499 if test "x$exec_prefix" = xNONE; then
3500 test_exec_prefix=$test_prefix
3501 else
3502 test_exec_prefix=$exec_prefix
3506 # Check whether --with-sysroot was given.
3507 if test "${with_sysroot+set}" = set; then :
3508 withval=$with_sysroot;
3509 case ${with_sysroot} in
3510 /) ;;
3511 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3512 esac
3513 case ${with_sysroot} in
3514 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3515 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3516 esac
3518 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3519 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3521 case ${TARGET_SYSTEM_ROOT} in
3522 "${test_prefix}"|"${test_prefix}/"*|\
3523 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3524 '${prefix}'|'${prefix}/'*|\
3525 '${exec_prefix}'|'${exec_prefix}/'*)
3526 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3527 TARGET_SYSTEM_ROOT_DEFINE="$t"
3529 esac
3531 else
3533 TARGET_SYSTEM_ROOT=
3534 TARGET_SYSTEM_ROOT_DEFINE=
3535 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3543 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3544 # passed in by the toplevel make and thus we'd get different behavior
3545 # depending on where we built the sources.
3546 gcc_gxx_include_dir=
3547 # Specify the g++ header file directory
3549 # Check whether --with-gxx-include-dir was given.
3550 if test "${with_gxx_include_dir+set}" = set; then :
3551 withval=$with_gxx_include_dir; case "${withval}" in
3552 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3553 no) ;;
3554 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3555 esac
3559 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3560 if test x${gcc_gxx_include_dir} = x; then
3561 if test x${enable_version_specific_runtime_libs} = xyes; then
3562 gcc_gxx_include_dir='${libsubdir}/include/c++'
3563 else
3564 libstdcxx_incdir='include/c++/$(version)'
3565 if test x$host != x$target; then
3566 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3568 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3572 gcc_gxx_include_dir_add_sysroot=0
3573 if test "${with_sysroot+set}" = set; then
3574 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3575 if test "${gcc_gxx_without_sysroot}"; then
3576 if test x${with_sysroot} != x/; then
3577 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3579 gcc_gxx_include_dir_add_sysroot=1
3584 # Check whether --with-cpp_install_dir was given.
3585 if test "${with_cpp_install_dir+set}" = set; then :
3586 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3587 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3588 elif test x$withval != xno; then
3589 cpp_install_dir=$withval
3594 # We would like to our source tree to be readonly. However when releases or
3595 # pre-releases are generated, the flex/bison generated files as well as the
3596 # various formats of manuals need to be included along with the rest of the
3597 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3598 # just that.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3601 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3602 # Check whether --enable-generated-files-in-srcdir was given.
3603 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3604 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3605 else
3606 generated_files_in_srcdir=no
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3611 $as_echo "$generated_files_in_srcdir" >&6; }
3613 if test "$generated_files_in_srcdir" = "yes"; then
3614 GENINSRC=''
3615 else
3616 GENINSRC='#'
3620 # -------------------
3621 # Find default linker
3622 # -------------------
3624 # With GNU ld
3626 # Check whether --with-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then :
3628 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3629 else
3630 gnu_ld_flag=no
3634 # With pre-defined ld
3636 # Check whether --with-ld was given.
3637 if test "${with_ld+set}" = set; then :
3638 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3641 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3642 if test ! -x "$DEFAULT_LINKER"; then
3643 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3644 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3645 gnu_ld_flag=yes
3648 cat >>confdefs.h <<_ACEOF
3649 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3650 _ACEOF
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3655 $as_echo_n "checking whether a default linker was specified... " >&6; }
3656 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3657 if test x"$gnu_ld_flag" = x"no"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3659 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3662 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3669 # With demangler in GNU ld
3671 # Check whether --with-demangler-in-ld was given.
3672 if test "${with_demangler_in_ld+set}" = set; then :
3673 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3674 else
3675 demangler_in_ld=yes
3679 # ----------------------
3680 # Find default assembler
3681 # ----------------------
3683 # With GNU as
3685 # Check whether --with-gnu-as was given.
3686 if test "${with_gnu_as+set}" = set; then :
3687 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3688 else
3689 gas_flag=no
3694 # Check whether --with-as was given.
3695 if test "${with_as+set}" = set; then :
3696 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3699 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3700 if test ! -x "$DEFAULT_ASSEMBLER"; then
3701 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3702 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3703 gas_flag=yes
3706 cat >>confdefs.h <<_ACEOF
3707 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3708 _ACEOF
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3713 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3714 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3715 if test x"$gas_flag" = x"no"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3717 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3720 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3727 # ---------------
3728 # Find C compiler
3729 # ---------------
3731 # If a non-executable a.out is present (e.g. created by GNU as above even if
3732 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3733 # file, even when creating an executable, so an execution test fails.
3734 # Remove possible default executable files to avoid this.
3736 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3737 # Autoconf includes it.
3738 rm -f a.out a.exe b.out
3740 # Find the native compiler
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3768 done
3769 done
3770 IFS=$as_save_IFS
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3785 if test -z "$ac_cv_prog_CC"; then
3786 ac_ct_CC=$CC
3787 # Extract the first word of "gcc", so it can be a program name with args.
3788 set dummy gcc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 CC=$ac_ct_CC
3834 else
3835 CC="$ac_cv_prog_CC"
3838 if test -z "$CC"; then
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_CC="${ac_tool_prefix}cc"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3861 done
3862 done
3863 IFS=$as_save_IFS
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3879 if test -z "$CC"; then
3880 # Extract the first word of "cc", so it can be a program name with args.
3881 set dummy cc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 else
3890 ac_prog_rejected=no
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899 ac_prog_rejected=yes
3900 continue
3902 ac_cv_prog_CC="cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3906 done
3907 done
3908 IFS=$as_save_IFS
3910 if test $ac_prog_rejected = yes; then
3911 # We found a bogon in the path, so make sure we never use it.
3912 set dummy $ac_cv_prog_CC
3913 shift
3914 if test $# != 0; then
3915 # We chose a different compiler from the bogus one.
3916 # However, it has the same basename, so the bogon will be chosen
3917 # first if we set CC to just the basename; use the full file name.
3918 shift
3919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3924 CC=$ac_cv_prog_CC
3925 if test -n "$CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 for ac_prog in cl.exe
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_CC+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3960 done
3961 done
3962 IFS=$as_save_IFS
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$CC" && break
3977 done
3979 if test -z "$CC"; then
3980 ac_ct_CC=$CC
3981 for ac_prog in cl.exe
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy $ac_prog; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CC="$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4004 done
4005 done
4006 IFS=$as_save_IFS
4010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4020 test -n "$ac_ct_CC" && break
4021 done
4023 if test "x$ac_ct_CC" = x; then
4024 CC=""
4025 else
4026 case $cross_compiling:$ac_tool_warned in
4027 yes:)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4031 esac
4032 CC=$ac_ct_CC
4039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "no acceptable C compiler found in \$PATH
4042 See \`config.log' for more details." "$LINENO" 5; }
4044 # Provide some information about the compiler.
4045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 set X $ac_compile
4047 ac_compiler=$2
4048 for ac_option in --version -v -V -qversion; do
4049 { { ac_try="$ac_compiler $ac_option >&5"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4057 ac_status=$?
4058 if test -s conftest.err; then
4059 sed '10a\
4060 ... rest of stderr output deleted ...
4061 10q' conftest.err >conftest.er1
4062 cat conftest.er1 >&5
4063 rm -f conftest.er1 conftest.err
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 done
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4073 main ()
4077 return 0;
4079 _ACEOF
4080 ac_clean_files_save=$ac_clean_files
4081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4082 # Try to create an executable without -o first, disregard a.out.
4083 # It will help us diagnose broken compilers, and finding out an intuition
4084 # of exeext.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086 $as_echo_n "checking for C compiler default output file name... " >&6; }
4087 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4089 # The possible output files:
4090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4092 ac_rmfiles=
4093 for ac_file in $ac_files
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 esac
4099 done
4100 rm -f $ac_rmfiles
4102 if { { ac_try="$ac_link_default"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_link_default") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4116 # so that the user can short-circuit this test for compilers unknown to
4117 # Autoconf.
4118 for ac_file in $ac_files ''
4120 test -f "$ac_file" || continue
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4124 [ab].out )
4125 # We found the default executable, but exeext='' is most
4126 # certainly right.
4127 break;;
4128 *.* )
4129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4130 then :; else
4131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4133 # We set ac_cv_exeext here because the later test for it is not
4134 # safe: cross compilers may not add the suffix if given an `-o'
4135 # argument, so we may need to know it at that point already.
4136 # Even if this section looks crufty: it has the advantage of
4137 # actually working.
4138 break;;
4140 break;;
4141 esac
4142 done
4143 test "$ac_cv_exeext" = no && ac_cv_exeext=
4145 else
4146 ac_file=''
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149 $as_echo "$ac_file" >&6; }
4150 if test -z "$ac_file"; then :
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 { as_fn_set_status 77
4157 as_fn_error "C compiler cannot create executables
4158 See \`config.log' for more details." "$LINENO" 5; }; }
4160 ac_exeext=$ac_cv_exeext
4162 # Check that the compiler produces executables we can run. If not, either
4163 # the compiler is broken, or we cross compile.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4165 $as_echo_n "checking whether the C compiler works... " >&6; }
4166 # If not cross compiling, check that we can run a simple program.
4167 if test "$cross_compiling" != yes; then
4168 if { ac_try='./$ac_file'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4179 cross_compiling=no
4180 else
4181 if test "$cross_compiling" = maybe; then
4182 cross_compiling=yes
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details." "$LINENO" 5; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4196 ac_clean_files=$ac_clean_files_save
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200 $as_echo_n "checking whether we are cross compiling... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4202 $as_echo "$cross_compiling" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205 $as_echo_n "checking for suffix of executables... " >&6; }
4206 if { { ac_try="$ac_link"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
4214 ac_status=$?
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; then :
4217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4219 # work properly (i.e., refer to `conftest.exe'), while it won't with
4220 # `rm'.
4221 for ac_file in conftest.exe conftest conftest.*; do
4222 test -f "$ac_file" || continue
4223 case $ac_file in
4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4226 break;;
4227 * ) break;;
4228 esac
4229 done
4230 else
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error "cannot compute suffix of executables: cannot compile and link
4234 See \`config.log' for more details." "$LINENO" 5; }
4236 rm -f conftest$ac_cv_exeext
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4238 $as_echo "$ac_cv_exeext" >&6; }
4240 rm -f conftest.$ac_ext
4241 EXEEXT=$ac_cv_exeext
4242 ac_exeext=$EXEEXT
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 $as_echo_n "checking for suffix of object files... " >&6; }
4245 if test "${ac_cv_objext+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4252 main ()
4256 return 0;
4258 _ACEOF
4259 rm -f conftest.o conftest.obj
4260 if { { ac_try="$ac_compile"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_compile") 2>&5
4268 ac_status=$?
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }; then :
4271 for ac_file in conftest.o conftest.obj conftest.*; do
4272 test -f "$ac_file" || continue;
4273 case $ac_file in
4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 break;;
4277 esac
4278 done
4279 else
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error "cannot compute suffix of object files: cannot compile
4286 See \`config.log' for more details." "$LINENO" 5; }
4288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291 $as_echo "$ac_cv_objext" >&6; }
4292 OBJEXT=$ac_cv_objext
4293 ac_objext=$OBJEXT
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4303 main ()
4305 #ifndef __GNUC__
4306 choke me
4307 #endif
4310 return 0;
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_compiler_gnu=yes
4315 else
4316 ac_compiler_gnu=no
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326 else
4327 GCC=
4329 ac_test_CFLAGS=${CFLAGS+set}
4330 ac_save_CFLAGS=$CFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4333 if test "${ac_cv_prog_cc_g+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 ac_save_c_werror_flag=$ac_c_werror_flag
4337 ac_c_werror_flag=yes
4338 ac_cv_prog_cc_g=no
4339 CFLAGS="-g"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4344 main ()
4348 return 0;
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_g=yes
4353 else
4354 CFLAGS=""
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4359 main ()
4363 return 0;
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4368 else
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4375 main ()
4379 return 0;
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
4394 if test "$ac_test_CFLAGS" = set; then
4395 CFLAGS=$ac_save_CFLAGS
4396 elif test $ac_cv_prog_cc_g = yes; then
4397 if test "$GCC" = yes; then
4398 CFLAGS="-g -O2"
4399 else
4400 CFLAGS="-g"
4402 else
4403 if test "$GCC" = yes; then
4404 CFLAGS="-O2"
4405 else
4406 CFLAGS=
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_cv_prog_cc_c89=no
4415 ac_save_CC=$CC
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <stdarg.h>
4419 #include <stdio.h>
4420 #include <sys/types.h>
4421 #include <sys/stat.h>
4422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4423 struct buf { int x; };
4424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4425 static char *e (p, i)
4426 char **p;
4427 int i;
4429 return p[i];
4431 static char *f (char * (*g) (char **, int), char **p, ...)
4433 char *s;
4434 va_list v;
4435 va_start (v,p);
4436 s = g (p, va_arg (v,int));
4437 va_end (v);
4438 return s;
4441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4442 function prototypes and stuff, but not '\xHH' hex character constants.
4443 These don't provoke an error unfortunately, instead are silently treated
4444 as 'x'. The following induces an error, until -std is added to get
4445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4446 array size at least. It's necessary to write '\x00'==0 to get something
4447 that's true only with -std. */
4448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4451 inside strings and character constants. */
4452 #define FOO(x) 'x'
4453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4455 int test (int i, double x);
4456 struct s1 {int (*f) (int a);};
4457 struct s2 {int (*f) (double a);};
4458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4459 int argc;
4460 char **argv;
4462 main ()
4464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4466 return 0;
4468 _ACEOF
4469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4472 CC="$ac_save_CC $ac_arg"
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_c89=$ac_arg
4476 rm -f core conftest.err conftest.$ac_objext
4477 test "x$ac_cv_prog_cc_c89" != "xno" && break
4478 done
4479 rm -f conftest.$ac_ext
4480 CC=$ac_save_CC
4483 # AC_CACHE_VAL
4484 case "x$ac_cv_prog_cc_c89" in
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4487 $as_echo "none needed" >&6; } ;;
4488 xno)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490 $as_echo "unsupported" >&6; } ;;
4492 CC="$CC $ac_cv_prog_cc_c89"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4495 esac
4496 if test "x$ac_cv_prog_cc_c89" != xno; then :
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 ac_ext=cpp
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4513 CXX=$CCC
4514 else
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 CXX=$ac_cv_prog_CXX
4546 if test -n "$CXX"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4555 test -n "$CXX" && break
4556 done
4558 if test -z "$CXX"; then
4559 ac_ct_CXX=$CXX
4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4583 done
4584 done
4585 IFS=$as_save_IFS
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4599 test -n "$ac_ct_CXX" && break
4600 done
4602 if test "x$ac_ct_CXX" = x; then
4603 CXX="g++"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CXX=$ac_ct_CXX
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4619 set X $ac_compile
4620 ac_compiler=$2
4621 for ac_option in --version -v -V -qversion; do
4622 { { ac_try="$ac_compiler $ac_option >&5"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4630 ac_status=$?
4631 if test -s conftest.err; then
4632 sed '10a\
4633 ... rest of stderr output deleted ...
4634 10q' conftest.err >conftest.er1
4635 cat conftest.er1 >&5
4636 rm -f conftest.er1 conftest.err
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4640 done
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4651 main ()
4653 #ifndef __GNUC__
4654 choke me
4655 #endif
4658 return 0;
4660 _ACEOF
4661 if ac_fn_cxx_try_compile "$LINENO"; then :
4662 ac_compiler_gnu=yes
4663 else
4664 ac_compiler_gnu=no
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4673 GXX=yes
4674 else
4675 GXX=
4677 ac_test_CXXFLAGS=${CXXFLAGS+set}
4678 ac_save_CXXFLAGS=$CXXFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4681 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4685 ac_cxx_werror_flag=yes
4686 ac_cv_prog_cxx_g=no
4687 CXXFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4692 main ()
4696 return 0;
4698 _ACEOF
4699 if ac_fn_cxx_try_compile "$LINENO"; then :
4700 ac_cv_prog_cxx_g=yes
4701 else
4702 CXXFLAGS=""
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4707 main ()
4711 return 0;
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4716 else
4717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4723 main ()
4727 return 0;
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4742 if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4750 else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$GNATBIND"; then
4775 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4794 GNATBIND=$ac_cv_prog_GNATBIND
4795 if test -n "$GNATBIND"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4797 $as_echo "$GNATBIND" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4805 if test -z "$ac_cv_prog_GNATBIND"; then
4806 ac_ct_GNATBIND=$GNATBIND
4807 # Extract the first word of "gnatbind", so it can be a program name with args.
4808 set dummy gnatbind; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$ac_ct_GNATBIND"; then
4815 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4835 if test -n "$ac_ct_GNATBIND"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4837 $as_echo "$ac_ct_GNATBIND" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4843 if test "x$ac_ct_GNATBIND" = x; then
4844 GNATBIND="no"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned=yes ;;
4851 esac
4852 GNATBIND=$ac_ct_GNATBIND
4854 else
4855 GNATBIND="$ac_cv_prog_GNATBIND"
4858 if test -n "$ac_tool_prefix"; then
4859 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4860 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$GNATMAKE"; then
4867 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 GNATMAKE=$ac_cv_prog_GNATMAKE
4887 if test -n "$GNATMAKE"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4889 $as_echo "$GNATMAKE" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4897 if test -z "$ac_cv_prog_GNATMAKE"; then
4898 ac_ct_GNATMAKE=$GNATMAKE
4899 # Extract the first word of "gnatmake", so it can be a program name with args.
4900 set dummy gnatmake; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$ac_ct_GNATMAKE"; then
4907 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4927 if test -n "$ac_ct_GNATMAKE"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4929 $as_echo "$ac_ct_GNATMAKE" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4935 if test "x$ac_ct_GNATMAKE" = x; then
4936 GNATMAKE="no"
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 GNATMAKE=$ac_ct_GNATMAKE
4946 else
4947 GNATMAKE="$ac_cv_prog_GNATMAKE"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4951 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4952 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat >conftest.adb <<EOF
4956 procedure conftest is begin null; end conftest;
4958 acx_cv_cc_gcc_supports_ada=no
4959 # There is a bug in old released versions of GCC which causes the
4960 # driver to exit successfully when the appropriate language module
4961 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4962 # Therefore we must check for the error message as well as an
4963 # unsuccessful exit.
4964 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4965 # given a .adb file, but produce no object file. So we must check
4966 # if an object file was really produced to guard against this.
4967 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4968 if test x"$errors" = x && test -f conftest.$ac_objext; then
4969 acx_cv_cc_gcc_supports_ada=yes
4971 rm -f conftest.*
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4974 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4976 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4977 have_gnat=yes
4978 else
4979 have_gnat=no
4983 # Do configure tests with the C++ compiler, since that's what we build with.
4984 ac_ext=cpp
4985 ac_cpp='$CXXCPP $CPPFLAGS'
4986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4992 # optimizations to be activated explicitly by the toplevel.
4993 case "$CC" in
4994 */prev-gcc/xgcc*) ;;
4995 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4996 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4997 esac
5001 # Determine PICFLAG for target gnatlib.
5006 case "${target}" in
5007 # PIC is the default on some targets or must not be used.
5008 *-*-darwin*)
5009 # For darwin, common symbols are not allowed in MH_DYLIB files
5010 case "${CFLAGS}" in
5011 # If we are using a compiler supporting mdynamic-no-pic
5012 # and the option has been tested as safe to add, then cancel
5013 # it here, since the code generated is incompatible with shared
5014 # libs.
5015 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5016 *) PICFLAG_FOR_TARGET=-fno-common ;;
5017 esac
5019 alpha*-dec-osf5*)
5020 # PIC is the default.
5022 hppa*64*-*-hpux*)
5023 # PIC is the default for 64-bit PA HP-UX.
5025 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5027 i[34567]86-*-mingw* | x86_64-*-mingw*)
5029 i[34567]86-*-interix[3-9]*)
5030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5031 # Instead, we relocate shared libraries at runtime.
5033 i[34567]86-*-nto-qnx*)
5034 # QNX uses GNU C++, but need to define -shared option too, otherwise
5035 # it will coredump.
5036 PICFLAG_FOR_TARGET='-fPIC -shared'
5038 i[34567]86-pc-msdosdjgpp*)
5039 # DJGPP does not support shared libraries at all.
5041 ia64*-*-hpux*)
5042 # On IA64 HP-UX, PIC is the default but the pic flag
5043 # sets the default TLS model and affects inlining.
5044 PICFLAG_FOR_TARGET=-fPIC
5046 mips-sgi-irix6*)
5047 # PIC is the default.
5049 rs6000-ibm-aix* | powerpc-ibm-aix*)
5050 # All AIX code is PIC.
5053 # Some targets support both -fPIC and -fpic, but prefer the latter.
5054 # FIXME: Why?
5055 i[34567]86-*-* | x86_64-*-*)
5056 PICFLAG_FOR_TARGET=-fpic
5058 # FIXME: Override -fPIC default in libgcc only?
5059 sh-*-linux* | sh[2346lbe]*-*-linux*)
5060 PICFLAG_FOR_TARGET=-fpic
5062 # FIXME: Simplify to sh*-*-netbsd*?
5063 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5064 sh64-*-netbsd* | sh64l*-*-netbsd*)
5065 PICFLAG_FOR_TARGET=-fpic
5067 # Default to -fPIC unless specified otherwise.
5069 PICFLAG_FOR_TARGET=-fPIC
5071 esac
5073 # If the user explicitly uses -fpic/-fPIC, keep that.
5074 case "${CFLAGS_FOR_TARGET}" in
5075 *-fpic*)
5076 PICFLAG_FOR_TARGET=-fpic
5078 *-fPIC*)
5079 PICFLAG_FOR_TARGET=-fPIC
5081 esac
5085 # -------------------------
5086 # Check C compiler features
5087 # -------------------------
5090 ac_ext=cpp
5091 ac_cpp='$CXXCPP $CPPFLAGS'
5092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5096 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5097 if test -z "$CXXCPP"; then
5098 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 # Double quotes because CXXCPP needs to be expanded
5102 for CXXCPP in "$CXX -E" "/lib/cpp"
5104 ac_preproc_ok=false
5105 for ac_cxx_preproc_warn_flag in '' yes
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if ac_fn_cxx_try_cpp "$LINENO"; then :
5124 else
5125 # Broken: fails on valid input.
5126 continue
5128 rm -f conftest.err conftest.$ac_ext
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if ac_fn_cxx_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5144 rm -f conftest.err conftest.$ac_ext
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then :
5150 break
5153 done
5154 ac_cv_prog_CXXCPP=$CXXCPP
5157 CXXCPP=$ac_cv_prog_CXXCPP
5158 else
5159 ac_cv_prog_CXXCPP=$CXXCPP
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5162 $as_echo "$CXXCPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_cxx_preproc_warn_flag in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179 Syntax error
5180 _ACEOF
5181 if ac_fn_cxx_try_cpp "$LINENO"; then :
5183 else
5184 # Broken: fails on valid input.
5185 continue
5187 rm -f conftest.err conftest.$ac_ext
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if ac_fn_cxx_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5203 rm -f conftest.err conftest.$ac_ext
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then :
5210 else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5214 See \`config.log' for more details." "$LINENO" 5; }
5217 ac_ext=cpp
5218 ac_cpp='$CXXCPP $CPPFLAGS'
5219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5226 if test "${ac_cv_path_GREP+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -z "$GREP"; then
5230 ac_path_GREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in grep ggrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5241 # Check for GNU ac_path_GREP and select it if it is found.
5242 # Check for GNU $ac_path_GREP
5243 case `"$ac_path_GREP" --version 2>&1` in
5244 *GNU*)
5245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5247 ac_count=0
5248 $as_echo_n 0123456789 >"conftest.in"
5249 while :
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'GREP' >> "conftest.nl"
5255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_GREP="$ac_path_GREP"
5261 ac_path_GREP_max=$ac_count
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5269 $ac_path_GREP_found && break 3
5270 done
5271 done
5272 done
5273 IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_GREP"; then
5275 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5277 else
5278 ac_cv_path_GREP=$GREP
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5283 $as_echo "$ac_cv_path_GREP" >&6; }
5284 GREP="$ac_cv_path_GREP"
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5288 $as_echo_n "checking for egrep... " >&6; }
5289 if test "${ac_cv_path_EGREP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5293 then ac_cv_path_EGREP="$GREP -E"
5294 else
5295 if test -z "$EGREP"; then
5296 ac_path_EGREP_found=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_prog in egrep; do
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5307 # Check for GNU ac_path_EGREP and select it if it is found.
5308 # Check for GNU $ac_path_EGREP
5309 case `"$ac_path_EGREP" --version 2>&1` in
5310 *GNU*)
5311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5313 ac_count=0
5314 $as_echo_n 0123456789 >"conftest.in"
5315 while :
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'EGREP' >> "conftest.nl"
5321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5323 as_fn_arith $ac_count + 1 && ac_count=$as_val
5324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_EGREP="$ac_path_EGREP"
5327 ac_path_EGREP_max=$ac_count
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5331 done
5332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333 esac
5335 $ac_path_EGREP_found && break 3
5336 done
5337 done
5338 done
5339 IFS=$as_save_IFS
5340 if test -z "$ac_cv_path_EGREP"; then
5341 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5343 else
5344 ac_cv_path_EGREP=$EGREP
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5350 $as_echo "$ac_cv_path_EGREP" >&6; }
5351 EGREP="$ac_cv_path_EGREP"
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5355 $as_echo_n "checking for ANSI C header files... " >&6; }
5356 if test "${ac_cv_header_stdc+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <stdlib.h>
5362 #include <stdarg.h>
5363 #include <string.h>
5364 #include <float.h>
5367 main ()
5371 return 0;
5373 _ACEOF
5374 if ac_fn_cxx_try_compile "$LINENO"; then :
5375 ac_cv_header_stdc=yes
5376 else
5377 ac_cv_header_stdc=no
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 if test $ac_cv_header_stdc = yes; then
5382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <string.h>
5387 _ACEOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "memchr" >/dev/null 2>&1; then :
5391 else
5392 ac_cv_header_stdc=no
5394 rm -f conftest*
5398 if test $ac_cv_header_stdc = yes; then
5399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <stdlib.h>
5404 _ACEOF
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "free" >/dev/null 2>&1; then :
5408 else
5409 ac_cv_header_stdc=no
5411 rm -f conftest*
5415 if test $ac_cv_header_stdc = yes; then
5416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5417 if test "$cross_compiling" = yes; then :
5419 else
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ctype.h>
5423 #include <stdlib.h>
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 #else
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5433 #endif
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5437 main ()
5439 int i;
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5443 return 2;
5444 return 0;
5446 _ACEOF
5447 if ac_fn_cxx_try_run "$LINENO"; then :
5449 else
5450 ac_cv_header_stdc=no
5452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5453 conftest.$ac_objext conftest.beam conftest.$ac_ext
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5459 $as_echo "$ac_cv_header_stdc" >&6; }
5460 if test $ac_cv_header_stdc = yes; then
5462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468 inttypes.h stdint.h unistd.h
5469 do :
5470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5473 eval as_val=\$$as_ac_Header
5474 if test "x$as_val" = x""yes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5481 done
5485 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5486 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5487 MINIX=yes
5488 else
5489 MINIX=
5493 if test "$MINIX" = yes; then
5495 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5498 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5501 $as_echo "#define _MINIX 1" >>confdefs.h
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5507 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5508 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5514 # define __EXTENSIONS__ 1
5515 $ac_includes_default
5517 main ()
5521 return 0;
5523 _ACEOF
5524 if ac_fn_cxx_try_compile "$LINENO"; then :
5525 ac_cv_safe_to_define___extensions__=yes
5526 else
5527 ac_cv_safe_to_define___extensions__=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5532 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5533 test $ac_cv_safe_to_define___extensions__ = yes &&
5534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5554 CPP=
5556 if test -z "$CPP"; then
5557 if test "${ac_cv_prog_CPP+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 # Double quotes because CPP needs to be expanded
5561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5563 ac_preproc_ok=false
5564 for ac_c_preproc_warn_flag in '' yes
5566 # Use a header file that comes with gcc, so configuring glibc
5567 # with a fresh cross-compiler works.
5568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 # <limits.h> exists even on freestanding compilers.
5570 # On the NeXT, cc -E runs the code through the compiler's parser,
5571 # not just through cpp. "Syntax error" is here to catch this case.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifdef __STDC__
5575 # include <limits.h>
5576 #else
5577 # include <assert.h>
5578 #endif
5579 Syntax error
5580 _ACEOF
5581 if ac_fn_c_try_cpp "$LINENO"; then :
5583 else
5584 # Broken: fails on valid input.
5585 continue
5587 rm -f conftest.err conftest.$ac_ext
5589 # OK, works on sane cases. Now check whether nonexistent headers
5590 # can be detected and how.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if ac_fn_c_try_cpp "$LINENO"; then :
5596 # Broken: success on invalid input.
5597 continue
5598 else
5599 # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5603 rm -f conftest.err conftest.$ac_ext
5605 done
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then :
5609 break
5612 done
5613 ac_cv_prog_CPP=$CPP
5616 CPP=$ac_cv_prog_CPP
5617 else
5618 ac_cv_prog_CPP=$CPP
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5621 $as_echo "$CPP" >&6; }
5622 ac_preproc_ok=false
5623 for ac_c_preproc_warn_flag in '' yes
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638 Syntax error
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5642 else
5643 # Broken: fails on valid input.
5644 continue
5646 rm -f conftest.err conftest.$ac_ext
5648 # OK, works on sane cases. Now check whether nonexistent headers
5649 # can be detected and how.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <ac_nonexistent.h>
5653 _ACEOF
5654 if ac_fn_c_try_cpp "$LINENO"; then :
5655 # Broken: success on invalid input.
5656 continue
5657 else
5658 # Passes both tests.
5659 ac_preproc_ok=:
5660 break
5662 rm -f conftest.err conftest.$ac_ext
5664 done
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.err conftest.$ac_ext
5667 if $ac_preproc_ok; then :
5669 else
5670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5673 See \`config.log' for more details." "$LINENO" 5; }
5676 ac_ext=cpp
5677 ac_cpp='$CXXCPP $CPPFLAGS'
5678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5683 $as_echo_n "checking for inline... " >&6; }
5684 if test "${ac_cv_c_inline+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 ac_cv_c_inline=no
5688 for ac_kw in inline __inline__ __inline; do
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #ifndef __cplusplus
5692 typedef int foo_t;
5693 static $ac_kw foo_t static_foo () {return 0; }
5694 $ac_kw foo_t foo () {return 0; }
5695 #endif
5697 _ACEOF
5698 if ac_fn_cxx_try_compile "$LINENO"; then :
5699 ac_cv_c_inline=$ac_kw
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 test "$ac_cv_c_inline" != no && break
5703 done
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5707 $as_echo "$ac_cv_c_inline" >&6; }
5709 case $ac_cv_c_inline in
5710 inline | yes) ;;
5712 case $ac_cv_c_inline in
5713 no) ac_val=;;
5714 *) ac_val=$ac_cv_c_inline;;
5715 esac
5716 cat >>confdefs.h <<_ACEOF
5717 #ifndef __cplusplus
5718 #define inline $ac_val
5719 #endif
5720 _ACEOF
5722 esac
5725 # Check whether --enable-largefile was given.
5726 if test "${enable_largefile+set}" = set; then :
5727 enableval=$enable_largefile;
5730 if test "$enable_largefile" != no; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5734 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 ac_cv_sys_largefile_CC=no
5738 if test "$GCC" != yes; then
5739 ac_save_CC=$CC
5740 while :; do
5741 # IRIX 6.2 and later do not support large files by default,
5742 # so use the C compiler's -n32 option if that helps.
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 /* Check that off_t can represent 2**63 - 1 correctly.
5747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5748 since some C++ compilers masquerading as C compilers
5749 incorrectly reject 9223372036854775807. */
5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5752 && LARGE_OFF_T % 2147483647 == 1)
5753 ? 1 : -1];
5755 main ()
5759 return 0;
5761 _ACEOF
5762 if ac_fn_cxx_try_compile "$LINENO"; then :
5763 break
5765 rm -f core conftest.err conftest.$ac_objext
5766 CC="$CC -n32"
5767 if ac_fn_cxx_try_compile "$LINENO"; then :
5768 ac_cv_sys_largefile_CC=' -n32'; break
5770 rm -f core conftest.err conftest.$ac_objext
5771 break
5772 done
5773 CC=$ac_save_CC
5774 rm -f conftest.$ac_ext
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5779 if test "$ac_cv_sys_largefile_CC" != no; then
5780 CC=$CC$ac_cv_sys_largefile_CC
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 while :; do
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <sys/types.h>
5792 /* Check that off_t can represent 2**63 - 1 correctly.
5793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5794 since some C++ compilers masquerading as C compilers
5795 incorrectly reject 9223372036854775807. */
5796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5798 && LARGE_OFF_T % 2147483647 == 1)
5799 ? 1 : -1];
5801 main ()
5805 return 0;
5807 _ACEOF
5808 if ac_fn_cxx_try_compile "$LINENO"; then :
5809 ac_cv_sys_file_offset_bits=no; break
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #define _FILE_OFFSET_BITS 64
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5823 ? 1 : -1];
5825 main ()
5829 return 0;
5831 _ACEOF
5832 if ac_fn_cxx_try_compile "$LINENO"; then :
5833 ac_cv_sys_file_offset_bits=64; break
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 ac_cv_sys_file_offset_bits=unknown
5837 break
5838 done
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5842 case $ac_cv_sys_file_offset_bits in #(
5843 no | unknown) ;;
5845 cat >>confdefs.h <<_ACEOF
5846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5847 _ACEOF
5849 esac
5850 rm -rf conftest*
5851 if test $ac_cv_sys_file_offset_bits = unknown; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5854 if test "${ac_cv_sys_large_files+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 while :; do
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5868 ? 1 : -1];
5870 main ()
5874 return 0;
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"; then :
5878 ac_cv_sys_large_files=no; break
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #define _LARGE_FILES 1
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5894 main ()
5898 return 0;
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 ac_cv_sys_large_files=1; break
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_cv_sys_large_files=unknown
5906 break
5907 done
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5910 $as_echo "$ac_cv_sys_large_files" >&6; }
5911 case $ac_cv_sys_large_files in #(
5912 no | unknown) ;;
5914 cat >>confdefs.h <<_ACEOF
5915 #define _LARGE_FILES $ac_cv_sys_large_files
5916 _ACEOF
5918 esac
5919 rm -rf conftest*
5924 # sizeof(char) is 1 by definition.
5925 # The cast to long int works around a bug in the HP C Compiler
5926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5928 # This bug is HP SR number 8606223364.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5930 $as_echo_n "checking size of void *... " >&6; }
5931 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5936 else
5937 if test "$ac_cv_type_void_p" = yes; then
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { as_fn_set_status 77
5941 as_fn_error "cannot compute sizeof (void *)
5942 See \`config.log' for more details." "$LINENO" 5; }; }
5943 else
5944 ac_cv_sizeof_void_p=0
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5950 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5954 cat >>confdefs.h <<_ACEOF
5955 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5956 _ACEOF
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5964 $as_echo_n "checking size of short... " >&6; }
5965 if test "${ac_cv_sizeof_short+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5970 else
5971 if test "$ac_cv_type_short" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status 77
5975 as_fn_error "cannot compute sizeof (short)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5977 else
5978 ac_cv_sizeof_short=0
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5984 $as_echo "$ac_cv_sizeof_short" >&6; }
5988 cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_SHORT $ac_cv_sizeof_short
5990 _ACEOF
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5998 $as_echo_n "checking size of int... " >&6; }
5999 if test "${ac_cv_sizeof_int+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6004 else
6005 if test "$ac_cv_type_int" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (int)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof_int=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6018 $as_echo "$ac_cv_sizeof_int" >&6; }
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF_INT $ac_cv_sizeof_int
6024 _ACEOF
6027 # The cast to long int works around a bug in the HP C Compiler
6028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6030 # This bug is HP SR number 8606223364.
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6032 $as_echo_n "checking size of long... " >&6; }
6033 if test "${ac_cv_sizeof_long+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6038 else
6039 if test "$ac_cv_type_long" = yes; then
6040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042 { as_fn_set_status 77
6043 as_fn_error "cannot compute sizeof (long)
6044 See \`config.log' for more details." "$LINENO" 5; }; }
6045 else
6046 ac_cv_sizeof_long=0
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6052 $as_echo "$ac_cv_sizeof_long" >&6; }
6056 cat >>confdefs.h <<_ACEOF
6057 #define SIZEOF_LONG $ac_cv_sizeof_long
6058 _ACEOF
6061 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6062 if test "x$ac_cv_type_long_long" = x""yes; then :
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_LONG_LONG 1
6066 _ACEOF
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6073 $as_echo_n "checking size of long long... " >&6; }
6074 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6079 else
6080 if test "$ac_cv_type_long_long" = yes; then
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 { as_fn_set_status 77
6084 as_fn_error "cannot compute sizeof (long long)
6085 See \`config.log' for more details." "$LINENO" 5; }; }
6086 else
6087 ac_cv_sizeof_long_long=0
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6093 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6099 _ACEOF
6104 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6105 case $ac_cv_c_int8_t in #(
6106 no|yes) ;; #(
6109 cat >>confdefs.h <<_ACEOF
6110 #define int8_t $ac_cv_c_int8_t
6111 _ACEOF
6113 esac
6115 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6116 case $ac_cv_c_int16_t in #(
6117 no|yes) ;; #(
6120 cat >>confdefs.h <<_ACEOF
6121 #define int16_t $ac_cv_c_int16_t
6122 _ACEOF
6124 esac
6126 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6127 case $ac_cv_c_int32_t in #(
6128 no|yes) ;; #(
6131 cat >>confdefs.h <<_ACEOF
6132 #define int32_t $ac_cv_c_int32_t
6133 _ACEOF
6135 esac
6137 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6138 case $ac_cv_c_int64_t in #(
6139 no|yes) ;; #(
6142 cat >>confdefs.h <<_ACEOF
6143 #define int64_t $ac_cv_c_int64_t
6144 _ACEOF
6146 esac
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6150 $as_echo_n "checking for long long int... " >&6; }
6151 if test "${ac_cv_type_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6167 ? 1 : -1)];
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6169 ? 1 : -1)];
6170 int i = 63;
6172 main ()
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6182 return 0;
6185 _ACEOF
6186 if ac_fn_cxx_try_link "$LINENO"; then :
6187 if test "$cross_compiling" = yes; then :
6188 ac_cv_type_long_long_int=yes
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <limits.h>
6193 #ifndef LLONG_MAX
6194 # define HALF \
6195 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6196 # define LLONG_MAX (HALF - 1 + HALF)
6197 #endif
6199 main ()
6201 long long int n = 1;
6202 int i;
6203 for (i = 0; ; i++)
6205 long long int m = n << i;
6206 if (m >> i != n)
6207 return 1;
6208 if (LLONG_MAX / 2 < m)
6209 break;
6211 return 0;
6213 return 0;
6215 _ACEOF
6216 if ac_fn_cxx_try_run "$LINENO"; then :
6217 ac_cv_type_long_long_int=yes
6218 else
6219 ac_cv_type_long_long_int=no
6221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6222 conftest.$ac_objext conftest.beam conftest.$ac_ext
6225 else
6226 ac_cv_type_long_long_int=no
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6232 $as_echo "$ac_cv_type_long_long_int" >&6; }
6233 if test $ac_cv_type_long_long_int = yes; then
6235 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6241 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6244 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6246 else
6247 test $ac_cv_type_long_long_int = yes \
6248 && ac_type='long long int' \
6249 || ac_type='long int'
6251 cat >>confdefs.h <<_ACEOF
6252 #define intmax_t $ac_type
6253 _ACEOF
6259 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6262 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6264 else
6265 for ac_type in 'int' 'long int' 'long long int'; do
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 $ac_includes_default
6270 main ()
6272 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6273 test_array [0] = 0
6276 return 0;
6278 _ACEOF
6279 if ac_fn_cxx_try_compile "$LINENO"; then :
6281 cat >>confdefs.h <<_ACEOF
6282 #define intptr_t $ac_type
6283 _ACEOF
6285 ac_type=
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 test -z "$ac_type" && break
6289 done
6293 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6294 case $ac_cv_c_uint8_t in #(
6295 no|yes) ;; #(
6298 $as_echo "#define _UINT8_T 1" >>confdefs.h
6301 cat >>confdefs.h <<_ACEOF
6302 #define uint8_t $ac_cv_c_uint8_t
6303 _ACEOF
6305 esac
6307 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6308 case $ac_cv_c_uint16_t in #(
6309 no|yes) ;; #(
6313 cat >>confdefs.h <<_ACEOF
6314 #define uint16_t $ac_cv_c_uint16_t
6315 _ACEOF
6317 esac
6319 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6320 case $ac_cv_c_uint32_t in #(
6321 no|yes) ;; #(
6324 $as_echo "#define _UINT32_T 1" >>confdefs.h
6327 cat >>confdefs.h <<_ACEOF
6328 #define uint32_t $ac_cv_c_uint32_t
6329 _ACEOF
6331 esac
6333 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6334 case $ac_cv_c_uint64_t in #(
6335 no|yes) ;; #(
6338 $as_echo "#define _UINT64_T 1" >>confdefs.h
6341 cat >>confdefs.h <<_ACEOF
6342 #define uint64_t $ac_cv_c_uint64_t
6343 _ACEOF
6345 esac
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6349 $as_echo_n "checking for unsigned long long int... " >&6; }
6350 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 /* For now, do not test the preprocessor; as of 2007 there are too many
6357 implementations with broken preprocessors. Perhaps this can
6358 be revisited in 2012. In the meantime, code should not expect
6359 #if to work with literals wider than 32 bits. */
6360 /* Test literals. */
6361 long long int ll = 9223372036854775807ll;
6362 long long int nll = -9223372036854775807LL;
6363 unsigned long long int ull = 18446744073709551615ULL;
6364 /* Test constant expressions. */
6365 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6366 ? 1 : -1)];
6367 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6368 ? 1 : -1)];
6369 int i = 63;
6371 main ()
6373 /* Test availability of runtime routines for shift and division. */
6374 long long int llmax = 9223372036854775807ll;
6375 unsigned long long int ullmax = 18446744073709551615ull;
6376 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6377 | (llmax / ll) | (llmax % ll)
6378 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6379 | (ullmax / ull) | (ullmax % ull));
6381 return 0;
6384 _ACEOF
6385 if ac_fn_cxx_try_link "$LINENO"; then :
6386 ac_cv_type_unsigned_long_long_int=yes
6387 else
6388 ac_cv_type_unsigned_long_long_int=no
6390 rm -f core conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6394 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6395 if test $ac_cv_type_unsigned_long_long_int = yes; then
6397 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6403 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6404 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6406 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6408 else
6409 test $ac_cv_type_unsigned_long_long_int = yes \
6410 && ac_type='unsigned long long int' \
6411 || ac_type='unsigned long int'
6413 cat >>confdefs.h <<_ACEOF
6414 #define uintmax_t $ac_type
6415 _ACEOF
6421 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6424 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6426 else
6427 for ac_type in 'unsigned int' 'unsigned long int' \
6428 'unsigned long long int'; do
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 $ac_includes_default
6433 main ()
6435 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6436 test_array [0] = 0
6439 return 0;
6441 _ACEOF
6442 if ac_fn_cxx_try_compile "$LINENO"; then :
6444 cat >>confdefs.h <<_ACEOF
6445 #define uintptr_t $ac_type
6446 _ACEOF
6448 ac_type=
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 test -z "$ac_type" && break
6452 done
6468 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6469 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6472 # check what underlying integer type int64_t uses
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6474 $as_echo_n "checking for int64_t underlying type... " >&6; }
6475 if test "${ac_cv_int64_t_type+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6482 #ifdef HAVE_STDINT_H
6483 #include <stdint.h>
6484 #endif
6485 template <typename T> struct X { };
6486 template <>
6487 struct X<long> { typedef long t; };
6490 main ()
6492 X<int64_t>::t x;
6494 return 0;
6496 _ACEOF
6497 if ac_fn_cxx_try_compile "$LINENO"; then :
6498 ac_cv_int64_t_type=long
6499 else
6500 ac_cv_int64_t_type="long long"
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6505 $as_echo "$ac_cv_int64_t_type" >&6; }
6506 if test "$ac_cv_int64_t_type" = "long"; then
6508 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6514 #ifdef HAVE_STDINT_H
6515 #include <stdint.h>
6516 #endif
6517 template <typename T> struct X { };
6518 template <>
6519 struct X<long long> { typedef long long t; };
6522 main ()
6524 X<int64_t>::t x;
6526 return 0;
6528 _ACEOF
6529 if ac_fn_cxx_try_compile "$LINENO"; then :
6531 else
6532 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6538 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6539 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6546 #include <utility>
6549 main ()
6551 int a, b; std::swap(a,b);
6553 return 0;
6555 _ACEOF
6556 if ac_fn_cxx_try_compile "$LINENO"; then :
6557 ac_cv_std_swap_in_utility=yes
6558 else
6559 ac_cv_std_swap_in_utility=no
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6564 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6565 if test $ac_cv_std_swap_in_utility = yes; then
6567 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6571 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6572 # If the host compiler is affected by the bug, and we build with optimization
6573 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6574 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6575 # Since there is no reliable feature check for the presence of this bug,
6576 # we simply use a GCC version number check. (This should never trigger for
6577 # stages 2 or 3 of a native bootstrap.)
6578 aliasing_flags=
6579 if test "$GCC" = yes; then
6580 saved_CXXFLAGS="$CXXFLAGS"
6582 # The following test compilation will succeed if and only if $CXX accepts
6583 # -fno-strict-aliasing *and* is older than GCC 4.3.
6584 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6586 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6590 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6591 #error compiler not affected by placement new aliasing bug
6592 #endif
6594 _ACEOF
6595 if ac_fn_cxx_try_compile "$LINENO"; then :
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6597 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 CXXFLAGS="$saved_CXXFLAGS"
6610 # ---------------------
6611 # Warnings and checking
6612 # ---------------------
6614 # Check $CC warning features (if it's GCC).
6615 # We want to use -pedantic, but we don't want warnings about
6616 # * 'long long'
6617 # * variadic macros
6618 # * overlong strings
6619 # * C++11 narrowing conversions in { }
6620 # So, we only use -pedantic if we can disable those warnings.
6622 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6623 # Check whether --enable-build-format-warnings was given.
6624 if test "${enable_build_format_warnings+set}" = set; then :
6625 enableval=$enable_build_format_warnings;
6626 else
6627 enable_build_format_warnings=yes
6630 if test $enable_build_format_warnings = no; then :
6631 wf_opt=-Wno-format
6632 else
6633 wf_opt=
6635 ac_ext=cpp
6636 ac_cpp='$CXXCPP $CPPFLAGS'
6637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6641 loose_warn=
6642 save_CXXFLAGS="$CXXFLAGS"
6643 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6644 # Do the check with the no- prefix removed since gcc silently
6645 # accepts any -Wno-* option on purpose
6646 case $real_option in
6647 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6648 *) option=$real_option ;;
6649 esac
6650 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6653 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6654 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 CXXFLAGS="$option"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6662 main ()
6666 return 0;
6668 _ACEOF
6669 if ac_fn_cxx_try_compile "$LINENO"; then :
6670 eval "$as_acx_Woption=yes"
6671 else
6672 eval "$as_acx_Woption=no"
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 eval ac_res=\$$as_acx_Woption
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6681 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6683 done
6684 CXXFLAGS="$save_CXXFLAGS"
6685 ac_ext=cpp
6686 ac_cpp='$CXXCPP $CPPFLAGS'
6687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6693 ac_ext=c
6694 ac_cpp='$CPP $CPPFLAGS'
6695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6699 c_loose_warn=
6700 save_CFLAGS="$CFLAGS"
6701 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6702 # Do the check with the no- prefix removed since gcc silently
6703 # accepts any -Wno-* option on purpose
6704 case $real_option in
6705 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6706 *) option=$real_option ;;
6707 esac
6708 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6711 $as_echo_n "checking whether $CC supports $option... " >&6; }
6712 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 CFLAGS="$option"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6720 main ()
6724 return 0;
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 eval "$as_acx_Woption=yes"
6729 else
6730 eval "$as_acx_Woption=no"
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 eval ac_res=\$$as_acx_Woption
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6737 $as_echo "$ac_res" >&6; }
6738 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6739 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6741 done
6742 CFLAGS="$save_CFLAGS"
6743 ac_ext=cpp
6744 ac_cpp='$CXXCPP $CPPFLAGS'
6745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6750 ac_ext=cpp
6751 ac_cpp='$CXXCPP $CPPFLAGS'
6752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6756 strict_warn=
6757 save_CXXFLAGS="$CXXFLAGS"
6758 for real_option in -Wmissing-format-attribute; do
6759 # Do the check with the no- prefix removed since gcc silently
6760 # accepts any -Wno-* option on purpose
6761 case $real_option in
6762 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6763 *) option=$real_option ;;
6764 esac
6765 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6768 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6769 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 CXXFLAGS="$option"
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6777 main ()
6781 return 0;
6783 _ACEOF
6784 if ac_fn_cxx_try_compile "$LINENO"; then :
6785 eval "$as_acx_Woption=yes"
6786 else
6787 eval "$as_acx_Woption=no"
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 eval ac_res=\$$as_acx_Woption
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6794 $as_echo "$ac_res" >&6; }
6795 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6796 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6798 done
6799 CXXFLAGS="$save_CXXFLAGS"
6800 ac_ext=cpp
6801 ac_cpp='$CXXCPP $CPPFLAGS'
6802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6807 ac_ext=cpp
6808 ac_cpp='$CXXCPP $CPPFLAGS'
6809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6813 save_CXXFLAGS="$CXXFLAGS"
6814 for real_option in -Woverloaded-virtual; do
6815 # Do the check with the no- prefix removed since gcc silently
6816 # accepts any -Wno-* option on purpose
6817 case $real_option in
6818 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6819 *) option=$real_option ;;
6820 esac
6821 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6824 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6825 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 CXXFLAGS="$option"
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6833 main ()
6837 return 0;
6839 _ACEOF
6840 if ac_fn_cxx_try_compile "$LINENO"; then :
6841 eval "$as_acx_Woption=yes"
6842 else
6843 eval "$as_acx_Woption=no"
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 eval ac_res=\$$as_acx_Woption
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6850 $as_echo "$ac_res" >&6; }
6851 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6852 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6854 done
6855 CXXFLAGS="$save_CXXFLAGS"
6856 ac_ext=cpp
6857 ac_cpp='$CXXCPP $CPPFLAGS'
6858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6863 ac_ext=c
6864 ac_cpp='$CPP $CPPFLAGS'
6865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869 c_strict_warn=
6870 save_CFLAGS="$CFLAGS"
6871 for real_option in -Wold-style-definition -Wc++-compat; do
6872 # Do the check with the no- prefix removed since gcc silently
6873 # accepts any -Wno-* option on purpose
6874 case $real_option in
6875 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6876 *) option=$real_option ;;
6877 esac
6878 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6881 $as_echo_n "checking whether $CC supports $option... " >&6; }
6882 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 CFLAGS="$option"
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6890 main ()
6894 return 0;
6896 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"; then :
6898 eval "$as_acx_Woption=yes"
6899 else
6900 eval "$as_acx_Woption=no"
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 eval ac_res=\$$as_acx_Woption
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6907 $as_echo "$ac_res" >&6; }
6908 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6909 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6911 done
6912 CFLAGS="$save_CFLAGS"
6913 ac_ext=cpp
6914 ac_cpp='$CXXCPP $CPPFLAGS'
6915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6920 ac_ext=cpp
6921 ac_cpp='$CXXCPP $CPPFLAGS'
6922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6926 # Do the check with the no- prefix removed from the warning options
6927 # since gcc silently accepts any -Wno-* option on purpose
6928 if test "$GXX" = yes; then :
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6930 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6931 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 save_CXXFLAGS="$CXXFLAGS"
6935 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6940 main ()
6944 return 0;
6946 _ACEOF
6947 if ac_fn_cxx_try_compile "$LINENO"; then :
6948 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6949 else
6950 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 CXXFLAGS="$save_CXXFLAGS"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6956 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6957 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6958 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6962 ac_ext=cpp
6963 ac_cpp='$CXXCPP $CPPFLAGS'
6964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6969 ac_ext=cpp
6970 ac_cpp='$CXXCPP $CPPFLAGS'
6971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6975 # Check whether --enable-werror-always was given.
6976 if test "${enable_werror_always+set}" = set; then :
6977 enableval=$enable_werror_always;
6978 else
6979 enable_werror_always=no
6982 if test $enable_werror_always = yes; then :
6983 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6986 ac_ext=cpp
6987 ac_cpp='$CXXCPP $CPPFLAGS'
6988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6994 # The above macros do nothing if the compiler is not GCC. However, the
6995 # Makefile has more goo to add other flags, so these variables are used
6996 # to enable warnings only for GCC.
6997 warn_cflags=
6998 warn_cxxflags=
6999 if test "x$GCC" = "xyes"; then
7000 warn_cflags='$(GCC_WARN_CFLAGS)'
7001 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7006 # Disable exceptions and RTTI if building with g++
7007 ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013 noexception_flags=
7014 save_CFLAGS="$CFLAGS"
7015 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7016 # Do the check with the no- prefix removed since gcc silently
7017 # accepts any -Wno-* option on purpose
7018 case $real_option in
7019 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7020 *) option=$real_option ;;
7021 esac
7022 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7025 $as_echo_n "checking whether $CC supports $option... " >&6; }
7026 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 CFLAGS="$option"
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7034 main ()
7038 return 0;
7040 _ACEOF
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 eval "$as_acx_Woption=yes"
7043 else
7044 eval "$as_acx_Woption=no"
7046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 eval ac_res=\$$as_acx_Woption
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7051 $as_echo "$ac_res" >&6; }
7052 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7053 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7055 done
7056 CFLAGS="$save_CFLAGS"
7057 ac_ext=cpp
7058 ac_cpp='$CXXCPP $CPPFLAGS'
7059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7065 # Enable expensive internal checks
7066 is_release=
7067 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7068 is_release=yes
7071 # Check whether --enable-checking was given.
7072 if test "${enable_checking+set}" = set; then :
7073 enableval=$enable_checking; ac_checking_flags="${enableval}"
7074 else
7076 # Determine the default checks.
7077 if test x$is_release = x ; then
7078 ac_checking_flags=yes
7079 else
7080 ac_checking_flags=release
7084 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7085 for check in release $ac_checking_flags
7087 case $check in
7088 # these set all the flags to specific states
7089 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7090 ac_fold_checking= ; ac_gc_checking=1 ;
7091 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7092 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7093 ac_tree_checking=1 ; ac_valgrind_checking= ;
7094 ac_types_checking=1 ;;
7095 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7096 ac_fold_checking= ; ac_gc_checking= ;
7097 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7098 ac_rtlflag_checking= ; ac_runtime_checking= ;
7099 ac_tree_checking= ; ac_valgrind_checking= ;
7100 ac_types_checking= ;;
7101 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7102 ac_fold_checking=1 ; ac_gc_checking=1 ;
7103 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7104 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7105 ac_tree_checking=1 ; ac_valgrind_checking= ;
7106 ac_types_checking=1 ;;
7107 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7108 ac_fold_checking= ; ac_gc_checking= ;
7109 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7110 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7111 ac_tree_checking= ; ac_valgrind_checking= ;
7112 ac_types_checking= ;;
7113 # these enable particular checks
7114 assert) ac_assert_checking=1 ;;
7115 df) ac_df_checking=1 ;;
7116 fold) ac_fold_checking=1 ;;
7117 gc) ac_gc_checking=1 ;;
7118 gcac) ac_gc_always_collect=1 ;;
7119 gimple) ac_gimple_checking=1 ;;
7120 misc) ac_checking=1 ;;
7121 rtl) ac_rtl_checking=1 ;;
7122 rtlflag) ac_rtlflag_checking=1 ;;
7123 runtime) ac_runtime_checking=1 ;;
7124 tree) ac_tree_checking=1 ;;
7125 types) ac_types_checking=1 ;;
7126 valgrind) ac_valgrind_checking=1 ;;
7127 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7128 esac
7129 done
7130 IFS="$ac_save_IFS"
7132 nocommon_flag=""
7133 if test x$ac_checking != x ; then
7135 $as_echo "#define CHECKING_P 1" >>confdefs.h
7137 nocommon_flag=-fno-common
7138 else
7139 $as_echo "#define CHECKING_P 0" >>confdefs.h
7143 if test x$ac_df_checking != x ; then
7145 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7148 if test x$ac_assert_checking != x ; then
7150 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7153 if test x$ac_gimple_checking != x ; then
7155 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7159 if test x$ac_runtime_checking != x ; then
7161 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7164 if test x$ac_tree_checking != x ; then
7166 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7168 TREECHECKING=yes
7170 if test x$ac_types_checking != x ; then
7172 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7176 if test x$ac_rtl_checking != x ; then
7178 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7181 if test x$ac_rtlflag_checking != x ; then
7183 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7186 if test x$ac_gc_checking != x ; then
7188 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7191 if test x$ac_gc_always_collect != x ; then
7193 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7196 if test x$ac_fold_checking != x ; then
7198 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7201 valgrind_path_defines=
7202 valgrind_command=
7204 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7205 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7206 have_valgrind_h=yes
7207 else
7208 have_valgrind_h=no
7213 # It is certainly possible that there's valgrind but no valgrind.h.
7214 # GCC relies on making annotations so we must have both.
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7216 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 #include <valgrind/memcheck.h>
7220 #ifndef VALGRIND_DISCARD
7221 #error VALGRIND_DISCARD not defined
7222 #endif
7223 _ACEOF
7224 if ac_fn_cxx_try_cpp "$LINENO"; then :
7225 gcc_cv_header_valgrind_memcheck_h=yes
7226 else
7227 gcc_cv_header_valgrind_memcheck_h=no
7229 rm -f conftest.err conftest.$ac_ext
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7231 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7233 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7236 #include <memcheck.h>
7237 #ifndef VALGRIND_DISCARD
7238 #error VALGRIND_DISCARD not defined
7239 #endif
7240 _ACEOF
7241 if ac_fn_cxx_try_cpp "$LINENO"; then :
7242 gcc_cv_header_memcheck_h=yes
7243 else
7244 gcc_cv_header_memcheck_h=no
7246 rm -f conftest.err conftest.$ac_ext
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7248 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7249 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7251 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7254 if test $gcc_cv_header_memcheck_h = yes; then
7256 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7260 if test x$ac_valgrind_checking != x ; then
7262 # Prepare PATH_SEPARATOR.
7263 # The user is always right.
7264 if test "${PATH_SEPARATOR+set}" != set; then
7265 echo "#! /bin/sh" >conf$$.sh
7266 echo "exit 0" >>conf$$.sh
7267 chmod +x conf$$.sh
7268 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7269 PATH_SEPARATOR=';'
7270 else
7271 PATH_SEPARATOR=:
7273 rm -f conf$$.sh
7276 # Find out how to test for executable files. Don't use a zero-byte file,
7277 # as systems may use methods other than mode bits to determine executability.
7278 cat >conf$$.file <<_ASEOF
7279 #! /bin/sh
7280 exit 0
7281 _ASEOF
7282 chmod +x conf$$.file
7283 if test -x conf$$.file >/dev/null 2>&1; then
7284 ac_executable_p="test -x"
7285 else
7286 ac_executable_p="test -f"
7288 rm -f conf$$.file
7290 # Extract the first word of "valgrind", so it can be a program name with args.
7291 set dummy valgrind; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 case "$valgrind_path" in
7298 [\\/]* | ?:[\\/]*)
7299 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7302 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7303 for ac_dir in $PATH; do
7304 IFS="$ac_save_IFS"
7305 test -z "$ac_dir" && ac_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7308 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7309 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7310 break 2
7313 done
7314 done
7315 IFS="$ac_save_IFS"
7317 esac
7319 valgrind_path="$ac_cv_path_valgrind_path"
7320 if test -n "$valgrind_path"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7322 $as_echo "$valgrind_path" >&6; }
7323 else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7328 if test "x$valgrind_path" = "x" \
7329 || (test $have_valgrind_h = no \
7330 && test $gcc_cv_header_memcheck_h = no \
7331 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7332 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7334 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7335 valgrind_command="$valgrind_path -q"
7337 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7343 # Enable code coverage collection
7344 # Check whether --enable-coverage was given.
7345 if test "${enable_coverage+set}" = set; then :
7346 enableval=$enable_coverage; case "${enableval}" in
7347 yes|noopt)
7348 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7350 opt)
7351 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7354 # a.k.a. --disable-coverage
7355 coverage_flags=""
7358 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7360 esac
7361 else
7362 coverage_flags=""
7367 # Check whether --enable-gather-detailed-mem-stats was given.
7368 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7369 enableval=$enable_gather_detailed_mem_stats;
7370 else
7371 enable_gather_detailed_mem_stats=no
7374 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7376 cat >>confdefs.h <<_ACEOF
7377 #define GATHER_STATISTICS $gather_stats
7378 _ACEOF
7381 # Check whether --enable-valgrind-annotations was given.
7382 if test "${enable_valgrind_annotations+set}" = set; then :
7383 enableval=$enable_valgrind_annotations;
7384 else
7385 enable_valgrind_annotations=no
7388 if test x$enable_valgrind_annotations != xno \
7389 || test x$ac_valgrind_checking != x; then
7390 if (test $have_valgrind_h = no \
7391 && test $gcc_cv_header_memcheck_h = no \
7392 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7393 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7396 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7400 # -------------------------------
7401 # Miscenalleous configure options
7402 # -------------------------------
7404 # With stabs
7406 # Check whether --with-stabs was given.
7407 if test "${with_stabs+set}" = set; then :
7408 withval=$with_stabs; stabs="$with_stabs"
7409 else
7410 stabs=no
7414 # Determine whether or not multilibs are enabled.
7415 # Check whether --enable-multilib was given.
7416 if test "${enable_multilib+set}" = set; then :
7417 enableval=$enable_multilib;
7418 else
7419 enable_multilib=yes
7424 # Determine whether or not multiarch is enabled.
7425 # Check whether --enable-multiarch was given.
7426 if test "${enable_multiarch+set}" = set; then :
7427 enableval=$enable_multiarch; case "${enableval}" in
7428 yes|no|auto) enable_multiarch=$enableval;;
7429 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7430 esac
7431 else
7432 enable_multiarch=auto
7435 if test x${enable_multiarch} = xauto; then
7436 if test x${with_native_system_header_dir} != x; then
7437 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7438 enable_multiarch=no
7440 if test x$host != x$target && test "x$with_sysroot" = x; then
7441 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7442 enable_multiarch=no
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7446 $as_echo_n "checking for multiarch configuration... " >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7449 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7451 # needed for setting the multiarch name for soft-float/hard-float ABIs
7455 # Enable __cxa_atexit for C++.
7456 # Check whether --enable-__cxa_atexit was given.
7457 if test "${enable___cxa_atexit+set}" = set; then :
7458 enableval=$enable___cxa_atexit;
7462 # Enable C extension for decimal float if target supports it.
7464 # Check whether --enable-decimal-float was given.
7465 if test "${enable_decimal_float+set}" = set; then :
7466 enableval=$enable_decimal_float;
7467 case $enable_decimal_float in
7468 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7469 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7470 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7471 esac
7473 else
7475 case $target in
7476 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7477 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7478 i?86*-*-mingw* | x86_64*-*-mingw* | \
7479 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7480 enable_decimal_float=yes
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7484 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7485 enable_decimal_float=no
7487 esac
7492 # x86's use BID format instead of DPD
7493 case x$enable_decimal_float in
7494 xyes)
7495 case $target in
7496 i?86*-*-* | x86_64*-*-*)
7497 enable_decimal_float=bid
7500 enable_decimal_float=dpd
7502 esac
7503 default_decimal_float=$enable_decimal_float
7505 xno)
7506 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7507 # dependency on libdecnumber.
7508 default_decimal_float=dpd
7510 esac
7515 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7517 cat >>confdefs.h <<_ACEOF
7518 #define ENABLE_DECIMAL_FLOAT $dfp
7519 _ACEOF
7522 # Use default_decimal_float for dependency.
7523 enable_decimal_float=$default_decimal_float
7525 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7527 cat >>confdefs.h <<_ACEOF
7528 #define ENABLE_DECIMAL_BID_FORMAT $bid
7529 _ACEOF
7532 # Enable C extension for fixed-point arithmetic.
7533 # Check whether --enable-fixed-point was given.
7534 if test "${enable_fixed_point+set}" = set; then :
7535 enableval=$enable_fixed_point;
7536 else
7538 case $target in
7539 arm*)
7540 enable_fixed_point=yes
7543 mips*-*-*)
7544 enable_fixed_point=yes
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7548 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7549 enable_fixed_point=no
7551 esac
7557 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7559 cat >>confdefs.h <<_ACEOF
7560 #define ENABLE_FIXED_POINT $fixedpoint
7561 _ACEOF
7564 # Enable threads
7565 # Pass with no value to take the default
7566 # Pass with a value to specify a thread package
7567 # Check whether --enable-threads was given.
7568 if test "${enable_threads+set}" = set; then :
7569 enableval=$enable_threads;
7570 else
7571 enable_threads=''
7575 # Check whether --enable-tls was given.
7576 if test "${enable_tls+set}" = set; then :
7577 enableval=$enable_tls;
7578 case $enable_tls in
7579 yes | no) ;;
7580 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7581 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7582 esac
7584 else
7585 enable_tls=''
7589 # Check whether --enable-objc-gc was given.
7590 if test "${enable_objc_gc+set}" = set; then :
7591 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7592 objc_boehm_gc=''
7593 else
7594 objc_boehm_gc=1
7596 else
7597 objc_boehm_gc=''
7602 # Check whether --with-dwarf2 was given.
7603 if test "${with_dwarf2+set}" = set; then :
7604 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7605 else
7606 dwarf2=no
7610 # Check whether --enable-shared was given.
7611 if test "${enable_shared+set}" = set; then :
7612 enableval=$enable_shared;
7613 case $enable_shared in
7614 yes | no) ;;
7616 enable_shared=no
7617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7618 for pkg in $enableval; do
7619 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7620 enable_shared=yes
7622 done
7623 IFS="$ac_save_ifs"
7625 esac
7627 else
7628 enable_shared=yes
7634 # Check whether --with-specs was given.
7635 if test "${with_specs+set}" = set; then :
7636 withval=$with_specs; CONFIGURE_SPECS=$withval
7637 else
7638 CONFIGURE_SPECS=
7646 # Check whether --with-pkgversion was given.
7647 if test "${with_pkgversion+set}" = set; then :
7648 withval=$with_pkgversion; case "$withval" in
7649 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7650 no) PKGVERSION= ;;
7651 *) PKGVERSION="($withval) " ;;
7652 esac
7653 else
7654 PKGVERSION="(GCC) "
7662 # Check whether --with-bugurl was given.
7663 if test "${with_bugurl+set}" = set; then :
7664 withval=$with_bugurl; case "$withval" in
7665 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7666 no) BUGURL=
7668 *) BUGURL="$withval"
7670 esac
7671 else
7672 BUGURL="http://gcc.gnu.org/bugs.html"
7676 case ${BUGURL} in
7678 REPORT_BUGS_TO=
7679 REPORT_BUGS_TEXI=
7682 REPORT_BUGS_TO="<$BUGURL>"
7683 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7685 esac;
7690 # Sanity check enable_languages in case someone does not run the toplevel
7691 # configure # script.
7692 # Check whether --enable-languages was given.
7693 if test "${enable_languages+set}" = set; then :
7694 enableval=$enable_languages; case ,${enable_languages}, in
7695 ,,|,yes,)
7696 # go safe -- we cannot be much sure without the toplevel
7697 # configure's
7698 # analysis of which target libs are present and usable
7699 enable_languages=c
7701 *,all,*)
7702 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7704 *,c,*)
7707 enable_languages=c,${enable_languages}
7709 esac
7710 else
7711 enable_languages=c
7715 if test x"$enable_as_accelerator_for" != x; then
7717 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7719 enable_as_accelerator=yes
7720 case "${target}" in
7721 *-intelmicemul-*)
7722 # In this case we expect offload compiler to be built as native, so we
7723 # need to rename the driver to avoid clashes with host's drivers.
7724 program_transform_name="s&^&${target}-&" ;;
7725 esac
7726 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7727 program_transform_name=`echo $program_transform_name | sed $sedscript`
7728 accel_dir_suffix=/accel/${target_noncanonical}
7729 real_target_noncanonical=${enable_as_accelerator_for}
7735 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7736 tgt=`echo $tgt | sed 's/=.*//'`
7738 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7739 enable_hsa=1
7740 else
7741 enable_offloading=1
7744 if test x"$offload_targets" = x; then
7745 offload_targets=$tgt
7746 else
7747 offload_targets="$offload_targets,$tgt"
7749 done
7751 cat >>confdefs.h <<_ACEOF
7752 #define OFFLOAD_TARGETS "$offload_targets"
7753 _ACEOF
7755 if test x"$enable_offloading" != x; then
7757 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7759 else
7761 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7765 if test x"$enable_hsa" = x1 ; then
7767 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7772 # Check whether --with-multilib-list was given.
7773 if test "${with_multilib_list+set}" = set; then :
7774 withval=$with_multilib_list; :
7775 else
7776 with_multilib_list=default
7780 # -------------------------
7781 # Checks for other programs
7782 # -------------------------
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7786 set x ${MAKE-make}
7787 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7788 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 cat >conftest.make <<\_ACEOF
7792 SHELL = /bin/sh
7793 all:
7794 @echo '@@@%%%=$(MAKE)=@@@%%%'
7795 _ACEOF
7796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7797 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7798 *@@@%%%=?*=@@@%%%*)
7799 eval ac_cv_prog_make_${ac_make}_set=yes;;
7801 eval ac_cv_prog_make_${ac_make}_set=no;;
7802 esac
7803 rm -f conftest.make
7805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7807 $as_echo "yes" >&6; }
7808 SET_MAKE=
7809 else
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 SET_MAKE="MAKE=${MAKE-make}"
7816 # Find some useful tools
7817 for ac_prog in gawk mawk nawk awk
7819 # Extract the first word of "$ac_prog", so it can be a program name with args.
7820 set dummy $ac_prog; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822 $as_echo_n "checking for $ac_word... " >&6; }
7823 if test "${ac_cv_prog_AWK+set}" = set; then :
7824 $as_echo_n "(cached) " >&6
7825 else
7826 if test -n "$AWK"; then
7827 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7828 else
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830 for as_dir in $PATH
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836 ac_cv_prog_AWK="$ac_prog"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7840 done
7841 done
7842 IFS=$as_save_IFS
7846 AWK=$ac_cv_prog_AWK
7847 if test -n "$AWK"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7849 $as_echo "$AWK" >&6; }
7850 else
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7856 test -n "$AWK" && break
7857 done
7859 # We need awk to create options.c and options.h.
7860 # Bail out if it's missing.
7861 case ${AWK} in
7862 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7863 esac
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7866 $as_echo_n "checking whether ln -s works... " >&6; }
7867 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 rm -f conftestdata_t
7871 echo >conftestdata_f
7872 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7873 then
7874 gcc_cv_prog_LN_S="ln -s"
7875 else
7876 if ln conftestdata_f conftestdata_t 2>/dev/null
7877 then
7878 gcc_cv_prog_LN_S=ln
7879 else
7880 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7881 then
7882 gcc_cv_prog_LN_S="cp -p"
7883 else
7884 gcc_cv_prog_LN_S=cp
7888 rm -f conftestdata_f conftestdata_t
7891 LN_S="$gcc_cv_prog_LN_S"
7892 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7895 else
7896 if test "$gcc_cv_prog_LN_S" = "ln"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7898 $as_echo "no, using ln" >&6; }
7899 else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7901 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7906 $as_echo_n "checking whether ln works... " >&6; }
7907 if test "${acx_cv_prog_LN+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 rm -f conftestdata_t
7911 echo >conftestdata_f
7912 if ln conftestdata_f conftestdata_t 2>/dev/null
7913 then
7914 acx_cv_prog_LN=ln
7915 else
7916 acx_cv_prog_LN=no
7918 rm -f conftestdata_f conftestdata_t
7921 if test $acx_cv_prog_LN = no; then
7922 LN="$LN_S"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7924 $as_echo "no, using $LN" >&6; }
7925 else
7926 LN="$acx_cv_prog_LN"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7928 $as_echo "yes" >&6; }
7931 if test -n "$ac_tool_prefix"; then
7932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7933 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 if test -n "$RANLIB"; then
7940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7953 done
7954 done
7955 IFS=$as_save_IFS
7959 RANLIB=$ac_cv_prog_RANLIB
7960 if test -n "$RANLIB"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7962 $as_echo "$RANLIB" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7970 if test -z "$ac_cv_prog_RANLIB"; then
7971 ac_ct_RANLIB=$RANLIB
7972 # Extract the first word of "ranlib", so it can be a program name with args.
7973 set dummy ranlib; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 if test -n "$ac_ct_RANLIB"; then
7980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7981 else
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $PATH
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7989 ac_cv_prog_ac_ct_RANLIB="ranlib"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7993 done
7994 done
7995 IFS=$as_save_IFS
7999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8000 if test -n "$ac_ct_RANLIB"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8002 $as_echo "$ac_ct_RANLIB" >&6; }
8003 else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 $as_echo "no" >&6; }
8008 if test "x$ac_ct_RANLIB" = x; then
8009 RANLIB=":"
8010 else
8011 case $cross_compiling:$ac_tool_warned in
8012 yes:)
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015 ac_tool_warned=yes ;;
8016 esac
8017 RANLIB=$ac_ct_RANLIB
8019 else
8020 RANLIB="$ac_cv_prog_RANLIB"
8023 ranlib_flags=""
8026 # Find a good install program. We prefer a C program (faster),
8027 # so one script is as good as another. But avoid the broken or
8028 # incompatible versions:
8029 # SysV /etc/install, /usr/sbin/install
8030 # SunOS /usr/etc/install
8031 # IRIX /sbin/install
8032 # AIX /bin/install
8033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8035 # ./install, which can be erroneously created by make from ./install.sh.
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8037 $as_echo_n "checking for a BSD compatible install... " >&6; }
8038 if test -z "$INSTALL"; then
8039 if test "${ac_cv_path_install+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8043 for ac_dir in $PATH; do
8044 # Account for people who put trailing slashes in PATH elements.
8045 case "$ac_dir/" in
8046 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8048 # OSF1 and SCO ODT 3.0 have their own names for install.
8049 for ac_prog in ginstall scoinst install; do
8050 if test -f $ac_dir/$ac_prog; then
8051 if test $ac_prog = install &&
8052 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8053 # AIX install. It has an incompatible calling convention.
8054 # OSF/1 installbsd also uses dspmsg, but is usable.
8056 else
8057 ac_cv_path_install="$ac_dir/$ac_prog -c"
8058 break 2
8061 done
8063 esac
8064 done
8065 IFS="$ac_save_IFS"
8068 if test "${ac_cv_path_install+set}" = set; then
8069 INSTALL="$ac_cv_path_install"
8070 else
8071 # As a last resort, use the slow shell script. We don't cache a
8072 # path for INSTALL within a source directory, because that will
8073 # break other packages using the cache if that directory is
8074 # removed, or if the path is relative.
8075 INSTALL="$ac_install_sh"
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8079 $as_echo "$INSTALL" >&6; }
8081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8082 # It thinks the first close brace ends the variable substitution.
8083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8088 # See if cmp has --ignore-initial.
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8090 $as_echo_n "checking for cmp's capabilities... " >&6; }
8091 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 echo abfoo >t1
8095 echo cdfoo >t2
8096 gcc_cv_prog_cmp_skip=slowcompare
8097 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8098 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8100 else
8101 gcc_cv_prog_cmp_skip=gnucompare
8104 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8105 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8106 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8108 else
8109 gcc_cv_prog_cmp_skip=fastcompare
8113 rm t1 t2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8117 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8118 make_compare_target=$gcc_cv_prog_cmp_skip
8122 # See if we have the mktemp command.
8123 # Extract the first word of "mktemp", so it can be a program name with args.
8124 set dummy mktemp; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 if test -n "$have_mktemp_command"; then
8131 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_prog_have_mktemp_command="yes"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8144 done
8145 done
8146 IFS=$as_save_IFS
8148 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8151 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8152 if test -n "$have_mktemp_command"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8154 $as_echo "$have_mktemp_command" >&6; }
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8162 # See if makeinfo has been installed and is modern enough
8163 # that we can use it.
8165 # Extract the first word of "makeinfo", so it can be a program name with args.
8166 set dummy makeinfo; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test -n "$MAKEINFO"; then
8173 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8182 ac_cv_prog_MAKEINFO="makeinfo"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8186 done
8187 done
8188 IFS=$as_save_IFS
8192 MAKEINFO=$ac_cv_prog_MAKEINFO
8193 if test -n "$MAKEINFO"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8195 $as_echo "$MAKEINFO" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8202 if test -n "$MAKEINFO"; then
8203 # Found it, now check the version.
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8205 $as_echo_n "checking for modern makeinfo... " >&6; }
8206 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8210 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8212 case $ac_prog_version in
8213 '') gcc_cv_prog_makeinfo_modern=no;;
8214 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8215 *) gcc_cv_prog_makeinfo_modern=no;;
8216 esac
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8220 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8221 else
8222 gcc_cv_prog_makeinfo_modern=no
8224 if test $gcc_cv_prog_makeinfo_modern = no; then
8225 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8228 if test $gcc_cv_prog_makeinfo_modern = no; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8230 *** Makeinfo is missing or too old.
8231 *** Info documentation will not be built." >&5
8232 $as_echo "$as_me: WARNING:
8233 *** Makeinfo is missing or too old.
8234 *** Info documentation will not be built." >&2;}
8235 BUILD_INFO=
8236 else
8237 BUILD_INFO=info
8241 # Is pod2man recent enough to regenerate manpages?
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8243 $as_echo_n "checking for recent Pod::Man... " >&6; }
8244 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8246 $as_echo "yes" >&6; }
8247 GENERATED_MANPAGES=generated-manpages
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8251 GENERATED_MANPAGES=
8255 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8257 # How about lex?
8258 for ac_prog in flex
8260 # Extract the first word of "$ac_prog", so it can be a program name with args.
8261 set dummy $ac_prog; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_FLEX+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 if test -n "$FLEX"; then
8268 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_FLEX="$ac_prog"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8281 done
8282 done
8283 IFS=$as_save_IFS
8287 FLEX=$ac_cv_prog_FLEX
8288 if test -n "$FLEX"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8290 $as_echo "$FLEX" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8297 test -n "$FLEX" && break
8298 done
8299 test -n "$FLEX" || FLEX="$MISSING flex"
8302 # Bison?
8303 for ac_prog in bison
8305 # Extract the first word of "$ac_prog", so it can be a program name with args.
8306 set dummy $ac_prog; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_BISON+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 if test -n "$BISON"; then
8313 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_prog_BISON="$ac_prog"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8326 done
8327 done
8328 IFS=$as_save_IFS
8332 BISON=$ac_cv_prog_BISON
8333 if test -n "$BISON"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8335 $as_echo "$BISON" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8342 test -n "$BISON" && break
8343 done
8344 test -n "$BISON" || BISON="$MISSING bison"
8347 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8348 # check for build == host before using them.
8350 # NM
8351 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8352 && test -d ../binutils ; then
8353 NM='${objdir}/../binutils/nm-new'
8354 else
8355 # Extract the first word of "nm", so it can be a program name with args.
8356 set dummy nm; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_NM+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$NM"; then
8363 ac_cv_prog_NM="$NM" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_NM="nm"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8378 IFS=$as_save_IFS
8380 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8383 NM=$ac_cv_prog_NM
8384 if test -n "$NM"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8386 $as_echo "$NM" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8395 # AR
8396 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8397 && test -d ../binutils ; then
8398 AR='${objdir}/../binutils/ar'
8399 else
8400 # Extract the first word of "ar", so it can be a program name with args.
8401 set dummy ar; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_AR+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$AR"; then
8408 ac_cv_prog_AR="$AR" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_AR="ar"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8421 done
8422 done
8423 IFS=$as_save_IFS
8425 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8428 AR=$ac_cv_prog_AR
8429 if test -n "$AR"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8431 $as_echo "$AR" >&6; }
8432 else
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8440 # The jit documentation looks better if built with sphinx, but can be
8441 # built with texinfo if sphinx is not available.
8442 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8443 # Extract the first word of "sphinx-build", so it can be a program name with args.
8444 set dummy sphinx-build; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 if test -n "$doc_build_sys"; then
8451 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_prog_doc_build_sys="sphinx"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8464 done
8465 done
8466 IFS=$as_save_IFS
8468 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8471 doc_build_sys=$ac_cv_prog_doc_build_sys
8472 if test -n "$doc_build_sys"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8474 $as_echo "$doc_build_sys" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8482 # --------------------
8483 # Checks for C headers
8484 # --------------------
8486 # Need to reject headers which give warnings, so that the -Werror bootstrap
8487 # works later. *sigh* This needs to come before all header checks.
8489 ac_c_preproc_warn_flag=yes
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8492 $as_echo_n "checking for ANSI C header files... " >&6; }
8493 if test "${ac_cv_header_stdc+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <stdlib.h>
8499 #include <stdarg.h>
8500 #include <string.h>
8501 #include <float.h>
8504 main ()
8508 return 0;
8510 _ACEOF
8511 if ac_fn_cxx_try_compile "$LINENO"; then :
8512 ac_cv_header_stdc=yes
8513 else
8514 ac_cv_header_stdc=no
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 if test $ac_cv_header_stdc = yes; then
8519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 #include <string.h>
8524 _ACEOF
8525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8526 $EGREP "memchr" >/dev/null 2>&1; then :
8528 else
8529 ac_cv_header_stdc=no
8531 rm -f conftest*
8535 if test $ac_cv_header_stdc = yes; then
8536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8539 #include <stdlib.h>
8541 _ACEOF
8542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8543 $EGREP "free" >/dev/null 2>&1; then :
8545 else
8546 ac_cv_header_stdc=no
8548 rm -f conftest*
8552 if test $ac_cv_header_stdc = yes; then
8553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8554 if test "$cross_compiling" = yes; then :
8556 else
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 #include <ctype.h>
8560 #include <stdlib.h>
8561 #if ((' ' & 0x0FF) == 0x020)
8562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8564 #else
8565 # define ISLOWER(c) \
8566 (('a' <= (c) && (c) <= 'i') \
8567 || ('j' <= (c) && (c) <= 'r') \
8568 || ('s' <= (c) && (c) <= 'z'))
8569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8570 #endif
8572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8574 main ()
8576 int i;
8577 for (i = 0; i < 256; i++)
8578 if (XOR (islower (i), ISLOWER (i))
8579 || toupper (i) != TOUPPER (i))
8580 return 2;
8581 return 0;
8583 _ACEOF
8584 if ac_fn_cxx_try_run "$LINENO"; then :
8586 else
8587 ac_cv_header_stdc=no
8589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8590 conftest.$ac_objext conftest.beam conftest.$ac_ext
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8596 $as_echo "$ac_cv_header_stdc" >&6; }
8597 if test $ac_cv_header_stdc = yes; then
8599 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8604 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8605 if test "${ac_cv_header_time+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 #include <sys/types.h>
8611 #include <sys/time.h>
8612 #include <time.h>
8615 main ()
8617 if ((struct tm *) 0)
8618 return 0;
8620 return 0;
8622 _ACEOF
8623 if ac_fn_cxx_try_compile "$LINENO"; then :
8624 ac_cv_header_time=yes
8625 else
8626 ac_cv_header_time=no
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8631 $as_echo "$ac_cv_header_time" >&6; }
8632 if test $ac_cv_header_time = yes; then
8634 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8639 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8640 if test "${gcc_cv_header_string+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 #include <string.h>
8646 #include <strings.h>
8648 main ()
8652 return 0;
8654 _ACEOF
8655 if ac_fn_cxx_try_compile "$LINENO"; then :
8656 gcc_cv_header_string=yes
8657 else
8658 gcc_cv_header_string=no
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8663 $as_echo "$gcc_cv_header_string" >&6; }
8664 if test $gcc_cv_header_string = yes; then
8666 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8671 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8672 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 #include <sys/types.h>
8678 #include <sys/wait.h>
8679 #ifndef WEXITSTATUS
8680 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8681 #endif
8682 #ifndef WIFEXITED
8683 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8684 #endif
8687 main ()
8689 int s;
8690 wait (&s);
8691 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8693 return 0;
8695 _ACEOF
8696 if ac_fn_cxx_try_compile "$LINENO"; then :
8697 ac_cv_header_sys_wait_h=yes
8698 else
8699 ac_cv_header_sys_wait_h=no
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8704 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8705 if test $ac_cv_header_sys_wait_h = yes; then
8707 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8712 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8713 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 #include <sys/types.h>
8719 #include <termios.h>
8720 #ifdef TIOCGWINSZ
8722 #endif
8724 _ACEOF
8725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8726 $EGREP "yes" >/dev/null 2>&1; then :
8727 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8728 else
8729 ac_cv_sys_tiocgwinsz_in_termios_h=no
8731 rm -f conftest*
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8735 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8737 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8739 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8740 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 #include <sys/types.h>
8746 #include <sys/ioctl.h>
8747 #ifdef TIOCGWINSZ
8749 #endif
8751 _ACEOF
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 $EGREP "yes" >/dev/null 2>&1; then :
8754 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8755 else
8756 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8758 rm -f conftest*
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8762 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8764 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8766 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8771 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8772 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8773 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8774 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8775 do :
8776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8777 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8778 eval as_val=\$$as_ac_Header
8779 if test "x$as_val" = x""yes; then :
8780 cat >>confdefs.h <<_ACEOF
8781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8782 _ACEOF
8785 done
8788 # Check for thread headers.
8789 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8790 if test "x$ac_cv_header_thread_h" = x""yes; then :
8791 have_thread_h=yes
8792 else
8793 have_thread_h=
8796 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8797 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8798 have_pthread_h=yes
8799 else
8800 have_pthread_h=
8804 # These tests can't be done till we know if we have limits.h.
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8806 $as_echo_n "checking for CHAR_BIT... " >&6; }
8807 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8809 else
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 #ifdef HAVE_LIMITS_H
8813 #include <limits.h>
8814 #endif
8815 #ifdef CHAR_BIT
8816 found
8817 #endif
8818 _ACEOF
8819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8820 $EGREP "found" >/dev/null 2>&1; then :
8821 gcc_cv_decl_char_bit=yes
8822 else
8823 gcc_cv_decl_char_bit=no
8825 rm -f conftest*
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8830 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8831 if test $gcc_cv_decl_char_bit = no; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8833 $as_echo_n "checking number of bits in a byte... " >&6; }
8834 if test "${gcc_cv_c_nbby+set}" = set; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8838 gcc_cv_c_nbby=
8839 while test $i -lt 65; do
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8844 main ()
8846 switch(0) {
8847 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8848 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8851 return 0;
8853 _ACEOF
8854 if ac_fn_cxx_try_compile "$LINENO"; then :
8855 gcc_cv_c_nbby=$i; break
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 i=`expr $i + 1`
8859 done
8860 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8864 $as_echo "$gcc_cv_c_nbby" >&6; }
8865 if test $gcc_cv_c_nbby = failed; then
8866 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8867 else
8869 cat >>confdefs.h <<_ACEOF
8870 #define CHAR_BIT $gcc_cv_c_nbby
8871 _ACEOF
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8876 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8877 if test "${ac_cv_c_bigendian+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 ac_cv_c_bigendian=unknown
8881 # See if we're dealing with a universal compiler.
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #ifndef __APPLE_CC__
8885 not a universal capable compiler
8886 #endif
8887 typedef int dummy;
8889 _ACEOF
8890 if ac_fn_cxx_try_compile "$LINENO"; then :
8892 # Check for potential -arch flags. It is not universal unless
8893 # there are at least two -arch flags with different values.
8894 ac_arch=
8895 ac_prev=
8896 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8897 if test -n "$ac_prev"; then
8898 case $ac_word in
8899 i?86 | x86_64 | ppc | ppc64)
8900 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8901 ac_arch=$ac_word
8902 else
8903 ac_cv_c_bigendian=universal
8904 break
8907 esac
8908 ac_prev=
8909 elif test "x$ac_word" = "x-arch"; then
8910 ac_prev=arch
8912 done
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 if test $ac_cv_c_bigendian = unknown; then
8916 # See if sys/param.h defines the BYTE_ORDER macro.
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919 #include <sys/types.h>
8920 #include <sys/param.h>
8923 main ()
8925 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8926 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8927 && LITTLE_ENDIAN)
8928 bogus endian macros
8929 #endif
8932 return 0;
8934 _ACEOF
8935 if ac_fn_cxx_try_compile "$LINENO"; then :
8936 # It does; now see whether it defined to BIG_ENDIAN or not.
8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938 /* end confdefs.h. */
8939 #include <sys/types.h>
8940 #include <sys/param.h>
8943 main ()
8945 #if BYTE_ORDER != BIG_ENDIAN
8946 not big endian
8947 #endif
8950 return 0;
8952 _ACEOF
8953 if ac_fn_cxx_try_compile "$LINENO"; then :
8954 ac_cv_c_bigendian=yes
8955 else
8956 ac_cv_c_bigendian=no
8958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 if test $ac_cv_c_bigendian = unknown; then
8963 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966 #include <limits.h>
8969 main ()
8971 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8972 bogus endian macros
8973 #endif
8976 return 0;
8978 _ACEOF
8979 if ac_fn_cxx_try_compile "$LINENO"; then :
8980 # It does; now see whether it defined to _BIG_ENDIAN or not.
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 #include <limits.h>
8986 main ()
8988 #ifndef _BIG_ENDIAN
8989 not big endian
8990 #endif
8993 return 0;
8995 _ACEOF
8996 if ac_fn_cxx_try_compile "$LINENO"; then :
8997 ac_cv_c_bigendian=yes
8998 else
8999 ac_cv_c_bigendian=no
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 if test $ac_cv_c_bigendian = unknown; then
9006 # Compile a test program.
9007 if test "$cross_compiling" = yes; then :
9008 # Try to guess by grepping values from an object file.
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 short int ascii_mm[] =
9012 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9013 short int ascii_ii[] =
9014 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9015 int use_ascii (int i) {
9016 return ascii_mm[i] + ascii_ii[i];
9018 short int ebcdic_ii[] =
9019 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9020 short int ebcdic_mm[] =
9021 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9022 int use_ebcdic (int i) {
9023 return ebcdic_mm[i] + ebcdic_ii[i];
9025 extern int foo;
9028 main ()
9030 return use_ascii (foo) == use_ebcdic (foo);
9032 return 0;
9034 _ACEOF
9035 if ac_fn_cxx_try_compile "$LINENO"; then :
9036 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9037 ac_cv_c_bigendian=yes
9039 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9040 if test "$ac_cv_c_bigendian" = unknown; then
9041 ac_cv_c_bigendian=no
9042 else
9043 # finding both strings is unlikely to happen, but who knows?
9044 ac_cv_c_bigendian=unknown
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 else
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9052 $ac_includes_default
9054 main ()
9057 /* Are we little or big endian? From Harbison&Steele. */
9058 union
9060 long int l;
9061 char c[sizeof (long int)];
9062 } u;
9063 u.l = 1;
9064 return u.c[sizeof (long int) - 1] == 1;
9067 return 0;
9069 _ACEOF
9070 if ac_fn_cxx_try_run "$LINENO"; then :
9071 ac_cv_c_bigendian=no
9072 else
9073 ac_cv_c_bigendian=yes
9075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9076 conftest.$ac_objext conftest.beam conftest.$ac_ext
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9082 $as_echo "$ac_cv_c_bigendian" >&6; }
9083 case $ac_cv_c_bigendian in #(
9084 yes)
9085 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9086 ;; #(
9088 ;; #(
9089 universal)
9091 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9093 ;; #(
9095 as_fn_error "unknown endianness
9096 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9097 esac
9100 # ----------------------
9101 # Checks for C++ headers
9102 # ----------------------
9104 ac_ext=cpp
9105 ac_cpp='$CXXCPP $CPPFLAGS'
9106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9110 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9111 if test -z "$CXXCPP"; then
9112 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 # Double quotes because CXXCPP needs to be expanded
9116 for CXXCPP in "$CXX -E" "/lib/cpp"
9118 ac_preproc_ok=false
9119 for ac_cxx_preproc_warn_flag in '' yes
9121 # Use a header file that comes with gcc, so configuring glibc
9122 # with a fresh cross-compiler works.
9123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9124 # <limits.h> exists even on freestanding compilers.
9125 # On the NeXT, cc -E runs the code through the compiler's parser,
9126 # not just through cpp. "Syntax error" is here to catch this case.
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9129 #ifdef __STDC__
9130 # include <limits.h>
9131 #else
9132 # include <assert.h>
9133 #endif
9134 Syntax error
9135 _ACEOF
9136 if ac_fn_cxx_try_cpp "$LINENO"; then :
9138 else
9139 # Broken: fails on valid input.
9140 continue
9142 rm -f conftest.err conftest.$ac_ext
9144 # OK, works on sane cases. Now check whether nonexistent headers
9145 # can be detected and how.
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 #include <ac_nonexistent.h>
9149 _ACEOF
9150 if ac_fn_cxx_try_cpp "$LINENO"; then :
9151 # Broken: success on invalid input.
9152 continue
9153 else
9154 # Passes both tests.
9155 ac_preproc_ok=:
9156 break
9158 rm -f conftest.err conftest.$ac_ext
9160 done
9161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9162 rm -f conftest.err conftest.$ac_ext
9163 if $ac_preproc_ok; then :
9164 break
9167 done
9168 ac_cv_prog_CXXCPP=$CXXCPP
9171 CXXCPP=$ac_cv_prog_CXXCPP
9172 else
9173 ac_cv_prog_CXXCPP=$CXXCPP
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9176 $as_echo "$CXXCPP" >&6; }
9177 ac_preproc_ok=false
9178 for ac_cxx_preproc_warn_flag in '' yes
9180 # Use a header file that comes with gcc, so configuring glibc
9181 # with a fresh cross-compiler works.
9182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9183 # <limits.h> exists even on freestanding compilers.
9184 # On the NeXT, cc -E runs the code through the compiler's parser,
9185 # not just through cpp. "Syntax error" is here to catch this case.
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #ifdef __STDC__
9189 # include <limits.h>
9190 #else
9191 # include <assert.h>
9192 #endif
9193 Syntax error
9194 _ACEOF
9195 if ac_fn_cxx_try_cpp "$LINENO"; then :
9197 else
9198 # Broken: fails on valid input.
9199 continue
9201 rm -f conftest.err conftest.$ac_ext
9203 # OK, works on sane cases. Now check whether nonexistent headers
9204 # can be detected and how.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <ac_nonexistent.h>
9208 _ACEOF
9209 if ac_fn_cxx_try_cpp "$LINENO"; then :
9210 # Broken: success on invalid input.
9211 continue
9212 else
9213 # Passes both tests.
9214 ac_preproc_ok=:
9215 break
9217 rm -f conftest.err conftest.$ac_ext
9219 done
9220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9221 rm -f conftest.err conftest.$ac_ext
9222 if $ac_preproc_ok; then :
9224 else
9225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9228 See \`config.log' for more details." >&5
9229 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9230 See \`config.log' for more details." >&2;}; }
9233 ac_ext=cpp
9234 ac_cpp='$CXXCPP $CPPFLAGS'
9235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9240 for ac_header in unordered_map
9241 do :
9242 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9243 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9244 cat >>confdefs.h <<_ACEOF
9245 #define HAVE_UNORDERED_MAP 1
9246 _ACEOF
9249 done
9251 for ac_header in tr1/unordered_map
9252 do :
9253 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9254 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9255 cat >>confdefs.h <<_ACEOF
9256 #define HAVE_TR1_UNORDERED_MAP 1
9257 _ACEOF
9260 done
9262 for ac_header in ext/hash_map
9263 do :
9264 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9265 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9266 cat >>confdefs.h <<_ACEOF
9267 #define HAVE_EXT_HASH_MAP 1
9268 _ACEOF
9271 done
9274 # --------
9275 # Dependency checking.
9276 # --------
9278 rm -rf .tst 2>/dev/null
9279 mkdir .tst 2>/dev/null
9280 if test -d .tst; then
9281 am__leading_dot=.
9282 else
9283 am__leading_dot=_
9285 rmdir .tst 2>/dev/null
9287 DEPDIR="${am__leading_dot}deps"
9289 ac_config_commands="$ac_config_commands depdir"
9292 ac_config_commands="$ac_config_commands gccdepdir"
9295 depcc="$CXX" am_compiler_list=
9297 am_depcomp=$ac_aux_dir/depcomp
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9299 $as_echo_n "checking dependency style of $depcc... " >&6; }
9300 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 if test -f "$am_depcomp"; then
9304 # We make a subdir and do the tests there. Otherwise we can end up
9305 # making bogus files that we don't know about and never remove. For
9306 # instance it was reported that on HP-UX the gcc test will end up
9307 # making a dummy file named `D' -- because `-MD' means `put the output
9308 # in D'.
9309 mkdir conftest.dir
9310 # Copy depcomp to subdir because otherwise we won't find it if we're
9311 # using a relative directory.
9312 cp "$am_depcomp" conftest.dir
9313 cd conftest.dir
9314 # We will build objects and dependencies in a subdirectory because
9315 # it helps to detect inapplicable dependency modes. For instance
9316 # both Tru64's cc and ICC support -MD to output dependencies as a
9317 # side effect of compilation, but ICC will put the dependencies in
9318 # the current directory while Tru64 will put them in the object
9319 # directory.
9320 mkdir sub
9322 am_cv_CXX_dependencies_compiler_type=none
9323 if test "$am_compiler_list" = ""; then
9324 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9326 for depmode in $am_compiler_list; do
9327 if test $depmode = none; then break; fi
9329 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9330 # Setup a source with many dependencies, because some compilers
9331 # like to wrap large dependency lists on column 80 (with \), and
9332 # we should not choose a depcomp mode which is confused by this.
9334 # We need to recreate these files for each test, as the compiler may
9335 # overwrite some of them when testing with obscure command lines.
9336 # This happens at least with the AIX C compiler.
9337 : > sub/conftest.c
9338 for i in 1 2 3 4 5 6; do
9339 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9340 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9341 # Solaris 8's {/usr,}/bin/sh.
9342 touch sub/conftst$i.h
9343 done
9344 echo "include sub/conftest.Po" > confmf
9346 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9347 # mode. It turns out that the SunPro C++ compiler does not properly
9348 # handle `-M -o', and we need to detect this.
9349 depcmd="depmode=$depmode \
9350 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9351 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9352 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9353 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9354 if env $depcmd > conftest.err 2>&1 &&
9355 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9356 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9357 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9358 # icc doesn't choke on unknown options, it will just issue warnings
9359 # or remarks (even with -Werror). So we grep stderr for any message
9360 # that says an option was ignored or not supported.
9361 # When given -MP, icc 7.0 and 7.1 complain thusly:
9362 # icc: Command line warning: ignoring option '-M'; no argument required
9363 # The diagnosis changed in icc 8.0:
9364 # icc: Command line remark: option '-MP' not supported
9365 if (grep 'ignoring option' conftest.err ||
9366 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9367 am_cv_CXX_dependencies_compiler_type=$depmode
9368 $as_echo "$as_me:$LINENO: success" >&5
9369 break
9372 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9373 sed -e 's/^/| /' < conftest.err >&5
9374 done
9376 cd ..
9377 rm -rf conftest.dir
9378 else
9379 am_cv_CXX_dependencies_compiler_type=none
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9384 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9385 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9386 then as_fn_error "no usable dependency style found" "$LINENO" 5
9387 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9392 # --------
9393 # UNSORTED
9394 # --------
9397 # These libraries may be used by collect2.
9398 # We may need a special search path to get them linked.
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9400 $as_echo_n "checking for collect2 libraries... " >&6; }
9401 if test "${gcc_cv_collect2_libs+set}" = set; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 save_LIBS="$LIBS"
9405 for libs in '' -lld -lmld \
9406 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9407 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9409 LIBS="$libs"
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9413 /* Override any GCC internal prototype to avoid an error.
9414 Use char because int might match the return type of a GCC
9415 builtin and then its argument prototype would still apply. */
9416 #ifdef __cplusplus
9417 extern "C"
9418 #endif
9419 char ldopen ();
9421 main ()
9423 return ldopen ();
9425 return 0;
9427 _ACEOF
9428 if ac_fn_cxx_try_link "$LINENO"; then :
9429 gcc_cv_collect2_libs="$libs"; break
9431 rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 done
9434 LIBS="$save_LIBS"
9435 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9438 $as_echo "$gcc_cv_collect2_libs" >&6; }
9439 case $gcc_cv_collect2_libs in
9440 "none required") ;;
9441 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9442 esac
9445 # When building Ada code on Alpha, we need exc_resume which is usually in
9446 # -lexc. So test for it.
9447 save_LIBS="$LIBS"
9448 LIBS=
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9450 $as_echo_n "checking for library containing exc_resume... " >&6; }
9451 if test "${ac_cv_search_exc_resume+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 ac_func_search_save_LIBS=$LIBS
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9458 /* Override any GCC internal prototype to avoid an error.
9459 Use char because int might match the return type of a GCC
9460 builtin and then its argument prototype would still apply. */
9461 #ifdef __cplusplus
9462 extern "C"
9463 #endif
9464 char exc_resume ();
9466 main ()
9468 return exc_resume ();
9470 return 0;
9472 _ACEOF
9473 for ac_lib in '' exc; do
9474 if test -z "$ac_lib"; then
9475 ac_res="none required"
9476 else
9477 ac_res=-l$ac_lib
9478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9480 if ac_fn_cxx_try_link "$LINENO"; then :
9481 ac_cv_search_exc_resume=$ac_res
9483 rm -f core conftest.err conftest.$ac_objext \
9484 conftest$ac_exeext
9485 if test "${ac_cv_search_exc_resume+set}" = set; then :
9486 break
9488 done
9489 if test "${ac_cv_search_exc_resume+set}" = set; then :
9491 else
9492 ac_cv_search_exc_resume=no
9494 rm conftest.$ac_ext
9495 LIBS=$ac_func_search_save_LIBS
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9498 $as_echo "$ac_cv_search_exc_resume" >&6; }
9499 ac_res=$ac_cv_search_exc_resume
9500 if test "$ac_res" != no; then :
9501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9505 GNAT_LIBEXC="$LIBS"
9506 LIBS="$save_LIBS"
9509 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9510 save_LIBS="$LIBS"
9511 LIBS=
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9513 $as_echo_n "checking for library containing kstat_open... " >&6; }
9514 if test "${ac_cv_search_kstat_open+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 ac_func_search_save_LIBS=$LIBS
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char kstat_open ();
9529 main ()
9531 return kstat_open ();
9533 return 0;
9535 _ACEOF
9536 for ac_lib in '' kstat; do
9537 if test -z "$ac_lib"; then
9538 ac_res="none required"
9539 else
9540 ac_res=-l$ac_lib
9541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9543 if ac_fn_cxx_try_link "$LINENO"; then :
9544 ac_cv_search_kstat_open=$ac_res
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext
9548 if test "${ac_cv_search_kstat_open+set}" = set; then :
9549 break
9551 done
9552 if test "${ac_cv_search_kstat_open+set}" = set; then :
9554 else
9555 ac_cv_search_kstat_open=no
9557 rm conftest.$ac_ext
9558 LIBS=$ac_func_search_save_LIBS
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9561 $as_echo "$ac_cv_search_kstat_open" >&6; }
9562 ac_res=$ac_cv_search_kstat_open
9563 if test "$ac_res" != no; then :
9564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9568 EXTRA_GCC_LIBS="$LIBS"
9569 LIBS="$save_LIBS"
9572 # Some systems put ldexp and frexp in libm instead of libc; assume
9573 # they're both in the same place. jcf-dump needs them.
9574 save_LIBS="$LIBS"
9575 LIBS=
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9577 $as_echo_n "checking for library containing ldexp... " >&6; }
9578 if test "${ac_cv_search_ldexp+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 ac_func_search_save_LIBS=$LIBS
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 char ldexp ();
9593 main ()
9595 return ldexp ();
9597 return 0;
9599 _ACEOF
9600 for ac_lib in '' m; do
9601 if test -z "$ac_lib"; then
9602 ac_res="none required"
9603 else
9604 ac_res=-l$ac_lib
9605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9607 if ac_fn_cxx_try_link "$LINENO"; then :
9608 ac_cv_search_ldexp=$ac_res
9610 rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext
9612 if test "${ac_cv_search_ldexp+set}" = set; then :
9613 break
9615 done
9616 if test "${ac_cv_search_ldexp+set}" = set; then :
9618 else
9619 ac_cv_search_ldexp=no
9621 rm conftest.$ac_ext
9622 LIBS=$ac_func_search_save_LIBS
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9625 $as_echo "$ac_cv_search_ldexp" >&6; }
9626 ac_res=$ac_cv_search_ldexp
9627 if test "$ac_res" != no; then :
9628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9632 LDEXP_LIB="$LIBS"
9633 LIBS="$save_LIBS"
9636 # Use <inttypes.h> only if it exists,
9637 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9638 # PRId64
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9640 $as_echo_n "checking for inttypes.h... " >&6; }
9641 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9642 $as_echo_n "(cached) " >&6
9643 else
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646 #define __STDC_FORMAT_MACROS
9647 #include <sys/types.h>
9648 #include <inttypes.h>
9650 main ()
9652 intmax_t i = -1;
9653 #ifndef PRId64
9654 choke me
9655 #endif
9657 return 0;
9659 _ACEOF
9660 if ac_fn_cxx_try_compile "$LINENO"; then :
9661 gcc_cv_header_inttypes_h=yes
9662 else
9663 gcc_cv_header_inttypes_h=no
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9669 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9670 if test $gcc_cv_header_inttypes_h = yes; then
9672 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9678 for ac_func in times clock kill getrlimit setrlimit atoq \
9679 popen sysconf strsignal getrusage nl_langinfo \
9680 gettimeofday mbstowcs wcswidth mmap setlocale \
9681 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
9682 do :
9683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9684 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9685 eval as_val=\$$as_ac_var
9686 if test "x$as_val" = x""yes; then :
9687 cat >>confdefs.h <<_ACEOF
9688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9689 _ACEOF
9692 done
9695 if test x$ac_cv_func_mbstowcs = xyes; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9697 $as_echo_n "checking whether mbstowcs works... " >&6; }
9698 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9699 $as_echo_n "(cached) " >&6
9700 else
9701 if test "$cross_compiling" = yes; then :
9702 gcc_cv_func_mbstowcs_works=yes
9703 else
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706 #include <stdlib.h>
9707 int main()
9709 mbstowcs(0, "", 0);
9710 return 0;
9712 _ACEOF
9713 if ac_fn_cxx_try_run "$LINENO"; then :
9714 gcc_cv_func_mbstowcs_works=yes
9715 else
9716 gcc_cv_func_mbstowcs_works=no
9718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9719 conftest.$ac_objext conftest.beam conftest.$ac_ext
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9724 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9725 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9727 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9732 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9733 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9735 else
9737 cat >>confdefs.h <<_ACEOF
9738 #define ssize_t int
9739 _ACEOF
9743 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9744 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9746 else
9748 cat >>confdefs.h <<_ACEOF
9749 #define caddr_t char *
9750 _ACEOF
9756 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9757 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9758 gcc_header_sys_mman_h=yes
9759 else
9760 gcc_header_sys_mman_h=no
9763 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9764 if test "x$ac_cv_func_mmap" = x""yes; then :
9765 gcc_func_mmap=yes
9766 else
9767 gcc_func_mmap=no
9770 if test "$gcc_header_sys_mman_h" != yes \
9771 || test "$gcc_func_mmap" != yes; then
9772 gcc_cv_func_mmap_file=no
9773 gcc_cv_func_mmap_dev_zero=no
9774 gcc_cv_func_mmap_anon=no
9775 else
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9777 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9778 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 # Add a system to this blacklist if
9782 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9783 # memory area containing the same data that you'd get if you applied
9784 # read() to the same fd. The only system known to have a problem here
9785 # is VMS, where text files have record structure.
9786 case "$host_os" in
9787 *vms* | ultrix*)
9788 gcc_cv_func_mmap_file=no ;;
9790 gcc_cv_func_mmap_file=yes;;
9791 esac
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9794 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9796 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9797 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9799 else
9800 # Add a system to this blacklist if it has mmap() but /dev/zero
9801 # does not exist, or if mmapping /dev/zero does not give anonymous
9802 # zeroed pages with both the following properties:
9803 # 1. If you map N consecutive pages in with one call, and then
9804 # unmap any subset of those pages, the pages that were not
9805 # explicitly unmapped remain accessible.
9806 # 2. If you map two adjacent blocks of memory and then unmap them
9807 # both at once, they must both go away.
9808 # Systems known to be in this category are Windows (all variants),
9809 # VMS, and Darwin.
9810 case "$host_os" in
9811 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9812 gcc_cv_func_mmap_dev_zero=no ;;
9814 gcc_cv_func_mmap_dev_zero=yes;;
9815 esac
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9818 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9820 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9822 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9823 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 #include <sys/types.h>
9829 #include <sys/mman.h>
9830 #include <unistd.h>
9832 #ifndef MAP_ANONYMOUS
9833 #define MAP_ANONYMOUS MAP_ANON
9834 #endif
9837 main ()
9839 int n = MAP_ANONYMOUS;
9841 return 0;
9843 _ACEOF
9844 if ac_fn_cxx_try_compile "$LINENO"; then :
9845 gcc_cv_decl_map_anon=yes
9846 else
9847 gcc_cv_decl_map_anon=no
9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9852 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9854 if test $gcc_cv_decl_map_anon = no; then
9855 gcc_cv_func_mmap_anon=no
9856 else
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9858 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9859 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9860 $as_echo_n "(cached) " >&6
9861 else
9862 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9863 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9864 # doesn't give anonymous zeroed pages with the same properties listed
9865 # above for use of /dev/zero.
9866 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9867 case "$host_os" in
9868 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9869 gcc_cv_func_mmap_anon=no ;;
9871 gcc_cv_func_mmap_anon=yes;;
9872 esac
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9875 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9879 if test $gcc_cv_func_mmap_file = yes; then
9881 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9884 if test $gcc_cv_func_mmap_dev_zero = yes; then
9886 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9889 if test $gcc_cv_func_mmap_anon = yes; then
9891 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9896 case "${host}" in
9897 *-*-*vms*)
9898 # Under VMS, vfork works very differently than on Unix. The standard test
9899 # won't work, and it isn't easily adaptable. It makes more sense to
9900 # just force it.
9901 ac_cv_func_vfork_works=yes
9903 esac
9904 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9905 if test "x$ac_cv_type_pid_t" = x""yes; then :
9907 else
9909 cat >>confdefs.h <<_ACEOF
9910 #define pid_t int
9911 _ACEOF
9915 for ac_header in vfork.h
9916 do :
9917 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9918 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9919 cat >>confdefs.h <<_ACEOF
9920 #define HAVE_VFORK_H 1
9921 _ACEOF
9924 done
9926 for ac_func in fork vfork
9927 do :
9928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9929 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9930 eval as_val=\$$as_ac_var
9931 if test "x$as_val" = x""yes; then :
9932 cat >>confdefs.h <<_ACEOF
9933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9934 _ACEOF
9937 done
9939 if test "x$ac_cv_func_fork" = xyes; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9941 $as_echo_n "checking for working fork... " >&6; }
9942 if test "${ac_cv_func_fork_works+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 if test "$cross_compiling" = yes; then :
9946 ac_cv_func_fork_works=cross
9947 else
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9949 /* end confdefs.h. */
9950 $ac_includes_default
9952 main ()
9955 /* By Ruediger Kuhlmann. */
9956 return fork () < 0;
9959 return 0;
9961 _ACEOF
9962 if ac_fn_cxx_try_run "$LINENO"; then :
9963 ac_cv_func_fork_works=yes
9964 else
9965 ac_cv_func_fork_works=no
9967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9968 conftest.$ac_objext conftest.beam conftest.$ac_ext
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9973 $as_echo "$ac_cv_func_fork_works" >&6; }
9975 else
9976 ac_cv_func_fork_works=$ac_cv_func_fork
9978 if test "x$ac_cv_func_fork_works" = xcross; then
9979 case $host in
9980 *-*-amigaos* | *-*-msdosdjgpp*)
9981 # Override, as these systems have only a dummy fork() stub
9982 ac_cv_func_fork_works=no
9985 ac_cv_func_fork_works=yes
9987 esac
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9989 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9991 ac_cv_func_vfork_works=$ac_cv_func_vfork
9992 if test "x$ac_cv_func_vfork" = xyes; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9994 $as_echo_n "checking for working vfork... " >&6; }
9995 if test "${ac_cv_func_vfork_works+set}" = set; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 if test "$cross_compiling" = yes; then :
9999 ac_cv_func_vfork_works=cross
10000 else
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10003 /* Thanks to Paul Eggert for this test. */
10004 $ac_includes_default
10005 #include <sys/wait.h>
10006 #ifdef HAVE_VFORK_H
10007 # include <vfork.h>
10008 #endif
10009 /* On some sparc systems, changes by the child to local and incoming
10010 argument registers are propagated back to the parent. The compiler
10011 is told about this with #include <vfork.h>, but some compilers
10012 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10013 static variable whose address is put into a register that is
10014 clobbered by the vfork. */
10015 static void
10016 #ifdef __cplusplus
10017 sparc_address_test (int arg)
10018 # else
10019 sparc_address_test (arg) int arg;
10020 #endif
10022 static pid_t child;
10023 if (!child) {
10024 child = vfork ();
10025 if (child < 0) {
10026 perror ("vfork");
10027 _exit(2);
10029 if (!child) {
10030 arg = getpid();
10031 write(-1, "", 0);
10032 _exit (arg);
10038 main ()
10040 pid_t parent = getpid ();
10041 pid_t child;
10043 sparc_address_test (0);
10045 child = vfork ();
10047 if (child == 0) {
10048 /* Here is another test for sparc vfork register problems. This
10049 test uses lots of local variables, at least as many local
10050 variables as main has allocated so far including compiler
10051 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10052 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10053 reuse the register of parent for one of the local variables,
10054 since it will think that parent can't possibly be used any more
10055 in this routine. Assigning to the local variable will thus
10056 munge parent in the parent process. */
10057 pid_t
10058 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10059 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10060 /* Convince the compiler that p..p7 are live; otherwise, it might
10061 use the same hardware register for all 8 local variables. */
10062 if (p != p1 || p != p2 || p != p3 || p != p4
10063 || p != p5 || p != p6 || p != p7)
10064 _exit(1);
10066 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10067 from child file descriptors. If the child closes a descriptor
10068 before it execs or exits, this munges the parent's descriptor
10069 as well. Test for this by closing stdout in the child. */
10070 _exit(close(fileno(stdout)) != 0);
10071 } else {
10072 int status;
10073 struct stat st;
10075 while (wait(&status) != child)
10077 return (
10078 /* Was there some problem with vforking? */
10079 child < 0
10081 /* Did the child fail? (This shouldn't happen.) */
10082 || status
10084 /* Did the vfork/compiler bug occur? */
10085 || parent != getpid()
10087 /* Did the file descriptor bug occur? */
10088 || fstat(fileno(stdout), &st) != 0
10092 _ACEOF
10093 if ac_fn_cxx_try_run "$LINENO"; then :
10094 ac_cv_func_vfork_works=yes
10095 else
10096 ac_cv_func_vfork_works=no
10098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10099 conftest.$ac_objext conftest.beam conftest.$ac_ext
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10104 $as_echo "$ac_cv_func_vfork_works" >&6; }
10107 if test "x$ac_cv_func_fork_works" = xcross; then
10108 ac_cv_func_vfork_works=$ac_cv_func_vfork
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10110 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10113 if test "x$ac_cv_func_vfork_works" = xyes; then
10115 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10117 else
10119 $as_echo "#define vfork fork" >>confdefs.h
10122 if test "x$ac_cv_func_fork_works" = xyes; then
10124 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10130 if test "X$prefix" = "XNONE"; then
10131 acl_final_prefix="$ac_default_prefix"
10132 else
10133 acl_final_prefix="$prefix"
10135 if test "X$exec_prefix" = "XNONE"; then
10136 acl_final_exec_prefix='${prefix}'
10137 else
10138 acl_final_exec_prefix="$exec_prefix"
10140 acl_save_prefix="$prefix"
10141 prefix="$acl_final_prefix"
10142 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10143 prefix="$acl_save_prefix"
10146 # Check whether --with-gnu-ld was given.
10147 if test "${with_gnu_ld+set}" = set; then :
10148 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10149 else
10150 with_gnu_ld=no
10153 # Prepare PATH_SEPARATOR.
10154 # The user is always right.
10155 if test "${PATH_SEPARATOR+set}" != set; then
10156 echo "#! /bin/sh" >conf$$.sh
10157 echo "exit 0" >>conf$$.sh
10158 chmod +x conf$$.sh
10159 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10160 PATH_SEPARATOR=';'
10161 else
10162 PATH_SEPARATOR=:
10164 rm -f conf$$.sh
10166 ac_prog=ld
10167 if test "$GCC" = yes; then
10168 # Check if gcc -print-prog-name=ld gives a path.
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10170 $as_echo_n "checking for ld used by GCC... " >&6; }
10171 case $host in
10172 *-*-mingw*)
10173 # gcc leaves a trailing carriage return which upsets mingw
10174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10177 esac
10178 case $ac_prog in
10179 # Accept absolute paths.
10180 [\\/]* | [A-Za-z]:[\\/]*)
10181 re_direlt='/[^/][^/]*/\.\./'
10182 # Canonicalize the path of ld
10183 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10184 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10185 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10186 done
10187 test -z "$LD" && LD="$ac_prog"
10190 # If it fails, then pretend we aren't using GCC.
10191 ac_prog=ld
10194 # If it is relative, then search for the first ld in PATH.
10195 with_gnu_ld=unknown
10197 esac
10198 elif test "$with_gnu_ld" = yes; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10200 $as_echo_n "checking for GNU ld... " >&6; }
10201 else
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10203 $as_echo_n "checking for non-GNU ld... " >&6; }
10205 if test "${acl_cv_path_LD+set}" = set; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 if test -z "$LD"; then
10209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10210 for ac_dir in $PATH; do
10211 test -z "$ac_dir" && ac_dir=.
10212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10213 acl_cv_path_LD="$ac_dir/$ac_prog"
10214 # Check to see if the program is GNU ld. I'd rather use --version,
10215 # but apparently some GNU ld's only accept -v.
10216 # Break only if it was the GNU/non-GNU ld that we prefer.
10217 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10218 test "$with_gnu_ld" != no && break
10219 else
10220 test "$with_gnu_ld" != yes && break
10223 done
10224 IFS="$ac_save_ifs"
10225 else
10226 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10230 LD="$acl_cv_path_LD"
10231 if test -n "$LD"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10233 $as_echo "$LD" >&6; }
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10238 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10240 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10241 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10245 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10246 acl_cv_prog_gnu_ld=yes
10247 else
10248 acl_cv_prog_gnu_ld=no
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10252 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10253 with_gnu_ld=$acl_cv_prog_gnu_ld
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10258 $as_echo_n "checking for shared library run path origin... " >&6; }
10259 if test "${acl_cv_rpath+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10263 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10264 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10265 . ./conftest.sh
10266 rm -f ./conftest.sh
10267 acl_cv_rpath=done
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10271 $as_echo "$acl_cv_rpath" >&6; }
10272 wl="$acl_cv_wl"
10273 libext="$acl_cv_libext"
10274 shlibext="$acl_cv_shlibext"
10275 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10276 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10277 hardcode_direct="$acl_cv_hardcode_direct"
10278 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10279 # Check whether --enable-rpath was given.
10280 if test "${enable_rpath+set}" = set; then :
10281 enableval=$enable_rpath; :
10282 else
10283 enable_rpath=yes
10293 use_additional=yes
10295 acl_save_prefix="$prefix"
10296 prefix="$acl_final_prefix"
10297 acl_save_exec_prefix="$exec_prefix"
10298 exec_prefix="$acl_final_exec_prefix"
10300 eval additional_includedir=\"$includedir\"
10301 eval additional_libdir=\"$libdir\"
10303 exec_prefix="$acl_save_exec_prefix"
10304 prefix="$acl_save_prefix"
10307 # Check whether --with-libiconv-prefix was given.
10308 if test "${with_libiconv_prefix+set}" = set; then :
10309 withval=$with_libiconv_prefix;
10310 if test "X$withval" = "Xno"; then
10311 use_additional=no
10312 else
10313 if test "X$withval" = "X"; then
10315 acl_save_prefix="$prefix"
10316 prefix="$acl_final_prefix"
10317 acl_save_exec_prefix="$exec_prefix"
10318 exec_prefix="$acl_final_exec_prefix"
10320 eval additional_includedir=\"$includedir\"
10321 eval additional_libdir=\"$libdir\"
10323 exec_prefix="$acl_save_exec_prefix"
10324 prefix="$acl_save_prefix"
10326 else
10327 additional_includedir="$withval/include"
10328 additional_libdir="$withval/lib"
10334 LIBICONV=
10335 LTLIBICONV=
10336 INCICONV=
10337 rpathdirs=
10338 ltrpathdirs=
10339 names_already_handled=
10340 names_next_round='iconv '
10341 while test -n "$names_next_round"; do
10342 names_this_round="$names_next_round"
10343 names_next_round=
10344 for name in $names_this_round; do
10345 already_handled=
10346 for n in $names_already_handled; do
10347 if test "$n" = "$name"; then
10348 already_handled=yes
10349 break
10351 done
10352 if test -z "$already_handled"; then
10353 names_already_handled="$names_already_handled $name"
10354 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10355 eval value=\"\$HAVE_LIB$uppername\"
10356 if test -n "$value"; then
10357 if test "$value" = yes; then
10358 eval value=\"\$LIB$uppername\"
10359 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10360 eval value=\"\$LTLIB$uppername\"
10361 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10362 else
10365 else
10366 found_dir=
10367 found_la=
10368 found_so=
10369 found_a=
10370 if test $use_additional = yes; then
10371 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10372 found_dir="$additional_libdir"
10373 found_so="$additional_libdir/lib$name.$shlibext"
10374 if test -f "$additional_libdir/lib$name.la"; then
10375 found_la="$additional_libdir/lib$name.la"
10377 else
10378 if test -f "$additional_libdir/lib$name.$libext"; then
10379 found_dir="$additional_libdir"
10380 found_a="$additional_libdir/lib$name.$libext"
10381 if test -f "$additional_libdir/lib$name.la"; then
10382 found_la="$additional_libdir/lib$name.la"
10387 if test "X$found_dir" = "X"; then
10388 for x in $LDFLAGS $LTLIBICONV; do
10390 acl_save_prefix="$prefix"
10391 prefix="$acl_final_prefix"
10392 acl_save_exec_prefix="$exec_prefix"
10393 exec_prefix="$acl_final_exec_prefix"
10394 eval x=\"$x\"
10395 exec_prefix="$acl_save_exec_prefix"
10396 prefix="$acl_save_prefix"
10398 case "$x" in
10399 -L*)
10400 dir=`echo "X$x" | sed -e 's/^X-L//'`
10401 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10402 found_dir="$dir"
10403 found_so="$dir/lib$name.$shlibext"
10404 if test -f "$dir/lib$name.la"; then
10405 found_la="$dir/lib$name.la"
10407 else
10408 if test -f "$dir/lib$name.$libext"; then
10409 found_dir="$dir"
10410 found_a="$dir/lib$name.$libext"
10411 if test -f "$dir/lib$name.la"; then
10412 found_la="$dir/lib$name.la"
10417 esac
10418 if test "X$found_dir" != "X"; then
10419 break
10421 done
10423 if test "X$found_dir" != "X"; then
10424 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10425 if test "X$found_so" != "X"; then
10426 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10428 else
10429 haveit=
10430 for x in $ltrpathdirs; do
10431 if test "X$x" = "X$found_dir"; then
10432 haveit=yes
10433 break
10435 done
10436 if test -z "$haveit"; then
10437 ltrpathdirs="$ltrpathdirs $found_dir"
10439 if test "$hardcode_direct" = yes; then
10440 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10441 else
10442 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10443 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10444 haveit=
10445 for x in $rpathdirs; do
10446 if test "X$x" = "X$found_dir"; then
10447 haveit=yes
10448 break
10450 done
10451 if test -z "$haveit"; then
10452 rpathdirs="$rpathdirs $found_dir"
10454 else
10455 haveit=
10456 for x in $LDFLAGS $LIBICONV; do
10458 acl_save_prefix="$prefix"
10459 prefix="$acl_final_prefix"
10460 acl_save_exec_prefix="$exec_prefix"
10461 exec_prefix="$acl_final_exec_prefix"
10462 eval x=\"$x\"
10463 exec_prefix="$acl_save_exec_prefix"
10464 prefix="$acl_save_prefix"
10466 if test "X$x" = "X-L$found_dir"; then
10467 haveit=yes
10468 break
10470 done
10471 if test -z "$haveit"; then
10472 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10474 if test "$hardcode_minus_L" != no; then
10475 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10476 else
10477 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10482 else
10483 if test "X$found_a" != "X"; then
10484 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10485 else
10486 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10489 additional_includedir=
10490 case "$found_dir" in
10491 */lib | */lib/)
10492 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10493 additional_includedir="$basedir/include"
10495 esac
10496 if test "X$additional_includedir" != "X"; then
10497 if test "X$additional_includedir" != "X/usr/include"; then
10498 haveit=
10499 if test "X$additional_includedir" = "X/usr/local/include"; then
10500 if test -n "$GCC"; then
10501 case $host_os in
10502 linux*) haveit=yes;;
10503 esac
10506 if test -z "$haveit"; then
10507 for x in $CPPFLAGS $INCICONV; do
10509 acl_save_prefix="$prefix"
10510 prefix="$acl_final_prefix"
10511 acl_save_exec_prefix="$exec_prefix"
10512 exec_prefix="$acl_final_exec_prefix"
10513 eval x=\"$x\"
10514 exec_prefix="$acl_save_exec_prefix"
10515 prefix="$acl_save_prefix"
10517 if test "X$x" = "X-I$additional_includedir"; then
10518 haveit=yes
10519 break
10521 done
10522 if test -z "$haveit"; then
10523 if test -d "$additional_includedir"; then
10524 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10530 if test -n "$found_la"; then
10531 save_libdir="$libdir"
10532 case "$found_la" in
10533 */* | *\\*) . "$found_la" ;;
10534 *) . "./$found_la" ;;
10535 esac
10536 libdir="$save_libdir"
10537 for dep in $dependency_libs; do
10538 case "$dep" in
10539 -L*)
10540 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10541 if test "X$additional_libdir" != "X/usr/lib"; then
10542 haveit=
10543 if test "X$additional_libdir" = "X/usr/local/lib"; then
10544 if test -n "$GCC"; then
10545 case $host_os in
10546 linux*) haveit=yes;;
10547 esac
10550 if test -z "$haveit"; then
10551 haveit=
10552 for x in $LDFLAGS $LIBICONV; do
10554 acl_save_prefix="$prefix"
10555 prefix="$acl_final_prefix"
10556 acl_save_exec_prefix="$exec_prefix"
10557 exec_prefix="$acl_final_exec_prefix"
10558 eval x=\"$x\"
10559 exec_prefix="$acl_save_exec_prefix"
10560 prefix="$acl_save_prefix"
10562 if test "X$x" = "X-L$additional_libdir"; then
10563 haveit=yes
10564 break
10566 done
10567 if test -z "$haveit"; then
10568 if test -d "$additional_libdir"; then
10569 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10572 haveit=
10573 for x in $LDFLAGS $LTLIBICONV; do
10575 acl_save_prefix="$prefix"
10576 prefix="$acl_final_prefix"
10577 acl_save_exec_prefix="$exec_prefix"
10578 exec_prefix="$acl_final_exec_prefix"
10579 eval x=\"$x\"
10580 exec_prefix="$acl_save_exec_prefix"
10581 prefix="$acl_save_prefix"
10583 if test "X$x" = "X-L$additional_libdir"; then
10584 haveit=yes
10585 break
10587 done
10588 if test -z "$haveit"; then
10589 if test -d "$additional_libdir"; then
10590 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10596 -R*)
10597 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10598 if test "$enable_rpath" != no; then
10599 haveit=
10600 for x in $rpathdirs; do
10601 if test "X$x" = "X$dir"; then
10602 haveit=yes
10603 break
10605 done
10606 if test -z "$haveit"; then
10607 rpathdirs="$rpathdirs $dir"
10609 haveit=
10610 for x in $ltrpathdirs; do
10611 if test "X$x" = "X$dir"; then
10612 haveit=yes
10613 break
10615 done
10616 if test -z "$haveit"; then
10617 ltrpathdirs="$ltrpathdirs $dir"
10621 -l*)
10622 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10624 *.la)
10625 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10628 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10629 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10631 esac
10632 done
10634 else
10635 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10636 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10640 done
10641 done
10642 if test "X$rpathdirs" != "X"; then
10643 if test -n "$hardcode_libdir_separator"; then
10644 alldirs=
10645 for found_dir in $rpathdirs; do
10646 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10647 done
10648 acl_save_libdir="$libdir"
10649 libdir="$alldirs"
10650 eval flag=\"$hardcode_libdir_flag_spec\"
10651 libdir="$acl_save_libdir"
10652 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10653 else
10654 for found_dir in $rpathdirs; do
10655 acl_save_libdir="$libdir"
10656 libdir="$found_dir"
10657 eval flag=\"$hardcode_libdir_flag_spec\"
10658 libdir="$acl_save_libdir"
10659 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10660 done
10663 if test "X$ltrpathdirs" != "X"; then
10664 for found_dir in $ltrpathdirs; do
10665 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10666 done
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10676 $as_echo_n "checking for iconv... " >&6; }
10677 if test "${am_cv_func_iconv+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10681 am_cv_func_iconv="no, consider installing GNU libiconv"
10682 am_cv_lib_iconv=no
10683 am_save_CPPFLAGS="$CPPFLAGS"
10684 CPPFLAGS="$CPPFLAGS $INCICONV"
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 #include <stdlib.h>
10688 #include <iconv.h>
10690 main ()
10692 iconv_t cd = iconv_open("","");
10693 iconv(cd,NULL,NULL,NULL,NULL);
10694 iconv_close(cd);
10696 return 0;
10698 _ACEOF
10699 if ac_fn_cxx_try_link "$LINENO"; then :
10700 am_cv_func_iconv=yes
10702 rm -f core conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
10704 CPPFLAGS="$am_save_CPPFLAGS"
10706 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10707 for _libs in .libs _libs; do
10708 am_save_CPPFLAGS="$CPPFLAGS"
10709 am_save_LIBS="$LIBS"
10710 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10711 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713 /* end confdefs.h. */
10714 #include <stdlib.h>
10715 #include <iconv.h>
10717 main ()
10719 iconv_t cd = iconv_open("","");
10720 iconv(cd,NULL,NULL,NULL,NULL);
10721 iconv_close(cd);
10723 return 0;
10725 _ACEOF
10726 if ac_fn_cxx_try_link "$LINENO"; then :
10727 INCICONV="-I../libiconv/include"
10728 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10729 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10730 am_cv_lib_iconv=yes
10731 am_cv_func_iconv=yes
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 CPPFLAGS="$am_save_CPPFLAGS"
10736 LIBS="$am_save_LIBS"
10737 if test "$am_cv_func_iconv" = "yes"; then
10738 break
10740 done
10743 if test "$am_cv_func_iconv" != yes; then
10744 am_save_CPPFLAGS="$CPPFLAGS"
10745 am_save_LIBS="$LIBS"
10746 CPPFLAGS="$LIBS $INCICONV"
10747 LIBS="$LIBS $LIBICONV"
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 #include <stdlib.h>
10751 #include <iconv.h>
10753 main ()
10755 iconv_t cd = iconv_open("","");
10756 iconv(cd,NULL,NULL,NULL,NULL);
10757 iconv_close(cd);
10759 return 0;
10761 _ACEOF
10762 if ac_fn_cxx_try_link "$LINENO"; then :
10763 am_cv_lib_iconv=yes
10764 am_cv_func_iconv=yes
10766 rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10768 CPPFLAGS="$am_save_CPPFLAGS"
10769 LIBS="$am_save_LIBS"
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10774 $as_echo "$am_cv_func_iconv" >&6; }
10775 if test "$am_cv_func_iconv" = yes; then
10777 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10780 if test "$am_cv_lib_iconv" = yes; then
10782 for element in $INCICONV; do
10783 haveit=
10784 for x in $CPPFLAGS; do
10786 acl_save_prefix="$prefix"
10787 prefix="$acl_final_prefix"
10788 acl_save_exec_prefix="$exec_prefix"
10789 exec_prefix="$acl_final_exec_prefix"
10790 eval x=\"$x\"
10791 exec_prefix="$acl_save_exec_prefix"
10792 prefix="$acl_save_prefix"
10794 if test "X$x" = "X$element"; then
10795 haveit=yes
10796 break
10798 done
10799 if test -z "$haveit"; then
10800 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10802 done
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10805 $as_echo_n "checking how to link with libiconv... " >&6; }
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10807 $as_echo "$LIBICONV" >&6; }
10808 else
10809 LIBICONV=
10810 LTLIBICONV=
10815 if test "$am_cv_func_iconv" = yes; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10817 $as_echo_n "checking for iconv declaration... " >&6; }
10818 if test "${am_cv_proto_iconv+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10825 #include <stdlib.h>
10826 #include <iconv.h>
10827 extern
10828 #ifdef __cplusplus
10830 #endif
10831 #if defined(__STDC__) || defined(__cplusplus)
10832 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10833 #else
10834 size_t iconv();
10835 #endif
10838 main ()
10842 return 0;
10844 _ACEOF
10845 if ac_fn_cxx_try_compile "$LINENO"; then :
10846 am_cv_proto_iconv_arg1=""
10847 else
10848 am_cv_proto_iconv_arg1="const"
10850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10851 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);"
10854 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10856 }$am_cv_proto_iconv" >&5
10857 $as_echo "${ac_t:-
10858 }$am_cv_proto_iconv" >&6; }
10860 cat >>confdefs.h <<_ACEOF
10861 #define ICONV_CONST $am_cv_proto_iconv_arg1
10862 _ACEOF
10867 # Until we have in-tree GNU iconv:
10868 LIBICONV_DEP=
10869 if test -f "$LTLIBICONV"; then
10870 LIBICONV_DEP=$LTLIBICONV
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10876 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10877 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10882 #include <locale.h>
10884 main ()
10886 return LC_MESSAGES
10888 return 0;
10890 _ACEOF
10891 if ac_fn_cxx_try_link "$LINENO"; then :
10892 am_cv_val_LC_MESSAGES=yes
10893 else
10894 am_cv_val_LC_MESSAGES=no
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10900 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10901 if test $am_cv_val_LC_MESSAGES = yes; then
10903 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10910 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10911 if test "${am_cv_langinfo_codeset+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916 #include <langinfo.h>
10918 main ()
10920 char* cs = nl_langinfo(CODESET);
10922 return 0;
10924 _ACEOF
10925 if ac_fn_cxx_try_link "$LINENO"; then :
10926 am_cv_langinfo_codeset=yes
10927 else
10928 am_cv_langinfo_codeset=no
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10935 $as_echo "$am_cv_langinfo_codeset" >&6; }
10936 if test $am_cv_langinfo_codeset = yes; then
10938 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10943 # We will need to find libiberty.h and ansidecl.h
10944 saved_CFLAGS="$CFLAGS"
10945 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10946 saved_CXXFLAGS="$CXXFLAGS"
10947 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10949 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10950 # normal autoconf function for these. But force definition of
10951 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10952 # basename handling in libiberty.h.
10953 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10954 #undef HAVE_DECL_BASENAME
10955 #define HAVE_DECL_BASENAME 1
10956 #include \"ansidecl.h\"
10957 #include \"system.h\"
10959 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10960 ac_have_decl=1
10961 else
10962 ac_have_decl=0
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_DECL_BASENAME $ac_have_decl
10967 _ACEOF
10968 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10969 #undef HAVE_DECL_BASENAME
10970 #define HAVE_DECL_BASENAME 1
10971 #include \"ansidecl.h\"
10972 #include \"system.h\"
10974 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10975 ac_have_decl=1
10976 else
10977 ac_have_decl=0
10980 cat >>confdefs.h <<_ACEOF
10981 #define HAVE_DECL_STRSTR $ac_have_decl
10982 _ACEOF
10985 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10986 madvise stpcpy strnlen strsignal strverscmp \
10987 strtol strtoul strtoll strtoull setenv unsetenv \
10988 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10989 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
10991 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10993 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10994 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
10999 #undef $ac_tr_decl
11000 #define $ac_tr_decl 1
11002 #include "ansidecl.h"
11003 #include "system.h"
11006 main ()
11008 #ifndef $ac_func
11009 char *(*pfn) = (char *(*)) $ac_func ;
11010 #endif
11012 return 0;
11014 _ACEOF
11015 if ac_fn_cxx_try_compile "$LINENO"; then :
11016 eval "gcc_cv_have_decl_$ac_func=yes"
11017 else
11018 eval "gcc_cv_have_decl_$ac_func=no"
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11023 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11025 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11026 #define $ac_tr_decl 1
11027 _ACEOF
11029 else
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11032 #define $ac_tr_decl 0
11033 _ACEOF
11037 done
11040 for ac_func in getrlimit setrlimit getrusage
11042 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11044 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11045 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050 #undef $ac_tr_decl
11051 #define $ac_tr_decl 1
11053 #include "ansidecl.h"
11054 #include "system.h"
11055 #ifdef HAVE_SYS_RESOURCE_H
11056 #include <sys/resource.h>
11057 #endif
11061 main ()
11063 #ifndef $ac_func
11064 char *(*pfn) = (char *(*)) $ac_func ;
11065 #endif
11067 return 0;
11069 _ACEOF
11070 if ac_fn_cxx_try_compile "$LINENO"; then :
11071 eval "gcc_cv_have_decl_$ac_func=yes"
11072 else
11073 eval "gcc_cv_have_decl_$ac_func=no"
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11080 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11081 #define $ac_tr_decl 1
11082 _ACEOF
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11087 #define $ac_tr_decl 0
11088 _ACEOF
11092 done
11095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11098 #include "ansidecl.h"
11099 #include "system.h"
11100 #ifdef HAVE_SYS_RESOURCE_H
11101 #include <sys/resource.h>
11102 #endif
11105 main ()
11107 rlim_t l = 0;
11109 return 0;
11111 _ACEOF
11112 if ac_fn_cxx_try_compile "$LINENO"; then :
11114 else
11116 $as_echo "#define rlim_t long" >>confdefs.h
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11121 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11122 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11123 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11124 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11125 for ac_func in ldgetname
11127 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11129 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11130 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11135 #undef $ac_tr_decl
11136 #define $ac_tr_decl 1
11138 #include "ansidecl.h"
11139 #include "system.h"
11140 #ifdef HAVE_LDFCN_H
11141 #undef FREAD
11142 #undef FWRITE
11143 #include <ldfcn.h>
11144 #endif
11148 main ()
11150 #ifndef $ac_func
11151 char *(*pfn) = (char *(*)) $ac_func ;
11152 #endif
11154 return 0;
11156 _ACEOF
11157 if ac_fn_cxx_try_compile "$LINENO"; then :
11158 eval "gcc_cv_have_decl_$ac_func=yes"
11159 else
11160 eval "gcc_cv_have_decl_$ac_func=no"
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11168 #define $ac_tr_decl 1
11169 _ACEOF
11171 else
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11174 #define $ac_tr_decl 0
11175 _ACEOF
11179 done
11182 for ac_func in times
11184 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11186 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11187 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11188 $as_echo_n "(cached) " >&6
11189 else
11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11192 #undef $ac_tr_decl
11193 #define $ac_tr_decl 1
11195 #include "ansidecl.h"
11196 #include "system.h"
11197 #ifdef HAVE_SYS_TIMES_H
11198 #include <sys/times.h>
11199 #endif
11203 main ()
11205 #ifndef $ac_func
11206 char *(*pfn) = (char *(*)) $ac_func ;
11207 #endif
11209 return 0;
11211 _ACEOF
11212 if ac_fn_cxx_try_compile "$LINENO"; then :
11213 eval "gcc_cv_have_decl_$ac_func=yes"
11214 else
11215 eval "gcc_cv_have_decl_$ac_func=no"
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11223 #define $ac_tr_decl 1
11224 _ACEOF
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11229 #define $ac_tr_decl 0
11230 _ACEOF
11234 done
11237 for ac_func in sigaltstack
11239 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11241 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11242 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11243 $as_echo_n "(cached) " >&6
11244 else
11245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11247 #undef $ac_tr_decl
11248 #define $ac_tr_decl 1
11250 #include "ansidecl.h"
11251 #include "system.h"
11252 #include <signal.h>
11256 main ()
11258 #ifndef $ac_func
11259 char *(*pfn) = (char *(*)) $ac_func ;
11260 #endif
11262 return 0;
11264 _ACEOF
11265 if ac_fn_cxx_try_compile "$LINENO"; then :
11266 eval "gcc_cv_have_decl_$ac_func=yes"
11267 else
11268 eval "gcc_cv_have_decl_$ac_func=no"
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11275 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11276 #define $ac_tr_decl 1
11277 _ACEOF
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11282 #define $ac_tr_decl 0
11283 _ACEOF
11287 done
11290 # More time-related stuff.
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11292 $as_echo_n "checking for struct tms... " >&6; }
11293 if test "${ac_cv_struct_tms+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 #include "ansidecl.h"
11301 #include "system.h"
11302 #ifdef HAVE_SYS_TIMES_H
11303 #include <sys/times.h>
11304 #endif
11307 main ()
11309 struct tms tms;
11311 return 0;
11313 _ACEOF
11314 if ac_fn_cxx_try_compile "$LINENO"; then :
11315 ac_cv_struct_tms=yes
11316 else
11317 ac_cv_struct_tms=no
11319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11322 $as_echo "$ac_cv_struct_tms" >&6; }
11323 if test $ac_cv_struct_tms = yes; then
11325 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11329 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11330 # revisit after autoconf 2.50.
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11332 $as_echo_n "checking for clock_t... " >&6; }
11333 if test "${gcc_cv_type_clock_t+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11340 #include "ansidecl.h"
11341 #include "system.h"
11344 main ()
11346 clock_t x;
11348 return 0;
11350 _ACEOF
11351 if ac_fn_cxx_try_compile "$LINENO"; then :
11352 gcc_cv_type_clock_t=yes
11353 else
11354 gcc_cv_type_clock_t=no
11356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11359 $as_echo "$gcc_cv_type_clock_t" >&6; }
11360 if test $gcc_cv_type_clock_t = yes; then
11362 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11366 # Check if F_SETLKW is supported by fcntl.
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11368 $as_echo_n "checking for F_SETLKW... " >&6; }
11369 if test "${ac_cv_f_setlkw+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11376 #include <fcntl.h>
11378 main ()
11381 struct flock fl;
11382 fl.l_whence = 0;
11383 fl.l_start = 0;
11384 fl.l_len = 0;
11385 fl.l_pid = 0;
11386 return fcntl (1, F_SETLKW, &fl);
11388 return 0;
11390 _ACEOF
11391 if ac_fn_cxx_try_compile "$LINENO"; then :
11392 ac_cv_f_setlkw=yes
11393 else
11394 ac_cv_f_setlkw=no
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11399 $as_echo "$ac_cv_f_setlkw" >&6; }
11400 if test $ac_cv_f_setlkw = yes; then
11402 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11406 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11407 CFLAGS="$saved_CFLAGS"
11408 CXXFLAGS="$saved_CXXFLAGS"
11410 # mkdir takes a single argument on some systems.
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11412 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11413 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11419 #include <sys/types.h>
11420 #ifdef HAVE_SYS_STAT_H
11421 # include <sys/stat.h>
11422 #endif
11423 #ifdef HAVE_UNISTD_H
11424 # include <unistd.h>
11425 #endif
11426 #ifdef HAVE_DIRECT_H
11427 # include <direct.h>
11428 #endif
11430 main ()
11432 mkdir ("foo", 0);
11434 return 0;
11436 _ACEOF
11437 if ac_fn_cxx_try_compile "$LINENO"; then :
11438 gcc_cv_mkdir_takes_one_arg=no
11439 else
11440 gcc_cv_mkdir_takes_one_arg=yes
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11445 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11446 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11448 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11453 # File extensions
11454 manext='.1'
11455 objext='.o'
11459 # With Setjmp/Longjmp based exception handling.
11460 # Check whether --enable-sjlj-exceptions was given.
11461 if test "${enable_sjlj_exceptions+set}" = set; then :
11462 enableval=$enable_sjlj_exceptions; case $target in
11463 *-*-hpux10*)
11464 if test $enableval != yes; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11466 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11467 enableval=yes
11470 esac
11471 force_sjlj_exceptions=yes
11472 else
11473 case $target in
11474 *-*-hpux10*)
11475 force_sjlj_exceptions=yes
11476 enableval=yes
11478 lm32*-*-*)
11479 force_sjlj_exceptions=yes
11480 enableval=yes
11483 force_sjlj_exceptions=no
11485 esac
11488 if test $force_sjlj_exceptions = yes; then
11489 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11491 cat >>confdefs.h <<_ACEOF
11492 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11493 _ACEOF
11497 # --------------------------------------------------------
11498 # Build, host, and target specific configuration fragments
11499 # --------------------------------------------------------
11501 # Collect build-machine-specific information.
11502 . ${srcdir}/config.build
11504 # Collect host-machine-specific information.
11505 . ${srcdir}/config.host
11507 target_gtfiles=
11509 # Collect target-machine-specific information.
11510 . ${srcdir}/config.gcc
11512 extra_objs="${host_extra_objs} ${extra_objs}"
11513 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11515 # Default the target-machine variables that were not explicitly set.
11516 if test x"$tm_file" = x
11517 then tm_file=$cpu_type/$cpu_type.h; fi
11519 if test x"$extra_headers" = x
11520 then extra_headers=; fi
11522 if test x$md_file = x
11523 then md_file=$cpu_type/$cpu_type.md; fi
11525 if test x$out_file = x
11526 then out_file=$cpu_type/$cpu_type.c; fi
11528 if test x"$tmake_file" = x
11529 then tmake_file=$cpu_type/t-$cpu_type
11532 # Support --enable-initfini-array.
11533 if test x$enable_initfini_array != xno; then
11534 tm_file="${tm_file} initfini-array.h"
11537 if test x"$dwarf2" = xyes
11538 then tm_file="$tm_file tm-dwarf2.h"
11541 # Say what files are being used for the output code and MD file.
11542 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11543 echo "Using \`$srcdir/config/$md_file' as machine description file."
11545 # If any of the xm_file variables contain nonexistent files, warn
11546 # about them and drop them.
11549 for x in $build_xm_file; do
11550 if test -f $srcdir/config/$x
11551 then bx="$bx $x"
11552 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11553 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11555 done
11556 build_xm_file="$bx"
11559 for x in $host_xm_file; do
11560 if test -f $srcdir/config/$x
11561 then hx="$hx $x"
11562 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11563 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11565 done
11566 host_xm_file="$hx"
11569 for x in $xm_file; do
11570 if test -f $srcdir/config/$x
11571 then tx="$tx $x"
11572 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11573 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11575 done
11576 xm_file="$tx"
11578 count=a
11579 for f in $tm_file; do
11580 count=${count}x
11581 done
11582 if test $count = ax; then
11583 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11584 else
11585 echo "Using the following target machine macro files:"
11586 for f in $tm_file; do
11587 echo " $srcdir/config/$f"
11588 done
11591 if test x$use_long_long_for_widest_fast_int = xyes; then
11593 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11597 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11599 cat >>confdefs.h <<_ACEOF
11600 #define HAVE_GNU_LD $gnu_ld_bool
11601 _ACEOF
11604 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11606 cat >>confdefs.h <<_ACEOF
11607 #define HAVE_GNU_AS $gnu_as_bool
11608 _ACEOF
11611 count=a
11612 for f in $host_xm_file; do
11613 count=${count}x
11614 done
11615 if test $count = a; then
11617 elif test $count = ax; then
11618 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11619 else
11620 echo "Using the following host machine macro files:"
11621 for f in $host_xm_file; do
11622 echo " $srcdir/config/$f"
11623 done
11625 echo "Using ${out_host_hook_obj} for host machine hooks."
11627 if test "$host_xm_file" != "$build_xm_file"; then
11628 count=a
11629 for f in $build_xm_file; do
11630 count=${count}x
11631 done
11632 if test $count = a; then
11634 elif test $count = ax; then
11635 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11636 else
11637 echo "Using the following build machine macro files:"
11638 for f in $build_xm_file; do
11639 echo " $srcdir/config/$f"
11640 done
11644 if test -n "$configured_native_system_header_dir"; then
11645 native_system_header_dir=$configured_native_system_header_dir
11647 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11650 case ${host} in
11651 powerpc*-*-darwin*)
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11653 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11654 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11660 #include <sys/cdefs.h>
11661 #include <sys/signal.h>
11662 #include <ucontext.h>
11663 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11665 _ACEOF
11666 if ac_fn_cxx_try_compile "$LINENO"; then :
11667 gcc_cv_mcontext_underscores=no
11668 else
11669 gcc_cv_mcontext_underscores=yes
11671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11674 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11675 if test $gcc_cv_mcontext_underscores = yes; then
11677 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11681 esac
11683 # ---------
11684 # Threading
11685 # ---------
11687 # Check if a valid thread package
11688 case ${enable_threads} in
11689 "" | no)
11690 # No threads
11691 target_thread_file='single'
11693 yes)
11694 # default
11695 target_thread_file='single'
11697 aix | dce | lynx | mipssde | posix | rtems | \
11698 single | tpf | vxworks | win32)
11699 target_thread_file=${enable_threads}
11702 echo "${enable_threads} is an unknown thread package" 1>&2
11703 exit 1
11705 esac
11707 if test x${thread_file} = x; then
11708 # No thread file set by target-specific clauses in config.gcc,
11709 # so use file chosen by default logic above
11710 thread_file=${target_thread_file}
11713 # --------
11714 # UNSORTED
11715 # --------
11717 use_cxa_atexit=no
11718 if test x$enable___cxa_atexit = xyes || \
11719 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11720 if test x$host = x$target; then
11721 case $host in
11722 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11723 # keyed to flag_use_cxa_atexit
11724 *-*-mingw32*)
11725 use_cxa_atexit=yes
11727 powerpc-ibm-aix*)
11728 use_cxa_atexit=yes
11731 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11732 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11733 use_cxa_atexit=yes
11734 else
11735 echo "__cxa_atexit can't be enabled on this target"
11739 esac
11740 else
11741 # We can't check for __cxa_atexit when building a cross, so assume
11742 # it is available
11743 use_cxa_atexit=yes
11745 if test x$use_cxa_atexit = xyes; then
11747 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11752 # Look for a file containing extra machine modes.
11753 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11754 extra_modes_file='$(srcdir)'/config/${extra_modes}
11757 cat >>confdefs.h <<_ACEOF
11758 #define EXTRA_MODES_FILE "config/$extra_modes"
11759 _ACEOF
11763 # Convert extra_options into a form suitable for Makefile use.
11764 extra_opt_files=
11765 all_opt_files=
11766 for f in $extra_options; do
11767 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11768 all_opt_files="$all_opt_files $srcdir/config/$f"
11769 done
11772 # auto-host.h is the file containing items generated by autoconf and is
11773 # the first file included by config.h.
11774 # If host=build, it is correct to have bconfig include auto-host.h
11775 # as well. If host!=build, we are in error and need to do more
11776 # work to find out the build config parameters.
11777 if test x$host = x$build
11778 then
11779 build_auto=auto-host.h
11780 else
11781 # We create a subdir, then run autoconf in the subdir.
11782 # To prevent recursion we set host and build for the new
11783 # invocation of configure to the build for this invocation
11784 # of configure.
11785 tempdir=build.$$
11786 rm -rf $tempdir
11787 mkdir $tempdir
11788 cd $tempdir
11789 case ${srcdir} in
11790 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11791 *) realsrcdir=../${srcdir};;
11792 esac
11793 # Clearing GMPINC is necessary to prevent host headers being
11794 # used by the build compiler. Defining GENERATOR_FILE stops
11795 # system.h from including gmp.h.
11796 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11797 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11798 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11799 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11800 ${realsrcdir}/configure \
11801 --enable-languages=${enable_languages-all} \
11802 --target=$target_alias --host=$build_alias --build=$build_alias
11804 # We just finished tests for the build machine, so rename
11805 # the file auto-build.h in the gcc directory.
11806 mv auto-host.h ../auto-build.h
11807 cd ..
11808 rm -rf $tempdir
11809 build_auto=auto-build.h
11813 tm_file="${tm_file} defaults.h"
11814 tm_p_file="${tm_p_file} tm-preds.h"
11815 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11816 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11817 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11818 # put this back in temporarily.
11819 xm_file="auto-host.h ansidecl.h ${xm_file}"
11821 # --------
11822 # UNSORTED
11823 # --------
11825 # Compile in configure arguments.
11826 if test -f configargs.h ; then
11827 # Being re-configured.
11828 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11829 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11830 else
11831 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11834 # Double all backslashes and backslash all quotes to turn
11835 # gcc_config_arguments into a C string.
11836 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11837 $gcc_config_arguments
11839 gcc_config_arguments_str=`cat conftest.out`
11840 rm -f conftest.out
11842 cat > configargs.h <<EOF
11843 /* Generated automatically. */
11844 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11845 static const char thread_model[] = "$thread_file";
11847 static const struct {
11848 const char *name, *value;
11849 } configure_default_options[] = $configure_default_options;
11852 gcc_BASEVER=`cat $srcdir/BASE-VER`
11853 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11854 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11855 if test -f $srcdir/REVISION ; then
11856 gcc_REVISION=`cat $srcdir/REVISION`
11857 else
11858 gcc_REVISION=""
11860 cat > plugin-version.h <<EOF
11861 #include "configargs.h"
11863 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11864 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11865 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11866 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11868 static char basever[] = "$gcc_BASEVER";
11869 static char datestamp[] = "$gcc_DATESTAMP";
11870 static char devphase[] = "$gcc_DEVPHASE";
11871 static char revision[] = "$gcc_REVISION";
11873 /* FIXME plugins: We should make the version information more precise.
11874 One way to do is to add a checksum. */
11876 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11877 devphase, revision,
11878 configuration_arguments};
11881 # Internationalization
11882 # If we haven't got the data from the intl directory,
11883 # assume NLS is disabled.
11884 USE_NLS=no
11885 LIBINTL=
11886 LIBINTL_DEP=
11887 INCINTL=
11888 XGETTEXT=
11889 GMSGFMT=
11890 POSUB=
11892 if test -f ../intl/config.intl; then
11893 . ../intl/config.intl
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11896 $as_echo_n "checking whether NLS is requested... " >&6; }
11897 if test x"$USE_NLS" != xyes; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899 $as_echo "no" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11904 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11908 $as_echo_n "checking for catalogs to be installed... " >&6; }
11909 # Look for .po and .gmo files in the source directory.
11910 CATALOGS=
11911 XLINGUAS=
11912 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11913 # If there aren't any .gmo files the shell will give us the
11914 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11915 # weeded out.
11916 case "$cat" in *\**)
11917 continue;;
11918 esac
11919 # The quadruple backslash is collapsed to a double backslash
11920 # by the backticks, then collapsed again by the double quotes,
11921 # leaving us with one backslash in the sed expression (right
11922 # before the dot that mustn't act as a wildcard).
11923 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11924 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11925 # The user is allowed to set LINGUAS to a list of languages to
11926 # install catalogs for. If it's empty that means "all of them."
11927 if test "x$LINGUAS" = x; then
11928 CATALOGS="$CATALOGS $cat"
11929 XLINGUAS="$XLINGUAS $lang"
11930 else
11931 case "$LINGUAS" in *$lang*)
11932 CATALOGS="$CATALOGS $cat"
11933 XLINGUAS="$XLINGUAS $lang"
11935 esac
11937 done
11938 LINGUAS="$XLINGUAS"
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11940 $as_echo "$LINGUAS" >&6; }
11943 DATADIRNAME=share
11945 INSTOBJEXT=.mo
11947 GENCAT=gencat
11949 CATOBJEXT=.gmo
11953 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11954 # -liconv on the link line twice.
11955 case "$LIBINTL" in *$LIBICONV*)
11956 LIBICONV= ;;
11957 esac
11959 # Check whether --enable-secureplt was given.
11960 if test "${enable_secureplt+set}" = set; then :
11961 enableval=$enable_secureplt;
11965 # Check whether --enable-leading-mingw64-underscores was given.
11966 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11967 enableval=$enable_leading_mingw64_underscores;
11970 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11972 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11976 # Check whether --enable-cld was given.
11977 if test "${enable_cld+set}" = set; then :
11978 enableval=$enable_cld;
11979 else
11980 enable_cld=no
11984 # Check whether --enable-frame-pointer was given.
11985 if test "${enable_frame_pointer+set}" = set; then :
11986 enableval=$enable_frame_pointer;
11987 else
11989 case $target_os in
11990 linux* | darwin[8912]*)
11991 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11992 # DWARF2.
11993 enable_frame_pointer=no
11996 enable_frame_pointer=yes
11998 esac
12003 # Windows32 Registry support for specifying GCC installation paths.
12004 # Check whether --enable-win32-registry was given.
12005 if test "${enable_win32_registry+set}" = set; then :
12006 enableval=$enable_win32_registry;
12010 case $host_os in
12011 win32 | pe | cygwin* | mingw32*)
12012 if test "x$enable_win32_registry" != xno; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12014 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12015 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12018 ac_func_search_save_LIBS=$LIBS
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025 #ifdef __cplusplus
12026 extern "C"
12027 #endif
12028 char RegOpenKeyExA ();
12030 main ()
12032 return RegOpenKeyExA ();
12034 return 0;
12036 _ACEOF
12037 for ac_lib in '' advapi32; do
12038 if test -z "$ac_lib"; then
12039 ac_res="none required"
12040 else
12041 ac_res=-l$ac_lib
12042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12044 if ac_fn_cxx_try_link "$LINENO"; then :
12045 ac_cv_search_RegOpenKeyExA=$ac_res
12047 rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext
12049 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12050 break
12052 done
12053 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12055 else
12056 ac_cv_search_RegOpenKeyExA=no
12058 rm conftest.$ac_ext
12059 LIBS=$ac_func_search_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12062 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12063 ac_res=$ac_cv_search_RegOpenKeyExA
12064 if test "$ac_res" != no; then :
12065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12067 else
12068 enable_win32_registry=no
12073 if test "x$enable_win32_registry" != xno; then
12075 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12078 if test "x$enable_win32_registry" != xyes \
12079 && test "x$enable_win32_registry" != x; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12083 _ACEOF
12088 esac
12090 # Get an absolute path to the GCC top-level source directory
12091 holddir=`${PWDCMD-pwd}`
12092 cd $srcdir
12093 topdir=`${PWDCMD-pwd}`
12094 cd $holddir
12096 # Conditionalize the makefile for this host machine.
12097 xmake_file=
12098 for f in ${host_xmake_file}
12100 if test -f ${srcdir}/config/$f
12101 then
12102 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12104 done
12106 # Conditionalize the makefile for this target machine.
12107 tmake_file_=
12108 for f in ${tmake_file}
12110 if test -f ${srcdir}/config/$f
12111 then
12112 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12114 done
12115 tmake_file="${tmake_file_}"
12117 out_object_file=`basename $out_file .c`.o
12118 common_out_object_file=`basename $common_out_file .c`.o
12120 tm_file_list="options.h"
12121 tm_include_list="options.h insn-constants.h"
12122 for f in $tm_file; do
12123 case $f in
12124 ./* )
12125 f=`echo $f | sed 's/^..//'`
12126 tm_file_list="${tm_file_list} $f"
12127 tm_include_list="${tm_include_list} $f"
12129 defaults.h )
12130 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12131 tm_include_list="${tm_include_list} $f"
12134 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12135 tm_include_list="${tm_include_list} config/$f"
12137 esac
12138 done
12140 tm_p_file_list=
12141 tm_p_include_list=
12142 for f in $tm_p_file; do
12143 case $f in
12144 tm-preds.h )
12145 tm_p_file_list="${tm_p_file_list} $f"
12146 tm_p_include_list="${tm_p_include_list} $f"
12149 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12150 tm_p_include_list="${tm_p_include_list} config/$f"
12151 esac
12152 done
12154 xm_file_list=
12155 xm_include_list=
12156 for f in $xm_file; do
12157 case $f in
12158 ansidecl.h )
12159 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12160 xm_include_list="${xm_include_list} $f"
12162 auto-host.h )
12163 xm_file_list="${xm_file_list} $f"
12164 xm_include_list="${xm_include_list} $f"
12167 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12168 xm_include_list="${xm_include_list} config/$f"
12170 esac
12171 done
12173 host_xm_file_list=
12174 host_xm_include_list=
12175 for f in $host_xm_file; do
12176 case $f in
12177 ansidecl.h )
12178 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12179 host_xm_include_list="${host_xm_include_list} $f"
12181 auto-host.h )
12182 host_xm_file_list="${host_xm_file_list} $f"
12183 host_xm_include_list="${host_xm_include_list} $f"
12186 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12187 host_xm_include_list="${host_xm_include_list} config/$f"
12189 esac
12190 done
12192 build_xm_file_list=
12193 for f in $build_xm_file; do
12194 case $f in
12195 ansidecl.h )
12196 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12197 build_xm_include_list="${build_xm_include_list} $f"
12199 auto-build.h | auto-host.h )
12200 build_xm_file_list="${build_xm_file_list} $f"
12201 build_xm_include_list="${build_xm_include_list} $f"
12204 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12205 build_xm_include_list="${build_xm_include_list} config/$f"
12207 esac
12208 done
12210 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12211 # cross-compiler which does not use the native headers and libraries.
12212 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12213 CROSS=
12214 ALL=all.internal
12215 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12217 if test "x$with_build_sysroot" != x; then
12218 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12219 else
12220 # This value is used, even on a native system, because
12221 # CROSS_SYSTEM_HEADER_DIR is just
12222 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12223 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12226 if test x$host != x$target
12227 then
12228 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12229 ALL=all.cross
12230 SYSTEM_HEADER_DIR=$build_system_header_dir
12231 case "$host","$target" in
12232 # Darwin crosses can use the host system's libraries and headers,
12233 # because of the fat library support. Of course, it must be the
12234 # same version of Darwin on both sides. Allow the user to
12235 # just say --target=foo-darwin without a version number to mean
12236 # "the version on this system".
12237 *-*-darwin*,*-*-darwin*)
12238 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12239 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12240 if test $hostos = $targetos -o $targetos = darwin ; then
12241 CROSS=
12242 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12243 with_headers=yes
12247 i?86-*-*,x86_64-*-* \
12248 | powerpc*-*-*,powerpc64*-*-*)
12249 CROSS="$CROSS -DNATIVE_CROSS" ;;
12250 esac
12252 case $target in
12253 *-*-mingw*)
12254 if test "x$with_headers" = x; then
12255 with_headers=yes
12260 esac
12261 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12262 SYSTEM_HEADER_DIR=$build_system_header_dir
12265 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12266 if test "x$with_headers" != x; then
12267 target_header_dir=$with_headers
12268 elif test "x$with_sysroot" = x; then
12269 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12270 elif test "x$with_build_sysroot" != "x"; then
12271 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12272 elif test "x$with_sysroot" = xyes; then
12273 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12274 else
12275 target_header_dir="${with_sysroot}${native_system_header_dir}"
12277 else
12278 target_header_dir=${native_system_header_dir}
12281 # If this is a cross-compiler that does not
12282 # have its own set of headers then define
12283 # inhibit_libc
12285 # If this is using newlib, without having the headers available now,
12286 # then define inhibit_libc in LIBGCC2_CFLAGS.
12287 # This prevents libgcc2 from containing any code which requires libc
12288 # support.
12289 : ${inhibit_libc=false}
12290 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12291 test x$with_newlib = xyes ; } &&
12292 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12293 inhibit_libc=true
12297 # When building gcc with a cross-compiler, we need to adjust things so
12298 # that the generator programs are still built with the native compiler.
12299 # Also, we cannot run fixincludes.
12301 # These are the normal (build=host) settings:
12302 CC_FOR_BUILD='$(CC)'
12303 CXX_FOR_BUILD='$(CXX)'
12304 BUILD_CFLAGS='$(ALL_CFLAGS)'
12305 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12306 BUILD_LDFLAGS='$(LDFLAGS)'
12307 STMP_FIXINC=stmp-fixinc
12309 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12310 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12312 # And these apply if build != host, or we are generating coverage data
12313 if test x$build != x$host || test "x$coverage_flags" != x
12314 then
12315 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12316 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12317 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12319 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12320 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12321 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12322 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12327 # Expand extra_headers to include complete path.
12328 # This substitutes for lots of t-* files.
12329 extra_headers_list=
12330 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12331 for file in ${extra_headers} ; do
12332 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12333 done
12335 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12336 if test x"$use_gcc_tgmath" = xyes
12337 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12340 # Define collect2 in Makefile.
12341 case $host_can_use_collect2 in
12342 no) collect2= ;;
12343 *) collect2='collect2$(exeext)' ;;
12344 esac
12347 # Add a definition of USE_COLLECT2 if system wants one.
12348 case $use_collect2 in
12349 no) use_collect2= ;;
12350 "") ;;
12352 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12353 xm_defines="${xm_defines} USE_COLLECT2"
12354 case $host_can_use_collect2 in
12356 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12358 esac
12360 esac
12363 cat >>confdefs.h <<_ACEOF
12364 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12365 _ACEOF
12368 # ---------------------------
12369 # Assembler & linker features
12370 # ---------------------------
12372 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12373 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12374 # However when ld-new is first executed from the build tree, libtool will
12375 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12376 # to the build tree. While doing this we need to use the previous-stage
12377 # linker, or we have an infinite loop. The presence of a shell script as
12378 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12379 # the gcc/collect-ld script. So we need to know how libtool works, or
12380 # exec-tool will fail.
12383 case `pwd` in
12384 *\ * | *\ *)
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12386 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12387 esac
12391 macro_version='2.2.7a'
12392 macro_revision='1.3134'
12406 ltmain="$ac_aux_dir/ltmain.sh"
12408 # Backslashify metacharacters that are still active within
12409 # double-quoted strings.
12410 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12412 # Same as above, but do not quote variable references.
12413 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12415 # Sed substitution to delay expansion of an escaped shell variable in a
12416 # double_quote_subst'ed string.
12417 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12419 # Sed substitution to delay expansion of an escaped single quote.
12420 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12422 # Sed substitution to avoid accidental globbing in evaled expressions
12423 no_glob_subst='s/\*/\\\*/g'
12425 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12426 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12427 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12430 $as_echo_n "checking how to print strings... " >&6; }
12431 # Test print first, because it will be a builtin if present.
12432 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12433 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12434 ECHO='print -r --'
12435 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12436 ECHO='printf %s\n'
12437 else
12438 # Use this function as a fallback that always works.
12439 func_fallback_echo ()
12441 eval 'cat <<_LTECHO_EOF
12443 _LTECHO_EOF'
12445 ECHO='func_fallback_echo'
12448 # func_echo_all arg...
12449 # Invoke $ECHO with all args, space-separated.
12450 func_echo_all ()
12452 $ECHO ""
12455 case "$ECHO" in
12456 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12457 $as_echo "printf" >&6; } ;;
12458 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12459 $as_echo "print -r" >&6; } ;;
12460 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12461 $as_echo "cat" >&6; } ;;
12462 esac
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12478 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12479 if test "${ac_cv_path_SED+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12483 for ac_i in 1 2 3 4 5 6 7; do
12484 ac_script="$ac_script$as_nl$ac_script"
12485 done
12486 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12487 { ac_script=; unset ac_script;}
12488 if test -z "$SED"; then
12489 ac_path_SED_found=false
12490 # Loop through the user's path and test for each of PROGNAME-LIST
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
12496 for ac_prog in sed gsed; do
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12499 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12500 # Check for GNU ac_path_SED and select it if it is found.
12501 # Check for GNU $ac_path_SED
12502 case `"$ac_path_SED" --version 2>&1` in
12503 *GNU*)
12504 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12506 ac_count=0
12507 $as_echo_n 0123456789 >"conftest.in"
12508 while :
12510 cat "conftest.in" "conftest.in" >"conftest.tmp"
12511 mv "conftest.tmp" "conftest.in"
12512 cp "conftest.in" "conftest.nl"
12513 $as_echo '' >> "conftest.nl"
12514 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12516 as_fn_arith $ac_count + 1 && ac_count=$as_val
12517 if test $ac_count -gt ${ac_path_SED_max-0}; then
12518 # Best one so far, save it but keep looking for a better one
12519 ac_cv_path_SED="$ac_path_SED"
12520 ac_path_SED_max=$ac_count
12522 # 10*(2^10) chars as input seems more than enough
12523 test $ac_count -gt 10 && break
12524 done
12525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12526 esac
12528 $ac_path_SED_found && break 3
12529 done
12530 done
12531 done
12532 IFS=$as_save_IFS
12533 if test -z "$ac_cv_path_SED"; then
12534 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12536 else
12537 ac_cv_path_SED=$SED
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12542 $as_echo "$ac_cv_path_SED" >&6; }
12543 SED="$ac_cv_path_SED"
12544 rm -f conftest.sed
12546 test -z "$SED" && SED=sed
12547 Xsed="$SED -e 1s/^X//"
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12560 $as_echo_n "checking for fgrep... " >&6; }
12561 if test "${ac_cv_path_FGREP+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12565 then ac_cv_path_FGREP="$GREP -F"
12566 else
12567 if test -z "$FGREP"; then
12568 ac_path_FGREP_found=false
12569 # Loop through the user's path and test for each of PROGNAME-LIST
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_prog in fgrep; do
12576 for ac_exec_ext in '' $ac_executable_extensions; do
12577 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12578 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12579 # Check for GNU ac_path_FGREP and select it if it is found.
12580 # Check for GNU $ac_path_FGREP
12581 case `"$ac_path_FGREP" --version 2>&1` in
12582 *GNU*)
12583 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12585 ac_count=0
12586 $as_echo_n 0123456789 >"conftest.in"
12587 while :
12589 cat "conftest.in" "conftest.in" >"conftest.tmp"
12590 mv "conftest.tmp" "conftest.in"
12591 cp "conftest.in" "conftest.nl"
12592 $as_echo 'FGREP' >> "conftest.nl"
12593 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12595 as_fn_arith $ac_count + 1 && ac_count=$as_val
12596 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12597 # Best one so far, save it but keep looking for a better one
12598 ac_cv_path_FGREP="$ac_path_FGREP"
12599 ac_path_FGREP_max=$ac_count
12601 # 10*(2^10) chars as input seems more than enough
12602 test $ac_count -gt 10 && break
12603 done
12604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12605 esac
12607 $ac_path_FGREP_found && break 3
12608 done
12609 done
12610 done
12611 IFS=$as_save_IFS
12612 if test -z "$ac_cv_path_FGREP"; then
12613 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12615 else
12616 ac_cv_path_FGREP=$FGREP
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12622 $as_echo "$ac_cv_path_FGREP" >&6; }
12623 FGREP="$ac_cv_path_FGREP"
12626 test -z "$GREP" && GREP=grep
12646 # Check whether --with-gnu-ld was given.
12647 if test "${with_gnu_ld+set}" = set; then :
12648 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12649 else
12650 with_gnu_ld=no
12653 ac_prog=ld
12654 if test "$GCC" = yes; then
12655 # Check if gcc -print-prog-name=ld gives a path.
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12657 $as_echo_n "checking for ld used by $CC... " >&6; }
12658 case $host in
12659 *-*-mingw*)
12660 # gcc leaves a trailing carriage return which upsets mingw
12661 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12663 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12664 esac
12665 case $ac_prog in
12666 # Accept absolute paths.
12667 [\\/]* | ?:[\\/]*)
12668 re_direlt='/[^/][^/]*/\.\./'
12669 # Canonicalize the pathname of ld
12670 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12671 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12672 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12673 done
12674 test -z "$LD" && LD="$ac_prog"
12677 # If it fails, then pretend we aren't using GCC.
12678 ac_prog=ld
12681 # If it is relative, then search for the first ld in PATH.
12682 with_gnu_ld=unknown
12684 esac
12685 elif test "$with_gnu_ld" = yes; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12687 $as_echo_n "checking for GNU ld... " >&6; }
12688 else
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12690 $as_echo_n "checking for non-GNU ld... " >&6; }
12692 if test "${lt_cv_path_LD+set}" = set; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 if test -z "$LD"; then
12696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12697 for ac_dir in $PATH; do
12698 IFS="$lt_save_ifs"
12699 test -z "$ac_dir" && ac_dir=.
12700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12701 lt_cv_path_LD="$ac_dir/$ac_prog"
12702 # Check to see if the program is GNU ld. I'd rather use --version,
12703 # but apparently some variants of GNU ld only accept -v.
12704 # Break only if it was the GNU/non-GNU ld that we prefer.
12705 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12706 *GNU* | *'with BFD'*)
12707 test "$with_gnu_ld" != no && break
12710 test "$with_gnu_ld" != yes && break
12712 esac
12714 done
12715 IFS="$lt_save_ifs"
12716 else
12717 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12721 LD="$lt_cv_path_LD"
12722 if test -n "$LD"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12724 $as_echo "$LD" >&6; }
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12729 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12731 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12732 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12736 case `$LD -v 2>&1 </dev/null` in
12737 *GNU* | *'with BFD'*)
12738 lt_cv_prog_gnu_ld=yes
12741 lt_cv_prog_gnu_ld=no
12743 esac
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12746 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12747 with_gnu_ld=$lt_cv_prog_gnu_ld
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12758 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12759 if test "${lt_cv_path_NM+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 if test -n "$NM"; then
12763 # Let the user override the test.
12764 lt_cv_path_NM="$NM"
12765 else
12766 lt_nm_to_check="${ac_tool_prefix}nm"
12767 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12768 lt_nm_to_check="$lt_nm_to_check nm"
12770 for lt_tmp_nm in $lt_nm_to_check; do
12771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12772 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12773 IFS="$lt_save_ifs"
12774 test -z "$ac_dir" && ac_dir=.
12775 tmp_nm="$ac_dir/$lt_tmp_nm"
12776 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12777 # Check to see if the nm accepts a BSD-compat flag.
12778 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12779 # nm: unknown option "B" ignored
12780 # Tru64's nm complains that /dev/null is an invalid object file
12781 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12782 */dev/null* | *'Invalid file or object type'*)
12783 lt_cv_path_NM="$tmp_nm -B"
12784 break
12787 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12788 */dev/null*)
12789 lt_cv_path_NM="$tmp_nm -p"
12790 break
12793 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12794 continue # so that we can try to find one that supports BSD flags
12796 esac
12798 esac
12800 done
12801 IFS="$lt_save_ifs"
12802 done
12803 : ${lt_cv_path_NM=no}
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12807 $as_echo "$lt_cv_path_NM" >&6; }
12808 if test "$lt_cv_path_NM" != "no"; then
12809 NM="$lt_cv_path_NM"
12810 else
12811 # Didn't find any BSD compatible name lister, look for dumpbin.
12812 if test -n "$DUMPBIN"; then :
12813 # Let the user override the test.
12814 else
12815 if test -n "$ac_tool_prefix"; then
12816 for ac_prog in dumpbin "link -dump"
12818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12821 $as_echo_n "checking for $ac_word... " >&6; }
12822 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 if test -n "$DUMPBIN"; then
12826 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12827 else
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12831 IFS=$as_save_IFS
12832 test -z "$as_dir" && as_dir=.
12833 for ac_exec_ext in '' $ac_executable_extensions; do
12834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12835 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12837 break 2
12839 done
12840 done
12841 IFS=$as_save_IFS
12845 DUMPBIN=$ac_cv_prog_DUMPBIN
12846 if test -n "$DUMPBIN"; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12848 $as_echo "$DUMPBIN" >&6; }
12849 else
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12855 test -n "$DUMPBIN" && break
12856 done
12858 if test -z "$DUMPBIN"; then
12859 ac_ct_DUMPBIN=$DUMPBIN
12860 for ac_prog in dumpbin "link -dump"
12862 # Extract the first word of "$ac_prog", so it can be a program name with args.
12863 set dummy $ac_prog; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 if test -n "$ac_ct_DUMPBIN"; then
12870 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12871 else
12872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873 for as_dir in $PATH
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
12878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12879 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12881 break 2
12883 done
12884 done
12885 IFS=$as_save_IFS
12889 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12890 if test -n "$ac_ct_DUMPBIN"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12892 $as_echo "$ac_ct_DUMPBIN" >&6; }
12893 else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12899 test -n "$ac_ct_DUMPBIN" && break
12900 done
12902 if test "x$ac_ct_DUMPBIN" = x; then
12903 DUMPBIN=":"
12904 else
12905 case $cross_compiling:$ac_tool_warned in
12906 yes:)
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12909 ac_tool_warned=yes ;;
12910 esac
12911 DUMPBIN=$ac_ct_DUMPBIN
12915 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12916 *COFF*)
12917 DUMPBIN="$DUMPBIN -symbols"
12920 DUMPBIN=:
12922 esac
12925 if test "$DUMPBIN" != ":"; then
12926 NM="$DUMPBIN"
12929 test -z "$NM" && NM=nm
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12937 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12938 if test "${lt_cv_nm_interface+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 lt_cv_nm_interface="BSD nm"
12942 echo "int some_variable = 0;" > conftest.$ac_ext
12943 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12944 (eval "$ac_compile" 2>conftest.err)
12945 cat conftest.err >&5
12946 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12947 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12948 cat conftest.err >&5
12949 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12950 cat conftest.out >&5
12951 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12952 lt_cv_nm_interface="MS dumpbin"
12954 rm -f conftest*
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12957 $as_echo "$lt_cv_nm_interface" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12960 $as_echo_n "checking whether ln -s works... " >&6; }
12961 LN_S=$as_ln_s
12962 if test "$LN_S" = "ln -s"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12964 $as_echo "yes" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12967 $as_echo "no, using $LN_S" >&6; }
12970 # find the maximum length of command line arguments
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12972 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12973 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12974 $as_echo_n "(cached) " >&6
12975 else
12977 teststring="ABCD"
12979 case $build_os in
12980 msdosdjgpp*)
12981 # On DJGPP, this test can blow up pretty badly due to problems in libc
12982 # (any single argument exceeding 2000 bytes causes a buffer overrun
12983 # during glob expansion). Even if it were fixed, the result of this
12984 # check would be larger than it should be.
12985 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12988 gnu*)
12989 # Under GNU Hurd, this test is not required because there is
12990 # no limit to the length of command line arguments.
12991 # Libtool will interpret -1 as no limit whatsoever
12992 lt_cv_sys_max_cmd_len=-1;
12995 cygwin* | mingw* | cegcc*)
12996 # On Win9x/ME, this test blows up -- it succeeds, but takes
12997 # about 5 minutes as the teststring grows exponentially.
12998 # Worse, since 9x/ME are not pre-emptively multitasking,
12999 # you end up with a "frozen" computer, even though with patience
13000 # the test eventually succeeds (with a max line length of 256k).
13001 # Instead, let's just punt: use the minimum linelength reported by
13002 # all of the supported platforms: 8192 (on NT/2K/XP).
13003 lt_cv_sys_max_cmd_len=8192;
13006 mint*)
13007 # On MiNT this can take a long time and run out of memory.
13008 lt_cv_sys_max_cmd_len=8192;
13011 amigaos*)
13012 # On AmigaOS with pdksh, this test takes hours, literally.
13013 # So we just punt and use a minimum line length of 8192.
13014 lt_cv_sys_max_cmd_len=8192;
13017 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13018 # This has been around since 386BSD, at least. Likely further.
13019 if test -x /sbin/sysctl; then
13020 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13021 elif test -x /usr/sbin/sysctl; then
13022 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13023 else
13024 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13026 # And add a safety zone
13027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13031 interix*)
13032 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13033 lt_cv_sys_max_cmd_len=196608
13036 osf*)
13037 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13038 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13039 # nice to cause kernel panics so lets avoid the loop below.
13040 # First set a reasonable default.
13041 lt_cv_sys_max_cmd_len=16384
13043 if test -x /sbin/sysconfig; then
13044 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13045 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13046 esac
13049 sco3.2v5*)
13050 lt_cv_sys_max_cmd_len=102400
13052 sysv5* | sco5v6* | sysv4.2uw2*)
13053 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13054 if test -n "$kargmax"; then
13055 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13056 else
13057 lt_cv_sys_max_cmd_len=32768
13061 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13062 if test -n "$lt_cv_sys_max_cmd_len"; then
13063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13065 else
13066 # Make teststring a little bigger before we do anything with it.
13067 # a 1K string should be a reasonable start.
13068 for i in 1 2 3 4 5 6 7 8 ; do
13069 teststring=$teststring$teststring
13070 done
13071 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13072 # If test is not a shell built-in, we'll probably end up computing a
13073 # maximum length that is only half of the actual maximum length, but
13074 # we can't tell.
13075 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13076 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13077 test $i != 17 # 1/2 MB should be enough
13079 i=`expr $i + 1`
13080 teststring=$teststring$teststring
13081 done
13082 # Only check the string length outside the loop.
13083 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13084 teststring=
13085 # Add a significant safety factor because C++ compilers can tack on
13086 # massive amounts of additional arguments before passing them to the
13087 # linker. It appears as though 1/2 is a usable value.
13088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13091 esac
13095 if test -n $lt_cv_sys_max_cmd_len ; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13097 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13098 else
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13100 $as_echo "none" >&6; }
13102 max_cmd_len=$lt_cv_sys_max_cmd_len
13109 : ${CP="cp -f"}
13110 : ${MV="mv -f"}
13111 : ${RM="rm -f"}
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13114 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13115 # Try some XSI features
13116 xsi_shell=no
13117 ( _lt_dummy="a/b/c"
13118 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13119 = c,a/b,, \
13120 && eval 'test $(( 1 + 1 )) -eq 2 \
13121 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13122 && xsi_shell=yes
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13124 $as_echo "$xsi_shell" >&6; }
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13128 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13129 lt_shell_append=no
13130 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13131 >/dev/null 2>&1 \
13132 && lt_shell_append=yes
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13134 $as_echo "$lt_shell_append" >&6; }
13137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13138 lt_unset=unset
13139 else
13140 lt_unset=false
13147 # test EBCDIC or ASCII
13148 case `echo X|tr X '\101'` in
13149 A) # ASCII based system
13150 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13151 lt_SP2NL='tr \040 \012'
13152 lt_NL2SP='tr \015\012 \040\040'
13154 *) # EBCDIC based system
13155 lt_SP2NL='tr \100 \n'
13156 lt_NL2SP='tr \r\n \100\100'
13158 esac
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13169 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13170 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 lt_cv_ld_reload_flag='-r'
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13176 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13177 reload_flag=$lt_cv_ld_reload_flag
13178 case $reload_flag in
13179 "" | " "*) ;;
13180 *) reload_flag=" $reload_flag" ;;
13181 esac
13182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13183 case $host_os in
13184 darwin*)
13185 if test "$GCC" = yes; then
13186 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13187 else
13188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13191 esac
13201 if test -n "$ac_tool_prefix"; then
13202 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13203 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 if test -n "$OBJDUMP"; then
13210 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13211 else
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 break 2
13223 done
13224 done
13225 IFS=$as_save_IFS
13229 OBJDUMP=$ac_cv_prog_OBJDUMP
13230 if test -n "$OBJDUMP"; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13232 $as_echo "$OBJDUMP" >&6; }
13233 else
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235 $as_echo "no" >&6; }
13240 if test -z "$ac_cv_prog_OBJDUMP"; then
13241 ac_ct_OBJDUMP=$OBJDUMP
13242 # Extract the first word of "objdump", so it can be a program name with args.
13243 set dummy objdump; ac_word=$2
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13245 $as_echo_n "checking for $ac_word... " >&6; }
13246 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 if test -n "$ac_ct_OBJDUMP"; then
13250 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13251 else
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13259 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 break 2
13263 done
13264 done
13265 IFS=$as_save_IFS
13269 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13270 if test -n "$ac_ct_OBJDUMP"; then
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13272 $as_echo "$ac_ct_OBJDUMP" >&6; }
13273 else
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 $as_echo "no" >&6; }
13278 if test "x$ac_ct_OBJDUMP" = x; then
13279 OBJDUMP="false"
13280 else
13281 case $cross_compiling:$ac_tool_warned in
13282 yes:)
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13285 ac_tool_warned=yes ;;
13286 esac
13287 OBJDUMP=$ac_ct_OBJDUMP
13289 else
13290 OBJDUMP="$ac_cv_prog_OBJDUMP"
13293 test -z "$OBJDUMP" && OBJDUMP=objdump
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13304 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13305 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 lt_cv_file_magic_cmd='$MAGIC_CMD'
13309 lt_cv_file_magic_test_file=
13310 lt_cv_deplibs_check_method='unknown'
13311 # Need to set the preceding variable on all platforms that support
13312 # interlibrary dependencies.
13313 # 'none' -- dependencies not supported.
13314 # `unknown' -- same as none, but documents that we really don't know.
13315 # 'pass_all' -- all dependencies passed with no checks.
13316 # 'test_compile' -- check by making test program.
13317 # 'file_magic [[regex]]' -- check by looking for files in library path
13318 # which responds to the $file_magic_cmd with a given extended regex.
13319 # If you have `file' or equivalent on your system and you're not sure
13320 # whether `pass_all' will *always* work, you probably want this one.
13322 case $host_os in
13323 aix[4-9]*)
13324 lt_cv_deplibs_check_method=pass_all
13327 beos*)
13328 lt_cv_deplibs_check_method=pass_all
13331 bsdi[45]*)
13332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13333 lt_cv_file_magic_cmd='/usr/bin/file -L'
13334 lt_cv_file_magic_test_file=/shlib/libc.so
13337 cygwin*)
13338 # func_win32_libid is a shell function defined in ltmain.sh
13339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13340 lt_cv_file_magic_cmd='func_win32_libid'
13343 mingw* | pw32*)
13344 # Base MSYS/MinGW do not provide the 'file' command needed by
13345 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13346 # unless we find 'file', for example because we are cross-compiling.
13347 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13348 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13350 lt_cv_file_magic_cmd='func_win32_libid'
13351 else
13352 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13353 lt_cv_file_magic_cmd='$OBJDUMP -f'
13357 cegcc*)
13358 # use the weaker test based on 'objdump'. See mingw*.
13359 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13360 lt_cv_file_magic_cmd='$OBJDUMP -f'
13363 darwin* | rhapsody*)
13364 lt_cv_deplibs_check_method=pass_all
13367 freebsd* | dragonfly*)
13368 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13369 case $host_cpu in
13370 i*86 )
13371 # Not sure whether the presence of OpenBSD here was a mistake.
13372 # Let's accept both of them until this is cleared up.
13373 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13374 lt_cv_file_magic_cmd=/usr/bin/file
13375 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13377 esac
13378 else
13379 lt_cv_deplibs_check_method=pass_all
13383 gnu*)
13384 lt_cv_deplibs_check_method=pass_all
13387 haiku*)
13388 lt_cv_deplibs_check_method=pass_all
13391 hpux10.20* | hpux11*)
13392 lt_cv_file_magic_cmd=/usr/bin/file
13393 case $host_cpu in
13394 ia64*)
13395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13396 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13398 hppa*64*)
13399 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]'
13400 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13404 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13406 esac
13409 interix[3-9]*)
13410 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13414 irix5* | irix6* | nonstopux*)
13415 case $LD in
13416 *-32|*"-32 ") libmagic=32-bit;;
13417 *-n32|*"-n32 ") libmagic=N32;;
13418 *-64|*"-64 ") libmagic=64-bit;;
13419 *) libmagic=never-match;;
13420 esac
13421 lt_cv_deplibs_check_method=pass_all
13424 # This must be Linux ELF.
13425 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13426 lt_cv_deplibs_check_method=pass_all
13429 netbsd*)
13430 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13432 else
13433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13437 newos6*)
13438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13439 lt_cv_file_magic_cmd=/usr/bin/file
13440 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13443 *nto* | *qnx*)
13444 lt_cv_deplibs_check_method=pass_all
13447 openbsd*)
13448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13450 else
13451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13455 osf3* | osf4* | osf5*)
13456 lt_cv_deplibs_check_method=pass_all
13459 rdos*)
13460 lt_cv_deplibs_check_method=pass_all
13463 solaris*)
13464 lt_cv_deplibs_check_method=pass_all
13467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13468 lt_cv_deplibs_check_method=pass_all
13471 sysv4 | sysv4.3*)
13472 case $host_vendor in
13473 motorola)
13474 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]'
13475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13477 ncr)
13478 lt_cv_deplibs_check_method=pass_all
13480 sequent)
13481 lt_cv_file_magic_cmd='/bin/file'
13482 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13484 sni)
13485 lt_cv_file_magic_cmd='/bin/file'
13486 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13487 lt_cv_file_magic_test_file=/lib/libc.so
13489 siemens)
13490 lt_cv_deplibs_check_method=pass_all
13493 lt_cv_deplibs_check_method=pass_all
13495 esac
13498 tpf*)
13499 lt_cv_deplibs_check_method=pass_all
13501 esac
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13505 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13506 file_magic_cmd=$lt_cv_file_magic_cmd
13507 deplibs_check_method=$lt_cv_deplibs_check_method
13508 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13521 if test -n "$ac_tool_prefix"; then
13522 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13523 set dummy ${ac_tool_prefix}ar; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525 $as_echo_n "checking for $ac_word... " >&6; }
13526 if test "${ac_cv_prog_AR+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 if test -n "$AR"; then
13530 ac_cv_prog_AR="$AR" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13539 ac_cv_prog_AR="${ac_tool_prefix}ar"
13540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13541 break 2
13543 done
13544 done
13545 IFS=$as_save_IFS
13549 AR=$ac_cv_prog_AR
13550 if test -n "$AR"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13552 $as_echo "$AR" >&6; }
13553 else
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13560 if test -z "$ac_cv_prog_AR"; then
13561 ac_ct_AR=$AR
13562 # Extract the first word of "ar", so it can be a program name with args.
13563 set dummy ar; ac_word=$2
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13565 $as_echo_n "checking for $ac_word... " >&6; }
13566 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 if test -n "$ac_ct_AR"; then
13570 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13571 else
13572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13573 for as_dir in $PATH
13575 IFS=$as_save_IFS
13576 test -z "$as_dir" && as_dir=.
13577 for ac_exec_ext in '' $ac_executable_extensions; do
13578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13579 ac_cv_prog_ac_ct_AR="ar"
13580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13581 break 2
13583 done
13584 done
13585 IFS=$as_save_IFS
13589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13590 if test -n "$ac_ct_AR"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13592 $as_echo "$ac_ct_AR" >&6; }
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13598 if test "x$ac_ct_AR" = x; then
13599 AR="false"
13600 else
13601 case $cross_compiling:$ac_tool_warned in
13602 yes:)
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13605 ac_tool_warned=yes ;;
13606 esac
13607 AR=$ac_ct_AR
13609 else
13610 AR="$ac_cv_prog_AR"
13613 test -z "$AR" && AR=ar
13614 test -z "$AR_FLAGS" && AR_FLAGS=cru
13626 if test -n "$ac_tool_prefix"; then
13627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13628 set dummy ${ac_tool_prefix}strip; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if test "${ac_cv_prog_STRIP+set}" = set; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test -n "$STRIP"; then
13635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13648 done
13649 done
13650 IFS=$as_save_IFS
13654 STRIP=$ac_cv_prog_STRIP
13655 if test -n "$STRIP"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13657 $as_echo "$STRIP" >&6; }
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13665 if test -z "$ac_cv_prog_STRIP"; then
13666 ac_ct_STRIP=$STRIP
13667 # Extract the first word of "strip", so it can be a program name with args.
13668 set dummy strip; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13670 $as_echo_n "checking for $ac_word... " >&6; }
13671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 if test -n "$ac_ct_STRIP"; then
13675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13676 else
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13680 IFS=$as_save_IFS
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13684 ac_cv_prog_ac_ct_STRIP="strip"
13685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 break 2
13688 done
13689 done
13690 IFS=$as_save_IFS
13694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13695 if test -n "$ac_ct_STRIP"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13697 $as_echo "$ac_ct_STRIP" >&6; }
13698 else
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 $as_echo "no" >&6; }
13703 if test "x$ac_ct_STRIP" = x; then
13704 STRIP=":"
13705 else
13706 case $cross_compiling:$ac_tool_warned in
13707 yes:)
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13710 ac_tool_warned=yes ;;
13711 esac
13712 STRIP=$ac_ct_STRIP
13714 else
13715 STRIP="$ac_cv_prog_STRIP"
13718 test -z "$STRIP" && STRIP=:
13725 if test -n "$ac_tool_prefix"; then
13726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13729 $as_echo_n "checking for $ac_word... " >&6; }
13730 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 if test -n "$RANLIB"; then
13734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13735 else
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13739 IFS=$as_save_IFS
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13745 break 2
13747 done
13748 done
13749 IFS=$as_save_IFS
13753 RANLIB=$ac_cv_prog_RANLIB
13754 if test -n "$RANLIB"; then
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13756 $as_echo "$RANLIB" >&6; }
13757 else
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13764 if test -z "$ac_cv_prog_RANLIB"; then
13765 ac_ct_RANLIB=$RANLIB
13766 # Extract the first word of "ranlib", so it can be a program name with args.
13767 set dummy ranlib; ac_word=$2
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13769 $as_echo_n "checking for $ac_word... " >&6; }
13770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 if test -n "$ac_ct_RANLIB"; then
13774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13775 else
13776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777 for as_dir in $PATH
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13783 ac_cv_prog_ac_ct_RANLIB="ranlib"
13784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13785 break 2
13787 done
13788 done
13789 IFS=$as_save_IFS
13793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13794 if test -n "$ac_ct_RANLIB"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13796 $as_echo "$ac_ct_RANLIB" >&6; }
13797 else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13802 if test "x$ac_ct_RANLIB" = x; then
13803 RANLIB=":"
13804 else
13805 case $cross_compiling:$ac_tool_warned in
13806 yes:)
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13809 ac_tool_warned=yes ;;
13810 esac
13811 RANLIB=$ac_ct_RANLIB
13813 else
13814 RANLIB="$ac_cv_prog_RANLIB"
13817 test -z "$RANLIB" && RANLIB=:
13824 # Determine commands to create old-style static archives.
13825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13826 old_postinstall_cmds='chmod 644 $oldlib'
13827 old_postuninstall_cmds=
13829 if test -n "$RANLIB"; then
13830 case $host_os in
13831 openbsd*)
13832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13835 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13837 esac
13838 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13841 case $host_os in
13842 darwin*)
13843 lock_old_archive_extraction=yes ;;
13845 lock_old_archive_extraction=no ;;
13846 esac
13886 # If no C compiler was specified, use CC.
13887 LTCC=${LTCC-"$CC"}
13889 # If no C compiler flags were specified, use CFLAGS.
13890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13892 # Allow CC to be a program name with arguments.
13893 compiler=$CC
13896 # Check for command to grab the raw symbol name followed by C symbol from nm.
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13898 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13899 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13903 # These are sane defaults that work on at least a few old systems.
13904 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13906 # Character class describing NM global symbol codes.
13907 symcode='[BCDEGRST]'
13909 # Regexp to match symbols that can be accessed directly from C.
13910 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13912 # Define system-specific variables.
13913 case $host_os in
13914 aix*)
13915 symcode='[BCDT]'
13917 cygwin* | mingw* | pw32* | cegcc*)
13918 symcode='[ABCDGISTW]'
13920 hpux*)
13921 if test "$host_cpu" = ia64; then
13922 symcode='[ABCDEGRST]'
13925 irix* | nonstopux*)
13926 symcode='[BCDEGRST]'
13928 osf*)
13929 symcode='[BCDEGQRST]'
13931 solaris*)
13932 symcode='[BDRT]'
13934 sco3.2v5*)
13935 symcode='[DT]'
13937 sysv4.2uw2*)
13938 symcode='[DT]'
13940 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13941 symcode='[ABDT]'
13943 sysv4)
13944 symcode='[DFNSTU]'
13946 esac
13948 # If we're using GNU nm, then use its standard symbol codes.
13949 case `$NM -V 2>&1` in
13950 *GNU* | *'with BFD'*)
13951 symcode='[ABCDGIRSTW]' ;;
13952 esac
13954 # Transform an extracted symbol line into a proper C declaration.
13955 # Some systems (esp. on ia64) link data and code symbols differently,
13956 # so use this general approach.
13957 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13959 # Transform an extracted symbol line into symbol name and symbol address
13960 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13961 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'"
13963 # Handle CRLF in mingw tool chain
13964 opt_cr=
13965 case $build_os in
13966 mingw*)
13967 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13969 esac
13971 # Try without a prefix underscore, then with it.
13972 for ac_symprfx in "" "_"; do
13974 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13975 symxfrm="\\1 $ac_symprfx\\2 \\2"
13977 # Write the raw and C identifiers.
13978 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13979 # Fake it for dumpbin and say T for any non-static function
13980 # and D for any global variable.
13981 # Also find C++ and __fastcall symbols from MSVC++,
13982 # which start with @ or ?.
13983 lt_cv_sys_global_symbol_pipe="$AWK '"\
13984 " {last_section=section; section=\$ 3};"\
13985 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13986 " \$ 0!~/External *\|/{next};"\
13987 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13988 " {if(hide[section]) next};"\
13989 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13990 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13991 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13992 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13993 " ' prfx=^$ac_symprfx"
13994 else
13995 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13998 # Check to see that the pipe works correctly.
13999 pipe_works=no
14001 rm -f conftest*
14002 cat > conftest.$ac_ext <<_LT_EOF
14003 #ifdef __cplusplus
14004 extern "C" {
14005 #endif
14006 char nm_test_var;
14007 void nm_test_func(void);
14008 void nm_test_func(void){}
14009 #ifdef __cplusplus
14011 #endif
14012 int main(){nm_test_var='a';nm_test_func();return(0);}
14013 _LT_EOF
14015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14016 (eval $ac_compile) 2>&5
14017 ac_status=$?
14018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14019 test $ac_status = 0; }; then
14020 # Now try to grab the symbols.
14021 nlist=conftest.nm
14022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14023 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14024 ac_status=$?
14025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14026 test $ac_status = 0; } && test -s "$nlist"; then
14027 # Try sorting and uniquifying the output.
14028 if sort "$nlist" | uniq > "$nlist"T; then
14029 mv -f "$nlist"T "$nlist"
14030 else
14031 rm -f "$nlist"T
14034 # Make sure that we snagged all the symbols we need.
14035 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14036 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14037 cat <<_LT_EOF > conftest.$ac_ext
14038 #ifdef __cplusplus
14039 extern "C" {
14040 #endif
14042 _LT_EOF
14043 # Now generate the symbol file.
14044 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14046 cat <<_LT_EOF >> conftest.$ac_ext
14048 /* The mapping between symbol names and symbols. */
14049 const struct {
14050 const char *name;
14051 void *address;
14053 lt__PROGRAM__LTX_preloaded_symbols[] =
14055 { "@PROGRAM@", (void *) 0 },
14056 _LT_EOF
14057 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14058 cat <<\_LT_EOF >> conftest.$ac_ext
14059 {0, (void *) 0}
14062 /* This works around a problem in FreeBSD linker */
14063 #ifdef FREEBSD_WORKAROUND
14064 static const void *lt_preloaded_setup() {
14065 return lt__PROGRAM__LTX_preloaded_symbols;
14067 #endif
14069 #ifdef __cplusplus
14071 #endif
14072 _LT_EOF
14073 # Now try linking the two files.
14074 mv conftest.$ac_objext conftstm.$ac_objext
14075 lt_save_LIBS="$LIBS"
14076 lt_save_CFLAGS="$CFLAGS"
14077 LIBS="conftstm.$ac_objext"
14078 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14080 (eval $ac_link) 2>&5
14081 ac_status=$?
14082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14083 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14084 pipe_works=yes
14086 LIBS="$lt_save_LIBS"
14087 CFLAGS="$lt_save_CFLAGS"
14088 else
14089 echo "cannot find nm_test_func in $nlist" >&5
14091 else
14092 echo "cannot find nm_test_var in $nlist" >&5
14094 else
14095 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14097 else
14098 echo "$progname: failed program was:" >&5
14099 cat conftest.$ac_ext >&5
14101 rm -rf conftest* conftst*
14103 # Do not use the global_symbol_pipe unless it works.
14104 if test "$pipe_works" = yes; then
14105 break
14106 else
14107 lt_cv_sys_global_symbol_pipe=
14109 done
14113 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14114 lt_cv_sys_global_symbol_to_cdecl=
14116 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14118 $as_echo "failed" >&6; }
14119 else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14121 $as_echo "ok" >&6; }
14145 # Check whether --enable-libtool-lock was given.
14146 if test "${enable_libtool_lock+set}" = set; then :
14147 enableval=$enable_libtool_lock;
14150 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14152 # Some flags need to be propagated to the compiler or linker for good
14153 # libtool support.
14154 case $host in
14155 ia64-*-hpux*)
14156 # Find out which ABI we are using.
14157 echo 'int i;' > conftest.$ac_ext
14158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14159 (eval $ac_compile) 2>&5
14160 ac_status=$?
14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }; then
14163 case `/usr/bin/file conftest.$ac_objext` in
14164 *ELF-32*)
14165 HPUX_IA64_MODE="32"
14167 *ELF-64*)
14168 HPUX_IA64_MODE="64"
14170 esac
14172 rm -rf conftest*
14174 *-*-irix6*)
14175 # Find out which ABI we are using.
14176 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14178 (eval $ac_compile) 2>&5
14179 ac_status=$?
14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }; then
14182 if test "$lt_cv_prog_gnu_ld" = yes; then
14183 case `/usr/bin/file conftest.$ac_objext` in
14184 *32-bit*)
14185 LD="${LD-ld} -melf32bsmip"
14187 *N32*)
14188 LD="${LD-ld} -melf32bmipn32"
14190 *64-bit*)
14191 LD="${LD-ld} -melf64bmip"
14193 esac
14194 else
14195 case `/usr/bin/file conftest.$ac_objext` in
14196 *32-bit*)
14197 LD="${LD-ld} -32"
14199 *N32*)
14200 LD="${LD-ld} -n32"
14202 *64-bit*)
14203 LD="${LD-ld} -64"
14205 esac
14208 rm -rf conftest*
14211 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14212 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14213 # Find out which ABI we are using.
14214 echo 'int i;' > conftest.$ac_ext
14215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14216 (eval $ac_compile) 2>&5
14217 ac_status=$?
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14219 test $ac_status = 0; }; then
14220 case `/usr/bin/file conftest.o` in
14221 *32-bit*)
14222 case $host in
14223 x86_64-*kfreebsd*-gnu)
14224 LD="${LD-ld} -m elf_i386_fbsd"
14226 x86_64-*linux*)
14227 case `/usr/bin/file conftest.o` in
14228 *x86-64*)
14229 LD="${LD-ld} -m elf32_x86_64"
14232 LD="${LD-ld} -m elf_i386"
14234 esac
14236 powerpc64le-*linux*)
14237 LD="${LD-ld} -m elf32lppclinux"
14239 powerpc64-*linux*)
14240 LD="${LD-ld} -m elf32ppclinux"
14242 s390x-*linux*)
14243 LD="${LD-ld} -m elf_s390"
14245 sparc64-*linux*)
14246 LD="${LD-ld} -m elf32_sparc"
14248 esac
14250 *64-bit*)
14251 case $host in
14252 x86_64-*kfreebsd*-gnu)
14253 LD="${LD-ld} -m elf_x86_64_fbsd"
14255 x86_64-*linux*)
14256 LD="${LD-ld} -m elf_x86_64"
14258 powerpcle-*linux*)
14259 LD="${LD-ld} -m elf64lppc"
14261 powerpc-*linux*)
14262 LD="${LD-ld} -m elf64ppc"
14264 s390*-*linux*|s390*-*tpf*)
14265 LD="${LD-ld} -m elf64_s390"
14267 sparc*-*linux*)
14268 LD="${LD-ld} -m elf64_sparc"
14270 esac
14272 esac
14274 rm -rf conftest*
14277 *-*-sco3.2v5*)
14278 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14279 SAVE_CFLAGS="$CFLAGS"
14280 CFLAGS="$CFLAGS -belf"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14282 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14283 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 ac_ext=c
14287 ac_cpp='$CPP $CPPFLAGS'
14288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14296 main ()
14300 return 0;
14302 _ACEOF
14303 if ac_fn_c_try_link "$LINENO"; then :
14304 lt_cv_cc_needs_belf=yes
14305 else
14306 lt_cv_cc_needs_belf=no
14308 rm -f core conftest.err conftest.$ac_objext \
14309 conftest$ac_exeext conftest.$ac_ext
14310 ac_ext=c
14311 ac_cpp='$CPP $CPPFLAGS'
14312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14318 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14319 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14320 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14321 CFLAGS="$SAVE_CFLAGS"
14324 sparc*-*solaris*)
14325 # Find out which ABI we are using.
14326 echo 'int i;' > conftest.$ac_ext
14327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14328 (eval $ac_compile) 2>&5
14329 ac_status=$?
14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14331 test $ac_status = 0; }; then
14332 case `/usr/bin/file conftest.o` in
14333 *64-bit*)
14334 case $lt_cv_prog_gnu_ld in
14335 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14337 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14338 LD="${LD-ld} -64"
14341 esac
14343 esac
14345 rm -rf conftest*
14347 esac
14349 need_locks="$enable_libtool_lock"
14352 case $host_os in
14353 rhapsody* | darwin*)
14354 if test -n "$ac_tool_prefix"; then
14355 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14356 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14358 $as_echo_n "checking for $ac_word... " >&6; }
14359 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 if test -n "$DSYMUTIL"; then
14363 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14364 else
14365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14366 for as_dir in $PATH
14368 IFS=$as_save_IFS
14369 test -z "$as_dir" && as_dir=.
14370 for ac_exec_ext in '' $ac_executable_extensions; do
14371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14372 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14374 break 2
14376 done
14377 done
14378 IFS=$as_save_IFS
14382 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14383 if test -n "$DSYMUTIL"; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14385 $as_echo "$DSYMUTIL" >&6; }
14386 else
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388 $as_echo "no" >&6; }
14393 if test -z "$ac_cv_prog_DSYMUTIL"; then
14394 ac_ct_DSYMUTIL=$DSYMUTIL
14395 # Extract the first word of "dsymutil", so it can be a program name with args.
14396 set dummy dsymutil; ac_word=$2
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14398 $as_echo_n "checking for $ac_word... " >&6; }
14399 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402 if test -n "$ac_ct_DSYMUTIL"; then
14403 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14404 else
14405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406 for as_dir in $PATH
14408 IFS=$as_save_IFS
14409 test -z "$as_dir" && as_dir=.
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14412 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14416 done
14417 done
14418 IFS=$as_save_IFS
14422 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14423 if test -n "$ac_ct_DSYMUTIL"; then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14425 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14426 else
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14428 $as_echo "no" >&6; }
14431 if test "x$ac_ct_DSYMUTIL" = x; then
14432 DSYMUTIL=":"
14433 else
14434 case $cross_compiling:$ac_tool_warned in
14435 yes:)
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14438 ac_tool_warned=yes ;;
14439 esac
14440 DSYMUTIL=$ac_ct_DSYMUTIL
14442 else
14443 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14446 if test -n "$ac_tool_prefix"; then
14447 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14448 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14450 $as_echo_n "checking for $ac_word... " >&6; }
14451 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14452 $as_echo_n "(cached) " >&6
14453 else
14454 if test -n "$NMEDIT"; then
14455 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14456 else
14457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14458 for as_dir in $PATH
14460 IFS=$as_save_IFS
14461 test -z "$as_dir" && as_dir=.
14462 for ac_exec_ext in '' $ac_executable_extensions; do
14463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14464 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14466 break 2
14468 done
14469 done
14470 IFS=$as_save_IFS
14474 NMEDIT=$ac_cv_prog_NMEDIT
14475 if test -n "$NMEDIT"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14477 $as_echo "$NMEDIT" >&6; }
14478 else
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14480 $as_echo "no" >&6; }
14485 if test -z "$ac_cv_prog_NMEDIT"; then
14486 ac_ct_NMEDIT=$NMEDIT
14487 # Extract the first word of "nmedit", so it can be a program name with args.
14488 set dummy nmedit; ac_word=$2
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14490 $as_echo_n "checking for $ac_word... " >&6; }
14491 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 if test -n "$ac_ct_NMEDIT"; then
14495 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14496 else
14497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498 for as_dir in $PATH
14500 IFS=$as_save_IFS
14501 test -z "$as_dir" && as_dir=.
14502 for ac_exec_ext in '' $ac_executable_extensions; do
14503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14504 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14506 break 2
14508 done
14509 done
14510 IFS=$as_save_IFS
14514 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14515 if test -n "$ac_ct_NMEDIT"; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14517 $as_echo "$ac_ct_NMEDIT" >&6; }
14518 else
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 $as_echo "no" >&6; }
14523 if test "x$ac_ct_NMEDIT" = x; then
14524 NMEDIT=":"
14525 else
14526 case $cross_compiling:$ac_tool_warned in
14527 yes:)
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14530 ac_tool_warned=yes ;;
14531 esac
14532 NMEDIT=$ac_ct_NMEDIT
14534 else
14535 NMEDIT="$ac_cv_prog_NMEDIT"
14538 if test -n "$ac_tool_prefix"; then
14539 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14540 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14542 $as_echo_n "checking for $ac_word... " >&6; }
14543 if test "${ac_cv_prog_LIPO+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 if test -n "$LIPO"; then
14547 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14548 else
14549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14550 for as_dir in $PATH
14552 IFS=$as_save_IFS
14553 test -z "$as_dir" && as_dir=.
14554 for ac_exec_ext in '' $ac_executable_extensions; do
14555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14556 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14558 break 2
14560 done
14561 done
14562 IFS=$as_save_IFS
14566 LIPO=$ac_cv_prog_LIPO
14567 if test -n "$LIPO"; then
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14569 $as_echo "$LIPO" >&6; }
14570 else
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14572 $as_echo "no" >&6; }
14577 if test -z "$ac_cv_prog_LIPO"; then
14578 ac_ct_LIPO=$LIPO
14579 # Extract the first word of "lipo", so it can be a program name with args.
14580 set dummy lipo; ac_word=$2
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14582 $as_echo_n "checking for $ac_word... " >&6; }
14583 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 if test -n "$ac_ct_LIPO"; then
14587 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14588 else
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $PATH
14592 IFS=$as_save_IFS
14593 test -z "$as_dir" && as_dir=.
14594 for ac_exec_ext in '' $ac_executable_extensions; do
14595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14596 ac_cv_prog_ac_ct_LIPO="lipo"
14597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14598 break 2
14600 done
14601 done
14602 IFS=$as_save_IFS
14606 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14607 if test -n "$ac_ct_LIPO"; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14609 $as_echo "$ac_ct_LIPO" >&6; }
14610 else
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14612 $as_echo "no" >&6; }
14615 if test "x$ac_ct_LIPO" = x; then
14616 LIPO=":"
14617 else
14618 case $cross_compiling:$ac_tool_warned in
14619 yes:)
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14622 ac_tool_warned=yes ;;
14623 esac
14624 LIPO=$ac_ct_LIPO
14626 else
14627 LIPO="$ac_cv_prog_LIPO"
14630 if test -n "$ac_tool_prefix"; then
14631 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14632 set dummy ${ac_tool_prefix}otool; ac_word=$2
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14634 $as_echo_n "checking for $ac_word... " >&6; }
14635 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14636 $as_echo_n "(cached) " >&6
14637 else
14638 if test -n "$OTOOL"; then
14639 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14640 else
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14644 IFS=$as_save_IFS
14645 test -z "$as_dir" && as_dir=.
14646 for ac_exec_ext in '' $ac_executable_extensions; do
14647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14648 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14650 break 2
14652 done
14653 done
14654 IFS=$as_save_IFS
14658 OTOOL=$ac_cv_prog_OTOOL
14659 if test -n "$OTOOL"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14661 $as_echo "$OTOOL" >&6; }
14662 else
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14669 if test -z "$ac_cv_prog_OTOOL"; then
14670 ac_ct_OTOOL=$OTOOL
14671 # Extract the first word of "otool", so it can be a program name with args.
14672 set dummy otool; ac_word=$2
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14674 $as_echo_n "checking for $ac_word... " >&6; }
14675 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 if test -n "$ac_ct_OTOOL"; then
14679 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14680 else
14681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14682 for as_dir in $PATH
14684 IFS=$as_save_IFS
14685 test -z "$as_dir" && as_dir=.
14686 for ac_exec_ext in '' $ac_executable_extensions; do
14687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14688 ac_cv_prog_ac_ct_OTOOL="otool"
14689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14690 break 2
14692 done
14693 done
14694 IFS=$as_save_IFS
14698 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14699 if test -n "$ac_ct_OTOOL"; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14701 $as_echo "$ac_ct_OTOOL" >&6; }
14702 else
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14707 if test "x$ac_ct_OTOOL" = x; then
14708 OTOOL=":"
14709 else
14710 case $cross_compiling:$ac_tool_warned in
14711 yes:)
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14714 ac_tool_warned=yes ;;
14715 esac
14716 OTOOL=$ac_ct_OTOOL
14718 else
14719 OTOOL="$ac_cv_prog_OTOOL"
14722 if test -n "$ac_tool_prefix"; then
14723 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14724 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14726 $as_echo_n "checking for $ac_word... " >&6; }
14727 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 if test -n "$OTOOL64"; then
14731 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14732 else
14733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14734 for as_dir in $PATH
14736 IFS=$as_save_IFS
14737 test -z "$as_dir" && as_dir=.
14738 for ac_exec_ext in '' $ac_executable_extensions; do
14739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14740 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14742 break 2
14744 done
14745 done
14746 IFS=$as_save_IFS
14750 OTOOL64=$ac_cv_prog_OTOOL64
14751 if test -n "$OTOOL64"; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14753 $as_echo "$OTOOL64" >&6; }
14754 else
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14756 $as_echo "no" >&6; }
14761 if test -z "$ac_cv_prog_OTOOL64"; then
14762 ac_ct_OTOOL64=$OTOOL64
14763 # Extract the first word of "otool64", so it can be a program name with args.
14764 set dummy otool64; ac_word=$2
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14766 $as_echo_n "checking for $ac_word... " >&6; }
14767 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14768 $as_echo_n "(cached) " >&6
14769 else
14770 if test -n "$ac_ct_OTOOL64"; then
14771 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14772 else
14773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14774 for as_dir in $PATH
14776 IFS=$as_save_IFS
14777 test -z "$as_dir" && as_dir=.
14778 for ac_exec_ext in '' $ac_executable_extensions; do
14779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14780 ac_cv_prog_ac_ct_OTOOL64="otool64"
14781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14782 break 2
14784 done
14785 done
14786 IFS=$as_save_IFS
14790 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14791 if test -n "$ac_ct_OTOOL64"; then
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14793 $as_echo "$ac_ct_OTOOL64" >&6; }
14794 else
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14799 if test "x$ac_ct_OTOOL64" = x; then
14800 OTOOL64=":"
14801 else
14802 case $cross_compiling:$ac_tool_warned in
14803 yes:)
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14806 ac_tool_warned=yes ;;
14807 esac
14808 OTOOL64=$ac_ct_OTOOL64
14810 else
14811 OTOOL64="$ac_cv_prog_OTOOL64"
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14841 $as_echo_n "checking for -single_module linker flag... " >&6; }
14842 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14843 $as_echo_n "(cached) " >&6
14844 else
14845 lt_cv_apple_cc_single_mod=no
14846 if test -z "${LT_MULTI_MODULE}"; then
14847 # By default we will add the -single_module flag. You can override
14848 # by either setting the environment variable LT_MULTI_MODULE
14849 # non-empty at configure time, or by adding -multi_module to the
14850 # link flags.
14851 rm -rf libconftest.dylib*
14852 echo "int foo(void){return 1;}" > conftest.c
14853 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14854 -dynamiclib -Wl,-single_module conftest.c" >&5
14855 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14856 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14857 _lt_result=$?
14858 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14859 lt_cv_apple_cc_single_mod=yes
14860 else
14861 cat conftest.err >&5
14863 rm -rf libconftest.dylib*
14864 rm -f conftest.*
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14868 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14870 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14871 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 lt_cv_ld_exported_symbols_list=no
14875 save_LDFLAGS=$LDFLAGS
14876 echo "_main" > conftest.sym
14877 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14882 main ()
14886 return 0;
14888 _ACEOF
14889 if ac_fn_c_try_link "$LINENO"; then :
14890 lt_cv_ld_exported_symbols_list=yes
14891 else
14892 lt_cv_ld_exported_symbols_list=no
14894 rm -f core conftest.err conftest.$ac_objext \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LDFLAGS="$save_LDFLAGS"
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14900 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14902 $as_echo_n "checking for -force_load linker flag... " >&6; }
14903 if test "${lt_cv_ld_force_load+set}" = set; then :
14904 $as_echo_n "(cached) " >&6
14905 else
14906 lt_cv_ld_force_load=no
14907 cat > conftest.c << _LT_EOF
14908 int forced_loaded() { return 2;}
14909 _LT_EOF
14910 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14911 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14912 echo "$AR cru libconftest.a conftest.o" >&5
14913 $AR cru libconftest.a conftest.o 2>&5
14914 cat > conftest.c << _LT_EOF
14915 int main() { return 0;}
14916 _LT_EOF
14917 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14918 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14919 _lt_result=$?
14920 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14921 lt_cv_ld_force_load=yes
14922 else
14923 cat conftest.err >&5
14925 rm -f conftest.err libconftest.a conftest conftest.c
14926 rm -rf conftest.dSYM
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14930 $as_echo "$lt_cv_ld_force_load" >&6; }
14931 case $host_os in
14932 rhapsody* | darwin1.[012])
14933 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14934 darwin1.*)
14935 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14936 darwin*) # darwin 5.x on
14937 # if running on 10.5 or later, the deployment target defaults
14938 # to the OS version, if on x86, and 10.4, the deployment
14939 # target defaults to 10.4. Don't you love it?
14940 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14941 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14942 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14943 10.[012][,.]*)
14944 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14945 10.*)
14946 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14947 esac
14949 esac
14950 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14951 _lt_dar_single_mod='$single_module'
14953 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14954 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14955 else
14956 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14958 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14959 _lt_dsymutil='~$DSYMUTIL $lib || :'
14960 else
14961 _lt_dsymutil=
14964 esac
14967 for ac_header in dlfcn.h
14968 do :
14969 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14970 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14971 cat >>confdefs.h <<_ACEOF
14972 #define HAVE_DLFCN_H 1
14973 _ACEOF
14976 done
14982 # Set options
14986 enable_dlopen=no
14989 enable_win32_dll=no
14992 # Check whether --enable-shared was given.
14993 if test "${enable_shared+set}" = set; then :
14994 enableval=$enable_shared; p=${PACKAGE-default}
14995 case $enableval in
14996 yes) enable_shared=yes ;;
14997 no) enable_shared=no ;;
14999 enable_shared=no
15000 # Look at the argument we got. We use all the common list separators.
15001 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15002 for pkg in $enableval; do
15003 IFS="$lt_save_ifs"
15004 if test "X$pkg" = "X$p"; then
15005 enable_shared=yes
15007 done
15008 IFS="$lt_save_ifs"
15010 esac
15011 else
15012 enable_shared=yes
15023 # Check whether --enable-static was given.
15024 if test "${enable_static+set}" = set; then :
15025 enableval=$enable_static; p=${PACKAGE-default}
15026 case $enableval in
15027 yes) enable_static=yes ;;
15028 no) enable_static=no ;;
15030 enable_static=no
15031 # Look at the argument we got. We use all the common list separators.
15032 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15033 for pkg in $enableval; do
15034 IFS="$lt_save_ifs"
15035 if test "X$pkg" = "X$p"; then
15036 enable_static=yes
15038 done
15039 IFS="$lt_save_ifs"
15041 esac
15042 else
15043 enable_static=yes
15055 # Check whether --with-pic was given.
15056 if test "${with_pic+set}" = set; then :
15057 withval=$with_pic; pic_mode="$withval"
15058 else
15059 pic_mode=default
15063 test -z "$pic_mode" && pic_mode=default
15071 # Check whether --enable-fast-install was given.
15072 if test "${enable_fast_install+set}" = set; then :
15073 enableval=$enable_fast_install; p=${PACKAGE-default}
15074 case $enableval in
15075 yes) enable_fast_install=yes ;;
15076 no) enable_fast_install=no ;;
15078 enable_fast_install=no
15079 # Look at the argument we got. We use all the common list separators.
15080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15081 for pkg in $enableval; do
15082 IFS="$lt_save_ifs"
15083 if test "X$pkg" = "X$p"; then
15084 enable_fast_install=yes
15086 done
15087 IFS="$lt_save_ifs"
15089 esac
15090 else
15091 enable_fast_install=yes
15104 # This can be used to rebuild libtool when needed
15105 LIBTOOL_DEPS="$ltmain"
15107 # Always use our own libtool.
15108 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15135 test -z "$LN_S" && LN_S="ln -s"
15150 if test -n "${ZSH_VERSION+set}" ; then
15151 setopt NO_GLOB_SUBST
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15155 $as_echo_n "checking for objdir... " >&6; }
15156 if test "${lt_cv_objdir+set}" = set; then :
15157 $as_echo_n "(cached) " >&6
15158 else
15159 rm -f .libs 2>/dev/null
15160 mkdir .libs 2>/dev/null
15161 if test -d .libs; then
15162 lt_cv_objdir=.libs
15163 else
15164 # MS-DOS does not allow filenames that begin with a dot.
15165 lt_cv_objdir=_libs
15167 rmdir .libs 2>/dev/null
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15170 $as_echo "$lt_cv_objdir" >&6; }
15171 objdir=$lt_cv_objdir
15177 cat >>confdefs.h <<_ACEOF
15178 #define LT_OBJDIR "$lt_cv_objdir/"
15179 _ACEOF
15184 case $host_os in
15185 aix3*)
15186 # AIX sometimes has problems with the GCC collect2 program. For some
15187 # reason, if we set the COLLECT_NAMES environment variable, the problems
15188 # vanish in a puff of smoke.
15189 if test "X${COLLECT_NAMES+set}" != Xset; then
15190 COLLECT_NAMES=
15191 export COLLECT_NAMES
15194 esac
15196 # Global variables:
15197 ofile=libtool
15198 can_build_shared=yes
15200 # All known linkers require a `.a' archive for static linking (except MSVC,
15201 # which needs '.lib').
15202 libext=a
15204 with_gnu_ld="$lt_cv_prog_gnu_ld"
15206 old_CC="$CC"
15207 old_CFLAGS="$CFLAGS"
15209 # Set sane defaults for various variables
15210 test -z "$CC" && CC=cc
15211 test -z "$LTCC" && LTCC=$CC
15212 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15213 test -z "$LD" && LD=ld
15214 test -z "$ac_objext" && ac_objext=o
15216 for cc_temp in $compiler""; do
15217 case $cc_temp in
15218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15220 \-*) ;;
15221 *) break;;
15222 esac
15223 done
15224 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15227 # Only perform the check for file, if the check method requires it
15228 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15229 case $deplibs_check_method in
15230 file_magic*)
15231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15233 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15234 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15235 $as_echo_n "(cached) " >&6
15236 else
15237 case $MAGIC_CMD in
15238 [\\/*] | ?:[\\/]*)
15239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15242 lt_save_MAGIC_CMD="$MAGIC_CMD"
15243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15244 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15245 for ac_dir in $ac_dummy; do
15246 IFS="$lt_save_ifs"
15247 test -z "$ac_dir" && ac_dir=.
15248 if test -f $ac_dir/${ac_tool_prefix}file; then
15249 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15250 if test -n "$file_magic_test_file"; then
15251 case $deplibs_check_method in
15252 "file_magic "*)
15253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15256 $EGREP "$file_magic_regex" > /dev/null; then
15258 else
15259 cat <<_LT_EOF 1>&2
15261 *** Warning: the command libtool uses to detect shared libraries,
15262 *** $file_magic_cmd, produces output that libtool cannot recognize.
15263 *** The result is that libtool may fail to recognize shared libraries
15264 *** as such. This will affect the creation of libtool libraries that
15265 *** depend on shared libraries, but programs linked with such libtool
15266 *** libraries will work regardless of this problem. Nevertheless, you
15267 *** may want to report the problem to your system manager and/or to
15268 *** bug-libtool@gnu.org
15270 _LT_EOF
15271 fi ;;
15272 esac
15274 break
15276 done
15277 IFS="$lt_save_ifs"
15278 MAGIC_CMD="$lt_save_MAGIC_CMD"
15280 esac
15283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15284 if test -n "$MAGIC_CMD"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15286 $as_echo "$MAGIC_CMD" >&6; }
15287 else
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15289 $as_echo "no" >&6; }
15296 if test -z "$lt_cv_path_MAGIC_CMD"; then
15297 if test -n "$ac_tool_prefix"; then
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15299 $as_echo_n "checking for file... " >&6; }
15300 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15301 $as_echo_n "(cached) " >&6
15302 else
15303 case $MAGIC_CMD in
15304 [\\/*] | ?:[\\/]*)
15305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15308 lt_save_MAGIC_CMD="$MAGIC_CMD"
15309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15310 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15311 for ac_dir in $ac_dummy; do
15312 IFS="$lt_save_ifs"
15313 test -z "$ac_dir" && ac_dir=.
15314 if test -f $ac_dir/file; then
15315 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15316 if test -n "$file_magic_test_file"; then
15317 case $deplibs_check_method in
15318 "file_magic "*)
15319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15322 $EGREP "$file_magic_regex" > /dev/null; then
15324 else
15325 cat <<_LT_EOF 1>&2
15327 *** Warning: the command libtool uses to detect shared libraries,
15328 *** $file_magic_cmd, produces output that libtool cannot recognize.
15329 *** The result is that libtool may fail to recognize shared libraries
15330 *** as such. This will affect the creation of libtool libraries that
15331 *** depend on shared libraries, but programs linked with such libtool
15332 *** libraries will work regardless of this problem. Nevertheless, you
15333 *** may want to report the problem to your system manager and/or to
15334 *** bug-libtool@gnu.org
15336 _LT_EOF
15337 fi ;;
15338 esac
15340 break
15342 done
15343 IFS="$lt_save_ifs"
15344 MAGIC_CMD="$lt_save_MAGIC_CMD"
15346 esac
15349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15350 if test -n "$MAGIC_CMD"; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15352 $as_echo "$MAGIC_CMD" >&6; }
15353 else
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "no" >&6; }
15359 else
15360 MAGIC_CMD=:
15366 esac
15368 # Use C for the default configuration in the libtool script
15370 lt_save_CC="$CC"
15371 ac_ext=c
15372 ac_cpp='$CPP $CPPFLAGS'
15373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15378 # Source file extension for C test sources.
15379 ac_ext=c
15381 # Object file extension for compiled C test sources.
15382 objext=o
15383 objext=$objext
15385 # Code to be used in simple compile tests
15386 lt_simple_compile_test_code="int some_variable = 0;"
15388 # Code to be used in simple link tests
15389 lt_simple_link_test_code='int main(){return(0);}'
15397 # If no C compiler was specified, use CC.
15398 LTCC=${LTCC-"$CC"}
15400 # If no C compiler flags were specified, use CFLAGS.
15401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15403 # Allow CC to be a program name with arguments.
15404 compiler=$CC
15406 # Save the default compiler, since it gets overwritten when the other
15407 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15408 compiler_DEFAULT=$CC
15410 # save warnings/boilerplate of simple test code
15411 ac_outfile=conftest.$ac_objext
15412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15414 _lt_compiler_boilerplate=`cat conftest.err`
15415 $RM conftest*
15417 ac_outfile=conftest.$ac_objext
15418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15420 _lt_linker_boilerplate=`cat conftest.err`
15421 $RM -r conftest*
15424 ## CAVEAT EMPTOR:
15425 ## There is no encapsulation within the following macros, do not change
15426 ## the running order or otherwise move them around unless you know exactly
15427 ## what you are doing...
15428 if test -n "$compiler"; then
15430 lt_prog_compiler_no_builtin_flag=
15432 if test "$GCC" = yes; then
15433 case $cc_basename in
15434 nvcc*)
15435 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15437 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15438 esac
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15441 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15442 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15443 $as_echo_n "(cached) " >&6
15444 else
15445 lt_cv_prog_compiler_rtti_exceptions=no
15446 ac_outfile=conftest.$ac_objext
15447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15448 lt_compiler_flag="-fno-rtti -fno-exceptions"
15449 # Insert the option either (1) after the last *FLAGS variable, or
15450 # (2) before a word containing "conftest.", or (3) at the end.
15451 # Note that $ac_compile itself does not contain backslashes and begins
15452 # with a dollar sign (not a hyphen), so the echo should work correctly.
15453 # The option is referenced via a variable to avoid confusing sed.
15454 lt_compile=`echo "$ac_compile" | $SED \
15455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15457 -e 's:$: $lt_compiler_flag:'`
15458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15459 (eval "$lt_compile" 2>conftest.err)
15460 ac_status=$?
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 if (exit $ac_status) && test -s "$ac_outfile"; then
15464 # The compiler can only warn and ignore the option if not recognized
15465 # So say no if there are warnings other than the usual output.
15466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15469 lt_cv_prog_compiler_rtti_exceptions=yes
15472 $RM conftest*
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15476 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15478 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15479 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15480 else
15491 lt_prog_compiler_wl=
15492 lt_prog_compiler_pic=
15493 lt_prog_compiler_static=
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15496 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15498 if test "$GCC" = yes; then
15499 lt_prog_compiler_wl='-Wl,'
15500 lt_prog_compiler_static='-static'
15502 case $host_os in
15503 aix*)
15504 # All AIX code is PIC.
15505 if test "$host_cpu" = ia64; then
15506 # AIX 5 now supports IA64 processor
15507 lt_prog_compiler_static='-Bstatic'
15509 lt_prog_compiler_pic='-fPIC'
15512 amigaos*)
15513 case $host_cpu in
15514 powerpc)
15515 # see comment about AmigaOS4 .so support
15516 lt_prog_compiler_pic='-fPIC'
15518 m68k)
15519 # FIXME: we need at least 68020 code to build shared libraries, but
15520 # adding the `-m68020' flag to GCC prevents building anything better,
15521 # like `-m68040'.
15522 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15524 esac
15527 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15528 # PIC is the default for these OSes.
15531 mingw* | cygwin* | pw32* | os2* | cegcc*)
15532 # This hack is so that the source file can tell whether it is being
15533 # built for inclusion in a dll (and should export symbols for example).
15534 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15535 # (--disable-auto-import) libraries
15536 lt_prog_compiler_pic='-DDLL_EXPORT'
15539 darwin* | rhapsody*)
15540 # PIC is the default on this platform
15541 # Common symbols not allowed in MH_DYLIB files
15542 lt_prog_compiler_pic='-fno-common'
15545 haiku*)
15546 # PIC is the default for Haiku.
15547 # The "-static" flag exists, but is broken.
15548 lt_prog_compiler_static=
15551 hpux*)
15552 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15553 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15554 # sets the default TLS model and affects inlining.
15555 case $host_cpu in
15556 hppa*64*)
15557 # +Z the default
15560 lt_prog_compiler_pic='-fPIC'
15562 esac
15565 interix[3-9]*)
15566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15567 # Instead, we relocate shared libraries at runtime.
15570 msdosdjgpp*)
15571 # Just because we use GCC doesn't mean we suddenly get shared libraries
15572 # on systems that don't support them.
15573 lt_prog_compiler_can_build_shared=no
15574 enable_shared=no
15577 *nto* | *qnx*)
15578 # QNX uses GNU C++, but need to define -shared option too, otherwise
15579 # it will coredump.
15580 lt_prog_compiler_pic='-fPIC -shared'
15583 sysv4*MP*)
15584 if test -d /usr/nec; then
15585 lt_prog_compiler_pic=-Kconform_pic
15590 lt_prog_compiler_pic='-fPIC'
15592 esac
15594 case $cc_basename in
15595 nvcc*) # Cuda Compiler Driver 2.2
15596 lt_prog_compiler_wl='-Xlinker '
15597 lt_prog_compiler_pic='-Xcompiler -fPIC'
15599 esac
15600 else
15601 # PORTME Check for flag to pass linker flags through the system compiler.
15602 case $host_os in
15603 aix*)
15604 lt_prog_compiler_wl='-Wl,'
15605 if test "$host_cpu" = ia64; then
15606 # AIX 5 now supports IA64 processor
15607 lt_prog_compiler_static='-Bstatic'
15608 else
15609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15613 mingw* | cygwin* | pw32* | os2* | cegcc*)
15614 # This hack is so that the source file can tell whether it is being
15615 # built for inclusion in a dll (and should export symbols for example).
15616 lt_prog_compiler_pic='-DDLL_EXPORT'
15619 hpux9* | hpux10* | hpux11*)
15620 lt_prog_compiler_wl='-Wl,'
15621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15622 # not for PA HP-UX.
15623 case $host_cpu in
15624 hppa*64*|ia64*)
15625 # +Z the default
15628 lt_prog_compiler_pic='+Z'
15630 esac
15631 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15632 lt_prog_compiler_static='${wl}-a ${wl}archive'
15635 irix5* | irix6* | nonstopux*)
15636 lt_prog_compiler_wl='-Wl,'
15637 # PIC (with -KPIC) is the default.
15638 lt_prog_compiler_static='-non_shared'
15641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15642 case $cc_basename in
15643 # old Intel for x86_64 which still supported -KPIC.
15644 ecc*)
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='-KPIC'
15647 lt_prog_compiler_static='-static'
15649 # icc used to be incompatible with GCC.
15650 # ICC 10 doesn't accept -KPIC any more.
15651 icc* | ifort*)
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-fPIC'
15654 lt_prog_compiler_static='-static'
15656 # Lahey Fortran 8.1.
15657 lf95*)
15658 lt_prog_compiler_wl='-Wl,'
15659 lt_prog_compiler_pic='--shared'
15660 lt_prog_compiler_static='--static'
15662 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15663 # Portland Group compilers (*not* the Pentium gcc compiler,
15664 # which looks to be a dead project)
15665 lt_prog_compiler_wl='-Wl,'
15666 lt_prog_compiler_pic='-fpic'
15667 lt_prog_compiler_static='-Bstatic'
15669 ccc*)
15670 lt_prog_compiler_wl='-Wl,'
15671 # All Alpha code is PIC.
15672 lt_prog_compiler_static='-non_shared'
15674 xl* | bgxl* | bgf* | mpixl*)
15675 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15676 lt_prog_compiler_wl='-Wl,'
15677 lt_prog_compiler_pic='-qpic'
15678 lt_prog_compiler_static='-qstaticlink'
15681 case `$CC -V 2>&1 | sed 5q` in
15682 *Sun\ F* | *Sun*Fortran*)
15683 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15684 lt_prog_compiler_pic='-KPIC'
15685 lt_prog_compiler_static='-Bstatic'
15686 lt_prog_compiler_wl=''
15688 *Sun\ C*)
15689 # Sun C 5.9
15690 lt_prog_compiler_pic='-KPIC'
15691 lt_prog_compiler_static='-Bstatic'
15692 lt_prog_compiler_wl='-Wl,'
15694 esac
15696 esac
15699 newsos6)
15700 lt_prog_compiler_pic='-KPIC'
15701 lt_prog_compiler_static='-Bstatic'
15704 *nto* | *qnx*)
15705 # QNX uses GNU C++, but need to define -shared option too, otherwise
15706 # it will coredump.
15707 lt_prog_compiler_pic='-fPIC -shared'
15710 osf3* | osf4* | osf5*)
15711 lt_prog_compiler_wl='-Wl,'
15712 # All OSF/1 code is PIC.
15713 lt_prog_compiler_static='-non_shared'
15716 rdos*)
15717 lt_prog_compiler_static='-non_shared'
15720 solaris*)
15721 lt_prog_compiler_pic='-KPIC'
15722 lt_prog_compiler_static='-Bstatic'
15723 case $cc_basename in
15724 f77* | f90* | f95*)
15725 lt_prog_compiler_wl='-Qoption ld ';;
15727 lt_prog_compiler_wl='-Wl,';;
15728 esac
15731 sunos4*)
15732 lt_prog_compiler_wl='-Qoption ld '
15733 lt_prog_compiler_pic='-PIC'
15734 lt_prog_compiler_static='-Bstatic'
15737 sysv4 | sysv4.2uw2* | sysv4.3*)
15738 lt_prog_compiler_wl='-Wl,'
15739 lt_prog_compiler_pic='-KPIC'
15740 lt_prog_compiler_static='-Bstatic'
15743 sysv4*MP*)
15744 if test -d /usr/nec ;then
15745 lt_prog_compiler_pic='-Kconform_pic'
15746 lt_prog_compiler_static='-Bstatic'
15750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15751 lt_prog_compiler_wl='-Wl,'
15752 lt_prog_compiler_pic='-KPIC'
15753 lt_prog_compiler_static='-Bstatic'
15756 unicos*)
15757 lt_prog_compiler_wl='-Wl,'
15758 lt_prog_compiler_can_build_shared=no
15761 uts4*)
15762 lt_prog_compiler_pic='-pic'
15763 lt_prog_compiler_static='-Bstatic'
15767 lt_prog_compiler_can_build_shared=no
15769 esac
15772 case $host_os in
15773 # For platforms which do not support PIC, -DPIC is meaningless:
15774 *djgpp*)
15775 lt_prog_compiler_pic=
15778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15780 esac
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15782 $as_echo "$lt_prog_compiler_pic" >&6; }
15790 # Check to make sure the PIC flag actually works.
15792 if test -n "$lt_prog_compiler_pic"; then
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15794 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15795 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15796 $as_echo_n "(cached) " >&6
15797 else
15798 lt_cv_prog_compiler_pic_works=no
15799 ac_outfile=conftest.$ac_objext
15800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15802 # Insert the option either (1) after the last *FLAGS variable, or
15803 # (2) before a word containing "conftest.", or (3) at the end.
15804 # Note that $ac_compile itself does not contain backslashes and begins
15805 # with a dollar sign (not a hyphen), so the echo should work correctly.
15806 # The option is referenced via a variable to avoid confusing sed.
15807 lt_compile=`echo "$ac_compile" | $SED \
15808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15810 -e 's:$: $lt_compiler_flag:'`
15811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15812 (eval "$lt_compile" 2>conftest.err)
15813 ac_status=$?
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 if (exit $ac_status) && test -s "$ac_outfile"; then
15817 # The compiler can only warn and ignore the option if not recognized
15818 # So say no if there are warnings other than the usual output.
15819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15822 lt_cv_prog_compiler_pic_works=yes
15825 $RM conftest*
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15829 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15831 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15832 case $lt_prog_compiler_pic in
15833 "" | " "*) ;;
15834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15835 esac
15836 else
15837 lt_prog_compiler_pic=
15838 lt_prog_compiler_can_build_shared=no
15849 # Check to make sure the static flag actually works.
15851 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15853 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15854 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15857 lt_cv_prog_compiler_static_works=no
15858 save_LDFLAGS="$LDFLAGS"
15859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15862 # The linker can only warn and ignore the option if not recognized
15863 # So say no if there are warnings
15864 if test -s conftest.err; then
15865 # Append any errors to the config.log.
15866 cat conftest.err 1>&5
15867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15869 if diff conftest.exp conftest.er2 >/dev/null; then
15870 lt_cv_prog_compiler_static_works=yes
15872 else
15873 lt_cv_prog_compiler_static_works=yes
15876 $RM -r conftest*
15877 LDFLAGS="$save_LDFLAGS"
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15881 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15883 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15885 else
15886 lt_prog_compiler_static=
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15896 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15897 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15898 $as_echo_n "(cached) " >&6
15899 else
15900 lt_cv_prog_compiler_c_o=no
15901 $RM -r conftest 2>/dev/null
15902 mkdir conftest
15903 cd conftest
15904 mkdir out
15905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15907 lt_compiler_flag="-o out/conftest2.$ac_objext"
15908 # Insert the option either (1) after the last *FLAGS variable, or
15909 # (2) before a word containing "conftest.", or (3) at the end.
15910 # Note that $ac_compile itself does not contain backslashes and begins
15911 # with a dollar sign (not a hyphen), so the echo should work correctly.
15912 lt_compile=`echo "$ac_compile" | $SED \
15913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15915 -e 's:$: $lt_compiler_flag:'`
15916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15917 (eval "$lt_compile" 2>out/conftest.err)
15918 ac_status=$?
15919 cat out/conftest.err >&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15922 then
15923 # The compiler can only warn and ignore the option if not recognized
15924 # So say no if there are warnings
15925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15928 lt_cv_prog_compiler_c_o=yes
15931 chmod u+w . 2>&5
15932 $RM conftest*
15933 # SGI C++ compiler will create directory out/ii_files/ for
15934 # template instantiation
15935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15936 $RM out/* && rmdir out
15937 cd ..
15938 $RM -r conftest
15939 $RM conftest*
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15943 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15951 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15952 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15953 $as_echo_n "(cached) " >&6
15954 else
15955 lt_cv_prog_compiler_c_o=no
15956 $RM -r conftest 2>/dev/null
15957 mkdir conftest
15958 cd conftest
15959 mkdir out
15960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15962 lt_compiler_flag="-o out/conftest2.$ac_objext"
15963 # Insert the option either (1) after the last *FLAGS variable, or
15964 # (2) before a word containing "conftest.", or (3) at the end.
15965 # Note that $ac_compile itself does not contain backslashes and begins
15966 # with a dollar sign (not a hyphen), so the echo should work correctly.
15967 lt_compile=`echo "$ac_compile" | $SED \
15968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15970 -e 's:$: $lt_compiler_flag:'`
15971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15972 (eval "$lt_compile" 2>out/conftest.err)
15973 ac_status=$?
15974 cat out/conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15977 then
15978 # The compiler can only warn and ignore the option if not recognized
15979 # So say no if there are warnings
15980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15983 lt_cv_prog_compiler_c_o=yes
15986 chmod u+w . 2>&5
15987 $RM conftest*
15988 # SGI C++ compiler will create directory out/ii_files/ for
15989 # template instantiation
15990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15991 $RM out/* && rmdir out
15992 cd ..
15993 $RM -r conftest
15994 $RM conftest*
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16003 hard_links="nottested"
16004 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16005 # do not overwrite the value of need_locks provided by the user
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16007 $as_echo_n "checking if we can lock with hard links... " >&6; }
16008 hard_links=yes
16009 $RM conftest*
16010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16011 touch conftest.a
16012 ln conftest.a conftest.b 2>&5 || hard_links=no
16013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16015 $as_echo "$hard_links" >&6; }
16016 if test "$hard_links" = no; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16018 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16019 need_locks=warn
16021 else
16022 need_locks=no
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16031 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16033 runpath_var=
16034 allow_undefined_flag=
16035 always_export_symbols=no
16036 archive_cmds=
16037 archive_expsym_cmds=
16038 compiler_needs_object=no
16039 enable_shared_with_static_runtimes=no
16040 export_dynamic_flag_spec=
16041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16042 hardcode_automatic=no
16043 hardcode_direct=no
16044 hardcode_direct_absolute=no
16045 hardcode_libdir_flag_spec=
16046 hardcode_libdir_flag_spec_ld=
16047 hardcode_libdir_separator=
16048 hardcode_minus_L=no
16049 hardcode_shlibpath_var=unsupported
16050 inherit_rpath=no
16051 link_all_deplibs=unknown
16052 module_cmds=
16053 module_expsym_cmds=
16054 old_archive_from_new_cmds=
16055 old_archive_from_expsyms_cmds=
16056 thread_safe_flag_spec=
16057 whole_archive_flag_spec=
16058 # include_expsyms should be a list of space-separated symbols to be *always*
16059 # included in the symbol list
16060 include_expsyms=
16061 # exclude_expsyms can be an extended regexp of symbols to exclude
16062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16064 # as well as any symbol that contains `d'.
16065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16067 # platforms (ab)use it in PIC code, but their linkers get confused if
16068 # the symbol is explicitly referenced. Since portable code cannot
16069 # rely on this symbol name, it's probably fine to never include it in
16070 # preloaded symbol tables.
16071 # Exclude shared library initialization/finalization symbols.
16072 extract_expsyms_cmds=
16074 case $host_os in
16075 cygwin* | mingw* | pw32* | cegcc*)
16076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16077 # When not using gcc, we currently assume that we are using
16078 # Microsoft Visual C++.
16079 if test "$GCC" != yes; then
16080 with_gnu_ld=no
16083 interix*)
16084 # we just hope/assume this is gcc and not c89 (= MSVC++)
16085 with_gnu_ld=yes
16087 openbsd*)
16088 with_gnu_ld=no
16090 esac
16092 ld_shlibs=yes
16094 # On some targets, GNU ld is compatible enough with the native linker
16095 # that we're better off using the native interface for both.
16096 lt_use_gnu_ld_interface=no
16097 if test "$with_gnu_ld" = yes; then
16098 case $host_os in
16099 aix*)
16100 # The AIX port of GNU ld has always aspired to compatibility
16101 # with the native linker. However, as the warning in the GNU ld
16102 # block says, versions before 2.19.5* couldn't really create working
16103 # shared libraries, regardless of the interface used.
16104 case `$LD -v 2>&1` in
16105 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16106 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16107 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16109 lt_use_gnu_ld_interface=yes
16111 esac
16114 lt_use_gnu_ld_interface=yes
16116 esac
16119 if test "$lt_use_gnu_ld_interface" = yes; then
16120 # If archive_cmds runs LD, not CC, wlarc should be empty
16121 wlarc='${wl}'
16123 # Set some defaults for GNU ld with shared library support. These
16124 # are reset later if shared libraries are not supported. Putting them
16125 # here allows them to be overridden if necessary.
16126 runpath_var=LD_RUN_PATH
16127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16128 export_dynamic_flag_spec='${wl}--export-dynamic'
16129 # ancient GNU ld didn't support --whole-archive et. al.
16130 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16131 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16132 else
16133 whole_archive_flag_spec=
16135 supports_anon_versioning=no
16136 case `$LD -v 2>&1` in
16137 *GNU\ gold*) supports_anon_versioning=yes ;;
16138 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16141 *\ 2.11.*) ;; # other 2.11 versions
16142 *) supports_anon_versioning=yes ;;
16143 esac
16145 # See if GNU ld supports shared libraries.
16146 case $host_os in
16147 aix[3-9]*)
16148 # On AIX/PPC, the GNU linker is very broken
16149 if test "$host_cpu" != ia64; then
16150 ld_shlibs=no
16151 cat <<_LT_EOF 1>&2
16153 *** Warning: the GNU linker, at least up to release 2.19, is reported
16154 *** to be unable to reliably create shared libraries on AIX.
16155 *** Therefore, libtool is disabling shared libraries support. If you
16156 *** really care for shared libraries, you may want to install binutils
16157 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16158 *** You will then need to restart the configuration process.
16160 _LT_EOF
16164 amigaos*)
16165 case $host_cpu in
16166 powerpc)
16167 # see comment about AmigaOS4 .so support
16168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16169 archive_expsym_cmds=''
16171 m68k)
16172 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)'
16173 hardcode_libdir_flag_spec='-L$libdir'
16174 hardcode_minus_L=yes
16176 esac
16179 beos*)
16180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16181 allow_undefined_flag=unsupported
16182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16183 # support --undefined. This deserves some investigation. FIXME
16184 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16185 else
16186 ld_shlibs=no
16190 cygwin* | mingw* | pw32* | cegcc*)
16191 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16192 # as there is no search path for DLLs.
16193 hardcode_libdir_flag_spec='-L$libdir'
16194 export_dynamic_flag_spec='${wl}--export-all-symbols'
16195 allow_undefined_flag=unsupported
16196 always_export_symbols=no
16197 enable_shared_with_static_runtimes=yes
16198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16200 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16202 # If the export-symbols file already is a .def file (1st line
16203 # is EXPORTS), use it as is; otherwise, prepend...
16204 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16205 cp $export_symbols $output_objdir/$soname.def;
16206 else
16207 echo EXPORTS > $output_objdir/$soname.def;
16208 cat $export_symbols >> $output_objdir/$soname.def;
16210 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16211 else
16212 ld_shlibs=no
16216 haiku*)
16217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16218 link_all_deplibs=yes
16221 interix[3-9]*)
16222 hardcode_direct=no
16223 hardcode_shlibpath_var=no
16224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16225 export_dynamic_flag_spec='${wl}-E'
16226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16227 # Instead, shared libraries are loaded at an image base (0x10000000 by
16228 # default) and relocated if they conflict, which is a slow very memory
16229 # consuming and fragmenting process. To avoid this, we pick a random,
16230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16231 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16233 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'
16236 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16237 tmp_diet=no
16238 if test "$host_os" = linux-dietlibc; then
16239 case $cc_basename in
16240 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16241 esac
16243 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16244 && test "$tmp_diet" = no
16245 then
16246 tmp_addflag=' $pic_flag'
16247 tmp_sharedflag='-shared'
16248 case $cc_basename,$host_cpu in
16249 pgcc*) # Portland Group C compiler
16250 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'
16251 tmp_addflag=' $pic_flag'
16253 pgf77* | pgf90* | pgf95* | pgfortran*)
16254 # Portland Group f77 and f90 compilers
16255 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'
16256 tmp_addflag=' $pic_flag -Mnomain' ;;
16257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16258 tmp_addflag=' -i_dynamic' ;;
16259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16260 tmp_addflag=' -i_dynamic -nofor_main' ;;
16261 ifc* | ifort*) # Intel Fortran compiler
16262 tmp_addflag=' -nofor_main' ;;
16263 lf95*) # Lahey Fortran 8.1
16264 whole_archive_flag_spec=
16265 tmp_sharedflag='--shared' ;;
16266 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16267 tmp_sharedflag='-qmkshrobj'
16268 tmp_addflag= ;;
16269 nvcc*) # Cuda Compiler Driver 2.2
16270 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'
16271 compiler_needs_object=yes
16273 esac
16274 case `$CC -V 2>&1 | sed 5q` in
16275 *Sun\ C*) # Sun C 5.9
16276 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'
16277 compiler_needs_object=yes
16278 tmp_sharedflag='-G' ;;
16279 *Sun\ F*) # Sun Fortran 8.3
16280 tmp_sharedflag='-G' ;;
16281 esac
16282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16284 if test "x$supports_anon_versioning" = xyes; then
16285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16287 echo "local: *; };" >> $output_objdir/$libname.ver~
16288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16291 case $cc_basename in
16292 xlf* | bgf* | bgxlf* | mpixlf*)
16293 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16294 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16295 hardcode_libdir_flag_spec=
16296 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16297 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16298 if test "x$supports_anon_versioning" = xyes; then
16299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16301 echo "local: *; };" >> $output_objdir/$libname.ver~
16302 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16305 esac
16306 else
16307 ld_shlibs=no
16311 netbsd*)
16312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16314 wlarc=
16315 else
16316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16321 solaris*)
16322 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16323 ld_shlibs=no
16324 cat <<_LT_EOF 1>&2
16326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16327 *** create shared libraries on Solaris systems. Therefore, libtool
16328 *** is disabling shared libraries support. We urge you to upgrade GNU
16329 *** binutils to release 2.9.1 or newer. Another option is to modify
16330 *** your PATH or compiler configuration so that the native linker is
16331 *** used, and then restart.
16333 _LT_EOF
16334 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16337 else
16338 ld_shlibs=no
16342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16343 case `$LD -v 2>&1` in
16344 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16345 ld_shlibs=no
16346 cat <<_LT_EOF 1>&2
16348 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16349 *** reliably create shared libraries on SCO systems. Therefore, libtool
16350 *** is disabling shared libraries support. We urge you to upgrade GNU
16351 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16352 *** your PATH or compiler configuration so that the native linker is
16353 *** used, and then restart.
16355 _LT_EOF
16358 # For security reasons, it is highly recommended that you always
16359 # use absolute paths for naming shared libraries, and exclude the
16360 # DT_RUNPATH tag from executables and libraries. But doing so
16361 # requires that you compile everything twice, which is a pain.
16362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16366 else
16367 ld_shlibs=no
16370 esac
16373 sunos4*)
16374 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16375 wlarc=
16376 hardcode_direct=yes
16377 hardcode_shlibpath_var=no
16381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16384 else
16385 ld_shlibs=no
16388 esac
16390 if test "$ld_shlibs" = no; then
16391 runpath_var=
16392 hardcode_libdir_flag_spec=
16393 export_dynamic_flag_spec=
16394 whole_archive_flag_spec=
16396 else
16397 # PORTME fill in a description of your system's linker (not GNU ld)
16398 case $host_os in
16399 aix3*)
16400 allow_undefined_flag=unsupported
16401 always_export_symbols=yes
16402 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'
16403 # Note: this linker hardcodes the directories in LIBPATH if there
16404 # are no directories specified by -L.
16405 hardcode_minus_L=yes
16406 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16407 # Neither direct hardcoding nor static linking is supported with a
16408 # broken collect2.
16409 hardcode_direct=unsupported
16413 aix[4-9]*)
16414 if test "$host_cpu" = ia64; then
16415 # On IA64, the linker does run time linking by default, so we don't
16416 # have to do anything special.
16417 aix_use_runtimelinking=no
16418 exp_sym_flag='-Bexport'
16419 no_entry_flag=""
16420 else
16421 # If we're using GNU nm, then we don't want the "-C" option.
16422 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16423 # Also, AIX nm treats weak defined symbols like other global
16424 # defined symbols, whereas GNU nm marks them as "W".
16425 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16426 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'
16427 else
16428 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'
16430 aix_use_runtimelinking=no
16432 # Test if we are trying to use run time linking or normal
16433 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16434 # need to do runtime linking.
16435 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16436 for ld_flag in $LDFLAGS; do
16437 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16438 aix_use_runtimelinking=yes
16439 break
16441 done
16443 esac
16445 exp_sym_flag='-bexport'
16446 no_entry_flag='-bnoentry'
16449 # When large executables or shared objects are built, AIX ld can
16450 # have problems creating the table of contents. If linking a library
16451 # or program results in "error TOC overflow" add -mminimal-toc to
16452 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16453 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16455 archive_cmds=''
16456 hardcode_direct=yes
16457 hardcode_direct_absolute=yes
16458 hardcode_libdir_separator=':'
16459 link_all_deplibs=yes
16460 file_list_spec='${wl}-f,'
16462 if test "$GCC" = yes; then
16463 case $host_os in aix4.[012]|aix4.[012].*)
16464 # We only want to do this on AIX 4.2 and lower, the check
16465 # below for broken collect2 doesn't work under 4.3+
16466 collect2name=`${CC} -print-prog-name=collect2`
16467 if test -f "$collect2name" &&
16468 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16469 then
16470 # We have reworked collect2
16472 else
16473 # We have old collect2
16474 hardcode_direct=unsupported
16475 # It fails to find uninstalled libraries when the uninstalled
16476 # path is not listed in the libpath. Setting hardcode_minus_L
16477 # to unsupported forces relinking
16478 hardcode_minus_L=yes
16479 hardcode_libdir_flag_spec='-L$libdir'
16480 hardcode_libdir_separator=
16483 esac
16484 shared_flag='-shared'
16485 if test "$aix_use_runtimelinking" = yes; then
16486 shared_flag="$shared_flag "'${wl}-G'
16488 else
16489 # not using gcc
16490 if test "$host_cpu" = ia64; then
16491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16492 # chokes on -Wl,-G. The following line is correct:
16493 shared_flag='-G'
16494 else
16495 if test "$aix_use_runtimelinking" = yes; then
16496 shared_flag='${wl}-G'
16497 else
16498 shared_flag='${wl}-bM:SRE'
16503 export_dynamic_flag_spec='${wl}-bexpall'
16504 # It seems that -bexpall does not export symbols beginning with
16505 # underscore (_), so it is better to generate a list of symbols to export.
16506 always_export_symbols=yes
16507 if test "$aix_use_runtimelinking" = yes; then
16508 # Warning - without using the other runtime loading flags (-brtl),
16509 # -berok will link without error, but may produce a broken library.
16510 allow_undefined_flag='-berok'
16511 # Determine the default libpath from the value encoded in an
16512 # empty executable.
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16517 main ()
16521 return 0;
16523 _ACEOF
16524 if ac_fn_c_try_link "$LINENO"; then :
16526 lt_aix_libpath_sed='
16527 /Import File Strings/,/^$/ {
16528 /^0/ {
16529 s/^0 *\(.*\)$/\1/
16533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16534 # Check for a 64-bit object if we didn't find anything.
16535 if test -z "$aix_libpath"; then
16536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16539 rm -f core conftest.err conftest.$ac_objext \
16540 conftest$ac_exeext conftest.$ac_ext
16541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16544 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"
16545 else
16546 if test "$host_cpu" = ia64; then
16547 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16548 allow_undefined_flag="-z nodefs"
16549 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"
16550 else
16551 # Determine the default libpath from the value encoded in an
16552 # empty executable.
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16557 main ()
16561 return 0;
16563 _ACEOF
16564 if ac_fn_c_try_link "$LINENO"; then :
16566 lt_aix_libpath_sed='
16567 /Import File Strings/,/^$/ {
16568 /^0/ {
16569 s/^0 *\(.*\)$/\1/
16573 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16574 # Check for a 64-bit object if we didn't find anything.
16575 if test -z "$aix_libpath"; then
16576 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16579 rm -f core conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
16581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16583 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16584 # Warning - without using the other run time loading flags,
16585 # -berok will link without error, but may produce a broken library.
16586 no_undefined_flag=' ${wl}-bernotok'
16587 allow_undefined_flag=' ${wl}-berok'
16588 if test "$with_gnu_ld" = yes; then
16589 # We only use this code for GNU lds that support --whole-archive.
16590 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16591 else
16592 # Exported symbols can be pulled into shared objects from archives
16593 whole_archive_flag_spec='$convenience'
16595 archive_cmds_need_lc=yes
16596 # This is similar to how AIX traditionally builds its shared libraries.
16597 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'
16602 amigaos*)
16603 case $host_cpu in
16604 powerpc)
16605 # see comment about AmigaOS4 .so support
16606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16607 archive_expsym_cmds=''
16609 m68k)
16610 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)'
16611 hardcode_libdir_flag_spec='-L$libdir'
16612 hardcode_minus_L=yes
16614 esac
16617 bsdi[45]*)
16618 export_dynamic_flag_spec=-rdynamic
16621 cygwin* | mingw* | pw32* | cegcc*)
16622 # When not using gcc, we currently assume that we are using
16623 # Microsoft Visual C++.
16624 # hardcode_libdir_flag_spec is actually meaningless, as there is
16625 # no search path for DLLs.
16626 hardcode_libdir_flag_spec=' '
16627 allow_undefined_flag=unsupported
16628 # Tell ltmain to make .lib files, not .a files.
16629 libext=lib
16630 # Tell ltmain to make .dll files, not .so files.
16631 shrext_cmds=".dll"
16632 # FIXME: Setting linknames here is a bad hack.
16633 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16634 # The linker will automatically build a .lib file if we build a DLL.
16635 old_archive_from_new_cmds='true'
16636 # FIXME: Should let the user specify the lib program.
16637 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16638 fix_srcfile_path='`cygpath -w "$srcfile"`'
16639 enable_shared_with_static_runtimes=yes
16642 darwin* | rhapsody*)
16645 archive_cmds_need_lc=no
16646 hardcode_direct=no
16647 hardcode_automatic=yes
16648 hardcode_shlibpath_var=unsupported
16649 if test "$lt_cv_ld_force_load" = "yes"; then
16650 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\"`'
16651 else
16652 whole_archive_flag_spec=''
16654 link_all_deplibs=yes
16655 allow_undefined_flag="$_lt_dar_allow_undefined"
16656 case $cc_basename in
16657 ifort*) _lt_dar_can_shared=yes ;;
16658 *) _lt_dar_can_shared=$GCC ;;
16659 esac
16660 if test "$_lt_dar_can_shared" = "yes"; then
16661 output_verbose_link_cmd=func_echo_all
16662 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16663 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16664 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}"
16665 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}"
16667 else
16668 ld_shlibs=no
16673 dgux*)
16674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16675 hardcode_libdir_flag_spec='-L$libdir'
16676 hardcode_shlibpath_var=no
16679 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16680 # support. Future versions do this automatically, but an explicit c++rt0.o
16681 # does not break anything, and helps significantly (at the cost of a little
16682 # extra space).
16683 freebsd2.2*)
16684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16685 hardcode_libdir_flag_spec='-R$libdir'
16686 hardcode_direct=yes
16687 hardcode_shlibpath_var=no
16690 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16691 freebsd2.*)
16692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16693 hardcode_direct=yes
16694 hardcode_minus_L=yes
16695 hardcode_shlibpath_var=no
16698 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16699 freebsd* | dragonfly*)
16700 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16701 hardcode_libdir_flag_spec='-R$libdir'
16702 hardcode_direct=yes
16703 hardcode_shlibpath_var=no
16706 hpux9*)
16707 if test "$GCC" = yes; then
16708 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'
16709 else
16710 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'
16712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16713 hardcode_libdir_separator=:
16714 hardcode_direct=yes
16716 # hardcode_minus_L: Not really in the search PATH,
16717 # but as the default location of the library.
16718 hardcode_minus_L=yes
16719 export_dynamic_flag_spec='${wl}-E'
16722 hpux10*)
16723 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16725 else
16726 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16728 if test "$with_gnu_ld" = no; then
16729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16730 hardcode_libdir_flag_spec_ld='+b $libdir'
16731 hardcode_libdir_separator=:
16732 hardcode_direct=yes
16733 hardcode_direct_absolute=yes
16734 export_dynamic_flag_spec='${wl}-E'
16735 # hardcode_minus_L: Not really in the search PATH,
16736 # but as the default location of the library.
16737 hardcode_minus_L=yes
16741 hpux11*)
16742 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16743 case $host_cpu in
16744 hppa*64*)
16745 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 ia64*)
16748 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16751 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16753 esac
16754 else
16755 case $host_cpu in
16756 hppa*64*)
16757 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16759 ia64*)
16760 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16764 # Older versions of the 11.00 compiler do not understand -b yet
16765 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16767 $as_echo_n "checking if $CC understands -b... " >&6; }
16768 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16769 $as_echo_n "(cached) " >&6
16770 else
16771 lt_cv_prog_compiler__b=no
16772 save_LDFLAGS="$LDFLAGS"
16773 LDFLAGS="$LDFLAGS -b"
16774 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16775 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16776 # The linker can only warn and ignore the option if not recognized
16777 # So say no if there are warnings
16778 if test -s conftest.err; then
16779 # Append any errors to the config.log.
16780 cat conftest.err 1>&5
16781 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16783 if diff conftest.exp conftest.er2 >/dev/null; then
16784 lt_cv_prog_compiler__b=yes
16786 else
16787 lt_cv_prog_compiler__b=yes
16790 $RM -r conftest*
16791 LDFLAGS="$save_LDFLAGS"
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16795 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16797 if test x"$lt_cv_prog_compiler__b" = xyes; then
16798 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16799 else
16800 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16804 esac
16806 if test "$with_gnu_ld" = no; then
16807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16808 hardcode_libdir_separator=:
16810 case $host_cpu in
16811 hppa*64*|ia64*)
16812 hardcode_direct=no
16813 hardcode_shlibpath_var=no
16816 hardcode_direct=yes
16817 hardcode_direct_absolute=yes
16818 export_dynamic_flag_spec='${wl}-E'
16820 # hardcode_minus_L: Not really in the search PATH,
16821 # but as the default location of the library.
16822 hardcode_minus_L=yes
16824 esac
16828 irix5* | irix6* | nonstopux*)
16829 if test "$GCC" = yes; then
16830 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'
16831 # Try to use the -exported_symbol ld option, if it does not
16832 # work, assume that -exports_file does not work either and
16833 # implicitly export all symbols.
16834 save_LDFLAGS="$LDFLAGS"
16835 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 int foo(void) {}
16839 _ACEOF
16840 if ac_fn_c_try_link "$LINENO"; then :
16841 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'
16844 rm -f core conftest.err conftest.$ac_objext \
16845 conftest$ac_exeext conftest.$ac_ext
16846 LDFLAGS="$save_LDFLAGS"
16847 else
16848 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'
16849 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'
16851 archive_cmds_need_lc='no'
16852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16853 hardcode_libdir_separator=:
16854 inherit_rpath=yes
16855 link_all_deplibs=yes
16858 netbsd*)
16859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16861 else
16862 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16864 hardcode_libdir_flag_spec='-R$libdir'
16865 hardcode_direct=yes
16866 hardcode_shlibpath_var=no
16869 newsos6)
16870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16871 hardcode_direct=yes
16872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16873 hardcode_libdir_separator=:
16874 hardcode_shlibpath_var=no
16877 *nto* | *qnx*)
16880 openbsd*)
16881 if test -f /usr/libexec/ld.so; then
16882 hardcode_direct=yes
16883 hardcode_shlibpath_var=no
16884 hardcode_direct_absolute=yes
16885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16887 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16889 export_dynamic_flag_spec='${wl}-E'
16890 else
16891 case $host_os in
16892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_libdir_flag_spec='-R$libdir'
16897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16900 esac
16902 else
16903 ld_shlibs=no
16907 os2*)
16908 hardcode_libdir_flag_spec='-L$libdir'
16909 hardcode_minus_L=yes
16910 allow_undefined_flag=unsupported
16911 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'
16912 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16915 osf3*)
16916 if test "$GCC" = yes; then
16917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16918 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'
16919 else
16920 allow_undefined_flag=' -expect_unresolved \*'
16921 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'
16923 archive_cmds_need_lc='no'
16924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16925 hardcode_libdir_separator=:
16928 osf4* | osf5*) # as osf3* with the addition of -msym flag
16929 if test "$GCC" = yes; then
16930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16931 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'
16932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16933 else
16934 allow_undefined_flag=' -expect_unresolved \*'
16935 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'
16936 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~
16937 $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'
16939 # Both c and cxx compiler support -rpath directly
16940 hardcode_libdir_flag_spec='-rpath $libdir'
16942 archive_cmds_need_lc='no'
16943 hardcode_libdir_separator=:
16946 solaris*)
16947 no_undefined_flag=' -z defs'
16948 if test "$GCC" = yes; then
16949 wlarc='${wl}'
16950 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16952 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16953 else
16954 case `$CC -V 2>&1` in
16955 *"Compilers 5.0"*)
16956 wlarc=''
16957 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16962 wlarc='${wl}'
16963 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16965 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16967 esac
16969 hardcode_libdir_flag_spec='-R$libdir'
16970 hardcode_shlibpath_var=no
16971 case $host_os in
16972 solaris2.[0-5] | solaris2.[0-5].*) ;;
16974 # The compiler driver will combine and reorder linker options,
16975 # but understands `-z linker_flag'. GCC discards it without `$wl',
16976 # but is careful enough not to reorder.
16977 # Supported since Solaris 2.6 (maybe 2.5.1?)
16978 if test "$GCC" = yes; then
16979 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16980 else
16981 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16984 esac
16985 link_all_deplibs=yes
16988 sunos4*)
16989 if test "x$host_vendor" = xsequent; then
16990 # Use $CC to link under sequent, because it throws in some extra .o
16991 # files that make .init and .fini sections work.
16992 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16993 else
16994 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16996 hardcode_libdir_flag_spec='-L$libdir'
16997 hardcode_direct=yes
16998 hardcode_minus_L=yes
16999 hardcode_shlibpath_var=no
17002 sysv4)
17003 case $host_vendor in
17004 sni)
17005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_direct=yes # is this really true???
17008 siemens)
17009 ## LD is ld it makes a PLAMLIB
17010 ## CC just makes a GrossModule.
17011 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17012 reload_cmds='$CC -r -o $output$reload_objs'
17013 hardcode_direct=no
17015 motorola)
17016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17017 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17019 esac
17020 runpath_var='LD_RUN_PATH'
17021 hardcode_shlibpath_var=no
17024 sysv4.3*)
17025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 hardcode_shlibpath_var=no
17027 export_dynamic_flag_spec='-Bexport'
17030 sysv4*MP*)
17031 if test -d /usr/nec; then
17032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17033 hardcode_shlibpath_var=no
17034 runpath_var=LD_RUN_PATH
17035 hardcode_runpath_var=yes
17036 ld_shlibs=yes
17040 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17041 no_undefined_flag='${wl}-z,text'
17042 archive_cmds_need_lc=no
17043 hardcode_shlibpath_var=no
17044 runpath_var='LD_RUN_PATH'
17046 if test "$GCC" = yes; then
17047 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17049 else
17050 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 sysv5* | sco3.2v5* | sco5v6*)
17056 # Note: We can NOT use -z defs as we might desire, because we do not
17057 # link with -lc, and that would cause any symbols used from libc to
17058 # always be unresolved, which means just about no library would
17059 # ever link correctly. If we're not using GNU ld we use -z text
17060 # though, which does catch some bad symbols but isn't as heavy-handed
17061 # as -z defs.
17062 no_undefined_flag='${wl}-z,text'
17063 allow_undefined_flag='${wl}-z,nodefs'
17064 archive_cmds_need_lc=no
17065 hardcode_shlibpath_var=no
17066 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17067 hardcode_libdir_separator=':'
17068 link_all_deplibs=yes
17069 export_dynamic_flag_spec='${wl}-Bexport'
17070 runpath_var='LD_RUN_PATH'
17072 if test "$GCC" = yes; then
17073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17075 else
17076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 uts4*)
17082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17083 hardcode_libdir_flag_spec='-L$libdir'
17084 hardcode_shlibpath_var=no
17088 ld_shlibs=no
17090 esac
17092 if test x$host_vendor = xsni; then
17093 case $host in
17094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17095 export_dynamic_flag_spec='${wl}-Blargedynsym'
17097 esac
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17102 $as_echo "$ld_shlibs" >&6; }
17103 test "$ld_shlibs" = no && can_build_shared=no
17105 with_gnu_ld=$with_gnu_ld
17122 # Do we need to explicitly link libc?
17124 case "x$archive_cmds_need_lc" in
17125 x|xyes)
17126 # Assume -lc should be added
17127 archive_cmds_need_lc=yes
17129 if test "$enable_shared" = yes && test "$GCC" = yes; then
17130 case $archive_cmds in
17131 *'~'*)
17132 # FIXME: we may have to deal with multi-command sequences.
17134 '$CC '*)
17135 # Test whether the compiler implicitly links with -lc since on some
17136 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17137 # to ld, don't add -lc before -lgcc.
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17139 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17140 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17141 $as_echo_n "(cached) " >&6
17142 else
17143 $RM conftest*
17144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17147 (eval $ac_compile) 2>&5
17148 ac_status=$?
17149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17150 test $ac_status = 0; } 2>conftest.err; then
17151 soname=conftest
17152 lib=conftest
17153 libobjs=conftest.$ac_objext
17154 deplibs=
17155 wl=$lt_prog_compiler_wl
17156 pic_flag=$lt_prog_compiler_pic
17157 compiler_flags=-v
17158 linker_flags=-v
17159 verstring=
17160 output_objdir=.
17161 libname=conftest
17162 lt_save_allow_undefined_flag=$allow_undefined_flag
17163 allow_undefined_flag=
17164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17165 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17166 ac_status=$?
17167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17168 test $ac_status = 0; }
17169 then
17170 lt_cv_archive_cmds_need_lc=no
17171 else
17172 lt_cv_archive_cmds_need_lc=yes
17174 allow_undefined_flag=$lt_save_allow_undefined_flag
17175 else
17176 cat conftest.err 1>&5
17178 $RM conftest*
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17182 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17183 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17185 esac
17188 esac
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17347 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17349 if test "$GCC" = yes; then
17350 case $host_os in
17351 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17352 *) lt_awk_arg="/^libraries:/" ;;
17353 esac
17354 case $host_os in
17355 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17356 *) lt_sed_strip_eq="s,=/,/,g" ;;
17357 esac
17358 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17359 case $lt_search_path_spec in
17360 *\;*)
17361 # if the path contains ";" then we assume it to be the separator
17362 # otherwise default to the standard path separator (i.e. ":") - it is
17363 # assumed that no part of a normal pathname contains ";" but that should
17364 # okay in the real world where ";" in dirpaths is itself problematic.
17365 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17368 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17370 esac
17371 # Ok, now we have the path, separated by spaces, we can step through it
17372 # and add multilib dir if necessary.
17373 lt_tmp_lt_search_path_spec=
17374 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17375 for lt_sys_path in $lt_search_path_spec; do
17376 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17377 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17378 else
17379 test -d "$lt_sys_path" && \
17380 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17382 done
17383 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17384 BEGIN {RS=" "; FS="/|\n";} {
17385 lt_foo="";
17386 lt_count=0;
17387 for (lt_i = NF; lt_i > 0; lt_i--) {
17388 if ($lt_i != "" && $lt_i != ".") {
17389 if ($lt_i == "..") {
17390 lt_count++;
17391 } else {
17392 if (lt_count == 0) {
17393 lt_foo="/" $lt_i lt_foo;
17394 } else {
17395 lt_count--;
17400 if (lt_foo != "") { lt_freq[lt_foo]++; }
17401 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17403 # AWK program above erroneously prepends '/' to C:/dos/paths
17404 # for these hosts.
17405 case $host_os in
17406 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17407 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17408 esac
17409 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17410 else
17411 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17413 library_names_spec=
17414 libname_spec='lib$name'
17415 soname_spec=
17416 shrext_cmds=".so"
17417 postinstall_cmds=
17418 postuninstall_cmds=
17419 finish_cmds=
17420 finish_eval=
17421 shlibpath_var=
17422 shlibpath_overrides_runpath=unknown
17423 version_type=none
17424 dynamic_linker="$host_os ld.so"
17425 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17426 need_lib_prefix=unknown
17427 hardcode_into_libs=no
17429 # when you set need_version to no, make sure it does not cause -set_version
17430 # flags to be left without arguments
17431 need_version=unknown
17433 case $host_os in
17434 aix3*)
17435 version_type=linux
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17437 shlibpath_var=LIBPATH
17439 # AIX 3 has no versioning support, so we append a major version to the name.
17440 soname_spec='${libname}${release}${shared_ext}$major'
17443 aix[4-9]*)
17444 version_type=linux
17445 need_lib_prefix=no
17446 need_version=no
17447 hardcode_into_libs=yes
17448 if test "$host_cpu" = ia64; then
17449 # AIX 5 supports IA64
17450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 else
17453 # With GCC up to 2.95.x, collect2 would create an import file
17454 # for dependence libraries. The import file would start with
17455 # the line `#! .'. This would cause the generated library to
17456 # depend on `.', always an invalid library. This was fixed in
17457 # development snapshots of GCC prior to 3.0.
17458 case $host_os in
17459 aix4 | aix4.[01] | aix4.[01].*)
17460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17461 echo ' yes '
17462 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17464 else
17465 can_build_shared=no
17468 esac
17469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17470 # soname into executable. Probably we can add versioning support to
17471 # collect2, so additional links can be useful in future.
17472 if test "$aix_use_runtimelinking" = yes; then
17473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17474 # instead of lib<name>.a to let people know that these are not
17475 # typical AIX shared libraries.
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17477 else
17478 # We preserve .a as extension for shared libraries through AIX4.2
17479 # and later when we are not doing run time linking.
17480 library_names_spec='${libname}${release}.a $libname.a'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17483 shlibpath_var=LIBPATH
17487 amigaos*)
17488 case $host_cpu in
17489 powerpc)
17490 # Since July 2007 AmigaOS4 officially supports .so libraries.
17491 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494 m68k)
17495 library_names_spec='$libname.ixlibrary $libname.a'
17496 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17497 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'
17499 esac
17502 beos*)
17503 library_names_spec='${libname}${shared_ext}'
17504 dynamic_linker="$host_os ld.so"
17505 shlibpath_var=LIBRARY_PATH
17508 bsdi[45]*)
17509 version_type=linux
17510 need_version=no
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17517 # the default ld.so.conf also contains /usr/contrib/lib and
17518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17519 # libtool to hard-code these into programs
17522 cygwin* | mingw* | pw32* | cegcc*)
17523 version_type=windows
17524 shrext_cmds=".dll"
17525 need_version=no
17526 need_lib_prefix=no
17528 case $GCC,$host_os in
17529 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17530 library_names_spec='$libname.dll.a'
17531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17532 postinstall_cmds='base_file=`basename \${file}`~
17533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17534 dldir=$destdir/`dirname \$dlpath`~
17535 test -d \$dldir || mkdir -p \$dldir~
17536 $install_prog $dir/$dlname \$dldir/$dlname~
17537 chmod a+x \$dldir/$dlname~
17538 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17539 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17542 dlpath=$dir/\$dldll~
17543 $RM \$dlpath'
17544 shlibpath_overrides_runpath=yes
17546 case $host_os in
17547 cygwin*)
17548 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17549 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17551 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17553 mingw* | cegcc*)
17554 # MinGW DLLs use traditional 'lib' prefix
17555 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17557 pw32*)
17558 # pw32 DLLs use 'pw' prefix rather than 'lib'
17559 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17561 esac
17565 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17567 esac
17568 dynamic_linker='Win32 ld.exe'
17569 # FIXME: first we should search . and the directory the executable is in
17570 shlibpath_var=PATH
17573 darwin* | rhapsody*)
17574 dynamic_linker="$host_os dyld"
17575 version_type=darwin
17576 need_lib_prefix=no
17577 need_version=no
17578 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17579 soname_spec='${libname}${release}${major}$shared_ext'
17580 shlibpath_overrides_runpath=yes
17581 shlibpath_var=DYLD_LIBRARY_PATH
17582 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17584 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17588 dgux*)
17589 version_type=linux
17590 need_lib_prefix=no
17591 need_version=no
17592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17593 soname_spec='${libname}${release}${shared_ext}$major'
17594 shlibpath_var=LD_LIBRARY_PATH
17597 freebsd* | dragonfly*)
17598 # DragonFly does not have aout. When/if they implement a new
17599 # versioning mechanism, adjust this.
17600 if test -x /usr/bin/objformat; then
17601 objformat=`/usr/bin/objformat`
17602 else
17603 case $host_os in
17604 freebsd[23].*) objformat=aout ;;
17605 *) objformat=elf ;;
17606 esac
17608 version_type=freebsd-$objformat
17609 case $version_type in
17610 freebsd-elf*)
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17612 need_version=no
17613 need_lib_prefix=no
17615 freebsd-*)
17616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17617 need_version=yes
17619 esac
17620 shlibpath_var=LD_LIBRARY_PATH
17621 case $host_os in
17622 freebsd2.*)
17623 shlibpath_overrides_runpath=yes
17625 freebsd3.[01]* | freebsdelf3.[01]*)
17626 shlibpath_overrides_runpath=yes
17627 hardcode_into_libs=yes
17629 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17630 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17631 shlibpath_overrides_runpath=no
17632 hardcode_into_libs=yes
17634 *) # from 4.6 on, and DragonFly
17635 shlibpath_overrides_runpath=yes
17636 hardcode_into_libs=yes
17638 esac
17641 gnu*)
17642 version_type=linux
17643 need_lib_prefix=no
17644 need_version=no
17645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17646 soname_spec='${libname}${release}${shared_ext}$major'
17647 shlibpath_var=LD_LIBRARY_PATH
17648 hardcode_into_libs=yes
17651 haiku*)
17652 version_type=linux
17653 need_lib_prefix=no
17654 need_version=no
17655 dynamic_linker="$host_os runtime_loader"
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17657 soname_spec='${libname}${release}${shared_ext}$major'
17658 shlibpath_var=LIBRARY_PATH
17659 shlibpath_overrides_runpath=yes
17660 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17661 hardcode_into_libs=yes
17664 hpux9* | hpux10* | hpux11*)
17665 # Give a soname corresponding to the major version so that dld.sl refuses to
17666 # link against other versions.
17667 version_type=sunos
17668 need_lib_prefix=no
17669 need_version=no
17670 case $host_cpu in
17671 ia64*)
17672 shrext_cmds='.so'
17673 hardcode_into_libs=yes
17674 dynamic_linker="$host_os dld.so"
17675 shlibpath_var=LD_LIBRARY_PATH
17676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17678 soname_spec='${libname}${release}${shared_ext}$major'
17679 if test "X$HPUX_IA64_MODE" = X32; then
17680 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17681 else
17682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17686 hppa*64*)
17687 shrext_cmds='.sl'
17688 hardcode_into_libs=yes
17689 dynamic_linker="$host_os dld.sl"
17690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17693 soname_spec='${libname}${release}${shared_ext}$major'
17694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17698 shrext_cmds='.sl'
17699 dynamic_linker="$host_os dld.sl"
17700 shlibpath_var=SHLIB_PATH
17701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17703 soname_spec='${libname}${release}${shared_ext}$major'
17705 esac
17706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17707 postinstall_cmds='chmod 555 $lib'
17708 # or fails outright, so override atomically:
17709 install_override_mode=555
17712 interix[3-9]*)
17713 version_type=linux
17714 need_lib_prefix=no
17715 need_version=no
17716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17717 soname_spec='${libname}${release}${shared_ext}$major'
17718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17719 shlibpath_var=LD_LIBRARY_PATH
17720 shlibpath_overrides_runpath=no
17721 hardcode_into_libs=yes
17724 irix5* | irix6* | nonstopux*)
17725 case $host_os in
17726 nonstopux*) version_type=nonstopux ;;
17728 if test "$lt_cv_prog_gnu_ld" = yes; then
17729 version_type=linux
17730 else
17731 version_type=irix
17732 fi ;;
17733 esac
17734 need_lib_prefix=no
17735 need_version=no
17736 soname_spec='${libname}${release}${shared_ext}$major'
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17738 case $host_os in
17739 irix5* | nonstopux*)
17740 libsuff= shlibsuff=
17743 case $LD in # libtool.m4 will add one of these switches to LD
17744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17745 libsuff= shlibsuff= libmagic=32-bit;;
17746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17747 libsuff=32 shlibsuff=N32 libmagic=N32;;
17748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17750 *) libsuff= shlibsuff= libmagic=never-match;;
17751 esac
17753 esac
17754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17755 shlibpath_overrides_runpath=no
17756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17758 hardcode_into_libs=yes
17761 # No shared lib support for Linux oldld, aout, or coff.
17762 linux*oldld* | linux*aout* | linux*coff*)
17763 dynamic_linker=no
17766 # This must be Linux ELF.
17767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17768 version_type=linux
17769 need_lib_prefix=no
17770 need_version=no
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17772 soname_spec='${libname}${release}${shared_ext}$major'
17773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17774 shlibpath_var=LD_LIBRARY_PATH
17775 shlibpath_overrides_runpath=no
17777 # Some binutils ld are patched to set DT_RUNPATH
17778 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17781 lt_cv_shlibpath_overrides_runpath=no
17782 save_LDFLAGS=$LDFLAGS
17783 save_libdir=$libdir
17784 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17785 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17790 main ()
17794 return 0;
17796 _ACEOF
17797 if ac_fn_c_try_link "$LINENO"; then :
17798 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17799 lt_cv_shlibpath_overrides_runpath=yes
17802 rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17804 LDFLAGS=$save_LDFLAGS
17805 libdir=$save_libdir
17809 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17811 # This implies no fast_install, which is unacceptable.
17812 # Some rework will be needed to allow for fast_install
17813 # before this can be enabled.
17814 hardcode_into_libs=yes
17816 # Append ld.so.conf contents to the search path
17817 if test -f /etc/ld.so.conf; then
17818 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' ' '`
17819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17822 # We used to test for /lib/ld.so.1 and disable shared libraries on
17823 # powerpc, because MkLinux only supported shared libraries with the
17824 # GNU dynamic linker. Since this was broken with cross compilers,
17825 # most powerpc-linux boxes support dynamic linking these days and
17826 # people can always --disable-shared, the test was removed, and we
17827 # assume the GNU/Linux dynamic linker is in use.
17828 dynamic_linker='GNU/Linux ld.so'
17831 netbsd*)
17832 version_type=sunos
17833 need_lib_prefix=no
17834 need_version=no
17835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17838 dynamic_linker='NetBSD (a.out) ld.so'
17839 else
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17841 soname_spec='${libname}${release}${shared_ext}$major'
17842 dynamic_linker='NetBSD ld.elf_so'
17844 shlibpath_var=LD_LIBRARY_PATH
17845 shlibpath_overrides_runpath=yes
17846 hardcode_into_libs=yes
17849 newsos6)
17850 version_type=linux
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17852 shlibpath_var=LD_LIBRARY_PATH
17853 shlibpath_overrides_runpath=yes
17856 *nto* | *qnx*)
17857 version_type=qnx
17858 need_lib_prefix=no
17859 need_version=no
17860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17861 soname_spec='${libname}${release}${shared_ext}$major'
17862 shlibpath_var=LD_LIBRARY_PATH
17863 shlibpath_overrides_runpath=no
17864 hardcode_into_libs=yes
17865 dynamic_linker='ldqnx.so'
17868 openbsd*)
17869 version_type=sunos
17870 sys_lib_dlsearch_path_spec="/usr/lib"
17871 need_lib_prefix=no
17872 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17873 case $host_os in
17874 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17875 *) need_version=no ;;
17876 esac
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17879 shlibpath_var=LD_LIBRARY_PATH
17880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17881 case $host_os in
17882 openbsd2.[89] | openbsd2.[89].*)
17883 shlibpath_overrides_runpath=no
17886 shlibpath_overrides_runpath=yes
17888 esac
17889 else
17890 shlibpath_overrides_runpath=yes
17894 os2*)
17895 libname_spec='$name'
17896 shrext_cmds=".dll"
17897 need_lib_prefix=no
17898 library_names_spec='$libname${shared_ext} $libname.a'
17899 dynamic_linker='OS/2 ld.exe'
17900 shlibpath_var=LIBPATH
17903 osf3* | osf4* | osf5*)
17904 version_type=osf
17905 need_lib_prefix=no
17906 need_version=no
17907 soname_spec='${libname}${release}${shared_ext}$major'
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909 shlibpath_var=LD_LIBRARY_PATH
17910 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17911 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17914 rdos*)
17915 dynamic_linker=no
17918 solaris*)
17919 version_type=linux
17920 need_lib_prefix=no
17921 need_version=no
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17923 soname_spec='${libname}${release}${shared_ext}$major'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 shlibpath_overrides_runpath=yes
17926 hardcode_into_libs=yes
17927 # ldd complains unless libraries are executable
17928 postinstall_cmds='chmod +x $lib'
17931 sunos4*)
17932 version_type=sunos
17933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17934 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath=yes
17937 if test "$with_gnu_ld" = yes; then
17938 need_lib_prefix=no
17940 need_version=yes
17943 sysv4 | sysv4.3*)
17944 version_type=linux
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 case $host_vendor in
17949 sni)
17950 shlibpath_overrides_runpath=no
17951 need_lib_prefix=no
17952 runpath_var=LD_RUN_PATH
17954 siemens)
17955 need_lib_prefix=no
17957 motorola)
17958 need_lib_prefix=no
17959 need_version=no
17960 shlibpath_overrides_runpath=no
17961 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17963 esac
17966 sysv4*MP*)
17967 if test -d /usr/nec ;then
17968 version_type=linux
17969 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17970 soname_spec='$libname${shared_ext}.$major'
17971 shlibpath_var=LD_LIBRARY_PATH
17975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17976 version_type=freebsd-elf
17977 need_lib_prefix=no
17978 need_version=no
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=yes
17983 hardcode_into_libs=yes
17984 if test "$with_gnu_ld" = yes; then
17985 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17986 else
17987 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17988 case $host_os in
17989 sco3.2v5*)
17990 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17992 esac
17994 sys_lib_dlsearch_path_spec='/usr/lib'
17997 tpf*)
17998 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17999 version_type=linux
18000 need_lib_prefix=no
18001 need_version=no
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003 shlibpath_var=LD_LIBRARY_PATH
18004 shlibpath_overrides_runpath=no
18005 hardcode_into_libs=yes
18008 uts4*)
18009 version_type=linux
18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011 soname_spec='${libname}${release}${shared_ext}$major'
18012 shlibpath_var=LD_LIBRARY_PATH
18016 dynamic_linker=no
18018 esac
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18020 $as_echo "$dynamic_linker" >&6; }
18021 test "$dynamic_linker" = no && can_build_shared=no
18023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18024 if test "$GCC" = yes; then
18025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18028 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18029 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18031 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18032 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18127 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18128 hardcode_action=
18129 if test -n "$hardcode_libdir_flag_spec" ||
18130 test -n "$runpath_var" ||
18131 test "X$hardcode_automatic" = "Xyes" ; then
18133 # We can hardcode non-existent directories.
18134 if test "$hardcode_direct" != no &&
18135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18136 # have to relink, otherwise we might link with an installed library
18137 # when we should be linking with a yet-to-be-installed one
18138 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18139 test "$hardcode_minus_L" != no; then
18140 # Linking always hardcodes the temporary library directory.
18141 hardcode_action=relink
18142 else
18143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18144 hardcode_action=immediate
18146 else
18147 # We cannot hardcode anything, or else we can only hardcode existing
18148 # directories.
18149 hardcode_action=unsupported
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18152 $as_echo "$hardcode_action" >&6; }
18154 if test "$hardcode_action" = relink ||
18155 test "$inherit_rpath" = yes; then
18156 # Fast installation is not supported
18157 enable_fast_install=no
18158 elif test "$shlibpath_overrides_runpath" = yes ||
18159 test "$enable_shared" = no; then
18160 # Fast installation is not necessary
18161 enable_fast_install=needless
18169 if test "x$enable_dlopen" != xyes; then
18170 enable_dlopen=unknown
18171 enable_dlopen_self=unknown
18172 enable_dlopen_self_static=unknown
18173 else
18174 lt_cv_dlopen=no
18175 lt_cv_dlopen_libs=
18177 case $host_os in
18178 beos*)
18179 lt_cv_dlopen="load_add_on"
18180 lt_cv_dlopen_libs=
18181 lt_cv_dlopen_self=yes
18184 mingw* | pw32* | cegcc*)
18185 lt_cv_dlopen="LoadLibrary"
18186 lt_cv_dlopen_libs=
18189 cygwin*)
18190 lt_cv_dlopen="dlopen"
18191 lt_cv_dlopen_libs=
18194 darwin*)
18195 # if libdl is installed we need to link against it
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18197 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18198 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18199 $as_echo_n "(cached) " >&6
18200 else
18201 ac_check_lib_save_LIBS=$LIBS
18202 LIBS="-ldl $LIBS"
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18206 /* Override any GCC internal prototype to avoid an error.
18207 Use char because int might match the return type of a GCC
18208 builtin and then its argument prototype would still apply. */
18209 #ifdef __cplusplus
18210 extern "C"
18211 #endif
18212 char dlopen ();
18214 main ()
18216 return dlopen ();
18218 return 0;
18220 _ACEOF
18221 if ac_fn_c_try_link "$LINENO"; then :
18222 ac_cv_lib_dl_dlopen=yes
18223 else
18224 ac_cv_lib_dl_dlopen=no
18226 rm -f core conftest.err conftest.$ac_objext \
18227 conftest$ac_exeext conftest.$ac_ext
18228 LIBS=$ac_check_lib_save_LIBS
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18231 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18232 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18234 else
18236 lt_cv_dlopen="dyld"
18237 lt_cv_dlopen_libs=
18238 lt_cv_dlopen_self=yes
18245 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18246 if test "x$ac_cv_func_shl_load" = x""yes; then :
18247 lt_cv_dlopen="shl_load"
18248 else
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18250 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18251 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18252 $as_echo_n "(cached) " >&6
18253 else
18254 ac_check_lib_save_LIBS=$LIBS
18255 LIBS="-ldld $LIBS"
18256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h. */
18259 /* Override any GCC internal prototype to avoid an error.
18260 Use char because int might match the return type of a GCC
18261 builtin and then its argument prototype would still apply. */
18262 #ifdef __cplusplus
18263 extern "C"
18264 #endif
18265 char shl_load ();
18267 main ()
18269 return shl_load ();
18271 return 0;
18273 _ACEOF
18274 if ac_fn_c_try_link "$LINENO"; then :
18275 ac_cv_lib_dld_shl_load=yes
18276 else
18277 ac_cv_lib_dld_shl_load=no
18279 rm -f core conftest.err conftest.$ac_objext \
18280 conftest$ac_exeext conftest.$ac_ext
18281 LIBS=$ac_check_lib_save_LIBS
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18284 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18285 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18286 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18287 else
18288 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18289 if test "x$ac_cv_func_dlopen" = x""yes; then :
18290 lt_cv_dlopen="dlopen"
18291 else
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18293 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18294 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18295 $as_echo_n "(cached) " >&6
18296 else
18297 ac_check_lib_save_LIBS=$LIBS
18298 LIBS="-ldl $LIBS"
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18305 #ifdef __cplusplus
18306 extern "C"
18307 #endif
18308 char dlopen ();
18310 main ()
18312 return dlopen ();
18314 return 0;
18316 _ACEOF
18317 if ac_fn_c_try_link "$LINENO"; then :
18318 ac_cv_lib_dl_dlopen=yes
18319 else
18320 ac_cv_lib_dl_dlopen=no
18322 rm -f core conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18327 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18328 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18330 else
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18332 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18333 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18334 $as_echo_n "(cached) " >&6
18335 else
18336 ac_check_lib_save_LIBS=$LIBS
18337 LIBS="-lsvld $LIBS"
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 /* Override any GCC internal prototype to avoid an error.
18342 Use char because int might match the return type of a GCC
18343 builtin and then its argument prototype would still apply. */
18344 #ifdef __cplusplus
18345 extern "C"
18346 #endif
18347 char dlopen ();
18349 main ()
18351 return dlopen ();
18353 return 0;
18355 _ACEOF
18356 if ac_fn_c_try_link "$LINENO"; then :
18357 ac_cv_lib_svld_dlopen=yes
18358 else
18359 ac_cv_lib_svld_dlopen=no
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18363 LIBS=$ac_check_lib_save_LIBS
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18366 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18367 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18369 else
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18371 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18372 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18373 $as_echo_n "(cached) " >&6
18374 else
18375 ac_check_lib_save_LIBS=$LIBS
18376 LIBS="-ldld $LIBS"
18377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18378 /* end confdefs.h. */
18380 /* Override any GCC internal prototype to avoid an error.
18381 Use char because int might match the return type of a GCC
18382 builtin and then its argument prototype would still apply. */
18383 #ifdef __cplusplus
18384 extern "C"
18385 #endif
18386 char dld_link ();
18388 main ()
18390 return dld_link ();
18392 return 0;
18394 _ACEOF
18395 if ac_fn_c_try_link "$LINENO"; then :
18396 ac_cv_lib_dld_dld_link=yes
18397 else
18398 ac_cv_lib_dld_dld_link=no
18400 rm -f core conftest.err conftest.$ac_objext \
18401 conftest$ac_exeext conftest.$ac_ext
18402 LIBS=$ac_check_lib_save_LIBS
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18405 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18406 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18407 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18426 esac
18428 if test "x$lt_cv_dlopen" != xno; then
18429 enable_dlopen=yes
18430 else
18431 enable_dlopen=no
18434 case $lt_cv_dlopen in
18435 dlopen)
18436 save_CPPFLAGS="$CPPFLAGS"
18437 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18439 save_LDFLAGS="$LDFLAGS"
18440 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18442 save_LIBS="$LIBS"
18443 LIBS="$lt_cv_dlopen_libs $LIBS"
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18446 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18447 if test "${lt_cv_dlopen_self+set}" = set; then :
18448 $as_echo_n "(cached) " >&6
18449 else
18450 if test "$cross_compiling" = yes; then :
18451 lt_cv_dlopen_self=cross
18452 else
18453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18454 lt_status=$lt_dlunknown
18455 cat > conftest.$ac_ext <<_LT_EOF
18456 #line 18456 "configure"
18457 #include "confdefs.h"
18459 #if HAVE_DLFCN_H
18460 #include <dlfcn.h>
18461 #endif
18463 #include <stdio.h>
18465 #ifdef RTLD_GLOBAL
18466 # define LT_DLGLOBAL RTLD_GLOBAL
18467 #else
18468 # ifdef DL_GLOBAL
18469 # define LT_DLGLOBAL DL_GLOBAL
18470 # else
18471 # define LT_DLGLOBAL 0
18472 # endif
18473 #endif
18475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18476 find out it does not work in some platform. */
18477 #ifndef LT_DLLAZY_OR_NOW
18478 # ifdef RTLD_LAZY
18479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18480 # else
18481 # ifdef DL_LAZY
18482 # define LT_DLLAZY_OR_NOW DL_LAZY
18483 # else
18484 # ifdef RTLD_NOW
18485 # define LT_DLLAZY_OR_NOW RTLD_NOW
18486 # else
18487 # ifdef DL_NOW
18488 # define LT_DLLAZY_OR_NOW DL_NOW
18489 # else
18490 # define LT_DLLAZY_OR_NOW 0
18491 # endif
18492 # endif
18493 # endif
18494 # endif
18495 #endif
18497 /* When -fvisbility=hidden is used, assume the code has been annotated
18498 correspondingly for the symbols needed. */
18499 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18500 void fnord () __attribute__((visibility("default")));
18501 #endif
18503 void fnord () { int i=42; }
18504 int main ()
18506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18507 int status = $lt_dlunknown;
18509 if (self)
18511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18512 else
18514 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18515 else puts (dlerror ());
18517 /* dlclose (self); */
18519 else
18520 puts (dlerror ());
18522 return status;
18524 _LT_EOF
18525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18526 (eval $ac_link) 2>&5
18527 ac_status=$?
18528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18529 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18530 (./conftest; exit; ) >&5 2>/dev/null
18531 lt_status=$?
18532 case x$lt_status in
18533 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18534 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18535 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18536 esac
18537 else :
18538 # compilation failed
18539 lt_cv_dlopen_self=no
18542 rm -fr conftest*
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18547 $as_echo "$lt_cv_dlopen_self" >&6; }
18549 if test "x$lt_cv_dlopen_self" = xyes; then
18550 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18552 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18553 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18554 $as_echo_n "(cached) " >&6
18555 else
18556 if test "$cross_compiling" = yes; then :
18557 lt_cv_dlopen_self_static=cross
18558 else
18559 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18560 lt_status=$lt_dlunknown
18561 cat > conftest.$ac_ext <<_LT_EOF
18562 #line 18562 "configure"
18563 #include "confdefs.h"
18565 #if HAVE_DLFCN_H
18566 #include <dlfcn.h>
18567 #endif
18569 #include <stdio.h>
18571 #ifdef RTLD_GLOBAL
18572 # define LT_DLGLOBAL RTLD_GLOBAL
18573 #else
18574 # ifdef DL_GLOBAL
18575 # define LT_DLGLOBAL DL_GLOBAL
18576 # else
18577 # define LT_DLGLOBAL 0
18578 # endif
18579 #endif
18581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18582 find out it does not work in some platform. */
18583 #ifndef LT_DLLAZY_OR_NOW
18584 # ifdef RTLD_LAZY
18585 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18586 # else
18587 # ifdef DL_LAZY
18588 # define LT_DLLAZY_OR_NOW DL_LAZY
18589 # else
18590 # ifdef RTLD_NOW
18591 # define LT_DLLAZY_OR_NOW RTLD_NOW
18592 # else
18593 # ifdef DL_NOW
18594 # define LT_DLLAZY_OR_NOW DL_NOW
18595 # else
18596 # define LT_DLLAZY_OR_NOW 0
18597 # endif
18598 # endif
18599 # endif
18600 # endif
18601 #endif
18603 /* When -fvisbility=hidden is used, assume the code has been annotated
18604 correspondingly for the symbols needed. */
18605 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18606 void fnord () __attribute__((visibility("default")));
18607 #endif
18609 void fnord () { int i=42; }
18610 int main ()
18612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18613 int status = $lt_dlunknown;
18615 if (self)
18617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18618 else
18620 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18621 else puts (dlerror ());
18623 /* dlclose (self); */
18625 else
18626 puts (dlerror ());
18628 return status;
18630 _LT_EOF
18631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18632 (eval $ac_link) 2>&5
18633 ac_status=$?
18634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18635 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18636 (./conftest; exit; ) >&5 2>/dev/null
18637 lt_status=$?
18638 case x$lt_status in
18639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18641 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18642 esac
18643 else :
18644 # compilation failed
18645 lt_cv_dlopen_self_static=no
18648 rm -fr conftest*
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18653 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18656 CPPFLAGS="$save_CPPFLAGS"
18657 LDFLAGS="$save_LDFLAGS"
18658 LIBS="$save_LIBS"
18660 esac
18662 case $lt_cv_dlopen_self in
18663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18664 *) enable_dlopen_self=unknown ;;
18665 esac
18667 case $lt_cv_dlopen_self_static in
18668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18669 *) enable_dlopen_self_static=unknown ;;
18670 esac
18689 striplib=
18690 old_striplib=
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18692 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18693 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18694 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18695 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18697 $as_echo "yes" >&6; }
18698 else
18699 # FIXME - insert some real tests, host_os isn't really good enough
18700 case $host_os in
18701 darwin*)
18702 if test -n "$STRIP" ; then
18703 striplib="$STRIP -x"
18704 old_striplib="$STRIP -S"
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18706 $as_echo "yes" >&6; }
18707 else
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18709 $as_echo "no" >&6; }
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 $as_echo "no" >&6; }
18716 esac
18730 # Report which library types will actually be built
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18732 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18734 $as_echo "$can_build_shared" >&6; }
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18737 $as_echo_n "checking whether to build shared libraries... " >&6; }
18738 test "$can_build_shared" = "no" && enable_shared=no
18740 # On AIX, shared libraries and static libraries use the same namespace, and
18741 # are all built from PIC.
18742 case $host_os in
18743 aix3*)
18744 test "$enable_shared" = yes && enable_static=no
18745 if test -n "$RANLIB"; then
18746 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18747 postinstall_cmds='$RANLIB $lib'
18751 aix[4-9]*)
18752 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18753 test "$enable_shared" = yes && enable_static=no
18756 esac
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18758 $as_echo "$enable_shared" >&6; }
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18761 $as_echo_n "checking whether to build static libraries... " >&6; }
18762 # Make sure either enable_shared or enable_static is yes.
18763 test "$enable_shared" = yes || enable_static=yes
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18765 $as_echo "$enable_static" >&6; }
18771 ac_ext=cpp
18772 ac_cpp='$CXXCPP $CPPFLAGS'
18773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18777 CC="$lt_save_CC"
18779 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18780 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18781 (test "X$CXX" != "Xg++"))) ; then
18782 ac_ext=cpp
18783 ac_cpp='$CXXCPP $CPPFLAGS'
18784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18788 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18789 if test -z "$CXXCPP"; then
18790 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18791 $as_echo_n "(cached) " >&6
18792 else
18793 # Double quotes because CXXCPP needs to be expanded
18794 for CXXCPP in "$CXX -E" "/lib/cpp"
18796 ac_preproc_ok=false
18797 for ac_cxx_preproc_warn_flag in '' yes
18799 # Use a header file that comes with gcc, so configuring glibc
18800 # with a fresh cross-compiler works.
18801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802 # <limits.h> exists even on freestanding compilers.
18803 # On the NeXT, cc -E runs the code through the compiler's parser,
18804 # not just through cpp. "Syntax error" is here to catch this case.
18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18807 #ifdef __STDC__
18808 # include <limits.h>
18809 #else
18810 # include <assert.h>
18811 #endif
18812 Syntax error
18813 _ACEOF
18814 if ac_fn_cxx_try_cpp "$LINENO"; then :
18816 else
18817 # Broken: fails on valid input.
18818 continue
18820 rm -f conftest.err conftest.$ac_ext
18822 # OK, works on sane cases. Now check whether nonexistent headers
18823 # can be detected and how.
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18826 #include <ac_nonexistent.h>
18827 _ACEOF
18828 if ac_fn_cxx_try_cpp "$LINENO"; then :
18829 # Broken: success on invalid input.
18830 continue
18831 else
18832 # Passes both tests.
18833 ac_preproc_ok=:
18834 break
18836 rm -f conftest.err conftest.$ac_ext
18838 done
18839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18840 rm -f conftest.err conftest.$ac_ext
18841 if $ac_preproc_ok; then :
18842 break
18845 done
18846 ac_cv_prog_CXXCPP=$CXXCPP
18849 CXXCPP=$ac_cv_prog_CXXCPP
18850 else
18851 ac_cv_prog_CXXCPP=$CXXCPP
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18854 $as_echo "$CXXCPP" >&6; }
18855 ac_preproc_ok=false
18856 for ac_cxx_preproc_warn_flag in '' yes
18858 # Use a header file that comes with gcc, so configuring glibc
18859 # with a fresh cross-compiler works.
18860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18861 # <limits.h> exists even on freestanding compilers.
18862 # On the NeXT, cc -E runs the code through the compiler's parser,
18863 # not just through cpp. "Syntax error" is here to catch this case.
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18866 #ifdef __STDC__
18867 # include <limits.h>
18868 #else
18869 # include <assert.h>
18870 #endif
18871 Syntax error
18872 _ACEOF
18873 if ac_fn_cxx_try_cpp "$LINENO"; then :
18875 else
18876 # Broken: fails on valid input.
18877 continue
18879 rm -f conftest.err conftest.$ac_ext
18881 # OK, works on sane cases. Now check whether nonexistent headers
18882 # can be detected and how.
18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18885 #include <ac_nonexistent.h>
18886 _ACEOF
18887 if ac_fn_cxx_try_cpp "$LINENO"; then :
18888 # Broken: success on invalid input.
18889 continue
18890 else
18891 # Passes both tests.
18892 ac_preproc_ok=:
18893 break
18895 rm -f conftest.err conftest.$ac_ext
18897 done
18898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18899 rm -f conftest.err conftest.$ac_ext
18900 if $ac_preproc_ok; then :
18902 else
18903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18905 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18906 See \`config.log' for more details." "$LINENO" 5; }
18909 ac_ext=cpp
18910 ac_cpp='$CXXCPP $CPPFLAGS'
18911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18915 else
18916 _lt_caught_CXX_error=yes
18919 ac_ext=cpp
18920 ac_cpp='$CXXCPP $CPPFLAGS'
18921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18925 archive_cmds_need_lc_CXX=no
18926 allow_undefined_flag_CXX=
18927 always_export_symbols_CXX=no
18928 archive_expsym_cmds_CXX=
18929 compiler_needs_object_CXX=no
18930 export_dynamic_flag_spec_CXX=
18931 hardcode_direct_CXX=no
18932 hardcode_direct_absolute_CXX=no
18933 hardcode_libdir_flag_spec_CXX=
18934 hardcode_libdir_flag_spec_ld_CXX=
18935 hardcode_libdir_separator_CXX=
18936 hardcode_minus_L_CXX=no
18937 hardcode_shlibpath_var_CXX=unsupported
18938 hardcode_automatic_CXX=no
18939 inherit_rpath_CXX=no
18940 module_cmds_CXX=
18941 module_expsym_cmds_CXX=
18942 link_all_deplibs_CXX=unknown
18943 old_archive_cmds_CXX=$old_archive_cmds
18944 reload_flag_CXX=$reload_flag
18945 reload_cmds_CXX=$reload_cmds
18946 no_undefined_flag_CXX=
18947 whole_archive_flag_spec_CXX=
18948 enable_shared_with_static_runtimes_CXX=no
18950 # Source file extension for C++ test sources.
18951 ac_ext=cpp
18953 # Object file extension for compiled C++ test sources.
18954 objext=o
18955 objext_CXX=$objext
18957 # No sense in running all these tests if we already determined that
18958 # the CXX compiler isn't working. Some variables (like enable_shared)
18959 # are currently assumed to apply to all compilers on this platform,
18960 # and will be corrupted by setting them based on a non-working compiler.
18961 if test "$_lt_caught_CXX_error" != yes; then
18962 # Code to be used in simple compile tests
18963 lt_simple_compile_test_code="int some_variable = 0;"
18965 # Code to be used in simple link tests
18966 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18968 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18975 # If no C compiler was specified, use CC.
18976 LTCC=${LTCC-"$CC"}
18978 # If no C compiler flags were specified, use CFLAGS.
18979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18981 # Allow CC to be a program name with arguments.
18982 compiler=$CC
18985 # save warnings/boilerplate of simple test code
18986 ac_outfile=conftest.$ac_objext
18987 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18988 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18989 _lt_compiler_boilerplate=`cat conftest.err`
18990 $RM conftest*
18992 ac_outfile=conftest.$ac_objext
18993 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18994 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18995 _lt_linker_boilerplate=`cat conftest.err`
18996 $RM -r conftest*
18999 # Allow CC to be a program name with arguments.
19000 lt_save_CC=$CC
19001 lt_save_LD=$LD
19002 lt_save_GCC=$GCC
19003 GCC=$GXX
19004 lt_save_with_gnu_ld=$with_gnu_ld
19005 lt_save_path_LD=$lt_cv_path_LD
19006 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19007 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19008 else
19009 $as_unset lt_cv_prog_gnu_ld
19011 if test -n "${lt_cv_path_LDCXX+set}"; then
19012 lt_cv_path_LD=$lt_cv_path_LDCXX
19013 else
19014 $as_unset lt_cv_path_LD
19016 test -z "${LDCXX+set}" || LD=$LDCXX
19017 CC=${CXX-"c++"}
19018 compiler=$CC
19019 compiler_CXX=$CC
19020 for cc_temp in $compiler""; do
19021 case $cc_temp in
19022 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19023 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19024 \-*) ;;
19025 *) break;;
19026 esac
19027 done
19028 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19031 if test -n "$compiler"; then
19032 # We don't want -fno-exception when compiling C++ code, so set the
19033 # no_builtin_flag separately
19034 if test "$GXX" = yes; then
19035 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19036 else
19037 lt_prog_compiler_no_builtin_flag_CXX=
19040 if test "$GXX" = yes; then
19041 # Set up default GNU C++ configuration
19045 # Check whether --with-gnu-ld was given.
19046 if test "${with_gnu_ld+set}" = set; then :
19047 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19048 else
19049 with_gnu_ld=no
19052 ac_prog=ld
19053 if test "$GCC" = yes; then
19054 # Check if gcc -print-prog-name=ld gives a path.
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19056 $as_echo_n "checking for ld used by $CC... " >&6; }
19057 case $host in
19058 *-*-mingw*)
19059 # gcc leaves a trailing carriage return which upsets mingw
19060 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19062 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19063 esac
19064 case $ac_prog in
19065 # Accept absolute paths.
19066 [\\/]* | ?:[\\/]*)
19067 re_direlt='/[^/][^/]*/\.\./'
19068 # Canonicalize the pathname of ld
19069 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19070 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19071 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19072 done
19073 test -z "$LD" && LD="$ac_prog"
19076 # If it fails, then pretend we aren't using GCC.
19077 ac_prog=ld
19080 # If it is relative, then search for the first ld in PATH.
19081 with_gnu_ld=unknown
19083 esac
19084 elif test "$with_gnu_ld" = yes; then
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19086 $as_echo_n "checking for GNU ld... " >&6; }
19087 else
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19089 $as_echo_n "checking for non-GNU ld... " >&6; }
19091 if test "${lt_cv_path_LD+set}" = set; then :
19092 $as_echo_n "(cached) " >&6
19093 else
19094 if test -z "$LD"; then
19095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19096 for ac_dir in $PATH; do
19097 IFS="$lt_save_ifs"
19098 test -z "$ac_dir" && ac_dir=.
19099 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19100 lt_cv_path_LD="$ac_dir/$ac_prog"
19101 # Check to see if the program is GNU ld. I'd rather use --version,
19102 # but apparently some variants of GNU ld only accept -v.
19103 # Break only if it was the GNU/non-GNU ld that we prefer.
19104 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19105 *GNU* | *'with BFD'*)
19106 test "$with_gnu_ld" != no && break
19109 test "$with_gnu_ld" != yes && break
19111 esac
19113 done
19114 IFS="$lt_save_ifs"
19115 else
19116 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19120 LD="$lt_cv_path_LD"
19121 if test -n "$LD"; then
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19123 $as_echo "$LD" >&6; }
19124 else
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19126 $as_echo "no" >&6; }
19128 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19130 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19131 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19132 $as_echo_n "(cached) " >&6
19133 else
19134 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19135 case `$LD -v 2>&1 </dev/null` in
19136 *GNU* | *'with BFD'*)
19137 lt_cv_prog_gnu_ld=yes
19140 lt_cv_prog_gnu_ld=no
19142 esac
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19145 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19146 with_gnu_ld=$lt_cv_prog_gnu_ld
19154 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19155 # archiving commands below assume that GNU ld is being used.
19156 if test "$with_gnu_ld" = yes; then
19157 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19158 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'
19160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19161 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19163 # If archive_cmds runs LD, not CC, wlarc should be empty
19164 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19165 # investigate it a little bit more. (MM)
19166 wlarc='${wl}'
19168 # ancient GNU ld didn't support --whole-archive et. al.
19169 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19170 $GREP 'no-whole-archive' > /dev/null; then
19171 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19172 else
19173 whole_archive_flag_spec_CXX=
19175 else
19176 with_gnu_ld=no
19177 wlarc=
19179 # A generic and very simple default shared library creation
19180 # command for GNU C++ for the case where it uses the native
19181 # linker, instead of GNU ld. If possible, this setting should
19182 # overridden to take advantage of the native linker features on
19183 # the platform it is being used on.
19184 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19187 # Commands to make compiler produce verbose output that lists
19188 # what "hidden" libraries, object files and flags are used when
19189 # linking a shared library.
19190 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19192 else
19193 GXX=no
19194 with_gnu_ld=no
19195 wlarc=
19198 # PORTME: fill in a description of your system's C++ link characteristics
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19200 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19201 ld_shlibs_CXX=yes
19202 case $host_os in
19203 aix3*)
19204 # FIXME: insert proper C++ library support
19205 ld_shlibs_CXX=no
19207 aix[4-9]*)
19208 if test "$host_cpu" = ia64; then
19209 # On IA64, the linker does run time linking by default, so we don't
19210 # have to do anything special.
19211 aix_use_runtimelinking=no
19212 exp_sym_flag='-Bexport'
19213 no_entry_flag=""
19214 else
19215 aix_use_runtimelinking=no
19217 # Test if we are trying to use run time linking or normal
19218 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19219 # need to do runtime linking.
19220 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19221 for ld_flag in $LDFLAGS; do
19222 case $ld_flag in
19223 *-brtl*)
19224 aix_use_runtimelinking=yes
19225 break
19227 esac
19228 done
19230 esac
19232 exp_sym_flag='-bexport'
19233 no_entry_flag='-bnoentry'
19236 # When large executables or shared objects are built, AIX ld can
19237 # have problems creating the table of contents. If linking a library
19238 # or program results in "error TOC overflow" add -mminimal-toc to
19239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19242 archive_cmds_CXX=''
19243 hardcode_direct_CXX=yes
19244 hardcode_direct_absolute_CXX=yes
19245 hardcode_libdir_separator_CXX=':'
19246 link_all_deplibs_CXX=yes
19247 file_list_spec_CXX='${wl}-f,'
19249 if test "$GXX" = yes; then
19250 case $host_os in aix4.[012]|aix4.[012].*)
19251 # We only want to do this on AIX 4.2 and lower, the check
19252 # below for broken collect2 doesn't work under 4.3+
19253 collect2name=`${CC} -print-prog-name=collect2`
19254 if test -f "$collect2name" &&
19255 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19256 then
19257 # We have reworked collect2
19259 else
19260 # We have old collect2
19261 hardcode_direct_CXX=unsupported
19262 # It fails to find uninstalled libraries when the uninstalled
19263 # path is not listed in the libpath. Setting hardcode_minus_L
19264 # to unsupported forces relinking
19265 hardcode_minus_L_CXX=yes
19266 hardcode_libdir_flag_spec_CXX='-L$libdir'
19267 hardcode_libdir_separator_CXX=
19269 esac
19270 shared_flag='-shared'
19271 if test "$aix_use_runtimelinking" = yes; then
19272 shared_flag="$shared_flag "'${wl}-G'
19274 else
19275 # not using gcc
19276 if test "$host_cpu" = ia64; then
19277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19278 # chokes on -Wl,-G. The following line is correct:
19279 shared_flag='-G'
19280 else
19281 if test "$aix_use_runtimelinking" = yes; then
19282 shared_flag='${wl}-G'
19283 else
19284 shared_flag='${wl}-bM:SRE'
19289 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19290 # It seems that -bexpall does not export symbols beginning with
19291 # underscore (_), so it is better to generate a list of symbols to
19292 # export.
19293 always_export_symbols_CXX=yes
19294 if test "$aix_use_runtimelinking" = yes; then
19295 # Warning - without using the other runtime loading flags (-brtl),
19296 # -berok will link without error, but may produce a broken library.
19297 allow_undefined_flag_CXX='-berok'
19298 # Determine the default libpath from the value encoded in an empty
19299 # executable.
19300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19301 /* end confdefs.h. */
19304 main ()
19308 return 0;
19310 _ACEOF
19311 if ac_fn_cxx_try_link "$LINENO"; then :
19313 lt_aix_libpath_sed='
19314 /Import File Strings/,/^$/ {
19315 /^0/ {
19316 s/^0 *\(.*\)$/\1/
19320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19321 # Check for a 64-bit object if we didn't find anything.
19322 if test -z "$aix_libpath"; then
19323 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19326 rm -f core conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext conftest.$ac_ext
19328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19330 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19332 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"
19333 else
19334 if test "$host_cpu" = ia64; then
19335 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19336 allow_undefined_flag_CXX="-z nodefs"
19337 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"
19338 else
19339 # Determine the default libpath from the value encoded in an
19340 # empty executable.
19341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19342 /* end confdefs.h. */
19345 main ()
19349 return 0;
19351 _ACEOF
19352 if ac_fn_cxx_try_link "$LINENO"; then :
19354 lt_aix_libpath_sed='
19355 /Import File Strings/,/^$/ {
19356 /^0/ {
19357 s/^0 *\(.*\)$/\1/
19361 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19362 # Check for a 64-bit object if we didn't find anything.
19363 if test -z "$aix_libpath"; then
19364 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19367 rm -f core conftest.err conftest.$ac_objext \
19368 conftest$ac_exeext conftest.$ac_ext
19369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19371 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19372 # Warning - without using the other run time loading flags,
19373 # -berok will link without error, but may produce a broken library.
19374 no_undefined_flag_CXX=' ${wl}-bernotok'
19375 allow_undefined_flag_CXX=' ${wl}-berok'
19376 if test "$with_gnu_ld" = yes; then
19377 # We only use this code for GNU lds that support --whole-archive.
19378 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19379 else
19380 # Exported symbols can be pulled into shared objects from archives
19381 whole_archive_flag_spec_CXX='$convenience'
19383 archive_cmds_need_lc_CXX=yes
19384 # This is similar to how AIX traditionally builds its shared
19385 # libraries.
19386 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'
19391 beos*)
19392 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19393 allow_undefined_flag_CXX=unsupported
19394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19395 # support --undefined. This deserves some investigation. FIXME
19396 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 else
19398 ld_shlibs_CXX=no
19402 chorus*)
19403 case $cc_basename in
19405 # FIXME: insert proper C++ library support
19406 ld_shlibs_CXX=no
19408 esac
19411 cygwin* | mingw* | pw32* | cegcc*)
19412 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19413 # as there is no search path for DLLs.
19414 hardcode_libdir_flag_spec_CXX='-L$libdir'
19415 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19416 allow_undefined_flag_CXX=unsupported
19417 always_export_symbols_CXX=no
19418 enable_shared_with_static_runtimes_CXX=yes
19420 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19421 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'
19422 # If the export-symbols file already is a .def file (1st line
19423 # is EXPORTS), use it as is; otherwise, prepend...
19424 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19425 cp $export_symbols $output_objdir/$soname.def;
19426 else
19427 echo EXPORTS > $output_objdir/$soname.def;
19428 cat $export_symbols >> $output_objdir/$soname.def;
19430 $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'
19431 else
19432 ld_shlibs_CXX=no
19435 darwin* | rhapsody*)
19438 archive_cmds_need_lc_CXX=no
19439 hardcode_direct_CXX=no
19440 hardcode_automatic_CXX=yes
19441 hardcode_shlibpath_var_CXX=unsupported
19442 if test "$lt_cv_ld_force_load" = "yes"; then
19443 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\"`'
19444 else
19445 whole_archive_flag_spec_CXX=''
19447 link_all_deplibs_CXX=yes
19448 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19449 case $cc_basename in
19450 ifort*) _lt_dar_can_shared=yes ;;
19451 *) _lt_dar_can_shared=$GCC ;;
19452 esac
19453 if test "$_lt_dar_can_shared" = "yes"; then
19454 output_verbose_link_cmd=func_echo_all
19455 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}"
19456 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19457 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}"
19458 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}"
19459 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19460 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}"
19461 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}"
19464 else
19465 ld_shlibs_CXX=no
19470 dgux*)
19471 case $cc_basename in
19472 ec++*)
19473 # FIXME: insert proper C++ library support
19474 ld_shlibs_CXX=no
19476 ghcx*)
19477 # Green Hills C++ Compiler
19478 # FIXME: insert proper C++ library support
19479 ld_shlibs_CXX=no
19482 # FIXME: insert proper C++ library support
19483 ld_shlibs_CXX=no
19485 esac
19488 freebsd2.*)
19489 # C++ shared libraries reported to be fairly broken before
19490 # switch to ELF
19491 ld_shlibs_CXX=no
19494 freebsd-elf*)
19495 archive_cmds_need_lc_CXX=no
19498 freebsd* | dragonfly*)
19499 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19500 # conventions
19501 ld_shlibs_CXX=yes
19504 gnu*)
19507 haiku*)
19508 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19509 link_all_deplibs_CXX=yes
19512 hpux9*)
19513 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19514 hardcode_libdir_separator_CXX=:
19515 export_dynamic_flag_spec_CXX='${wl}-E'
19516 hardcode_direct_CXX=yes
19517 hardcode_minus_L_CXX=yes # Not in the search PATH,
19518 # but as the default
19519 # location of the library.
19521 case $cc_basename in
19522 CC*)
19523 # FIXME: insert proper C++ library support
19524 ld_shlibs_CXX=no
19526 aCC*)
19527 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'
19528 # Commands to make compiler produce verbose output that lists
19529 # what "hidden" libraries, object files and flags are used when
19530 # linking a shared library.
19532 # There doesn't appear to be a way to prevent this compiler from
19533 # explicitly linking system object files so we need to strip them
19534 # from the output so that they don't get included in the library
19535 # dependencies.
19536 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"'
19539 if test "$GXX" = yes; then
19540 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'
19541 else
19542 # FIXME: insert proper C++ library support
19543 ld_shlibs_CXX=no
19546 esac
19549 hpux10*|hpux11*)
19550 if test $with_gnu_ld = no; then
19551 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19552 hardcode_libdir_separator_CXX=:
19554 case $host_cpu in
19555 hppa*64*|ia64*)
19558 export_dynamic_flag_spec_CXX='${wl}-E'
19560 esac
19562 case $host_cpu in
19563 hppa*64*|ia64*)
19564 hardcode_direct_CXX=no
19565 hardcode_shlibpath_var_CXX=no
19568 hardcode_direct_CXX=yes
19569 hardcode_direct_absolute_CXX=yes
19570 hardcode_minus_L_CXX=yes # Not in the search PATH,
19571 # but as the default
19572 # location of the library.
19574 esac
19576 case $cc_basename in
19577 CC*)
19578 # FIXME: insert proper C++ library support
19579 ld_shlibs_CXX=no
19581 aCC*)
19582 case $host_cpu in
19583 hppa*64*)
19584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19586 ia64*)
19587 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19590 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19592 esac
19593 # Commands to make compiler produce verbose output that lists
19594 # what "hidden" libraries, object files and flags are used when
19595 # linking a shared library.
19597 # There doesn't appear to be a way to prevent this compiler from
19598 # explicitly linking system object files so we need to strip them
19599 # from the output so that they don't get included in the library
19600 # dependencies.
19601 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"'
19604 if test "$GXX" = yes; then
19605 if test $with_gnu_ld = no; then
19606 case $host_cpu in
19607 hppa*64*)
19608 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19610 ia64*)
19611 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19614 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'
19616 esac
19618 else
19619 # FIXME: insert proper C++ library support
19620 ld_shlibs_CXX=no
19623 esac
19626 interix[3-9]*)
19627 hardcode_direct_CXX=no
19628 hardcode_shlibpath_var_CXX=no
19629 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19630 export_dynamic_flag_spec_CXX='${wl}-E'
19631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19632 # Instead, shared libraries are loaded at an image base (0x10000000 by
19633 # default) and relocated if they conflict, which is a slow very memory
19634 # consuming and fragmenting process. To avoid this, we pick a random,
19635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19637 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'
19638 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'
19640 irix5* | irix6*)
19641 case $cc_basename in
19642 CC*)
19643 # SGI C++
19644 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'
19646 # Archives containing C++ object files must be created using
19647 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19648 # necessary to make sure instantiated templates are included
19649 # in the archive.
19650 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19653 if test "$GXX" = yes; then
19654 if test "$with_gnu_ld" = no; then
19655 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'
19656 else
19657 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'
19660 link_all_deplibs_CXX=yes
19662 esac
19663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19664 hardcode_libdir_separator_CXX=:
19665 inherit_rpath_CXX=yes
19668 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19669 case $cc_basename in
19670 KCC*)
19671 # Kuck and Associates, Inc. (KAI) C++ Compiler
19673 # KCC will only create a shared library if the output file
19674 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19675 # to its proper name (with version) after linking.
19676 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'
19677 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'
19678 # Commands to make compiler produce verbose output that lists
19679 # what "hidden" libraries, object files and flags are used when
19680 # linking a shared library.
19682 # There doesn't appear to be a way to prevent this compiler from
19683 # explicitly linking system object files so we need to strip them
19684 # from the output so that they don't get included in the library
19685 # dependencies.
19686 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"'
19688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19691 # Archives containing C++ object files must be created using
19692 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19693 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19695 icpc* | ecpc* )
19696 # Intel C++
19697 with_gnu_ld=yes
19698 # version 8.0 and above of icpc choke on multiply defined symbols
19699 # if we add $predep_objects and $postdep_objects, however 7.1 and
19700 # earlier do not add the objects themselves.
19701 case `$CC -V 2>&1` in
19702 *"Version 7."*)
19703 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19704 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'
19706 *) # Version 8.0 or newer
19707 tmp_idyn=
19708 case $host_cpu in
19709 ia64*) tmp_idyn=' -i_dynamic';;
19710 esac
19711 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19712 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'
19714 esac
19715 archive_cmds_need_lc_CXX=no
19716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19718 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19720 pgCC* | pgcpp*)
19721 # Portland Group C++ compiler
19722 case `$CC -V` in
19723 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19724 prelink_cmds_CXX='tpldir=Template.dir~
19725 rm -rf $tpldir~
19726 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19727 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19728 old_archive_cmds_CXX='tpldir=Template.dir~
19729 rm -rf $tpldir~
19730 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19731 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19732 $RANLIB $oldlib'
19733 archive_cmds_CXX='tpldir=Template.dir~
19734 rm -rf $tpldir~
19735 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19736 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19737 archive_expsym_cmds_CXX='tpldir=Template.dir~
19738 rm -rf $tpldir~
19739 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19740 $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'
19742 *) # Version 6 and above use weak symbols
19743 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19744 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'
19746 esac
19748 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19749 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19750 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'
19752 cxx*)
19753 # Compaq C++
19754 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19755 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'
19757 runpath_var=LD_RUN_PATH
19758 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19759 hardcode_libdir_separator_CXX=:
19761 # Commands to make compiler produce verbose output that lists
19762 # what "hidden" libraries, object files and flags are used when
19763 # linking a shared library.
19765 # There doesn't appear to be a way to prevent this compiler from
19766 # explicitly linking system object files so we need to strip them
19767 # from the output so that they don't get included in the library
19768 # dependencies.
19769 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'
19771 xl* | mpixl* | bgxl*)
19772 # IBM XL 8.0 on PPC, with GNU ld
19773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19775 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19776 if test "x$supports_anon_versioning" = xyes; then
19777 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19779 echo "local: *; };" >> $output_objdir/$libname.ver~
19780 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19784 case `$CC -V 2>&1 | sed 5q` in
19785 *Sun\ C*)
19786 # Sun C++ 5.9
19787 no_undefined_flag_CXX=' -zdefs'
19788 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19789 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'
19790 hardcode_libdir_flag_spec_CXX='-R$libdir'
19791 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'
19792 compiler_needs_object_CXX=yes
19794 # Not sure whether something based on
19795 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19796 # would be better.
19797 output_verbose_link_cmd='func_echo_all'
19799 # Archives containing C++ object files must be created using
19800 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19801 # necessary to make sure instantiated templates are included
19802 # in the archive.
19803 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19805 esac
19807 esac
19810 lynxos*)
19811 # FIXME: insert proper C++ library support
19812 ld_shlibs_CXX=no
19815 m88k*)
19816 # FIXME: insert proper C++ library support
19817 ld_shlibs_CXX=no
19820 mvs*)
19821 case $cc_basename in
19822 cxx*)
19823 # FIXME: insert proper C++ library support
19824 ld_shlibs_CXX=no
19827 # FIXME: insert proper C++ library support
19828 ld_shlibs_CXX=no
19830 esac
19833 netbsd*)
19834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19835 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19836 wlarc=
19837 hardcode_libdir_flag_spec_CXX='-R$libdir'
19838 hardcode_direct_CXX=yes
19839 hardcode_shlibpath_var_CXX=no
19841 # Workaround some broken pre-1.5 toolchains
19842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19845 *nto* | *qnx*)
19846 ld_shlibs_CXX=yes
19849 openbsd2*)
19850 # C++ shared libraries are fairly broken
19851 ld_shlibs_CXX=no
19854 openbsd*)
19855 if test -f /usr/libexec/ld.so; then
19856 hardcode_direct_CXX=yes
19857 hardcode_shlibpath_var_CXX=no
19858 hardcode_direct_absolute_CXX=yes
19859 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19862 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19863 export_dynamic_flag_spec_CXX='${wl}-E'
19864 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19866 output_verbose_link_cmd=func_echo_all
19867 else
19868 ld_shlibs_CXX=no
19872 osf3* | osf4* | osf5*)
19873 case $cc_basename in
19874 KCC*)
19875 # Kuck and Associates, Inc. (KAI) C++ Compiler
19877 # KCC will only create a shared library if the output file
19878 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19879 # to its proper name (with version) after linking.
19880 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'
19882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19883 hardcode_libdir_separator_CXX=:
19885 # Archives containing C++ object files must be created using
19886 # the KAI C++ compiler.
19887 case $host in
19888 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19889 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19890 esac
19892 RCC*)
19893 # Rational C++ 2.4.1
19894 # FIXME: insert proper C++ library support
19895 ld_shlibs_CXX=no
19897 cxx*)
19898 case $host in
19899 osf3*)
19900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19901 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'
19902 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19905 allow_undefined_flag_CXX=' -expect_unresolved \*'
19906 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'
19907 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19908 echo "-hidden">> $lib.exp~
19909 $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~
19910 $RM $lib.exp'
19911 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19913 esac
19915 hardcode_libdir_separator_CXX=:
19917 # Commands to make compiler produce verbose output that lists
19918 # what "hidden" libraries, object files and flags are used when
19919 # linking a shared library.
19921 # There doesn't appear to be a way to prevent this compiler from
19922 # explicitly linking system object files so we need to strip them
19923 # from the output so that they don't get included in the library
19924 # dependencies.
19925 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"'
19928 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19929 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19930 case $host in
19931 osf3*)
19932 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'
19935 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'
19937 esac
19939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19940 hardcode_libdir_separator_CXX=:
19942 # Commands to make compiler produce verbose output that lists
19943 # what "hidden" libraries, object files and flags are used when
19944 # linking a shared library.
19945 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19947 else
19948 # FIXME: insert proper C++ library support
19949 ld_shlibs_CXX=no
19952 esac
19955 psos*)
19956 # FIXME: insert proper C++ library support
19957 ld_shlibs_CXX=no
19960 sunos4*)
19961 case $cc_basename in
19962 CC*)
19963 # Sun C++ 4.x
19964 # FIXME: insert proper C++ library support
19965 ld_shlibs_CXX=no
19967 lcc*)
19968 # Lucid
19969 # FIXME: insert proper C++ library support
19970 ld_shlibs_CXX=no
19973 # FIXME: insert proper C++ library support
19974 ld_shlibs_CXX=no
19976 esac
19979 solaris*)
19980 case $cc_basename in
19981 CC*)
19982 # Sun C++ 4.2, 5.x and Centerline C++
19983 archive_cmds_need_lc_CXX=yes
19984 no_undefined_flag_CXX=' -zdefs'
19985 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19986 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19987 $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'
19989 hardcode_libdir_flag_spec_CXX='-R$libdir'
19990 hardcode_shlibpath_var_CXX=no
19991 case $host_os in
19992 solaris2.[0-5] | solaris2.[0-5].*) ;;
19994 # The compiler driver will combine and reorder linker options,
19995 # but understands `-z linker_flag'.
19996 # Supported since Solaris 2.6 (maybe 2.5.1?)
19997 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19999 esac
20000 link_all_deplibs_CXX=yes
20002 output_verbose_link_cmd='func_echo_all'
20004 # Archives containing C++ object files must be created using
20005 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20006 # necessary to make sure instantiated templates are included
20007 # in the archive.
20008 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20010 gcx*)
20011 # Green Hills C++ Compiler
20012 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20014 # The C++ compiler must be used to create the archive.
20015 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20018 # GNU C++ compiler with Solaris linker
20019 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20020 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20021 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20022 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20023 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20024 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20026 # Commands to make compiler produce verbose output that lists
20027 # what "hidden" libraries, object files and flags are used when
20028 # linking a shared library.
20029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20030 else
20031 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20032 # platform.
20033 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20034 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20035 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20037 # Commands to make compiler produce verbose output that lists
20038 # what "hidden" libraries, object files and flags are used when
20039 # linking a shared library.
20040 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20043 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20044 case $host_os in
20045 solaris2.[0-5] | solaris2.[0-5].*) ;;
20047 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20049 esac
20052 esac
20055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20056 no_undefined_flag_CXX='${wl}-z,text'
20057 archive_cmds_need_lc_CXX=no
20058 hardcode_shlibpath_var_CXX=no
20059 runpath_var='LD_RUN_PATH'
20061 case $cc_basename in
20062 CC*)
20063 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20064 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20067 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20068 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20070 esac
20073 sysv5* | sco3.2v5* | sco5v6*)
20074 # Note: We can NOT use -z defs as we might desire, because we do not
20075 # link with -lc, and that would cause any symbols used from libc to
20076 # always be unresolved, which means just about no library would
20077 # ever link correctly. If we're not using GNU ld we use -z text
20078 # though, which does catch some bad symbols but isn't as heavy-handed
20079 # as -z defs.
20080 no_undefined_flag_CXX='${wl}-z,text'
20081 allow_undefined_flag_CXX='${wl}-z,nodefs'
20082 archive_cmds_need_lc_CXX=no
20083 hardcode_shlibpath_var_CXX=no
20084 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20085 hardcode_libdir_separator_CXX=':'
20086 link_all_deplibs_CXX=yes
20087 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20088 runpath_var='LD_RUN_PATH'
20090 case $cc_basename in
20091 CC*)
20092 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20093 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20095 '"$old_archive_cmds_CXX"
20096 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20097 '"$reload_cmds_CXX"
20100 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20103 esac
20106 tandem*)
20107 case $cc_basename in
20108 NCC*)
20109 # NonStop-UX NCC 3.20
20110 # FIXME: insert proper C++ library support
20111 ld_shlibs_CXX=no
20114 # FIXME: insert proper C++ library support
20115 ld_shlibs_CXX=no
20117 esac
20120 vxworks*)
20121 # FIXME: insert proper C++ library support
20122 ld_shlibs_CXX=no
20126 # FIXME: insert proper C++ library support
20127 ld_shlibs_CXX=no
20129 esac
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20132 $as_echo "$ld_shlibs_CXX" >&6; }
20133 test "$ld_shlibs_CXX" = no && can_build_shared=no
20135 GCC_CXX="$GXX"
20136 LD_CXX="$LD"
20138 ## CAVEAT EMPTOR:
20139 ## There is no encapsulation within the following macros, do not change
20140 ## the running order or otherwise move them around unless you know exactly
20141 ## what you are doing...
20142 # Dependencies to place before and after the object being linked:
20143 predep_objects_CXX=
20144 postdep_objects_CXX=
20145 predeps_CXX=
20146 postdeps_CXX=
20147 compiler_lib_search_path_CXX=
20149 cat > conftest.$ac_ext <<_LT_EOF
20150 class Foo
20152 public:
20153 Foo (void) { a = 0; }
20154 private:
20155 int a;
20157 _LT_EOF
20159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20160 (eval $ac_compile) 2>&5
20161 ac_status=$?
20162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20163 test $ac_status = 0; }; then
20164 # Parse the compiler output and extract the necessary
20165 # objects, libraries and library flags.
20167 # Sentinel used to keep track of whether or not we are before
20168 # the conftest object file.
20169 pre_test_object_deps_done=no
20171 for p in `eval "$output_verbose_link_cmd"`; do
20172 case $p in
20174 -L* | -R* | -l*)
20175 # Some compilers place space between "-{L,R}" and the path.
20176 # Remove the space.
20177 if test $p = "-L" ||
20178 test $p = "-R"; then
20179 prev=$p
20180 continue
20181 else
20182 prev=
20185 if test "$pre_test_object_deps_done" = no; then
20186 case $p in
20187 -L* | -R*)
20188 # Internal compiler library paths should come after those
20189 # provided the user. The postdeps already come after the
20190 # user supplied libs so there is no need to process them.
20191 if test -z "$compiler_lib_search_path_CXX"; then
20192 compiler_lib_search_path_CXX="${prev}${p}"
20193 else
20194 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20197 # The "-l" case would never come before the object being
20198 # linked, so don't bother handling this case.
20199 esac
20200 else
20201 if test -z "$postdeps_CXX"; then
20202 postdeps_CXX="${prev}${p}"
20203 else
20204 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20209 *.$objext)
20210 # This assumes that the test object file only shows up
20211 # once in the compiler output.
20212 if test "$p" = "conftest.$objext"; then
20213 pre_test_object_deps_done=yes
20214 continue
20217 if test "$pre_test_object_deps_done" = no; then
20218 if test -z "$predep_objects_CXX"; then
20219 predep_objects_CXX="$p"
20220 else
20221 predep_objects_CXX="$predep_objects_CXX $p"
20223 else
20224 if test -z "$postdep_objects_CXX"; then
20225 postdep_objects_CXX="$p"
20226 else
20227 postdep_objects_CXX="$postdep_objects_CXX $p"
20232 *) ;; # Ignore the rest.
20234 esac
20235 done
20237 # Clean up.
20238 rm -f a.out a.exe
20239 else
20240 echo "libtool.m4: error: problem compiling CXX test program"
20243 $RM -f confest.$objext
20245 # PORTME: override above test on systems where it is broken
20246 case $host_os in
20247 interix[3-9]*)
20248 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20249 # hack all around it, let's just trust "g++" to DTRT.
20250 predep_objects_CXX=
20251 postdep_objects_CXX=
20252 postdeps_CXX=
20255 linux*)
20256 case `$CC -V 2>&1 | sed 5q` in
20257 *Sun\ C*)
20258 # Sun C++ 5.9
20260 # The more standards-conforming stlport4 library is
20261 # incompatible with the Cstd library. Avoid specifying
20262 # it if it's in CXXFLAGS. Ignore libCrun as
20263 # -library=stlport4 depends on it.
20264 case " $CXX $CXXFLAGS " in
20265 *" -library=stlport4 "*)
20266 solaris_use_stlport4=yes
20268 esac
20270 if test "$solaris_use_stlport4" != yes; then
20271 postdeps_CXX='-library=Cstd -library=Crun'
20274 esac
20277 solaris*)
20278 case $cc_basename in
20279 CC*)
20280 # The more standards-conforming stlport4 library is
20281 # incompatible with the Cstd library. Avoid specifying
20282 # it if it's in CXXFLAGS. Ignore libCrun as
20283 # -library=stlport4 depends on it.
20284 case " $CXX $CXXFLAGS " in
20285 *" -library=stlport4 "*)
20286 solaris_use_stlport4=yes
20288 esac
20290 # Adding this requires a known-good setup of shared libraries for
20291 # Sun compiler versions before 5.6, else PIC objects from an old
20292 # archive will be linked into the output, leading to subtle bugs.
20293 if test "$solaris_use_stlport4" != yes; then
20294 postdeps_CXX='-library=Cstd -library=Crun'
20297 esac
20299 esac
20302 case " $postdeps_CXX " in
20303 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20304 esac
20305 compiler_lib_search_dirs_CXX=
20306 if test -n "${compiler_lib_search_path_CXX}"; then
20307 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20340 lt_prog_compiler_wl_CXX=
20341 lt_prog_compiler_pic_CXX=
20342 lt_prog_compiler_static_CXX=
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20345 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20347 # C++ specific cases for pic, static, wl, etc.
20348 if test "$GXX" = yes; then
20349 lt_prog_compiler_wl_CXX='-Wl,'
20350 lt_prog_compiler_static_CXX='-static'
20352 case $host_os in
20353 aix*)
20354 # All AIX code is PIC.
20355 if test "$host_cpu" = ia64; then
20356 # AIX 5 now supports IA64 processor
20357 lt_prog_compiler_static_CXX='-Bstatic'
20359 lt_prog_compiler_pic_CXX='-fPIC'
20362 amigaos*)
20363 case $host_cpu in
20364 powerpc)
20365 # see comment about AmigaOS4 .so support
20366 lt_prog_compiler_pic_CXX='-fPIC'
20368 m68k)
20369 # FIXME: we need at least 68020 code to build shared libraries, but
20370 # adding the `-m68020' flag to GCC prevents building anything better,
20371 # like `-m68040'.
20372 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20374 esac
20377 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20378 # PIC is the default for these OSes.
20380 mingw* | cygwin* | os2* | pw32* | cegcc*)
20381 # This hack is so that the source file can tell whether it is being
20382 # built for inclusion in a dll (and should export symbols for example).
20383 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20384 # (--disable-auto-import) libraries
20385 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20387 darwin* | rhapsody*)
20388 # PIC is the default on this platform
20389 # Common symbols not allowed in MH_DYLIB files
20390 lt_prog_compiler_pic_CXX='-fno-common'
20392 *djgpp*)
20393 # DJGPP does not support shared libraries at all
20394 lt_prog_compiler_pic_CXX=
20396 haiku*)
20397 # PIC is the default for Haiku.
20398 # The "-static" flag exists, but is broken.
20399 lt_prog_compiler_static_CXX=
20401 interix[3-9]*)
20402 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20403 # Instead, we relocate shared libraries at runtime.
20405 sysv4*MP*)
20406 if test -d /usr/nec; then
20407 lt_prog_compiler_pic_CXX=-Kconform_pic
20410 hpux*)
20411 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20412 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20413 # sets the default TLS model and affects inlining.
20414 case $host_cpu in
20415 hppa*64*)
20418 lt_prog_compiler_pic_CXX='-fPIC'
20420 esac
20422 *qnx* | *nto*)
20423 # QNX uses GNU C++, but need to define -shared option too, otherwise
20424 # it will coredump.
20425 lt_prog_compiler_pic_CXX='-fPIC -shared'
20428 lt_prog_compiler_pic_CXX='-fPIC'
20430 esac
20431 else
20432 case $host_os in
20433 aix[4-9]*)
20434 # All AIX code is PIC.
20435 if test "$host_cpu" = ia64; then
20436 # AIX 5 now supports IA64 processor
20437 lt_prog_compiler_static_CXX='-Bstatic'
20438 else
20439 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20442 chorus*)
20443 case $cc_basename in
20444 cxch68*)
20445 # Green Hills C++ Compiler
20446 # _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"
20448 esac
20450 dgux*)
20451 case $cc_basename in
20452 ec++*)
20453 lt_prog_compiler_pic_CXX='-KPIC'
20455 ghcx*)
20456 # Green Hills C++ Compiler
20457 lt_prog_compiler_pic_CXX='-pic'
20461 esac
20463 freebsd* | dragonfly*)
20464 # FreeBSD uses GNU C++
20466 hpux9* | hpux10* | hpux11*)
20467 case $cc_basename in
20468 CC*)
20469 lt_prog_compiler_wl_CXX='-Wl,'
20470 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20471 if test "$host_cpu" != ia64; then
20472 lt_prog_compiler_pic_CXX='+Z'
20475 aCC*)
20476 lt_prog_compiler_wl_CXX='-Wl,'
20477 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20478 case $host_cpu in
20479 hppa*64*|ia64*)
20480 # +Z the default
20483 lt_prog_compiler_pic_CXX='+Z'
20485 esac
20489 esac
20491 interix*)
20492 # This is c89, which is MS Visual C++ (no shared libs)
20493 # Anyone wants to do a port?
20495 irix5* | irix6* | nonstopux*)
20496 case $cc_basename in
20497 CC*)
20498 lt_prog_compiler_wl_CXX='-Wl,'
20499 lt_prog_compiler_static_CXX='-non_shared'
20500 # CC pic flag -KPIC is the default.
20504 esac
20506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20507 case $cc_basename in
20508 KCC*)
20509 # KAI C++ Compiler
20510 lt_prog_compiler_wl_CXX='--backend -Wl,'
20511 lt_prog_compiler_pic_CXX='-fPIC'
20513 ecpc* )
20514 # old Intel C++ for x86_64 which still supported -KPIC.
20515 lt_prog_compiler_wl_CXX='-Wl,'
20516 lt_prog_compiler_pic_CXX='-KPIC'
20517 lt_prog_compiler_static_CXX='-static'
20519 icpc* )
20520 # Intel C++, used to be incompatible with GCC.
20521 # ICC 10 doesn't accept -KPIC any more.
20522 lt_prog_compiler_wl_CXX='-Wl,'
20523 lt_prog_compiler_pic_CXX='-fPIC'
20524 lt_prog_compiler_static_CXX='-static'
20526 pgCC* | pgcpp*)
20527 # Portland Group C++ compiler
20528 lt_prog_compiler_wl_CXX='-Wl,'
20529 lt_prog_compiler_pic_CXX='-fpic'
20530 lt_prog_compiler_static_CXX='-Bstatic'
20532 cxx*)
20533 # Compaq C++
20534 # Make sure the PIC flag is empty. It appears that all Alpha
20535 # Linux and Compaq Tru64 Unix objects are PIC.
20536 lt_prog_compiler_pic_CXX=
20537 lt_prog_compiler_static_CXX='-non_shared'
20539 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20540 # IBM XL 8.0, 9.0 on PPC and BlueGene
20541 lt_prog_compiler_wl_CXX='-Wl,'
20542 lt_prog_compiler_pic_CXX='-qpic'
20543 lt_prog_compiler_static_CXX='-qstaticlink'
20546 case `$CC -V 2>&1 | sed 5q` in
20547 *Sun\ C*)
20548 # Sun C++ 5.9
20549 lt_prog_compiler_pic_CXX='-KPIC'
20550 lt_prog_compiler_static_CXX='-Bstatic'
20551 lt_prog_compiler_wl_CXX='-Qoption ld '
20553 esac
20555 esac
20557 lynxos*)
20559 m88k*)
20561 mvs*)
20562 case $cc_basename in
20563 cxx*)
20564 lt_prog_compiler_pic_CXX='-W c,exportall'
20568 esac
20570 netbsd*)
20572 *qnx* | *nto*)
20573 # QNX uses GNU C++, but need to define -shared option too, otherwise
20574 # it will coredump.
20575 lt_prog_compiler_pic_CXX='-fPIC -shared'
20577 osf3* | osf4* | osf5*)
20578 case $cc_basename in
20579 KCC*)
20580 lt_prog_compiler_wl_CXX='--backend -Wl,'
20582 RCC*)
20583 # Rational C++ 2.4.1
20584 lt_prog_compiler_pic_CXX='-pic'
20586 cxx*)
20587 # Digital/Compaq C++
20588 lt_prog_compiler_wl_CXX='-Wl,'
20589 # Make sure the PIC flag is empty. It appears that all Alpha
20590 # Linux and Compaq Tru64 Unix objects are PIC.
20591 lt_prog_compiler_pic_CXX=
20592 lt_prog_compiler_static_CXX='-non_shared'
20596 esac
20598 psos*)
20600 solaris*)
20601 case $cc_basename in
20602 CC*)
20603 # Sun C++ 4.2, 5.x and Centerline C++
20604 lt_prog_compiler_pic_CXX='-KPIC'
20605 lt_prog_compiler_static_CXX='-Bstatic'
20606 lt_prog_compiler_wl_CXX='-Qoption ld '
20608 gcx*)
20609 # Green Hills C++ Compiler
20610 lt_prog_compiler_pic_CXX='-PIC'
20614 esac
20616 sunos4*)
20617 case $cc_basename in
20618 CC*)
20619 # Sun C++ 4.x
20620 lt_prog_compiler_pic_CXX='-pic'
20621 lt_prog_compiler_static_CXX='-Bstatic'
20623 lcc*)
20624 # Lucid
20625 lt_prog_compiler_pic_CXX='-pic'
20629 esac
20631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20632 case $cc_basename in
20633 CC*)
20634 lt_prog_compiler_wl_CXX='-Wl,'
20635 lt_prog_compiler_pic_CXX='-KPIC'
20636 lt_prog_compiler_static_CXX='-Bstatic'
20638 esac
20640 tandem*)
20641 case $cc_basename in
20642 NCC*)
20643 # NonStop-UX NCC 3.20
20644 lt_prog_compiler_pic_CXX='-KPIC'
20648 esac
20650 vxworks*)
20653 lt_prog_compiler_can_build_shared_CXX=no
20655 esac
20658 case $host_os in
20659 # For platforms which do not support PIC, -DPIC is meaningless:
20660 *djgpp*)
20661 lt_prog_compiler_pic_CXX=
20664 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20666 esac
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20668 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20673 # Check to make sure the PIC flag actually works.
20675 if test -n "$lt_prog_compiler_pic_CXX"; then
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20678 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20679 $as_echo_n "(cached) " >&6
20680 else
20681 lt_cv_prog_compiler_pic_works_CXX=no
20682 ac_outfile=conftest.$ac_objext
20683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20684 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20685 # Insert the option either (1) after the last *FLAGS variable, or
20686 # (2) before a word containing "conftest.", or (3) at the end.
20687 # Note that $ac_compile itself does not contain backslashes and begins
20688 # with a dollar sign (not a hyphen), so the echo should work correctly.
20689 # The option is referenced via a variable to avoid confusing sed.
20690 lt_compile=`echo "$ac_compile" | $SED \
20691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20693 -e 's:$: $lt_compiler_flag:'`
20694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20695 (eval "$lt_compile" 2>conftest.err)
20696 ac_status=$?
20697 cat conftest.err >&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 if (exit $ac_status) && test -s "$ac_outfile"; then
20700 # The compiler can only warn and ignore the option if not recognized
20701 # So say no if there are warnings other than the usual output.
20702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20705 lt_cv_prog_compiler_pic_works_CXX=yes
20708 $RM conftest*
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20712 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20714 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20715 case $lt_prog_compiler_pic_CXX in
20716 "" | " "*) ;;
20717 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20718 esac
20719 else
20720 lt_prog_compiler_pic_CXX=
20721 lt_prog_compiler_can_build_shared_CXX=no
20729 # Check to make sure the static flag actually works.
20731 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20733 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20734 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20735 $as_echo_n "(cached) " >&6
20736 else
20737 lt_cv_prog_compiler_static_works_CXX=no
20738 save_LDFLAGS="$LDFLAGS"
20739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20742 # The linker can only warn and ignore the option if not recognized
20743 # So say no if there are warnings
20744 if test -s conftest.err; then
20745 # Append any errors to the config.log.
20746 cat conftest.err 1>&5
20747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20749 if diff conftest.exp conftest.er2 >/dev/null; then
20750 lt_cv_prog_compiler_static_works_CXX=yes
20752 else
20753 lt_cv_prog_compiler_static_works_CXX=yes
20756 $RM -r conftest*
20757 LDFLAGS="$save_LDFLAGS"
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20761 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20763 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20765 else
20766 lt_prog_compiler_static_CXX=
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20774 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20775 $as_echo_n "(cached) " >&6
20776 else
20777 lt_cv_prog_compiler_c_o_CXX=no
20778 $RM -r conftest 2>/dev/null
20779 mkdir conftest
20780 cd conftest
20781 mkdir out
20782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20784 lt_compiler_flag="-o out/conftest2.$ac_objext"
20785 # Insert the option either (1) after the last *FLAGS variable, or
20786 # (2) before a word containing "conftest.", or (3) at the end.
20787 # Note that $ac_compile itself does not contain backslashes and begins
20788 # with a dollar sign (not a hyphen), so the echo should work correctly.
20789 lt_compile=`echo "$ac_compile" | $SED \
20790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20792 -e 's:$: $lt_compiler_flag:'`
20793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20794 (eval "$lt_compile" 2>out/conftest.err)
20795 ac_status=$?
20796 cat out/conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20799 then
20800 # The compiler can only warn and ignore the option if not recognized
20801 # So say no if there are warnings
20802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20805 lt_cv_prog_compiler_c_o_CXX=yes
20808 chmod u+w . 2>&5
20809 $RM conftest*
20810 # SGI C++ compiler will create directory out/ii_files/ for
20811 # template instantiation
20812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20813 $RM out/* && rmdir out
20814 cd ..
20815 $RM -r conftest
20816 $RM conftest*
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20820 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20825 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20826 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20827 $as_echo_n "(cached) " >&6
20828 else
20829 lt_cv_prog_compiler_c_o_CXX=no
20830 $RM -r conftest 2>/dev/null
20831 mkdir conftest
20832 cd conftest
20833 mkdir out
20834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20836 lt_compiler_flag="-o out/conftest2.$ac_objext"
20837 # Insert the option either (1) after the last *FLAGS variable, or
20838 # (2) before a word containing "conftest.", or (3) at the end.
20839 # Note that $ac_compile itself does not contain backslashes and begins
20840 # with a dollar sign (not a hyphen), so the echo should work correctly.
20841 lt_compile=`echo "$ac_compile" | $SED \
20842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20844 -e 's:$: $lt_compiler_flag:'`
20845 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20846 (eval "$lt_compile" 2>out/conftest.err)
20847 ac_status=$?
20848 cat out/conftest.err >&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20851 then
20852 # The compiler can only warn and ignore the option if not recognized
20853 # So say no if there are warnings
20854 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20857 lt_cv_prog_compiler_c_o_CXX=yes
20860 chmod u+w . 2>&5
20861 $RM conftest*
20862 # SGI C++ compiler will create directory out/ii_files/ for
20863 # template instantiation
20864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20865 $RM out/* && rmdir out
20866 cd ..
20867 $RM -r conftest
20868 $RM conftest*
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20872 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20877 hard_links="nottested"
20878 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20879 # do not overwrite the value of need_locks provided by the user
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20881 $as_echo_n "checking if we can lock with hard links... " >&6; }
20882 hard_links=yes
20883 $RM conftest*
20884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20885 touch conftest.a
20886 ln conftest.a conftest.b 2>&5 || hard_links=no
20887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20889 $as_echo "$hard_links" >&6; }
20890 if test "$hard_links" = no; then
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20892 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20893 need_locks=warn
20895 else
20896 need_locks=no
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20902 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20905 case $host_os in
20906 aix[4-9]*)
20907 # If we're using GNU nm, then we don't want the "-C" option.
20908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20909 # Also, AIX nm treats weak defined symbols like other global defined
20910 # symbols, whereas GNU nm marks them as "W".
20911 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20912 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'
20913 else
20914 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'
20917 pw32*)
20918 export_symbols_cmds_CXX="$ltdll_cmds"
20920 cygwin* | mingw* | cegcc*)
20921 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'
20924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20926 esac
20927 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20930 $as_echo "$ld_shlibs_CXX" >&6; }
20931 test "$ld_shlibs_CXX" = no && can_build_shared=no
20933 with_gnu_ld_CXX=$with_gnu_ld
20941 # Do we need to explicitly link libc?
20943 case "x$archive_cmds_need_lc_CXX" in
20944 x|xyes)
20945 # Assume -lc should be added
20946 archive_cmds_need_lc_CXX=yes
20948 if test "$enable_shared" = yes && test "$GCC" = yes; then
20949 case $archive_cmds_CXX in
20950 *'~'*)
20951 # FIXME: we may have to deal with multi-command sequences.
20953 '$CC '*)
20954 # Test whether the compiler implicitly links with -lc since on some
20955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20956 # to ld, don't add -lc before -lgcc.
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20958 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20959 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20960 $as_echo_n "(cached) " >&6
20961 else
20962 $RM conftest*
20963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20966 (eval $ac_compile) 2>&5
20967 ac_status=$?
20968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20969 test $ac_status = 0; } 2>conftest.err; then
20970 soname=conftest
20971 lib=conftest
20972 libobjs=conftest.$ac_objext
20973 deplibs=
20974 wl=$lt_prog_compiler_wl_CXX
20975 pic_flag=$lt_prog_compiler_pic_CXX
20976 compiler_flags=-v
20977 linker_flags=-v
20978 verstring=
20979 output_objdir=.
20980 libname=conftest
20981 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20982 allow_undefined_flag_CXX=
20983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20984 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20985 ac_status=$?
20986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20987 test $ac_status = 0; }
20988 then
20989 lt_cv_archive_cmds_need_lc_CXX=no
20990 else
20991 lt_cv_archive_cmds_need_lc_CXX=yes
20993 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20994 else
20995 cat conftest.err 1>&5
20997 $RM conftest*
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21001 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21002 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21004 esac
21007 esac
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21073 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21075 library_names_spec=
21076 libname_spec='lib$name'
21077 soname_spec=
21078 shrext_cmds=".so"
21079 postinstall_cmds=
21080 postuninstall_cmds=
21081 finish_cmds=
21082 finish_eval=
21083 shlibpath_var=
21084 shlibpath_overrides_runpath=unknown
21085 version_type=none
21086 dynamic_linker="$host_os ld.so"
21087 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21088 need_lib_prefix=unknown
21089 hardcode_into_libs=no
21091 # when you set need_version to no, make sure it does not cause -set_version
21092 # flags to be left without arguments
21093 need_version=unknown
21095 case $host_os in
21096 aix3*)
21097 version_type=linux
21098 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21099 shlibpath_var=LIBPATH
21101 # AIX 3 has no versioning support, so we append a major version to the name.
21102 soname_spec='${libname}${release}${shared_ext}$major'
21105 aix[4-9]*)
21106 version_type=linux
21107 need_lib_prefix=no
21108 need_version=no
21109 hardcode_into_libs=yes
21110 if test "$host_cpu" = ia64; then
21111 # AIX 5 supports IA64
21112 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21113 shlibpath_var=LD_LIBRARY_PATH
21114 else
21115 # With GCC up to 2.95.x, collect2 would create an import file
21116 # for dependence libraries. The import file would start with
21117 # the line `#! .'. This would cause the generated library to
21118 # depend on `.', always an invalid library. This was fixed in
21119 # development snapshots of GCC prior to 3.0.
21120 case $host_os in
21121 aix4 | aix4.[01] | aix4.[01].*)
21122 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21123 echo ' yes '
21124 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21126 else
21127 can_build_shared=no
21130 esac
21131 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21132 # soname into executable. Probably we can add versioning support to
21133 # collect2, so additional links can be useful in future.
21134 if test "$aix_use_runtimelinking" = yes; then
21135 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21136 # instead of lib<name>.a to let people know that these are not
21137 # typical AIX shared libraries.
21138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21139 else
21140 # We preserve .a as extension for shared libraries through AIX4.2
21141 # and later when we are not doing run time linking.
21142 library_names_spec='${libname}${release}.a $libname.a'
21143 soname_spec='${libname}${release}${shared_ext}$major'
21145 shlibpath_var=LIBPATH
21149 amigaos*)
21150 case $host_cpu in
21151 powerpc)
21152 # Since July 2007 AmigaOS4 officially supports .so libraries.
21153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21156 m68k)
21157 library_names_spec='$libname.ixlibrary $libname.a'
21158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21159 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'
21161 esac
21164 beos*)
21165 library_names_spec='${libname}${shared_ext}'
21166 dynamic_linker="$host_os ld.so"
21167 shlibpath_var=LIBRARY_PATH
21170 bsdi[45]*)
21171 version_type=linux
21172 need_version=no
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 soname_spec='${libname}${release}${shared_ext}$major'
21175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21176 shlibpath_var=LD_LIBRARY_PATH
21177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21179 # the default ld.so.conf also contains /usr/contrib/lib and
21180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21181 # libtool to hard-code these into programs
21184 cygwin* | mingw* | pw32* | cegcc*)
21185 version_type=windows
21186 shrext_cmds=".dll"
21187 need_version=no
21188 need_lib_prefix=no
21190 case $GCC,$host_os in
21191 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21192 library_names_spec='$libname.dll.a'
21193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21194 postinstall_cmds='base_file=`basename \${file}`~
21195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21196 dldir=$destdir/`dirname \$dlpath`~
21197 test -d \$dldir || mkdir -p \$dldir~
21198 $install_prog $dir/$dlname \$dldir/$dlname~
21199 chmod a+x \$dldir/$dlname~
21200 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21201 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21204 dlpath=$dir/\$dldll~
21205 $RM \$dlpath'
21206 shlibpath_overrides_runpath=yes
21208 case $host_os in
21209 cygwin*)
21210 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21211 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21214 mingw* | cegcc*)
21215 # MinGW DLLs use traditional 'lib' prefix
21216 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21218 pw32*)
21219 # pw32 DLLs use 'pw' prefix rather than 'lib'
21220 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21222 esac
21226 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21228 esac
21229 dynamic_linker='Win32 ld.exe'
21230 # FIXME: first we should search . and the directory the executable is in
21231 shlibpath_var=PATH
21234 darwin* | rhapsody*)
21235 dynamic_linker="$host_os dyld"
21236 version_type=darwin
21237 need_lib_prefix=no
21238 need_version=no
21239 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21240 soname_spec='${libname}${release}${major}$shared_ext'
21241 shlibpath_overrides_runpath=yes
21242 shlibpath_var=DYLD_LIBRARY_PATH
21243 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21245 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21248 dgux*)
21249 version_type=linux
21250 need_lib_prefix=no
21251 need_version=no
21252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21253 soname_spec='${libname}${release}${shared_ext}$major'
21254 shlibpath_var=LD_LIBRARY_PATH
21257 freebsd* | dragonfly*)
21258 # DragonFly does not have aout. When/if they implement a new
21259 # versioning mechanism, adjust this.
21260 if test -x /usr/bin/objformat; then
21261 objformat=`/usr/bin/objformat`
21262 else
21263 case $host_os in
21264 freebsd[23].*) objformat=aout ;;
21265 *) objformat=elf ;;
21266 esac
21268 version_type=freebsd-$objformat
21269 case $version_type in
21270 freebsd-elf*)
21271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21272 need_version=no
21273 need_lib_prefix=no
21275 freebsd-*)
21276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21277 need_version=yes
21279 esac
21280 shlibpath_var=LD_LIBRARY_PATH
21281 case $host_os in
21282 freebsd2.*)
21283 shlibpath_overrides_runpath=yes
21285 freebsd3.[01]* | freebsdelf3.[01]*)
21286 shlibpath_overrides_runpath=yes
21287 hardcode_into_libs=yes
21289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21291 shlibpath_overrides_runpath=no
21292 hardcode_into_libs=yes
21294 *) # from 4.6 on, and DragonFly
21295 shlibpath_overrides_runpath=yes
21296 hardcode_into_libs=yes
21298 esac
21301 gnu*)
21302 version_type=linux
21303 need_lib_prefix=no
21304 need_version=no
21305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21306 soname_spec='${libname}${release}${shared_ext}$major'
21307 shlibpath_var=LD_LIBRARY_PATH
21308 hardcode_into_libs=yes
21311 haiku*)
21312 version_type=linux
21313 need_lib_prefix=no
21314 need_version=no
21315 dynamic_linker="$host_os runtime_loader"
21316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21317 soname_spec='${libname}${release}${shared_ext}$major'
21318 shlibpath_var=LIBRARY_PATH
21319 shlibpath_overrides_runpath=yes
21320 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21321 hardcode_into_libs=yes
21324 hpux9* | hpux10* | hpux11*)
21325 # Give a soname corresponding to the major version so that dld.sl refuses to
21326 # link against other versions.
21327 version_type=sunos
21328 need_lib_prefix=no
21329 need_version=no
21330 case $host_cpu in
21331 ia64*)
21332 shrext_cmds='.so'
21333 hardcode_into_libs=yes
21334 dynamic_linker="$host_os dld.so"
21335 shlibpath_var=LD_LIBRARY_PATH
21336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21338 soname_spec='${libname}${release}${shared_ext}$major'
21339 if test "X$HPUX_IA64_MODE" = X32; then
21340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21341 else
21342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21346 hppa*64*)
21347 shrext_cmds='.sl'
21348 hardcode_into_libs=yes
21349 dynamic_linker="$host_os dld.sl"
21350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21353 soname_spec='${libname}${release}${shared_ext}$major'
21354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21358 shrext_cmds='.sl'
21359 dynamic_linker="$host_os dld.sl"
21360 shlibpath_var=SHLIB_PATH
21361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21363 soname_spec='${libname}${release}${shared_ext}$major'
21365 esac
21366 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21367 postinstall_cmds='chmod 555 $lib'
21368 # or fails outright, so override atomically:
21369 install_override_mode=555
21372 interix[3-9]*)
21373 version_type=linux
21374 need_lib_prefix=no
21375 need_version=no
21376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21377 soname_spec='${libname}${release}${shared_ext}$major'
21378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21379 shlibpath_var=LD_LIBRARY_PATH
21380 shlibpath_overrides_runpath=no
21381 hardcode_into_libs=yes
21384 irix5* | irix6* | nonstopux*)
21385 case $host_os in
21386 nonstopux*) version_type=nonstopux ;;
21388 if test "$lt_cv_prog_gnu_ld" = yes; then
21389 version_type=linux
21390 else
21391 version_type=irix
21392 fi ;;
21393 esac
21394 need_lib_prefix=no
21395 need_version=no
21396 soname_spec='${libname}${release}${shared_ext}$major'
21397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21398 case $host_os in
21399 irix5* | nonstopux*)
21400 libsuff= shlibsuff=
21403 case $LD in # libtool.m4 will add one of these switches to LD
21404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21405 libsuff= shlibsuff= libmagic=32-bit;;
21406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21407 libsuff=32 shlibsuff=N32 libmagic=N32;;
21408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21410 *) libsuff= shlibsuff= libmagic=never-match;;
21411 esac
21413 esac
21414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21415 shlibpath_overrides_runpath=no
21416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21418 hardcode_into_libs=yes
21421 # No shared lib support for Linux oldld, aout, or coff.
21422 linux*oldld* | linux*aout* | linux*coff*)
21423 dynamic_linker=no
21426 # This must be Linux ELF.
21427 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21428 version_type=linux
21429 need_lib_prefix=no
21430 need_version=no
21431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21432 soname_spec='${libname}${release}${shared_ext}$major'
21433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21434 shlibpath_var=LD_LIBRARY_PATH
21435 shlibpath_overrides_runpath=no
21437 # Some binutils ld are patched to set DT_RUNPATH
21438 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21440 else
21441 lt_cv_shlibpath_overrides_runpath=no
21442 save_LDFLAGS=$LDFLAGS
21443 save_libdir=$libdir
21444 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21445 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21447 /* end confdefs.h. */
21450 main ()
21454 return 0;
21456 _ACEOF
21457 if ac_fn_cxx_try_link "$LINENO"; then :
21458 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21459 lt_cv_shlibpath_overrides_runpath=yes
21462 rm -f core conftest.err conftest.$ac_objext \
21463 conftest$ac_exeext conftest.$ac_ext
21464 LDFLAGS=$save_LDFLAGS
21465 libdir=$save_libdir
21469 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21471 # This implies no fast_install, which is unacceptable.
21472 # Some rework will be needed to allow for fast_install
21473 # before this can be enabled.
21474 hardcode_into_libs=yes
21476 # Append ld.so.conf contents to the search path
21477 if test -f /etc/ld.so.conf; then
21478 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' ' '`
21479 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21482 # We used to test for /lib/ld.so.1 and disable shared libraries on
21483 # powerpc, because MkLinux only supported shared libraries with the
21484 # GNU dynamic linker. Since this was broken with cross compilers,
21485 # most powerpc-linux boxes support dynamic linking these days and
21486 # people can always --disable-shared, the test was removed, and we
21487 # assume the GNU/Linux dynamic linker is in use.
21488 dynamic_linker='GNU/Linux ld.so'
21491 netbsd*)
21492 version_type=sunos
21493 need_lib_prefix=no
21494 need_version=no
21495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21498 dynamic_linker='NetBSD (a.out) ld.so'
21499 else
21500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21501 soname_spec='${libname}${release}${shared_ext}$major'
21502 dynamic_linker='NetBSD ld.elf_so'
21504 shlibpath_var=LD_LIBRARY_PATH
21505 shlibpath_overrides_runpath=yes
21506 hardcode_into_libs=yes
21509 newsos6)
21510 version_type=linux
21511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21512 shlibpath_var=LD_LIBRARY_PATH
21513 shlibpath_overrides_runpath=yes
21516 *nto* | *qnx*)
21517 version_type=qnx
21518 need_lib_prefix=no
21519 need_version=no
21520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21521 soname_spec='${libname}${release}${shared_ext}$major'
21522 shlibpath_var=LD_LIBRARY_PATH
21523 shlibpath_overrides_runpath=no
21524 hardcode_into_libs=yes
21525 dynamic_linker='ldqnx.so'
21528 openbsd*)
21529 version_type=sunos
21530 sys_lib_dlsearch_path_spec="/usr/lib"
21531 need_lib_prefix=no
21532 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21533 case $host_os in
21534 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21535 *) need_version=no ;;
21536 esac
21537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21539 shlibpath_var=LD_LIBRARY_PATH
21540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21541 case $host_os in
21542 openbsd2.[89] | openbsd2.[89].*)
21543 shlibpath_overrides_runpath=no
21546 shlibpath_overrides_runpath=yes
21548 esac
21549 else
21550 shlibpath_overrides_runpath=yes
21554 os2*)
21555 libname_spec='$name'
21556 shrext_cmds=".dll"
21557 need_lib_prefix=no
21558 library_names_spec='$libname${shared_ext} $libname.a'
21559 dynamic_linker='OS/2 ld.exe'
21560 shlibpath_var=LIBPATH
21563 osf3* | osf4* | osf5*)
21564 version_type=osf
21565 need_lib_prefix=no
21566 need_version=no
21567 soname_spec='${libname}${release}${shared_ext}$major'
21568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21569 shlibpath_var=LD_LIBRARY_PATH
21570 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21571 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21574 rdos*)
21575 dynamic_linker=no
21578 solaris*)
21579 version_type=linux
21580 need_lib_prefix=no
21581 need_version=no
21582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21583 soname_spec='${libname}${release}${shared_ext}$major'
21584 shlibpath_var=LD_LIBRARY_PATH
21585 shlibpath_overrides_runpath=yes
21586 hardcode_into_libs=yes
21587 # ldd complains unless libraries are executable
21588 postinstall_cmds='chmod +x $lib'
21591 sunos4*)
21592 version_type=sunos
21593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21595 shlibpath_var=LD_LIBRARY_PATH
21596 shlibpath_overrides_runpath=yes
21597 if test "$with_gnu_ld" = yes; then
21598 need_lib_prefix=no
21600 need_version=yes
21603 sysv4 | sysv4.3*)
21604 version_type=linux
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 case $host_vendor in
21609 sni)
21610 shlibpath_overrides_runpath=no
21611 need_lib_prefix=no
21612 runpath_var=LD_RUN_PATH
21614 siemens)
21615 need_lib_prefix=no
21617 motorola)
21618 need_lib_prefix=no
21619 need_version=no
21620 shlibpath_overrides_runpath=no
21621 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21623 esac
21626 sysv4*MP*)
21627 if test -d /usr/nec ;then
21628 version_type=linux
21629 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21630 soname_spec='$libname${shared_ext}.$major'
21631 shlibpath_var=LD_LIBRARY_PATH
21635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21636 version_type=freebsd-elf
21637 need_lib_prefix=no
21638 need_version=no
21639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21640 soname_spec='${libname}${release}${shared_ext}$major'
21641 shlibpath_var=LD_LIBRARY_PATH
21642 shlibpath_overrides_runpath=yes
21643 hardcode_into_libs=yes
21644 if test "$with_gnu_ld" = yes; then
21645 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21646 else
21647 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21648 case $host_os in
21649 sco3.2v5*)
21650 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21652 esac
21654 sys_lib_dlsearch_path_spec='/usr/lib'
21657 tpf*)
21658 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21659 version_type=linux
21660 need_lib_prefix=no
21661 need_version=no
21662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21663 shlibpath_var=LD_LIBRARY_PATH
21664 shlibpath_overrides_runpath=no
21665 hardcode_into_libs=yes
21668 uts4*)
21669 version_type=linux
21670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21671 soname_spec='${libname}${release}${shared_ext}$major'
21672 shlibpath_var=LD_LIBRARY_PATH
21676 dynamic_linker=no
21678 esac
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21680 $as_echo "$dynamic_linker" >&6; }
21681 test "$dynamic_linker" = no && can_build_shared=no
21683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21684 if test "$GCC" = yes; then
21685 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21688 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21689 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21691 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21692 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21733 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21734 hardcode_action_CXX=
21735 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21736 test -n "$runpath_var_CXX" ||
21737 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21739 # We can hardcode non-existent directories.
21740 if test "$hardcode_direct_CXX" != no &&
21741 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21742 # have to relink, otherwise we might link with an installed library
21743 # when we should be linking with a yet-to-be-installed one
21744 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21745 test "$hardcode_minus_L_CXX" != no; then
21746 # Linking always hardcodes the temporary library directory.
21747 hardcode_action_CXX=relink
21748 else
21749 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21750 hardcode_action_CXX=immediate
21752 else
21753 # We cannot hardcode anything, or else we can only hardcode existing
21754 # directories.
21755 hardcode_action_CXX=unsupported
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21758 $as_echo "$hardcode_action_CXX" >&6; }
21760 if test "$hardcode_action_CXX" = relink ||
21761 test "$inherit_rpath_CXX" = yes; then
21762 # Fast installation is not supported
21763 enable_fast_install=no
21764 elif test "$shlibpath_overrides_runpath" = yes ||
21765 test "$enable_shared" = no; then
21766 # Fast installation is not necessary
21767 enable_fast_install=needless
21776 fi # test -n "$compiler"
21778 CC=$lt_save_CC
21779 LDCXX=$LD
21780 LD=$lt_save_LD
21781 GCC=$lt_save_GCC
21782 with_gnu_ld=$lt_save_with_gnu_ld
21783 lt_cv_path_LDCXX=$lt_cv_path_LD
21784 lt_cv_path_LD=$lt_save_path_LD
21785 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21786 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21787 fi # test "$_lt_caught_CXX_error" != yes
21789 ac_ext=cpp
21790 ac_cpp='$CXXCPP $CPPFLAGS'
21791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21810 # Only expand once:
21816 # Identify the assembler which will work hand-in-glove with the newly
21817 # built GCC, so that we can examine its features. This is the assembler
21818 # which will be driven by the driver program.
21820 # If build != host, and we aren't building gas in-tree, we identify a
21821 # build->target assembler and hope that it will have the same features
21822 # as the host->target assembler we'll be using.
21823 gcc_cv_gas_major_version=
21824 gcc_cv_gas_minor_version=
21825 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21827 if test "${gcc_cv_as+set}" = set; then :
21829 else
21831 if test -x "$DEFAULT_ASSEMBLER"; then
21832 gcc_cv_as="$DEFAULT_ASSEMBLER"
21833 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21834 && test -f ../gas/Makefile \
21835 && test x$build = x$host; then
21836 gcc_cv_as=../gas/as-new$build_exeext
21837 elif test -x as$build_exeext; then
21838 # Build using assembler in the current directory.
21839 gcc_cv_as=./as$build_exeext
21840 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21841 gcc_cv_as="$AS_FOR_TARGET"
21842 else
21843 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21844 set dummy $AS_FOR_TARGET; ac_word=$2
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21846 $as_echo_n "checking for $ac_word... " >&6; }
21847 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21848 $as_echo_n "(cached) " >&6
21849 else
21850 case $gcc_cv_as in
21851 [\\/]* | ?:[\\/]*)
21852 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21856 for as_dir in $PATH
21858 IFS=$as_save_IFS
21859 test -z "$as_dir" && as_dir=.
21860 for ac_exec_ext in '' $ac_executable_extensions; do
21861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21862 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21864 break 2
21866 done
21867 done
21868 IFS=$as_save_IFS
21871 esac
21873 gcc_cv_as=$ac_cv_path_gcc_cv_as
21874 if test -n "$gcc_cv_as"; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21876 $as_echo "$gcc_cv_as" >&6; }
21877 else
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21879 $as_echo "no" >&6; }
21886 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21888 case "$ORIGINAL_AS_FOR_TARGET" in
21889 ./as | ./as$build_exeext) ;;
21890 *) ac_config_files="$ac_config_files as:exec-tool.in"
21892 esac
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21895 $as_echo_n "checking what assembler to use... " >&6; }
21896 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21897 # Single tree build which includes gas. We want to prefer it
21898 # over whatever linker top-level may have detected, since
21899 # we'll use what we're building after installation anyway.
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21901 $as_echo "newly built gas" >&6; }
21902 in_tree_gas=yes
21903 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21904 for f in $gcc_cv_as_bfd_srcdir/configure \
21905 $gcc_cv_as_gas_srcdir/configure \
21906 $gcc_cv_as_gas_srcdir/configure.ac \
21907 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21908 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21909 if test x$gcc_cv_gas_version != x; then
21910 break
21912 done
21913 case $gcc_cv_gas_version in
21914 VERSION=[0-9]*) ;;
21915 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21916 esac
21917 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21918 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21919 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21920 case $gcc_cv_gas_patch_version in
21921 "") gcc_cv_gas_patch_version="0" ;;
21922 esac
21923 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21924 + $gcc_cv_gas_minor_version \) \* 1000 \
21925 + $gcc_cv_gas_patch_version`
21927 in_tree_gas_is_elf=no
21928 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21929 || (grep 'obj_format = multi' ../gas/Makefile \
21930 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21931 then
21932 in_tree_gas_is_elf=yes
21934 else
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21936 $as_echo "$gcc_cv_as" >&6; }
21937 in_tree_gas=no
21940 default_ld=
21941 # Check whether --enable-ld was given.
21942 if test "${enable_ld+set}" = set; then :
21943 enableval=$enable_ld; case "${enableval}" in
21945 default_ld=ld.gold
21947 esac
21951 install_gold_as_default=no
21952 # Check whether --enable-gold was given.
21953 if test "${enable_gold+set}" = set; then :
21954 enableval=$enable_gold; case "${enableval}" in
21955 default)
21956 install_gold_as_default=yes
21958 yes)
21959 if test x${default_ld} != x; then
21960 install_gold_as_default=yes
21966 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21968 esac
21972 # Identify the linker which will work hand-in-glove with the newly
21973 # built GCC, so that we can examine its features. This is the linker
21974 # which will be driven by the driver program.
21976 # If build != host, and we aren't building gas in-tree, we identify a
21977 # build->target linker and hope that it will have the same features
21978 # as the host->target linker we'll be using.
21979 gcc_cv_gld_major_version=
21980 gcc_cv_gld_minor_version=
21981 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21982 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21983 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21985 if test "${gcc_cv_ld+set}" = set; then :
21987 else
21989 if test -x "$DEFAULT_LINKER"; then
21990 gcc_cv_ld="$DEFAULT_LINKER"
21991 elif test $install_gold_as_default = yes \
21992 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21993 && test -f ../gold/Makefile \
21994 && test x$build = x$host; then
21995 gcc_cv_ld=../gold/ld-new$build_exeext
21996 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21997 && test -f ../ld/Makefile \
21998 && test x$build = x$host; then
21999 gcc_cv_ld=../ld/ld-new$build_exeext
22000 elif test -x collect-ld$build_exeext; then
22001 # Build using linker in the current directory.
22002 gcc_cv_ld=./collect-ld$build_exeext
22003 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22004 gcc_cv_ld="$LD_FOR_TARGET"
22005 else
22006 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22007 set dummy $LD_FOR_TARGET; ac_word=$2
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22009 $as_echo_n "checking for $ac_word... " >&6; }
22010 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22011 $as_echo_n "(cached) " >&6
22012 else
22013 case $gcc_cv_ld in
22014 [\\/]* | ?:[\\/]*)
22015 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22019 for as_dir in $PATH
22021 IFS=$as_save_IFS
22022 test -z "$as_dir" && as_dir=.
22023 for ac_exec_ext in '' $ac_executable_extensions; do
22024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22025 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22027 break 2
22029 done
22030 done
22031 IFS=$as_save_IFS
22034 esac
22036 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22037 if test -n "$gcc_cv_ld"; then
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22039 $as_echo "$gcc_cv_ld" >&6; }
22040 else
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22042 $as_echo "no" >&6; }
22049 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22050 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22051 # if the PLUGIN_LD is set ld-new, just have it as ld
22052 # as that is the installed named.
22053 if test x$PLUGIN_LD_SUFFIX = xld-new \
22054 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22055 PLUGIN_LD_SUFFIX=ld
22058 # Check whether --with-plugin-ld was given.
22059 if test "${with_plugin_ld+set}" = set; then :
22060 withval=$with_plugin_ld; if test x"$withval" != x; then
22061 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22062 PLUGIN_LD_SUFFIX="$withval"
22068 cat >>confdefs.h <<_ACEOF
22069 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22070 _ACEOF
22073 # Check to see if we are using gold instead of ld
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22075 $as_echo_n "checking whether we are using gold... " >&6; }
22076 ld_is_gold=no
22077 if test x$gcc_cv_ld != x; then
22078 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22079 | grep "GNU gold" > /dev/null; then
22080 ld_is_gold=yes
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22084 $as_echo "$ld_is_gold" >&6; }
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22087 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22088 # Check to see if default ld is not gold, but gold is
22089 # available and has support for split stack. If gcc was configured
22090 # with gold then no checking is done.
22092 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22094 # For platforms other than powerpc64*, enable as appropriate.
22096 gold_non_default=no
22097 ld_gold=`which ${gcc_cv_ld}.gold`
22098 # Make sure this gold has minimal split stack support
22099 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22100 ld_vers=`$ld_gold --version | sed 1q`
22101 gold_vers=`echo $ld_vers | sed -n \
22102 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22103 case $target in
22104 # check that the gold version contains the complete split stack support
22105 # on powerpc64 big and little endian
22106 powerpc64*-*-*)
22107 case "$gold_vers" in
22108 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22110 *) gold_non_default=no
22112 esac
22114 esac
22116 if test $gold_non_default = yes; then
22118 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22123 $as_echo "$gold_non_default" >&6; }
22125 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22127 case "$ORIGINAL_LD_FOR_TARGET" in
22128 ./collect-ld | ./collect-ld$build_exeext) ;;
22129 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22131 esac
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22134 $as_echo_n "checking what linker to use... " >&6; }
22135 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22136 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22137 # Single tree build which includes ld. We want to prefer it
22138 # over whatever linker top-level may have detected, since
22139 # we'll use what we're building after installation anyway.
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22141 $as_echo "newly built ld" >&6; }
22142 in_tree_ld=yes
22143 in_tree_ld_is_elf=no
22144 if (grep 'EMUL = .*elf' ../ld/Makefile \
22145 || grep 'EMUL = .*linux' ../ld/Makefile \
22146 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22147 in_tree_ld_is_elf=yes
22148 elif test "$ld_is_gold" = yes; then
22149 in_tree_ld_is_elf=yes
22151 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
22153 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22154 if test x$gcc_cv_gld_version != x; then
22155 break
22157 done
22158 case $gcc_cv_gld_version in
22159 VERSION=[0-9]*) ;;
22160 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22161 esac
22162 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22163 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22164 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22165 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22166 else
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22168 $as_echo "$gcc_cv_ld" >&6; }
22169 in_tree_ld=no
22170 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22171 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22172 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22178 # Figure out what nm we will be using.
22179 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22180 if test "${gcc_cv_nm+set}" = set; then :
22182 else
22184 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22185 && test -f ../binutils/Makefile \
22186 && test x$build = x$host; then
22187 gcc_cv_nm=../binutils/nm-new$build_exeext
22188 elif test -x nm$build_exeext; then
22189 gcc_cv_nm=./nm$build_exeext
22190 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22191 gcc_cv_nm="$NM_FOR_TARGET"
22192 else
22193 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22194 set dummy $NM_FOR_TARGET; ac_word=$2
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22196 $as_echo_n "checking for $ac_word... " >&6; }
22197 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22198 $as_echo_n "(cached) " >&6
22199 else
22200 case $gcc_cv_nm in
22201 [\\/]* | ?:[\\/]*)
22202 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22206 for as_dir in $PATH
22208 IFS=$as_save_IFS
22209 test -z "$as_dir" && as_dir=.
22210 for ac_exec_ext in '' $ac_executable_extensions; do
22211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22212 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22214 break 2
22216 done
22217 done
22218 IFS=$as_save_IFS
22221 esac
22223 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22224 if test -n "$gcc_cv_nm"; then
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22226 $as_echo "$gcc_cv_nm" >&6; }
22227 else
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22229 $as_echo "no" >&6; }
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22237 $as_echo_n "checking what nm to use... " >&6; }
22238 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22239 # Single tree build which includes binutils.
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22241 $as_echo "newly built nm" >&6; }
22242 in_tree_nm=yes
22243 else
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22245 $as_echo "$gcc_cv_nm" >&6; }
22246 in_tree_nm=no
22249 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22251 case "$ORIGINAL_NM_FOR_TARGET" in
22252 ./nm | ./nm$build_exeext) ;;
22253 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22255 esac
22258 # Figure out what objdump we will be using.
22259 if test "${gcc_cv_objdump+set}" = set; then :
22261 else
22263 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22264 && test -f ../binutils/Makefile \
22265 && test x$build = x$host; then
22266 # Single tree build which includes binutils.
22267 gcc_cv_objdump=../binutils/objdump$build_exeext
22268 elif test -x objdump$build_exeext; then
22269 gcc_cv_objdump=./objdump$build_exeext
22270 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22271 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22272 else
22273 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22274 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22276 $as_echo_n "checking for $ac_word... " >&6; }
22277 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22279 else
22280 case $gcc_cv_objdump in
22281 [\\/]* | ?:[\\/]*)
22282 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22286 for as_dir in $PATH
22288 IFS=$as_save_IFS
22289 test -z "$as_dir" && as_dir=.
22290 for ac_exec_ext in '' $ac_executable_extensions; do
22291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22292 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22294 break 2
22296 done
22297 done
22298 IFS=$as_save_IFS
22301 esac
22303 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22304 if test -n "$gcc_cv_objdump"; then
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22306 $as_echo "$gcc_cv_objdump" >&6; }
22307 else
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22309 $as_echo "no" >&6; }
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22317 $as_echo_n "checking what objdump to use... " >&6; }
22318 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22319 # Single tree build which includes binutils.
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22321 $as_echo "newly built objdump" >&6; }
22322 elif test x$gcc_cv_objdump = x; then
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22324 $as_echo "not found" >&6; }
22325 else
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22327 $as_echo "$gcc_cv_objdump" >&6; }
22330 # Figure out what readelf we will be using.
22331 if test "${gcc_cv_readelf+set}" = set; then :
22333 else
22335 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22336 && test -f ../binutils/Makefile \
22337 && test x$build = x$host; then
22338 # Single tree build which includes binutils.
22339 gcc_cv_readelf=../binutils/readelf$build_exeext
22340 elif test -x readelf$build_exeext; then
22341 gcc_cv_readelf=./readelf$build_exeext
22342 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22343 gcc_cv_readelf="$READELF_FOR_TARGET"
22344 else
22345 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22346 set dummy $READELF_FOR_TARGET; ac_word=$2
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22348 $as_echo_n "checking for $ac_word... " >&6; }
22349 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22350 $as_echo_n "(cached) " >&6
22351 else
22352 case $gcc_cv_readelf in
22353 [\\/]* | ?:[\\/]*)
22354 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22358 for as_dir in $PATH
22360 IFS=$as_save_IFS
22361 test -z "$as_dir" && as_dir=.
22362 for ac_exec_ext in '' $ac_executable_extensions; do
22363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22364 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22366 break 2
22368 done
22369 done
22370 IFS=$as_save_IFS
22373 esac
22375 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22376 if test -n "$gcc_cv_readelf"; then
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22378 $as_echo "$gcc_cv_readelf" >&6; }
22379 else
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22381 $as_echo "no" >&6; }
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22389 $as_echo_n "checking what readelf to use... " >&6; }
22390 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22391 # Single tree build which includes binutils.
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22393 $as_echo "newly built readelf" >&6; }
22394 elif test x$gcc_cv_readelf = x; then
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22396 $as_echo "not found" >&6; }
22397 else
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22399 $as_echo "$gcc_cv_readelf" >&6; }
22402 # Figure out what assembler alignment features are present.
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22404 $as_echo_n "checking assembler flags... " >&6; }
22405 if test "${gcc_cv_as_flags+set}" = set; then :
22406 $as_echo_n "(cached) " >&6
22407 else
22408 case "$target" in
22409 i[34567]86-*-linux*)
22410 gcc_cv_as_flags=--32
22412 x86_64-*-linux-gnux32)
22413 gcc_cv_as_flags=--x32
22415 x86_64-*-linux*)
22416 gcc_cv_as_flags=--64
22418 powerpc*-*-darwin*)
22419 gcc_cv_as_flags="-arch ppc"
22422 gcc_cv_as_flags=" "
22424 esac
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22427 $as_echo "$gcc_cv_as_flags" >&6; }
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22430 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22431 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22433 else
22434 gcc_cv_as_balign_and_p2align=no
22435 if test $in_tree_gas = yes; then
22436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22437 then gcc_cv_as_balign_and_p2align=yes
22439 elif test x$gcc_cv_as != x; then
22440 $as_echo '.balign 4
22441 .p2align 2' > conftest.s
22442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22448 then
22449 gcc_cv_as_balign_and_p2align=yes
22450 else
22451 echo "configure: failed program was" >&5
22452 cat conftest.s >&5
22454 rm -f conftest.o conftest.s
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22458 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22459 if test $gcc_cv_as_balign_and_p2align = yes; then
22461 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22466 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22467 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22468 $as_echo_n "(cached) " >&6
22469 else
22470 gcc_cv_as_max_skip_p2align=no
22471 if test $in_tree_gas = yes; then
22472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22473 then gcc_cv_as_max_skip_p2align=yes
22475 elif test x$gcc_cv_as != x; then
22476 $as_echo '.p2align 4,,7' > conftest.s
22477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22482 test $ac_status = 0; }; }
22483 then
22484 gcc_cv_as_max_skip_p2align=yes
22485 else
22486 echo "configure: failed program was" >&5
22487 cat conftest.s >&5
22489 rm -f conftest.o conftest.s
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22493 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22494 if test $gcc_cv_as_max_skip_p2align = yes; then
22496 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22501 $as_echo_n "checking assembler for .literal16... " >&6; }
22502 if test "${gcc_cv_as_literal16+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22504 else
22505 gcc_cv_as_literal16=no
22506 if test $in_tree_gas = yes; then
22507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22508 then gcc_cv_as_literal16=yes
22510 elif test x$gcc_cv_as != x; then
22511 $as_echo '.literal16' > conftest.s
22512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22517 test $ac_status = 0; }; }
22518 then
22519 gcc_cv_as_literal16=yes
22520 else
22521 echo "configure: failed program was" >&5
22522 cat conftest.s >&5
22524 rm -f conftest.o conftest.s
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22528 $as_echo "$gcc_cv_as_literal16" >&6; }
22529 if test $gcc_cv_as_literal16 = yes; then
22531 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22536 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22537 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22538 $as_echo_n "(cached) " >&6
22539 else
22540 gcc_cv_as_subsection_m1=no
22541 if test $in_tree_gas = yes; then
22542 if test $in_tree_gas_is_elf = yes \
22543 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22544 then gcc_cv_as_subsection_m1=yes
22546 elif test x$gcc_cv_as != x; then
22547 $as_echo 'conftest_label1: .word 0
22548 .subsection -1
22549 conftest_label2: .word 0
22550 .previous' > conftest.s
22551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22553 (eval $ac_try) 2>&5
22554 ac_status=$?
22555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22556 test $ac_status = 0; }; }
22557 then
22558 if test x$gcc_cv_nm != x; then
22559 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22560 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22561 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22562 then :
22563 else gcc_cv_as_subsection_m1=yes
22565 rm -f conftest.nm1 conftest.nm2
22567 else
22568 echo "configure: failed program was" >&5
22569 cat conftest.s >&5
22571 rm -f conftest.o conftest.s
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22575 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22576 if test $gcc_cv_as_subsection_m1 = yes; then
22578 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22583 $as_echo_n "checking assembler for .weak... " >&6; }
22584 if test "${gcc_cv_as_weak+set}" = set; then :
22585 $as_echo_n "(cached) " >&6
22586 else
22587 gcc_cv_as_weak=no
22588 if test $in_tree_gas = yes; then
22589 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22590 then gcc_cv_as_weak=yes
22592 elif test x$gcc_cv_as != x; then
22593 $as_echo ' .weak foobar' > conftest.s
22594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22596 (eval $ac_try) 2>&5
22597 ac_status=$?
22598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22599 test $ac_status = 0; }; }
22600 then
22601 gcc_cv_as_weak=yes
22602 else
22603 echo "configure: failed program was" >&5
22604 cat conftest.s >&5
22606 rm -f conftest.o conftest.s
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22610 $as_echo "$gcc_cv_as_weak" >&6; }
22611 if test $gcc_cv_as_weak = yes; then
22613 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22618 $as_echo_n "checking assembler for .weakref... " >&6; }
22619 if test "${gcc_cv_as_weakref+set}" = set; then :
22620 $as_echo_n "(cached) " >&6
22621 else
22622 gcc_cv_as_weakref=no
22623 if test $in_tree_gas = yes; then
22624 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22625 then gcc_cv_as_weakref=yes
22627 elif test x$gcc_cv_as != x; then
22628 $as_echo ' .weakref foobar, barfnot' > conftest.s
22629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22631 (eval $ac_try) 2>&5
22632 ac_status=$?
22633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22634 test $ac_status = 0; }; }
22635 then
22636 gcc_cv_as_weakref=yes
22637 else
22638 echo "configure: failed program was" >&5
22639 cat conftest.s >&5
22641 rm -f conftest.o conftest.s
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22645 $as_echo "$gcc_cv_as_weakref" >&6; }
22646 if test $gcc_cv_as_weakref = yes; then
22648 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22653 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22654 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22655 $as_echo_n "(cached) " >&6
22656 else
22657 gcc_cv_as_nsubspa_comdat=no
22658 if test $in_tree_gas = yes; then
22659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22660 then gcc_cv_as_nsubspa_comdat=yes
22662 elif test x$gcc_cv_as != x; then
22663 $as_echo ' .SPACE $TEXT$
22664 .NSUBSPA $CODE$,COMDAT' > conftest.s
22665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22667 (eval $ac_try) 2>&5
22668 ac_status=$?
22669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22670 test $ac_status = 0; }; }
22671 then
22672 gcc_cv_as_nsubspa_comdat=yes
22673 else
22674 echo "configure: failed program was" >&5
22675 cat conftest.s >&5
22677 rm -f conftest.o conftest.s
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22681 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22682 if test $gcc_cv_as_nsubspa_comdat = yes; then
22684 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22688 # .hidden needs to be supported in both the assembler and the linker,
22689 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22690 # This is irritatingly difficult to feature test for; we have to check the
22691 # date string after the version number. If we've got an in-tree
22692 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22693 # to be safe.
22694 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22696 $as_echo_n "checking assembler for .hidden... " >&6; }
22697 if test "${gcc_cv_as_hidden+set}" = set; then :
22698 $as_echo_n "(cached) " >&6
22699 else
22700 gcc_cv_as_hidden=no
22701 if test $in_tree_gas = yes; then
22702 if test $in_tree_gas_is_elf = yes \
22703 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22704 then gcc_cv_as_hidden=yes
22706 elif test x$gcc_cv_as != x; then
22707 $as_echo ' .hidden foobar
22708 foobar:' > conftest.s
22709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22711 (eval $ac_try) 2>&5
22712 ac_status=$?
22713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22714 test $ac_status = 0; }; }
22715 then
22716 gcc_cv_as_hidden=yes
22717 else
22718 echo "configure: failed program was" >&5
22719 cat conftest.s >&5
22721 rm -f conftest.o conftest.s
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22725 $as_echo "$gcc_cv_as_hidden" >&6; }
22727 case "${target}" in
22728 *-*-darwin*)
22729 # Darwin as has some visibility support, though with a different syntax.
22730 gcc_cv_as_hidden=yes
22732 esac
22734 # gnu_indirect_function type is an extension proposed at
22735 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22736 # selection of function implementation
22737 # Check whether --enable-gnu-indirect-function was given.
22738 if test "${enable_gnu_indirect_function+set}" = set; then :
22739 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22740 yes | no) ;;
22741 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22742 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22743 esac
22744 else
22745 enable_gnu_indirect_function="$default_gnu_indirect_function"
22749 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22751 cat >>confdefs.h <<_ACEOF
22752 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22753 _ACEOF
22757 if test $in_tree_ld != yes ; then
22758 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22759 if echo "$ld_ver" | grep GNU > /dev/null; then
22760 if test x"$ld_is_gold" = xyes; then
22761 # GNU gold --version looks like this:
22763 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22765 # We extract the binutils version which is more familiar and specific
22766 # than the gold version.
22767 ld_vers=`echo $ld_ver | sed -n \
22768 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22769 else
22770 # GNU ld --version looks like this:
22772 # GNU ld (GNU Binutils) 2.21.51.20110225
22773 ld_vers=`echo $ld_ver | sed -n \
22774 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22776 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'`
22777 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22778 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22779 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22780 else
22781 case "${target}" in
22782 *-*-solaris2*)
22783 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22784 # format.
22786 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22787 # /usr/ccs/bin/ld has been configured.
22788 ld_ver=`$gcc_cv_ld -V 2>&1`
22789 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22790 ld_vers=`echo $ld_ver | sed -n \
22791 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22792 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22793 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22796 esac
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22801 $as_echo_n "checking linker for .hidden support... " >&6; }
22802 if test "${gcc_cv_ld_hidden+set}" = set; then :
22803 $as_echo_n "(cached) " >&6
22804 else
22805 if test $in_tree_ld = yes ; then
22806 gcc_cv_ld_hidden=no
22807 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 \
22808 && test $in_tree_ld_is_elf = yes; then
22809 gcc_cv_ld_hidden=yes
22811 else
22812 gcc_cv_ld_hidden=yes
22813 if test x"$ld_is_gold" = xyes; then
22815 elif echo "$ld_ver" | grep GNU > /dev/null; then
22816 case "${target}" in
22817 mmix-knuth-mmixware)
22818 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22819 gcc_cv_ld_hidden=no
22821 esac
22822 if test 0"$ld_date" -lt 20020404; then
22823 if test -n "$ld_date"; then
22824 # If there was date string, but was earlier than 2002-04-04, fail
22825 gcc_cv_ld_hidden=no
22826 elif test -z "$ld_vers"; then
22827 # If there was no date string nor ld version number, something is wrong
22828 gcc_cv_ld_hidden=no
22829 else
22830 test -z "$ld_vers_patch" && ld_vers_patch=0
22831 if test "$ld_vers_major" -lt 2; then
22832 gcc_cv_ld_hidden=no
22833 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22834 gcc_cv_ld_hidden="no"
22835 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22836 gcc_cv_ld_hidden=no
22840 else
22841 case "${target}" in
22842 *-*-darwin*)
22843 # Darwin ld has some visibility support.
22844 gcc_cv_ld_hidden=yes
22846 hppa64*-*-hpux* | ia64*-*-hpux*)
22847 gcc_cv_ld_hidden=yes
22849 *-*-solaris2.1[0-9]*)
22850 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22851 # .symbolic was only added in Solaris 9 12/02.
22852 gcc_cv_ld_hidden=yes
22855 gcc_cv_ld_hidden=no
22857 esac
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22862 $as_echo "$gcc_cv_ld_hidden" >&6; }
22863 libgcc_visibility=no
22866 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22867 libgcc_visibility=yes
22869 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22874 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22875 gcc_cv_ld_ro_rw_mix=unknown
22876 if test $in_tree_ld = yes ; then
22877 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 \
22878 && test $in_tree_ld_is_elf = yes; then
22879 gcc_cv_ld_ro_rw_mix=read-write
22881 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22882 echo '.section myfoosect, "a"' > conftest1.s
22883 echo '.section myfoosect, "aw"' > conftest2.s
22884 echo '.byte 1' >> conftest2.s
22885 echo '.section myfoosect, "a"' > conftest3.s
22886 echo '.byte 0' >> conftest3.s
22887 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22888 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22889 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22890 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22891 conftest2.o conftest3.o > /dev/null 2>&1; then
22892 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22893 | sed -e '/myfoosect/!d' -e N`
22894 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22895 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22896 gcc_cv_ld_ro_rw_mix=read-only
22897 else
22898 gcc_cv_ld_ro_rw_mix=read-write
22902 rm -f conftest.* conftest[123].*
22904 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22906 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22910 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22912 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22913 case "${target}" in
22914 *-*-solaris2*)
22916 # Solaris 2 ld -V output looks like this for a regular version:
22918 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22920 # but test versions add stuff at the end:
22922 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22924 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22925 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22926 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22927 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22928 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22929 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22932 esac
22935 # Check whether --enable-initfini-array was given.
22936 if test "${enable_initfini_array+set}" = set; then :
22937 enableval=$enable_initfini_array;
22938 else
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22941 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22942 if test "${gcc_cv_initfini_array+set}" = set; then :
22943 $as_echo_n "(cached) " >&6
22944 else
22945 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22946 case "${target}" in
22947 ia64-*)
22948 if test "$cross_compiling" = yes; then :
22949 gcc_cv_initfini_array=no
22950 else
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22954 #ifndef __ELF__
22955 #error Not an ELF OS
22956 #endif
22957 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22958 if it can be used. */
22959 static int x = -1;
22960 int main (void) { return x; }
22961 int foo (void) { x = 0; }
22962 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22964 _ACEOF
22965 if ac_fn_cxx_try_run "$LINENO"; then :
22966 gcc_cv_initfini_array=yes
22967 else
22968 gcc_cv_initfini_array=no
22970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22971 conftest.$ac_objext conftest.beam conftest.$ac_ext
22975 gcc_cv_initfini_array=no
22976 if test $in_tree_ld = yes ; then
22977 if test "$gcc_cv_gld_major_version" -eq 2 \
22978 -a "$gcc_cv_gld_minor_version" -ge 22 \
22979 -o "$gcc_cv_gld_major_version" -gt 2 \
22980 && test $in_tree_ld_is_elf = yes; then
22981 gcc_cv_initfini_array=yes
22983 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22984 case $target:$gas in
22985 *:yes)
22986 sh_flags='"a"'
22987 sh_type='%progbits'
22989 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22990 sh_flags='"a"'
22991 sh_type='@progbits'
22993 sparc*-*-solaris2*:no)
22994 sh_flags='#alloc'
22995 sh_type='#progbits'
22996 sh_quote='"'
22998 esac
22999 case "$target:$gnu_ld" in
23000 *:yes)
23001 cat > conftest.s <<EOF
23002 .section .dtors,$sh_flags,$sh_type
23003 .balign 4
23004 .byte 'A', 'A', 'A', 'A'
23005 .section .ctors,$sh_flags,$sh_type
23006 .balign 4
23007 .byte 'B', 'B', 'B', 'B'
23008 .section .fini_array.65530,$sh_flags,$sh_type
23009 .balign 4
23010 .byte 'C', 'C', 'C', 'C'
23011 .section .init_array.65530,$sh_flags,$sh_type
23012 .balign 4
23013 .byte 'D', 'D', 'D', 'D'
23014 .section .dtors.64528,$sh_flags,$sh_type
23015 .balign 4
23016 .byte 'E', 'E', 'E', 'E'
23017 .section .ctors.64528,$sh_flags,$sh_type
23018 .balign 4
23019 .byte 'F', 'F', 'F', 'F'
23020 .section .fini_array.01005,$sh_flags,$sh_type
23021 .balign 4
23022 .byte 'G', 'G', 'G', 'G'
23023 .section .init_array.01005,$sh_flags,$sh_type
23024 .balign 4
23025 .byte 'H', 'H', 'H', 'H'
23026 .text
23027 .globl _start
23028 _start:
23030 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23031 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23032 && $gcc_cv_objdump -s -j .init_array conftest \
23033 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23034 && $gcc_cv_objdump -s -j .fini_array conftest \
23035 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23036 gcc_cv_initfini_array=yes
23039 *-*-solaris2*:no)
23040 # When Solaris ld added constructor priority support, it was
23041 # decided to only handle .init_array.N/.fini_array.N since
23042 # there was no need for backwards compatibility with
23043 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23044 # sections with correct execution order resp. to
23045 # .init_array/.fini_array, while gld merges them into
23046 # .init_array/.fini_array.
23047 cat > conftest.s <<EOF
23048 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23049 .align 4
23050 .byte 'C', 'C', 'C', 'C'
23051 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23052 .align 4
23053 .byte 'D', 'D', 'D', 'D'
23054 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23055 .align 4
23056 .byte 'G', 'G', 'G', 'G'
23057 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23058 .align 4
23059 .byte 'H', 'H', 'H', 'H'
23060 .text
23061 .globl _start
23062 _start:
23064 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23065 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23066 && $gcc_cv_objdump -s -j .init_array conftest \
23067 | grep HHHHDDDD > /dev/null 2>&1 \
23068 && $gcc_cv_objdump -s -j .fini_array conftest \
23069 | grep GGGGCCCC > /dev/null 2>&1; then
23070 gcc_cv_initfini_array=yes
23073 esac
23074 rm -f conftest conftest.*
23076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077 /* end confdefs.h. */
23079 #ifndef __ELF__
23080 # error Not an ELF OS
23081 #endif
23082 #include <stdlib.h>
23083 #if defined __GLIBC_PREREQ
23084 # if __GLIBC_PREREQ (2, 4)
23085 # else
23086 # error GLIBC 2.4 required
23087 # endif
23088 #else
23089 # if defined __sun__ && defined __svr4__
23090 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23091 # else
23092 # error The C library not known to support .init_array/.fini_array
23093 # endif
23094 #endif
23096 _ACEOF
23097 if ac_fn_cxx_try_cpp "$LINENO"; then :
23099 else
23100 gcc_cv_initfini_array=no
23102 rm -f conftest.err conftest.$ac_ext;;
23103 esac
23104 else
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23106 $as_echo_n "checking cross compile... guessing... " >&6; }
23107 gcc_cv_initfini_array=no
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23111 $as_echo "$gcc_cv_initfini_array" >&6; }
23112 enable_initfini_array=$gcc_cv_initfini_array
23117 cat >>confdefs.h <<_ACEOF
23118 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23119 _ACEOF
23123 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23125 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23126 if test "${gcc_cv_as_leb128+set}" = set; then :
23127 $as_echo_n "(cached) " >&6
23128 else
23129 gcc_cv_as_leb128=no
23130 if test $in_tree_gas = yes; then
23131 if test $in_tree_gas_is_elf = yes \
23132 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23133 then gcc_cv_as_leb128=yes
23135 elif test x$gcc_cv_as != x; then
23136 $as_echo ' .data
23137 .uleb128 L2 - L1
23139 .uleb128 1280
23140 .sleb128 -1010
23141 L2:' > conftest.s
23142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; }
23148 then
23149 # GAS versions before 2.11 do not support uleb128,
23150 # despite appearing to.
23151 # ??? There exists an elf-specific test that will crash
23152 # the assembler. Perhaps it's better to figure out whether
23153 # arbitrary sections are supported and try the test.
23154 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23155 if echo "$as_ver" | grep GNU > /dev/null; then
23156 as_vers=`echo $as_ver | sed -n \
23157 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23158 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23159 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23160 if test $as_major -eq 2 && test $as_minor -lt 11
23161 then :
23162 else gcc_cv_as_leb128=yes
23165 else
23166 echo "configure: failed program was" >&5
23167 cat conftest.s >&5
23169 rm -f conftest.o conftest.s
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23173 $as_echo "$gcc_cv_as_leb128" >&6; }
23174 if test $gcc_cv_as_leb128 = yes; then
23176 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23180 # Check if we have assembler support for unwind directives.
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23182 $as_echo_n "checking assembler for cfi directives... " >&6; }
23183 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23185 else
23186 gcc_cv_as_cfi_directive=no
23187 if test x$gcc_cv_as != x; then
23188 $as_echo ' .text
23189 .cfi_startproc
23190 .cfi_offset 0, 0
23191 .cfi_same_value 1
23192 .cfi_def_cfa 1, 2
23193 .cfi_escape 1, 2, 3, 4, 5
23194 .cfi_endproc' > conftest.s
23195 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23200 test $ac_status = 0; }; }
23201 then
23202 case "$target" in
23203 *-*-solaris*)
23204 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23205 # read-only and read-write sections, we need to make sure that the
23206 # assembler used emits read-write .eh_frame sections.
23207 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23208 if test "x$gcc_cv_objdump" != x; then
23209 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23210 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23211 gcc_cv_as_cfi_directive=no
23212 else
23213 case "$target" in
23214 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23215 # On Solaris/x86, make sure that GCC and assembler agree on using
23216 # read-only .eh_frame sections for 64-bit.
23217 if test x$gas = xyes; then
23218 as_ix86_64_opt="--64"
23219 else
23220 as_ix86_64_opt="-xarch=amd64"
23222 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23223 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23224 sed -e /.eh_frame/!d -e N | \
23225 grep READONLY > /dev/null; then
23226 gcc_cv_as_cfi_directive=yes
23227 else
23228 gcc_cv_as_cfi_directive=no
23232 gcc_cv_as_cfi_directive=yes
23234 esac
23236 else
23237 # no objdump, err on the side of caution
23238 gcc_cv_as_cfi_directive=no
23240 else
23241 gcc_cv_as_cfi_directive=yes
23244 *-*-*)
23245 gcc_cv_as_cfi_directive=yes
23247 esac
23248 else
23249 echo "configure: failed program was" >&5
23250 cat conftest.s >&5
23252 rm -f conftest.o conftest.s
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23256 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23258 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23260 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23261 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23262 $as_echo_n "(cached) " >&6
23263 else
23264 gcc_cv_as_cfi_advance_working=no
23265 if test x$gcc_cv_as != x; then
23266 $as_echo ' .text
23267 .cfi_startproc
23268 .cfi_adjust_cfa_offset 64
23269 .skip 75040, 0
23270 .cfi_adjust_cfa_offset 128
23271 .cfi_endproc' > conftest.s
23272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23277 test $ac_status = 0; }; }
23278 then
23280 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23281 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23282 gcc_cv_as_cfi_advance_working=yes
23285 else
23286 echo "configure: failed program was" >&5
23287 cat conftest.s >&5
23289 rm -f conftest.o conftest.s
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23293 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23295 else
23296 # no objdump, err on the side of caution
23297 gcc_cv_as_cfi_advance_working=no
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23303 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23304 _ACEOF
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23309 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23310 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23311 $as_echo_n "(cached) " >&6
23312 else
23313 gcc_cv_as_cfi_personality_directive=no
23314 if test x$gcc_cv_as != x; then
23315 $as_echo ' .text
23316 .cfi_startproc
23317 .cfi_personality 0, symbol
23318 .cfi_endproc' > conftest.s
23319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23321 (eval $ac_try) 2>&5
23322 ac_status=$?
23323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23324 test $ac_status = 0; }; }
23325 then
23326 gcc_cv_as_cfi_personality_directive=yes
23327 else
23328 echo "configure: failed program was" >&5
23329 cat conftest.s >&5
23331 rm -f conftest.o conftest.s
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23335 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23338 cat >>confdefs.h <<_ACEOF
23339 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23340 then echo 1; else echo 0; fi`
23341 _ACEOF
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23345 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23346 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23347 $as_echo_n "(cached) " >&6
23348 else
23349 gcc_cv_as_cfi_sections_directive=no
23350 if test x$gcc_cv_as != x; then
23351 $as_echo ' .text
23352 .cfi_sections .debug_frame, .eh_frame
23353 .cfi_startproc
23354 .cfi_endproc' > conftest.s
23355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23357 (eval $ac_try) 2>&5
23358 ac_status=$?
23359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23360 test $ac_status = 0; }; }
23361 then
23362 case $target_os in
23363 win32 | pe | cygwin* | mingw32*)
23364 # Need to check that we generated the correct relocation for the
23365 # .debug_frame section. This was fixed for binutils 2.21.
23366 gcc_cv_as_cfi_sections_directive=no
23367 if test "x$gcc_cv_objdump" != x; then
23368 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23369 grep secrel > /dev/null; then
23370 gcc_cv_as_cfi_sections_directive=yes
23375 gcc_cv_as_cfi_sections_directive=yes
23377 esac
23378 else
23379 echo "configure: failed program was" >&5
23380 cat conftest.s >&5
23382 rm -f conftest.o conftest.s
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23386 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23390 cat >>confdefs.h <<_ACEOF
23391 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23392 then echo 1; else echo 0; fi`
23393 _ACEOF
23396 # GAS versions up to and including 2.11.0 may mis-optimize
23397 # .eh_frame data.
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23399 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23400 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23401 $as_echo_n "(cached) " >&6
23402 else
23403 gcc_cv_as_eh_frame=no
23404 if test $in_tree_gas = yes; then
23405 if test $in_tree_gas_is_elf = yes \
23406 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23407 then gcc_cv_as_eh_frame=yes
23409 elif test x$gcc_cv_as != x; then
23410 $as_echo ' .text
23411 .LFB1:
23412 .4byte 0
23413 .L1:
23414 .4byte 0
23415 .LFE1:
23416 .section .eh_frame,"aw",@progbits
23417 __FRAME_BEGIN__:
23418 .4byte .LECIE1-.LSCIE1
23419 .LSCIE1:
23420 .4byte 0x0
23421 .byte 0x1
23422 .ascii "z\0"
23423 .byte 0x1
23424 .byte 0x78
23425 .byte 0x1a
23426 .byte 0x0
23427 .byte 0x4
23428 .4byte 1
23429 .p2align 1
23430 .LECIE1:
23431 .LSFDE1:
23432 .4byte .LEFDE1-.LASFDE1
23433 .LASFDE1:
23434 .4byte .LASFDE1-__FRAME_BEGIN__
23435 .4byte .LFB1
23436 .4byte .LFE1-.LFB1
23437 .byte 0x4
23438 .4byte .LFE1-.LFB1
23439 .byte 0x4
23440 .4byte .L1-.LFB1
23441 .LEFDE1:' > conftest.s
23442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23444 (eval $ac_try) 2>&5
23445 ac_status=$?
23446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23447 test $ac_status = 0; }; }
23448 then
23449 cat > conftest.lit <<EOF
23450 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23451 0010 01000000 12000000 18000000 00000000 ................
23452 0020 08000000 04080000 0044 .........D
23454 cat > conftest.big <<EOF
23455 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23456 0010 00000001 00000012 00000018 00000000 ................
23457 0020 00000008 04000000 0844 .........D
23459 # If the assembler didn't choke, and we can objdump,
23460 # and we got the correct data, then succeed.
23461 # The text in the here-document typically retains its unix-style line
23462 # endings, while the output of objdump will use host line endings.
23463 # Therefore, use diff -b for the comparisons.
23464 if test x$gcc_cv_objdump != x \
23465 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23466 | tail -3 > conftest.got \
23467 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23468 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23469 then
23470 gcc_cv_as_eh_frame=yes
23471 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23476 test $ac_status = 0; }; }; then
23477 gcc_cv_as_eh_frame=buggy
23478 else
23479 # Uh oh, what do we do now?
23480 gcc_cv_as_eh_frame=no
23482 else
23483 echo "configure: failed program was" >&5
23484 cat conftest.s >&5
23486 rm -f conftest.o conftest.s
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23490 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23493 if test $gcc_cv_as_eh_frame = buggy; then
23495 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23500 $as_echo_n "checking assembler for section merging support... " >&6; }
23501 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23502 $as_echo_n "(cached) " >&6
23503 else
23504 gcc_cv_as_shf_merge=no
23505 if test $in_tree_gas = yes; then
23506 if test $in_tree_gas_is_elf = yes \
23507 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23508 then gcc_cv_as_shf_merge=yes
23510 elif test x$gcc_cv_as != x; then
23511 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23517 test $ac_status = 0; }; }
23518 then
23519 gcc_cv_as_shf_merge=yes
23520 else
23521 echo "configure: failed program was" >&5
23522 cat conftest.s >&5
23524 rm -f conftest.o conftest.s
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23528 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23530 if test $gcc_cv_as_shf_merge = no; then
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23532 $as_echo_n "checking assembler for section merging support... " >&6; }
23533 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 gcc_cv_as_shf_merge=no
23537 if test $in_tree_gas = yes; then
23538 if test $in_tree_gas_is_elf = yes \
23539 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23540 then gcc_cv_as_shf_merge=yes
23542 elif test x$gcc_cv_as != x; then
23543 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23549 test $ac_status = 0; }; }
23550 then
23551 gcc_cv_as_shf_merge=yes
23552 else
23553 echo "configure: failed program was" >&5
23554 cat conftest.s >&5
23556 rm -f conftest.o conftest.s
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23560 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23564 cat >>confdefs.h <<_ACEOF
23565 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23566 _ACEOF
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23570 $as_echo_n "checking assembler for stabs directive... " >&6; }
23571 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23572 $as_echo_n "(cached) " >&6
23573 else
23574 gcc_cv_as_stabs_directive=no
23575 if test x$gcc_cv_as != x; then
23576 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23579 (eval $ac_try) 2>&5
23580 ac_status=$?
23581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23582 test $ac_status = 0; }; }
23583 then
23584 gcc_cv_as_stabs_directive=yes
23585 else
23586 echo "configure: failed program was" >&5
23587 cat conftest.s >&5
23589 rm -f conftest.o conftest.s
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23593 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23594 if test $gcc_cv_as_stabs_directive = yes; then
23596 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23601 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23602 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23603 $as_echo_n "(cached) " >&6
23604 else
23605 gcc_cv_as_comdat_group=no
23606 if test $in_tree_gas = yes; then
23607 if test $in_tree_gas_is_elf = yes \
23608 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23609 then gcc_cv_as_comdat_group=yes
23611 elif test x$gcc_cv_as != x; then
23612 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23615 (eval $ac_try) 2>&5
23616 ac_status=$?
23617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23618 test $ac_status = 0; }; }
23619 then
23620 gcc_cv_as_comdat_group=yes
23621 else
23622 echo "configure: failed program was" >&5
23623 cat conftest.s >&5
23625 rm -f conftest.o conftest.s
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23629 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23631 if test $gcc_cv_as_comdat_group = yes; then
23632 gcc_cv_as_comdat_group_percent=no
23633 gcc_cv_as_comdat_group_group=no
23634 else
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23636 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23637 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23638 $as_echo_n "(cached) " >&6
23639 else
23640 gcc_cv_as_comdat_group_percent=no
23641 if test $in_tree_gas = yes; then
23642 if test $in_tree_gas_is_elf = yes \
23643 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23644 then gcc_cv_as_comdat_group_percent=yes
23646 elif test x$gcc_cv_as != x; then
23647 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23650 (eval $ac_try) 2>&5
23651 ac_status=$?
23652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23653 test $ac_status = 0; }; }
23654 then
23655 gcc_cv_as_comdat_group_percent=yes
23656 else
23657 echo "configure: failed program was" >&5
23658 cat conftest.s >&5
23660 rm -f conftest.o conftest.s
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23664 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23666 if test $gcc_cv_as_comdat_group_percent = yes; then
23667 gcc_cv_as_comdat_group_group=no
23668 else
23669 case "${target}" in
23670 # Sun as uses a completely different syntax.
23671 *-*-solaris2*)
23672 case "${target}" in
23673 sparc*-*-solaris2*)
23674 conftest_s='
23675 .group foo,".text%foo",#comdat
23676 .section ".text%foo", #alloc,#execinstr,#progbits
23677 .globl foo
23678 foo:
23681 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23682 conftest_s='
23683 .group foo,.text%foo,#comdat
23684 .section .text%foo, "ax", @progbits
23685 .globl foo
23686 foo:
23689 esac
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23691 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23692 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23693 $as_echo_n "(cached) " >&6
23694 else
23695 gcc_cv_as_comdat_group_group=no
23696 if test x$gcc_cv_as != x; then
23697 $as_echo "$conftest_s" > conftest.s
23698 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23700 (eval $ac_try) 2>&5
23701 ac_status=$?
23702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23703 test $ac_status = 0; }; }
23704 then
23705 gcc_cv_as_comdat_group_group=yes
23706 else
23707 echo "configure: failed program was" >&5
23708 cat conftest.s >&5
23710 rm -f conftest.o conftest.s
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23714 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23717 esac
23718 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23719 gcc_cv_as_comdat_group_group=no
23723 if test x"$ld_is_gold" = xyes; then
23724 comdat_group=yes
23725 elif test $in_tree_ld = yes ; then
23726 comdat_group=no
23727 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 \
23728 && test $in_tree_ld_is_elf = yes; then
23729 comdat_group=yes
23731 elif echo "$ld_ver" | grep GNU > /dev/null; then
23732 comdat_group=yes
23733 if test 0"$ld_date" -lt 20050308; then
23734 if test -n "$ld_date"; then
23735 # If there was date string, but was earlier than 2005-03-08, fail
23736 comdat_group=no
23737 elif test "$ld_vers_major" -lt 2; then
23738 comdat_group=no
23739 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23740 comdat_group=no
23743 else
23744 case "${target}" in
23745 *-*-solaris2.1[1-9]*)
23746 comdat_group=no
23747 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23748 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23749 # version 1.688.
23751 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23752 # least ld version 1.2267.
23753 if test "$ld_vers_major" -gt 1; then
23754 comdat_group=yes
23755 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23756 comdat_group=yes
23757 elif test "$ld_vers_minor" -ge 2267; then
23758 comdat_group=yes
23762 # Assume linkers other than GNU ld don't support COMDAT group.
23763 comdat_group=no
23765 esac
23767 # Allow overriding the automatic COMDAT group tests above.
23768 # Check whether --enable-comdat was given.
23769 if test "${enable_comdat+set}" = set; then :
23770 enableval=$enable_comdat; comdat_group="$enable_comdat"
23773 if test $comdat_group = no; then
23774 gcc_cv_as_comdat_group=no
23775 gcc_cv_as_comdat_group_percent=no
23776 gcc_cv_as_comdat_group_group=no
23779 cat >>confdefs.h <<_ACEOF
23780 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23781 || test $gcc_cv_as_comdat_group_percent = yes \
23782 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23783 _ACEOF
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23787 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23788 if test "${gcc_cv_as_discriminator+set}" = set; then :
23789 $as_echo_n "(cached) " >&6
23790 else
23791 gcc_cv_as_discriminator=no
23792 if test $in_tree_gas = yes; then
23793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23794 then gcc_cv_as_discriminator=yes
23796 elif test x$gcc_cv_as != x; then
23797 $as_echo ' .text
23798 .file 1 "conf.c"
23799 .loc 1 1 0 discriminator 1' > conftest.s
23800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23802 (eval $ac_try) 2>&5
23803 ac_status=$?
23804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23805 test $ac_status = 0; }; }
23806 then
23807 gcc_cv_as_discriminator=yes
23808 else
23809 echo "configure: failed program was" >&5
23810 cat conftest.s >&5
23812 rm -f conftest.o conftest.s
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23816 $as_echo "$gcc_cv_as_discriminator" >&6; }
23817 if test $gcc_cv_as_discriminator = yes; then
23819 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23823 # Thread-local storage - the check is heavily parameterized.
23824 conftest_s=
23825 tls_first_major=
23826 tls_first_minor=
23827 tls_as_opt=
23828 case "$target" in
23829 alpha*-*-*)
23830 conftest_s='
23831 .section ".tdata","awT",@progbits
23832 foo: .long 25
23833 .text
23834 ldq $27,__tls_get_addr($29) !literal!1
23835 lda $16,foo($29) !tlsgd!1
23836 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23837 ldq $27,__tls_get_addr($29) !literal!2
23838 lda $16,foo($29) !tlsldm!2
23839 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23840 ldq $1,foo($29) !gotdtprel
23841 ldah $2,foo($29) !dtprelhi
23842 lda $3,foo($2) !dtprello
23843 lda $4,foo($29) !dtprel
23844 ldq $1,foo($29) !gottprel
23845 ldah $2,foo($29) !tprelhi
23846 lda $3,foo($2) !tprello
23847 lda $4,foo($29) !tprel'
23848 tls_first_major=2
23849 tls_first_minor=13
23850 tls_as_opt=--fatal-warnings
23852 cris-*-*|crisv32-*-*)
23853 conftest_s='
23854 .section ".tdata","awT",@progbits
23855 x: .long 25
23856 .text
23857 move.d x:IE,$r10
23858 nop'
23859 tls_first_major=2
23860 tls_first_minor=20
23861 tls_as_opt=--fatal-warnings
23863 frv*-*-*)
23864 conftest_s='
23865 .section ".tdata","awT",@progbits
23866 x: .long 25
23867 .text
23868 call #gettlsoff(x)'
23869 tls_first_major=2
23870 tls_first_minor=14
23872 hppa*-*-linux*)
23873 conftest_s='
23874 t1: .reg %r20
23875 t2: .reg %r21
23876 gp: .reg %r19
23877 .section ".tdata","awT",@progbits
23878 foo: .long 25
23879 .text
23880 .align 4
23881 addil LT%foo-$tls_gdidx$,gp
23882 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23883 b __tls_get_addr
23885 addil LT%foo-$tls_ldidx$,gp
23886 b __tls_get_addr
23887 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23888 addil LR%foo-$tls_dtpoff$,%ret0
23889 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23890 mfctl %cr27,%t1
23891 addil LT%foo-$tls_ieoff$,gp
23892 ldw RT%foo-$tls_ieoff$(%r1),%t2
23893 add %t1,%t2,%t3
23894 mfctl %cr27,%t1
23895 addil LR%foo-$tls_leoff$,%t1
23896 ldo RR%foo-$tls_leoff$(%r1),%t2'
23897 tls_first_major=2
23898 tls_first_minor=15
23899 tls_as_opt=--fatal-warnings
23901 arm*-*-*)
23902 conftest_s='
23903 .section ".tdata","awT",%progbits
23904 foo: .long 25
23905 .text
23906 .word foo(gottpoff)
23907 .word foo(tpoff)
23908 .word foo(tlsgd)
23909 .word foo(tlsldm)
23910 .word foo(tlsldo)'
23911 tls_first_major=2
23912 tls_first_minor=17
23914 i[34567]86-*-* | x86_64-*-*)
23915 case "$target" in
23916 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23917 on_solaris=yes
23920 on_solaris=no
23922 esac
23923 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23924 conftest_s='
23925 .section .tdata,"awt",@progbits'
23926 tls_first_major=0
23927 tls_first_minor=0
23928 tls_section_flag=t
23930 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23932 else
23933 conftest_s='
23934 .section ".tdata","awT",@progbits'
23935 tls_first_major=2
23936 tls_first_minor=14
23937 tls_section_flag=T
23938 tls_as_opt="--fatal-warnings"
23940 case "$target" in
23941 i[34567]86-*-*)
23942 conftest_s="$conftest_s
23943 foo: .long 25
23944 .text
23945 movl %gs:0, %eax
23946 leal foo@tlsgd(,%ebx,1), %eax
23947 leal foo@tlsldm(%ebx), %eax
23948 leal foo@dtpoff(%eax), %edx
23949 movl foo@gottpoff(%ebx), %eax
23950 subl foo@gottpoff(%ebx), %eax
23951 addl foo@gotntpoff(%ebx), %eax
23952 movl foo@indntpoff, %eax
23953 movl \$foo@tpoff, %eax
23954 subl \$foo@tpoff, %eax
23955 leal foo@ntpoff(%ecx), %eax"
23957 x86_64-*-*)
23958 if test x$on_solaris = xyes; then
23959 case $gas_flag in
23960 yes) tls_as_opt="$tls_as_opt --64" ;;
23961 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23962 esac
23964 conftest_s="$conftest_s
23965 foo: .long 25
23966 .text
23967 movq %fs:0, %rax
23968 leaq foo@tlsgd(%rip), %rdi
23969 leaq foo@tlsld(%rip), %rdi
23970 leaq foo@dtpoff(%rax), %rdx
23971 movq foo@gottpoff(%rip), %rax
23972 movq \$foo@tpoff, %rax"
23974 esac
23976 ia64-*-*)
23977 conftest_s='
23978 .section ".tdata","awT",@progbits
23979 foo: data8 25
23980 .text
23981 addl r16 = @ltoff(@dtpmod(foo#)), gp
23982 addl r17 = @ltoff(@dtprel(foo#)), gp
23983 addl r18 = @ltoff(@tprel(foo#)), gp
23984 addl r19 = @dtprel(foo#), gp
23985 adds r21 = @dtprel(foo#), r13
23986 movl r23 = @dtprel(foo#)
23987 addl r20 = @tprel(foo#), gp
23988 adds r22 = @tprel(foo#), r13
23989 movl r24 = @tprel(foo#)'
23990 tls_first_major=2
23991 tls_first_minor=13
23992 tls_as_opt=--fatal-warnings
23994 microblaze*-*-*)
23995 conftest_s='
23996 .section .tdata,"awT",@progbits
23998 .word 2
23999 .text
24000 addik r5,r20,x@TLSGD
24001 addik r5,r20,x@TLSLDM'
24002 tls_first_major=2
24003 tls_first_minor=20
24004 tls_as_opt='--fatal-warnings'
24006 mips*-*-*)
24007 conftest_s='
24008 .section .tdata,"awT",@progbits
24010 .word 2
24011 .text
24012 addiu $4, $28, %tlsgd(x)
24013 addiu $4, $28, %tlsldm(x)
24014 lui $4, %dtprel_hi(x)
24015 addiu $4, $4, %dtprel_lo(x)
24016 lw $4, %gottprel(x)($28)
24017 lui $4, %tprel_hi(x)
24018 addiu $4, $4, %tprel_lo(x)'
24019 tls_first_major=2
24020 tls_first_minor=16
24021 tls_as_opt='-32 --fatal-warnings'
24023 m68k-*-*)
24024 conftest_s='
24025 .section .tdata,"awT",@progbits
24027 .word 2
24028 .text
24029 foo:
24030 move.l x@TLSGD(%a5),%a0
24031 move.l x@TLSLDM(%a5),%a0
24032 move.l x@TLSLDO(%a5),%a0
24033 move.l x@TLSIE(%a5),%a0
24034 move.l x@TLSLE(%a5),%a0'
24035 tls_first_major=2
24036 tls_first_minor=19
24037 tls_as_opt='--fatal-warnings'
24039 nios2-*-*)
24040 conftest_s='
24041 .section ".tdata","awT",@progbits'
24042 tls_first_major=2
24043 tls_first_minor=23
24044 tls_as_opt="--fatal-warnings"
24046 aarch64*-*-*)
24047 conftest_s='
24048 .section ".tdata","awT",%progbits
24049 foo: .long 25
24050 .text
24051 adrp x0, :tlsgd:x
24052 add x0, x0, #:tlsgd_lo12:x
24053 bl __tls_get_addr
24054 nop'
24055 tls_first_major=2
24056 tls_first_minor=20
24057 tls_as_opt='--fatal-warnings'
24059 powerpc-ibm-aix*)
24060 conftest_s='
24061 .extern __get_tpointer
24062 .toc
24063 LC..1:
24064 .tc a[TC],a[TL]@le
24065 .csect .text[PR]
24066 .tlstest:
24067 lwz 9,LC..1(2)
24068 bla __get_tpointer
24069 lwzx 3,9,3
24070 .globl a
24071 .csect a[TL],4
24073 .space 4'
24074 tls_first_major=0
24075 tls_first_minor=0
24077 powerpc64*-*-*)
24078 conftest_s='
24079 .section ".tdata","awT",@progbits
24080 .align 3
24081 ld0: .space 8
24082 ld1: .space 8
24083 x1: .space 8
24084 x2: .space 8
24085 x3: .space 8
24086 .text
24087 addi 3,2,ld0@got@tlsgd
24088 bl .__tls_get_addr
24090 addi 3,2,ld1@toc
24091 bl .__tls_get_addr
24093 addi 3,2,x1@got@tlsld
24094 bl .__tls_get_addr
24096 addi 9,3,x1@dtprel
24097 bl .__tls_get_addr
24099 addis 9,3,x2@dtprel@ha
24100 addi 9,9,x2@dtprel@l
24101 bl .__tls_get_addr
24103 ld 9,x3@got@dtprel(2)
24104 add 9,9,3
24105 bl .__tls_get_addr
24106 nop'
24107 tls_first_major=2
24108 tls_first_minor=14
24109 tls_as_opt="-a64 --fatal-warnings"
24111 powerpc*-*-*)
24112 conftest_s='
24113 .section ".tdata","awT",@progbits
24114 .align 2
24115 ld0: .space 4
24116 ld1: .space 4
24117 x1: .space 4
24118 x2: .space 4
24119 x3: .space 4
24120 .text
24121 addi 3,31,ld0@got@tlsgd
24122 bl __tls_get_addr
24123 addi 3,31,x1@got@tlsld
24124 bl __tls_get_addr
24125 addi 9,3,x1@dtprel
24126 addis 9,3,x2@dtprel@ha
24127 addi 9,9,x2@dtprel@l
24128 lwz 9,x3@got@tprel(31)
24129 add 9,9,x@tls
24130 addi 9,2,x1@tprel
24131 addis 9,2,x2@tprel@ha
24132 addi 9,9,x2@tprel@l'
24133 tls_first_major=2
24134 tls_first_minor=14
24135 tls_as_opt="-a32 --fatal-warnings"
24137 s390-*-*)
24138 conftest_s='
24139 .section ".tdata","awT",@progbits
24140 foo: .long 25
24141 .text
24142 .long foo@TLSGD
24143 .long foo@TLSLDM
24144 .long foo@DTPOFF
24145 .long foo@NTPOFF
24146 .long foo@GOTNTPOFF
24147 .long foo@INDNTPOFF
24148 l %r1,foo@GOTNTPOFF(%r12)
24149 l %r1,0(%r1):tls_load:foo
24150 bas %r14,0(%r1,%r13):tls_gdcall:foo
24151 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24152 tls_first_major=2
24153 tls_first_minor=14
24154 tls_as_opt="-m31 --fatal-warnings"
24156 s390x-*-*)
24157 conftest_s='
24158 .section ".tdata","awT",@progbits
24159 foo: .long 25
24160 .text
24161 .quad foo@TLSGD
24162 .quad foo@TLSLDM
24163 .quad foo@DTPOFF
24164 .quad foo@NTPOFF
24165 .quad foo@GOTNTPOFF
24166 lg %r1,foo@GOTNTPOFF(%r12)
24167 larl %r1,foo@INDNTPOFF
24168 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24169 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24170 tls_first_major=2
24171 tls_first_minor=14
24172 tls_as_opt="-m64 -Aesame --fatal-warnings"
24174 sh-*-* | sh[123456789lbe]*-*-*)
24175 conftest_s='
24176 .section ".tdata","awT",@progbits
24177 foo: .long 25
24178 .text
24179 .long foo@TLSGD
24180 .long foo@TLSLDM
24181 .long foo@DTPOFF
24182 .long foo@GOTTPOFF
24183 .long foo@TPOFF'
24184 tls_first_major=2
24185 tls_first_minor=13
24186 tls_as_opt=--fatal-warnings
24188 sparc*-*-*)
24189 case "$target" in
24190 sparc*-sun-solaris2.*)
24191 on_solaris=yes
24194 on_solaris=no
24196 esac
24197 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24198 conftest_s='
24199 .section ".tdata",#alloc,#write,#tls'
24200 tls_first_major=0
24201 tls_first_minor=0
24202 else
24203 conftest_s='
24204 .section ".tdata","awT",@progbits'
24205 tls_first_major=2
24206 tls_first_minor=14
24207 tls_as_opt="-32 --fatal-warnings"
24209 conftest_s="$conftest_s
24210 foo: .long 25
24211 .text
24212 sethi %tgd_hi22(foo), %o0
24213 add %o0, %tgd_lo10(foo), %o1
24214 add %l7, %o1, %o0, %tgd_add(foo)
24215 call __tls_get_addr, %tgd_call(foo)
24216 sethi %tldm_hi22(foo), %l1
24217 add %l1, %tldm_lo10(foo), %l2
24218 add %l7, %l2, %o0, %tldm_add(foo)
24219 call __tls_get_addr, %tldm_call(foo)
24220 sethi %tldo_hix22(foo), %l3
24221 xor %l3, %tldo_lox10(foo), %l4
24222 add %o0, %l4, %l5, %tldo_add(foo)
24223 sethi %tie_hi22(foo), %o3
24224 add %o3, %tie_lo10(foo), %o3
24225 ld [%l7 + %o3], %o2, %tie_ld(foo)
24226 add %g7, %o2, %o4, %tie_add(foo)
24227 sethi %tle_hix22(foo), %l1
24228 xor %l1, %tle_lox10(foo), %o5
24229 ld [%g7 + %o5], %o1"
24231 tilepro*-*-*)
24232 conftest_s='
24233 .section ".tdata","awT",@progbits
24234 foo: .long 25
24235 .text
24236 addli r0, zero, tls_gd(foo)
24237 auli r0, zero, tls_gd_ha16(foo)
24238 addli r0, r0, tls_gd_lo16(foo)
24239 jal __tls_get_addr
24240 addli r0, zero, tls_ie(foo)
24241 auli r0, r0, tls_ie_ha16(foo)
24242 addli r0, r0, tls_ie_lo16(foo)'
24243 tls_first_major=2
24244 tls_first_minor=22
24245 tls_as_opt="--fatal-warnings"
24247 tilegx*-*-*)
24248 conftest_s='
24249 .section ".tdata","awT",@progbits
24250 foo: .long 25
24251 .text
24252 shl16insli r0, zero, hw0_last_tls_gd(foo)
24253 shl16insli r0, zero, hw1_last_tls_gd(foo)
24254 shl16insli r0, r0, hw0_tls_gd(foo)
24255 jal __tls_get_addr
24256 shl16insli r0, zero, hw1_last_tls_ie(foo)
24257 shl16insli r0, r0, hw0_tls_ie(foo)'
24258 tls_first_major=2
24259 tls_first_minor=22
24260 tls_as_opt="--fatal-warnings"
24262 xtensa*-*-*)
24263 conftest_s='
24264 .section ".tdata","awT",@progbits
24265 foo: .long 25
24266 .text
24267 movi a8, foo@TLSFUNC
24268 movi a10, foo@TLSARG
24269 callx8.tls a8, foo@TLSCALL'
24270 tls_first_major=2
24271 tls_first_minor=19
24273 esac
24274 set_have_as_tls=no
24275 if test "x$enable_tls" = xno ; then
24276 : # TLS explicitly disabled.
24277 elif test "x$enable_tls" = xyes ; then
24278 set_have_as_tls=yes # TLS explicitly enabled.
24279 elif test -z "$tls_first_major"; then
24280 : # If we don't have a check, assume no support.
24281 else
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24283 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24284 if test "${gcc_cv_as_tls+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24286 else
24287 gcc_cv_as_tls=no
24288 if test $in_tree_gas = yes; then
24289 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24290 then gcc_cv_as_tls=yes
24292 elif test x$gcc_cv_as != x; then
24293 $as_echo "$conftest_s" > conftest.s
24294 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24296 (eval $ac_try) 2>&5
24297 ac_status=$?
24298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24299 test $ac_status = 0; }; }
24300 then
24301 gcc_cv_as_tls=yes
24302 else
24303 echo "configure: failed program was" >&5
24304 cat conftest.s >&5
24306 rm -f conftest.o conftest.s
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24310 $as_echo "$gcc_cv_as_tls" >&6; }
24311 if test $gcc_cv_as_tls = yes; then
24312 set_have_as_tls=yes
24315 if test $set_have_as_tls = yes ; then
24317 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24321 # Target-specific assembler checks.
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24324 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24325 gcc_cv_ld_static_dynamic=no
24326 gcc_cv_ld_static_option='-Bstatic'
24327 gcc_cv_ld_dynamic_option='-Bdynamic'
24328 if test $in_tree_ld = yes ; then
24329 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
24330 gcc_cv_ld_static_dynamic=yes
24332 elif test x$gcc_cv_ld != x; then
24333 # Check if linker supports -Bstatic/-Bdynamic option
24334 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24335 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24336 gcc_cv_ld_static_dynamic=yes
24337 else
24338 case "$target" in
24339 # AIX ld uses -b flags
24340 *-*-aix4.[23]* | *-*-aix[5-9]*)
24341 gcc_cv_ld_static_dynamic=yes
24342 gcc_cv_ld_static_option="-bstatic"
24343 gcc_cv_ld_dynamic_option="-bdynamic"
24345 # HP-UX ld uses -a flags to select between shared and archive.
24346 *-*-hpux*)
24347 if test x"$gnu_ld" = xno; then
24348 gcc_cv_ld_static_dynamic=yes
24349 gcc_cv_ld_static_option="-aarchive_shared"
24350 gcc_cv_ld_dynamic_option="-adefault"
24353 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24354 *-*-solaris2*)
24355 gcc_cv_ld_static_dynamic=yes
24357 esac
24360 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24362 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24365 cat >>confdefs.h <<_ACEOF
24366 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24367 _ACEOF
24370 cat >>confdefs.h <<_ACEOF
24371 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24372 _ACEOF
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24376 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24378 if test x"$demangler_in_ld" = xyes; then
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24380 $as_echo_n "checking linker --demangle support... " >&6; }
24381 gcc_cv_ld_demangle=no
24382 if test $in_tree_ld = yes; then
24383 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 \
24384 gcc_cv_ld_demangle=yes
24386 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24387 # Check if the GNU linker supports --demangle option
24388 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24389 gcc_cv_ld_demangle=yes
24392 if test x"$gcc_cv_ld_demangle" = xyes; then
24394 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24398 $as_echo "$gcc_cv_ld_demangle" >&6; }
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24402 $as_echo_n "checking linker plugin support... " >&6; }
24403 gcc_cv_lto_plugin=0
24404 if test -f liblto_plugin.la; then
24405 save_ld_ver="$ld_ver"
24406 save_ld_vers_major="$ld_vers_major"
24407 save_ld_vers_minor="$ld_vers_minor"
24408 save_ld_is_gold="$ld_is_gold"
24410 ld_is_gold=no
24412 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24413 ld_ver="GNU ld"
24414 # FIXME: ld_is_gold?
24415 ld_vers_major="$gcc_cv_gld_major_version"
24416 ld_vers_minor="$gcc_cv_gld_minor_version"
24417 else
24418 # Determine plugin linker version.
24419 # FIXME: Partial duplicate from above, generalize.
24420 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24421 if echo "$ld_ver" | grep GNU > /dev/null; then
24422 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24423 ld_is_gold=yes
24424 ld_vers=`echo $ld_ver | sed -n \
24425 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24426 else
24427 ld_vers=`echo $ld_ver | sed -n \
24428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24430 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24431 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24435 # Determine plugin support.
24436 if echo "$ld_ver" | grep GNU > /dev/null; then
24437 # Require GNU ld or gold 2.21+ for plugin support by default.
24438 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24439 gcc_cv_lto_plugin=2
24440 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24441 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24442 gcc_cv_lto_plugin=1
24446 ld_ver="$save_ld_ver"
24447 ld_vers_major="$save_ld_vers_major"
24448 ld_vers_minor="$save_ld_vers_minor"
24449 ld_is_gold="$save_ld_is_gold"
24452 cat >>confdefs.h <<_ACEOF
24453 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24454 _ACEOF
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24457 $as_echo "$gcc_cv_lto_plugin" >&6; }
24459 case "$target" in
24460 aarch64*-*-*)
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24462 $as_echo_n "checking assembler for -mabi option... " >&6; }
24463 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24464 $as_echo_n "(cached) " >&6
24465 else
24466 gcc_cv_as_aarch64_mabi=no
24467 if test x$gcc_cv_as != x; then
24468 $as_echo '.text' > conftest.s
24469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474 test $ac_status = 0; }; }
24475 then
24476 gcc_cv_as_aarch64_mabi=yes
24477 else
24478 echo "configure: failed program was" >&5
24479 cat conftest.s >&5
24481 rm -f conftest.o conftest.s
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24485 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24487 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24489 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24491 else
24492 if test x$with_abi = xilp32; then
24493 as_fn_error "Assembler does not support -mabi=ilp32.\
24494 Upgrade the Assembler." "$LINENO" 5
24496 if test x"$with_multilib_list" = xdefault; then
24497 TM_MULTILIB_CONFIG=lp64
24498 else
24499 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24500 for aarch64_multilib in ${aarch64_multilibs}; do
24501 case ${aarch64_multilib} in
24502 ilp32)
24503 as_fn_error "Assembler does not support -mabi=ilp32.\
24504 Upgrade the Assembler." "$LINENO" 5
24508 esac
24509 done
24512 # Check if we have binutils support for relocations types needed by -fpic
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24514 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24515 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24516 $as_echo_n "(cached) " >&6
24517 else
24518 gcc_cv_as_aarch64_picreloc=no
24519 if test x$gcc_cv_as != x; then
24520 $as_echo '
24521 .text
24522 ldr x0, [x2, #:gotpage_lo15:globalsym]
24523 ' > conftest.s
24524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24529 test $ac_status = 0; }; }
24530 then
24531 gcc_cv_as_aarch64_picreloc=yes
24532 else
24533 echo "configure: failed program was" >&5
24534 cat conftest.s >&5
24536 rm -f conftest.o conftest.s
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24540 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24541 if test $gcc_cv_as_aarch64_picreloc = yes; then
24543 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24546 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24547 # Check whether --enable-fix-cortex-a53-835769 was given.
24548 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24549 enableval=$enable_fix_cortex_a53_835769;
24550 case $enableval in
24551 yes)
24552 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24557 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24558 Valid choices are 'yes' and 'no'." "$LINENO" 5
24561 esac
24565 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24566 # Check whether --enable-fix-cortex-a53-843419 was given.
24567 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24568 enableval=$enable_fix_cortex_a53_843419;
24569 case $enableval in
24570 yes)
24571 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24576 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24577 Valid choices are 'yes' and 'no'." "$LINENO" 5
24580 esac
24586 # All TARGET_ABI_OSF targets.
24587 alpha*-*-linux* | alpha*-*-*bsd*)
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24589 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24590 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24591 $as_echo_n "(cached) " >&6
24592 else
24593 gcc_cv_as_alpha_explicit_relocs=no
24594 if test $in_tree_gas = yes; then
24595 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24596 then gcc_cv_as_alpha_explicit_relocs=yes
24598 elif test x$gcc_cv_as != x; then
24599 $as_echo ' .set nomacro
24600 .text
24601 extbl $3, $2, $3 !lituse_bytoff!1
24602 ldq $2, a($29) !literal!1
24603 ldq $4, b($29) !literal!2
24604 ldq_u $3, 0($2) !lituse_base!1
24605 ldq $27, f($29) !literal!5
24606 jsr $26, ($27), f !lituse_jsr!5
24607 ldah $29, 0($26) !gpdisp!3
24608 lda $0, c($29) !gprel
24609 ldah $1, d($29) !gprelhigh
24610 lda $1, d($1) !gprellow
24611 lda $29, 0($29) !gpdisp!3' > conftest.s
24612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24614 (eval $ac_try) 2>&5
24615 ac_status=$?
24616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617 test $ac_status = 0; }; }
24618 then
24619 gcc_cv_as_alpha_explicit_relocs=yes
24620 else
24621 echo "configure: failed program was" >&5
24622 cat conftest.s >&5
24624 rm -f conftest.o conftest.s
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24628 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24629 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24631 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24635 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24636 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24638 else
24639 gcc_cv_as_alpha_jsrdirect_relocs=no
24640 if test $in_tree_gas = yes; then
24641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24642 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24644 elif test x$gcc_cv_as != x; then
24645 $as_echo ' .set nomacro
24646 .text
24647 ldq $27, a($29) !literal!1
24648 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24654 test $ac_status = 0; }; }
24655 then
24656 gcc_cv_as_alpha_jsrdirect_relocs=yes
24657 else
24658 echo "configure: failed program was" >&5
24659 cat conftest.s >&5
24661 rm -f conftest.o conftest.s
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24665 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24666 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24668 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24673 avr-*-*)
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24675 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24676 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24677 $as_echo_n "(cached) " >&6
24678 else
24679 gcc_cv_as_avr_mlink_relax=no
24680 if test x$gcc_cv_as != x; then
24681 $as_echo '.text' > conftest.s
24682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687 test $ac_status = 0; }; }
24688 then
24689 gcc_cv_as_avr_mlink_relax=yes
24690 else
24691 echo "configure: failed program was" >&5
24692 cat conftest.s >&5
24694 rm -f conftest.o conftest.s
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24698 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24699 if test $gcc_cv_as_avr_mlink_relax = yes; then
24701 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24706 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24707 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24708 $as_echo_n "(cached) " >&6
24709 else
24710 gcc_cv_as_avr_mrmw=no
24711 if test x$gcc_cv_as != x; then
24712 $as_echo '.text' > conftest.s
24713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718 test $ac_status = 0; }; }
24719 then
24720 gcc_cv_as_avr_mrmw=yes
24721 else
24722 echo "configure: failed program was" >&5
24723 cat conftest.s >&5
24725 rm -f conftest.o conftest.s
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24729 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24730 if test $gcc_cv_as_avr_mrmw = yes; then
24732 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24737 cris-*-*)
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24739 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24740 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24742 else
24743 gcc_cv_as_cris_no_mul_bug=no
24744 if test $in_tree_gas = yes; then
24745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24746 then gcc_cv_as_cris_no_mul_bug=yes
24748 elif test x$gcc_cv_as != x; then
24749 $as_echo '.text' > conftest.s
24750 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24752 (eval $ac_try) 2>&5
24753 ac_status=$?
24754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24755 test $ac_status = 0; }; }
24756 then
24757 gcc_cv_as_cris_no_mul_bug=yes
24758 else
24759 echo "configure: failed program was" >&5
24760 cat conftest.s >&5
24762 rm -f conftest.o conftest.s
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24766 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24767 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24769 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24774 sparc*-*-*)
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24776 $as_echo_n "checking assembler for .register... " >&6; }
24777 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24778 $as_echo_n "(cached) " >&6
24779 else
24780 gcc_cv_as_sparc_register_op=no
24781 if test x$gcc_cv_as != x; then
24782 $as_echo '.register %g2, #scratch' > conftest.s
24783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24789 then
24790 gcc_cv_as_sparc_register_op=yes
24791 else
24792 echo "configure: failed program was" >&5
24793 cat conftest.s >&5
24795 rm -f conftest.o conftest.s
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24799 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24800 if test $gcc_cv_as_sparc_register_op = yes; then
24802 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24807 $as_echo_n "checking assembler for -relax option... " >&6; }
24808 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24809 $as_echo_n "(cached) " >&6
24810 else
24811 gcc_cv_as_sparc_relax=no
24812 if test x$gcc_cv_as != x; then
24813 $as_echo '.text' > conftest.s
24814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24819 test $ac_status = 0; }; }
24820 then
24821 gcc_cv_as_sparc_relax=yes
24822 else
24823 echo "configure: failed program was" >&5
24824 cat conftest.s >&5
24826 rm -f conftest.o conftest.s
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24830 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24831 if test $gcc_cv_as_sparc_relax = yes; then
24833 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24838 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24839 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24840 $as_echo_n "(cached) " >&6
24841 else
24842 gcc_cv_as_sparc_gotdata_op=no
24843 if test x$gcc_cv_as != x; then
24844 $as_echo '.text
24845 .align 4
24846 foo:
24848 bar:
24849 sethi %gdop_hix22(foo), %g1
24850 xor %g1, %gdop_lox10(foo), %g1
24851 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24855 ac_status=$?
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }
24858 then
24859 if test x$gcc_cv_ld != x \
24860 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24861 if test x$gcc_cv_objdump != x; then
24862 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24863 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24864 gcc_cv_as_sparc_gotdata_op=no
24865 else
24866 gcc_cv_as_sparc_gotdata_op=yes
24870 rm -f conftest
24871 else
24872 echo "configure: failed program was" >&5
24873 cat conftest.s >&5
24875 rm -f conftest.o conftest.s
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24879 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24880 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24882 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24887 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24888 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24889 $as_echo_n "(cached) " >&6
24890 else
24891 gcc_cv_as_sparc_ua_pcrel=no
24892 if test x$gcc_cv_as != x; then
24893 $as_echo '.text
24894 foo:
24896 .data
24897 .align 4
24898 .byte 0
24899 .uaword %r_disp32(foo)' > conftest.s
24900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24902 (eval $ac_try) 2>&5
24903 ac_status=$?
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; }
24906 then
24907 if test x$gcc_cv_ld != x \
24908 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24909 gcc_cv_as_sparc_ua_pcrel=yes
24911 rm -f conftest
24912 else
24913 echo "configure: failed program was" >&5
24914 cat conftest.s >&5
24916 rm -f conftest.o conftest.s
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24920 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24921 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24923 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24927 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24928 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24929 $as_echo_n "(cached) " >&6
24930 else
24931 gcc_cv_as_sparc_ua_pcrel_hidden=no
24932 if test x$gcc_cv_as != x; then
24933 $as_echo '.data
24934 .align 4
24935 .byte 0x31
24936 .uaword %r_disp32(foo)
24937 .byte 0x32, 0x33, 0x34
24938 .global foo
24939 .hidden foo
24940 foo:
24941 .skip 4' > conftest.s
24942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; }
24948 then
24949 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24950 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24951 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24952 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24953 if $gcc_cv_objdump -R conftest 2> /dev/null \
24954 | grep 'DISP32' > /dev/null 2>&1; then
24956 else
24957 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24960 rm -f conftest
24961 else
24962 echo "configure: failed program was" >&5
24963 cat conftest.s >&5
24965 rm -f conftest.o conftest.s
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24969 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24970 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24972 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24976 fi # unaligned pcrel relocs
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24979 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24980 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24982 else
24983 gcc_cv_as_sparc_offsetable_lo10=no
24984 if test x$gcc_cv_as != x; then
24985 $as_echo '.text
24986 or %g1, %lo(ab) + 12, %g1
24987 or %g1, %lo(ab + 12), %g1' > conftest.s
24988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }
24994 then
24995 if test x$gcc_cv_objdump != x \
24996 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24997 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24998 gcc_cv_as_sparc_offsetable_lo10=yes
25000 else
25001 echo "configure: failed program was" >&5
25002 cat conftest.s >&5
25004 rm -f conftest.o conftest.s
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25008 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25009 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25011 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25016 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25017 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25018 $as_echo_n "(cached) " >&6
25019 else
25020 gcc_cv_as_sparc_fmaf=no
25021 if test x$gcc_cv_as != x; then
25022 $as_echo '.text
25023 .register %g2, #scratch
25024 .register %g3, #scratch
25025 .align 4
25026 fmaddd %f0, %f2, %f4, %f6
25027 addxccc %g1, %g2, %g3
25028 fsrl32 %f2, %f4, %f8
25029 fnaddd %f10, %f12, %f14' > conftest.s
25030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25035 test $ac_status = 0; }; }
25036 then
25037 gcc_cv_as_sparc_fmaf=yes
25038 else
25039 echo "configure: failed program was" >&5
25040 cat conftest.s >&5
25042 rm -f conftest.o conftest.s
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25046 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25047 if test $gcc_cv_as_sparc_fmaf = yes; then
25049 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25054 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25055 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25057 else
25058 gcc_cv_as_sparc_sparc4=no
25059 if test x$gcc_cv_as != x; then
25060 $as_echo '.text
25061 .register %g2, #scratch
25062 .register %g3, #scratch
25063 .align 4
25064 cxbe %g2, %g3, 1f
25065 1: cwbneg %g2, %g3, 1f
25066 1: sha1
25068 aes_kexpand0 %f4, %f6, %f8
25069 des_round %f38, %f40, %f42, %f44
25070 camellia_f %f54, %f56, %f58, %f60
25071 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077 test $ac_status = 0; }; }
25078 then
25079 gcc_cv_as_sparc_sparc4=yes
25080 else
25081 echo "configure: failed program was" >&5
25082 cat conftest.s >&5
25084 rm -f conftest.o conftest.s
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25088 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25089 if test $gcc_cv_as_sparc_sparc4 = yes; then
25091 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25096 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25097 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25098 $as_echo_n "(cached) " >&6
25099 else
25100 gcc_cv_as_sparc_leon=no
25101 if test x$gcc_cv_as != x; then
25102 $as_echo '.text
25103 .register %g2, #scratch
25104 .register %g3, #scratch
25105 .align 4
25106 smac %g2, %g3, %g1
25107 umac %g2, %g3, %g1
25108 casa [%g2] 0xb, %g3, %g1' > conftest.s
25109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114 test $ac_status = 0; }; }
25115 then
25116 gcc_cv_as_sparc_leon=yes
25117 else
25118 echo "configure: failed program was" >&5
25119 cat conftest.s >&5
25121 rm -f conftest.o conftest.s
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25125 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25126 if test $gcc_cv_as_sparc_leon = yes; then
25128 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25133 i[34567]86-*-* | x86_64-*-*)
25134 case $target_os in
25135 cygwin*)
25136 # Full C++ conformance when using a shared libstdc++-v3 requires some
25137 # support from the Cygwin DLL, which in more recent versions exports
25138 # wrappers to aid in interposing and redirecting operators new, delete,
25139 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25140 # are configuring for a version of Cygwin that exports the wrappers.
25141 if test x$host = x$target && test x$host_cpu = xi686; then
25142 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25143 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25144 gcc_ac_cygwin_dll_wrappers=yes
25145 else
25146 gcc_ac_cygwin_dll_wrappers=no
25149 else
25150 # Can't check presence of libc functions during cross-compile, so
25151 # we just have to assume we're building for an up-to-date target.
25152 gcc_ac_cygwin_dll_wrappers=yes
25155 cat >>confdefs.h <<_ACEOF
25156 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25157 _ACEOF
25159 esac
25160 case $target_os in
25161 cygwin* | pe | mingw32* | interix*)
25162 # Recent binutils allows the three-operand form of ".comm" on PE. This
25163 # definition is used unconditionally to initialise the default state of
25164 # the target option variable that governs usage of the feature.
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25166 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25167 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25169 else
25170 gcc_cv_as_comm_has_align=no
25171 if test $in_tree_gas = yes; then
25172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25173 then gcc_cv_as_comm_has_align=yes
25175 elif test x$gcc_cv_as != x; then
25176 $as_echo '.comm foo,1,32' > conftest.s
25177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25183 then
25184 gcc_cv_as_comm_has_align=yes
25185 else
25186 echo "configure: failed program was" >&5
25187 cat conftest.s >&5
25189 rm -f conftest.o conftest.s
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25193 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25196 cat >>confdefs.h <<_ACEOF
25197 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25198 _ACEOF
25200 # Used for DWARF 2 in PE
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25202 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25203 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25205 else
25206 gcc_cv_as_ix86_pe_secrel32=no
25207 if test $in_tree_gas = yes; then
25208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25209 then gcc_cv_as_ix86_pe_secrel32=yes
25211 elif test x$gcc_cv_as != x; then
25212 $as_echo '.text
25213 foo: nop
25214 .data
25215 .secrel32 foo' > conftest.s
25216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25218 (eval $ac_try) 2>&5
25219 ac_status=$?
25220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25221 test $ac_status = 0; }; }
25222 then
25223 if test x$gcc_cv_ld != x \
25224 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25225 gcc_cv_as_ix86_pe_secrel32=yes
25227 rm -f conftest
25228 else
25229 echo "configure: failed program was" >&5
25230 cat conftest.s >&5
25232 rm -f conftest.o conftest.s
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25236 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25237 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25239 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25242 # Test if the assembler supports the extended form of the .section
25243 # directive that specifies section alignment. LTO support uses this,
25244 # but normally only after installation, so we warn but don't fail the
25245 # configure if LTO is enabled but the assembler does not support it.
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25247 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25248 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25249 $as_echo_n "(cached) " >&6
25250 else
25251 gcc_cv_as_section_has_align=no
25252 if test $in_tree_gas = yes; then
25253 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25254 then gcc_cv_as_section_has_align=yes
25256 elif test x$gcc_cv_as != x; then
25257 $as_echo '.section lto_test,"dr0"' > conftest.s
25258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; }
25264 then
25265 gcc_cv_as_section_has_align=yes
25266 else
25267 echo "configure: failed program was" >&5
25268 cat conftest.s >&5
25270 rm -f conftest.o conftest.s
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25274 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25276 if test x$gcc_cv_as_section_has_align != xyes; then
25277 case ",$enable_languages," in
25278 *,lto,*)
25279 { $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
25280 $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;}
25282 esac
25285 esac
25287 # Test if the assembler supports the section flag 'e' for specifying
25288 # an excluded section.
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25290 $as_echo_n "checking assembler for .section with e... " >&6; }
25291 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25293 else
25294 gcc_cv_as_section_has_e=no
25295 if test $in_tree_gas = yes; then
25296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25297 then gcc_cv_as_section_has_e=yes
25299 elif test x$gcc_cv_as != x; then
25300 $as_echo '.section foo1,"e"
25301 .byte 0,0,0,0' > conftest.s
25302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25304 (eval $ac_try) 2>&5
25305 ac_status=$?
25306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25307 test $ac_status = 0; }; }
25308 then
25309 gcc_cv_as_section_has_e=yes
25310 else
25311 echo "configure: failed program was" >&5
25312 cat conftest.s >&5
25314 rm -f conftest.o conftest.s
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25318 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25321 cat >>confdefs.h <<_ACEOF
25322 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25323 _ACEOF
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25327 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25328 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25329 $as_echo_n "(cached) " >&6
25330 else
25331 gcc_cv_as_ix86_filds=no
25332 if test x$gcc_cv_as != x; then
25333 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25339 test $ac_status = 0; }; }
25340 then
25341 gcc_cv_as_ix86_filds=yes
25342 else
25343 echo "configure: failed program was" >&5
25344 cat conftest.s >&5
25346 rm -f conftest.o conftest.s
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25350 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25351 if test $gcc_cv_as_ix86_filds = yes; then
25353 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25358 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25359 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25360 $as_echo_n "(cached) " >&6
25361 else
25362 gcc_cv_as_ix86_fildq=no
25363 if test x$gcc_cv_as != x; then
25364 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25367 (eval $ac_try) 2>&5
25368 ac_status=$?
25369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25370 test $ac_status = 0; }; }
25371 then
25372 gcc_cv_as_ix86_fildq=yes
25373 else
25374 echo "configure: failed program was" >&5
25375 cat conftest.s >&5
25377 rm -f conftest.o conftest.s
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25381 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25382 if test $gcc_cv_as_ix86_fildq = yes; then
25384 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25389 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25390 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25391 $as_echo_n "(cached) " >&6
25392 else
25393 gcc_cv_as_ix86_cmov_sun_syntax=no
25394 if test x$gcc_cv_as != x; then
25395 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }
25402 then
25403 gcc_cv_as_ix86_cmov_sun_syntax=yes
25404 else
25405 echo "configure: failed program was" >&5
25406 cat conftest.s >&5
25408 rm -f conftest.o conftest.s
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25412 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25413 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25415 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25420 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25421 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 gcc_cv_as_ix86_ffreep=no
25425 if test x$gcc_cv_as != x; then
25426 $as_echo 'ffreep %st(1)' > conftest.s
25427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25432 test $ac_status = 0; }; }
25433 then
25434 gcc_cv_as_ix86_ffreep=yes
25435 else
25436 echo "configure: failed program was" >&5
25437 cat conftest.s >&5
25439 rm -f conftest.o conftest.s
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25443 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25444 if test $gcc_cv_as_ix86_ffreep = yes; then
25446 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25451 $as_echo_n "checking assembler for .quad directive... " >&6; }
25452 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25453 $as_echo_n "(cached) " >&6
25454 else
25455 gcc_cv_as_ix86_quad=no
25456 if test x$gcc_cv_as != x; then
25457 $as_echo '.quad 0' > conftest.s
25458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25460 (eval $ac_try) 2>&5
25461 ac_status=$?
25462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25463 test $ac_status = 0; }; }
25464 then
25465 gcc_cv_as_ix86_quad=yes
25466 else
25467 echo "configure: failed program was" >&5
25468 cat conftest.s >&5
25470 rm -f conftest.o conftest.s
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25474 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25475 if test $gcc_cv_as_ix86_quad = yes; then
25477 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25482 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25483 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25484 $as_echo_n "(cached) " >&6
25485 else
25486 gcc_cv_as_ix86_sahf=no
25487 if test x$gcc_cv_as != x; then
25488 $as_echo '.code64
25489 sahf' > conftest.s
25490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25492 (eval $ac_try) 2>&5
25493 ac_status=$?
25494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25495 test $ac_status = 0; }; }
25496 then
25497 gcc_cv_as_ix86_sahf=yes
25498 else
25499 echo "configure: failed program was" >&5
25500 cat conftest.s >&5
25502 rm -f conftest.o conftest.s
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25506 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25507 if test $gcc_cv_as_ix86_sahf = yes; then
25509 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25514 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25515 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25517 else
25518 gcc_cv_as_ix86_interunit_movq=no
25519 if test x$gcc_cv_as != x; then
25520 $as_echo '.code64
25521 movq %mm0, %rax
25522 movq %rax, %xmm0' > 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_interunit_movq=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_interunit_movq" >&5
25539 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25542 cat >>confdefs.h <<_ACEOF
25543 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25544 _ACEOF
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25548 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25549 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25550 $as_echo_n "(cached) " >&6
25551 else
25552 gcc_cv_as_ix86_hle=no
25553 if test x$gcc_cv_as != x; then
25554 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > 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_hle=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_hle" >&5
25571 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25572 if test $gcc_cv_as_ix86_hle = yes; then
25574 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25579 $as_echo_n "checking assembler for swap suffix... " >&6; }
25580 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25582 else
25583 gcc_cv_as_ix86_swap=no
25584 if test x$gcc_cv_as != x; then
25585 $as_echo 'movl.s %esp, %ebp' > conftest.s
25586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; }
25592 then
25593 gcc_cv_as_ix86_swap=yes
25594 else
25595 echo "configure: failed program was" >&5
25596 cat conftest.s >&5
25598 rm -f conftest.o conftest.s
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25602 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25603 if test $gcc_cv_as_ix86_swap = yes; then
25605 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25610 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25611 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25612 $as_echo_n "(cached) " >&6
25613 else
25614 gcc_cv_as_ix86_diff_sect_delta=no
25615 if test x$gcc_cv_as != x; then
25616 $as_echo '.section .rodata
25617 .L1:
25618 .long .L2-.L1
25619 .long .L3-.L1
25620 .text
25621 .L3: nop
25622 .L2: nop' > conftest.s
25623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25625 (eval $ac_try) 2>&5
25626 ac_status=$?
25627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25628 test $ac_status = 0; }; }
25629 then
25630 gcc_cv_as_ix86_diff_sect_delta=yes
25631 else
25632 echo "configure: failed program was" >&5
25633 cat conftest.s >&5
25635 rm -f conftest.o conftest.s
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25639 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25640 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25642 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25646 # These two are used unconditionally by i386.[ch]; it is to be defined
25647 # to 1 if the feature is present, 0 otherwise.
25648 as_ix86_gotoff_in_data_opt=
25649 if test x$gas = xyes; then
25650 as_ix86_gotoff_in_data_opt="--32"
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25653 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25654 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25655 $as_echo_n "(cached) " >&6
25656 else
25657 gcc_cv_as_ix86_gotoff_in_data=no
25658 if test $in_tree_gas = yes; then
25659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25660 then gcc_cv_as_ix86_gotoff_in_data=yes
25662 elif test x$gcc_cv_as != x; then
25663 $as_echo ' .text
25664 .L0:
25666 .data
25667 .long .L0@GOTOFF' > conftest.s
25668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25670 (eval $ac_try) 2>&5
25671 ac_status=$?
25672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25673 test $ac_status = 0; }; }
25674 then
25675 gcc_cv_as_ix86_gotoff_in_data=yes
25676 else
25677 echo "configure: failed program was" >&5
25678 cat conftest.s >&5
25680 rm -f conftest.o conftest.s
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25684 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25687 cat >>confdefs.h <<_ACEOF
25688 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25689 _ACEOF
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25693 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25694 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25696 else
25697 gcc_cv_as_ix86_rep_lock_prefix=no
25698 if test x$gcc_cv_as != x; then
25699 $as_echo 'rep movsl
25700 rep ret
25701 rep nop
25702 rep bsf %ecx, %eax
25703 rep bsr %ecx, %eax
25704 lock addl %edi, (%eax,%esi)
25705 lock orl $0, (%esp)' > conftest.s
25706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25711 test $ac_status = 0; }; }
25712 then
25713 gcc_cv_as_ix86_rep_lock_prefix=yes
25714 else
25715 echo "configure: failed program was" >&5
25716 cat conftest.s >&5
25718 rm -f conftest.o conftest.s
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25722 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25723 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25725 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25730 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25731 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25732 $as_echo_n "(cached) " >&6
25733 else
25734 gcc_cv_as_ix86_ud2=no
25735 if test x$gcc_cv_as != x; then
25736 $as_echo 'ud2' > conftest.s
25737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25742 test $ac_status = 0; }; }
25743 then
25744 gcc_cv_as_ix86_ud2=yes
25745 else
25746 echo "configure: failed program was" >&5
25747 cat conftest.s >&5
25749 rm -f conftest.o conftest.s
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25753 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25754 if test $gcc_cv_as_ix86_ud2 = yes; then
25756 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25761 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25762 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25763 $as_echo_n "(cached) " >&6
25764 else
25765 gcc_cv_as_ix86_tlsgdplt=no
25766 if test x$gcc_cv_as != x; then
25767 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25770 (eval $ac_try) 2>&5
25771 ac_status=$?
25772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25773 test $ac_status = 0; }; }
25774 then
25775 if test x$gcc_cv_ld != x \
25776 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25777 gcc_cv_as_ix86_tlsgdplt=yes
25779 rm -f conftest
25780 else
25781 echo "configure: failed program was" >&5
25782 cat conftest.s >&5
25784 rm -f conftest.o conftest.s
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25788 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25789 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25791 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25795 conftest_s='
25796 .section .tdata,"aw'$tls_section_flag'",@progbits
25797 tls_ld:
25798 .section .text,"ax",@progbits
25799 call tls_ld@tlsldmplt'
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25801 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25802 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25803 $as_echo_n "(cached) " >&6
25804 else
25805 gcc_cv_as_ix86_tlsldmplt=no
25806 if test x$gcc_cv_as != x; then
25807 $as_echo "$conftest_s" > conftest.s
25808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; }
25814 then
25815 if test x$gcc_cv_ld != x \
25816 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25817 gcc_cv_as_ix86_tlsldmplt=yes
25819 rm -f conftest
25820 else
25821 echo "configure: failed program was" >&5
25822 cat conftest.s >&5
25824 rm -f conftest.o conftest.s
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25828 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25831 cat >>confdefs.h <<_ACEOF
25832 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25833 _ACEOF
25836 # Enforce 32-bit output with gas and gld.
25837 if test x$gas = xyes; then
25838 as_ix86_tls_ldm_opt="--32"
25840 if echo "$ld_ver" | grep GNU > /dev/null; then
25841 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25842 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25843 else
25844 ld_ix86_tls_ldm_opt="-melf_i386"
25847 conftest_s='
25848 .section .text,"ax",@progbits
25849 .globl _start
25850 .type _start, @function
25851 _start:
25852 leal value@tlsldm(%ebx), %eax
25853 call ___tls_get_addr@plt
25855 .section .tdata,"aw'$tls_section_flag'",@progbits
25856 .type value, @object
25857 value:'
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25859 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25860 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25861 $as_echo_n "(cached) " >&6
25862 else
25863 gcc_cv_as_ix86_tlsldm=no
25864 if test x$gcc_cv_as != x; then
25865 $as_echo "$conftest_s" > conftest.s
25866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25871 test $ac_status = 0; }; }
25872 then
25873 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25874 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25875 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25876 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25877 gcc_cv_as_ix86_tlsldm=yes
25880 rm -f conftest
25881 else
25882 echo "configure: failed program was" >&5
25883 cat conftest.s >&5
25885 rm -f conftest.o conftest.s
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25889 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25892 cat >>confdefs.h <<_ACEOF
25893 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25894 _ACEOF
25899 ia64*-*-*)
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25901 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25902 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25903 $as_echo_n "(cached) " >&6
25904 else
25905 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25906 if test $in_tree_gas = yes; then
25907 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25908 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25910 elif test x$gcc_cv_as != x; then
25911 $as_echo ' .text
25912 addl r15 = @ltoffx(x#), gp
25914 ld8.mov r16 = [r15], x#' > conftest.s
25915 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25917 (eval $ac_try) 2>&5
25918 ac_status=$?
25919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25920 test $ac_status = 0; }; }
25921 then
25922 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25923 else
25924 echo "configure: failed program was" >&5
25925 cat conftest.s >&5
25927 rm -f conftest.o conftest.s
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25931 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25932 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25934 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25940 powerpc*-*-*)
25942 case $target in
25943 *-*-darwin*)
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25945 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25946 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25947 $as_echo_n "(cached) " >&6
25948 else
25949 gcc_cv_as_machine_directive=no
25950 if test x$gcc_cv_as != x; then
25951 $as_echo ' .machine ppc7400' > conftest.s
25952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25954 (eval $ac_try) 2>&5
25955 ac_status=$?
25956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25957 test $ac_status = 0; }; }
25958 then
25959 gcc_cv_as_machine_directive=yes
25960 else
25961 echo "configure: failed program was" >&5
25962 cat conftest.s >&5
25964 rm -f conftest.o conftest.s
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25968 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25970 if test x$gcc_cv_as_machine_directive != xyes; then
25971 echo "*** This target requires an assembler supporting \".machine\"" >&2
25972 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25973 test x$build = x$target && exit 1
25976 esac
25978 case $target in
25979 *-*-aix*) conftest_s=' .machine "pwr5"
25980 .csect .text[PR]
25981 mfcr 3,128';;
25982 *-*-darwin*) conftest_s=' .text
25983 mfcr r3,128';;
25984 *) conftest_s=' .machine power4
25985 .text
25986 mfcr 3,128';;
25987 esac
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25990 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25991 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25992 $as_echo_n "(cached) " >&6
25993 else
25994 gcc_cv_as_powerpc_mfcrf=no
25995 if test $in_tree_gas = yes; then
25996 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25997 then gcc_cv_as_powerpc_mfcrf=yes
25999 elif test x$gcc_cv_as != x; then
26000 $as_echo "$conftest_s" > conftest.s
26001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26006 test $ac_status = 0; }; }
26007 then
26008 gcc_cv_as_powerpc_mfcrf=yes
26009 else
26010 echo "configure: failed program was" >&5
26011 cat conftest.s >&5
26013 rm -f conftest.o conftest.s
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26017 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26018 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26020 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26024 case $target in
26025 *-*-aix*) conftest_s=' .machine "pwr5"
26026 .csect .text[PR]
26027 popcntb 3,3';;
26028 *) conftest_s=' .machine power5
26029 .text
26030 popcntb 3,3';;
26031 esac
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26034 $as_echo_n "checking assembler for popcntb support... " >&6; }
26035 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26036 $as_echo_n "(cached) " >&6
26037 else
26038 gcc_cv_as_powerpc_popcntb=no
26039 if test $in_tree_gas = yes; then
26040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26041 then gcc_cv_as_powerpc_popcntb=yes
26043 elif test x$gcc_cv_as != x; then
26044 $as_echo "$conftest_s" > conftest.s
26045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26047 (eval $ac_try) 2>&5
26048 ac_status=$?
26049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26050 test $ac_status = 0; }; }
26051 then
26052 gcc_cv_as_powerpc_popcntb=yes
26053 else
26054 echo "configure: failed program was" >&5
26055 cat conftest.s >&5
26057 rm -f conftest.o conftest.s
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26061 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26062 if test $gcc_cv_as_powerpc_popcntb = yes; then
26064 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26068 case $target in
26069 *-*-aix*) conftest_s=' .machine "pwr5x"
26070 .csect .text[PR]
26071 frin 1,1';;
26072 *) conftest_s=' .machine power5
26073 .text
26074 frin 1,1';;
26075 esac
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26078 $as_echo_n "checking assembler for fp round support... " >&6; }
26079 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26080 $as_echo_n "(cached) " >&6
26081 else
26082 gcc_cv_as_powerpc_fprnd=no
26083 if test $in_tree_gas = yes; then
26084 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26085 then gcc_cv_as_powerpc_fprnd=yes
26087 elif test x$gcc_cv_as != x; then
26088 $as_echo "$conftest_s" > conftest.s
26089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26094 test $ac_status = 0; }; }
26095 then
26096 gcc_cv_as_powerpc_fprnd=yes
26097 else
26098 echo "configure: failed program was" >&5
26099 cat conftest.s >&5
26101 rm -f conftest.o conftest.s
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26105 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26106 if test $gcc_cv_as_powerpc_fprnd = yes; then
26108 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26112 case $target in
26113 *-*-aix*) conftest_s=' .machine "pwr6"
26114 .csect .text[PR]
26115 mffgpr 1,3';;
26116 *) conftest_s=' .machine power6
26117 .text
26118 mffgpr 1,3';;
26119 esac
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26122 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26123 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26124 $as_echo_n "(cached) " >&6
26125 else
26126 gcc_cv_as_powerpc_mfpgpr=no
26127 if test $in_tree_gas = yes; then
26128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26129 then gcc_cv_as_powerpc_mfpgpr=yes
26131 elif test x$gcc_cv_as != x; then
26132 $as_echo "$conftest_s" > conftest.s
26133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26138 test $ac_status = 0; }; }
26139 then
26140 gcc_cv_as_powerpc_mfpgpr=yes
26141 else
26142 echo "configure: failed program was" >&5
26143 cat conftest.s >&5
26145 rm -f conftest.o conftest.s
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26149 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26150 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26152 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26156 case $target in
26157 *-*-aix*) conftest_s=' .csect .text[PR]
26158 LCF..0:
26159 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26160 *-*-darwin*)
26161 conftest_s=' .text
26162 LCF0:
26163 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26164 *) conftest_s=' .text
26165 .LCF0:
26166 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26167 esac
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26170 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26171 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26172 $as_echo_n "(cached) " >&6
26173 else
26174 gcc_cv_as_powerpc_rel16=no
26175 if test $in_tree_gas = yes; then
26176 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26177 then gcc_cv_as_powerpc_rel16=yes
26179 elif test x$gcc_cv_as != x; then
26180 $as_echo "$conftest_s" > conftest.s
26181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183 (eval $ac_try) 2>&5
26184 ac_status=$?
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; }
26187 then
26188 gcc_cv_as_powerpc_rel16=yes
26189 else
26190 echo "configure: failed program was" >&5
26191 cat conftest.s >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26197 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26198 if test $gcc_cv_as_powerpc_rel16 = yes; then
26200 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26204 case $target in
26205 *-*-aix*) conftest_s=' .machine "pwr6"
26206 .csect .text[PR]
26207 cmpb 3,4,5';;
26208 *) conftest_s=' .machine power6
26209 .text
26210 cmpb 3,4,5';;
26211 esac
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26214 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26215 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26218 gcc_cv_as_powerpc_cmpb=no
26219 if test $in_tree_gas = yes; then
26220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26221 then gcc_cv_as_powerpc_cmpb=yes
26223 elif test x$gcc_cv_as != x; then
26224 $as_echo "$conftest_s" > conftest.s
26225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26230 test $ac_status = 0; }; }
26231 then
26232 gcc_cv_as_powerpc_cmpb=yes
26233 else
26234 echo "configure: failed program was" >&5
26235 cat conftest.s >&5
26237 rm -f conftest.o conftest.s
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26241 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26242 if test $gcc_cv_as_powerpc_cmpb = yes; then
26244 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26248 case $target in
26249 *-*-aix*) conftest_s=' .machine "pwr6"
26250 .csect .text[PR]
26251 dadd 1,2,3';;
26252 *) conftest_s=' .machine power6
26253 .text
26254 dadd 1,2,3';;
26255 esac
26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26258 $as_echo_n "checking assembler for decimal float support... " >&6; }
26259 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26260 $as_echo_n "(cached) " >&6
26261 else
26262 gcc_cv_as_powerpc_dfp=no
26263 if test $in_tree_gas = yes; then
26264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26265 then gcc_cv_as_powerpc_dfp=yes
26267 elif test x$gcc_cv_as != x; then
26268 $as_echo "$conftest_s" > conftest.s
26269 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26271 (eval $ac_try) 2>&5
26272 ac_status=$?
26273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26274 test $ac_status = 0; }; }
26275 then
26276 gcc_cv_as_powerpc_dfp=yes
26277 else
26278 echo "configure: failed program was" >&5
26279 cat conftest.s >&5
26281 rm -f conftest.o conftest.s
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26285 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26286 if test $gcc_cv_as_powerpc_dfp = yes; then
26288 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26292 case $target in
26293 *-*-aix*) conftest_s=' .machine "pwr7"
26294 .csect .text[PR]
26295 lxvd2x 1,2,3';;
26296 *) conftest_s=' .machine power7
26297 .text
26298 lxvd2x 1,2,3';;
26299 esac
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26302 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26303 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26304 $as_echo_n "(cached) " >&6
26305 else
26306 gcc_cv_as_powerpc_vsx=no
26307 if test $in_tree_gas = yes; then
26308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26309 then gcc_cv_as_powerpc_vsx=yes
26311 elif test x$gcc_cv_as != x; then
26312 $as_echo "$conftest_s" > conftest.s
26313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26316 ac_status=$?
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26319 then
26320 gcc_cv_as_powerpc_vsx=yes
26321 else
26322 echo "configure: failed program was" >&5
26323 cat conftest.s >&5
26325 rm -f conftest.o conftest.s
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26329 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26330 if test $gcc_cv_as_powerpc_vsx = yes; then
26332 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26336 case $target in
26337 *-*-aix*) conftest_s=' .machine "pwr7"
26338 .csect .text[PR]
26339 popcntd 3,3';;
26340 *) conftest_s=' .machine power7
26341 .text
26342 popcntd 3,3';;
26343 esac
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26346 $as_echo_n "checking assembler for popcntd support... " >&6; }
26347 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26348 $as_echo_n "(cached) " >&6
26349 else
26350 gcc_cv_as_powerpc_popcntd=no
26351 if test $in_tree_gas = yes; then
26352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26353 then gcc_cv_as_powerpc_popcntd=yes
26355 elif test x$gcc_cv_as != x; then
26356 $as_echo "$conftest_s" > conftest.s
26357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26359 (eval $ac_try) 2>&5
26360 ac_status=$?
26361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26362 test $ac_status = 0; }; }
26363 then
26364 gcc_cv_as_powerpc_popcntd=yes
26365 else
26366 echo "configure: failed program was" >&5
26367 cat conftest.s >&5
26369 rm -f conftest.o conftest.s
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26373 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26374 if test $gcc_cv_as_powerpc_popcntd = yes; then
26376 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26380 case $target in
26381 *-*-aix*) conftest_s=' .machine "pwr8"
26382 .csect .text[PR]';;
26383 *) conftest_s=' .machine power8
26384 .text';;
26385 esac
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26388 $as_echo_n "checking assembler for power8 support... " >&6; }
26389 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26390 $as_echo_n "(cached) " >&6
26391 else
26392 gcc_cv_as_powerpc_power8=no
26393 if test $in_tree_gas = yes; then
26394 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26395 then gcc_cv_as_powerpc_power8=yes
26397 elif test x$gcc_cv_as != x; then
26398 $as_echo "$conftest_s" > conftest.s
26399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26401 (eval $ac_try) 2>&5
26402 ac_status=$?
26403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26404 test $ac_status = 0; }; }
26405 then
26406 gcc_cv_as_powerpc_power8=yes
26407 else
26408 echo "configure: failed program was" >&5
26409 cat conftest.s >&5
26411 rm -f conftest.o conftest.s
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26415 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26416 if test $gcc_cv_as_powerpc_power8 = yes; then
26418 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26422 case $target in
26423 *-*-aix*) conftest_s=' .machine "pwr9"
26424 .csect .text[PR]';;
26425 *) conftest_s=' .machine power9
26426 .text';;
26427 esac
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26430 $as_echo_n "checking assembler for power9 support... " >&6; }
26431 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26432 $as_echo_n "(cached) " >&6
26433 else
26434 gcc_cv_as_powerpc_power9=no
26435 if test $in_tree_gas = yes; then
26436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26437 then gcc_cv_as_powerpc_power9=yes
26439 elif test x$gcc_cv_as != x; then
26440 $as_echo "$conftest_s" > conftest.s
26441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26443 (eval $ac_try) 2>&5
26444 ac_status=$?
26445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26446 test $ac_status = 0; }; }
26447 then
26448 gcc_cv_as_powerpc_power9=yes
26449 else
26450 echo "configure: failed program was" >&5
26451 cat conftest.s >&5
26453 rm -f conftest.o conftest.s
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26457 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26458 if test $gcc_cv_as_powerpc_power9 = yes; then
26460 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26464 case $target in
26465 *-*-aix*) conftest_s=' .csect .text[PR]
26466 lwsync';;
26467 *) conftest_s=' .text
26468 lwsync';;
26469 esac
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26472 $as_echo_n "checking assembler for lwsync support... " >&6; }
26473 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26475 else
26476 gcc_cv_as_powerpc_lwsync=no
26477 if test $in_tree_gas = yes; then
26478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26479 then gcc_cv_as_powerpc_lwsync=yes
26481 elif test x$gcc_cv_as != x; then
26482 $as_echo "$conftest_s" > conftest.s
26483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26485 (eval $ac_try) 2>&5
26486 ac_status=$?
26487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488 test $ac_status = 0; }; }
26489 then
26490 gcc_cv_as_powerpc_lwsync=yes
26491 else
26492 echo "configure: failed program was" >&5
26493 cat conftest.s >&5
26495 rm -f conftest.o conftest.s
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26499 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26500 if test $gcc_cv_as_powerpc_lwsync = yes; then
26502 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26506 case $target in
26507 *-*-aix*) conftest_s=' .machine "476"
26508 .csect .text[PR]
26509 dci 0';;
26510 *) conftest_s=' .machine "476"
26511 .text
26512 dci 0';;
26513 esac
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26516 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26517 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26518 $as_echo_n "(cached) " >&6
26519 else
26520 gcc_cv_as_powerpc_dci=no
26521 if test $in_tree_gas = yes; then
26522 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26523 then gcc_cv_as_powerpc_dci=yes
26525 elif test x$gcc_cv_as != x; then
26526 $as_echo "$conftest_s" > conftest.s
26527 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26529 (eval $ac_try) 2>&5
26530 ac_status=$?
26531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26532 test $ac_status = 0; }; }
26533 then
26534 gcc_cv_as_powerpc_dci=yes
26535 else
26536 echo "configure: failed program was" >&5
26537 cat conftest.s >&5
26539 rm -f conftest.o conftest.s
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26543 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26544 if test $gcc_cv_as_powerpc_dci = yes; then
26546 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26551 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26552 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26553 $as_echo_n "(cached) " >&6
26554 else
26555 gcc_cv_as_powerpc_gnu_attribute=no
26556 if test $in_tree_gas = yes; then
26557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26558 then gcc_cv_as_powerpc_gnu_attribute=yes
26560 elif test x$gcc_cv_as != x; then
26561 $as_echo '.gnu_attribute 4,1' > conftest.s
26562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26565 ac_status=$?
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26568 then
26569 gcc_cv_as_powerpc_gnu_attribute=yes
26570 else
26571 echo "configure: failed program was" >&5
26572 cat conftest.s >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26578 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26579 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26581 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26586 $as_echo_n "checking assembler for tls marker support... " >&6; }
26587 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26589 else
26590 gcc_cv_as_powerpc_tls_markers=no
26591 if test $in_tree_gas = yes; then
26592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26593 then gcc_cv_as_powerpc_tls_markers=yes
26595 elif test x$gcc_cv_as != x; then
26596 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26602 test $ac_status = 0; }; }
26603 then
26604 gcc_cv_as_powerpc_tls_markers=yes
26605 else
26606 echo "configure: failed program was" >&5
26607 cat conftest.s >&5
26609 rm -f conftest.o conftest.s
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26613 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26614 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26616 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26621 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26622 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26623 $as_echo_n "(cached) " >&6
26624 else
26625 gcc_cv_as_powerpc_entry_markers=no
26626 if test $in_tree_gas = yes; then
26627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26628 then gcc_cv_as_powerpc_entry_markers=yes
26630 elif test x$gcc_cv_as != x; then
26631 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26634 (eval $ac_try) 2>&5
26635 ac_status=$?
26636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26637 test $ac_status = 0; }; }
26638 then
26639 gcc_cv_as_powerpc_entry_markers=yes
26640 else
26641 echo "configure: failed program was" >&5
26642 cat conftest.s >&5
26644 rm -f conftest.o conftest.s
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26648 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26649 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26651 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26655 case $target in
26656 *-*-aix*)
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26658 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26659 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26660 $as_echo_n "(cached) " >&6
26661 else
26662 gcc_cv_as_aix_ref=no
26663 if test $in_tree_gas = yes; then
26664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26665 then gcc_cv_as_aix_ref=yes
26667 elif test x$gcc_cv_as != x; then
26668 $as_echo ' .csect stuff[rw]
26669 stuff:
26670 .long 1
26671 .extern sym
26672 .ref sym
26673 ' > conftest.s
26674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26676 (eval $ac_try) 2>&5
26677 ac_status=$?
26678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26679 test $ac_status = 0; }; }
26680 then
26681 gcc_cv_as_aix_ref=yes
26682 else
26683 echo "configure: failed program was" >&5
26684 cat conftest.s >&5
26686 rm -f conftest.o conftest.s
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26690 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26691 if test $gcc_cv_as_aix_ref = yes; then
26693 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26698 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26699 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26700 $as_echo_n "(cached) " >&6
26701 else
26702 gcc_cv_as_aix_dwloc=no
26703 if test $in_tree_gas = yes; then
26704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26705 then gcc_cv_as_aix_dwloc=yes
26707 elif test x$gcc_cv_as != x; then
26708 $as_echo ' .dwsect 0xA0000
26709 Lframe..0:
26710 .vbyte 4,Lframe..0:
26711 ' > conftest.s
26712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26714 (eval $ac_try) 2>&5
26715 ac_status=$?
26716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26717 test $ac_status = 0; }; }
26718 then
26719 gcc_cv_as_aix_dwloc=yes
26720 else
26721 echo "configure: failed program was" >&5
26722 cat conftest.s >&5
26724 rm -f conftest.o conftest.s
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26728 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26729 if test $gcc_cv_as_aix_dwloc = yes; then
26731 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26735 esac
26738 mips*-*-*)
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26740 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26741 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26742 $as_echo_n "(cached) " >&6
26743 else
26744 gcc_cv_as_mips_explicit_relocs=no
26745 if test $in_tree_gas = yes; then
26746 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26747 then gcc_cv_as_mips_explicit_relocs=yes
26749 elif test x$gcc_cv_as != x; then
26750 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26756 test $ac_status = 0; }; }
26757 then
26758 gcc_cv_as_mips_explicit_relocs=yes
26759 else
26760 echo "configure: failed program was" >&5
26761 cat conftest.s >&5
26763 rm -f conftest.o conftest.s
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26767 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26768 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26769 if test x$target_cpu_default = x
26770 then target_cpu_default=MASK_EXPLICIT_RELOCS
26771 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26776 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26777 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26778 $as_echo_n "(cached) " >&6
26779 else
26780 gcc_cv_as_mips_no_shared=no
26781 if test $in_tree_gas = yes; then
26782 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26783 then gcc_cv_as_mips_no_shared=yes
26785 elif test x$gcc_cv_as != x; then
26786 $as_echo 'nop' > conftest.s
26787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26792 test $ac_status = 0; }; }
26793 then
26794 gcc_cv_as_mips_no_shared=yes
26795 else
26796 echo "configure: failed program was" >&5
26797 cat conftest.s >&5
26799 rm -f conftest.o conftest.s
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26803 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26804 if test $gcc_cv_as_mips_no_shared = yes; then
26806 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26811 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26812 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26813 $as_echo_n "(cached) " >&6
26814 else
26815 gcc_cv_as_mips_gnu_attribute=no
26816 if test $in_tree_gas = yes; then
26817 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26818 then gcc_cv_as_mips_gnu_attribute=yes
26820 elif test x$gcc_cv_as != x; then
26821 $as_echo '.gnu_attribute 4,1' > conftest.s
26822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26827 test $ac_status = 0; }; }
26828 then
26829 gcc_cv_as_mips_gnu_attribute=yes
26830 else
26831 echo "configure: failed program was" >&5
26832 cat conftest.s >&5
26834 rm -f conftest.o conftest.s
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26838 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26839 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26841 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26846 $as_echo_n "checking assembler for .module support... " >&6; }
26847 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26848 $as_echo_n "(cached) " >&6
26849 else
26850 gcc_cv_as_mips_dot_module=no
26851 if test x$gcc_cv_as != x; then
26852 $as_echo '.module mips2
26853 .module fp=xx' > conftest.s
26854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26856 (eval $ac_try) 2>&5
26857 ac_status=$?
26858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859 test $ac_status = 0; }; }
26860 then
26861 gcc_cv_as_mips_dot_module=yes
26862 else
26863 echo "configure: failed program was" >&5
26864 cat conftest.s >&5
26866 rm -f conftest.o conftest.s
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26870 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26871 if test $gcc_cv_as_mips_dot_module = yes; then
26873 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26876 if test x$gcc_cv_as_mips_dot_module = xno \
26877 && test x$with_fp_32 != x; then
26878 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26882 $as_echo_n "checking assembler for .micromips support... " >&6; }
26883 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26884 $as_echo_n "(cached) " >&6
26885 else
26886 gcc_cv_as_micromips_support=no
26887 if test x$gcc_cv_as != x; then
26888 $as_echo '.set micromips' > conftest.s
26889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26895 then
26896 gcc_cv_as_micromips_support=yes
26897 else
26898 echo "configure: failed program was" >&5
26899 cat conftest.s >&5
26901 rm -f conftest.o conftest.s
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26905 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26906 if test $gcc_cv_as_micromips_support = yes; then
26908 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26913 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26914 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26915 $as_echo_n "(cached) " >&6
26916 else
26917 gcc_cv_as_mips_dtprelword=no
26918 if test $in_tree_gas = yes; then
26919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26920 then gcc_cv_as_mips_dtprelword=yes
26922 elif test x$gcc_cv_as != x; then
26923 $as_echo '.section .tdata,"awT",@progbits
26925 .word 2
26926 .text
26927 .dtprelword x+0x8000' > conftest.s
26928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26930 (eval $ac_try) 2>&5
26931 ac_status=$?
26932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26933 test $ac_status = 0; }; }
26934 then
26935 gcc_cv_as_mips_dtprelword=yes
26936 else
26937 echo "configure: failed program was" >&5
26938 cat conftest.s >&5
26940 rm -f conftest.o conftest.s
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26944 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26945 if test $gcc_cv_as_mips_dtprelword = yes; then
26947 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26952 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26953 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26954 $as_echo_n "(cached) " >&6
26955 else
26956 gcc_cv_as_mips_dspr1_mult=no
26957 if test x$gcc_cv_as != x; then
26958 $as_echo ' .set mips32r2
26959 .set nodspr2
26960 .set dsp
26961 madd $ac3,$4,$5
26962 maddu $ac3,$4,$5
26963 msub $ac3,$4,$5
26964 msubu $ac3,$4,$5
26965 mult $ac3,$4,$5
26966 multu $ac3,$4,$5' > conftest.s
26967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26969 (eval $ac_try) 2>&5
26970 ac_status=$?
26971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26972 test $ac_status = 0; }; }
26973 then
26974 gcc_cv_as_mips_dspr1_mult=yes
26975 else
26976 echo "configure: failed program was" >&5
26977 cat conftest.s >&5
26979 rm -f conftest.o conftest.s
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26983 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26984 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26986 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26991 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26992 gcc_cv_as_ld_jalr_reloc=no
26993 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26994 if test $in_tree_ld = yes ; then
26995 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 \
26996 && test $in_tree_ld_is_elf = yes; then
26997 gcc_cv_as_ld_jalr_reloc=yes
26999 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27000 echo ' .ent x' > conftest.s
27001 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27002 echo ' lw $25,%call16(y)($28)' >> conftest.s
27003 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27004 echo '1: jalr $25' >> conftest.s
27005 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27006 echo '1: jalr $25' >> conftest.s
27007 echo ' .end x' >> conftest.s
27008 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27009 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27010 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27011 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27012 gcc_cv_as_ld_jalr_reloc=yes
27015 rm -f conftest.*
27018 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27019 if test x$target_cpu_default = x; then
27020 target_cpu_default=MASK_RELAX_PIC_CALLS
27021 else
27022 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27026 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27029 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27030 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27031 $as_echo_n "(cached) " >&6
27032 else
27033 gcc_cv_ld_mips_personality_relaxation=no
27034 if test $in_tree_ld = yes ; then
27035 if test "$gcc_cv_gld_major_version" -eq 2 \
27036 -a "$gcc_cv_gld_minor_version" -ge 21 \
27037 -o "$gcc_cv_gld_major_version" -gt 2; then
27038 gcc_cv_ld_mips_personality_relaxation=yes
27040 elif test x$gcc_cv_as != x \
27041 -a x$gcc_cv_ld != x \
27042 -a x$gcc_cv_readelf != x ; then
27043 cat > conftest.s <<EOF
27044 .cfi_startproc
27045 .cfi_personality 0x80,indirect_ptr
27046 .ent test
27047 test:
27049 .end test
27050 .cfi_endproc
27052 .section .data,"aw",@progbits
27053 indirect_ptr:
27054 .dc.a personality
27056 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27057 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27058 if $gcc_cv_readelf -d conftest 2>&1 \
27059 | grep TEXTREL > /dev/null 2>&1; then
27061 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27062 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27064 else
27065 gcc_cv_ld_mips_personality_relaxation=yes
27069 rm -f conftest.s conftest.o conftest
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27072 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27073 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27075 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27080 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27081 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27082 $as_echo_n "(cached) " >&6
27083 else
27084 gcc_cv_as_mips_nan=no
27085 if test x$gcc_cv_as != x; then
27086 $as_echo '' > conftest.s
27087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27089 (eval $ac_try) 2>&5
27090 ac_status=$?
27091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27092 test $ac_status = 0; }; }
27093 then
27094 gcc_cv_as_mips_nan=yes
27095 else
27096 echo "configure: failed program was" >&5
27097 cat conftest.s >&5
27099 rm -f conftest.o conftest.s
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27103 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27104 if test $gcc_cv_as_mips_nan = yes; then
27106 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27109 if test x$gcc_cv_as_mips_nan = xno \
27110 && test x$with_nan != x; then
27111 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27114 s390*-*-*)
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27116 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27117 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27118 $as_echo_n "(cached) " >&6
27119 else
27120 gcc_cv_as_s390_gnu_attribute=no
27121 if test $in_tree_gas = yes; then
27122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27123 then gcc_cv_as_s390_gnu_attribute=yes
27125 elif test x$gcc_cv_as != x; then
27126 $as_echo '.gnu_attribute 8,1' > conftest.s
27127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27129 (eval $ac_try) 2>&5
27130 ac_status=$?
27131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27132 test $ac_status = 0; }; }
27133 then
27134 gcc_cv_as_s390_gnu_attribute=yes
27135 else
27136 echo "configure: failed program was" >&5
27137 cat conftest.s >&5
27139 rm -f conftest.o conftest.s
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27143 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27144 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27146 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27150 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27151 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27152 $as_echo_n "(cached) " >&6
27153 else
27154 gcc_cv_as_s390_machine_machinemode=no
27155 if test $in_tree_gas = yes; then
27156 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27157 then gcc_cv_as_s390_machine_machinemode=yes
27159 elif test x$gcc_cv_as != x; then
27160 $as_echo ' .machinemode push
27161 .machinemode pop
27162 .machine push
27163 .machine pop' > conftest.s
27164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27166 (eval $ac_try) 2>&5
27167 ac_status=$?
27168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27169 test $ac_status = 0; }; }
27170 then
27171 gcc_cv_as_s390_machine_machinemode=yes
27172 else
27173 echo "configure: failed program was" >&5
27174 cat conftest.s >&5
27176 rm -f conftest.o conftest.s
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27180 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27181 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27183 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27187 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27188 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27189 $as_echo_n "(cached) " >&6
27190 else
27191 gcc_cv_as_s390_architecture_modifiers=no
27192 if test $in_tree_gas = yes; then
27193 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27194 then gcc_cv_as_s390_architecture_modifiers=yes
27196 elif test x$gcc_cv_as != x; then
27197 $as_echo ' .machine z13+vx ' > conftest.s
27198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27200 (eval $ac_try) 2>&5
27201 ac_status=$?
27202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27203 test $ac_status = 0; }; }
27204 then
27205 gcc_cv_as_s390_architecture_modifiers=yes
27206 else
27207 echo "configure: failed program was" >&5
27208 cat conftest.s >&5
27210 rm -f conftest.o conftest.s
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27214 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27215 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27217 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27221 esac
27223 # Mips and HP-UX need the GNU assembler.
27224 # Linux on IA64 might be able to use the Intel assembler.
27226 case "$target" in
27227 mips*-*-* | *-*-hpux* )
27228 if test x$gas_flag = xyes \
27229 || test x"$host" != x"$build" \
27230 || test ! -x "$gcc_cv_as" \
27231 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27233 else
27234 echo "*** This configuration requires the GNU assembler" >&2
27235 exit 1
27238 esac
27240 # ??? Not all targets support dwarf2 debug_line, even within a version
27241 # of gas. Moreover, we need to emit a valid instruction to trigger any
27242 # info to the output file. So, as supported targets are added to gas 2.11,
27243 # add some instruction here to (also) show we expect this might work.
27244 # ??? Once 2.11 is released, probably need to add first known working
27245 # version to the per-target configury.
27246 case "$cpu_type" in
27247 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27248 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27249 | visium | xstormy16 | xtensa)
27250 insn="nop"
27252 ia64 | s390)
27253 insn="nop 0"
27255 mmix)
27256 insn="swym 0"
27258 esac
27259 if test x"$insn" != x; then
27260 conftest_s="\
27261 .file 1 \"conftest.s\"
27262 .loc 1 3 0
27263 $insn"
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27265 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27266 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27267 $as_echo_n "(cached) " >&6
27268 else
27269 gcc_cv_as_dwarf2_debug_line=no
27270 if test $in_tree_gas = yes; then
27271 if test $in_tree_gas_is_elf = yes \
27272 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27273 then gcc_cv_as_dwarf2_debug_line=yes
27275 elif test x$gcc_cv_as != x; then
27276 $as_echo "$conftest_s" > conftest.s
27277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27279 (eval $ac_try) 2>&5
27280 ac_status=$?
27281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27282 test $ac_status = 0; }; }
27283 then
27284 if test x$gcc_cv_objdump != x \
27285 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27286 | grep debug_line > /dev/null 2>&1; then
27287 gcc_cv_as_dwarf2_debug_line=yes
27289 else
27290 echo "configure: failed program was" >&5
27291 cat conftest.s >&5
27293 rm -f conftest.o conftest.s
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27297 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27300 # The .debug_line file table must be in the exact order that
27301 # we specified the files, since these indices are also used
27302 # by DW_AT_decl_file. Approximate this test by testing if
27303 # the assembler bitches if the same index is assigned twice.
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27305 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27306 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27307 $as_echo_n "(cached) " >&6
27308 else
27309 gcc_cv_as_dwarf2_file_buggy=no
27310 if test x$gcc_cv_as != x; then
27311 $as_echo ' .file 1 "foo.s"
27312 .file 1 "bar.s"' > conftest.s
27313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27318 test $ac_status = 0; }; }
27319 then
27320 gcc_cv_as_dwarf2_file_buggy=yes
27321 else
27322 echo "configure: failed program was" >&5
27323 cat conftest.s >&5
27325 rm -f conftest.o conftest.s
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27329 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27332 if test $gcc_cv_as_dwarf2_debug_line = yes \
27333 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27335 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27340 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27341 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27342 $as_echo_n "(cached) " >&6
27343 else
27344 gcc_cv_as_gdwarf2_flag=no
27345 if test $in_tree_gas = yes; then
27346 if test $in_tree_gas_is_elf = yes \
27347 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27348 then gcc_cv_as_gdwarf2_flag=yes
27350 elif test x$gcc_cv_as != x; then
27351 $as_echo "$insn" > conftest.s
27352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27354 (eval $ac_try) 2>&5
27355 ac_status=$?
27356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27357 test $ac_status = 0; }; }
27358 then
27359 gcc_cv_as_gdwarf2_flag=yes
27360 else
27361 echo "configure: failed program was" >&5
27362 cat conftest.s >&5
27364 rm -f conftest.o conftest.s
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27368 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27369 if test $gcc_cv_as_gdwarf2_flag = yes; then
27371 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27376 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27377 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27378 $as_echo_n "(cached) " >&6
27379 else
27380 gcc_cv_as_gstabs_flag=no
27381 if test $in_tree_gas = yes; then
27382 if test $in_tree_gas_is_elf = yes \
27383 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27384 then gcc_cv_as_gstabs_flag=yes
27386 elif test x$gcc_cv_as != x; then
27387 $as_echo "$insn" > conftest.s
27388 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27390 (eval $ac_try) 2>&5
27391 ac_status=$?
27392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27393 test $ac_status = 0; }; }
27394 then
27395 gcc_cv_as_gstabs_flag=yes
27396 else
27397 echo "configure: failed program was" >&5
27398 cat conftest.s >&5
27400 rm -f conftest.o conftest.s
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27404 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27405 if test $gcc_cv_as_gstabs_flag = yes; then
27407 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27412 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27413 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27414 $as_echo_n "(cached) " >&6
27415 else
27416 gcc_cv_as_debug_prefix_map_flag=no
27417 if test $in_tree_gas = yes; then
27418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27419 then gcc_cv_as_debug_prefix_map_flag=yes
27421 elif test x$gcc_cv_as != x; then
27422 $as_echo "$insn" > conftest.s
27423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27425 (eval $ac_try) 2>&5
27426 ac_status=$?
27427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27428 test $ac_status = 0; }; }
27429 then
27430 gcc_cv_as_debug_prefix_map_flag=yes
27431 else
27432 echo "configure: failed program was" >&5
27433 cat conftest.s >&5
27435 rm -f conftest.o conftest.s
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27439 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27440 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27442 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27448 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27449 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27450 $as_echo_n "(cached) " >&6
27451 else
27452 gcc_cv_as_compress_debug=no
27453 if test x$gcc_cv_as != x; then
27454 $as_echo '' > conftest.s
27455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27457 (eval $ac_try) 2>&5
27458 ac_status=$?
27459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27460 test $ac_status = 0; }; }
27461 then
27462 # gas compiled without zlib cannot compress debug sections and warns
27463 # about it, but still exits successfully. So check for this, too.
27464 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27465 then
27466 gcc_cv_as_compress_debug=0
27467 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27468 then
27469 gcc_cv_as_compress_debug=1
27470 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27471 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27472 else
27473 gcc_cv_as_compress_debug=0
27474 # FIXME: Future gas versions will support ELF gABI style via
27475 # --compress-debug-sections[=type].
27477 else
27478 echo "configure: failed program was" >&5
27479 cat conftest.s >&5
27481 rm -f conftest.o conftest.s
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27485 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27488 cat >>confdefs.h <<_ACEOF
27489 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27490 _ACEOF
27493 cat >>confdefs.h <<_ACEOF
27494 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27495 _ACEOF
27498 cat >>confdefs.h <<_ACEOF
27499 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27500 _ACEOF
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27504 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27505 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27506 $as_echo_n "(cached) " >&6
27507 else
27508 gcc_cv_as_lcomm_with_alignment=no
27509 if test x$gcc_cv_as != x; then
27510 $as_echo '.lcomm bar,4,16' > conftest.s
27511 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27513 (eval $ac_try) 2>&5
27514 ac_status=$?
27515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27516 test $ac_status = 0; }; }
27517 then
27518 gcc_cv_as_lcomm_with_alignment=yes
27519 else
27520 echo "configure: failed program was" >&5
27521 cat conftest.s >&5
27523 rm -f conftest.o conftest.s
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27527 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27528 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27530 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27534 if test x$with_sysroot = x && test x$host = x$target \
27535 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27536 && test "$prefix" != "NONE"; then
27538 cat >>confdefs.h <<_ACEOF
27539 #define PREFIX_INCLUDE_DIR "$prefix/include"
27540 _ACEOF
27544 # Determine the version of glibc, if any, used on the target.
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27546 $as_echo_n "checking for target glibc version... " >&6; }
27548 # Check whether --with-glibc-version was given.
27549 if test "${with_glibc_version+set}" = set; then :
27550 withval=$with_glibc_version;
27551 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27552 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27553 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27554 else
27555 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27557 else
27559 glibc_version_major=0
27560 glibc_version_minor=0
27561 if test -f $target_header_dir/features.h \
27562 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27563 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27564 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27565 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27570 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27572 cat >>confdefs.h <<_ACEOF
27573 #define TARGET_GLIBC_MAJOR $glibc_version_major
27574 _ACEOF
27577 cat >>confdefs.h <<_ACEOF
27578 #define TARGET_GLIBC_MINOR $glibc_version_minor
27579 _ACEOF
27582 # Check whether --enable-gnu-unique-object was given.
27583 if test "${enable_gnu_unique_object+set}" = set; then :
27584 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27585 yes | no) ;;
27586 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27587 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27588 esac
27589 else
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27591 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27592 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27593 $as_echo_n "(cached) " >&6
27594 else
27595 gcc_cv_as_gnu_unique_object=no
27596 if test $in_tree_gas = yes; then
27597 if test $in_tree_gas_is_elf = yes \
27598 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27599 then gcc_cv_as_gnu_unique_object=yes
27601 elif test x$gcc_cv_as != x; then
27602 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27605 (eval $ac_try) 2>&5
27606 ac_status=$?
27607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27608 test $ac_status = 0; }; }
27609 then
27610 gcc_cv_as_gnu_unique_object=yes
27611 else
27612 echo "configure: failed program was" >&5
27613 cat conftest.s >&5
27615 rm -f conftest.o conftest.s
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27619 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27620 if test $gcc_cv_as_gnu_unique_object = yes; then
27621 # We need to unquote above to to use the definition from config.gcc.
27622 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27624 if test $glibc_version_major -gt 2 \
27625 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27626 enable_gnu_unique_object=yes
27632 if test x$enable_gnu_unique_object = xyes; then
27634 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27639 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27640 if test "${gcc_cv_as_line_zero+set}" = set; then :
27641 $as_echo_n "(cached) " >&6
27642 else
27643 gcc_cv_as_line_zero=no
27644 if test $in_tree_gas = yes; then
27645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27646 then gcc_cv_as_line_zero=yes
27648 elif test "x$gcc_cv_as" != x; then
27649 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27650 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27652 (eval $ac_try) 2>&5
27653 ac_status=$?
27654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27655 test $ac_status = 0; }; } &&
27656 test "x`cat conftest.out`" = x
27657 then
27658 gcc_cv_as_line_zero=yes
27659 else
27660 echo "configure: failed program was" >&5
27661 cat conftest.s >&5
27662 echo "configure: error output was" >&5
27663 cat conftest.out >&5
27665 rm -f conftest.o conftest.s conftest.out
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27669 $as_echo "$gcc_cv_as_line_zero" >&6; }
27670 if test "x$gcc_cv_as_line_zero" = xyes; then
27672 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27677 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27678 gcc_cv_ld_eh_frame_hdr=no
27679 if test $in_tree_ld = yes ; then
27680 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 \
27681 && test $in_tree_ld_is_elf = yes; then
27682 gcc_cv_ld_eh_frame_hdr=yes
27684 elif test x$gcc_cv_ld != x; then
27685 if echo "$ld_ver" | grep GNU > /dev/null; then
27686 # Check if linker supports --eh-frame-hdr option
27687 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27688 gcc_cv_ld_eh_frame_hdr=yes
27690 else
27691 case "$target" in
27692 *-*-solaris2*)
27693 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27694 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27695 gcc_cv_ld_eh_frame_hdr=yes
27698 esac
27702 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27704 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27708 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27711 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27712 gcc_cv_ld_eh_frame_ciev3=no
27713 if test $in_tree_ld = yes ; then
27714 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 \
27715 && test $in_tree_ld_is_elf = yes; then
27716 gcc_cv_ld_eh_frame_ciev3=yes
27718 elif test x$gcc_cv_ld != x; then
27719 if echo "$ld_ver" | grep GNU > /dev/null; then
27720 gcc_cv_ld_eh_frame_ciev3=yes
27721 if test 0"$ld_date" -lt 20040513; then
27722 if test -n "$ld_date"; then
27723 # If there was date string, but was earlier than 2004-05-13, fail
27724 gcc_cv_ld_eh_frame_ciev3=no
27725 elif test "$ld_vers_major" -lt 2; then
27726 gcc_cv_ld_eh_frame_ciev3=no
27727 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27728 gcc_cv_ld_eh_frame_ciev3=no
27731 else
27732 case "$target" in
27733 *-*-solaris2*)
27734 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27735 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27736 gcc_cv_ld_eh_frame_ciev3=yes
27739 esac
27743 cat >>confdefs.h <<_ACEOF
27744 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27745 _ACEOF
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27748 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27751 $as_echo_n "checking linker position independent executable support... " >&6; }
27752 gcc_cv_ld_pie=no
27753 if test $in_tree_ld = yes ; then
27754 case "$target" in
27755 # Full PIE support on Solaris was only introduced in gld 2.26.
27756 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27757 *) gcc_gld_pie_min_version=15 ;;
27758 esac
27759 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 \
27760 && test $in_tree_ld_is_elf = yes; then
27761 gcc_cv_ld_pie=yes
27763 elif test x$gcc_cv_ld != x; then
27764 # Check if linker supports -pie option
27765 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27766 gcc_cv_ld_pie=yes
27767 case "$target" in
27768 *-*-solaris2*)
27769 if echo "$ld_ver" | grep GNU > /dev/null \
27770 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27771 gcc_cv_ld_pie=no
27774 esac
27775 else
27776 case "$target" in
27777 *-*-solaris2.1[1-9]*)
27778 # Solaris 11.x and Solaris 12 added PIE support.
27779 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27780 gcc_cv_ld_pie=yes
27783 esac
27786 if test x"$gcc_cv_ld_pie" = xyes; then
27788 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27792 $as_echo "$gcc_cv_ld_pie" >&6; }
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27795 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27796 gcc_cv_ld_pie_copyreloc=no
27797 if test $gcc_cv_ld_pie = yes ; then
27798 if test $in_tree_ld = yes ; then
27799 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
27800 gcc_cv_ld_pie_copyreloc=yes
27802 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27803 # Check if linker supports -pie option with copy reloc
27804 case "$target" in
27805 i?86-*-linux* | x86_64-*-linux*)
27806 cat > conftest1.s <<EOF
27807 .globl a_glob
27808 .data
27809 .type a_glob, @object
27810 .size a_glob, 4
27811 a_glob:
27812 .long 2
27814 cat > conftest2.s <<EOF
27815 .text
27816 .globl main
27817 .type main, @function
27818 main:
27819 movl %eax, a_glob(%rip)
27820 .size main, .-main
27821 .globl ptr
27822 .section .data.rel,"aw",@progbits
27823 .type ptr, @object
27824 ptr:
27825 .quad a_glob
27827 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27828 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27829 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27830 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27831 gcc_cv_ld_pie_copyreloc=yes
27833 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27835 esac
27839 cat >>confdefs.h <<_ACEOF
27840 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27841 _ACEOF
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27844 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27847 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27848 gcc_cv_ld_eh_gc_sections=no
27849 if test $in_tree_ld = yes ; then
27850 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 \
27851 && test $in_tree_ld_is_elf = yes; then
27852 gcc_cv_ld_eh_gc_sections=yes
27854 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27855 cat > conftest.s <<EOF
27856 .section .text
27857 .globl _start
27858 .type _start, @function
27859 _start:
27860 .long foo
27861 .size _start, .-_start
27862 .section .text.foo,"ax",@progbits
27863 .type foo, @function
27864 foo:
27865 .long 0
27866 .size foo, .-foo
27867 .section .gcc_except_table.foo,"a",@progbits
27868 .L0:
27869 .long 0
27870 .section .eh_frame,"a",@progbits
27871 .long .L0
27873 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27874 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27875 | grep "gc-sections option ignored" > /dev/null; then
27876 gcc_cv_ld_eh_gc_sections=no
27877 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27878 | grep gcc_except_table > /dev/null; then
27879 gcc_cv_ld_eh_gc_sections=yes
27880 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27881 if test x$gcc_cv_as_comdat_group != xyes; then
27882 gcc_cv_ld_eh_gc_sections=no
27883 cat > conftest.s <<EOF
27884 .section .text
27885 .globl _start
27886 .type _start, @function
27887 _start:
27888 .long foo
27889 .size _start, .-_start
27890 .section .gnu.linkonce.t.foo,"ax",@progbits
27891 .type foo, @function
27892 foo:
27893 .long 0
27894 .size foo, .-foo
27895 .section .gcc_except_table.foo,"a",@progbits
27896 .L0:
27897 .long 0
27898 .section .eh_frame,"a",@progbits
27899 .long .L0
27901 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27902 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27903 | grep "gc-sections option ignored" > /dev/null; then
27904 gcc_cv_ld_eh_gc_sections=no
27905 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27906 | grep gcc_except_table > /dev/null; then
27907 gcc_cv_ld_eh_gc_sections=yes
27913 rm -f conftest.s conftest.o conftest
27915 case "$target" in
27916 hppa*-*-linux*)
27917 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27918 gcc_cv_ld_eh_gc_sections=no
27920 esac
27921 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27923 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27927 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27930 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27931 gcc_cv_ld_eh_gc_sections_bug=no
27932 if test $in_tree_ld = yes ; then
27933 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 \
27934 && test $in_tree_ld_is_elf = yes; then
27935 gcc_cv_ld_eh_gc_sections_bug=yes
27937 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
27938 gcc_cv_ld_eh_gc_sections_bug=yes
27939 cat > conftest.s <<EOF
27940 .section .text
27941 .globl _start
27942 .type _start, @function
27943 _start:
27944 .long foo
27945 .size _start, .-_start
27946 .section .text.startup.foo,"ax",@progbits
27947 .type foo, @function
27948 foo:
27949 .long 0
27950 .size foo, .-foo
27951 .section .gcc_except_table.foo,"a",@progbits
27952 .L0:
27953 .long 0
27954 .section .eh_frame,"a",@progbits
27955 .long .L0
27957 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27958 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27959 | grep "gc-sections option ignored" > /dev/null; then
27961 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27962 | grep gcc_except_table > /dev/null; then
27963 gcc_cv_ld_eh_gc_sections_bug=no
27966 rm -f conftest.s conftest.o conftest
27968 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27970 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27974 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27977 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27978 # gold/gld support compressed debug sections since binutils 2.19/2.21
27979 if test $in_tree_ld = yes ; then
27980 gcc_cv_ld_compress_debug=0
27981 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 \
27982 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27983 gcc_cv_ld_compress_debug=2
27984 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27985 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 \
27986 && test $in_tree_ld_is_elf = yes; then
27987 gcc_cv_ld_compress_debug=1
27989 elif echo "$ld_ver" | grep GNU > /dev/null; then
27990 gcc_cv_ld_compress_debug=1
27991 if test 0"$ld_date" -lt 20050308; then
27992 if test -n "$ld_date"; then
27993 # If there was date string, but was earlier than 2005-03-08, fail
27994 gcc_cv_ld_compress_debug=0
27995 elif test "$ld_vers_major" -lt 2; then
27996 gcc_cv_ld_compress_debug=0
27997 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27998 gcc_cv_ld_compress_debug=0
28001 if test $ld_is_gold = yes; then
28002 gcc_cv_ld_compress_debug=2
28003 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28005 else
28006 case "${target}" in
28007 *-*-solaris2*)
28008 # Introduced in Solaris 11.2.
28009 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28010 gcc_cv_ld_compress_debug=3
28011 gcc_cv_ld_compress_debug_option="-z compress-sections"
28012 else
28013 gcc_cv_ld_compress_debug=0
28017 # Assume linkers other than GNU ld don't support compessed debug
28018 # sections.
28019 gcc_cv_ld_compress_debug=0
28021 esac
28024 cat >>confdefs.h <<_ACEOF
28025 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28026 _ACEOF
28029 cat >>confdefs.h <<_ACEOF
28030 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28031 _ACEOF
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28034 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28036 # --------
28037 # UNSORTED
28038 # --------
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28041 $as_echo_n "checking linker --as-needed support... " >&6; }
28042 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28043 $as_echo_n "(cached) " >&6
28044 else
28045 gcc_cv_ld_as_needed=no
28046 gcc_cv_ld_as_needed_option='--as-needed'
28047 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28048 if test $in_tree_ld = yes ; then
28049 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 \
28050 && test $in_tree_ld_is_elf = yes; then
28051 gcc_cv_ld_as_needed=yes
28053 elif test x$gcc_cv_ld != x; then
28054 # Check if linker supports --as-needed and --no-as-needed options
28055 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28056 gcc_cv_ld_as_needed=yes
28057 else
28058 case "$target" in
28059 # Solaris 2 ld always supports -z ignore/-z record.
28060 *-*-solaris2*)
28061 gcc_cv_ld_as_needed=yes
28062 gcc_cv_ld_as_needed_option="-z ignore"
28063 gcc_cv_ld_no_as_needed_option="-z record"
28065 esac
28068 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28069 # dl_iterate_phdr, i.e. since Solaris 11.
28070 case "$target" in
28071 *-*-solaris2.1[1-9]*)
28072 case "$target" in
28073 i?86-*-* | x86_64-*-*)
28074 if echo "$ld_ver" | grep GNU > /dev/null; then
28075 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28076 gcc_cv_ld_as_needed=no
28079 esac
28081 *-*-solaris2*)
28082 gcc_cv_ld_as_needed=no
28084 esac
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28088 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28089 if test x"$gcc_cv_ld_as_needed" = xyes; then
28091 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28094 cat >>confdefs.h <<_ACEOF
28095 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28096 _ACEOF
28099 cat >>confdefs.h <<_ACEOF
28100 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28101 _ACEOF
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28106 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28107 saved_LDFLAGS="$LDFLAGS"
28108 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28109 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28111 /* end confdefs.h. */
28112 int main(void) {return 0;}
28113 _ACEOF
28114 if ac_fn_cxx_try_link "$LINENO"; then :
28115 gcc_cv_ld_clearcap=yes; break
28116 else
28117 gcc_cv_ld_clearcap=no
28119 rm -f core conftest.err conftest.$ac_objext \
28120 conftest$ac_exeext conftest.$ac_ext
28121 done
28122 LDFLAGS="$saved_LDFLAGS"
28123 if test "x$gcc_cv_ld_clearcap" = xyes; then
28125 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28127 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28131 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28133 case "$target:$tm_file" in
28134 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28135 case "$target" in
28136 *le-*-linux*)
28137 emul_name="-melf64lppc"
28139 *-*-linux*)
28140 emul_name="-melf64ppc"
28142 *-*-freebsd*)
28143 emul_name="-melf64ppc_fbsd"
28145 esac
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28147 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28148 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28149 $as_echo_n "(cached) " >&6
28150 else
28151 gcc_cv_ld_no_dot_syms=no
28152 if test x"$ld_is_gold" = xyes; then
28153 gcc_cv_ld_no_dot_syms=yes
28154 elif test $in_tree_ld = yes ; then
28155 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
28156 gcc_cv_ld_no_dot_syms=yes
28158 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28159 cat > conftest1.s <<EOF
28160 .text
28161 bl .foo
28163 cat > conftest2.s <<EOF
28164 .section ".opd","aw"
28165 .align 3
28166 .globl foo
28167 .type foo,@function
28168 foo:
28169 .quad .LEfoo,.TOC.@tocbase,0
28170 .text
28171 .LEfoo:
28173 .size foo,.-.LEfoo
28175 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28176 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28177 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28178 gcc_cv_ld_no_dot_syms=yes
28180 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28185 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28186 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28188 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28193 $as_echo_n "checking linker large toc support... " >&6; }
28194 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28195 $as_echo_n "(cached) " >&6
28196 else
28197 gcc_cv_ld_large_toc=no
28198 if test x"$ld_is_gold" = xyes; then
28199 gcc_cv_ld_large_toc=yes
28200 elif test $in_tree_ld = yes ; then
28201 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
28202 gcc_cv_ld_large_toc=yes
28204 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28205 cat > conftest.s <<EOF
28206 .section ".tbss","awT",@nobits
28207 .align 3
28208 ie0: .space 8
28209 .global _start
28210 .text
28211 _start:
28212 addis 9,13,ie0@got@tprel@ha
28213 ld 9,ie0@got@tprel@l(9)
28215 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28216 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28217 gcc_cv_ld_large_toc=yes
28219 rm -f conftest conftest.o conftest.s
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28224 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28225 if test x"$gcc_cv_ld_large_toc" = xyes; then
28227 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28232 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28233 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28234 $as_echo_n "(cached) " >&6
28235 else
28236 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28237 cat > conftest.s <<EOF
28238 .global _start
28239 .text
28240 _start:
28241 addis 9,2,x@got@ha
28242 .section .data.rel.ro,"aw",@progbits
28243 .p2align 16
28244 .space 32768
28245 x: .quad .TOC.
28247 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28248 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28249 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)) }'`
28251 rm -f conftest conftest.o conftest.s
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28256 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28257 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28259 cat >>confdefs.h <<_ACEOF
28260 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28261 _ACEOF
28265 esac
28267 case "$target" in
28268 *-*-aix*)
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28270 $as_echo_n "checking linker large toc support... " >&6; }
28271 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28272 $as_echo_n "(cached) " >&6
28273 else
28274 gcc_cv_ld_large_toc=no
28275 if test x$gcc_cv_as != x ; then
28276 cat > conftest.s <<EOF
28277 .toc
28278 LC..1:
28279 .tc a[TC],a[RW]
28280 .extern a[RW]
28281 .csect .text[PR]
28282 .largetoctest:
28283 addis 9,LC..1@u(2)
28284 ld 3,LC..1@l(9)
28286 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28287 gcc_cv_ld_large_toc=yes
28289 rm -f conftest conftest.o conftest.s
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28294 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28295 if test x"$gcc_cv_ld_large_toc" = xyes; then
28297 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28301 esac
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28304 $as_echo_n "checking linker --build-id support... " >&6; }
28305 if test "${gcc_cv_ld_buildid+set}" = set; then :
28306 $as_echo_n "(cached) " >&6
28307 else
28308 gcc_cv_ld_buildid=no
28309 if test $in_tree_ld = yes ; then
28310 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28311 "$gcc_cv_gld_minor_version" -ge 18 -o \
28312 "$gcc_cv_gld_major_version" -gt 2 \
28313 && test $in_tree_ld_is_elf = yes; then
28314 gcc_cv_ld_buildid=yes
28316 elif test x$gcc_cv_ld != x; then
28317 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28318 gcc_cv_ld_buildid=yes
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28323 $as_echo "$gcc_cv_ld_buildid" >&6; }
28324 if test x"$gcc_cv_ld_buildid" = xyes; then
28326 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28330 # Check whether --enable-linker-build-id was given.
28331 if test "${enable_linker_build_id+set}" = set; then :
28332 enableval=$enable_linker_build_id;
28333 else
28334 enable_linker_build_id=no
28338 if test x"$enable_linker_build_id" = xyes; then
28339 if test x"$gcc_cv_ld_buildid" = xyes; then
28341 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28343 else
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28345 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28349 # In binutils 2.21, GNU ld gained support for new emulations fully
28350 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28352 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28353 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28354 $as_echo_n "(cached) " >&6
28355 else
28356 gcc_cv_ld_sol2_emulation=no
28357 if test $in_tree_ld = yes ; then
28358 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28359 "$gcc_cv_gld_minor_version" -ge 21 -o \
28360 "$gcc_cv_gld_major_version" -gt 2 \
28361 && test $in_tree_ld_is_elf = yes; then
28362 gcc_cv_ld_sol2_emulation=yes
28364 elif test x$gcc_cv_ld != x; then
28365 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28366 grep _sol2 > /dev/null; then
28367 gcc_cv_ld_sol2_emulation=yes
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28372 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28373 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28375 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28380 $as_echo_n "checking linker --sysroot support... " >&6; }
28381 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28382 $as_echo_n "(cached) " >&6
28383 else
28384 gcc_cv_ld_sysroot=no
28385 if test $in_tree_ld = yes ; then
28386 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
28387 gcc_cv_ld_sysroot=yes
28389 elif test x$gcc_cv_ld != x; then
28390 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28391 gcc_cv_ld_sysroot=yes
28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28396 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28397 if test x"$gcc_cv_ld_sysroot" = xyes; then
28399 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28403 case $target in
28404 *-*-solaris2*)
28405 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28407 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28408 if test "${gcc_cv_solaris_crts+set}" = set; then :
28409 $as_echo_n "(cached) " >&6
28410 else
28411 gcc_cv_solaris_crts=no
28412 if test x$host != x$target; then
28413 if test "x$with_sysroot" = xyes; then
28414 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28415 else
28416 target_sysroot="${with_sysroot}"
28419 target_libdir="$target_sysroot/usr/lib"
28420 # At the time they were added, gcrt1.o became a symlink for backwards
28421 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28422 case $target in
28423 i?86-*-solaris2* | x86_64-*-solaris2*)
28424 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28426 sparc*-*-solaris2*)
28427 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28429 esac
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28432 $as_echo "$gcc_cv_solaris_crts" >&6; }
28434 esac
28435 if test x$gcc_cv_solaris_crts = xyes; then
28437 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28441 # Test for stack protector support in target C library.
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28443 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28444 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28445 $as_echo_n "(cached) " >&6
28446 else
28447 gcc_cv_libc_provides_ssp=no
28448 case "$target" in
28449 *-*-musl*)
28450 # All versions of musl provide stack protector
28451 gcc_cv_libc_provides_ssp=yes;;
28452 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28453 # glibc 2.4 and later provides __stack_chk_fail and
28454 # either __stack_chk_guard, or TLS access to stack guard canary.
28456 if test $glibc_version_major -gt 2 \
28457 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28458 gcc_cv_libc_provides_ssp=yes
28459 else
28461 if test -f $target_header_dir/features.h \
28462 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28463 $target_header_dir/features.h > /dev/null; then
28464 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28465 $target_header_dir/features.h > /dev/null && \
28466 test -f $target_header_dir/bits/uClibc_config.h && \
28467 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28468 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28469 gcc_cv_libc_provides_ssp=yes
28471 # all versions of Bionic support stack protector
28472 elif test -f $target_header_dir/sys/cdefs.h \
28473 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28474 $target_header_dir/sys/cdefs.h > /dev/null; then
28475 gcc_cv_libc_provides_ssp=yes
28479 *-*-gnu*)
28480 # Avoid complicated tests (see
28481 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28482 # simply assert that glibc does provide this, which is true for all
28483 # realistically usable GNU/Hurd configurations.
28484 # All supported versions of musl provide it as well
28485 gcc_cv_libc_provides_ssp=yes;;
28486 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28487 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28488 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28489 gcc_cv_libc_provides_ssp=yes
28490 else
28491 echo "no __stack_chk_fail on this target"
28495 *) gcc_cv_libc_provides_ssp=no ;;
28496 esac
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28499 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28501 if test x$gcc_cv_libc_provides_ssp = xyes; then
28503 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28507 # Check whether --enable-default-ssp was given.
28508 # Check whether --enable-default-ssp was given.
28509 if test "${enable_default_ssp+set}" = set; then :
28510 enableval=$enable_default_ssp;
28511 if test x$gcc_cv_libc_provides_ssp = xyes; then
28512 case "$target" in
28513 ia64*-*-*) enable_default_ssp=no ;;
28514 *) enable_default_ssp=$enableval ;;
28515 esac
28516 else
28517 enable_default_ssp=no
28519 else
28520 enable_default_ssp=no
28523 if test x$enable_default_ssp = xyes ; then
28525 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28530 # Test for <sys/sdt.h> on the target.
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28533 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28534 have_sys_sdt_h=no
28535 if test -f $target_header_dir/sys/sdt.h; then
28536 have_sys_sdt_h=yes
28538 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28542 $as_echo "$have_sys_sdt_h" >&6; }
28544 # Check if TFmode long double should be used by default or not.
28545 # Some glibc targets used DFmode long double, but with glibc 2.4
28546 # and later they can use TFmode.
28547 case "$target" in
28548 powerpc*-*-linux* | \
28549 sparc*-*-linux* | \
28550 s390*-*-linux* | \
28551 alpha*-*-linux*)
28553 # Check whether --with-long-double-128 was given.
28554 if test "${with_long_double_128+set}" = set; then :
28555 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28556 else
28558 if test $glibc_version_major -gt 2 \
28559 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28560 gcc_cv_target_ldbl128=yes
28561 else
28563 gcc_cv_target_ldbl128=no
28564 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28565 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28566 && gcc_cv_target_ldbl128=yes
28572 esac
28573 if test x$gcc_cv_target_ldbl128 = xyes; then
28575 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28579 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28580 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28581 gcc_cv_libc_provides_hwcap_in_tcb=no
28582 case "$target" in
28583 powerpc*-*-linux*)
28585 if test $glibc_version_major -gt 2 \
28586 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28587 gcc_cv_libc_provides_hwcap_in_tcb=yes
28590 esac
28591 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28593 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28598 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28599 gcc_cv_target_dl_iterate_phdr=unknown
28600 case "$target" in
28601 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28602 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28603 # libdl there, both complicating its use and breaking compatibility
28604 # between Solaris 10 updates.
28605 *-*-solaris2.1[1-9]*)
28606 # <link.h> needs both a dl_iterate_phdr declaration and support for
28607 # compilation with largefile support.
28608 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28609 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28610 gcc_cv_target_dl_iterate_phdr=yes
28611 else
28612 gcc_cv_target_dl_iterate_phdr=no
28615 *-*-dragonfly* | *-*-freebsd*)
28616 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28617 gcc_cv_target_dl_iterate_phdr=yes
28618 else
28619 gcc_cv_target_dl_iterate_phdr=no
28622 *-linux-musl*)
28623 gcc_cv_target_dl_iterate_phdr=yes
28625 esac
28627 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28629 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28633 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28635 # We no longer support different GC mechanisms. Emit an error if
28636 # the user configures with --with-gc.
28638 # Check whether --with-gc was given.
28639 if test "${with_gc+set}" = set; then :
28640 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28644 # Libraries to use on the host. This will normally be set by the top
28645 # level Makefile. Here we simply capture the value for our Makefile.
28646 if test -z "${HOST_LIBS+set}"; then
28647 HOST_LIBS=
28651 # Use the system's zlib library.
28653 # Use the system's zlib library.
28654 zlibdir="-L\$(top_builddir)/../zlib"
28655 zlibinc="-I\$(top_srcdir)/../zlib"
28657 # Check whether --with-system-zlib was given.
28658 if test "${with_system_zlib+set}" = set; then :
28659 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28660 zlibdir=
28661 zlibinc=
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28672 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28673 # Check whether --enable-maintainer-mode was given.
28674 if test "${enable_maintainer_mode+set}" = set; then :
28675 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28676 else
28677 maintainer_mode=no
28681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28682 $as_echo "$maintainer_mode" >&6; }
28684 if test "$maintainer_mode" = "yes"; then
28685 MAINT=''
28686 else
28687 MAINT='#'
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28692 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28693 # Check whether --enable-link-mutex was given.
28694 if test "${enable_link_mutex+set}" = set; then :
28695 enableval=$enable_link_mutex; do_link_mutex=$enableval
28696 else
28697 do_link_mutex=no
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28701 $as_echo "$do_link_mutex" >&6; }
28703 if test "$do_link_mutex" = "yes"; then
28704 DO_LINK_MUTEX=true
28705 else
28706 DO_LINK_MUTEX=false
28710 # --------------
28711 # Language hooks
28712 # --------------
28714 # Make empty files to contain the specs and options for each language.
28715 # Then add #include lines to for a compiler that has specs and/or options.
28717 subdirs=
28718 lang_opt_files=
28719 lang_specs_files=
28720 lang_tree_files=
28721 # These (without "all_") are set in each config-lang.in.
28722 # `language' must be a single word so is spelled singularly.
28723 all_languages=
28724 all_compilers=
28725 all_outputs='Makefile'
28726 # List of language makefile fragments.
28727 all_lang_makefrags=
28728 # Additional files for gengtype
28729 all_gtfiles="$target_gtfiles"
28731 # These are the languages that are set in --enable-languages,
28732 # and are available in the GCC tree.
28733 all_selected_languages=
28735 # Add the language fragments.
28736 # Languages are added via two mechanisms. Some information must be
28737 # recorded in makefile variables, these are defined in config-lang.in.
28738 # We accumulate them and plug them into the main Makefile.
28739 # The other mechanism is a set of hooks for each of the main targets
28740 # like `clean', `install', etc.
28742 language_hooks="Make-hooks"
28744 for lang in ${srcdir}/*/config-lang.in
28746 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28748 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28749 if test "x$lang_alias" = x
28750 then
28751 echo "$lang doesn't set \$language." 1>&2
28752 exit 1
28754 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28755 subdirs="$subdirs $subdir"
28757 # $gcc_subdir is where the gcc integration files are to be found
28758 # for a language, both for internal compiler purposes (compiler
28759 # sources implementing front-end to GCC tree converters), and for
28760 # build infrastructure purposes (Make-lang.in, etc.)
28762 # This will be <subdir> (relative to $srcdir) if a line like
28763 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28764 # is found in <langdir>/config-lang.in, and will remain <langdir>
28765 # otherwise.
28767 # Except for the language alias (fetched above), the regular
28768 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28769 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28770 # only this and the language alias.
28772 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28773 if [ "$gcc_subdir" = "" ]; then
28774 gcc_subdir="$subdir"
28777 case ",$enable_languages," in
28778 *,$lang_alias,*)
28779 all_selected_languages="$all_selected_languages $lang_alias"
28780 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28781 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28784 esac
28786 language=
28787 boot_language=
28788 compilers=
28789 outputs=
28790 gtfiles=
28791 subdir_requires=
28792 . ${srcdir}/$gcc_subdir/config-lang.in
28793 if test "x$language" = x
28794 then
28795 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28796 exit 1
28799 ok=:
28800 case ",$enable_languages," in
28801 *,$lang_alias,*) ;;
28803 for i in $subdir_requires; do
28804 test -f "${srcdir}/$i/config-lang.in" && continue
28805 ok=false
28806 break
28807 done
28809 esac
28810 $ok || continue
28812 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28813 if test -f $srcdir/$gcc_subdir/lang.opt; then
28814 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28815 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28817 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28818 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28820 all_languages="$all_languages $language"
28821 all_compilers="$all_compilers $compilers"
28822 all_outputs="$all_outputs $outputs"
28823 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28824 case ",$enable_languages," in
28825 *,lto,*)
28827 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28829 enable_lto=yes
28832 *) ;;
28833 esac
28834 done
28836 check_languages=
28837 for language in $all_selected_languages
28839 check_languages="$check_languages check-$language"
28840 done
28842 # We link each language in with a set of hooks, reached indirectly via
28843 # lang.${target}. Only do so for selected languages.
28845 rm -f Make-hooks
28846 touch Make-hooks
28847 target_list="all.cross start.encap rest.encap tags \
28848 install-common install-man install-info install-pdf install-html dvi \
28849 pdf html uninstall info man srcextra srcman srcinfo \
28850 mostlyclean clean distclean maintainer-clean install-plugin"
28852 for t in $target_list
28855 for lang in $all_selected_languages
28857 x="$x $lang.$t"
28858 done
28859 echo "lang.$t: $x" >> Make-hooks
28860 done
28862 # --------
28863 # Option include files
28864 # --------
28866 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28867 option_includes="option-includes.mk"
28870 # --------
28871 # UNSORTED
28872 # --------
28874 # Create .gdbinit.
28876 echo "dir ." > .gdbinit
28877 echo "dir ${srcdir}" >> .gdbinit
28878 if test x$gdb_needs_out_file_path = xyes
28879 then
28880 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28882 if test "x$subdirs" != x; then
28883 for s in $subdirs
28885 echo "dir ${srcdir}/$s" >> .gdbinit
28886 done
28888 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28889 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28891 # Put a breakpoint on __asan_report_error to help with debugging buffer
28892 # overflow.
28893 case "$CFLAGS" in
28894 *-fsanitize=address*)
28895 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28897 esac
28899 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28903 # Find a directory in which to install a shared libgcc.
28905 # Check whether --enable-version-specific-runtime-libs was given.
28906 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28907 enableval=$enable_version_specific_runtime_libs;
28911 # Substitute configuration variables
28974 # Echo link setup.
28975 if test x${build} = x${host} ; then
28976 if test x${host} = x${target} ; then
28977 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28978 else
28979 echo "Links are now set up to build a cross-compiler" 1>&2
28980 echo " from ${host} to ${target}." 1>&2
28982 else
28983 if test x${host} = x${target} ; then
28984 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28985 echo " for ${target}." 1>&2
28986 else
28987 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28988 echo " from ${host} to ${target}." 1>&2
28997 if test "x${ISLLIBS}" != "x" ; then
28999 $as_echo "#define HAVE_isl 1" >>confdefs.h
29003 # Check whether isl_options_set_schedule_serialize_sccs is available;
29004 # it's new in isl 0.15.
29005 if test "x${ISLLIBS}" != "x" ; then
29006 saved_CXXFLAGS="$CXXFLAGS"
29007 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29008 saved_LIBS="$LIBS"
29009 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29012 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29014 /* end confdefs.h. */
29015 #include <isl/schedule.h>
29017 main ()
29019 isl_options_set_schedule_serialize_sccs (NULL, 0);
29021 return 0;
29023 _ACEOF
29024 if ac_fn_cxx_try_link "$LINENO"; then :
29025 ac_has_isl_options_set_schedule_serialize_sccs=yes
29026 else
29027 ac_has_isl_options_set_schedule_serialize_sccs=no
29029 rm -f core conftest.err conftest.$ac_objext \
29030 conftest$ac_exeext conftest.$ac_ext
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29032 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29034 LIBS="$saved_LIBS"
29035 CXXFLAGS="$saved_CXXFLAGS"
29037 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29039 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29044 # Check for plugin support
29045 # Check whether --enable-plugin was given.
29046 if test "${enable_plugin+set}" = set; then :
29047 enableval=$enable_plugin; enable_plugin=$enableval
29048 else
29049 enable_plugin=yes; default_plugin=yes
29053 pluginlibs=
29055 case "${host}" in
29056 *-*-darwin*)
29057 if test x$build = x$host; then
29058 export_sym_check="nm${exeext} -g"
29059 elif test x$host = x$target; then
29060 export_sym_check="$gcc_cv_nm -g"
29061 else
29062 export_sym_check=
29066 if test x$build = x$host; then
29067 export_sym_check="objdump${exeext} -T"
29068 elif test x$host = x$target; then
29069 export_sym_check="$gcc_cv_objdump -T"
29070 else
29071 export_sym_check=
29074 esac
29076 if test x"$enable_plugin" = x"yes"; then
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29079 $as_echo_n "checking for exported symbols... " >&6; }
29080 if test "x$export_sym_check" != x; then
29081 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29082 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29083 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29084 : # No need to use a flag
29085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29086 $as_echo "yes" >&6; }
29087 else
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29089 $as_echo "yes" >&6; }
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29091 $as_echo_n "checking for -rdynamic... " >&6; }
29092 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29093 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29094 plugin_rdynamic=yes
29095 pluginlibs="-rdynamic"
29096 else
29097 plugin_rdynamic=no
29098 enable_plugin=no
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29101 $as_echo "$plugin_rdynamic" >&6; }
29103 else
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29105 $as_echo "unable to check" >&6; }
29108 # Check -ldl
29109 saved_LIBS="$LIBS"
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29111 $as_echo_n "checking for library containing dlopen... " >&6; }
29112 if test "${ac_cv_search_dlopen+set}" = set; then :
29113 $as_echo_n "(cached) " >&6
29114 else
29115 ac_func_search_save_LIBS=$LIBS
29116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29117 /* end confdefs.h. */
29119 /* Override any GCC internal prototype to avoid an error.
29120 Use char because int might match the return type of a GCC
29121 builtin and then its argument prototype would still apply. */
29122 #ifdef __cplusplus
29123 extern "C"
29124 #endif
29125 char dlopen ();
29127 main ()
29129 return dlopen ();
29131 return 0;
29133 _ACEOF
29134 for ac_lib in '' dl; do
29135 if test -z "$ac_lib"; then
29136 ac_res="none required"
29137 else
29138 ac_res=-l$ac_lib
29139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29141 if ac_fn_cxx_try_link "$LINENO"; then :
29142 ac_cv_search_dlopen=$ac_res
29144 rm -f core conftest.err conftest.$ac_objext \
29145 conftest$ac_exeext
29146 if test "${ac_cv_search_dlopen+set}" = set; then :
29147 break
29149 done
29150 if test "${ac_cv_search_dlopen+set}" = set; then :
29152 else
29153 ac_cv_search_dlopen=no
29155 rm conftest.$ac_ext
29156 LIBS=$ac_func_search_save_LIBS
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29159 $as_echo "$ac_cv_search_dlopen" >&6; }
29160 ac_res=$ac_cv_search_dlopen
29161 if test "$ac_res" != no; then :
29162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29166 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29167 pluginlibs="$pluginlibs -ldl"
29169 LIBS="$saved_LIBS"
29171 # Check that we can build shared objects with -fPIC -shared
29172 saved_LDFLAGS="$LDFLAGS"
29173 saved_CFLAGS="$CFLAGS"
29174 case "${host}" in
29175 *-*-darwin*)
29176 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29177 CFLAGS="$CFLAGS -fPIC"
29178 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29181 CFLAGS="$CFLAGS -fPIC"
29182 LDFLAGS="$LDFLAGS -fPIC -shared"
29184 esac
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29186 $as_echo_n "checking for -fPIC -shared... " >&6; }
29187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29188 /* end confdefs.h. */
29189 extern int X;
29191 main ()
29193 return X == 0;
29195 return 0;
29197 _ACEOF
29198 if ac_fn_cxx_try_link "$LINENO"; then :
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29200 $as_echo "yes" >&6; }; have_pic_shared=yes
29201 else
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29203 $as_echo "no" >&6; }; have_pic_shared=no
29205 rm -f core conftest.err conftest.$ac_objext \
29206 conftest$ac_exeext conftest.$ac_ext
29207 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29208 pluginlibs=
29209 enable_plugin=no
29211 LDFLAGS="$saved_LDFLAGS"
29212 CFLAGS="$saved_CFLAGS"
29214 # If plugin support had been requested but not available, fail.
29215 if test x"$enable_plugin" = x"no" ; then
29216 if test x"$default_plugin" != x"yes"; then
29217 as_fn_error "
29218 Building GCC with plugin support requires a host that supports
29219 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29226 if test x"$enable_plugin" = x"yes"; then
29228 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29233 # Enable --enable-host-shared
29234 # Check whether --enable-host-shared was given.
29235 if test "${enable_host_shared+set}" = set; then :
29236 enableval=$enable_host_shared; PICFLAG=-fPIC
29237 else
29238 PICFLAG=
29245 # Check whether --enable-libquadmath-support was given.
29246 if test "${enable_libquadmath_support+set}" = set; then :
29247 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29248 else
29249 ENABLE_LIBQUADMATH_SUPPORT=yes
29252 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29254 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29259 # Specify what hash style to use by default.
29261 # Check whether --with-linker-hash-style was given.
29262 if test "${with_linker_hash_style+set}" = set; then :
29263 withval=$with_linker_hash_style; case x"$withval" in
29264 xsysv)
29265 LINKER_HASH_STYLE=sysv
29267 xgnu)
29268 LINKER_HASH_STYLE=gnu
29270 xboth)
29271 LINKER_HASH_STYLE=both
29274 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29276 esac
29277 else
29278 LINKER_HASH_STYLE=''
29281 if test x"${LINKER_HASH_STYLE}" != x; then
29283 cat >>confdefs.h <<_ACEOF
29284 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29285 _ACEOF
29289 # Specify what should be the default of -fdiagnostics-color option.
29291 # Check whether --with-diagnostics-color was given.
29292 if test "${with_diagnostics_color+set}" = set; then :
29293 withval=$with_diagnostics_color; case x"$withval" in
29294 xnever)
29295 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29297 xauto)
29298 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29300 xauto-if-env)
29301 DIAGNOSTICS_COLOR_DEFAULT=-1
29303 xalways)
29304 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29307 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29309 esac
29310 else
29311 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29315 cat >>confdefs.h <<_ACEOF
29316 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29317 _ACEOF
29320 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29321 # of jit/jit-playback.c.
29322 cat > gcc-driver-name.h <<EOF
29323 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29326 # Check whether --enable-default-pie was given.
29327 # Check whether --enable-default-pie was given.
29328 if test "${enable_default_pie+set}" = set; then :
29329 enableval=$enable_default_pie; enable_default_pie=$enableval
29330 else
29331 enable_default_pie=no
29334 if test x$enable_default_pie = xyes ; then
29336 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29341 # Check if -fno-PIE works.
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29343 $as_echo_n "checking for -fno-PIE option... " >&6; }
29344 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29345 $as_echo_n "(cached) " >&6
29346 else
29347 saved_CXXFLAGS="$CXXFLAGS"
29348 CXXFLAGS="$CXXFLAGS -fno-PIE"
29349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29350 /* end confdefs.h. */
29351 int main(void) {return 0;}
29352 _ACEOF
29353 if ac_fn_cxx_try_compile "$LINENO"; then :
29354 gcc_cv_c_no_fpie=yes
29355 else
29356 gcc_cv_c_no_fpie=no
29358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29359 CXXFLAGS="$saved_CXXFLAGS"
29361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29362 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29363 if test "$gcc_cv_c_no_fpie" = "yes"; then
29364 NO_PIE_CFLAGS="-fno-PIE"
29368 # Check if -no-pie works.
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29370 $as_echo_n "checking for -no-pie option... " >&6; }
29371 if test "${gcc_cv_no_pie+set}" = set; then :
29372 $as_echo_n "(cached) " >&6
29373 else
29374 saved_LDFLAGS="$LDFLAGS"
29375 LDFLAGS="$LDFLAGS -no-pie"
29376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29377 /* end confdefs.h. */
29378 int main(void) {return 0;}
29379 _ACEOF
29380 if ac_fn_cxx_try_link "$LINENO"; then :
29381 gcc_cv_no_pie=yes
29382 else
29383 gcc_cv_no_pie=no
29385 rm -f core conftest.err conftest.$ac_objext \
29386 conftest$ac_exeext conftest.$ac_ext
29387 LDFLAGS="$saved_LDFLAGS"
29389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29390 $as_echo "$gcc_cv_no_pie" >&6; }
29391 if test "$gcc_cv_no_pie" = "yes"; then
29392 NO_PIE_FLAG="-no-pie"
29396 # Check linker supports '-z bndplt'
29397 ld_bndplt_support=no
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29399 $as_echo_n "checking linker -z bndplt option... " >&6; }
29400 if test x"$ld_is_gold" = xno; then
29401 if test $in_tree_ld = yes ; then
29402 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
29403 ld_bndplt_support=yes
29405 elif test x$gcc_cv_ld != x; then
29406 # Check if linker supports -a bndplt option
29407 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29408 ld_bndplt_support=yes
29412 if test x"$ld_bndplt_support" = xyes; then
29414 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29418 $as_echo "$ld_bndplt_support" >&6; }
29420 # Configure the subdirectories
29421 # AC_CONFIG_SUBDIRS($subdirs)
29423 # Create the Makefile
29424 # and configure language subdirectories
29425 ac_config_files="$ac_config_files $all_outputs"
29428 ac_config_commands="$ac_config_commands default"
29430 cat >confcache <<\_ACEOF
29431 # This file is a shell script that caches the results of configure
29432 # tests run on this system so they can be shared between configure
29433 # scripts and configure runs, see configure's option --config-cache.
29434 # It is not useful on other systems. If it contains results you don't
29435 # want to keep, you may remove or edit it.
29437 # config.status only pays attention to the cache file if you give it
29438 # the --recheck option to rerun configure.
29440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29442 # following values.
29444 _ACEOF
29446 # The following way of writing the cache mishandles newlines in values,
29447 # but we know of no workaround that is simple, portable, and efficient.
29448 # So, we kill variables containing newlines.
29449 # Ultrix sh set writes to stderr and can't be redirected directly,
29450 # and sets the high bit in the cache file unless we assign to the vars.
29452 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29453 eval ac_val=\$$ac_var
29454 case $ac_val in #(
29455 *${as_nl}*)
29456 case $ac_var in #(
29457 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29459 esac
29460 case $ac_var in #(
29461 _ | IFS | as_nl) ;; #(
29462 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29463 *) { eval $ac_var=; unset $ac_var;} ;;
29464 esac ;;
29465 esac
29466 done
29468 (set) 2>&1 |
29469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29470 *${as_nl}ac_space=\ *)
29471 # `set' does not quote correctly, so add quotes: double-quote
29472 # substitution turns \\\\ into \\, and sed turns \\ into \.
29473 sed -n \
29474 "s/'/'\\\\''/g;
29475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29476 ;; #(
29478 # `set' quotes correctly as required by POSIX, so do not add quotes.
29479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29481 esac |
29482 sort
29484 sed '
29485 /^ac_cv_env_/b end
29486 t clear
29487 :clear
29488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29489 t end
29490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29491 :end' >>confcache
29492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29493 if test -w "$cache_file"; then
29494 test "x$cache_file" != "x/dev/null" &&
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29496 $as_echo "$as_me: updating cache $cache_file" >&6;}
29497 cat confcache >$cache_file
29498 else
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29503 rm -f confcache
29505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29506 # Let make expand exec_prefix.
29507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29509 DEFS=-DHAVE_CONFIG_H
29511 ac_libobjs=
29512 ac_ltlibobjs=
29513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29514 # 1. Remove the extension, and $U if already installed.
29515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29518 # will be set to the directory where LIBOBJS objects are built.
29519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29521 done
29522 LIBOBJS=$ac_libobjs
29524 LTLIBOBJS=$ac_ltlibobjs
29529 : ${CONFIG_STATUS=./config.status}
29530 ac_write_fail=0
29531 ac_clean_files_save=$ac_clean_files
29532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29534 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29535 as_write_fail=0
29536 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29537 #! $SHELL
29538 # Generated by $as_me.
29539 # Run this file to recreate the current configuration.
29540 # Compiler output produced by configure, useful for debugging
29541 # configure, is in config.log if it exists.
29543 debug=false
29544 ac_cs_recheck=false
29545 ac_cs_silent=false
29547 SHELL=\${CONFIG_SHELL-$SHELL}
29548 export SHELL
29549 _ASEOF
29550 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29551 ## -------------------- ##
29552 ## M4sh Initialization. ##
29553 ## -------------------- ##
29555 # Be more Bourne compatible
29556 DUALCASE=1; export DUALCASE # for MKS sh
29557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29558 emulate sh
29559 NULLCMD=:
29560 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29561 # is contrary to our usage. Disable this feature.
29562 alias -g '${1+"$@"}'='"$@"'
29563 setopt NO_GLOB_SUBST
29564 else
29565 case `(set -o) 2>/dev/null` in #(
29566 *posix*) :
29567 set -o posix ;; #(
29568 *) :
29570 esac
29574 as_nl='
29576 export as_nl
29577 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29578 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29580 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29581 # Prefer a ksh shell builtin over an external printf program on Solaris,
29582 # but without wasting forks for bash or zsh.
29583 if test -z "$BASH_VERSION$ZSH_VERSION" \
29584 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29585 as_echo='print -r --'
29586 as_echo_n='print -rn --'
29587 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29588 as_echo='printf %s\n'
29589 as_echo_n='printf %s'
29590 else
29591 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29592 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29593 as_echo_n='/usr/ucb/echo -n'
29594 else
29595 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29596 as_echo_n_body='eval
29597 arg=$1;
29598 case $arg in #(
29599 *"$as_nl"*)
29600 expr "X$arg" : "X\\(.*\\)$as_nl";
29601 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29602 esac;
29603 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29605 export as_echo_n_body
29606 as_echo_n='sh -c $as_echo_n_body as_echo'
29608 export as_echo_body
29609 as_echo='sh -c $as_echo_body as_echo'
29612 # The user is always right.
29613 if test "${PATH_SEPARATOR+set}" != set; then
29614 PATH_SEPARATOR=:
29615 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29616 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29617 PATH_SEPARATOR=';'
29622 # IFS
29623 # We need space, tab and new line, in precisely that order. Quoting is
29624 # there to prevent editors from complaining about space-tab.
29625 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29626 # splitting by setting IFS to empty value.)
29627 IFS=" "" $as_nl"
29629 # Find who we are. Look in the path if we contain no directory separator.
29630 case $0 in #((
29631 *[\\/]* ) as_myself=$0 ;;
29632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29633 for as_dir in $PATH
29635 IFS=$as_save_IFS
29636 test -z "$as_dir" && as_dir=.
29637 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29638 done
29639 IFS=$as_save_IFS
29642 esac
29643 # We did not find ourselves, most probably we were run as `sh COMMAND'
29644 # in which case we are not to be found in the path.
29645 if test "x$as_myself" = x; then
29646 as_myself=$0
29648 if test ! -f "$as_myself"; then
29649 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29650 exit 1
29653 # Unset variables that we do not need and which cause bugs (e.g. in
29654 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29655 # suppresses any "Segmentation fault" message there. '((' could
29656 # trigger a bug in pdksh 5.2.14.
29657 for as_var in BASH_ENV ENV MAIL MAILPATH
29658 do eval test x\${$as_var+set} = xset \
29659 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29660 done
29661 PS1='$ '
29662 PS2='> '
29663 PS4='+ '
29665 # NLS nuisances.
29666 LC_ALL=C
29667 export LC_ALL
29668 LANGUAGE=C
29669 export LANGUAGE
29671 # CDPATH.
29672 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29675 # as_fn_error ERROR [LINENO LOG_FD]
29676 # ---------------------------------
29677 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29678 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29679 # script with status $?, using 1 if that was 0.
29680 as_fn_error ()
29682 as_status=$?; test $as_status -eq 0 && as_status=1
29683 if test "$3"; then
29684 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29685 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29687 $as_echo "$as_me: error: $1" >&2
29688 as_fn_exit $as_status
29689 } # as_fn_error
29692 # as_fn_set_status STATUS
29693 # -----------------------
29694 # Set $? to STATUS, without forking.
29695 as_fn_set_status ()
29697 return $1
29698 } # as_fn_set_status
29700 # as_fn_exit STATUS
29701 # -----------------
29702 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29703 as_fn_exit ()
29705 set +e
29706 as_fn_set_status $1
29707 exit $1
29708 } # as_fn_exit
29710 # as_fn_unset VAR
29711 # ---------------
29712 # Portably unset VAR.
29713 as_fn_unset ()
29715 { eval $1=; unset $1;}
29717 as_unset=as_fn_unset
29718 # as_fn_append VAR VALUE
29719 # ----------------------
29720 # Append the text in VALUE to the end of the definition contained in VAR. Take
29721 # advantage of any shell optimizations that allow amortized linear growth over
29722 # repeated appends, instead of the typical quadratic growth present in naive
29723 # implementations.
29724 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29725 eval 'as_fn_append ()
29727 eval $1+=\$2
29729 else
29730 as_fn_append ()
29732 eval $1=\$$1\$2
29734 fi # as_fn_append
29736 # as_fn_arith ARG...
29737 # ------------------
29738 # Perform arithmetic evaluation on the ARGs, and store the result in the
29739 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29740 # must be portable across $(()) and expr.
29741 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29742 eval 'as_fn_arith ()
29744 as_val=$(( $* ))
29746 else
29747 as_fn_arith ()
29749 as_val=`expr "$@" || test $? -eq 1`
29751 fi # as_fn_arith
29754 if expr a : '\(a\)' >/dev/null 2>&1 &&
29755 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29756 as_expr=expr
29757 else
29758 as_expr=false
29761 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29762 as_basename=basename
29763 else
29764 as_basename=false
29767 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29768 as_dirname=dirname
29769 else
29770 as_dirname=false
29773 as_me=`$as_basename -- "$0" ||
29774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29775 X"$0" : 'X\(//\)$' \| \
29776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29777 $as_echo X/"$0" |
29778 sed '/^.*\/\([^/][^/]*\)\/*$/{
29779 s//\1/
29782 /^X\/\(\/\/\)$/{
29783 s//\1/
29786 /^X\/\(\/\).*/{
29787 s//\1/
29790 s/.*/./; q'`
29792 # Avoid depending upon Character Ranges.
29793 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29794 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29795 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29796 as_cr_digits='0123456789'
29797 as_cr_alnum=$as_cr_Letters$as_cr_digits
29799 ECHO_C= ECHO_N= ECHO_T=
29800 case `echo -n x` in #(((((
29801 -n*)
29802 case `echo 'xy\c'` in
29803 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29804 xy) ECHO_C='\c';;
29805 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29806 ECHO_T=' ';;
29807 esac;;
29809 ECHO_N='-n';;
29810 esac
29812 rm -f conf$$ conf$$.exe conf$$.file
29813 if test -d conf$$.dir; then
29814 rm -f conf$$.dir/conf$$.file
29815 else
29816 rm -f conf$$.dir
29817 mkdir conf$$.dir 2>/dev/null
29819 if (echo >conf$$.file) 2>/dev/null; then
29820 if ln -s conf$$.file conf$$ 2>/dev/null; then
29821 as_ln_s='ln -s'
29822 # ... but there are two gotchas:
29823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29825 # In both cases, we have to default to `cp -p'.
29826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29827 as_ln_s='cp -p'
29828 elif ln conf$$.file conf$$ 2>/dev/null; then
29829 as_ln_s=ln
29830 else
29831 as_ln_s='cp -p'
29833 else
29834 as_ln_s='cp -p'
29836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29837 rmdir conf$$.dir 2>/dev/null
29840 # as_fn_mkdir_p
29841 # -------------
29842 # Create "$as_dir" as a directory, including parents if necessary.
29843 as_fn_mkdir_p ()
29846 case $as_dir in #(
29847 -*) as_dir=./$as_dir;;
29848 esac
29849 test -d "$as_dir" || eval $as_mkdir_p || {
29850 as_dirs=
29851 while :; do
29852 case $as_dir in #(
29853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29854 *) as_qdir=$as_dir;;
29855 esac
29856 as_dirs="'$as_qdir' $as_dirs"
29857 as_dir=`$as_dirname -- "$as_dir" ||
29858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29859 X"$as_dir" : 'X\(//\)[^/]' \| \
29860 X"$as_dir" : 'X\(//\)$' \| \
29861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29862 $as_echo X"$as_dir" |
29863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29864 s//\1/
29867 /^X\(\/\/\)[^/].*/{
29868 s//\1/
29871 /^X\(\/\/\)$/{
29872 s//\1/
29875 /^X\(\/\).*/{
29876 s//\1/
29879 s/.*/./; q'`
29880 test -d "$as_dir" && break
29881 done
29882 test -z "$as_dirs" || eval "mkdir $as_dirs"
29883 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29886 } # as_fn_mkdir_p
29887 if mkdir -p . 2>/dev/null; then
29888 as_mkdir_p='mkdir -p "$as_dir"'
29889 else
29890 test -d ./-p && rmdir ./-p
29891 as_mkdir_p=false
29894 if test -x / >/dev/null 2>&1; then
29895 as_test_x='test -x'
29896 else
29897 if ls -dL / >/dev/null 2>&1; then
29898 as_ls_L_option=L
29899 else
29900 as_ls_L_option=
29902 as_test_x='
29903 eval sh -c '\''
29904 if test -d "$1"; then
29905 test -d "$1/.";
29906 else
29907 case $1 in #(
29908 -*)set "./$1";;
29909 esac;
29910 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29911 ???[sx]*):;;*)false;;esac;fi
29912 '\'' sh
29915 as_executable_p=$as_test_x
29917 # Sed expression to map a string onto a valid CPP name.
29918 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29920 # Sed expression to map a string onto a valid variable name.
29921 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29924 exec 6>&1
29925 ## ----------------------------------- ##
29926 ## Main body of $CONFIG_STATUS script. ##
29927 ## ----------------------------------- ##
29928 _ASEOF
29929 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29932 # Save the log message, to keep $0 and so on meaningful, and to
29933 # report actual input values of CONFIG_FILES etc. instead of their
29934 # values after options handling.
29935 ac_log="
29936 This file was extended by $as_me, which was
29937 generated by GNU Autoconf 2.64. Invocation command line was
29939 CONFIG_FILES = $CONFIG_FILES
29940 CONFIG_HEADERS = $CONFIG_HEADERS
29941 CONFIG_LINKS = $CONFIG_LINKS
29942 CONFIG_COMMANDS = $CONFIG_COMMANDS
29943 $ $0 $@
29945 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29948 _ACEOF
29950 case $ac_config_files in *"
29951 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29952 esac
29954 case $ac_config_headers in *"
29955 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29956 esac
29959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29960 # Files that config.status was made for.
29961 config_files="$ac_config_files"
29962 config_headers="$ac_config_headers"
29963 config_links="$ac_config_links"
29964 config_commands="$ac_config_commands"
29966 _ACEOF
29968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29969 ac_cs_usage="\
29970 \`$as_me' instantiates files and other configuration actions
29971 from templates according to the current configuration. Unless the files
29972 and actions are specified as TAGs, all are instantiated by default.
29974 Usage: $0 [OPTION]... [TAG]...
29976 -h, --help print this help, then exit
29977 -V, --version print version number and configuration settings, then exit
29978 -q, --quiet, --silent
29979 do not print progress messages
29980 -d, --debug don't remove temporary files
29981 --recheck update $as_me by reconfiguring in the same conditions
29982 --file=FILE[:TEMPLATE]
29983 instantiate the configuration file FILE
29984 --header=FILE[:TEMPLATE]
29985 instantiate the configuration header FILE
29987 Configuration files:
29988 $config_files
29990 Configuration headers:
29991 $config_headers
29993 Configuration links:
29994 $config_links
29996 Configuration commands:
29997 $config_commands
29999 Report bugs to the package provider."
30001 _ACEOF
30002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30003 ac_cs_version="\\
30004 config.status
30005 configured by $0, generated by GNU Autoconf 2.64,
30006 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30008 Copyright (C) 2009 Free Software Foundation, Inc.
30009 This config.status script is free software; the Free Software Foundation
30010 gives unlimited permission to copy, distribute and modify it."
30012 ac_pwd='$ac_pwd'
30013 srcdir='$srcdir'
30014 AWK='$AWK'
30015 test -n "\$AWK" || AWK=awk
30016 _ACEOF
30018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30019 # The default lists apply if the user does not specify any file.
30020 ac_need_defaults=:
30021 while test $# != 0
30023 case $1 in
30024 --*=*)
30025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30026 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30027 ac_shift=:
30030 ac_option=$1
30031 ac_optarg=$2
30032 ac_shift=shift
30034 esac
30036 case $ac_option in
30037 # Handling of the options.
30038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30039 ac_cs_recheck=: ;;
30040 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30041 $as_echo "$ac_cs_version"; exit ;;
30042 --debug | --debu | --deb | --de | --d | -d )
30043 debug=: ;;
30044 --file | --fil | --fi | --f )
30045 $ac_shift
30046 case $ac_optarg in
30047 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30048 esac
30049 as_fn_append CONFIG_FILES " '$ac_optarg'"
30050 ac_need_defaults=false;;
30051 --header | --heade | --head | --hea )
30052 $ac_shift
30053 case $ac_optarg in
30054 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30055 esac
30056 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30057 ac_need_defaults=false;;
30058 --he | --h)
30059 # Conflict between --help and --header
30060 as_fn_error "ambiguous option: \`$1'
30061 Try \`$0 --help' for more information.";;
30062 --help | --hel | -h )
30063 $as_echo "$ac_cs_usage"; exit ;;
30064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30065 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30066 ac_cs_silent=: ;;
30068 # This is an error.
30069 -*) as_fn_error "unrecognized option: \`$1'
30070 Try \`$0 --help' for more information." ;;
30072 *) as_fn_append ac_config_targets " $1"
30073 ac_need_defaults=false ;;
30075 esac
30076 shift
30077 done
30079 ac_configure_extra_args=
30081 if $ac_cs_silent; then
30082 exec 6>/dev/null
30083 ac_configure_extra_args="$ac_configure_extra_args --silent"
30086 _ACEOF
30087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30088 if \$ac_cs_recheck; then
30089 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30090 shift
30091 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30092 CONFIG_SHELL='$SHELL'
30093 export CONFIG_SHELL
30094 exec "\$@"
30097 _ACEOF
30098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30099 exec 5>>config.log
30101 echo
30102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30103 ## Running $as_me. ##
30104 _ASBOX
30105 $as_echo "$ac_log"
30106 } >&5
30108 _ACEOF
30109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30111 # INIT-COMMANDS
30113 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30114 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30115 subdirs='$subdirs'
30117 _ACEOF
30119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30121 # Handling of arguments.
30122 for ac_config_target in $ac_config_targets
30124 case $ac_config_target in
30125 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30126 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30127 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30128 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30129 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30130 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30131 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30132 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30133 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30135 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30136 esac
30137 done
30140 # If the user did not use the arguments to specify the items to instantiate,
30141 # then the envvar interface is used. Set only those that are not.
30142 # We use the long form for the default assignment because of an extremely
30143 # bizarre bug on SunOS 4.1.3.
30144 if $ac_need_defaults; then
30145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30147 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30148 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30151 # Have a temporary directory for convenience. Make it in the build tree
30152 # simply because there is no reason against having it here, and in addition,
30153 # creating and moving files from /tmp can sometimes cause problems.
30154 # Hook for its removal unless debugging.
30155 # Note that there is a small window in which the directory will not be cleaned:
30156 # after its creation but before its name has been assigned to `$tmp'.
30157 $debug ||
30159 tmp=
30160 trap 'exit_status=$?
30161 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30163 trap 'as_fn_exit 1' 1 2 13 15
30165 # Create a (secure) tmp directory for tmp files.
30168 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30169 test -n "$tmp" && test -d "$tmp"
30170 } ||
30172 tmp=./conf$$-$RANDOM
30173 (umask 077 && mkdir "$tmp")
30174 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30176 # Set up the scripts for CONFIG_FILES section.
30177 # No need to generate them if there are no CONFIG_FILES.
30178 # This happens for instance with `./config.status config.h'.
30179 if test -n "$CONFIG_FILES"; then
30181 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30182 ac_cs_awk_getline=:
30183 ac_cs_awk_pipe_init=
30184 ac_cs_awk_read_file='
30185 while ((getline aline < (F[key])) > 0)
30186 print(aline)
30187 close(F[key])'
30188 ac_cs_awk_pipe_fini=
30189 else
30190 ac_cs_awk_getline=false
30191 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30192 ac_cs_awk_read_file='
30193 print "|#_!!_#|"
30194 print "cat " F[key] " &&"
30195 '$ac_cs_awk_pipe_init
30196 # The final `:' finishes the AND list.
30197 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30199 ac_cr=`echo X | tr X '\015'`
30200 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30201 # But we know of no other shell where ac_cr would be empty at this
30202 # point, so we can use a bashism as a fallback.
30203 if test "x$ac_cr" = x; then
30204 eval ac_cr=\$\'\\r\'
30206 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30207 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30208 ac_cs_awk_cr='\r'
30209 else
30210 ac_cs_awk_cr=$ac_cr
30213 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30214 _ACEOF
30216 # Create commands to substitute file output variables.
30218 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30219 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30220 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30221 echo "_ACAWK" &&
30222 echo "_ACEOF"
30223 } >conf$$files.sh &&
30224 . ./conf$$files.sh ||
30225 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30226 rm -f conf$$files.sh
30229 echo "cat >conf$$subs.awk <<_ACEOF" &&
30230 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30231 echo "_ACEOF"
30232 } >conf$$subs.sh ||
30233 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30234 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30235 ac_delim='%!_!# '
30236 for ac_last_try in false false false false false :; do
30237 . ./conf$$subs.sh ||
30238 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30240 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30241 if test $ac_delim_n = $ac_delim_num; then
30242 break
30243 elif $ac_last_try; then
30244 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30245 else
30246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30248 done
30249 rm -f conf$$subs.sh
30251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30252 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30253 _ACEOF
30254 sed -n '
30256 s/^/S["/; s/!.*/"]=/
30259 s/^[^!]*!//
30260 :repl
30261 t repl
30262 s/'"$ac_delim"'$//
30263 t delim
30266 s/\(.\{148\}\).*/\1/
30267 t more1
30268 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30271 b repl
30272 :more1
30273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30276 s/.\{148\}//
30277 t nl
30278 :delim
30280 s/\(.\{148\}\).*/\1/
30281 t more2
30282 s/["\\]/\\&/g; s/^/"/; s/$/"/
30285 :more2
30286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30289 s/.\{148\}//
30290 t delim
30291 ' <conf$$subs.awk | sed '
30292 /^[^""]/{
30294 s/\n//
30296 ' >>$CONFIG_STATUS || ac_write_fail=1
30297 rm -f conf$$subs.awk
30298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30299 _ACAWK
30300 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30301 for (key in S) S_is_set[key] = 1
30302 FS = "\a"
30303 \$ac_cs_awk_pipe_init
30306 line = $ 0
30307 nfields = split(line, field, "@")
30308 substed = 0
30309 len = length(field[1])
30310 for (i = 2; i < nfields; i++) {
30311 key = field[i]
30312 keylen = length(key)
30313 if (S_is_set[key]) {
30314 value = S[key]
30315 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30316 len += length(value) + length(field[++i])
30317 substed = 1
30318 } else
30319 len += 1 + keylen
30321 if (nfields == 3 && !substed) {
30322 key = field[2]
30323 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30324 \$ac_cs_awk_read_file
30325 next
30328 print line
30330 \$ac_cs_awk_pipe_fini
30331 _ACAWK
30332 _ACEOF
30333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30334 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30335 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30336 else
30338 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30339 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30340 _ACEOF
30342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30344 # trailing colons and then remove the whole line if VPATH becomes empty
30345 # (actually we leave an empty line to preserve line numbers).
30346 if test "x$srcdir" = x.; then
30347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30348 s/:*\$(srcdir):*/:/
30349 s/:*\${srcdir}:*/:/
30350 s/:*@srcdir@:*/:/
30351 s/^\([^=]*=[ ]*\):*/\1/
30352 s/:*$//
30353 s/^[^=]*=[ ]*$//
30357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30358 fi # test -n "$CONFIG_FILES"
30360 # Set up the scripts for CONFIG_HEADERS section.
30361 # No need to generate them if there are no CONFIG_HEADERS.
30362 # This happens for instance with `./config.status Makefile'.
30363 if test -n "$CONFIG_HEADERS"; then
30364 cat >"$tmp/defines.awk" <<\_ACAWK ||
30365 BEGIN {
30366 _ACEOF
30368 # Transform confdefs.h into an awk script `defines.awk', embedded as
30369 # here-document in config.status, that substitutes the proper values into
30370 # config.h.in to produce config.h.
30372 # Create a delimiter string that does not exist in confdefs.h, to ease
30373 # handling of long lines.
30374 ac_delim='%!_!# '
30375 for ac_last_try in false false :; do
30376 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30377 if test -z "$ac_t"; then
30378 break
30379 elif $ac_last_try; then
30380 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30381 else
30382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30384 done
30386 # For the awk script, D is an array of macro values keyed by name,
30387 # likewise P contains macro parameters if any. Preserve backslash
30388 # newline sequences.
30390 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30391 sed -n '
30392 s/.\{148\}/&'"$ac_delim"'/g
30393 t rset
30394 :rset
30395 s/^[ ]*#[ ]*define[ ][ ]*/ /
30396 t def
30398 :def
30399 s/\\$//
30400 t bsnl
30401 s/["\\]/\\&/g
30402 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30403 D["\1"]=" \3"/p
30404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30406 :bsnl
30407 s/["\\]/\\&/g
30408 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30409 D["\1"]=" \3\\\\\\n"\\/p
30410 t cont
30411 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30412 t cont
30414 :cont
30416 s/.\{148\}/&'"$ac_delim"'/g
30417 t clear
30418 :clear
30419 s/\\$//
30420 t bsnlc
30421 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30423 :bsnlc
30424 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30425 b cont
30426 ' <confdefs.h | sed '
30427 s/'"$ac_delim"'/"\\\
30428 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30431 for (key in D) D_is_set[key] = 1
30432 FS = "\a"
30434 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30435 line = \$ 0
30436 split(line, arg, " ")
30437 if (arg[1] == "#") {
30438 defundef = arg[2]
30439 mac1 = arg[3]
30440 } else {
30441 defundef = substr(arg[1], 2)
30442 mac1 = arg[2]
30444 split(mac1, mac2, "(") #)
30445 macro = mac2[1]
30446 prefix = substr(line, 1, index(line, defundef) - 1)
30447 if (D_is_set[macro]) {
30448 # Preserve the white space surrounding the "#".
30449 print prefix "define", macro P[macro] D[macro]
30450 next
30451 } else {
30452 # Replace #undef with comments. This is necessary, for example,
30453 # in the case of _POSIX_SOURCE, which is predefined and required
30454 # on some systems where configure will not decide to define it.
30455 if (defundef == "undef") {
30456 print "/*", prefix defundef, macro, "*/"
30457 next
30461 { print }
30462 _ACAWK
30463 _ACEOF
30464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30465 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30466 fi # test -n "$CONFIG_HEADERS"
30469 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30470 shift
30471 for ac_tag
30473 case $ac_tag in
30474 :[FHLC]) ac_mode=$ac_tag; continue;;
30475 esac
30476 case $ac_mode$ac_tag in
30477 :[FHL]*:*);;
30478 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30479 :[FH]-) ac_tag=-:-;;
30480 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30481 esac
30482 ac_save_IFS=$IFS
30483 IFS=:
30484 set x $ac_tag
30485 IFS=$ac_save_IFS
30486 shift
30487 ac_file=$1
30488 shift
30490 case $ac_mode in
30491 :L) ac_source=$1;;
30492 :[FH])
30493 ac_file_inputs=
30494 for ac_f
30496 case $ac_f in
30497 -) ac_f="$tmp/stdin";;
30498 *) # Look for the file first in the build tree, then in the source tree
30499 # (if the path is not absolute). The absolute path cannot be DOS-style,
30500 # because $ac_f cannot contain `:'.
30501 test -f "$ac_f" ||
30502 case $ac_f in
30503 [\\/$]*) false;;
30504 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30505 esac ||
30506 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30507 esac
30508 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30509 as_fn_append ac_file_inputs " '$ac_f'"
30510 done
30512 # Let's still pretend it is `configure' which instantiates (i.e., don't
30513 # use $as_me), people would be surprised to read:
30514 # /* config.h. Generated by config.status. */
30515 configure_input='Generated from '`
30516 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30517 `' by configure.'
30518 if test x"$ac_file" != x-; then
30519 configure_input="$ac_file. $configure_input"
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30521 $as_echo "$as_me: creating $ac_file" >&6;}
30523 # Neutralize special characters interpreted by sed in replacement strings.
30524 case $configure_input in #(
30525 *\&* | *\|* | *\\* )
30526 ac_sed_conf_input=`$as_echo "$configure_input" |
30527 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30528 *) ac_sed_conf_input=$configure_input;;
30529 esac
30531 case $ac_tag in
30532 *:-:* | *:-) cat >"$tmp/stdin" \
30533 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30534 esac
30536 esac
30538 ac_dir=`$as_dirname -- "$ac_file" ||
30539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30540 X"$ac_file" : 'X\(//\)[^/]' \| \
30541 X"$ac_file" : 'X\(//\)$' \| \
30542 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30543 $as_echo X"$ac_file" |
30544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30545 s//\1/
30548 /^X\(\/\/\)[^/].*/{
30549 s//\1/
30552 /^X\(\/\/\)$/{
30553 s//\1/
30556 /^X\(\/\).*/{
30557 s//\1/
30560 s/.*/./; q'`
30561 as_dir="$ac_dir"; as_fn_mkdir_p
30562 ac_builddir=.
30564 case "$ac_dir" in
30565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30567 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30568 # A ".." for each directory in $ac_dir_suffix.
30569 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30570 case $ac_top_builddir_sub in
30571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30573 esac ;;
30574 esac
30575 ac_abs_top_builddir=$ac_pwd
30576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30577 # for backward compatibility:
30578 ac_top_builddir=$ac_top_build_prefix
30580 case $srcdir in
30581 .) # We are building in place.
30582 ac_srcdir=.
30583 ac_top_srcdir=$ac_top_builddir_sub
30584 ac_abs_top_srcdir=$ac_pwd ;;
30585 [\\/]* | ?:[\\/]* ) # Absolute name.
30586 ac_srcdir=$srcdir$ac_dir_suffix;
30587 ac_top_srcdir=$srcdir
30588 ac_abs_top_srcdir=$srcdir ;;
30589 *) # Relative name.
30590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30591 ac_top_srcdir=$ac_top_build_prefix$srcdir
30592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30593 esac
30594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30597 case $ac_mode in
30600 # CONFIG_FILE
30603 _ACEOF
30605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30606 # If the template does not know about datarootdir, expand it.
30607 # FIXME: This hack should be removed a few years after 2.60.
30608 ac_datarootdir_hack=; ac_datarootdir_seen=
30609 ac_sed_dataroot='
30610 /datarootdir/ {
30614 /@datadir@/p
30615 /@docdir@/p
30616 /@infodir@/p
30617 /@localedir@/p
30618 /@mandir@/p'
30619 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30620 *datarootdir*) ac_datarootdir_seen=yes;;
30621 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30623 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30624 _ACEOF
30625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30626 ac_datarootdir_hack='
30627 s&@datadir@&$datadir&g
30628 s&@docdir@&$docdir&g
30629 s&@infodir@&$infodir&g
30630 s&@localedir@&$localedir&g
30631 s&@mandir@&$mandir&g
30632 s&\\\${datarootdir}&$datarootdir&g' ;;
30633 esac
30634 _ACEOF
30636 # Neutralize VPATH when `$srcdir' = `.'.
30637 # Shell code in configure.ac might set extrasub.
30638 # FIXME: do we really want to maintain this feature?
30639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30640 ac_sed_extra="$ac_vpsub
30641 $extrasub
30642 _ACEOF
30643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30646 s|@configure_input@|$ac_sed_conf_input|;t t
30647 s&@top_builddir@&$ac_top_builddir_sub&;t t
30648 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30649 s&@srcdir@&$ac_srcdir&;t t
30650 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30651 s&@top_srcdir@&$ac_top_srcdir&;t t
30652 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30653 s&@builddir@&$ac_builddir&;t t
30654 s&@abs_builddir@&$ac_abs_builddir&;t t
30655 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30656 $ac_datarootdir_hack
30658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30659 if $ac_cs_awk_getline; then
30660 $AWK -f "$tmp/subs.awk"
30661 else
30662 $AWK -f "$tmp/subs.awk" | $SHELL
30663 fi >$tmp/out \
30664 || as_fn_error "could not create $ac_file" "$LINENO" 5
30666 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30667 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30668 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30670 which seems to be undefined. Please make sure it is defined." >&5
30671 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30672 which seems to be undefined. Please make sure it is defined." >&2;}
30674 rm -f "$tmp/stdin"
30675 case $ac_file in
30676 -) cat "$tmp/out" && rm -f "$tmp/out";;
30677 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30678 esac \
30679 || as_fn_error "could not create $ac_file" "$LINENO" 5
30683 # CONFIG_HEADER
30685 if test x"$ac_file" != x-; then
30687 $as_echo "/* $configure_input */" \
30688 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30689 } >"$tmp/config.h" \
30690 || as_fn_error "could not create $ac_file" "$LINENO" 5
30691 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30693 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30694 else
30695 rm -f "$ac_file"
30696 mv "$tmp/config.h" "$ac_file" \
30697 || as_fn_error "could not create $ac_file" "$LINENO" 5
30699 else
30700 $as_echo "/* $configure_input */" \
30701 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30702 || as_fn_error "could not create -" "$LINENO" 5
30707 # CONFIG_LINK
30710 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30712 else
30713 # Prefer the file from the source tree if names are identical.
30714 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30715 ac_source=$srcdir/$ac_source
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30719 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30721 if test ! -r "$ac_source"; then
30722 as_fn_error "$ac_source: file not found" "$LINENO" 5
30724 rm -f "$ac_file"
30726 # Try a relative symlink, then a hard link, then a copy.
30727 case $srcdir in
30728 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30729 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30730 esac
30731 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30732 ln "$ac_source" "$ac_file" 2>/dev/null ||
30733 cp -p "$ac_source" "$ac_file" ||
30734 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30737 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30738 $as_echo "$as_me: executing $ac_file commands" >&6;}
30740 esac
30743 case $ac_file$ac_mode in
30744 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30745 "gccdepdir":C)
30746 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30747 for lang in $subdirs c-family common
30749 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30750 done ;;
30751 "as":F) chmod +x as ;;
30752 "collect-ld":F) chmod +x collect-ld ;;
30753 "nm":F) chmod +x nm ;;
30754 "default":C)
30755 case ${CONFIG_HEADERS} in
30756 *auto-host.h:config.in*)
30757 echo > cstamp-h ;;
30758 esac
30759 # Make sure all the subdirs exist.
30760 for d in $subdirs doc build common c-family
30762 test -d $d || mkdir $d
30763 done
30766 esac
30767 done # for ac_tag
30770 as_fn_exit 0
30771 _ACEOF
30772 ac_clean_files=$ac_clean_files_save
30774 test $ac_write_fail = 0 ||
30775 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30778 # configure is writing to config.log, and then calls config.status.
30779 # config.status does its own redirection, appending to config.log.
30780 # Unfortunately, on DOS this fails, as config.log is still kept open
30781 # by configure, so config.status won't be able to write to it; its
30782 # output is simply discarded. So we exec the FD to /dev/null,
30783 # effectively closing config.log, so it can be properly (re)opened and
30784 # appended to by config.status. When coming back to configure, we
30785 # need to make the FD available again.
30786 if test "$no_create" != yes; then
30787 ac_cs_success=:
30788 ac_config_status_args=
30789 test "$silent" = yes &&
30790 ac_config_status_args="$ac_config_status_args --quiet"
30791 exec 5>/dev/null
30792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30793 exec 5>>config.log
30794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30795 # would make configure fail if this is the last instruction.
30796 $ac_cs_success || as_fn_exit $?
30798 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30800 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}