* builtins.def (BUILT_IN_SETJMP): Revert latest change.
[official-gcc.git] / gcc / configure
blob13f97cd3663bec3a1c3e05df0cf7ba53ec80483e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 BUILD_SYSTEM_HEADER_DIR
723 SYSTEM_HEADER_DIR
725 CROSS
726 CATOBJEXT
727 GENCAT
728 INSTOBJEXT
729 DATADIRNAME
730 CATALOGS
731 POSUB
732 GMSGFMT
733 XGETTEXT
734 INCINTL
735 LIBINTL_DEP
736 LIBINTL
737 USE_NLS
738 get_gcc_base_ver
739 extra_opt_files
740 extra_modes_file
741 NATIVE_SYSTEM_HEADER_DIR
742 objext
743 manext
744 LIBICONV_DEP
745 LTLIBICONV
746 LIBICONV
747 LDEXP_LIB
748 EXTRA_GCC_LIBS
749 GNAT_LIBEXC
750 COLLECT2_LIBS
751 CXXDEPMODE
752 DEPDIR
753 am__leading_dot
754 doc_build_sys
757 BISON
758 FLEX
759 GENERATED_MANPAGES
760 BUILD_INFO
761 MAKEINFO
762 have_mktemp_command
763 make_compare_target
764 INSTALL_DATA
765 INSTALL_PROGRAM
766 INSTALL
767 ranlib_flags
768 RANLIB
770 LN_S
772 SET_MAKE
773 accel_dir_suffix
774 real_target_noncanonical
775 enable_as_accelerator
776 REPORT_BUGS_TEXI
777 REPORT_BUGS_TO
778 PKGVERSION
779 CONFIGURE_SPECS
780 enable_shared
781 enable_fixed_point
782 enable_decimal_float
783 with_float
784 with_cpu
785 enable_multiarch
786 enable_multilib
787 coverage_flags
788 valgrind_command
789 valgrind_path_defines
790 valgrind_path
791 TREECHECKING
792 nocommon_flag
793 noexception_flags
794 warn_cxxflags
795 warn_cflags
796 c_strict_warn
797 strict_warn
798 c_loose_warn
799 loose_warn
800 aliasing_flags
802 EGREP
803 GREP
804 CXXCPP
805 PICFLAG_FOR_TARGET
806 GNATMAKE
807 GNATBIND
808 ac_ct_CXX
809 CXXFLAGS
811 OBJEXT
812 EXEEXT
813 ac_ct_CC
814 CPPFLAGS
815 LDFLAGS
816 CFLAGS
818 GENINSRC
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
821 TARGET_SYSTEM_ROOT
822 SYSROOT_CFLAGS_FOR_TARGET
823 target_subdir
824 host_subdir
825 build_subdir
826 build_libsubdir
827 target_noncanonical
828 host_noncanonical
829 target_os
830 target_vendor
831 target_cpu
832 target
833 host_os
834 host_vendor
835 host_cpu
836 host
837 build_os
838 build_vendor
839 build_cpu
840 build
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 localstatedir
861 sharedstatedir
862 sysconfdir
863 datadir
864 datarootdir
865 libexecdir
866 sbindir
867 bindir
868 program_transform_name
869 prefix
870 exec_prefix
871 PACKAGE_URL
872 PACKAGE_BUGREPORT
873 PACKAGE_STRING
874 PACKAGE_VERSION
875 PACKAGE_TARNAME
876 PACKAGE_NAME
877 PATH_SEPARATOR
878 SHELL'
879 ac_subst_files='option_includes
880 language_hooks'
881 ac_user_opts='
882 enable_option_checking
883 with_build_libsubdir
884 with_local_prefix
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_gxx_include_dir
889 with_cpp_install_dir
890 enable_generated_files_in_srcdir
891 with_gnu_ld
892 with_ld
893 with_demangler_in_ld
894 with_gnu_as
895 with_as
896 enable_largefile
897 enable_build_format_warnings
898 enable_werror_always
899 enable_checking
900 enable_coverage
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
903 with_stabs
904 enable_multilib
905 enable_multiarch
906 enable___cxa_atexit
907 enable_decimal_float
908 enable_fixed_point
909 enable_threads
910 enable_tls
911 enable_vtable_verify
912 enable_objc_gc
913 with_dwarf2
914 enable_shared
915 with_specs
916 with_pkgversion
917 with_bugurl
918 enable_languages
919 with_multilib_list
920 enable_rpath
921 with_libiconv_prefix
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
924 enable_secureplt
925 enable_mingw_wildcard
926 enable_leading_mingw64_underscores
927 enable_cld
928 enable_frame_pointer
929 enable_win32_registry
930 enable_static
931 with_pic
932 enable_fast_install
933 enable_libtool_lock
934 enable_ld
935 enable_gold
936 with_plugin_ld
937 enable_gnu_indirect_function
938 enable_initfini_array
939 enable_comdat
940 enable_fix_cortex_a53_835769
941 enable_fix_cortex_a53_843419
942 with_glibc_version
943 enable_gnu_unique_object
944 enable_linker_build_id
945 enable_default_ssp
946 with_long_double_128
947 with_gc
948 with_system_zlib
949 enable_maintainer_mode
950 enable_link_mutex
951 enable_version_specific_runtime_libs
952 enable_plugin
953 enable_host_shared
954 enable_libquadmath_support
955 with_linker_hash_style
956 with_diagnostics_color
957 enable_default_pie
959 ac_precious_vars='build_alias
960 host_alias
961 target_alias
963 CFLAGS
964 LDFLAGS
965 LIBS
966 CPPFLAGS
968 CXXFLAGS
970 CXXCPP
972 GMPLIBS
973 GMPINC
974 ISLLIBS
975 ISLINC'
978 # Initialize some variables set by options.
979 ac_init_help=
980 ac_init_version=false
981 ac_unrecognized_opts=
982 ac_unrecognized_sep=
983 # The variables have the same names as the options, with
984 # dashes changed to underlines.
985 cache_file=/dev/null
986 exec_prefix=NONE
987 no_create=
988 no_recursion=
989 prefix=NONE
990 program_prefix=NONE
991 program_suffix=NONE
992 program_transform_name=s,x,x,
993 silent=
994 site=
995 srcdir=
996 verbose=
997 x_includes=NONE
998 x_libraries=NONE
1000 # Installation directory options.
1001 # These are left unexpanded so users can "make install exec_prefix=/foo"
1002 # and all the variables that are supposed to be based on exec_prefix
1003 # by default will actually change.
1004 # Use braces instead of parens because sh, perl, etc. also accept them.
1005 # (The list follows the same order as the GNU Coding Standards.)
1006 bindir='${exec_prefix}/bin'
1007 sbindir='${exec_prefix}/sbin'
1008 libexecdir='${exec_prefix}/libexec'
1009 datarootdir='${prefix}/share'
1010 datadir='${datarootdir}'
1011 sysconfdir='${prefix}/etc'
1012 sharedstatedir='${prefix}/com'
1013 localstatedir='${prefix}/var'
1014 includedir='${prefix}/include'
1015 oldincludedir='/usr/include'
1016 docdir='${datarootdir}/doc/${PACKAGE}'
1017 infodir='${datarootdir}/info'
1018 htmldir='${docdir}'
1019 dvidir='${docdir}'
1020 pdfdir='${docdir}'
1021 psdir='${docdir}'
1022 libdir='${exec_prefix}/lib'
1023 localedir='${datarootdir}/locale'
1024 mandir='${datarootdir}/man'
1026 ac_prev=
1027 ac_dashdash=
1028 for ac_option
1030 # If the previous option needs an argument, assign it.
1031 if test -n "$ac_prev"; then
1032 eval $ac_prev=\$ac_option
1033 ac_prev=
1034 continue
1037 case $ac_option in
1038 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 *) ac_optarg=yes ;;
1040 esac
1042 # Accept the important Cygnus configure options, so we can diagnose typos.
1044 case $ac_dashdash$ac_option in
1046 ac_dashdash=yes ;;
1048 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 ac_prev=bindir ;;
1050 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1051 bindir=$ac_optarg ;;
1053 -build | --build | --buil | --bui | --bu)
1054 ac_prev=build_alias ;;
1055 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1056 build_alias=$ac_optarg ;;
1058 -cache-file | --cache-file | --cache-fil | --cache-fi \
1059 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1060 ac_prev=cache_file ;;
1061 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1062 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1063 cache_file=$ac_optarg ;;
1065 --config-cache | -C)
1066 cache_file=config.cache ;;
1068 -datadir | --datadir | --datadi | --datad)
1069 ac_prev=datadir ;;
1070 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1071 datadir=$ac_optarg ;;
1073 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1074 | --dataroo | --dataro | --datar)
1075 ac_prev=datarootdir ;;
1076 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1077 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1078 datarootdir=$ac_optarg ;;
1080 -disable-* | --disable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=no ;;
1096 -docdir | --docdir | --docdi | --doc | --do)
1097 ac_prev=docdir ;;
1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1099 docdir=$ac_optarg ;;
1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 ac_prev=dvidir ;;
1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1104 dvidir=$ac_optarg ;;
1106 -enable-* | --enable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error "invalid feature name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "enable_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval enable_$ac_useropt=\$ac_optarg ;;
1122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1124 | --exec | --exe | --ex)
1125 ac_prev=exec_prefix ;;
1126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1128 | --exec=* | --exe=* | --ex=*)
1129 exec_prefix=$ac_optarg ;;
1131 -gas | --gas | --ga | --g)
1132 # Obsolete; use --with-gas.
1133 with_gas=yes ;;
1135 -help | --help | --hel | --he | -h)
1136 ac_init_help=long ;;
1137 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1138 ac_init_help=recursive ;;
1139 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1140 ac_init_help=short ;;
1142 -host | --host | --hos | --ho)
1143 ac_prev=host_alias ;;
1144 -host=* | --host=* | --hos=* | --ho=*)
1145 host_alias=$ac_optarg ;;
1147 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 ac_prev=htmldir ;;
1149 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 | --ht=*)
1151 htmldir=$ac_optarg ;;
1153 -includedir | --includedir | --includedi | --included | --include \
1154 | --includ | --inclu | --incl | --inc)
1155 ac_prev=includedir ;;
1156 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1157 | --includ=* | --inclu=* | --incl=* | --inc=*)
1158 includedir=$ac_optarg ;;
1160 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 ac_prev=infodir ;;
1162 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1163 infodir=$ac_optarg ;;
1165 -libdir | --libdir | --libdi | --libd)
1166 ac_prev=libdir ;;
1167 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1168 libdir=$ac_optarg ;;
1170 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1171 | --libexe | --libex | --libe)
1172 ac_prev=libexecdir ;;
1173 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1174 | --libexe=* | --libex=* | --libe=*)
1175 libexecdir=$ac_optarg ;;
1177 -localedir | --localedir | --localedi | --localed | --locale)
1178 ac_prev=localedir ;;
1179 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1180 localedir=$ac_optarg ;;
1182 -localstatedir | --localstatedir | --localstatedi | --localstated \
1183 | --localstate | --localstat | --localsta | --localst | --locals)
1184 ac_prev=localstatedir ;;
1185 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1186 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1187 localstatedir=$ac_optarg ;;
1189 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 ac_prev=mandir ;;
1191 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1192 mandir=$ac_optarg ;;
1194 -nfp | --nfp | --nf)
1195 # Obsolete; use --without-fp.
1196 with_fp=no ;;
1198 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1199 | --no-cr | --no-c | -n)
1200 no_create=yes ;;
1202 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1203 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204 no_recursion=yes ;;
1206 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1207 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1208 | --oldin | --oldi | --old | --ol | --o)
1209 ac_prev=oldincludedir ;;
1210 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1211 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1212 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1213 oldincludedir=$ac_optarg ;;
1215 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 ac_prev=prefix ;;
1217 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1218 prefix=$ac_optarg ;;
1220 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1221 | --program-pre | --program-pr | --program-p)
1222 ac_prev=program_prefix ;;
1223 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1224 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1225 program_prefix=$ac_optarg ;;
1227 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1228 | --program-suf | --program-su | --program-s)
1229 ac_prev=program_suffix ;;
1230 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1231 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1232 program_suffix=$ac_optarg ;;
1234 -program-transform-name | --program-transform-name \
1235 | --program-transform-nam | --program-transform-na \
1236 | --program-transform-n | --program-transform- \
1237 | --program-transform | --program-transfor \
1238 | --program-transfo | --program-transf \
1239 | --program-trans | --program-tran \
1240 | --progr-tra | --program-tr | --program-t)
1241 ac_prev=program_transform_name ;;
1242 -program-transform-name=* | --program-transform-name=* \
1243 | --program-transform-nam=* | --program-transform-na=* \
1244 | --program-transform-n=* | --program-transform-=* \
1245 | --program-transform=* | --program-transfor=* \
1246 | --program-transfo=* | --program-transf=* \
1247 | --program-trans=* | --program-tran=* \
1248 | --progr-tra=* | --program-tr=* | --program-t=*)
1249 program_transform_name=$ac_optarg ;;
1251 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 ac_prev=pdfdir ;;
1253 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1254 pdfdir=$ac_optarg ;;
1256 -psdir | --psdir | --psdi | --psd | --ps)
1257 ac_prev=psdir ;;
1258 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259 psdir=$ac_optarg ;;
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1263 silent=yes ;;
1265 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 ac_prev=sbindir ;;
1267 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 | --sbi=* | --sb=*)
1269 sbindir=$ac_optarg ;;
1271 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1272 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1273 | --sharedst | --shareds | --shared | --share | --shar \
1274 | --sha | --sh)
1275 ac_prev=sharedstatedir ;;
1276 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1277 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1278 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 | --sha=* | --sh=*)
1280 sharedstatedir=$ac_optarg ;;
1282 -site | --site | --sit)
1283 ac_prev=site ;;
1284 -site=* | --site=* | --sit=*)
1285 site=$ac_optarg ;;
1287 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 ac_prev=srcdir ;;
1289 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1290 srcdir=$ac_optarg ;;
1292 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1293 | --syscon | --sysco | --sysc | --sys | --sy)
1294 ac_prev=sysconfdir ;;
1295 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1296 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1297 sysconfdir=$ac_optarg ;;
1299 -target | --target | --targe | --targ | --tar | --ta | --t)
1300 ac_prev=target_alias ;;
1301 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1302 target_alias=$ac_optarg ;;
1304 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1305 verbose=yes ;;
1307 -version | --version | --versio | --versi | --vers | -V)
1308 ac_init_version=: ;;
1310 -with-* | --with-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=\$ac_optarg ;;
1326 -without-* | --without-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error "invalid package name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1335 "with_$ac_useropt"
1336 "*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval with_$ac_useropt=no ;;
1342 --x)
1343 # Obsolete; use --with-x.
1344 with_x=yes ;;
1346 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347 | --x-incl | --x-inc | --x-in | --x-i)
1348 ac_prev=x_includes ;;
1349 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351 x_includes=$ac_optarg ;;
1353 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355 ac_prev=x_libraries ;;
1356 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358 x_libraries=$ac_optarg ;;
1360 -*) as_fn_error "unrecognized option: \`$ac_option'
1361 Try \`$0 --help' for more information."
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 case $ac_envvar in #(
1368 '' | [0-9]* | *[!_$as_cr_alnum]* )
1369 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1370 esac
1371 eval $ac_envvar=\$ac_optarg
1372 export $ac_envvar ;;
1375 # FIXME: should be removed in autoconf 3.0.
1376 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1382 esac
1383 done
1385 if test -n "$ac_prev"; then
1386 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387 as_fn_error "missing argument to $ac_option"
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1394 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 esac
1398 # Check all directory arguments for consistency.
1399 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1400 datadir sysconfdir sharedstatedir localstatedir includedir \
1401 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1402 libdir localedir mandir
1404 eval ac_val=\$$ac_var
1405 # Remove trailing slashes.
1406 case $ac_val in
1407 */ )
1408 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1409 eval $ac_var=\$ac_val;;
1410 esac
1411 # Be sure to have absolute directory names.
1412 case $ac_val in
1413 [\\/$]* | ?:[\\/]* ) continue;;
1414 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 esac
1416 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1417 done
1419 # There might be people who depend on the old broken behavior: `$host'
1420 # used to hold the argument of --host etc.
1421 # FIXME: To remove some day.
1422 build=$build_alias
1423 host=$host_alias
1424 target=$target_alias
1426 # FIXME: To remove some day.
1427 if test "x$host_alias" != x; then
1428 if test "x$build_alias" = x; then
1429 cross_compiling=maybe
1430 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1431 If a cross compiler is detected then cross compile mode will be used." >&2
1432 elif test "x$build_alias" != "x$host_alias"; then
1433 cross_compiling=yes
1437 ac_tool_prefix=
1438 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1440 test "$silent" = yes && exec 6>/dev/null
1443 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1444 ac_ls_di=`ls -di .` &&
1445 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1446 as_fn_error "working directory cannot be determined"
1447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448 as_fn_error "pwd does not report name of working directory"
1451 # Find the source files, if location was not specified.
1452 if test -z "$srcdir"; then
1453 ac_srcdir_defaulted=yes
1454 # Try the directory containing this script, then the parent directory.
1455 ac_confdir=`$as_dirname -- "$as_myself" ||
1456 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457 X"$as_myself" : 'X\(//\)[^/]' \| \
1458 X"$as_myself" : 'X\(//\)$' \| \
1459 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460 $as_echo X"$as_myself" |
1461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 s//\1/
1465 /^X\(\/\/\)[^/].*/{
1466 s//\1/
1469 /^X\(\/\/\)$/{
1470 s//\1/
1473 /^X\(\/\).*/{
1474 s//\1/
1477 s/.*/./; q'`
1478 srcdir=$ac_confdir
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480 srcdir=..
1482 else
1483 ac_srcdir_defaulted=no
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1489 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1490 ac_abs_confdir=`(
1491 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1492 pwd)`
1493 # When building in place, set srcdir=.
1494 if test "$ac_abs_confdir" = "$ac_pwd"; then
1495 srcdir=.
1497 # Remove unnecessary trailing slashes from srcdir.
1498 # Double slashes in file names in object file debugging info
1499 # mess up M-x gdb in Emacs.
1500 case $srcdir in
1501 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1502 esac
1503 for ac_var in $ac_precious_vars; do
1504 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_env_${ac_var}_value=\$${ac_var}
1506 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1508 done
1511 # Report the --help message.
1513 if test "$ac_init_help" = "long"; then
1514 # Omit some internal or obsolete options to make the list less imposing.
1515 # This message is too long to be a string in the A/UX 3.1 sh.
1516 cat <<_ACEOF
1517 \`configure' configures this package to adapt to many kinds of systems.
1519 Usage: $0 [OPTION]... [VAR=VALUE]...
1521 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1522 VAR=VALUE. See below for descriptions of some of the useful variables.
1524 Defaults for the options are specified in brackets.
1526 Configuration:
1527 -h, --help display this help and exit
1528 --help=short display options specific to this package
1529 --help=recursive display the short help of all the included packages
1530 -V, --version display version information and exit
1531 -q, --quiet, --silent do not print \`checking...' messages
1532 --cache-file=FILE cache test results in FILE [disabled]
1533 -C, --config-cache alias for \`--cache-file=config.cache'
1534 -n, --no-create do not create output files
1535 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1537 Installation directories:
1538 --prefix=PREFIX install architecture-independent files in PREFIX
1539 [$ac_default_prefix]
1540 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1541 [PREFIX]
1543 By default, \`make install' will install all the files in
1544 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1545 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1546 for instance \`--prefix=\$HOME'.
1548 For better control, use the options below.
1550 Fine tuning of the installation directories:
1551 --bindir=DIR user executables [EPREFIX/bin]
1552 --sbindir=DIR system admin executables [EPREFIX/sbin]
1553 --libexecdir=DIR program executables [EPREFIX/libexec]
1554 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1555 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1556 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1557 --libdir=DIR object code libraries [EPREFIX/lib]
1558 --includedir=DIR C header files [PREFIX/include]
1559 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1560 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1561 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1562 --infodir=DIR info documentation [DATAROOTDIR/info]
1563 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1564 --mandir=DIR man documentation [DATAROOTDIR/man]
1565 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1566 --htmldir=DIR html documentation [DOCDIR]
1567 --dvidir=DIR dvi documentation [DOCDIR]
1568 --pdfdir=DIR pdf documentation [DOCDIR]
1569 --psdir=DIR ps documentation [DOCDIR]
1570 _ACEOF
1572 cat <<\_ACEOF
1574 Program names:
1575 --program-prefix=PREFIX prepend PREFIX to installed program names
1576 --program-suffix=SUFFIX append SUFFIX to installed program names
1577 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1579 System types:
1580 --build=BUILD configure for building on BUILD [guessed]
1581 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1582 --target=TARGET configure for building compilers for TARGET [HOST]
1583 _ACEOF
1586 if test -n "$ac_init_help"; then
1588 cat <<\_ACEOF
1590 Optional Features:
1591 --disable-option-checking ignore unrecognized --enable/--with options
1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594 --enable-generated-files-in-srcdir
1595 put copies of generated files in source dir intended
1596 for creating source tarballs for users without
1597 texinfo bison or flex
1598 --disable-largefile omit support for large files
1599 --disable-build-format-warnings
1600 don't use -Wformat while building GCC
1601 --enable-werror-always enable -Werror despite compiler version
1602 --enable-checking[=LIST]
1603 enable expensive run-time checks. With LIST, enable
1604 only specific categories of checks. Categories are:
1605 yes,no,all,none,release. Flags are:
1606 assert,df,extra,fold,gc,gcac,gimple,misc,
1607 rtlflag,rtl,runtime,tree,valgrind,types
1608 --enable-coverage[=LEVEL]
1609 enable compiler's code coverage collection. Use to
1610 measure compiler performance and locate unused parts
1611 of the compiler. With LEVEL, specify optimization.
1612 Values are opt, noopt, default is noopt
1613 --enable-gather-detailed-mem-stats
1614 enable detailed memory allocation stats gathering
1615 --enable-valgrind-annotations
1616 enable valgrind runtime interaction
1617 --enable-multilib enable library support for multiple ABIs
1618 --enable-multiarch enable support for multiarch paths
1619 --enable-__cxa_atexit enable __cxa_atexit for C++
1620 --enable-decimal-float={no,yes,bid,dpd}
1621 enable decimal float extension to C. Selecting 'bid'
1622 or 'dpd' choses which decimal floating point format
1623 to use
1624 --enable-fixed-point enable fixed-point arithmetic extension to C
1625 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1626 package
1627 --enable-tls enable or disable generation of tls code overriding
1628 the assembler check for tls support
1629 --enable-vtable-verify enable vtable verification feature
1630 --enable-objc-gc enable the use of Boehm's garbage collector with the
1631 GNU Objective-C runtime
1632 --disable-shared don't provide a shared libgcc
1633 --enable-languages=LIST specify which front-ends to build
1634 --disable-rpath do not hardcode runtime library paths
1635 --enable-sjlj-exceptions
1636 arrange to use setjmp/longjmp exception handling
1637 --enable-secureplt enable -msecure-plt by default for PowerPC
1638 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1639 Default to platform configuration
1640 --enable-leading-mingw64-underscores
1641 enable leading underscores on 64 bit mingw targets
1642 --enable-cld enable -mcld by default for 32bit x86
1643 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1645 --disable-win32-registry
1646 disable lookup of installation paths in the Registry
1647 on Windows hosts
1648 --enable-win32-registry enable registry lookup (default)
1649 --enable-win32-registry=KEY
1650 use KEY instead of GCC version as the last portion
1651 of the registry key
1652 --enable-shared[=PKGS] build shared libraries [default=yes]
1653 --enable-static[=PKGS] build static libraries [default=yes]
1654 --enable-fast-install[=PKGS]
1655 optimize for fast installation [default=yes]
1656 --disable-libtool-lock avoid locking (might break parallel builds)
1657 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1658 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1659 --enable-gnu-indirect-function
1660 enable the use of the @gnu_indirect_function to
1661 glibc systems
1662 --enable-initfini-array use .init_array/.fini_array sections
1663 --enable-comdat enable COMDAT group support
1665 --enable-fix-cortex-a53-835769
1666 enable workaround for AArch64 Cortex-A53 erratum
1667 835769 by default
1668 --disable-fix-cortex-a53-835769
1669 disable workaround for AArch64 Cortex-A53 erratum
1670 835769 by default
1673 --enable-fix-cortex-a53-843419
1674 enable workaround for AArch64 Cortex-A53 erratum
1675 843419 by default
1676 --disable-fix-cortex-a53-843419
1677 disable workaround for AArch64 Cortex-A53 erratum
1678 843419 by default
1680 --enable-gnu-unique-object
1681 enable the use of the @gnu_unique_object ELF
1682 extension on glibc systems
1683 --enable-linker-build-id
1684 compiler will always pass --build-id to linker
1685 --enable-default-ssp enable Stack Smashing Protection as default
1686 --enable-maintainer-mode
1687 enable make rules and dependencies not useful (and
1688 sometimes confusing) to the casual installer
1689 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1690 thrashing on the build machine
1691 --enable-version-specific-runtime-libs
1692 specify that runtime libraries should be installed
1693 in a compiler-specific directory
1694 --enable-plugin enable plugin support
1695 --enable-host-shared build host code as shared libraries
1696 --disable-libquadmath-support
1697 disable libquadmath support for Fortran
1698 --enable-default-pie enable Position Independent Executable as default
1700 Optional Packages:
1701 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1702 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1703 --with-build-libsubdir=DIR Directory where to find libraries for build system
1704 --with-local-prefix=DIR specifies directory to put local include
1705 --with-native-system-header-dir=dir
1706 use dir as the directory to look for standard
1707 system header files in. Defaults to /usr/include.
1708 --with-build-sysroot=sysroot
1709 use sysroot as the system root during the build
1710 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1711 --with-gxx-include-dir=DIR
1712 specifies directory to put g++ header files
1713 --with-cpp-install-dir=DIR
1714 install the user visible C preprocessor in DIR
1715 (relative to PREFIX) as well as PREFIX/bin
1716 --with-gnu-ld arrange to work with GNU ld
1717 --with-ld arrange to use the specified ld (full pathname)
1718 --with-demangler-in-ld try to use demangler in GNU ld
1719 --with-gnu-as arrange to work with GNU as
1720 --with-as arrange to use the specified as (full pathname)
1721 --with-stabs arrange to use stabs instead of host debug format
1722 --with-dwarf2 force the default debug format to be DWARF 2
1723 --with-specs=SPECS add SPECS to driver command-line processing
1724 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1725 --with-bugurl=URL Direct users to URL to report a bug
1726 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1727 --with-gnu-ld assume the C compiler uses GNU ld default=no
1728 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1729 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1730 --with-gcc-major-version-only
1731 use only GCC major number in filesystem paths
1732 --with-pic try to use only PIC/non-PIC objects [default=use
1733 both]
1734 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1735 --with-plugin-ld=[ARG] specify the plugin linker
1736 --with-glibc-version=M.N
1737 assume GCC used with glibc version M.N or later
1738 --with-long-double-128 use 128-bit long double by default
1739 --with-gc={page,zone} this option is not supported anymore. It used to
1740 choose the garbage collection mechanism to use with
1741 the compiler
1742 --with-system-zlib use installed libz
1743 --with-linker-hash-style={sysv,gnu,both}
1744 specify the linker hash style
1745 --with-diagnostics-color={never,auto,auto-if-env,always}
1746 specify the default of -fdiagnostics-color option
1747 auto-if-env stands for -fdiagnostics-color=auto if
1748 GCC_COLOR environment variable is present and
1749 -fdiagnostics-color=never otherwise
1751 Some influential environment variables:
1752 CC C compiler command
1753 CFLAGS C compiler flags
1754 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1755 nonstandard directory <lib dir>
1756 LIBS libraries to pass to the linker, e.g. -l<library>
1757 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1758 you have headers in a nonstandard directory <include dir>
1759 CXX C++ compiler command
1760 CXXFLAGS C++ compiler flags
1761 CXXCPP C++ preprocessor
1762 CPP C preprocessor
1763 GMPLIBS How to link GMP
1764 GMPINC How to find GMP include files
1765 ISLLIBS How to link isl
1766 ISLINC How to find isl include files
1768 Use these variables to override the choices made by `configure' or to help
1769 it to find libraries and programs with nonstandard names/locations.
1771 Report bugs to the package provider.
1772 _ACEOF
1773 ac_status=$?
1776 if test "$ac_init_help" = "recursive"; then
1777 # If there are subdirs, report their specific --help.
1778 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779 test -d "$ac_dir" ||
1780 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1781 continue
1782 ac_builddir=.
1784 case "$ac_dir" in
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788 # A ".." for each directory in $ac_dir_suffix.
1789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790 case $ac_top_builddir_sub in
1791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793 esac ;;
1794 esac
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1800 case $srcdir in
1801 .) # We are building in place.
1802 ac_srcdir=.
1803 ac_top_srcdir=$ac_top_builddir_sub
1804 ac_abs_top_srcdir=$ac_pwd ;;
1805 [\\/]* | ?:[\\/]* ) # Absolute name.
1806 ac_srcdir=$srcdir$ac_dir_suffix;
1807 ac_top_srcdir=$srcdir
1808 ac_abs_top_srcdir=$srcdir ;;
1809 *) # Relative name.
1810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811 ac_top_srcdir=$ac_top_build_prefix$srcdir
1812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 esac
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1816 cd "$ac_dir" || { ac_status=$?; continue; }
1817 # Check for guested configure.
1818 if test -f "$ac_srcdir/configure.gnu"; then
1819 echo &&
1820 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821 elif test -f "$ac_srcdir/configure"; then
1822 echo &&
1823 $SHELL "$ac_srcdir/configure" --help=recursive
1824 else
1825 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826 fi || ac_status=$?
1827 cd "$ac_pwd" || { ac_status=$?; break; }
1828 done
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1833 cat <<\_ACEOF
1834 configure
1835 generated by GNU Autoconf 2.64
1837 Copyright (C) 2009 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1840 _ACEOF
1841 exit
1844 ## ------------------------ ##
1845 ## Autoconf initialization. ##
1846 ## ------------------------ ##
1848 # ac_fn_c_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_compile ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext
1855 if { { ac_try="$ac_compile"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_compile") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest.$ac_objext; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1879 ac_retval=1
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1884 } # ac_fn_c_try_compile
1886 # ac_fn_cxx_try_compile LINENO
1887 # ----------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_compile ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext
1893 if { { ac_try="$ac_compile"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_compile") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest.$ac_objext; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=1
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 return $ac_retval
1922 } # ac_fn_cxx_try_compile
1924 # ac_fn_cxx_try_cpp LINENO
1925 # ------------------------
1926 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_cxx_try_cpp ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_cpp conftest.$ac_ext"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } >/dev/null && {
1946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 }; then :
1949 ac_retval=0
1950 else
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=1
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 return $ac_retval
1959 } # ac_fn_cxx_try_cpp
1961 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1962 # ---------------------------------------------------------
1963 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1964 # the include files in INCLUDES and setting the cache variable VAR
1965 # accordingly.
1966 ac_fn_cxx_check_header_mongrel ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973 $as_echo_n "(cached) " >&6
1975 eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 else
1979 # Is the header compilable?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1981 $as_echo_n "checking $2 usability... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1985 #include <$2>
1986 _ACEOF
1987 if ac_fn_cxx_try_compile "$LINENO"; then :
1988 ac_header_compiler=yes
1989 else
1990 ac_header_compiler=no
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1994 $as_echo "$ac_header_compiler" >&6; }
1996 # Is the header present?
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1998 $as_echo_n "checking $2 presence... " >&6; }
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2001 #include <$2>
2002 _ACEOF
2003 if ac_fn_cxx_try_cpp "$LINENO"; then :
2004 ac_header_preproc=yes
2005 else
2006 ac_header_preproc=no
2008 rm -f conftest.err conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2010 $as_echo "$ac_header_preproc" >&6; }
2012 # So? What about this header?
2013 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2014 yes:no: )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2016 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 no:yes:* )
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2022 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2024 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2026 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2028 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2030 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032 esac
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 eval "$3=\$ac_header_compiler"
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_cxx_check_header_mongrel
2048 # ac_fn_cxx_try_run LINENO
2049 # ------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2051 # that executables *can* be run.
2052 ac_fn_cxx_try_run ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_link"
2056 case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>&5
2063 ac_status=$?
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2066 { { case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_try") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; }; }; then :
2076 ac_retval=0
2077 else
2078 $as_echo "$as_me: program exited with status $ac_status" >&5
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2082 ac_retval=$ac_status
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 return $ac_retval
2088 } # ac_fn_cxx_try_run
2090 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2091 # ---------------------------------------------------------
2092 # Tests whether HEADER exists and can be compiled using the include files in
2093 # INCLUDES, setting the cache variable VAR accordingly.
2094 ac_fn_cxx_check_header_compile ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2105 #include <$2>
2106 _ACEOF
2107 if ac_fn_cxx_try_compile "$LINENO"; then :
2108 eval "$3=yes"
2109 else
2110 eval "$3=no"
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_cxx_check_header_compile
2121 # ac_fn_c_try_cpp LINENO
2122 # ----------------------
2123 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_c_try_cpp ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_cpp conftest.$ac_ext"
2128 case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2135 ac_status=$?
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } >/dev/null && {
2143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2144 test ! -s conftest.err
2145 }; then :
2146 ac_retval=0
2147 else
2148 $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2151 ac_retval=1
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 return $ac_retval
2156 } # ac_fn_c_try_cpp
2158 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2159 # ----------------------------------------------
2160 # Tries to find the compile-time value of EXPR in a program that includes
2161 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2162 # computed
2163 ac_fn_cxx_compute_int ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if test "$cross_compiling" = yes; then
2167 # Depending upon the size, compute the lo and hi bounds.
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 static int test_array [1 - 2 * !(($2) >= 0)];
2175 test_array [0] = 0
2178 return 0;
2180 _ACEOF
2181 if ac_fn_cxx_try_compile "$LINENO"; then :
2182 ac_lo=0 ac_mid=0
2183 while :; do
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2188 main ()
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2191 test_array [0] = 0
2194 return 0;
2196 _ACEOF
2197 if ac_fn_cxx_try_compile "$LINENO"; then :
2198 ac_hi=$ac_mid; break
2199 else
2200 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2201 if test $ac_lo -le $ac_mid; then
2202 ac_lo= ac_hi=
2203 break
2205 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 done
2209 else
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2214 main ()
2216 static int test_array [1 - 2 * !(($2) < 0)];
2217 test_array [0] = 0
2220 return 0;
2222 _ACEOF
2223 if ac_fn_cxx_try_compile "$LINENO"; then :
2224 ac_hi=-1 ac_mid=-1
2225 while :; do
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2230 main ()
2232 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2233 test_array [0] = 0
2236 return 0;
2238 _ACEOF
2239 if ac_fn_cxx_try_compile "$LINENO"; then :
2240 ac_lo=$ac_mid; break
2241 else
2242 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2243 if test $ac_mid -le $ac_hi; then
2244 ac_lo= ac_hi=
2245 break
2247 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 done
2251 else
2252 ac_lo= ac_hi=
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 # Binary search between lo and hi bounds.
2258 while test "x$ac_lo" != "x$ac_hi"; do
2259 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2264 main ()
2266 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2267 test_array [0] = 0
2270 return 0;
2272 _ACEOF
2273 if ac_fn_cxx_try_compile "$LINENO"; then :
2274 ac_hi=$ac_mid
2275 else
2276 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 done
2280 case $ac_lo in #((
2281 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2282 '') ac_retval=1 ;;
2283 esac
2284 else
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2288 static long int longval () { return $2; }
2289 static unsigned long int ulongval () { return $2; }
2290 #include <stdio.h>
2291 #include <stdlib.h>
2293 main ()
2296 FILE *f = fopen ("conftest.val", "w");
2297 if (! f)
2298 return 1;
2299 if (($2) < 0)
2301 long int i = longval ();
2302 if (i != ($2))
2303 return 1;
2304 fprintf (f, "%ld", i);
2306 else
2308 unsigned long int i = ulongval ();
2309 if (i != ($2))
2310 return 1;
2311 fprintf (f, "%lu", i);
2313 /* Do not output a trailing newline, as this causes \r\n confusion
2314 on some platforms. */
2315 return ferror (f) || fclose (f) != 0;
2318 return 0;
2320 _ACEOF
2321 if ac_fn_cxx_try_run "$LINENO"; then :
2322 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2323 else
2324 ac_retval=1
2326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2327 conftest.$ac_objext conftest.beam conftest.$ac_ext
2328 rm -f conftest.val
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 return $ac_retval
2334 } # ac_fn_cxx_compute_int
2336 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2337 # ---------------------------------------------
2338 # Tests whether TYPE exists after having included INCLUDES, setting cache
2339 # variable VAR accordingly.
2340 ac_fn_cxx_check_type ()
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344 $as_echo_n "checking for $2... " >&6; }
2345 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2346 $as_echo_n "(cached) " >&6
2347 else
2348 eval "$3=no"
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2353 main ()
2355 if (sizeof ($2))
2356 return 0;
2358 return 0;
2360 _ACEOF
2361 if ac_fn_cxx_try_compile "$LINENO"; then :
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2366 main ()
2368 if (sizeof (($2)))
2369 return 0;
2371 return 0;
2373 _ACEOF
2374 if ac_fn_cxx_try_compile "$LINENO"; then :
2376 else
2377 eval "$3=yes"
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 } # ac_fn_cxx_check_type
2390 # ac_fn_c_find_intX_t LINENO BITS VAR
2391 # -----------------------------------
2392 # Finds a signed integer type with width BITS, setting cache variable VAR
2393 # accordingly.
2394 ac_fn_c_find_intX_t ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2398 $as_echo_n "checking for int$2_t... " >&6; }
2399 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 eval "$3=no"
2403 for ac_type in int$2_t 'int' 'long int' \
2404 'long long int' 'short int' 'signed char'; do
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 $ac_includes_default
2409 main ()
2411 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2412 test_array [0] = 0
2415 return 0;
2417 _ACEOF
2418 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 $ac_includes_default
2423 main ()
2425 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2426 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2427 test_array [0] = 0
2430 return 0;
2432 _ACEOF
2433 if ac_fn_cxx_try_compile "$LINENO"; then :
2435 else
2436 case $ac_type in #(
2437 int$2_t) :
2438 eval "$3=yes" ;; #(
2439 *) :
2440 eval "$3=\$ac_type" ;;
2441 esac
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 eval as_val=\$$3
2447 if test "x$as_val" = x""no; then :
2449 else
2450 break
2452 done
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_find_intX_t
2461 # ac_fn_cxx_try_link LINENO
2462 # -------------------------
2463 # Try to link conftest.$ac_ext, and return whether this succeeded.
2464 ac_fn_cxx_try_link ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { { ac_try="$ac_link"
2469 case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472 esac
2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474 $as_echo "$ac_try_echo"; } >&5
2475 (eval "$ac_link") 2>conftest.err
2476 ac_status=$?
2477 if test -s conftest.err; then
2478 grep -v '^ *+' conftest.err >conftest.er1
2479 cat conftest.er1 >&5
2480 mv -f conftest.er1 conftest.err
2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2483 test $ac_status = 0; } && {
2484 test -z "$ac_cxx_werror_flag" ||
2485 test ! -s conftest.err
2486 } && test -s conftest$ac_exeext && {
2487 test "$cross_compiling" = yes ||
2488 $as_test_x conftest$ac_exeext
2489 }; then :
2490 ac_retval=0
2491 else
2492 $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2495 ac_retval=1
2497 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2498 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2499 # interfere with the next link command; also delete a directory that is
2500 # left behind by Apple's compiler. We do this before executing the actions.
2501 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 return $ac_retval
2505 } # ac_fn_cxx_try_link
2507 # ac_fn_c_find_uintX_t LINENO BITS VAR
2508 # ------------------------------------
2509 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2510 # accordingly.
2511 ac_fn_c_find_uintX_t ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2515 $as_echo_n "checking for uint$2_t... " >&6; }
2516 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 eval "$3=no"
2520 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2521 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2524 $ac_includes_default
2526 main ()
2528 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2529 test_array [0] = 0
2532 return 0;
2534 _ACEOF
2535 if ac_fn_cxx_try_compile "$LINENO"; then :
2536 case $ac_type in #(
2537 uint$2_t) :
2538 eval "$3=yes" ;; #(
2539 *) :
2540 eval "$3=\$ac_type" ;;
2541 esac
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 eval as_val=\$$3
2545 if test "x$as_val" = x""no; then :
2547 else
2548 break
2550 done
2552 eval ac_res=\$$3
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2557 } # ac_fn_c_find_uintX_t
2559 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2560 # ------------------------------------------------
2561 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2562 ac_fn_cxx_check_header_preproc ()
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 #include <$2>
2573 _ACEOF
2574 if ac_fn_cxx_try_cpp "$LINENO"; then :
2575 eval "$3=yes"
2576 else
2577 eval "$3=no"
2579 rm -f conftest.err conftest.$ac_ext
2581 eval ac_res=\$$3
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2583 $as_echo "$ac_res" >&6; }
2584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2586 } # ac_fn_cxx_check_header_preproc
2588 # ac_fn_cxx_check_func LINENO FUNC VAR
2589 # ------------------------------------
2590 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2591 ac_fn_cxx_check_func ()
2593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2595 $as_echo_n "checking for $2... " >&6; }
2596 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2601 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2603 #define $2 innocuous_$2
2605 /* System header to define __stub macros and hopefully few prototypes,
2606 which can conflict with char $2 (); below.
2607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2608 <limits.h> exists even on freestanding compilers. */
2610 #ifdef __STDC__
2611 # include <limits.h>
2612 #else
2613 # include <assert.h>
2614 #endif
2616 #undef $2
2618 /* Override any GCC internal prototype to avoid an error.
2619 Use char because int might match the return type of a GCC
2620 builtin and then its argument prototype would still apply. */
2621 #ifdef __cplusplus
2622 extern "C"
2623 #endif
2624 char $2 ();
2625 /* The GNU C library defines this for functions which it implements
2626 to always fail with ENOSYS. Some functions are actually named
2627 something starting with __ and the normal name is an alias. */
2628 #if defined __stub_$2 || defined __stub___$2
2629 choke me
2630 #endif
2633 main ()
2635 return $2 ();
2637 return 0;
2639 _ACEOF
2640 if ac_fn_cxx_try_link "$LINENO"; then :
2641 eval "$3=yes"
2642 else
2643 eval "$3=no"
2645 rm -f core conftest.err conftest.$ac_objext \
2646 conftest$ac_exeext conftest.$ac_ext
2648 eval ac_res=\$$3
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2653 } # ac_fn_cxx_check_func
2655 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2656 # --------------------------------------
2657 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2658 ac_fn_cxx_check_decl ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 as_decl_name=`echo $2|sed 's/ *(.*//'`
2662 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2664 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2665 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2672 main ()
2674 #ifndef $as_decl_name
2675 #ifdef __cplusplus
2676 (void) $as_decl_use;
2677 #else
2678 (void) $as_decl_name;
2679 #endif
2680 #endif
2683 return 0;
2685 _ACEOF
2686 if ac_fn_cxx_try_compile "$LINENO"; then :
2687 eval "$3=yes"
2688 else
2689 eval "$3=no"
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693 eval ac_res=\$$3
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2698 } # ac_fn_cxx_check_decl
2700 # ac_fn_c_try_link LINENO
2701 # -----------------------
2702 # Try to link conftest.$ac_ext, and return whether this succeeded.
2703 ac_fn_c_try_link ()
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { { ac_try="$ac_link"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_link") 2>conftest.err
2715 ac_status=$?
2716 if test -s conftest.err; then
2717 grep -v '^ *+' conftest.err >conftest.er1
2718 cat conftest.er1 >&5
2719 mv -f conftest.er1 conftest.err
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest$ac_exeext && {
2726 test "$cross_compiling" = yes ||
2727 $as_test_x conftest$ac_exeext
2728 }; then :
2729 ac_retval=0
2730 else
2731 $as_echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2734 ac_retval=1
2736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2738 # interfere with the next link command; also delete a directory that is
2739 # left behind by Apple's compiler. We do this before executing the actions.
2740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2742 return $ac_retval
2744 } # ac_fn_c_try_link
2746 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2747 # ----------------------------------------------
2748 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2749 ac_fn_c_check_header_preproc ()
2751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2753 $as_echo_n "checking for $2... " >&6; }
2754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2759 #include <$2>
2760 _ACEOF
2761 if ac_fn_c_try_cpp "$LINENO"; then :
2762 eval "$3=yes"
2763 else
2764 eval "$3=no"
2766 rm -f conftest.err conftest.$ac_ext
2768 eval ac_res=\$$3
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770 $as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2773 } # ac_fn_c_check_header_preproc
2775 # ac_fn_c_check_func LINENO FUNC VAR
2776 # ----------------------------------
2777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2778 ac_fn_c_check_func ()
2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2782 $as_echo_n "checking for $2... " >&6; }
2783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2790 #define $2 innocuous_$2
2792 /* System header to define __stub macros and hopefully few prototypes,
2793 which can conflict with char $2 (); below.
2794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2795 <limits.h> exists even on freestanding compilers. */
2797 #ifdef __STDC__
2798 # include <limits.h>
2799 #else
2800 # include <assert.h>
2801 #endif
2803 #undef $2
2805 /* Override any GCC internal prototype to avoid an error.
2806 Use char because int might match the return type of a GCC
2807 builtin and then its argument prototype would still apply. */
2808 #ifdef __cplusplus
2809 extern "C"
2810 #endif
2811 char $2 ();
2812 /* The GNU C library defines this for functions which it implements
2813 to always fail with ENOSYS. Some functions are actually named
2814 something starting with __ and the normal name is an alias. */
2815 #if defined __stub_$2 || defined __stub___$2
2816 choke me
2817 #endif
2820 main ()
2822 return $2 ();
2824 return 0;
2826 _ACEOF
2827 if ac_fn_c_try_link "$LINENO"; then :
2828 eval "$3=yes"
2829 else
2830 eval "$3=no"
2832 rm -f core conftest.err conftest.$ac_objext \
2833 conftest$ac_exeext conftest.$ac_ext
2835 eval ac_res=\$$3
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2840 } # ac_fn_c_check_func
2841 cat >config.log <<_ACEOF
2842 This file contains any messages produced by compilers while
2843 running configure, to aid debugging if configure makes a mistake.
2845 It was created by $as_me, which was
2846 generated by GNU Autoconf 2.64. Invocation command line was
2848 $ $0 $@
2850 _ACEOF
2851 exec 5>>config.log
2853 cat <<_ASUNAME
2854 ## --------- ##
2855 ## Platform. ##
2856 ## --------- ##
2858 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2859 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2860 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2861 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2862 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2864 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2865 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2867 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2868 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2869 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2870 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2871 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2872 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2873 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2875 _ASUNAME
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 $as_echo "PATH: $as_dir"
2883 done
2884 IFS=$as_save_IFS
2886 } >&5
2888 cat >&5 <<_ACEOF
2891 ## ----------- ##
2892 ## Core tests. ##
2893 ## ----------- ##
2895 _ACEOF
2898 # Keep a trace of the command line.
2899 # Strip out --no-create and --no-recursion so they do not pile up.
2900 # Strip out --silent because we don't want to record it for future runs.
2901 # Also quote any args containing shell meta-characters.
2902 # Make two passes to allow for proper duplicate-argument suppression.
2903 ac_configure_args=
2904 ac_configure_args0=
2905 ac_configure_args1=
2906 ac_must_keep_next=false
2907 for ac_pass in 1 2
2909 for ac_arg
2911 case $ac_arg in
2912 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2913 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2914 | -silent | --silent | --silen | --sile | --sil)
2915 continue ;;
2916 *\'*)
2917 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2918 esac
2919 case $ac_pass in
2920 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2922 as_fn_append ac_configure_args1 " '$ac_arg'"
2923 if test $ac_must_keep_next = true; then
2924 ac_must_keep_next=false # Got value, back to normal.
2925 else
2926 case $ac_arg in
2927 *=* | --config-cache | -C | -disable-* | --disable-* \
2928 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2929 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2930 | -with-* | --with-* | -without-* | --without-* | --x)
2931 case "$ac_configure_args0 " in
2932 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2933 esac
2935 -* ) ac_must_keep_next=true ;;
2936 esac
2938 as_fn_append ac_configure_args " '$ac_arg'"
2940 esac
2941 done
2942 done
2943 { ac_configure_args0=; unset ac_configure_args0;}
2944 { ac_configure_args1=; unset ac_configure_args1;}
2946 # When interrupted or exit'd, cleanup temporary files, and complete
2947 # config.log. We remove comments because anyway the quotes in there
2948 # would cause problems or look ugly.
2949 # WARNING: Use '\'' to represent an apostrophe within the trap.
2950 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2951 trap 'exit_status=$?
2952 # Save into config.log some information that might help in debugging.
2954 echo
2956 cat <<\_ASBOX
2957 ## ---------------- ##
2958 ## Cache variables. ##
2959 ## ---------------- ##
2960 _ASBOX
2961 echo
2962 # The following way of writing the cache mishandles newlines in values,
2964 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2965 eval ac_val=\$$ac_var
2966 case $ac_val in #(
2967 *${as_nl}*)
2968 case $ac_var in #(
2969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2971 esac
2972 case $ac_var in #(
2973 _ | IFS | as_nl) ;; #(
2974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2975 *) { eval $ac_var=; unset $ac_var;} ;;
2976 esac ;;
2977 esac
2978 done
2979 (set) 2>&1 |
2980 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2981 *${as_nl}ac_space=\ *)
2982 sed -n \
2983 "s/'\''/'\''\\\\'\'''\''/g;
2984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2985 ;; #(
2987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2989 esac |
2990 sort
2992 echo
2994 cat <<\_ASBOX
2995 ## ----------------- ##
2996 ## Output variables. ##
2997 ## ----------------- ##
2998 _ASBOX
2999 echo
3000 for ac_var in $ac_subst_vars
3002 eval ac_val=\$$ac_var
3003 case $ac_val in
3004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3005 esac
3006 $as_echo "$ac_var='\''$ac_val'\''"
3007 done | sort
3008 echo
3010 if test -n "$ac_subst_files"; then
3011 cat <<\_ASBOX
3012 ## ------------------- ##
3013 ## File substitutions. ##
3014 ## ------------------- ##
3015 _ASBOX
3016 echo
3017 for ac_var in $ac_subst_files
3019 eval ac_val=\$$ac_var
3020 case $ac_val in
3021 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3022 esac
3023 $as_echo "$ac_var='\''$ac_val'\''"
3024 done | sort
3025 echo
3028 if test -s confdefs.h; then
3029 cat <<\_ASBOX
3030 ## ----------- ##
3031 ## confdefs.h. ##
3032 ## ----------- ##
3033 _ASBOX
3034 echo
3035 cat confdefs.h
3036 echo
3038 test "$ac_signal" != 0 &&
3039 $as_echo "$as_me: caught signal $ac_signal"
3040 $as_echo "$as_me: exit $exit_status"
3041 } >&5
3042 rm -f core *.core core.conftest.* &&
3043 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3044 exit $exit_status
3046 for ac_signal in 1 2 13 15; do
3047 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3048 done
3049 ac_signal=0
3051 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3052 rm -f -r conftest* confdefs.h
3054 $as_echo "/* confdefs.h */" > confdefs.h
3056 # Predefined preprocessor variables.
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_NAME "$PACKAGE_NAME"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3068 _ACEOF
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_STRING "$PACKAGE_STRING"
3072 _ACEOF
3074 cat >>confdefs.h <<_ACEOF
3075 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3076 _ACEOF
3078 cat >>confdefs.h <<_ACEOF
3079 #define PACKAGE_URL "$PACKAGE_URL"
3080 _ACEOF
3083 # Let the site file select an alternate cache file if it wants to.
3084 # Prefer an explicitly selected file to automatically selected ones.
3085 ac_site_file1=NONE
3086 ac_site_file2=NONE
3087 if test -n "$CONFIG_SITE"; then
3088 ac_site_file1=$CONFIG_SITE
3089 elif test "x$prefix" != xNONE; then
3090 ac_site_file1=$prefix/share/config.site
3091 ac_site_file2=$prefix/etc/config.site
3092 else
3093 ac_site_file1=$ac_default_prefix/share/config.site
3094 ac_site_file2=$ac_default_prefix/etc/config.site
3096 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3098 test "x$ac_site_file" = xNONE && continue
3099 if test -r "$ac_site_file"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3101 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3102 sed 's/^/| /' "$ac_site_file" >&5
3103 . "$ac_site_file"
3105 done
3107 if test -r "$cache_file"; then
3108 # Some versions of bash will fail to source /dev/null (special
3109 # files actually), so we avoid doing that.
3110 if test -f "$cache_file"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3112 $as_echo "$as_me: loading cache $cache_file" >&6;}
3113 case $cache_file in
3114 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3115 *) . "./$cache_file";;
3116 esac
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3120 $as_echo "$as_me: creating cache $cache_file" >&6;}
3121 >$cache_file
3124 # Check that the precious variables saved in the cache have kept the same
3125 # value.
3126 ac_cache_corrupted=false
3127 for ac_var in $ac_precious_vars; do
3128 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3129 eval ac_new_set=\$ac_env_${ac_var}_set
3130 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3131 eval ac_new_val=\$ac_env_${ac_var}_value
3132 case $ac_old_set,$ac_new_set in
3133 set,)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3135 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3136 ac_cache_corrupted=: ;;
3137 ,set)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3139 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3140 ac_cache_corrupted=: ;;
3141 ,);;
3143 if test "x$ac_old_val" != "x$ac_new_val"; then
3144 # differences in whitespace do not lead to failure.
3145 ac_old_val_w=`echo x $ac_old_val`
3146 ac_new_val_w=`echo x $ac_new_val`
3147 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3149 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3150 ac_cache_corrupted=:
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3153 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3154 eval $ac_var=\$ac_old_val
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3157 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3159 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3160 fi;;
3161 esac
3162 # Pass precious variables to config.status.
3163 if test "$ac_new_set" = set; then
3164 case $ac_new_val in
3165 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3166 *) ac_arg=$ac_var=$ac_new_val ;;
3167 esac
3168 case " $ac_configure_args " in
3169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3170 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3171 esac
3173 done
3174 if $ac_cache_corrupted; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3178 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3179 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3181 ## -------------------- ##
3182 ## Main body of script. ##
3183 ## -------------------- ##
3185 ac_ext=c
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3199 gcc_version=`cat $srcdir/BASE-VER`
3201 # Determine the host, build, and target systems
3202 ac_aux_dir=
3203 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3204 for ac_t in install-sh install.sh shtool; do
3205 if test -f "$ac_dir/$ac_t"; then
3206 ac_aux_dir=$ac_dir
3207 ac_install_sh="$ac_aux_dir/$ac_t -c"
3208 break 2
3210 done
3211 done
3212 if test -z "$ac_aux_dir"; then
3213 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3216 # These three variables are undocumented and unsupported,
3217 # and are intended to be withdrawn in a future Autoconf release.
3218 # They can cause serious problems if a builder's source tree is in a directory
3219 # whose full name contains unusual characters.
3220 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3221 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3222 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3225 # Make sure we can run config.sub.
3226 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3227 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3230 $as_echo_n "checking build system type... " >&6; }
3231 if test "${ac_cv_build+set}" = set; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 ac_build_alias=$build_alias
3235 test "x$ac_build_alias" = x &&
3236 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3237 test "x$ac_build_alias" = x &&
3238 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3239 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3240 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3244 $as_echo "$ac_cv_build" >&6; }
3245 case $ac_cv_build in
3246 *-*-*) ;;
3247 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3248 esac
3249 build=$ac_cv_build
3250 ac_save_IFS=$IFS; IFS='-'
3251 set x $ac_cv_build
3252 shift
3253 build_cpu=$1
3254 build_vendor=$2
3255 shift; shift
3256 # Remember, the first character of IFS is used to create $*,
3257 # except with old shells:
3258 build_os=$*
3259 IFS=$ac_save_IFS
3260 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3264 $as_echo_n "checking host system type... " >&6; }
3265 if test "${ac_cv_host+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test "x$host_alias" = x; then
3269 ac_cv_host=$ac_cv_build
3270 else
3271 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3272 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3277 $as_echo "$ac_cv_host" >&6; }
3278 case $ac_cv_host in
3279 *-*-*) ;;
3280 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3281 esac
3282 host=$ac_cv_host
3283 ac_save_IFS=$IFS; IFS='-'
3284 set x $ac_cv_host
3285 shift
3286 host_cpu=$1
3287 host_vendor=$2
3288 shift; shift
3289 # Remember, the first character of IFS is used to create $*,
3290 # except with old shells:
3291 host_os=$*
3292 IFS=$ac_save_IFS
3293 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3297 $as_echo_n "checking target system type... " >&6; }
3298 if test "${ac_cv_target+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test "x$target_alias" = x; then
3302 ac_cv_target=$ac_cv_host
3303 else
3304 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3305 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3310 $as_echo "$ac_cv_target" >&6; }
3311 case $ac_cv_target in
3312 *-*-*) ;;
3313 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3314 esac
3315 target=$ac_cv_target
3316 ac_save_IFS=$IFS; IFS='-'
3317 set x $ac_cv_target
3318 shift
3319 target_cpu=$1
3320 target_vendor=$2
3321 shift; shift
3322 # Remember, the first character of IFS is used to create $*,
3323 # except with old shells:
3324 target_os=$*
3325 IFS=$ac_save_IFS
3326 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3329 # The aliases save the names the user supplied, while $host etc.
3330 # will get canonicalized.
3331 test -n "$target_alias" &&
3332 test "$program_prefix$program_suffix$program_transform_name" = \
3333 NONENONEs,x,x, &&
3334 program_prefix=${target_alias}-
3336 # Determine the noncanonical host name, for Ada.
3337 case ${build_alias} in
3338 "") build_noncanonical=${build} ;;
3339 *) build_noncanonical=${build_alias} ;;
3340 esac
3342 case ${host_alias} in
3343 "") host_noncanonical=${build_noncanonical} ;;
3344 *) host_noncanonical=${host_alias} ;;
3345 esac
3350 # Determine the noncanonical target name, for directory use.
3351 case ${target_alias} in
3352 "") target_noncanonical=${host_noncanonical} ;;
3353 *) target_noncanonical=${target_alias} ;;
3354 esac
3359 # Used for constructing correct paths for offload compilers.
3360 real_target_noncanonical=${target_noncanonical}
3361 accel_dir_suffix=
3363 # Determine the target- and build-specific subdirectories
3365 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3366 # have matching libraries, they should use host libraries: Makefile.tpl
3367 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3368 # However, they still use the build modules, because the corresponding
3369 # host modules (e.g. bison) are only built for the host when bootstrap
3370 # finishes. So:
3371 # - build_subdir is where we find build modules, and never changes.
3372 # - build_libsubdir is where we find build libraries, and can be overridden.
3374 # Prefix 'build-' so this never conflicts with target_subdir.
3375 build_subdir="build-${build_noncanonical}"
3377 # Check whether --with-build-libsubdir was given.
3378 if test "${with_build_libsubdir+set}" = set; then :
3379 withval=$with_build_libsubdir; build_libsubdir="$withval"
3380 else
3381 build_libsubdir="$build_subdir"
3384 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3385 if ( test $srcdir = . && test -d gcc ) \
3386 || test -d $srcdir/../host-${host_noncanonical}; then
3387 host_subdir="host-${host_noncanonical}"
3388 else
3389 host_subdir=.
3391 # No prefix.
3392 target_subdir=${target_noncanonical}
3395 # Set program_transform_name
3396 test "$program_prefix" != NONE &&
3397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3398 # Use a double $ so make ignores it.
3399 test "$program_suffix" != NONE &&
3400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3401 # Double any \ or $.
3402 # By default was `s,x,x', remove it if useless.
3403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3407 # Check for bogus environment variables.
3408 # Test if LIBRARY_PATH contains the notation for the current directory
3409 # since this would lead to problems installing/building glibc.
3410 # LIBRARY_PATH contains the current directory if one of the following
3411 # is true:
3412 # - one of the terminals (":" and ";") is the first or last sign
3413 # - two terminals occur directly after each other
3414 # - the path contains an element with a dot in it
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3416 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3417 case ${LIBRARY_PATH} in
3418 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3419 library_path_setting="contains current directory"
3422 library_path_setting="ok"
3424 esac
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3426 $as_echo "$library_path_setting" >&6; }
3427 if test "$library_path_setting" != "ok"; then
3428 as_fn_error "
3429 *** LIBRARY_PATH shouldn't contain the current directory when
3430 *** building gcc. Please change the environment variable
3431 *** and run configure again." "$LINENO" 5
3434 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3435 # since this would lead to problems installing/building glibc.
3436 # GCC_EXEC_PREFIX contains the current directory if one of the following
3437 # is true:
3438 # - one of the terminals (":" and ";") is the first or last sign
3439 # - two terminals occur directly after each other
3440 # - the path contains an element with a dot in it
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3442 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3443 case ${GCC_EXEC_PREFIX} in
3444 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3445 gcc_exec_prefix_setting="contains current directory"
3448 gcc_exec_prefix_setting="ok"
3450 esac
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3452 $as_echo "$gcc_exec_prefix_setting" >&6; }
3453 if test "$gcc_exec_prefix_setting" != "ok"; then
3454 as_fn_error "
3455 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3456 *** building gcc. Please change the environment variable
3457 *** and run configure again." "$LINENO" 5
3460 # -----------
3461 # Directories
3462 # -----------
3464 # Specify the local prefix
3465 local_prefix=
3467 # Check whether --with-local-prefix was given.
3468 if test "${with_local_prefix+set}" = set; then :
3469 withval=$with_local_prefix; case "${withval}" in
3470 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3471 no) ;;
3472 *) local_prefix=$with_local_prefix ;;
3473 esac
3477 # Default local prefix if it is empty
3478 if test x$local_prefix = x; then
3479 local_prefix=/usr/local
3483 # Check whether --with-native-system-header-dir was given.
3484 if test "${with_native_system_header_dir+set}" = set; then :
3485 withval=$with_native_system_header_dir;
3486 case ${with_native_system_header_dir} in
3487 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3488 /* | [A-Za-z]:[\\/]*) ;;
3489 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3490 esac
3491 configured_native_system_header_dir="${withval}"
3493 else
3494 configured_native_system_header_dir=
3499 # Check whether --with-build-sysroot was given.
3500 if test "${with_build_sysroot+set}" = set; then :
3501 withval=$with_build_sysroot; if test x"$withval" != x ; then
3502 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3504 else
3505 SYSROOT_CFLAGS_FOR_TARGET=
3510 if test "x$prefix" = xNONE; then
3511 test_prefix=/usr/local
3512 else
3513 test_prefix=$prefix
3515 if test "x$exec_prefix" = xNONE; then
3516 test_exec_prefix=$test_prefix
3517 else
3518 test_exec_prefix=$exec_prefix
3522 # Check whether --with-sysroot was given.
3523 if test "${with_sysroot+set}" = set; then :
3524 withval=$with_sysroot;
3525 case ${with_sysroot} in
3526 /) ;;
3527 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3528 esac
3529 case ${with_sysroot} in
3530 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3531 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3532 esac
3534 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3535 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3537 case ${TARGET_SYSTEM_ROOT} in
3538 "${test_prefix}"|"${test_prefix}/"*|\
3539 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3540 '${prefix}'|'${prefix}/'*|\
3541 '${exec_prefix}'|'${exec_prefix}/'*)
3542 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3543 TARGET_SYSTEM_ROOT_DEFINE="$t"
3545 esac
3547 else
3549 TARGET_SYSTEM_ROOT=
3550 TARGET_SYSTEM_ROOT_DEFINE=
3551 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3559 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3560 # passed in by the toplevel make and thus we'd get different behavior
3561 # depending on where we built the sources.
3562 gcc_gxx_include_dir=
3563 # Specify the g++ header file directory
3565 # Check whether --with-gxx-include-dir was given.
3566 if test "${with_gxx_include_dir+set}" = set; then :
3567 withval=$with_gxx_include_dir; case "${withval}" in
3568 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3569 no) ;;
3570 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3571 esac
3575 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3576 if test x${gcc_gxx_include_dir} = x; then
3577 if test x${enable_version_specific_runtime_libs} = xyes; then
3578 gcc_gxx_include_dir='${libsubdir}/include/c++'
3579 else
3580 libstdcxx_incdir='include/c++/$(version)'
3581 if test x$host != x$target; then
3582 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3584 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3588 gcc_gxx_include_dir_add_sysroot=0
3589 if test "${with_sysroot+set}" = set; then
3590 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3591 if test "${gcc_gxx_without_sysroot}"; then
3592 if test x${with_sysroot} != x/; then
3593 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3595 gcc_gxx_include_dir_add_sysroot=1
3600 # Check whether --with-cpp_install_dir was given.
3601 if test "${with_cpp_install_dir+set}" = set; then :
3602 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3603 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3604 elif test x$withval != xno; then
3605 cpp_install_dir=$withval
3610 # We would like to our source tree to be readonly. However when releases or
3611 # pre-releases are generated, the flex/bison generated files as well as the
3612 # various formats of manuals need to be included along with the rest of the
3613 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3614 # just that.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3617 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3618 # Check whether --enable-generated-files-in-srcdir was given.
3619 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3620 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3621 else
3622 generated_files_in_srcdir=no
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3627 $as_echo "$generated_files_in_srcdir" >&6; }
3629 if test "$generated_files_in_srcdir" = "yes"; then
3630 GENINSRC=''
3631 else
3632 GENINSRC='#'
3636 # -------------------
3637 # Find default linker
3638 # -------------------
3640 # With GNU ld
3642 # Check whether --with-gnu-ld was given.
3643 if test "${with_gnu_ld+set}" = set; then :
3644 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3645 else
3646 gnu_ld_flag=no
3650 case $target in
3651 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3652 *) ld64_flag=no;;
3653 esac
3655 # With pre-defined ld
3657 # Check whether --with-ld was given.
3658 if test "${with_ld+set}" = set; then :
3659 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3662 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3663 if test ! -x "$DEFAULT_LINKER"; then
3664 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3665 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3666 gnu_ld_flag=yes
3667 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3668 ld64_flag=yes
3671 cat >>confdefs.h <<_ACEOF
3672 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3673 _ACEOF
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3678 $as_echo_n "checking whether a default linker was specified... " >&6; }
3679 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3680 if test x"$gnu_ld_flag" = x"no"; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3682 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3685 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3692 # With demangler in GNU ld
3694 # Check whether --with-demangler-in-ld was given.
3695 if test "${with_demangler_in_ld+set}" = set; then :
3696 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3697 else
3698 demangler_in_ld=yes
3702 # ----------------------
3703 # Find default assembler
3704 # ----------------------
3706 # With GNU as
3708 # Check whether --with-gnu-as was given.
3709 if test "${with_gnu_as+set}" = set; then :
3710 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3711 else
3712 gas_flag=no
3717 # Check whether --with-as was given.
3718 if test "${with_as+set}" = set; then :
3719 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3722 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3723 if test ! -x "$DEFAULT_ASSEMBLER"; then
3724 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3725 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3726 gas_flag=yes
3729 cat >>confdefs.h <<_ACEOF
3730 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3731 _ACEOF
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3736 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3737 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3738 if test x"$gas_flag" = x"no"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3740 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3743 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3750 # ---------------
3751 # Find C compiler
3752 # ---------------
3754 # If a non-executable a.out is present (e.g. created by GNU as above even if
3755 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3756 # file, even when creating an executable, so an execution test fails.
3757 # Remove possible default executable files to avoid this.
3759 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3760 # Autoconf includes it.
3761 rm -f a.out a.exe b.out
3763 # Find the native compiler
3764 ac_ext=c
3765 ac_cpp='$CPP $CPPFLAGS'
3766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 if test -n "$ac_tool_prefix"; then
3770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3771 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_CC+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC="$CC" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
3791 done
3792 done
3793 IFS=$as_save_IFS
3797 CC=$ac_cv_prog_CC
3798 if test -n "$CC"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3800 $as_echo "$CC" >&6; }
3801 else
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3808 if test -z "$ac_cv_prog_CC"; then
3809 ac_ct_CC=$CC
3810 # Extract the first word of "gcc", so it can be a program name with args.
3811 set dummy gcc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827 ac_cv_prog_ac_ct_CC="gcc"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3831 done
3832 done
3833 IFS=$as_save_IFS
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3846 if test "x$ac_ct_CC" = x; then
3847 CC=""
3848 else
3849 case $cross_compiling:$ac_tool_warned in
3850 yes:)
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3853 ac_tool_warned=yes ;;
3854 esac
3855 CC=$ac_ct_CC
3857 else
3858 CC="$ac_cv_prog_CC"
3861 if test -z "$CC"; then
3862 if test -n "$ac_tool_prefix"; then
3863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3864 set dummy ${ac_tool_prefix}cc; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if test "${ac_cv_prog_CC+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_CC="${ac_tool_prefix}cc"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3884 done
3885 done
3886 IFS=$as_save_IFS
3890 CC=$ac_cv_prog_CC
3891 if test -n "$CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893 $as_echo "$CC" >&6; }
3894 else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3902 if test -z "$CC"; then
3903 # Extract the first word of "cc", so it can be a program name with args.
3904 set dummy cc; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_prog_CC+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -n "$CC"; then
3911 ac_cv_prog_CC="$CC" # Let the user override the test.
3912 else
3913 ac_prog_rejected=no
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3922 ac_prog_rejected=yes
3923 continue
3925 ac_cv_prog_CC="cc"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3929 done
3930 done
3931 IFS=$as_save_IFS
3933 if test $ac_prog_rejected = yes; then
3934 # We found a bogon in the path, so make sure we never use it.
3935 set dummy $ac_cv_prog_CC
3936 shift
3937 if test $# != 0; then
3938 # We chose a different compiler from the bogus one.
3939 # However, it has the same basename, so the bogon will be chosen
3940 # first if we set CC to just the basename; use the full file name.
3941 shift
3942 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3947 CC=$ac_cv_prog_CC
3948 if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$CC"; then
3959 if test -n "$ac_tool_prefix"; then
3960 for ac_prog in cl.exe
3962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if test "${ac_cv_prog_CC+set}" = set; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 if test -n "$CC"; then
3970 ac_cv_prog_CC="$CC" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3983 done
3984 done
3985 IFS=$as_save_IFS
3989 CC=$ac_cv_prog_CC
3990 if test -n "$CC"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3992 $as_echo "$CC" >&6; }
3993 else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3999 test -n "$CC" && break
4000 done
4002 if test -z "$CC"; then
4003 ac_ct_CC=$CC
4004 for ac_prog in cl.exe
4006 # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 if test -n "$ac_ct_CC"; then
4014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_prog_ac_ct_CC="$ac_prog"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4027 done
4028 done
4029 IFS=$as_save_IFS
4033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4034 if test -n "$ac_ct_CC"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4036 $as_echo "$ac_ct_CC" >&6; }
4037 else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4043 test -n "$ac_ct_CC" && break
4044 done
4046 if test "x$ac_ct_CC" = x; then
4047 CC=""
4048 else
4049 case $cross_compiling:$ac_tool_warned in
4050 yes:)
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4053 ac_tool_warned=yes ;;
4054 esac
4055 CC=$ac_ct_CC
4062 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064 as_fn_error "no acceptable C compiler found in \$PATH
4065 See \`config.log' for more details." "$LINENO" 5; }
4067 # Provide some information about the compiler.
4068 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4069 set X $ac_compile
4070 ac_compiler=$2
4071 for ac_option in --version -v -V -qversion; do
4072 { { ac_try="$ac_compiler $ac_option >&5"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4080 ac_status=$?
4081 if test -s conftest.err; then
4082 sed '10a\
4083 ... rest of stderr output deleted ...
4084 10q' conftest.err >conftest.er1
4085 cat conftest.er1 >&5
4086 rm -f conftest.er1 conftest.err
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }
4090 done
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 ac_clean_files_save=$ac_clean_files
4104 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4105 # Try to create an executable without -o first, disregard a.out.
4106 # It will help us diagnose broken compilers, and finding out an intuition
4107 # of exeext.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4109 $as_echo_n "checking for C compiler default output file name... " >&6; }
4110 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4112 # The possible output files:
4113 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4115 ac_rmfiles=
4116 for ac_file in $ac_files
4118 case $ac_file in
4119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4120 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4121 esac
4122 done
4123 rm -f $ac_rmfiles
4125 if { { ac_try="$ac_link_default"
4126 case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132 (eval "$ac_link_default") 2>&5
4133 ac_status=$?
4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135 test $ac_status = 0; }; then :
4136 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4137 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4138 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4139 # so that the user can short-circuit this test for compilers unknown to
4140 # Autoconf.
4141 for ac_file in $ac_files ''
4143 test -f "$ac_file" || continue
4144 case $ac_file in
4145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4147 [ab].out )
4148 # We found the default executable, but exeext='' is most
4149 # certainly right.
4150 break;;
4151 *.* )
4152 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4153 then :; else
4154 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4156 # We set ac_cv_exeext here because the later test for it is not
4157 # safe: cross compilers may not add the suffix if given an `-o'
4158 # argument, so we may need to know it at that point already.
4159 # Even if this section looks crufty: it has the advantage of
4160 # actually working.
4161 break;;
4163 break;;
4164 esac
4165 done
4166 test "$ac_cv_exeext" = no && ac_cv_exeext=
4168 else
4169 ac_file=''
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4172 $as_echo "$ac_file" >&6; }
4173 if test -z "$ac_file"; then :
4174 $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 { as_fn_set_status 77
4180 as_fn_error "C compiler cannot create executables
4181 See \`config.log' for more details." "$LINENO" 5; }; }
4183 ac_exeext=$ac_cv_exeext
4185 # Check that the compiler produces executables we can run. If not, either
4186 # the compiler is broken, or we cross compile.
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4188 $as_echo_n "checking whether the C compiler works... " >&6; }
4189 # If not cross compiling, check that we can run a simple program.
4190 if test "$cross_compiling" != yes; then
4191 if { ac_try='./$ac_file'
4192 { { case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }; }; then
4202 cross_compiling=no
4203 else
4204 if test "$cross_compiling" = maybe; then
4205 cross_compiling=yes
4206 else
4207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209 as_fn_error "cannot run C compiled programs.
4210 If you meant to cross compile, use \`--host'.
4211 See \`config.log' for more details." "$LINENO" 5; }
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4216 $as_echo "yes" >&6; }
4218 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4219 ac_clean_files=$ac_clean_files_save
4220 # Check that the compiler produces executables we can run. If not, either
4221 # the compiler is broken, or we cross compile.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4223 $as_echo_n "checking whether we are cross compiling... " >&6; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4225 $as_echo "$cross_compiling" >&6; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4228 $as_echo_n "checking for suffix of executables... " >&6; }
4229 if { { ac_try="$ac_link"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_link") 2>&5
4237 ac_status=$?
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }; then :
4240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4242 # work properly (i.e., refer to `conftest.exe'), while it won't with
4243 # `rm'.
4244 for ac_file in conftest.exe conftest conftest.*; do
4245 test -f "$ac_file" || continue
4246 case $ac_file in
4247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4249 break;;
4250 * ) break;;
4251 esac
4252 done
4253 else
4254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 as_fn_error "cannot compute suffix of executables: cannot compile and link
4257 See \`config.log' for more details." "$LINENO" 5; }
4259 rm -f conftest$ac_cv_exeext
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4261 $as_echo "$ac_cv_exeext" >&6; }
4263 rm -f conftest.$ac_ext
4264 EXEEXT=$ac_cv_exeext
4265 ac_exeext=$EXEEXT
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4267 $as_echo_n "checking for suffix of object files... " >&6; }
4268 if test "${ac_cv_objext+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270 else
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4275 main ()
4279 return 0;
4281 _ACEOF
4282 rm -f conftest.o conftest.obj
4283 if { { ac_try="$ac_compile"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_compile") 2>&5
4291 ac_status=$?
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }; then :
4294 for ac_file in conftest.o conftest.obj conftest.*; do
4295 test -f "$ac_file" || continue;
4296 case $ac_file in
4297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4299 break;;
4300 esac
4301 done
4302 else
4303 $as_echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error "cannot compute suffix of object files: cannot compile
4309 See \`config.log' for more details." "$LINENO" 5; }
4311 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4314 $as_echo "$ac_cv_objext" >&6; }
4315 OBJEXT=$ac_cv_objext
4316 ac_objext=$OBJEXT
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4318 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4319 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4326 main ()
4328 #ifndef __GNUC__
4329 choke me
4330 #endif
4333 return 0;
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337 ac_compiler_gnu=yes
4338 else
4339 ac_compiler_gnu=no
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4347 if test $ac_compiler_gnu = yes; then
4348 GCC=yes
4349 else
4350 GCC=
4352 ac_test_CFLAGS=${CFLAGS+set}
4353 ac_save_CFLAGS=$CFLAGS
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4355 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4356 if test "${ac_cv_prog_cc_g+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4361 ac_cv_prog_cc_g=no
4362 CFLAGS="-g"
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4367 main ()
4371 return 0;
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375 ac_cv_prog_cc_g=yes
4376 else
4377 CFLAGS=""
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4382 main ()
4386 return 0;
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4391 else
4392 ac_c_werror_flag=$ac_save_c_werror_flag
4393 CFLAGS="-g"
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4398 main ()
4402 return 0;
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_prog_cc_g=yes
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 ac_c_werror_flag=$ac_save_c_werror_flag
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4416 $as_echo "$ac_cv_prog_cc_g" >&6; }
4417 if test "$ac_test_CFLAGS" = set; then
4418 CFLAGS=$ac_save_CFLAGS
4419 elif test $ac_cv_prog_cc_g = yes; then
4420 if test "$GCC" = yes; then
4421 CFLAGS="-g -O2"
4422 else
4423 CFLAGS="-g"
4425 else
4426 if test "$GCC" = yes; then
4427 CFLAGS="-O2"
4428 else
4429 CFLAGS=
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4433 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4434 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 ac_cv_prog_cc_c89=no
4438 ac_save_CC=$CC
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <stdarg.h>
4442 #include <stdio.h>
4443 #include <sys/types.h>
4444 #include <sys/stat.h>
4445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4446 struct buf { int x; };
4447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4448 static char *e (p, i)
4449 char **p;
4450 int i;
4452 return p[i];
4454 static char *f (char * (*g) (char **, int), char **p, ...)
4456 char *s;
4457 va_list v;
4458 va_start (v,p);
4459 s = g (p, va_arg (v,int));
4460 va_end (v);
4461 return s;
4464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4465 function prototypes and stuff, but not '\xHH' hex character constants.
4466 These don't provoke an error unfortunately, instead are silently treated
4467 as 'x'. The following induces an error, until -std is added to get
4468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4469 array size at least. It's necessary to write '\x00'==0 to get something
4470 that's true only with -std. */
4471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4474 inside strings and character constants. */
4475 #define FOO(x) 'x'
4476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4478 int test (int i, double x);
4479 struct s1 {int (*f) (int a);};
4480 struct s2 {int (*f) (double a);};
4481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4482 int argc;
4483 char **argv;
4485 main ()
4487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4489 return 0;
4491 _ACEOF
4492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4495 CC="$ac_save_CC $ac_arg"
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_prog_cc_c89=$ac_arg
4499 rm -f core conftest.err conftest.$ac_objext
4500 test "x$ac_cv_prog_cc_c89" != "xno" && break
4501 done
4502 rm -f conftest.$ac_ext
4503 CC=$ac_save_CC
4506 # AC_CACHE_VAL
4507 case "x$ac_cv_prog_cc_c89" in
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4510 $as_echo "none needed" >&6; } ;;
4511 xno)
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4513 $as_echo "unsupported" >&6; } ;;
4515 CC="$CC $ac_cv_prog_cc_c89"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4518 esac
4519 if test "x$ac_cv_prog_cc_c89" != xno; then :
4523 ac_ext=c
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529 ac_ext=cpp
4530 ac_cpp='$CXXCPP $CPPFLAGS'
4531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4534 if test -z "$CXX"; then
4535 if test -n "$CCC"; then
4536 CXX=$CCC
4537 else
4538 if test -n "$ac_tool_prefix"; then
4539 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_CXX+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$CXX"; then
4549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4562 done
4563 done
4564 IFS=$as_save_IFS
4568 CXX=$ac_cv_prog_CXX
4569 if test -n "$CXX"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4571 $as_echo "$CXX" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4578 test -n "$CXX" && break
4579 done
4581 if test -z "$CXX"; then
4582 ac_ct_CXX=$CXX
4583 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4585 # Extract the first word of "$ac_prog", so it can be a program name with args.
4586 set dummy $ac_prog; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$ac_ct_CXX"; then
4593 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_ac_ct_CXX="$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4606 done
4607 done
4608 IFS=$as_save_IFS
4612 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4613 if test -n "$ac_ct_CXX"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4615 $as_echo "$ac_ct_CXX" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4622 test -n "$ac_ct_CXX" && break
4623 done
4625 if test "x$ac_ct_CXX" = x; then
4626 CXX="g++"
4627 else
4628 case $cross_compiling:$ac_tool_warned in
4629 yes:)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4633 esac
4634 CXX=$ac_ct_CXX
4640 # Provide some information about the compiler.
4641 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4642 set X $ac_compile
4643 ac_compiler=$2
4644 for ac_option in --version -v -V -qversion; do
4645 { { ac_try="$ac_compiler $ac_option >&5"
4646 case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651 $as_echo "$ac_try_echo"; } >&5
4652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4653 ac_status=$?
4654 if test -s conftest.err; then
4655 sed '10a\
4656 ... rest of stderr output deleted ...
4657 10q' conftest.err >conftest.er1
4658 cat conftest.er1 >&5
4659 rm -f conftest.er1 conftest.err
4661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4662 test $ac_status = 0; }
4663 done
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4666 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4667 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4674 main ()
4676 #ifndef __GNUC__
4677 choke me
4678 #endif
4681 return 0;
4683 _ACEOF
4684 if ac_fn_cxx_try_compile "$LINENO"; then :
4685 ac_compiler_gnu=yes
4686 else
4687 ac_compiler_gnu=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4694 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4695 if test $ac_compiler_gnu = yes; then
4696 GXX=yes
4697 else
4698 GXX=
4700 ac_test_CXXFLAGS=${CXXFLAGS+set}
4701 ac_save_CXXFLAGS=$CXXFLAGS
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4703 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4704 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4708 ac_cxx_werror_flag=yes
4709 ac_cv_prog_cxx_g=no
4710 CXXFLAGS="-g"
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4715 main ()
4719 return 0;
4721 _ACEOF
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
4723 ac_cv_prog_cxx_g=yes
4724 else
4725 CXXFLAGS=""
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4730 main ()
4734 return 0;
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4739 else
4740 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4741 CXXFLAGS="-g"
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4746 main ()
4750 return 0;
4752 _ACEOF
4753 if ac_fn_cxx_try_compile "$LINENO"; then :
4754 ac_cv_prog_cxx_g=yes
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4764 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4765 if test "$ac_test_CXXFLAGS" = set; then
4766 CXXFLAGS=$ac_save_CXXFLAGS
4767 elif test $ac_cv_prog_cxx_g = yes; then
4768 if test "$GXX" = yes; then
4769 CXXFLAGS="-g -O2"
4770 else
4771 CXXFLAGS="-g"
4773 else
4774 if test "$GXX" = yes; then
4775 CXXFLAGS="-O2"
4776 else
4777 CXXFLAGS=
4780 ac_ext=c
4781 ac_cpp='$CPP $CPPFLAGS'
4782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 if test -n "$ac_tool_prefix"; then
4790 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$GNATBIND"; then
4798 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4811 done
4812 done
4813 IFS=$as_save_IFS
4817 GNATBIND=$ac_cv_prog_GNATBIND
4818 if test -n "$GNATBIND"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4820 $as_echo "$GNATBIND" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4828 if test -z "$ac_cv_prog_GNATBIND"; then
4829 ac_ct_GNATBIND=$GNATBIND
4830 # Extract the first word of "gnatbind", so it can be a program name with args.
4831 set dummy gnatbind; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$ac_ct_GNATBIND"; then
4838 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4853 IFS=$as_save_IFS
4857 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4858 if test -n "$ac_ct_GNATBIND"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4860 $as_echo "$ac_ct_GNATBIND" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4866 if test "x$ac_ct_GNATBIND" = x; then
4867 GNATBIND="no"
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 GNATBIND=$ac_ct_GNATBIND
4877 else
4878 GNATBIND="$ac_cv_prog_GNATBIND"
4881 if test -n "$ac_tool_prefix"; then
4882 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$GNATMAKE"; then
4890 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 GNATMAKE=$ac_cv_prog_GNATMAKE
4910 if test -n "$GNATMAKE"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4912 $as_echo "$GNATMAKE" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4920 if test -z "$ac_cv_prog_GNATMAKE"; then
4921 ac_ct_GNATMAKE=$GNATMAKE
4922 # Extract the first word of "gnatmake", so it can be a program name with args.
4923 set dummy gnatmake; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 if test -n "$ac_ct_GNATMAKE"; then
4930 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4931 else
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4935 IFS=$as_save_IFS
4936 test -z "$as_dir" && as_dir=.
4937 for ac_exec_ext in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 break 2
4943 done
4944 done
4945 IFS=$as_save_IFS
4949 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4950 if test -n "$ac_ct_GNATMAKE"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4952 $as_echo "$ac_ct_GNATMAKE" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4958 if test "x$ac_ct_GNATMAKE" = x; then
4959 GNATMAKE="no"
4960 else
4961 case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4966 esac
4967 GNATMAKE=$ac_ct_GNATMAKE
4969 else
4970 GNATMAKE="$ac_cv_prog_GNATMAKE"
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4974 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4975 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 cat >conftest.adb <<EOF
4979 procedure conftest is begin null; end conftest;
4981 acx_cv_cc_gcc_supports_ada=no
4982 # There is a bug in old released versions of GCC which causes the
4983 # driver to exit successfully when the appropriate language module
4984 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4985 # Therefore we must check for the error message as well as an
4986 # unsuccessful exit.
4987 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4988 # given a .adb file, but produce no object file. So we must check
4989 # if an object file was really produced to guard against this.
4990 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4991 if test x"$errors" = x && test -f conftest.$ac_objext; then
4992 acx_cv_cc_gcc_supports_ada=yes
4994 rm -f conftest.*
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4997 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4999 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5000 have_gnat=yes
5001 else
5002 have_gnat=no
5006 # Do configure tests with the C++ compiler, since that's what we build with.
5007 ac_ext=cpp
5008 ac_cpp='$CXXCPP $CPPFLAGS'
5009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5014 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5015 # optimizations to be activated explicitly by the toplevel.
5016 case "$CC" in
5017 */prev-gcc/xgcc*) ;;
5018 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5019 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5020 esac
5024 # Determine PICFLAG for target gnatlib.
5029 case "${target}" in
5030 # PIC is the default on some targets or must not be used.
5031 *-*-darwin*)
5032 # For darwin, common symbols are not allowed in MH_DYLIB files
5033 case "${CFLAGS}" in
5034 # If we are using a compiler supporting mdynamic-no-pic
5035 # and the option has been tested as safe to add, then cancel
5036 # it here, since the code generated is incompatible with shared
5037 # libs.
5038 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5039 *) PICFLAG_FOR_TARGET=-fno-common ;;
5040 esac
5042 alpha*-dec-osf5*)
5043 # PIC is the default.
5045 hppa*64*-*-hpux*)
5046 # PIC is the default for 64-bit PA HP-UX.
5048 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5050 i[34567]86-*-mingw* | x86_64-*-mingw*)
5052 i[34567]86-*-interix[3-9]*)
5053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5054 # Instead, we relocate shared libraries at runtime.
5056 i[34567]86-*-nto-qnx*)
5057 # QNX uses GNU C++, but need to define -shared option too, otherwise
5058 # it will coredump.
5059 PICFLAG_FOR_TARGET='-fPIC -shared'
5061 i[34567]86-pc-msdosdjgpp*)
5062 # DJGPP does not support shared libraries at all.
5064 ia64*-*-hpux*)
5065 # On IA64 HP-UX, PIC is the default but the pic flag
5066 # sets the default TLS model and affects inlining.
5067 PICFLAG_FOR_TARGET=-fPIC
5069 mips-sgi-irix6*)
5070 # PIC is the default.
5072 rs6000-ibm-aix* | powerpc-ibm-aix*)
5073 # All AIX code is PIC.
5076 # Some targets support both -fPIC and -fpic, but prefer the latter.
5077 # FIXME: Why?
5078 i[34567]86-*-* | x86_64-*-*)
5079 PICFLAG_FOR_TARGET=-fpic
5081 # FIXME: Override -fPIC default in libgcc only?
5082 sh-*-linux* | sh[2346lbe]*-*-linux*)
5083 PICFLAG_FOR_TARGET=-fpic
5085 # FIXME: Simplify to sh*-*-netbsd*?
5086 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5087 sh64-*-netbsd* | sh64l*-*-netbsd*)
5088 PICFLAG_FOR_TARGET=-fpic
5090 # Default to -fPIC unless specified otherwise.
5092 PICFLAG_FOR_TARGET=-fPIC
5094 esac
5096 # If the user explicitly uses -fpic/-fPIC, keep that.
5097 case "${CFLAGS_FOR_TARGET}" in
5098 *-fpic*)
5099 PICFLAG_FOR_TARGET=-fpic
5101 *-fPIC*)
5102 PICFLAG_FOR_TARGET=-fPIC
5104 esac
5108 # -------------------------
5109 # Check C compiler features
5110 # -------------------------
5113 ac_ext=cpp
5114 ac_cpp='$CXXCPP $CPPFLAGS'
5115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5119 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5120 if test -z "$CXXCPP"; then
5121 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 # Double quotes because CXXCPP needs to be expanded
5125 for CXXCPP in "$CXX -E" "/lib/cpp"
5127 ac_preproc_ok=false
5128 for ac_cxx_preproc_warn_flag in '' yes
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #ifdef __STDC__
5139 # include <limits.h>
5140 #else
5141 # include <assert.h>
5142 #endif
5143 Syntax error
5144 _ACEOF
5145 if ac_fn_cxx_try_cpp "$LINENO"; then :
5147 else
5148 # Broken: fails on valid input.
5149 continue
5151 rm -f conftest.err conftest.$ac_ext
5153 # OK, works on sane cases. Now check whether nonexistent headers
5154 # can be detected and how.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #include <ac_nonexistent.h>
5158 _ACEOF
5159 if ac_fn_cxx_try_cpp "$LINENO"; then :
5160 # Broken: success on invalid input.
5161 continue
5162 else
5163 # Passes both tests.
5164 ac_preproc_ok=:
5165 break
5167 rm -f conftest.err conftest.$ac_ext
5169 done
5170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5171 rm -f conftest.err conftest.$ac_ext
5172 if $ac_preproc_ok; then :
5173 break
5176 done
5177 ac_cv_prog_CXXCPP=$CXXCPP
5180 CXXCPP=$ac_cv_prog_CXXCPP
5181 else
5182 ac_cv_prog_CXXCPP=$CXXCPP
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5185 $as_echo "$CXXCPP" >&6; }
5186 ac_preproc_ok=false
5187 for ac_cxx_preproc_warn_flag in '' yes
5189 # Use a header file that comes with gcc, so configuring glibc
5190 # with a fresh cross-compiler works.
5191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192 # <limits.h> exists even on freestanding compilers.
5193 # On the NeXT, cc -E runs the code through the compiler's parser,
5194 # not just through cpp. "Syntax error" is here to catch this case.
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 #ifdef __STDC__
5198 # include <limits.h>
5199 #else
5200 # include <assert.h>
5201 #endif
5202 Syntax error
5203 _ACEOF
5204 if ac_fn_cxx_try_cpp "$LINENO"; then :
5206 else
5207 # Broken: fails on valid input.
5208 continue
5210 rm -f conftest.err conftest.$ac_ext
5212 # OK, works on sane cases. Now check whether nonexistent headers
5213 # can be detected and how.
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 #include <ac_nonexistent.h>
5217 _ACEOF
5218 if ac_fn_cxx_try_cpp "$LINENO"; then :
5219 # Broken: success on invalid input.
5220 continue
5221 else
5222 # Passes both tests.
5223 ac_preproc_ok=:
5224 break
5226 rm -f conftest.err conftest.$ac_ext
5228 done
5229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5230 rm -f conftest.err conftest.$ac_ext
5231 if $ac_preproc_ok; then :
5233 else
5234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5236 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5237 See \`config.log' for more details." "$LINENO" 5; }
5240 ac_ext=cpp
5241 ac_cpp='$CXXCPP $CPPFLAGS'
5242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5248 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5249 if test "${ac_cv_path_GREP+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -z "$GREP"; then
5253 ac_path_GREP_found=false
5254 # Loop through the user's path and test for each of PROGNAME-LIST
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_prog in grep ggrep; do
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5263 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5264 # Check for GNU ac_path_GREP and select it if it is found.
5265 # Check for GNU $ac_path_GREP
5266 case `"$ac_path_GREP" --version 2>&1` in
5267 *GNU*)
5268 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5270 ac_count=0
5271 $as_echo_n 0123456789 >"conftest.in"
5272 while :
5274 cat "conftest.in" "conftest.in" >"conftest.tmp"
5275 mv "conftest.tmp" "conftest.in"
5276 cp "conftest.in" "conftest.nl"
5277 $as_echo 'GREP' >> "conftest.nl"
5278 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5280 as_fn_arith $ac_count + 1 && ac_count=$as_val
5281 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5282 # Best one so far, save it but keep looking for a better one
5283 ac_cv_path_GREP="$ac_path_GREP"
5284 ac_path_GREP_max=$ac_count
5286 # 10*(2^10) chars as input seems more than enough
5287 test $ac_count -gt 10 && break
5288 done
5289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5290 esac
5292 $ac_path_GREP_found && break 3
5293 done
5294 done
5295 done
5296 IFS=$as_save_IFS
5297 if test -z "$ac_cv_path_GREP"; then
5298 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5300 else
5301 ac_cv_path_GREP=$GREP
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5306 $as_echo "$ac_cv_path_GREP" >&6; }
5307 GREP="$ac_cv_path_GREP"
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5311 $as_echo_n "checking for egrep... " >&6; }
5312 if test "${ac_cv_path_EGREP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5316 then ac_cv_path_EGREP="$GREP -E"
5317 else
5318 if test -z "$EGREP"; then
5319 ac_path_EGREP_found=false
5320 # Loop through the user's path and test for each of PROGNAME-LIST
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_prog in egrep; do
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5329 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5330 # Check for GNU ac_path_EGREP and select it if it is found.
5331 # Check for GNU $ac_path_EGREP
5332 case `"$ac_path_EGREP" --version 2>&1` in
5333 *GNU*)
5334 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5336 ac_count=0
5337 $as_echo_n 0123456789 >"conftest.in"
5338 while :
5340 cat "conftest.in" "conftest.in" >"conftest.tmp"
5341 mv "conftest.tmp" "conftest.in"
5342 cp "conftest.in" "conftest.nl"
5343 $as_echo 'EGREP' >> "conftest.nl"
5344 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5346 as_fn_arith $ac_count + 1 && ac_count=$as_val
5347 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5348 # Best one so far, save it but keep looking for a better one
5349 ac_cv_path_EGREP="$ac_path_EGREP"
5350 ac_path_EGREP_max=$ac_count
5352 # 10*(2^10) chars as input seems more than enough
5353 test $ac_count -gt 10 && break
5354 done
5355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356 esac
5358 $ac_path_EGREP_found && break 3
5359 done
5360 done
5361 done
5362 IFS=$as_save_IFS
5363 if test -z "$ac_cv_path_EGREP"; then
5364 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366 else
5367 ac_cv_path_EGREP=$EGREP
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5373 $as_echo "$ac_cv_path_EGREP" >&6; }
5374 EGREP="$ac_cv_path_EGREP"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5378 $as_echo_n "checking for ANSI C header files... " >&6; }
5379 if test "${ac_cv_header_stdc+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 #include <stdlib.h>
5385 #include <stdarg.h>
5386 #include <string.h>
5387 #include <float.h>
5390 main ()
5394 return 0;
5396 _ACEOF
5397 if ac_fn_cxx_try_compile "$LINENO"; then :
5398 ac_cv_header_stdc=yes
5399 else
5400 ac_cv_header_stdc=no
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 if test $ac_cv_header_stdc = yes; then
5405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #include <string.h>
5410 _ACEOF
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "memchr" >/dev/null 2>&1; then :
5414 else
5415 ac_cv_header_stdc=no
5417 rm -f conftest*
5421 if test $ac_cv_header_stdc = yes; then
5422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <stdlib.h>
5427 _ACEOF
5428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5429 $EGREP "free" >/dev/null 2>&1; then :
5431 else
5432 ac_cv_header_stdc=no
5434 rm -f conftest*
5438 if test $ac_cv_header_stdc = yes; then
5439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5440 if test "$cross_compiling" = yes; then :
5442 else
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <ctype.h>
5446 #include <stdlib.h>
5447 #if ((' ' & 0x0FF) == 0x020)
5448 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5449 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5450 #else
5451 # define ISLOWER(c) \
5452 (('a' <= (c) && (c) <= 'i') \
5453 || ('j' <= (c) && (c) <= 'r') \
5454 || ('s' <= (c) && (c) <= 'z'))
5455 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5456 #endif
5458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5460 main ()
5462 int i;
5463 for (i = 0; i < 256; i++)
5464 if (XOR (islower (i), ISLOWER (i))
5465 || toupper (i) != TOUPPER (i))
5466 return 2;
5467 return 0;
5469 _ACEOF
5470 if ac_fn_cxx_try_run "$LINENO"; then :
5472 else
5473 ac_cv_header_stdc=no
5475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5476 conftest.$ac_objext conftest.beam conftest.$ac_ext
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5482 $as_echo "$ac_cv_header_stdc" >&6; }
5483 if test $ac_cv_header_stdc = yes; then
5485 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5491 inttypes.h stdint.h unistd.h
5492 do :
5493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5494 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5496 eval as_val=\$$as_ac_Header
5497 if test "x$as_val" = x""yes; then :
5498 cat >>confdefs.h <<_ACEOF
5499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 _ACEOF
5504 done
5508 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5510 MINIX=yes
5511 else
5512 MINIX=
5516 if test "$MINIX" = yes; then
5518 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5521 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5524 $as_echo "#define _MINIX 1" >>confdefs.h
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5530 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5531 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 # define __EXTENSIONS__ 1
5538 $ac_includes_default
5540 main ()
5544 return 0;
5546 _ACEOF
5547 if ac_fn_cxx_try_compile "$LINENO"; then :
5548 ac_cv_safe_to_define___extensions__=yes
5549 else
5550 ac_cv_safe_to_define___extensions__=no
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5555 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5556 test $ac_cv_safe_to_define___extensions__ = yes &&
5557 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5559 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5561 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5563 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5565 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5568 ac_ext=c
5569 ac_cpp='$CPP $CPPFLAGS'
5570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5574 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5575 # On Suns, sometimes $CPP names a directory.
5576 if test -n "$CPP" && test -d "$CPP"; then
5577 CPP=
5579 if test -z "$CPP"; then
5580 if test "${ac_cv_prog_CPP+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 # Double quotes because CPP needs to be expanded
5584 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5586 ac_preproc_ok=false
5587 for ac_c_preproc_warn_flag in '' yes
5589 # Use a header file that comes with gcc, so configuring glibc
5590 # with a fresh cross-compiler works.
5591 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5592 # <limits.h> exists even on freestanding compilers.
5593 # On the NeXT, cc -E runs the code through the compiler's parser,
5594 # not just through cpp. "Syntax error" is here to catch this case.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #ifdef __STDC__
5598 # include <limits.h>
5599 #else
5600 # include <assert.h>
5601 #endif
5602 Syntax error
5603 _ACEOF
5604 if ac_fn_c_try_cpp "$LINENO"; then :
5606 else
5607 # Broken: fails on valid input.
5608 continue
5610 rm -f conftest.err conftest.$ac_ext
5612 # OK, works on sane cases. Now check whether nonexistent headers
5613 # can be detected and how.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <ac_nonexistent.h>
5617 _ACEOF
5618 if ac_fn_c_try_cpp "$LINENO"; then :
5619 # Broken: success on invalid input.
5620 continue
5621 else
5622 # Passes both tests.
5623 ac_preproc_ok=:
5624 break
5626 rm -f conftest.err conftest.$ac_ext
5628 done
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.err conftest.$ac_ext
5631 if $ac_preproc_ok; then :
5632 break
5635 done
5636 ac_cv_prog_CPP=$CPP
5639 CPP=$ac_cv_prog_CPP
5640 else
5641 ac_cv_prog_CPP=$CPP
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5644 $as_echo "$CPP" >&6; }
5645 ac_preproc_ok=false
5646 for ac_c_preproc_warn_flag in '' yes
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #ifdef __STDC__
5657 # include <limits.h>
5658 #else
5659 # include <assert.h>
5660 #endif
5661 Syntax error
5662 _ACEOF
5663 if ac_fn_c_try_cpp "$LINENO"; then :
5665 else
5666 # Broken: fails on valid input.
5667 continue
5669 rm -f conftest.err conftest.$ac_ext
5671 # OK, works on sane cases. Now check whether nonexistent headers
5672 # can be detected and how.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5676 _ACEOF
5677 if ac_fn_c_try_cpp "$LINENO"; then :
5678 # Broken: success on invalid input.
5679 continue
5680 else
5681 # Passes both tests.
5682 ac_preproc_ok=:
5683 break
5685 rm -f conftest.err conftest.$ac_ext
5687 done
5688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5689 rm -f conftest.err conftest.$ac_ext
5690 if $ac_preproc_ok; then :
5692 else
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5696 See \`config.log' for more details." "$LINENO" 5; }
5699 ac_ext=cpp
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5706 $as_echo_n "checking for inline... " >&6; }
5707 if test "${ac_cv_c_inline+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 ac_cv_c_inline=no
5711 for ac_kw in inline __inline__ __inline; do
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #ifndef __cplusplus
5715 typedef int foo_t;
5716 static $ac_kw foo_t static_foo () {return 0; }
5717 $ac_kw foo_t foo () {return 0; }
5718 #endif
5720 _ACEOF
5721 if ac_fn_cxx_try_compile "$LINENO"; then :
5722 ac_cv_c_inline=$ac_kw
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 test "$ac_cv_c_inline" != no && break
5726 done
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5730 $as_echo "$ac_cv_c_inline" >&6; }
5732 case $ac_cv_c_inline in
5733 inline | yes) ;;
5735 case $ac_cv_c_inline in
5736 no) ac_val=;;
5737 *) ac_val=$ac_cv_c_inline;;
5738 esac
5739 cat >>confdefs.h <<_ACEOF
5740 #ifndef __cplusplus
5741 #define inline $ac_val
5742 #endif
5743 _ACEOF
5745 esac
5748 # Check whether --enable-largefile was given.
5749 if test "${enable_largefile+set}" = set; then :
5750 enableval=$enable_largefile;
5753 if test "$enable_largefile" != no; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5756 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5757 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 ac_cv_sys_largefile_CC=no
5761 if test "$GCC" != yes; then
5762 ac_save_CC=$CC
5763 while :; do
5764 # IRIX 6.2 and later do not support large files by default,
5765 # so use the C compiler's -n32 option if that helps.
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5776 ? 1 : -1];
5778 main ()
5782 return 0;
5784 _ACEOF
5785 if ac_fn_cxx_try_compile "$LINENO"; then :
5786 break
5788 rm -f core conftest.err conftest.$ac_objext
5789 CC="$CC -n32"
5790 if ac_fn_cxx_try_compile "$LINENO"; then :
5791 ac_cv_sys_largefile_CC=' -n32'; break
5793 rm -f core conftest.err conftest.$ac_objext
5794 break
5795 done
5796 CC=$ac_save_CC
5797 rm -f conftest.$ac_ext
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5801 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5802 if test "$ac_cv_sys_largefile_CC" != no; then
5803 CC=$CC$ac_cv_sys_largefile_CC
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5807 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5808 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 while :; do
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #include <sys/types.h>
5815 /* Check that off_t can represent 2**63 - 1 correctly.
5816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5817 since some C++ compilers masquerading as C compilers
5818 incorrectly reject 9223372036854775807. */
5819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5821 && LARGE_OFF_T % 2147483647 == 1)
5822 ? 1 : -1];
5824 main ()
5828 return 0;
5830 _ACEOF
5831 if ac_fn_cxx_try_compile "$LINENO"; then :
5832 ac_cv_sys_file_offset_bits=no; break
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #define _FILE_OFFSET_BITS 64
5838 #include <sys/types.h>
5839 /* Check that off_t can represent 2**63 - 1 correctly.
5840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5841 since some C++ compilers masquerading as C compilers
5842 incorrectly reject 9223372036854775807. */
5843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5845 && LARGE_OFF_T % 2147483647 == 1)
5846 ? 1 : -1];
5848 main ()
5852 return 0;
5854 _ACEOF
5855 if ac_fn_cxx_try_compile "$LINENO"; then :
5856 ac_cv_sys_file_offset_bits=64; break
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 ac_cv_sys_file_offset_bits=unknown
5860 break
5861 done
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5864 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5865 case $ac_cv_sys_file_offset_bits in #(
5866 no | unknown) ;;
5868 cat >>confdefs.h <<_ACEOF
5869 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5870 _ACEOF
5872 esac
5873 rm -rf conftest*
5874 if test $ac_cv_sys_file_offset_bits = unknown; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5876 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5877 if test "${ac_cv_sys_large_files+set}" = set; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 while :; do
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #include <sys/types.h>
5884 /* Check that off_t can represent 2**63 - 1 correctly.
5885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5886 since some C++ compilers masquerading as C compilers
5887 incorrectly reject 9223372036854775807. */
5888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5890 && LARGE_OFF_T % 2147483647 == 1)
5891 ? 1 : -1];
5893 main ()
5897 return 0;
5899 _ACEOF
5900 if ac_fn_cxx_try_compile "$LINENO"; then :
5901 ac_cv_sys_large_files=no; break
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #define _LARGE_FILES 1
5907 #include <sys/types.h>
5908 /* Check that off_t can represent 2**63 - 1 correctly.
5909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5910 since some C++ compilers masquerading as C compilers
5911 incorrectly reject 9223372036854775807. */
5912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5914 && LARGE_OFF_T % 2147483647 == 1)
5915 ? 1 : -1];
5917 main ()
5921 return 0;
5923 _ACEOF
5924 if ac_fn_cxx_try_compile "$LINENO"; then :
5925 ac_cv_sys_large_files=1; break
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 ac_cv_sys_large_files=unknown
5929 break
5930 done
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5933 $as_echo "$ac_cv_sys_large_files" >&6; }
5934 case $ac_cv_sys_large_files in #(
5935 no | unknown) ;;
5937 cat >>confdefs.h <<_ACEOF
5938 #define _LARGE_FILES $ac_cv_sys_large_files
5939 _ACEOF
5941 esac
5942 rm -rf conftest*
5947 # sizeof(char) is 1 by definition.
5948 # The cast to long int works around a bug in the HP C Compiler
5949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5951 # This bug is HP SR number 8606223364.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5953 $as_echo_n "checking size of void *... " >&6; }
5954 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5959 else
5960 if test "$ac_cv_type_void_p" = yes; then
5961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5963 { as_fn_set_status 77
5964 as_fn_error "cannot compute sizeof (void *)
5965 See \`config.log' for more details." "$LINENO" 5; }; }
5966 else
5967 ac_cv_sizeof_void_p=0
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5973 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5977 cat >>confdefs.h <<_ACEOF
5978 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5979 _ACEOF
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5987 $as_echo_n "checking size of short... " >&6; }
5988 if test "${ac_cv_sizeof_short+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5993 else
5994 if test "$ac_cv_type_short" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 { as_fn_set_status 77
5998 as_fn_error "cannot compute sizeof (short)
5999 See \`config.log' for more details." "$LINENO" 5; }; }
6000 else
6001 ac_cv_sizeof_short=0
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6007 $as_echo "$ac_cv_sizeof_short" >&6; }
6011 cat >>confdefs.h <<_ACEOF
6012 #define SIZEOF_SHORT $ac_cv_sizeof_short
6013 _ACEOF
6016 # The cast to long int works around a bug in the HP C Compiler
6017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6019 # This bug is HP SR number 8606223364.
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6021 $as_echo_n "checking size of int... " >&6; }
6022 if test "${ac_cv_sizeof_int+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6027 else
6028 if test "$ac_cv_type_int" = yes; then
6029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6031 { as_fn_set_status 77
6032 as_fn_error "cannot compute sizeof (int)
6033 See \`config.log' for more details." "$LINENO" 5; }; }
6034 else
6035 ac_cv_sizeof_int=0
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6041 $as_echo "$ac_cv_sizeof_int" >&6; }
6045 cat >>confdefs.h <<_ACEOF
6046 #define SIZEOF_INT $ac_cv_sizeof_int
6047 _ACEOF
6050 # The cast to long int works around a bug in the HP C Compiler
6051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6053 # This bug is HP SR number 8606223364.
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6055 $as_echo_n "checking size of long... " >&6; }
6056 if test "${ac_cv_sizeof_long+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6061 else
6062 if test "$ac_cv_type_long" = yes; then
6063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6065 { as_fn_set_status 77
6066 as_fn_error "cannot compute sizeof (long)
6067 See \`config.log' for more details." "$LINENO" 5; }; }
6068 else
6069 ac_cv_sizeof_long=0
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6075 $as_echo "$ac_cv_sizeof_long" >&6; }
6079 cat >>confdefs.h <<_ACEOF
6080 #define SIZEOF_LONG $ac_cv_sizeof_long
6081 _ACEOF
6084 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6085 if test "x$ac_cv_type_long_long" = x""yes; then :
6087 cat >>confdefs.h <<_ACEOF
6088 #define HAVE_LONG_LONG 1
6089 _ACEOF
6091 # The cast to long int works around a bug in the HP C Compiler
6092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6094 # This bug is HP SR number 8606223364.
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6096 $as_echo_n "checking size of long long... " >&6; }
6097 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6102 else
6103 if test "$ac_cv_type_long_long" = yes; then
6104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6106 { as_fn_set_status 77
6107 as_fn_error "cannot compute sizeof (long long)
6108 See \`config.log' for more details." "$LINENO" 5; }; }
6109 else
6110 ac_cv_sizeof_long_long=0
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6116 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6120 cat >>confdefs.h <<_ACEOF
6121 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6122 _ACEOF
6127 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6128 case $ac_cv_c_int8_t in #(
6129 no|yes) ;; #(
6132 cat >>confdefs.h <<_ACEOF
6133 #define int8_t $ac_cv_c_int8_t
6134 _ACEOF
6136 esac
6138 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6139 case $ac_cv_c_int16_t in #(
6140 no|yes) ;; #(
6143 cat >>confdefs.h <<_ACEOF
6144 #define int16_t $ac_cv_c_int16_t
6145 _ACEOF
6147 esac
6149 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6150 case $ac_cv_c_int32_t in #(
6151 no|yes) ;; #(
6154 cat >>confdefs.h <<_ACEOF
6155 #define int32_t $ac_cv_c_int32_t
6156 _ACEOF
6158 esac
6160 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6161 case $ac_cv_c_int64_t in #(
6162 no|yes) ;; #(
6165 cat >>confdefs.h <<_ACEOF
6166 #define int64_t $ac_cv_c_int64_t
6167 _ACEOF
6169 esac
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6173 $as_echo_n "checking for long long int... " >&6; }
6174 if test "${ac_cv_type_long_long_int+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6180 /* For now, do not test the preprocessor; as of 2007 there are too many
6181 implementations with broken preprocessors. Perhaps this can
6182 be revisited in 2012. In the meantime, code should not expect
6183 #if to work with literals wider than 32 bits. */
6184 /* Test literals. */
6185 long long int ll = 9223372036854775807ll;
6186 long long int nll = -9223372036854775807LL;
6187 unsigned long long int ull = 18446744073709551615ULL;
6188 /* Test constant expressions. */
6189 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6190 ? 1 : -1)];
6191 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6192 ? 1 : -1)];
6193 int i = 63;
6195 main ()
6197 /* Test availability of runtime routines for shift and division. */
6198 long long int llmax = 9223372036854775807ll;
6199 unsigned long long int ullmax = 18446744073709551615ull;
6200 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6201 | (llmax / ll) | (llmax % ll)
6202 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6203 | (ullmax / ull) | (ullmax % ull));
6205 return 0;
6208 _ACEOF
6209 if ac_fn_cxx_try_link "$LINENO"; then :
6210 if test "$cross_compiling" = yes; then :
6211 ac_cv_type_long_long_int=yes
6212 else
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 #include <limits.h>
6216 #ifndef LLONG_MAX
6217 # define HALF \
6218 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6219 # define LLONG_MAX (HALF - 1 + HALF)
6220 #endif
6222 main ()
6224 long long int n = 1;
6225 int i;
6226 for (i = 0; ; i++)
6228 long long int m = n << i;
6229 if (m >> i != n)
6230 return 1;
6231 if (LLONG_MAX / 2 < m)
6232 break;
6234 return 0;
6236 return 0;
6238 _ACEOF
6239 if ac_fn_cxx_try_run "$LINENO"; then :
6240 ac_cv_type_long_long_int=yes
6241 else
6242 ac_cv_type_long_long_int=no
6244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6245 conftest.$ac_objext conftest.beam conftest.$ac_ext
6248 else
6249 ac_cv_type_long_long_int=no
6251 rm -f core conftest.err conftest.$ac_objext \
6252 conftest$ac_exeext conftest.$ac_ext
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6255 $as_echo "$ac_cv_type_long_long_int" >&6; }
6256 if test $ac_cv_type_long_long_int = yes; then
6258 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6264 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6265 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6267 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6269 else
6270 test $ac_cv_type_long_long_int = yes \
6271 && ac_type='long long int' \
6272 || ac_type='long int'
6274 cat >>confdefs.h <<_ACEOF
6275 #define intmax_t $ac_type
6276 _ACEOF
6282 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6283 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6285 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6287 else
6288 for ac_type in 'int' 'long int' 'long long int'; do
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 $ac_includes_default
6293 main ()
6295 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6296 test_array [0] = 0
6299 return 0;
6301 _ACEOF
6302 if ac_fn_cxx_try_compile "$LINENO"; then :
6304 cat >>confdefs.h <<_ACEOF
6305 #define intptr_t $ac_type
6306 _ACEOF
6308 ac_type=
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 test -z "$ac_type" && break
6312 done
6316 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6317 case $ac_cv_c_uint8_t in #(
6318 no|yes) ;; #(
6321 $as_echo "#define _UINT8_T 1" >>confdefs.h
6324 cat >>confdefs.h <<_ACEOF
6325 #define uint8_t $ac_cv_c_uint8_t
6326 _ACEOF
6328 esac
6330 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6331 case $ac_cv_c_uint16_t in #(
6332 no|yes) ;; #(
6336 cat >>confdefs.h <<_ACEOF
6337 #define uint16_t $ac_cv_c_uint16_t
6338 _ACEOF
6340 esac
6342 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6343 case $ac_cv_c_uint32_t in #(
6344 no|yes) ;; #(
6347 $as_echo "#define _UINT32_T 1" >>confdefs.h
6350 cat >>confdefs.h <<_ACEOF
6351 #define uint32_t $ac_cv_c_uint32_t
6352 _ACEOF
6354 esac
6356 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6357 case $ac_cv_c_uint64_t in #(
6358 no|yes) ;; #(
6361 $as_echo "#define _UINT64_T 1" >>confdefs.h
6364 cat >>confdefs.h <<_ACEOF
6365 #define uint64_t $ac_cv_c_uint64_t
6366 _ACEOF
6368 esac
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6372 $as_echo_n "checking for unsigned long long int... " >&6; }
6373 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6379 /* For now, do not test the preprocessor; as of 2007 there are too many
6380 implementations with broken preprocessors. Perhaps this can
6381 be revisited in 2012. In the meantime, code should not expect
6382 #if to work with literals wider than 32 bits. */
6383 /* Test literals. */
6384 long long int ll = 9223372036854775807ll;
6385 long long int nll = -9223372036854775807LL;
6386 unsigned long long int ull = 18446744073709551615ULL;
6387 /* Test constant expressions. */
6388 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6389 ? 1 : -1)];
6390 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6391 ? 1 : -1)];
6392 int i = 63;
6394 main ()
6396 /* Test availability of runtime routines for shift and division. */
6397 long long int llmax = 9223372036854775807ll;
6398 unsigned long long int ullmax = 18446744073709551615ull;
6399 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6400 | (llmax / ll) | (llmax % ll)
6401 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6402 | (ullmax / ull) | (ullmax % ull));
6404 return 0;
6407 _ACEOF
6408 if ac_fn_cxx_try_link "$LINENO"; then :
6409 ac_cv_type_unsigned_long_long_int=yes
6410 else
6411 ac_cv_type_unsigned_long_long_int=no
6413 rm -f core conftest.err conftest.$ac_objext \
6414 conftest$ac_exeext conftest.$ac_ext
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6417 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6418 if test $ac_cv_type_unsigned_long_long_int = yes; then
6420 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6426 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6427 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6429 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6431 else
6432 test $ac_cv_type_unsigned_long_long_int = yes \
6433 && ac_type='unsigned long long int' \
6434 || ac_type='unsigned long int'
6436 cat >>confdefs.h <<_ACEOF
6437 #define uintmax_t $ac_type
6438 _ACEOF
6444 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6445 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6447 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6449 else
6450 for ac_type in 'unsigned int' 'unsigned long int' \
6451 'unsigned long long int'; do
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 $ac_includes_default
6456 main ()
6458 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6459 test_array [0] = 0
6462 return 0;
6464 _ACEOF
6465 if ac_fn_cxx_try_compile "$LINENO"; then :
6467 cat >>confdefs.h <<_ACEOF
6468 #define uintptr_t $ac_type
6469 _ACEOF
6471 ac_type=
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 test -z "$ac_type" && break
6475 done
6491 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6492 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6495 # check what underlying integer type int64_t uses
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6497 $as_echo_n "checking for int64_t underlying type... " >&6; }
6498 if test "${ac_cv_int64_t_type+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6505 #ifdef HAVE_STDINT_H
6506 #include <stdint.h>
6507 #endif
6508 template <typename T> struct X { };
6509 template <>
6510 struct X<long> { typedef long t; };
6513 main ()
6515 X<int64_t>::t x;
6517 return 0;
6519 _ACEOF
6520 if ac_fn_cxx_try_compile "$LINENO"; then :
6521 ac_cv_int64_t_type=long
6522 else
6523 ac_cv_int64_t_type="long long"
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6528 $as_echo "$ac_cv_int64_t_type" >&6; }
6529 if test "$ac_cv_int64_t_type" = "long"; then
6531 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6533 else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6537 #ifdef HAVE_STDINT_H
6538 #include <stdint.h>
6539 #endif
6540 template <typename T> struct X { };
6541 template <>
6542 struct X<long long> { typedef long long t; };
6545 main ()
6547 X<int64_t>::t x;
6549 return 0;
6551 _ACEOF
6552 if ac_fn_cxx_try_compile "$LINENO"; then :
6554 else
6555 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6561 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6562 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6569 #include <utility>
6572 main ()
6574 int a, b; std::swap(a,b);
6576 return 0;
6578 _ACEOF
6579 if ac_fn_cxx_try_compile "$LINENO"; then :
6580 ac_cv_std_swap_in_utility=yes
6581 else
6582 ac_cv_std_swap_in_utility=no
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6587 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6588 if test $ac_cv_std_swap_in_utility = yes; then
6590 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6594 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6595 # If the host compiler is affected by the bug, and we build with optimization
6596 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6597 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6598 # Since there is no reliable feature check for the presence of this bug,
6599 # we simply use a GCC version number check. (This should never trigger for
6600 # stages 2 or 3 of a native bootstrap.)
6601 aliasing_flags=
6602 if test "$GCC" = yes; then
6603 saved_CXXFLAGS="$CXXFLAGS"
6605 # The following test compilation will succeed if and only if $CXX accepts
6606 # -fno-strict-aliasing *and* is older than GCC 4.3.
6607 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6609 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6613 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6614 #error compiler not affected by placement new aliasing bug
6615 #endif
6617 _ACEOF
6618 if ac_fn_cxx_try_compile "$LINENO"; then :
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6620 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 CXXFLAGS="$saved_CXXFLAGS"
6633 # ---------------------
6634 # Warnings and checking
6635 # ---------------------
6637 # Check $CC warning features (if it's GCC).
6638 # We want to use -pedantic, but we don't want warnings about
6639 # * 'long long'
6640 # * variadic macros
6641 # * overlong strings
6642 # * C++11 narrowing conversions in { }
6643 # So, we only use -pedantic if we can disable those warnings.
6645 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6646 # Check whether --enable-build-format-warnings was given.
6647 if test "${enable_build_format_warnings+set}" = set; then :
6648 enableval=$enable_build_format_warnings;
6649 else
6650 enable_build_format_warnings=yes
6653 if test $enable_build_format_warnings = no; then :
6654 wf_opt=-Wno-format
6655 else
6656 wf_opt=
6658 ac_ext=cpp
6659 ac_cpp='$CXXCPP $CPPFLAGS'
6660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6664 loose_warn=
6665 save_CXXFLAGS="$CXXFLAGS"
6666 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6667 # Do the check with the no- prefix removed since gcc silently
6668 # accepts any -Wno-* option on purpose
6669 case $real_option in
6670 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6671 *) option=$real_option ;;
6672 esac
6673 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6676 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6677 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 CXXFLAGS="$option"
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6685 main ()
6689 return 0;
6691 _ACEOF
6692 if ac_fn_cxx_try_compile "$LINENO"; then :
6693 eval "$as_acx_Woption=yes"
6694 else
6695 eval "$as_acx_Woption=no"
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 eval ac_res=\$$as_acx_Woption
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6702 $as_echo "$ac_res" >&6; }
6703 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6704 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6706 done
6707 CXXFLAGS="$save_CXXFLAGS"
6708 ac_ext=cpp
6709 ac_cpp='$CXXCPP $CPPFLAGS'
6710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6716 ac_ext=c
6717 ac_cpp='$CPP $CPPFLAGS'
6718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6722 c_loose_warn=
6723 save_CFLAGS="$CFLAGS"
6724 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6725 # Do the check with the no- prefix removed since gcc silently
6726 # accepts any -Wno-* option on purpose
6727 case $real_option in
6728 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6729 *) option=$real_option ;;
6730 esac
6731 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6734 $as_echo_n "checking whether $CC supports $option... " >&6; }
6735 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 CFLAGS="$option"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6743 main ()
6747 return 0;
6749 _ACEOF
6750 if ac_fn_c_try_compile "$LINENO"; then :
6751 eval "$as_acx_Woption=yes"
6752 else
6753 eval "$as_acx_Woption=no"
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 eval ac_res=\$$as_acx_Woption
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6760 $as_echo "$ac_res" >&6; }
6761 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6762 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6764 done
6765 CFLAGS="$save_CFLAGS"
6766 ac_ext=cpp
6767 ac_cpp='$CXXCPP $CPPFLAGS'
6768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6773 ac_ext=cpp
6774 ac_cpp='$CXXCPP $CPPFLAGS'
6775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6779 strict_warn=
6780 save_CXXFLAGS="$CXXFLAGS"
6781 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6782 # Do the check with the no- prefix removed since gcc silently
6783 # accepts any -Wno-* option on purpose
6784 case $real_option in
6785 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6786 *) option=$real_option ;;
6787 esac
6788 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6791 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6792 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 CXXFLAGS="$option"
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6800 main ()
6804 return 0;
6806 _ACEOF
6807 if ac_fn_cxx_try_compile "$LINENO"; then :
6808 eval "$as_acx_Woption=yes"
6809 else
6810 eval "$as_acx_Woption=no"
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 eval ac_res=\$$as_acx_Woption
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6817 $as_echo "$ac_res" >&6; }
6818 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6819 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6821 done
6822 CXXFLAGS="$save_CXXFLAGS"
6823 ac_ext=cpp
6824 ac_cpp='$CXXCPP $CPPFLAGS'
6825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6830 ac_ext=c
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6836 c_strict_warn=
6837 save_CFLAGS="$CFLAGS"
6838 for real_option in -Wold-style-definition -Wc++-compat; do
6839 # Do the check with the no- prefix removed since gcc silently
6840 # accepts any -Wno-* option on purpose
6841 case $real_option in
6842 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6843 *) option=$real_option ;;
6844 esac
6845 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6848 $as_echo_n "checking whether $CC supports $option... " >&6; }
6849 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 CFLAGS="$option"
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6857 main ()
6861 return 0;
6863 _ACEOF
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 eval "$as_acx_Woption=yes"
6866 else
6867 eval "$as_acx_Woption=no"
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 eval ac_res=\$$as_acx_Woption
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6874 $as_echo "$ac_res" >&6; }
6875 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6876 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6878 done
6879 CFLAGS="$save_CFLAGS"
6880 ac_ext=cpp
6881 ac_cpp='$CXXCPP $CPPFLAGS'
6882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6887 ac_ext=cpp
6888 ac_cpp='$CXXCPP $CPPFLAGS'
6889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6893 # Do the check with the no- prefix removed from the warning options
6894 # since gcc silently accepts any -Wno-* option on purpose
6895 if test "$GXX" = yes; then :
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6897 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6898 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6899 $as_echo_n "(cached) " >&6
6900 else
6901 save_CXXFLAGS="$CXXFLAGS"
6902 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6907 main ()
6911 return 0;
6913 _ACEOF
6914 if ac_fn_cxx_try_compile "$LINENO"; then :
6915 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6916 else
6917 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 CXXFLAGS="$save_CXXFLAGS"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6923 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6924 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6925 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6929 ac_ext=cpp
6930 ac_cpp='$CXXCPP $CPPFLAGS'
6931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6936 ac_ext=cpp
6937 ac_cpp='$CXXCPP $CPPFLAGS'
6938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6942 # Check whether --enable-werror-always was given.
6943 if test "${enable_werror_always+set}" = set; then :
6944 enableval=$enable_werror_always;
6945 else
6946 enable_werror_always=no
6949 if test $enable_werror_always = yes; then :
6950 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6953 ac_ext=cpp
6954 ac_cpp='$CXXCPP $CPPFLAGS'
6955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6961 # The above macros do nothing if the compiler is not GCC. However, the
6962 # Makefile has more goo to add other flags, so these variables are used
6963 # to enable warnings only for GCC.
6964 warn_cflags=
6965 warn_cxxflags=
6966 if test "x$GCC" = "xyes"; then
6967 warn_cflags='$(GCC_WARN_CFLAGS)'
6968 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6973 # Disable exceptions and RTTI if building with g++
6974 ac_ext=c
6975 ac_cpp='$CPP $CPPFLAGS'
6976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980 noexception_flags=
6981 save_CFLAGS="$CFLAGS"
6982 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6983 # Do the check with the no- prefix removed since gcc silently
6984 # accepts any -Wno-* option on purpose
6985 case $real_option in
6986 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6987 *) option=$real_option ;;
6988 esac
6989 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6992 $as_echo_n "checking whether $CC supports $option... " >&6; }
6993 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 CFLAGS="$option"
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7001 main ()
7005 return 0;
7007 _ACEOF
7008 if ac_fn_c_try_compile "$LINENO"; then :
7009 eval "$as_acx_Woption=yes"
7010 else
7011 eval "$as_acx_Woption=no"
7013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 eval ac_res=\$$as_acx_Woption
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7018 $as_echo "$ac_res" >&6; }
7019 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7020 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7022 done
7023 CFLAGS="$save_CFLAGS"
7024 ac_ext=cpp
7025 ac_cpp='$CXXCPP $CPPFLAGS'
7026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7032 # Enable expensive internal checks
7033 is_release=
7034 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7035 is_release=yes
7038 # Check whether --enable-checking was given.
7039 if test "${enable_checking+set}" = set; then :
7040 enableval=$enable_checking; ac_checking_flags="${enableval}"
7041 else
7043 # Determine the default checks.
7044 if test x$is_release = x ; then
7045 ac_checking_flags=yes,extra
7046 else
7047 ac_checking_flags=release
7051 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7052 for check in release $ac_checking_flags
7054 case $check in
7055 # these set all the flags to specific states
7056 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7057 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7058 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7059 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7060 ac_tree_checking=1 ; ac_valgrind_checking= ;
7061 ac_types_checking=1 ;;
7062 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7063 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7064 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7065 ac_rtlflag_checking= ; ac_runtime_checking= ;
7066 ac_tree_checking= ; ac_valgrind_checking= ;
7067 ac_types_checking= ;;
7068 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7069 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7070 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7071 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7072 ac_tree_checking=1 ; ac_valgrind_checking= ;
7073 ac_types_checking=1 ;;
7074 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7075 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7076 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7077 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7078 ac_tree_checking= ; ac_valgrind_checking= ;
7079 ac_types_checking= ;;
7080 # these enable particular checks
7081 assert) ac_assert_checking=1 ;;
7082 df) ac_df_checking=1 ;;
7083 extra) ac_extra_checking=1 ;;
7084 fold) ac_fold_checking=1 ;;
7085 gc) ac_gc_checking=1 ;;
7086 gcac) ac_gc_always_collect=1 ;;
7087 gimple) ac_gimple_checking=1 ;;
7088 misc) ac_checking=1 ;;
7089 rtl) ac_rtl_checking=1 ;;
7090 rtlflag) ac_rtlflag_checking=1 ;;
7091 runtime) ac_runtime_checking=1 ;;
7092 tree) ac_tree_checking=1 ;;
7093 types) ac_types_checking=1 ;;
7094 valgrind) ac_valgrind_checking=1 ;;
7095 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7096 esac
7097 done
7098 IFS="$ac_save_IFS"
7100 nocommon_flag=""
7101 if test x$ac_checking != x ; then
7103 $as_echo "#define CHECKING_P 1" >>confdefs.h
7105 nocommon_flag=-fno-common
7106 else
7107 $as_echo "#define CHECKING_P 0" >>confdefs.h
7111 if test x$ac_extra_checking != x ; then
7113 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7115 else
7116 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7119 if test x$ac_df_checking != x ; then
7121 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7124 if test x$ac_assert_checking != x ; then
7126 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7129 if test x$ac_gimple_checking != x ; then
7131 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7135 if test x$ac_runtime_checking != x ; then
7137 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7140 if test x$ac_tree_checking != x ; then
7142 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7144 TREECHECKING=yes
7146 if test x$ac_types_checking != x ; then
7148 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7152 if test x$ac_rtl_checking != x ; then
7154 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7157 if test x$ac_rtlflag_checking != x ; then
7159 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7162 if test x$ac_gc_checking != x ; then
7164 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7167 if test x$ac_gc_always_collect != x ; then
7169 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7172 if test x$ac_fold_checking != x ; then
7174 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7177 valgrind_path_defines=
7178 valgrind_command=
7180 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7181 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7182 have_valgrind_h=yes
7183 else
7184 have_valgrind_h=no
7189 # It is certainly possible that there's valgrind but no valgrind.h.
7190 # GCC relies on making annotations so we must have both.
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <valgrind/memcheck.h>
7196 #ifndef VALGRIND_DISCARD
7197 #error VALGRIND_DISCARD not defined
7198 #endif
7199 _ACEOF
7200 if ac_fn_cxx_try_cpp "$LINENO"; then :
7201 gcc_cv_header_valgrind_memcheck_h=yes
7202 else
7203 gcc_cv_header_valgrind_memcheck_h=no
7205 rm -f conftest.err conftest.$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7207 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7209 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <memcheck.h>
7213 #ifndef VALGRIND_DISCARD
7214 #error VALGRIND_DISCARD not defined
7215 #endif
7216 _ACEOF
7217 if ac_fn_cxx_try_cpp "$LINENO"; then :
7218 gcc_cv_header_memcheck_h=yes
7219 else
7220 gcc_cv_header_memcheck_h=no
7222 rm -f conftest.err conftest.$ac_ext
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7224 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7225 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7227 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7230 if test $gcc_cv_header_memcheck_h = yes; then
7232 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7236 if test x$ac_valgrind_checking != x ; then
7238 # Prepare PATH_SEPARATOR.
7239 # The user is always right.
7240 if test "${PATH_SEPARATOR+set}" != set; then
7241 echo "#! /bin/sh" >conf$$.sh
7242 echo "exit 0" >>conf$$.sh
7243 chmod +x conf$$.sh
7244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7245 PATH_SEPARATOR=';'
7246 else
7247 PATH_SEPARATOR=:
7249 rm -f conf$$.sh
7252 # Find out how to test for executable files. Don't use a zero-byte file,
7253 # as systems may use methods other than mode bits to determine executability.
7254 cat >conf$$.file <<_ASEOF
7255 #! /bin/sh
7256 exit 0
7257 _ASEOF
7258 chmod +x conf$$.file
7259 if test -x conf$$.file >/dev/null 2>&1; then
7260 ac_executable_p="test -x"
7261 else
7262 ac_executable_p="test -f"
7264 rm -f conf$$.file
7266 # Extract the first word of "valgrind", so it can be a program name with args.
7267 set dummy valgrind; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 case "$valgrind_path" in
7274 [\\/]* | ?:[\\/]*)
7275 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7278 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7279 for ac_dir in $PATH; do
7280 IFS="$ac_save_IFS"
7281 test -z "$ac_dir" && ac_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7284 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7285 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7286 break 2
7289 done
7290 done
7291 IFS="$ac_save_IFS"
7293 esac
7295 valgrind_path="$ac_cv_path_valgrind_path"
7296 if test -n "$valgrind_path"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7298 $as_echo "$valgrind_path" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7304 if test "x$valgrind_path" = "x" \
7305 || (test $have_valgrind_h = no \
7306 && test $gcc_cv_header_memcheck_h = no \
7307 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7308 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7310 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7311 valgrind_command="$valgrind_path -q"
7313 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7319 # Enable code coverage collection
7320 # Check whether --enable-coverage was given.
7321 if test "${enable_coverage+set}" = set; then :
7322 enableval=$enable_coverage; case "${enableval}" in
7323 yes|noopt)
7324 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7326 opt)
7327 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7330 # a.k.a. --disable-coverage
7331 coverage_flags=""
7334 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7336 esac
7337 else
7338 coverage_flags=""
7343 # Check whether --enable-gather-detailed-mem-stats was given.
7344 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7345 enableval=$enable_gather_detailed_mem_stats;
7346 else
7347 enable_gather_detailed_mem_stats=no
7350 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7352 cat >>confdefs.h <<_ACEOF
7353 #define GATHER_STATISTICS $gather_stats
7354 _ACEOF
7357 # Check whether --enable-valgrind-annotations was given.
7358 if test "${enable_valgrind_annotations+set}" = set; then :
7359 enableval=$enable_valgrind_annotations;
7360 else
7361 enable_valgrind_annotations=no
7364 if test x$enable_valgrind_annotations != xno \
7365 || test x$ac_valgrind_checking != x; then
7366 if (test $have_valgrind_h = no \
7367 && test $gcc_cv_header_memcheck_h = no \
7368 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7369 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7372 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7376 # -------------------------------
7377 # Miscenalleous configure options
7378 # -------------------------------
7380 # With stabs
7382 # Check whether --with-stabs was given.
7383 if test "${with_stabs+set}" = set; then :
7384 withval=$with_stabs; stabs="$with_stabs"
7385 else
7386 stabs=no
7390 # Determine whether or not multilibs are enabled.
7391 # Check whether --enable-multilib was given.
7392 if test "${enable_multilib+set}" = set; then :
7393 enableval=$enable_multilib;
7394 else
7395 enable_multilib=yes
7400 # Determine whether or not multiarch is enabled.
7401 # Check whether --enable-multiarch was given.
7402 if test "${enable_multiarch+set}" = set; then :
7403 enableval=$enable_multiarch; case "${enableval}" in
7404 yes|no|auto) enable_multiarch=$enableval;;
7405 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7406 esac
7407 else
7408 enable_multiarch=auto
7411 if test x${enable_multiarch} = xauto; then
7412 if test x${with_native_system_header_dir} != x; then
7413 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7414 enable_multiarch=no
7416 if test x$host != x$target && test "x$with_sysroot" = x; then
7417 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7418 enable_multiarch=no
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7422 $as_echo_n "checking for multiarch configuration... " >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7425 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7427 # needed for setting the multiarch name for soft-float/hard-float ABIs
7431 # Enable __cxa_atexit for C++.
7432 # Check whether --enable-__cxa_atexit was given.
7433 if test "${enable___cxa_atexit+set}" = set; then :
7434 enableval=$enable___cxa_atexit;
7438 # Enable C extension for decimal float if target supports it.
7440 # Check whether --enable-decimal-float was given.
7441 if test "${enable_decimal_float+set}" = set; then :
7442 enableval=$enable_decimal_float;
7443 case $enable_decimal_float in
7444 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7445 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7446 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7447 esac
7449 else
7451 case $target in
7452 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7453 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7454 i?86*-*-mingw* | x86_64*-*-mingw* | \
7455 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7456 enable_decimal_float=yes
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7460 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7461 enable_decimal_float=no
7463 esac
7468 # x86's use BID format instead of DPD
7469 case x$enable_decimal_float in
7470 xyes)
7471 case $target in
7472 i?86*-*-* | x86_64*-*-*)
7473 enable_decimal_float=bid
7476 enable_decimal_float=dpd
7478 esac
7479 default_decimal_float=$enable_decimal_float
7481 xno)
7482 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7483 # dependency on libdecnumber.
7484 default_decimal_float=dpd
7486 esac
7491 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7493 cat >>confdefs.h <<_ACEOF
7494 #define ENABLE_DECIMAL_FLOAT $dfp
7495 _ACEOF
7498 # Use default_decimal_float for dependency.
7499 enable_decimal_float=$default_decimal_float
7501 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7503 cat >>confdefs.h <<_ACEOF
7504 #define ENABLE_DECIMAL_BID_FORMAT $bid
7505 _ACEOF
7508 # Enable C extension for fixed-point arithmetic.
7509 # Check whether --enable-fixed-point was given.
7510 if test "${enable_fixed_point+set}" = set; then :
7511 enableval=$enable_fixed_point;
7512 else
7514 case $target in
7515 arm*)
7516 enable_fixed_point=yes
7519 mips*-*-*)
7520 enable_fixed_point=yes
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7524 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7525 enable_fixed_point=no
7527 esac
7533 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7535 cat >>confdefs.h <<_ACEOF
7536 #define ENABLE_FIXED_POINT $fixedpoint
7537 _ACEOF
7540 # Enable threads
7541 # Pass with no value to take the default
7542 # Pass with a value to specify a thread package
7543 # Check whether --enable-threads was given.
7544 if test "${enable_threads+set}" = set; then :
7545 enableval=$enable_threads;
7546 else
7547 enable_threads=''
7551 # Check whether --enable-tls was given.
7552 if test "${enable_tls+set}" = set; then :
7553 enableval=$enable_tls;
7554 case $enable_tls in
7555 yes | no) ;;
7556 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7557 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7558 esac
7560 else
7561 enable_tls=''
7565 # Check whether --enable-vtable-verify was given.
7566 if test "${enable_vtable_verify+set}" = set; then :
7567 enableval=$enable_vtable_verify;
7568 else
7569 enable_vtable_verify=no
7572 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7574 cat >>confdefs.h <<_ACEOF
7575 #define ENABLE_VTABLE_VERIFY $vtable_verify
7576 _ACEOF
7579 # Check whether --enable-objc-gc was given.
7580 if test "${enable_objc_gc+set}" = set; then :
7581 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7582 objc_boehm_gc=''
7583 else
7584 objc_boehm_gc=1
7586 else
7587 objc_boehm_gc=''
7592 # Check whether --with-dwarf2 was given.
7593 if test "${with_dwarf2+set}" = set; then :
7594 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7595 else
7596 dwarf2=no
7600 # Check whether --enable-shared was given.
7601 if test "${enable_shared+set}" = set; then :
7602 enableval=$enable_shared;
7603 case $enable_shared in
7604 yes | no) ;;
7606 enable_shared=no
7607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7608 for pkg in $enableval; do
7609 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7610 enable_shared=yes
7612 done
7613 IFS="$ac_save_ifs"
7615 esac
7617 else
7618 enable_shared=yes
7624 # Check whether --with-specs was given.
7625 if test "${with_specs+set}" = set; then :
7626 withval=$with_specs; CONFIGURE_SPECS=$withval
7627 else
7628 CONFIGURE_SPECS=
7636 # Check whether --with-pkgversion was given.
7637 if test "${with_pkgversion+set}" = set; then :
7638 withval=$with_pkgversion; case "$withval" in
7639 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7640 no) PKGVERSION= ;;
7641 *) PKGVERSION="($withval) " ;;
7642 esac
7643 else
7644 PKGVERSION="(GCC) "
7652 # Check whether --with-bugurl was given.
7653 if test "${with_bugurl+set}" = set; then :
7654 withval=$with_bugurl; case "$withval" in
7655 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7656 no) BUGURL=
7658 *) BUGURL="$withval"
7660 esac
7661 else
7662 BUGURL="https://gcc.gnu.org/bugs/"
7666 case ${BUGURL} in
7668 REPORT_BUGS_TO=
7669 REPORT_BUGS_TEXI=
7672 REPORT_BUGS_TO="<$BUGURL>"
7673 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7675 esac;
7680 # Sanity check enable_languages in case someone does not run the toplevel
7681 # configure # script.
7682 # Check whether --enable-languages was given.
7683 if test "${enable_languages+set}" = set; then :
7684 enableval=$enable_languages; case ,${enable_languages}, in
7685 ,,|,yes,)
7686 # go safe -- we cannot be much sure without the toplevel
7687 # configure's
7688 # analysis of which target libs are present and usable
7689 enable_languages=c
7691 *,all,*)
7692 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7694 *,c,*)
7697 enable_languages=c,${enable_languages}
7699 esac
7700 else
7701 enable_languages=c
7705 if test x"$enable_as_accelerator_for" != x; then
7707 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7709 enable_as_accelerator=yes
7710 case "${target}" in
7711 *-intelmicemul-*)
7712 # In this case we expect offload compiler to be built as native, so we
7713 # need to rename the driver to avoid clashes with host's drivers.
7714 program_transform_name="s&^&${target}-&" ;;
7715 esac
7716 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7717 program_transform_name=`echo $program_transform_name | sed $sedscript`
7718 accel_dir_suffix=/accel/${target_noncanonical}
7719 real_target_noncanonical=${enable_as_accelerator_for}
7725 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7726 tgt=`echo $tgt | sed 's/=.*//'`
7728 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7729 enable_hsa=1
7730 else
7731 enable_offloading=1
7734 if test x"$offload_targets" = x; then
7735 offload_targets=$tgt
7736 else
7737 offload_targets="$offload_targets,$tgt"
7739 done
7741 cat >>confdefs.h <<_ACEOF
7742 #define OFFLOAD_TARGETS "$offload_targets"
7743 _ACEOF
7745 if test x"$enable_offloading" != x; then
7747 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7749 else
7751 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7755 if test x"$enable_hsa" = x1 ; then
7757 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7762 # Check whether --with-multilib-list was given.
7763 if test "${with_multilib_list+set}" = set; then :
7764 withval=$with_multilib_list; :
7765 else
7766 with_multilib_list=default
7770 # -------------------------
7771 # Checks for other programs
7772 # -------------------------
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7775 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7776 set x ${MAKE-make}
7777 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7778 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 cat >conftest.make <<\_ACEOF
7782 SHELL = /bin/sh
7783 all:
7784 @echo '@@@%%%=$(MAKE)=@@@%%%'
7785 _ACEOF
7786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7787 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7788 *@@@%%%=?*=@@@%%%*)
7789 eval ac_cv_prog_make_${ac_make}_set=yes;;
7791 eval ac_cv_prog_make_${ac_make}_set=no;;
7792 esac
7793 rm -f conftest.make
7795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797 $as_echo "yes" >&6; }
7798 SET_MAKE=
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 SET_MAKE="MAKE=${MAKE-make}"
7806 # Find some useful tools
7807 for ac_prog in gawk mawk nawk awk
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_AWK+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$AWK"; then
7817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_AWK="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7830 done
7831 done
7832 IFS=$as_save_IFS
7836 AWK=$ac_cv_prog_AWK
7837 if test -n "$AWK"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7839 $as_echo "$AWK" >&6; }
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$AWK" && break
7847 done
7849 # We need awk to create options.c and options.h.
7850 # Bail out if it's missing.
7851 case ${AWK} in
7852 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7853 esac
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7856 $as_echo_n "checking whether ln -s works... " >&6; }
7857 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 rm -f conftestdata_t
7861 echo >conftestdata_f
7862 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7863 then
7864 gcc_cv_prog_LN_S="ln -s"
7865 else
7866 if ln conftestdata_f conftestdata_t 2>/dev/null
7867 then
7868 gcc_cv_prog_LN_S=ln
7869 else
7870 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7871 then
7872 gcc_cv_prog_LN_S="cp -p"
7873 else
7874 gcc_cv_prog_LN_S=cp
7878 rm -f conftestdata_f conftestdata_t
7881 LN_S="$gcc_cv_prog_LN_S"
7882 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7884 $as_echo "yes" >&6; }
7885 else
7886 if test "$gcc_cv_prog_LN_S" = "ln"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7888 $as_echo "no, using ln" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7891 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7896 $as_echo_n "checking whether ln works... " >&6; }
7897 if test "${acx_cv_prog_LN+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 rm -f conftestdata_t
7901 echo >conftestdata_f
7902 if ln conftestdata_f conftestdata_t 2>/dev/null
7903 then
7904 acx_cv_prog_LN=ln
7905 else
7906 acx_cv_prog_LN=no
7908 rm -f conftestdata_f conftestdata_t
7911 if test $acx_cv_prog_LN = no; then
7912 LN="$LN_S"
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7914 $as_echo "no, using $LN" >&6; }
7915 else
7916 LN="$acx_cv_prog_LN"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7918 $as_echo "yes" >&6; }
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$RANLIB"; then
7930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7943 done
7944 done
7945 IFS=$as_save_IFS
7949 RANLIB=$ac_cv_prog_RANLIB
7950 if test -n "$RANLIB"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7952 $as_echo "$RANLIB" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7960 if test -z "$ac_cv_prog_RANLIB"; then
7961 ac_ct_RANLIB=$RANLIB
7962 # Extract the first word of "ranlib", so it can be a program name with args.
7963 set dummy ranlib; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 if test -n "$ac_ct_RANLIB"; then
7970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7971 else
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_ac_ct_RANLIB="ranlib"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7983 done
7984 done
7985 IFS=$as_save_IFS
7989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7990 if test -n "$ac_ct_RANLIB"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7992 $as_echo "$ac_ct_RANLIB" >&6; }
7993 else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7998 if test "x$ac_ct_RANLIB" = x; then
7999 RANLIB=":"
8000 else
8001 case $cross_compiling:$ac_tool_warned in
8002 yes:)
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned=yes ;;
8006 esac
8007 RANLIB=$ac_ct_RANLIB
8009 else
8010 RANLIB="$ac_cv_prog_RANLIB"
8013 ranlib_flags=""
8016 # Find a good install program. We prefer a C program (faster),
8017 # so one script is as good as another. But avoid the broken or
8018 # incompatible versions:
8019 # SysV /etc/install, /usr/sbin/install
8020 # SunOS /usr/etc/install
8021 # IRIX /sbin/install
8022 # AIX /bin/install
8023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8025 # ./install, which can be erroneously created by make from ./install.sh.
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8027 $as_echo_n "checking for a BSD compatible install... " >&6; }
8028 if test -z "$INSTALL"; then
8029 if test "${ac_cv_path_install+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8033 for ac_dir in $PATH; do
8034 # Account for people who put trailing slashes in PATH elements.
8035 case "$ac_dir/" in
8036 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8038 # OSF1 and SCO ODT 3.0 have their own names for install.
8039 for ac_prog in ginstall scoinst install; do
8040 if test -f $ac_dir/$ac_prog; then
8041 if test $ac_prog = install &&
8042 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8043 # AIX install. It has an incompatible calling convention.
8044 # OSF/1 installbsd also uses dspmsg, but is usable.
8046 else
8047 ac_cv_path_install="$ac_dir/$ac_prog -c"
8048 break 2
8051 done
8053 esac
8054 done
8055 IFS="$ac_save_IFS"
8058 if test "${ac_cv_path_install+set}" = set; then
8059 INSTALL="$ac_cv_path_install"
8060 else
8061 # As a last resort, use the slow shell script. We don't cache a
8062 # path for INSTALL within a source directory, because that will
8063 # break other packages using the cache if that directory is
8064 # removed, or if the path is relative.
8065 INSTALL="$ac_install_sh"
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8069 $as_echo "$INSTALL" >&6; }
8071 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8072 # It thinks the first close brace ends the variable substitution.
8073 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8078 # See if cmp has --ignore-initial.
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8080 $as_echo_n "checking for cmp's capabilities... " >&6; }
8081 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 echo abfoo >t1
8085 echo cdfoo >t2
8086 gcc_cv_prog_cmp_skip=slowcompare
8087 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8088 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8090 else
8091 gcc_cv_prog_cmp_skip=gnucompare
8094 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8095 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8096 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8098 else
8099 gcc_cv_prog_cmp_skip=fastcompare
8103 rm t1 t2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8107 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8108 make_compare_target=$gcc_cv_prog_cmp_skip
8112 # See if we have the mktemp command.
8113 # Extract the first word of "mktemp", so it can be a program name with args.
8114 set dummy mktemp; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 if test -n "$have_mktemp_command"; then
8121 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130 ac_cv_prog_have_mktemp_command="yes"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8134 done
8135 done
8136 IFS=$as_save_IFS
8138 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8141 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8142 if test -n "$have_mktemp_command"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8144 $as_echo "$have_mktemp_command" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8152 # See if makeinfo has been installed and is modern enough
8153 # that we can use it.
8155 # Extract the first word of "makeinfo", so it can be a program name with args.
8156 set dummy makeinfo; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 if test -n "$MAKEINFO"; then
8163 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_MAKEINFO="makeinfo"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8176 done
8177 done
8178 IFS=$as_save_IFS
8182 MAKEINFO=$ac_cv_prog_MAKEINFO
8183 if test -n "$MAKEINFO"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8185 $as_echo "$MAKEINFO" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8192 if test -n "$MAKEINFO"; then
8193 # Found it, now check the version.
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8195 $as_echo_n "checking for modern makeinfo... " >&6; }
8196 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8200 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8202 case $ac_prog_version in
8203 '') gcc_cv_prog_makeinfo_modern=no;;
8204 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8205 *) gcc_cv_prog_makeinfo_modern=no;;
8206 esac
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8210 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8211 else
8212 gcc_cv_prog_makeinfo_modern=no
8214 if test $gcc_cv_prog_makeinfo_modern = no; then
8215 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8218 if test $gcc_cv_prog_makeinfo_modern = no; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8220 *** Makeinfo is missing or too old.
8221 *** Info documentation will not be built." >&5
8222 $as_echo "$as_me: WARNING:
8223 *** Makeinfo is missing or too old.
8224 *** Info documentation will not be built." >&2;}
8225 BUILD_INFO=
8226 else
8227 BUILD_INFO=info
8231 # Is pod2man recent enough to regenerate manpages?
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8233 $as_echo_n "checking for recent Pod::Man... " >&6; }
8234 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8236 $as_echo "yes" >&6; }
8237 GENERATED_MANPAGES=generated-manpages
8238 else
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8241 GENERATED_MANPAGES=
8245 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8247 # How about lex?
8248 for ac_prog in flex
8250 # Extract the first word of "$ac_prog", so it can be a program name with args.
8251 set dummy $ac_prog; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if test "${ac_cv_prog_FLEX+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$FLEX"; then
8258 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_FLEX="$ac_prog"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8271 done
8272 done
8273 IFS=$as_save_IFS
8277 FLEX=$ac_cv_prog_FLEX
8278 if test -n "$FLEX"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8280 $as_echo "$FLEX" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8287 test -n "$FLEX" && break
8288 done
8289 test -n "$FLEX" || FLEX="$MISSING flex"
8292 # Bison?
8293 for ac_prog in bison
8295 # Extract the first word of "$ac_prog", so it can be a program name with args.
8296 set dummy $ac_prog; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if test "${ac_cv_prog_BISON+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 if test -n "$BISON"; then
8303 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8308 IFS=$as_save_IFS
8309 test -z "$as_dir" && as_dir=.
8310 for ac_exec_ext in '' $ac_executable_extensions; do
8311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 ac_cv_prog_BISON="$ac_prog"
8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314 break 2
8316 done
8317 done
8318 IFS=$as_save_IFS
8322 BISON=$ac_cv_prog_BISON
8323 if test -n "$BISON"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8325 $as_echo "$BISON" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8332 test -n "$BISON" && break
8333 done
8334 test -n "$BISON" || BISON="$MISSING bison"
8337 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8338 # check for build == host before using them.
8340 # NM
8341 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8342 && test -d ../binutils ; then
8343 NM='${objdir}/../binutils/nm-new'
8344 else
8345 # Extract the first word of "nm", so it can be a program name with args.
8346 set dummy nm; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if test "${ac_cv_prog_NM+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 if test -n "$NM"; then
8353 ac_cv_prog_NM="$NM" # Let the user override the test.
8354 else
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_prog_NM="nm"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8366 done
8367 done
8368 IFS=$as_save_IFS
8370 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8373 NM=$ac_cv_prog_NM
8374 if test -n "$NM"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8376 $as_echo "$NM" >&6; }
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8385 # AR
8386 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8387 && test -d ../binutils ; then
8388 AR='${objdir}/../binutils/ar'
8389 else
8390 # Extract the first word of "ar", so it can be a program name with args.
8391 set dummy ar; ac_word=$2
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 $as_echo_n "checking for $ac_word... " >&6; }
8394 if test "${ac_cv_prog_AR+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 if test -n "$AR"; then
8398 ac_cv_prog_AR="$AR" # Let the user override the test.
8399 else
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401 for as_dir in $PATH
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407 ac_cv_prog_AR="ar"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8411 done
8412 done
8413 IFS=$as_save_IFS
8415 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8418 AR=$ac_cv_prog_AR
8419 if test -n "$AR"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8421 $as_echo "$AR" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8430 # The jit documentation looks better if built with sphinx, but can be
8431 # built with texinfo if sphinx is not available.
8432 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8433 # Extract the first word of "sphinx-build", so it can be a program name with args.
8434 set dummy sphinx-build; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 if test -n "$doc_build_sys"; then
8441 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_prog_doc_build_sys="sphinx"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8454 done
8455 done
8456 IFS=$as_save_IFS
8458 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8461 doc_build_sys=$ac_cv_prog_doc_build_sys
8462 if test -n "$doc_build_sys"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8464 $as_echo "$doc_build_sys" >&6; }
8465 else
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8472 # --------------------
8473 # Checks for C headers
8474 # --------------------
8476 # Need to reject headers which give warnings, so that the -Werror bootstrap
8477 # works later. *sigh* This needs to come before all header checks.
8479 ac_c_preproc_warn_flag=yes
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8482 $as_echo_n "checking for ANSI C header files... " >&6; }
8483 if test "${ac_cv_header_stdc+set}" = set; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <stdlib.h>
8489 #include <stdarg.h>
8490 #include <string.h>
8491 #include <float.h>
8494 main ()
8498 return 0;
8500 _ACEOF
8501 if ac_fn_cxx_try_compile "$LINENO"; then :
8502 ac_cv_header_stdc=yes
8503 else
8504 ac_cv_header_stdc=no
8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 if test $ac_cv_header_stdc = yes; then
8509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 #include <string.h>
8514 _ACEOF
8515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8516 $EGREP "memchr" >/dev/null 2>&1; then :
8518 else
8519 ac_cv_header_stdc=no
8521 rm -f conftest*
8525 if test $ac_cv_header_stdc = yes; then
8526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 #include <stdlib.h>
8531 _ACEOF
8532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533 $EGREP "free" >/dev/null 2>&1; then :
8535 else
8536 ac_cv_header_stdc=no
8538 rm -f conftest*
8542 if test $ac_cv_header_stdc = yes; then
8543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8544 if test "$cross_compiling" = yes; then :
8546 else
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <ctype.h>
8550 #include <stdlib.h>
8551 #if ((' ' & 0x0FF) == 0x020)
8552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8554 #else
8555 # define ISLOWER(c) \
8556 (('a' <= (c) && (c) <= 'i') \
8557 || ('j' <= (c) && (c) <= 'r') \
8558 || ('s' <= (c) && (c) <= 'z'))
8559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8560 #endif
8562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8564 main ()
8566 int i;
8567 for (i = 0; i < 256; i++)
8568 if (XOR (islower (i), ISLOWER (i))
8569 || toupper (i) != TOUPPER (i))
8570 return 2;
8571 return 0;
8573 _ACEOF
8574 if ac_fn_cxx_try_run "$LINENO"; then :
8576 else
8577 ac_cv_header_stdc=no
8579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8580 conftest.$ac_objext conftest.beam conftest.$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8586 $as_echo "$ac_cv_header_stdc" >&6; }
8587 if test $ac_cv_header_stdc = yes; then
8589 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8594 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8595 if test "${ac_cv_header_time+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <sys/types.h>
8601 #include <sys/time.h>
8602 #include <time.h>
8605 main ()
8607 if ((struct tm *) 0)
8608 return 0;
8610 return 0;
8612 _ACEOF
8613 if ac_fn_cxx_try_compile "$LINENO"; then :
8614 ac_cv_header_time=yes
8615 else
8616 ac_cv_header_time=no
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8621 $as_echo "$ac_cv_header_time" >&6; }
8622 if test $ac_cv_header_time = yes; then
8624 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8629 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8630 if test "${gcc_cv_header_string+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8635 #include <string.h>
8636 #include <strings.h>
8638 main ()
8642 return 0;
8644 _ACEOF
8645 if ac_fn_cxx_try_compile "$LINENO"; then :
8646 gcc_cv_header_string=yes
8647 else
8648 gcc_cv_header_string=no
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8653 $as_echo "$gcc_cv_header_string" >&6; }
8654 if test $gcc_cv_header_string = yes; then
8656 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8661 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8662 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <sys/types.h>
8668 #include <sys/wait.h>
8669 #ifndef WEXITSTATUS
8670 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8671 #endif
8672 #ifndef WIFEXITED
8673 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8674 #endif
8677 main ()
8679 int s;
8680 wait (&s);
8681 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8683 return 0;
8685 _ACEOF
8686 if ac_fn_cxx_try_compile "$LINENO"; then :
8687 ac_cv_header_sys_wait_h=yes
8688 else
8689 ac_cv_header_sys_wait_h=no
8691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8694 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8695 if test $ac_cv_header_sys_wait_h = yes; then
8697 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8702 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8703 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <sys/types.h>
8709 #include <termios.h>
8710 #ifdef TIOCGWINSZ
8712 #endif
8714 _ACEOF
8715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8716 $EGREP "yes" >/dev/null 2>&1; then :
8717 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8718 else
8719 ac_cv_sys_tiocgwinsz_in_termios_h=no
8721 rm -f conftest*
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8725 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8727 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8729 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8730 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <sys/types.h>
8736 #include <sys/ioctl.h>
8737 #ifdef TIOCGWINSZ
8739 #endif
8741 _ACEOF
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 $EGREP "yes" >/dev/null 2>&1; then :
8744 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8745 else
8746 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8748 rm -f conftest*
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8752 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8754 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8756 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8761 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8762 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8763 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8764 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8765 do :
8766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8768 eval as_val=\$$as_ac_Header
8769 if test "x$as_val" = x""yes; then :
8770 cat >>confdefs.h <<_ACEOF
8771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8772 _ACEOF
8775 done
8778 # Check for thread headers.
8779 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8780 if test "x$ac_cv_header_thread_h" = x""yes; then :
8781 have_thread_h=yes
8782 else
8783 have_thread_h=
8786 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8787 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8788 have_pthread_h=yes
8789 else
8790 have_pthread_h=
8794 # These tests can't be done till we know if we have limits.h.
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8796 $as_echo_n "checking for CHAR_BIT... " >&6; }
8797 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802 #ifdef HAVE_LIMITS_H
8803 #include <limits.h>
8804 #endif
8805 #ifdef CHAR_BIT
8806 found
8807 #endif
8808 _ACEOF
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 $EGREP "found" >/dev/null 2>&1; then :
8811 gcc_cv_decl_char_bit=yes
8812 else
8813 gcc_cv_decl_char_bit=no
8815 rm -f conftest*
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8820 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8821 if test $gcc_cv_decl_char_bit = no; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8823 $as_echo_n "checking number of bits in a byte... " >&6; }
8824 if test "${gcc_cv_c_nbby+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8828 gcc_cv_c_nbby=
8829 while test $i -lt 65; do
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8834 main ()
8836 switch(0) {
8837 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8838 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8841 return 0;
8843 _ACEOF
8844 if ac_fn_cxx_try_compile "$LINENO"; then :
8845 gcc_cv_c_nbby=$i; break
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 i=`expr $i + 1`
8849 done
8850 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8854 $as_echo "$gcc_cv_c_nbby" >&6; }
8855 if test $gcc_cv_c_nbby = failed; then
8856 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8857 else
8859 cat >>confdefs.h <<_ACEOF
8860 #define CHAR_BIT $gcc_cv_c_nbby
8861 _ACEOF
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8866 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8867 if test "${ac_cv_c_bigendian+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 ac_cv_c_bigendian=unknown
8871 # See if we're dealing with a universal compiler.
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 #ifndef __APPLE_CC__
8875 not a universal capable compiler
8876 #endif
8877 typedef int dummy;
8879 _ACEOF
8880 if ac_fn_cxx_try_compile "$LINENO"; then :
8882 # Check for potential -arch flags. It is not universal unless
8883 # there are at least two -arch flags with different values.
8884 ac_arch=
8885 ac_prev=
8886 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8887 if test -n "$ac_prev"; then
8888 case $ac_word in
8889 i?86 | x86_64 | ppc | ppc64)
8890 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8891 ac_arch=$ac_word
8892 else
8893 ac_cv_c_bigendian=universal
8894 break
8897 esac
8898 ac_prev=
8899 elif test "x$ac_word" = "x-arch"; then
8900 ac_prev=arch
8902 done
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 if test $ac_cv_c_bigendian = unknown; then
8906 # See if sys/param.h defines the BYTE_ORDER macro.
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <sys/param.h>
8913 main ()
8915 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8916 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8917 && LITTLE_ENDIAN)
8918 bogus endian macros
8919 #endif
8922 return 0;
8924 _ACEOF
8925 if ac_fn_cxx_try_compile "$LINENO"; then :
8926 # It does; now see whether it defined to BIG_ENDIAN or not.
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #include <sys/types.h>
8930 #include <sys/param.h>
8933 main ()
8935 #if BYTE_ORDER != BIG_ENDIAN
8936 not big endian
8937 #endif
8940 return 0;
8942 _ACEOF
8943 if ac_fn_cxx_try_compile "$LINENO"; then :
8944 ac_cv_c_bigendian=yes
8945 else
8946 ac_cv_c_bigendian=no
8948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952 if test $ac_cv_c_bigendian = unknown; then
8953 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 #include <limits.h>
8959 main ()
8961 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8962 bogus endian macros
8963 #endif
8966 return 0;
8968 _ACEOF
8969 if ac_fn_cxx_try_compile "$LINENO"; then :
8970 # It does; now see whether it defined to _BIG_ENDIAN or not.
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973 #include <limits.h>
8976 main ()
8978 #ifndef _BIG_ENDIAN
8979 not big endian
8980 #endif
8983 return 0;
8985 _ACEOF
8986 if ac_fn_cxx_try_compile "$LINENO"; then :
8987 ac_cv_c_bigendian=yes
8988 else
8989 ac_cv_c_bigendian=no
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 if test $ac_cv_c_bigendian = unknown; then
8996 # Compile a test program.
8997 if test "$cross_compiling" = yes; then :
8998 # Try to guess by grepping values from an object file.
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9001 short int ascii_mm[] =
9002 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9003 short int ascii_ii[] =
9004 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9005 int use_ascii (int i) {
9006 return ascii_mm[i] + ascii_ii[i];
9008 short int ebcdic_ii[] =
9009 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9010 short int ebcdic_mm[] =
9011 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9012 int use_ebcdic (int i) {
9013 return ebcdic_mm[i] + ebcdic_ii[i];
9015 extern int foo;
9018 main ()
9020 return use_ascii (foo) == use_ebcdic (foo);
9022 return 0;
9024 _ACEOF
9025 if ac_fn_cxx_try_compile "$LINENO"; then :
9026 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9027 ac_cv_c_bigendian=yes
9029 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9030 if test "$ac_cv_c_bigendian" = unknown; then
9031 ac_cv_c_bigendian=no
9032 else
9033 # finding both strings is unlikely to happen, but who knows?
9034 ac_cv_c_bigendian=unknown
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9039 else
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 $ac_includes_default
9044 main ()
9047 /* Are we little or big endian? From Harbison&Steele. */
9048 union
9050 long int l;
9051 char c[sizeof (long int)];
9052 } u;
9053 u.l = 1;
9054 return u.c[sizeof (long int) - 1] == 1;
9057 return 0;
9059 _ACEOF
9060 if ac_fn_cxx_try_run "$LINENO"; then :
9061 ac_cv_c_bigendian=no
9062 else
9063 ac_cv_c_bigendian=yes
9065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9066 conftest.$ac_objext conftest.beam conftest.$ac_ext
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9072 $as_echo "$ac_cv_c_bigendian" >&6; }
9073 case $ac_cv_c_bigendian in #(
9074 yes)
9075 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9076 ;; #(
9078 ;; #(
9079 universal)
9081 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9083 ;; #(
9085 as_fn_error "unknown endianness
9086 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9087 esac
9090 # ----------------------
9091 # Checks for C++ headers
9092 # ----------------------
9094 ac_ext=cpp
9095 ac_cpp='$CXXCPP $CPPFLAGS'
9096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9100 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9101 if test -z "$CXXCPP"; then
9102 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9103 $as_echo_n "(cached) " >&6
9104 else
9105 # Double quotes because CXXCPP needs to be expanded
9106 for CXXCPP in "$CXX -E" "/lib/cpp"
9108 ac_preproc_ok=false
9109 for ac_cxx_preproc_warn_flag in '' yes
9111 # Use a header file that comes with gcc, so configuring glibc
9112 # with a fresh cross-compiler works.
9113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9114 # <limits.h> exists even on freestanding compilers.
9115 # On the NeXT, cc -E runs the code through the compiler's parser,
9116 # not just through cpp. "Syntax error" is here to catch this case.
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119 #ifdef __STDC__
9120 # include <limits.h>
9121 #else
9122 # include <assert.h>
9123 #endif
9124 Syntax error
9125 _ACEOF
9126 if ac_fn_cxx_try_cpp "$LINENO"; then :
9128 else
9129 # Broken: fails on valid input.
9130 continue
9132 rm -f conftest.err conftest.$ac_ext
9134 # OK, works on sane cases. Now check whether nonexistent headers
9135 # can be detected and how.
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9138 #include <ac_nonexistent.h>
9139 _ACEOF
9140 if ac_fn_cxx_try_cpp "$LINENO"; then :
9141 # Broken: success on invalid input.
9142 continue
9143 else
9144 # Passes both tests.
9145 ac_preproc_ok=:
9146 break
9148 rm -f conftest.err conftest.$ac_ext
9150 done
9151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9152 rm -f conftest.err conftest.$ac_ext
9153 if $ac_preproc_ok; then :
9154 break
9157 done
9158 ac_cv_prog_CXXCPP=$CXXCPP
9161 CXXCPP=$ac_cv_prog_CXXCPP
9162 else
9163 ac_cv_prog_CXXCPP=$CXXCPP
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9166 $as_echo "$CXXCPP" >&6; }
9167 ac_preproc_ok=false
9168 for ac_cxx_preproc_warn_flag in '' yes
9170 # Use a header file that comes with gcc, so configuring glibc
9171 # with a fresh cross-compiler works.
9172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173 # <limits.h> exists even on freestanding compilers.
9174 # On the NeXT, cc -E runs the code through the compiler's parser,
9175 # not just through cpp. "Syntax error" is here to catch this case.
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 #ifdef __STDC__
9179 # include <limits.h>
9180 #else
9181 # include <assert.h>
9182 #endif
9183 Syntax error
9184 _ACEOF
9185 if ac_fn_cxx_try_cpp "$LINENO"; then :
9187 else
9188 # Broken: fails on valid input.
9189 continue
9191 rm -f conftest.err conftest.$ac_ext
9193 # OK, works on sane cases. Now check whether nonexistent headers
9194 # can be detected and how.
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <ac_nonexistent.h>
9198 _ACEOF
9199 if ac_fn_cxx_try_cpp "$LINENO"; then :
9200 # Broken: success on invalid input.
9201 continue
9202 else
9203 # Passes both tests.
9204 ac_preproc_ok=:
9205 break
9207 rm -f conftest.err conftest.$ac_ext
9209 done
9210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9211 rm -f conftest.err conftest.$ac_ext
9212 if $ac_preproc_ok; then :
9214 else
9215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9218 See \`config.log' for more details." >&5
9219 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9220 See \`config.log' for more details." >&2;}; }
9223 ac_ext=cpp
9224 ac_cpp='$CXXCPP $CPPFLAGS'
9225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9230 for ac_header in unordered_map
9231 do :
9232 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9233 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_UNORDERED_MAP 1
9236 _ACEOF
9239 done
9241 for ac_header in tr1/unordered_map
9242 do :
9243 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9244 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9245 cat >>confdefs.h <<_ACEOF
9246 #define HAVE_TR1_UNORDERED_MAP 1
9247 _ACEOF
9250 done
9252 for ac_header in ext/hash_map
9253 do :
9254 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9255 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_EXT_HASH_MAP 1
9258 _ACEOF
9261 done
9264 # --------
9265 # Dependency checking.
9266 # --------
9268 rm -rf .tst 2>/dev/null
9269 mkdir .tst 2>/dev/null
9270 if test -d .tst; then
9271 am__leading_dot=.
9272 else
9273 am__leading_dot=_
9275 rmdir .tst 2>/dev/null
9277 DEPDIR="${am__leading_dot}deps"
9279 ac_config_commands="$ac_config_commands depdir"
9282 ac_config_commands="$ac_config_commands gccdepdir"
9285 depcc="$CXX" am_compiler_list=
9287 am_depcomp=$ac_aux_dir/depcomp
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9289 $as_echo_n "checking dependency style of $depcc... " >&6; }
9290 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 if test -f "$am_depcomp"; then
9294 # We make a subdir and do the tests there. Otherwise we can end up
9295 # making bogus files that we don't know about and never remove. For
9296 # instance it was reported that on HP-UX the gcc test will end up
9297 # making a dummy file named `D' -- because `-MD' means `put the output
9298 # in D'.
9299 mkdir conftest.dir
9300 # Copy depcomp to subdir because otherwise we won't find it if we're
9301 # using a relative directory.
9302 cp "$am_depcomp" conftest.dir
9303 cd conftest.dir
9304 # We will build objects and dependencies in a subdirectory because
9305 # it helps to detect inapplicable dependency modes. For instance
9306 # both Tru64's cc and ICC support -MD to output dependencies as a
9307 # side effect of compilation, but ICC will put the dependencies in
9308 # the current directory while Tru64 will put them in the object
9309 # directory.
9310 mkdir sub
9312 am_cv_CXX_dependencies_compiler_type=none
9313 if test "$am_compiler_list" = ""; then
9314 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9316 for depmode in $am_compiler_list; do
9317 if test $depmode = none; then break; fi
9319 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9320 # Setup a source with many dependencies, because some compilers
9321 # like to wrap large dependency lists on column 80 (with \), and
9322 # we should not choose a depcomp mode which is confused by this.
9324 # We need to recreate these files for each test, as the compiler may
9325 # overwrite some of them when testing with obscure command lines.
9326 # This happens at least with the AIX C compiler.
9327 : > sub/conftest.c
9328 for i in 1 2 3 4 5 6; do
9329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9330 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9331 # Solaris 8's {/usr,}/bin/sh.
9332 touch sub/conftst$i.h
9333 done
9334 echo "include sub/conftest.Po" > confmf
9336 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9337 # mode. It turns out that the SunPro C++ compiler does not properly
9338 # handle `-M -o', and we need to detect this.
9339 depcmd="depmode=$depmode \
9340 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9341 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9342 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9343 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9344 if env $depcmd > conftest.err 2>&1 &&
9345 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9346 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9347 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9348 # icc doesn't choke on unknown options, it will just issue warnings
9349 # or remarks (even with -Werror). So we grep stderr for any message
9350 # that says an option was ignored or not supported.
9351 # When given -MP, icc 7.0 and 7.1 complain thusly:
9352 # icc: Command line warning: ignoring option '-M'; no argument required
9353 # The diagnosis changed in icc 8.0:
9354 # icc: Command line remark: option '-MP' not supported
9355 if (grep 'ignoring option' conftest.err ||
9356 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9357 am_cv_CXX_dependencies_compiler_type=$depmode
9358 $as_echo "$as_me:$LINENO: success" >&5
9359 break
9362 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9363 sed -e 's/^/| /' < conftest.err >&5
9364 done
9366 cd ..
9367 rm -rf conftest.dir
9368 else
9369 am_cv_CXX_dependencies_compiler_type=none
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9374 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9375 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9376 then as_fn_error "no usable dependency style found" "$LINENO" 5
9377 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9382 # --------
9383 # UNSORTED
9384 # --------
9387 # These libraries may be used by collect2.
9388 # We may need a special search path to get them linked.
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9390 $as_echo_n "checking for collect2 libraries... " >&6; }
9391 if test "${gcc_cv_collect2_libs+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 save_LIBS="$LIBS"
9395 for libs in '' -lld -lmld \
9396 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9397 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9399 LIBS="$libs"
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9403 /* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9406 #ifdef __cplusplus
9407 extern "C"
9408 #endif
9409 char ldopen ();
9411 main ()
9413 return ldopen ();
9415 return 0;
9417 _ACEOF
9418 if ac_fn_cxx_try_link "$LINENO"; then :
9419 gcc_cv_collect2_libs="$libs"; break
9421 rm -f core conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423 done
9424 LIBS="$save_LIBS"
9425 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9428 $as_echo "$gcc_cv_collect2_libs" >&6; }
9429 case $gcc_cv_collect2_libs in
9430 "none required") ;;
9431 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9432 esac
9435 # When building Ada code on Alpha, we need exc_resume which is usually in
9436 # -lexc. So test for it.
9437 save_LIBS="$LIBS"
9438 LIBS=
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9440 $as_echo_n "checking for library containing exc_resume... " >&6; }
9441 if test "${ac_cv_search_exc_resume+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 ac_func_search_save_LIBS=$LIBS
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 char exc_resume ();
9456 main ()
9458 return exc_resume ();
9460 return 0;
9462 _ACEOF
9463 for ac_lib in '' exc; do
9464 if test -z "$ac_lib"; then
9465 ac_res="none required"
9466 else
9467 ac_res=-l$ac_lib
9468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9470 if ac_fn_cxx_try_link "$LINENO"; then :
9471 ac_cv_search_exc_resume=$ac_res
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext
9475 if test "${ac_cv_search_exc_resume+set}" = set; then :
9476 break
9478 done
9479 if test "${ac_cv_search_exc_resume+set}" = set; then :
9481 else
9482 ac_cv_search_exc_resume=no
9484 rm conftest.$ac_ext
9485 LIBS=$ac_func_search_save_LIBS
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9488 $as_echo "$ac_cv_search_exc_resume" >&6; }
9489 ac_res=$ac_cv_search_exc_resume
9490 if test "$ac_res" != no; then :
9491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9495 GNAT_LIBEXC="$LIBS"
9496 LIBS="$save_LIBS"
9499 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9500 save_LIBS="$LIBS"
9501 LIBS=
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9503 $as_echo_n "checking for library containing kstat_open... " >&6; }
9504 if test "${ac_cv_search_kstat_open+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 ac_func_search_save_LIBS=$LIBS
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char kstat_open ();
9519 main ()
9521 return kstat_open ();
9523 return 0;
9525 _ACEOF
9526 for ac_lib in '' kstat; do
9527 if test -z "$ac_lib"; then
9528 ac_res="none required"
9529 else
9530 ac_res=-l$ac_lib
9531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9533 if ac_fn_cxx_try_link "$LINENO"; then :
9534 ac_cv_search_kstat_open=$ac_res
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext
9538 if test "${ac_cv_search_kstat_open+set}" = set; then :
9539 break
9541 done
9542 if test "${ac_cv_search_kstat_open+set}" = set; then :
9544 else
9545 ac_cv_search_kstat_open=no
9547 rm conftest.$ac_ext
9548 LIBS=$ac_func_search_save_LIBS
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9551 $as_echo "$ac_cv_search_kstat_open" >&6; }
9552 ac_res=$ac_cv_search_kstat_open
9553 if test "$ac_res" != no; then :
9554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9558 EXTRA_GCC_LIBS="$LIBS"
9559 LIBS="$save_LIBS"
9562 # Some systems put ldexp and frexp in libm instead of libc; assume
9563 # they're both in the same place. jcf-dump needs them.
9564 save_LIBS="$LIBS"
9565 LIBS=
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9567 $as_echo_n "checking for library containing ldexp... " >&6; }
9568 if test "${ac_cv_search_ldexp+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571 ac_func_search_save_LIBS=$LIBS
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char ldexp ();
9583 main ()
9585 return ldexp ();
9587 return 0;
9589 _ACEOF
9590 for ac_lib in '' m; do
9591 if test -z "$ac_lib"; then
9592 ac_res="none required"
9593 else
9594 ac_res=-l$ac_lib
9595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9597 if ac_fn_cxx_try_link "$LINENO"; then :
9598 ac_cv_search_ldexp=$ac_res
9600 rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext
9602 if test "${ac_cv_search_ldexp+set}" = set; then :
9603 break
9605 done
9606 if test "${ac_cv_search_ldexp+set}" = set; then :
9608 else
9609 ac_cv_search_ldexp=no
9611 rm conftest.$ac_ext
9612 LIBS=$ac_func_search_save_LIBS
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9615 $as_echo "$ac_cv_search_ldexp" >&6; }
9616 ac_res=$ac_cv_search_ldexp
9617 if test "$ac_res" != no; then :
9618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9622 LDEXP_LIB="$LIBS"
9623 LIBS="$save_LIBS"
9626 # Use <inttypes.h> only if it exists,
9627 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9628 # PRId64
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9630 $as_echo_n "checking for inttypes.h... " >&6; }
9631 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 #define __STDC_FORMAT_MACROS
9637 #include <sys/types.h>
9638 #include <inttypes.h>
9640 main ()
9642 intmax_t i = -1;
9643 #ifndef PRId64
9644 choke me
9645 #endif
9647 return 0;
9649 _ACEOF
9650 if ac_fn_cxx_try_compile "$LINENO"; then :
9651 gcc_cv_header_inttypes_h=yes
9652 else
9653 gcc_cv_header_inttypes_h=no
9655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9659 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9660 if test $gcc_cv_header_inttypes_h = yes; then
9662 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9668 for ac_func in times clock kill getrlimit setrlimit atoq \
9669 popen sysconf strsignal getrusage nl_langinfo \
9670 gettimeofday mbstowcs wcswidth mmap setlocale \
9671 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
9672 do :
9673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9674 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9675 eval as_val=\$$as_ac_var
9676 if test "x$as_val" = x""yes; then :
9677 cat >>confdefs.h <<_ACEOF
9678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9679 _ACEOF
9682 done
9685 if test x$ac_cv_func_mbstowcs = xyes; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9687 $as_echo_n "checking whether mbstowcs works... " >&6; }
9688 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 if test "$cross_compiling" = yes; then :
9692 gcc_cv_func_mbstowcs_works=yes
9693 else
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9696 #include <stdlib.h>
9697 int main()
9699 mbstowcs(0, "", 0);
9700 return 0;
9702 _ACEOF
9703 if ac_fn_cxx_try_run "$LINENO"; then :
9704 gcc_cv_func_mbstowcs_works=yes
9705 else
9706 gcc_cv_func_mbstowcs_works=no
9708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9709 conftest.$ac_objext conftest.beam conftest.$ac_ext
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9714 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9715 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9717 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9722 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9723 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9725 else
9727 cat >>confdefs.h <<_ACEOF
9728 #define ssize_t int
9729 _ACEOF
9733 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9734 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9736 else
9738 cat >>confdefs.h <<_ACEOF
9739 #define caddr_t char *
9740 _ACEOF
9746 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9747 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9748 gcc_header_sys_mman_h=yes
9749 else
9750 gcc_header_sys_mman_h=no
9753 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9754 if test "x$ac_cv_func_mmap" = x""yes; then :
9755 gcc_func_mmap=yes
9756 else
9757 gcc_func_mmap=no
9760 if test "$gcc_header_sys_mman_h" != yes \
9761 || test "$gcc_func_mmap" != yes; then
9762 gcc_cv_func_mmap_file=no
9763 gcc_cv_func_mmap_dev_zero=no
9764 gcc_cv_func_mmap_anon=no
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9767 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9768 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 # Add a system to this blacklist if
9772 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9773 # memory area containing the same data that you'd get if you applied
9774 # read() to the same fd. The only system known to have a problem here
9775 # is VMS, where text files have record structure.
9776 case "$host_os" in
9777 *vms* | ultrix*)
9778 gcc_cv_func_mmap_file=no ;;
9780 gcc_cv_func_mmap_file=yes;;
9781 esac
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9784 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9786 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9787 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 # Add a system to this blacklist if it has mmap() but /dev/zero
9791 # does not exist, or if mmapping /dev/zero does not give anonymous
9792 # zeroed pages with both the following properties:
9793 # 1. If you map N consecutive pages in with one call, and then
9794 # unmap any subset of those pages, the pages that were not
9795 # explicitly unmapped remain accessible.
9796 # 2. If you map two adjacent blocks of memory and then unmap them
9797 # both at once, they must both go away.
9798 # Systems known to be in this category are Windows (all variants),
9799 # VMS, and Darwin.
9800 case "$host_os" in
9801 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9802 gcc_cv_func_mmap_dev_zero=no ;;
9804 gcc_cv_func_mmap_dev_zero=yes;;
9805 esac
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9808 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9810 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9812 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9813 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 #include <sys/types.h>
9819 #include <sys/mman.h>
9820 #include <unistd.h>
9822 #ifndef MAP_ANONYMOUS
9823 #define MAP_ANONYMOUS MAP_ANON
9824 #endif
9827 main ()
9829 int n = MAP_ANONYMOUS;
9831 return 0;
9833 _ACEOF
9834 if ac_fn_cxx_try_compile "$LINENO"; then :
9835 gcc_cv_decl_map_anon=yes
9836 else
9837 gcc_cv_decl_map_anon=no
9839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9842 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9844 if test $gcc_cv_decl_map_anon = no; then
9845 gcc_cv_func_mmap_anon=no
9846 else
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9848 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9849 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9853 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9854 # doesn't give anonymous zeroed pages with the same properties listed
9855 # above for use of /dev/zero.
9856 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9857 case "$host_os" in
9858 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9859 gcc_cv_func_mmap_anon=no ;;
9861 gcc_cv_func_mmap_anon=yes;;
9862 esac
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9865 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9869 if test $gcc_cv_func_mmap_file = yes; then
9871 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9874 if test $gcc_cv_func_mmap_dev_zero = yes; then
9876 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9879 if test $gcc_cv_func_mmap_anon = yes; then
9881 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9886 case "${host}" in
9887 *-*-*vms*)
9888 # Under VMS, vfork works very differently than on Unix. The standard test
9889 # won't work, and it isn't easily adaptable. It makes more sense to
9890 # just force it.
9891 ac_cv_func_vfork_works=yes
9893 esac
9894 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9895 if test "x$ac_cv_type_pid_t" = x""yes; then :
9897 else
9899 cat >>confdefs.h <<_ACEOF
9900 #define pid_t int
9901 _ACEOF
9905 for ac_header in vfork.h
9906 do :
9907 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9908 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_VFORK_H 1
9911 _ACEOF
9914 done
9916 for ac_func in fork vfork
9917 do :
9918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9919 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9920 eval as_val=\$$as_ac_var
9921 if test "x$as_val" = x""yes; then :
9922 cat >>confdefs.h <<_ACEOF
9923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9924 _ACEOF
9927 done
9929 if test "x$ac_cv_func_fork" = xyes; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9931 $as_echo_n "checking for working fork... " >&6; }
9932 if test "${ac_cv_func_fork_works+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 if test "$cross_compiling" = yes; then :
9936 ac_cv_func_fork_works=cross
9937 else
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 $ac_includes_default
9942 main ()
9945 /* By Ruediger Kuhlmann. */
9946 return fork () < 0;
9949 return 0;
9951 _ACEOF
9952 if ac_fn_cxx_try_run "$LINENO"; then :
9953 ac_cv_func_fork_works=yes
9954 else
9955 ac_cv_func_fork_works=no
9957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9958 conftest.$ac_objext conftest.beam conftest.$ac_ext
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9963 $as_echo "$ac_cv_func_fork_works" >&6; }
9965 else
9966 ac_cv_func_fork_works=$ac_cv_func_fork
9968 if test "x$ac_cv_func_fork_works" = xcross; then
9969 case $host in
9970 *-*-amigaos* | *-*-msdosdjgpp*)
9971 # Override, as these systems have only a dummy fork() stub
9972 ac_cv_func_fork_works=no
9975 ac_cv_func_fork_works=yes
9977 esac
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9979 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9981 ac_cv_func_vfork_works=$ac_cv_func_vfork
9982 if test "x$ac_cv_func_vfork" = xyes; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9984 $as_echo_n "checking for working vfork... " >&6; }
9985 if test "${ac_cv_func_vfork_works+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 if test "$cross_compiling" = yes; then :
9989 ac_cv_func_vfork_works=cross
9990 else
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 /* Thanks to Paul Eggert for this test. */
9994 $ac_includes_default
9995 #include <sys/wait.h>
9996 #ifdef HAVE_VFORK_H
9997 # include <vfork.h>
9998 #endif
9999 /* On some sparc systems, changes by the child to local and incoming
10000 argument registers are propagated back to the parent. The compiler
10001 is told about this with #include <vfork.h>, but some compilers
10002 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10003 static variable whose address is put into a register that is
10004 clobbered by the vfork. */
10005 static void
10006 #ifdef __cplusplus
10007 sparc_address_test (int arg)
10008 # else
10009 sparc_address_test (arg) int arg;
10010 #endif
10012 static pid_t child;
10013 if (!child) {
10014 child = vfork ();
10015 if (child < 0) {
10016 perror ("vfork");
10017 _exit(2);
10019 if (!child) {
10020 arg = getpid();
10021 write(-1, "", 0);
10022 _exit (arg);
10028 main ()
10030 pid_t parent = getpid ();
10031 pid_t child;
10033 sparc_address_test (0);
10035 child = vfork ();
10037 if (child == 0) {
10038 /* Here is another test for sparc vfork register problems. This
10039 test uses lots of local variables, at least as many local
10040 variables as main has allocated so far including compiler
10041 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10042 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10043 reuse the register of parent for one of the local variables,
10044 since it will think that parent can't possibly be used any more
10045 in this routine. Assigning to the local variable will thus
10046 munge parent in the parent process. */
10047 pid_t
10048 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10049 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10050 /* Convince the compiler that p..p7 are live; otherwise, it might
10051 use the same hardware register for all 8 local variables. */
10052 if (p != p1 || p != p2 || p != p3 || p != p4
10053 || p != p5 || p != p6 || p != p7)
10054 _exit(1);
10056 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10057 from child file descriptors. If the child closes a descriptor
10058 before it execs or exits, this munges the parent's descriptor
10059 as well. Test for this by closing stdout in the child. */
10060 _exit(close(fileno(stdout)) != 0);
10061 } else {
10062 int status;
10063 struct stat st;
10065 while (wait(&status) != child)
10067 return (
10068 /* Was there some problem with vforking? */
10069 child < 0
10071 /* Did the child fail? (This shouldn't happen.) */
10072 || status
10074 /* Did the vfork/compiler bug occur? */
10075 || parent != getpid()
10077 /* Did the file descriptor bug occur? */
10078 || fstat(fileno(stdout), &st) != 0
10082 _ACEOF
10083 if ac_fn_cxx_try_run "$LINENO"; then :
10084 ac_cv_func_vfork_works=yes
10085 else
10086 ac_cv_func_vfork_works=no
10088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10089 conftest.$ac_objext conftest.beam conftest.$ac_ext
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10094 $as_echo "$ac_cv_func_vfork_works" >&6; }
10097 if test "x$ac_cv_func_fork_works" = xcross; then
10098 ac_cv_func_vfork_works=$ac_cv_func_vfork
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10100 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10103 if test "x$ac_cv_func_vfork_works" = xyes; then
10105 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10107 else
10109 $as_echo "#define vfork fork" >>confdefs.h
10112 if test "x$ac_cv_func_fork_works" = xyes; then
10114 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10120 if test "X$prefix" = "XNONE"; then
10121 acl_final_prefix="$ac_default_prefix"
10122 else
10123 acl_final_prefix="$prefix"
10125 if test "X$exec_prefix" = "XNONE"; then
10126 acl_final_exec_prefix='${prefix}'
10127 else
10128 acl_final_exec_prefix="$exec_prefix"
10130 acl_save_prefix="$prefix"
10131 prefix="$acl_final_prefix"
10132 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10133 prefix="$acl_save_prefix"
10136 # Check whether --with-gnu-ld was given.
10137 if test "${with_gnu_ld+set}" = set; then :
10138 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10139 else
10140 with_gnu_ld=no
10143 # Prepare PATH_SEPARATOR.
10144 # The user is always right.
10145 if test "${PATH_SEPARATOR+set}" != set; then
10146 echo "#! /bin/sh" >conf$$.sh
10147 echo "exit 0" >>conf$$.sh
10148 chmod +x conf$$.sh
10149 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10150 PATH_SEPARATOR=';'
10151 else
10152 PATH_SEPARATOR=:
10154 rm -f conf$$.sh
10156 ac_prog=ld
10157 if test "$GCC" = yes; then
10158 # Check if gcc -print-prog-name=ld gives a path.
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10160 $as_echo_n "checking for ld used by GCC... " >&6; }
10161 case $host in
10162 *-*-mingw*)
10163 # gcc leaves a trailing carriage return which upsets mingw
10164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10167 esac
10168 case $ac_prog in
10169 # Accept absolute paths.
10170 [\\/]* | [A-Za-z]:[\\/]*)
10171 re_direlt='/[^/][^/]*/\.\./'
10172 # Canonicalize the path of ld
10173 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10174 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10175 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10176 done
10177 test -z "$LD" && LD="$ac_prog"
10180 # If it fails, then pretend we aren't using GCC.
10181 ac_prog=ld
10184 # If it is relative, then search for the first ld in PATH.
10185 with_gnu_ld=unknown
10187 esac
10188 elif test "$with_gnu_ld" = yes; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10190 $as_echo_n "checking for GNU ld... " >&6; }
10191 else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10193 $as_echo_n "checking for non-GNU ld... " >&6; }
10195 if test "${acl_cv_path_LD+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 if test -z "$LD"; then
10199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10200 for ac_dir in $PATH; do
10201 test -z "$ac_dir" && ac_dir=.
10202 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10203 acl_cv_path_LD="$ac_dir/$ac_prog"
10204 # Check to see if the program is GNU ld. I'd rather use --version,
10205 # but apparently some GNU ld's only accept -v.
10206 # Break only if it was the GNU/non-GNU ld that we prefer.
10207 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10208 test "$with_gnu_ld" != no && break
10209 else
10210 test "$with_gnu_ld" != yes && break
10213 done
10214 IFS="$ac_save_ifs"
10215 else
10216 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10220 LD="$acl_cv_path_LD"
10221 if test -n "$LD"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10223 $as_echo "$LD" >&6; }
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10228 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10231 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10235 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10236 acl_cv_prog_gnu_ld=yes
10237 else
10238 acl_cv_prog_gnu_ld=no
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10242 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10243 with_gnu_ld=$acl_cv_prog_gnu_ld
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10248 $as_echo_n "checking for shared library run path origin... " >&6; }
10249 if test "${acl_cv_rpath+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10253 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10254 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10255 . ./conftest.sh
10256 rm -f ./conftest.sh
10257 acl_cv_rpath=done
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10261 $as_echo "$acl_cv_rpath" >&6; }
10262 wl="$acl_cv_wl"
10263 libext="$acl_cv_libext"
10264 shlibext="$acl_cv_shlibext"
10265 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10266 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10267 hardcode_direct="$acl_cv_hardcode_direct"
10268 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10269 # Check whether --enable-rpath was given.
10270 if test "${enable_rpath+set}" = set; then :
10271 enableval=$enable_rpath; :
10272 else
10273 enable_rpath=yes
10283 use_additional=yes
10285 acl_save_prefix="$prefix"
10286 prefix="$acl_final_prefix"
10287 acl_save_exec_prefix="$exec_prefix"
10288 exec_prefix="$acl_final_exec_prefix"
10290 eval additional_includedir=\"$includedir\"
10291 eval additional_libdir=\"$libdir\"
10293 exec_prefix="$acl_save_exec_prefix"
10294 prefix="$acl_save_prefix"
10297 # Check whether --with-libiconv-prefix was given.
10298 if test "${with_libiconv_prefix+set}" = set; then :
10299 withval=$with_libiconv_prefix;
10300 if test "X$withval" = "Xno"; then
10301 use_additional=no
10302 else
10303 if test "X$withval" = "X"; then
10305 acl_save_prefix="$prefix"
10306 prefix="$acl_final_prefix"
10307 acl_save_exec_prefix="$exec_prefix"
10308 exec_prefix="$acl_final_exec_prefix"
10310 eval additional_includedir=\"$includedir\"
10311 eval additional_libdir=\"$libdir\"
10313 exec_prefix="$acl_save_exec_prefix"
10314 prefix="$acl_save_prefix"
10316 else
10317 additional_includedir="$withval/include"
10318 additional_libdir="$withval/lib"
10324 LIBICONV=
10325 LTLIBICONV=
10326 INCICONV=
10327 rpathdirs=
10328 ltrpathdirs=
10329 names_already_handled=
10330 names_next_round='iconv '
10331 while test -n "$names_next_round"; do
10332 names_this_round="$names_next_round"
10333 names_next_round=
10334 for name in $names_this_round; do
10335 already_handled=
10336 for n in $names_already_handled; do
10337 if test "$n" = "$name"; then
10338 already_handled=yes
10339 break
10341 done
10342 if test -z "$already_handled"; then
10343 names_already_handled="$names_already_handled $name"
10344 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10345 eval value=\"\$HAVE_LIB$uppername\"
10346 if test -n "$value"; then
10347 if test "$value" = yes; then
10348 eval value=\"\$LIB$uppername\"
10349 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10350 eval value=\"\$LTLIB$uppername\"
10351 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10352 else
10355 else
10356 found_dir=
10357 found_la=
10358 found_so=
10359 found_a=
10360 if test $use_additional = yes; then
10361 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10362 found_dir="$additional_libdir"
10363 found_so="$additional_libdir/lib$name.$shlibext"
10364 if test -f "$additional_libdir/lib$name.la"; then
10365 found_la="$additional_libdir/lib$name.la"
10367 else
10368 if test -f "$additional_libdir/lib$name.$libext"; then
10369 found_dir="$additional_libdir"
10370 found_a="$additional_libdir/lib$name.$libext"
10371 if test -f "$additional_libdir/lib$name.la"; then
10372 found_la="$additional_libdir/lib$name.la"
10377 if test "X$found_dir" = "X"; then
10378 for x in $LDFLAGS $LTLIBICONV; do
10380 acl_save_prefix="$prefix"
10381 prefix="$acl_final_prefix"
10382 acl_save_exec_prefix="$exec_prefix"
10383 exec_prefix="$acl_final_exec_prefix"
10384 eval x=\"$x\"
10385 exec_prefix="$acl_save_exec_prefix"
10386 prefix="$acl_save_prefix"
10388 case "$x" in
10389 -L*)
10390 dir=`echo "X$x" | sed -e 's/^X-L//'`
10391 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10392 found_dir="$dir"
10393 found_so="$dir/lib$name.$shlibext"
10394 if test -f "$dir/lib$name.la"; then
10395 found_la="$dir/lib$name.la"
10397 else
10398 if test -f "$dir/lib$name.$libext"; then
10399 found_dir="$dir"
10400 found_a="$dir/lib$name.$libext"
10401 if test -f "$dir/lib$name.la"; then
10402 found_la="$dir/lib$name.la"
10407 esac
10408 if test "X$found_dir" != "X"; then
10409 break
10411 done
10413 if test "X$found_dir" != "X"; then
10414 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10415 if test "X$found_so" != "X"; then
10416 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10418 else
10419 haveit=
10420 for x in $ltrpathdirs; do
10421 if test "X$x" = "X$found_dir"; then
10422 haveit=yes
10423 break
10425 done
10426 if test -z "$haveit"; then
10427 ltrpathdirs="$ltrpathdirs $found_dir"
10429 if test "$hardcode_direct" = yes; then
10430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10431 else
10432 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10434 haveit=
10435 for x in $rpathdirs; do
10436 if test "X$x" = "X$found_dir"; then
10437 haveit=yes
10438 break
10440 done
10441 if test -z "$haveit"; then
10442 rpathdirs="$rpathdirs $found_dir"
10444 else
10445 haveit=
10446 for x in $LDFLAGS $LIBICONV; do
10448 acl_save_prefix="$prefix"
10449 prefix="$acl_final_prefix"
10450 acl_save_exec_prefix="$exec_prefix"
10451 exec_prefix="$acl_final_exec_prefix"
10452 eval x=\"$x\"
10453 exec_prefix="$acl_save_exec_prefix"
10454 prefix="$acl_save_prefix"
10456 if test "X$x" = "X-L$found_dir"; then
10457 haveit=yes
10458 break
10460 done
10461 if test -z "$haveit"; then
10462 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10464 if test "$hardcode_minus_L" != no; then
10465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10466 else
10467 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10472 else
10473 if test "X$found_a" != "X"; then
10474 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10475 else
10476 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10479 additional_includedir=
10480 case "$found_dir" in
10481 */lib | */lib/)
10482 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10483 additional_includedir="$basedir/include"
10485 esac
10486 if test "X$additional_includedir" != "X"; then
10487 if test "X$additional_includedir" != "X/usr/include"; then
10488 haveit=
10489 if test "X$additional_includedir" = "X/usr/local/include"; then
10490 if test -n "$GCC"; then
10491 case $host_os in
10492 linux*) haveit=yes;;
10493 esac
10496 if test -z "$haveit"; then
10497 for x in $CPPFLAGS $INCICONV; do
10499 acl_save_prefix="$prefix"
10500 prefix="$acl_final_prefix"
10501 acl_save_exec_prefix="$exec_prefix"
10502 exec_prefix="$acl_final_exec_prefix"
10503 eval x=\"$x\"
10504 exec_prefix="$acl_save_exec_prefix"
10505 prefix="$acl_save_prefix"
10507 if test "X$x" = "X-I$additional_includedir"; then
10508 haveit=yes
10509 break
10511 done
10512 if test -z "$haveit"; then
10513 if test -d "$additional_includedir"; then
10514 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10520 if test -n "$found_la"; then
10521 save_libdir="$libdir"
10522 case "$found_la" in
10523 */* | *\\*) . "$found_la" ;;
10524 *) . "./$found_la" ;;
10525 esac
10526 libdir="$save_libdir"
10527 for dep in $dependency_libs; do
10528 case "$dep" in
10529 -L*)
10530 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10531 if test "X$additional_libdir" != "X/usr/lib"; then
10532 haveit=
10533 if test "X$additional_libdir" = "X/usr/local/lib"; then
10534 if test -n "$GCC"; then
10535 case $host_os in
10536 linux*) haveit=yes;;
10537 esac
10540 if test -z "$haveit"; then
10541 haveit=
10542 for x in $LDFLAGS $LIBICONV; do
10544 acl_save_prefix="$prefix"
10545 prefix="$acl_final_prefix"
10546 acl_save_exec_prefix="$exec_prefix"
10547 exec_prefix="$acl_final_exec_prefix"
10548 eval x=\"$x\"
10549 exec_prefix="$acl_save_exec_prefix"
10550 prefix="$acl_save_prefix"
10552 if test "X$x" = "X-L$additional_libdir"; then
10553 haveit=yes
10554 break
10556 done
10557 if test -z "$haveit"; then
10558 if test -d "$additional_libdir"; then
10559 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10562 haveit=
10563 for x in $LDFLAGS $LTLIBICONV; do
10565 acl_save_prefix="$prefix"
10566 prefix="$acl_final_prefix"
10567 acl_save_exec_prefix="$exec_prefix"
10568 exec_prefix="$acl_final_exec_prefix"
10569 eval x=\"$x\"
10570 exec_prefix="$acl_save_exec_prefix"
10571 prefix="$acl_save_prefix"
10573 if test "X$x" = "X-L$additional_libdir"; then
10574 haveit=yes
10575 break
10577 done
10578 if test -z "$haveit"; then
10579 if test -d "$additional_libdir"; then
10580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10586 -R*)
10587 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10588 if test "$enable_rpath" != no; then
10589 haveit=
10590 for x in $rpathdirs; do
10591 if test "X$x" = "X$dir"; then
10592 haveit=yes
10593 break
10595 done
10596 if test -z "$haveit"; then
10597 rpathdirs="$rpathdirs $dir"
10599 haveit=
10600 for x in $ltrpathdirs; do
10601 if test "X$x" = "X$dir"; then
10602 haveit=yes
10603 break
10605 done
10606 if test -z "$haveit"; then
10607 ltrpathdirs="$ltrpathdirs $dir"
10611 -l*)
10612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10614 *.la)
10615 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10618 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10619 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10621 esac
10622 done
10624 else
10625 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10626 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10630 done
10631 done
10632 if test "X$rpathdirs" != "X"; then
10633 if test -n "$hardcode_libdir_separator"; then
10634 alldirs=
10635 for found_dir in $rpathdirs; do
10636 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10637 done
10638 acl_save_libdir="$libdir"
10639 libdir="$alldirs"
10640 eval flag=\"$hardcode_libdir_flag_spec\"
10641 libdir="$acl_save_libdir"
10642 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10643 else
10644 for found_dir in $rpathdirs; do
10645 acl_save_libdir="$libdir"
10646 libdir="$found_dir"
10647 eval flag=\"$hardcode_libdir_flag_spec\"
10648 libdir="$acl_save_libdir"
10649 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10650 done
10653 if test "X$ltrpathdirs" != "X"; then
10654 for found_dir in $ltrpathdirs; do
10655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10656 done
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10666 $as_echo_n "checking for iconv... " >&6; }
10667 if test "${am_cv_func_iconv+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10671 am_cv_func_iconv="no, consider installing GNU libiconv"
10672 am_cv_lib_iconv=no
10673 am_save_CPPFLAGS="$CPPFLAGS"
10674 CPPFLAGS="$CPPFLAGS $INCICONV"
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #include <stdlib.h>
10678 #include <iconv.h>
10680 main ()
10682 iconv_t cd = iconv_open("","");
10683 iconv(cd,NULL,NULL,NULL,NULL);
10684 iconv_close(cd);
10686 return 0;
10688 _ACEOF
10689 if ac_fn_cxx_try_link "$LINENO"; then :
10690 am_cv_func_iconv=yes
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 CPPFLAGS="$am_save_CPPFLAGS"
10696 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10697 for _libs in .libs _libs; do
10698 am_save_CPPFLAGS="$CPPFLAGS"
10699 am_save_LIBS="$LIBS"
10700 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10701 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 #include <stdlib.h>
10705 #include <iconv.h>
10707 main ()
10709 iconv_t cd = iconv_open("","");
10710 iconv(cd,NULL,NULL,NULL,NULL);
10711 iconv_close(cd);
10713 return 0;
10715 _ACEOF
10716 if ac_fn_cxx_try_link "$LINENO"; then :
10717 INCICONV="-I../libiconv/include"
10718 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10719 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10720 am_cv_lib_iconv=yes
10721 am_cv_func_iconv=yes
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 CPPFLAGS="$am_save_CPPFLAGS"
10726 LIBS="$am_save_LIBS"
10727 if test "$am_cv_func_iconv" = "yes"; then
10728 break
10730 done
10733 if test "$am_cv_func_iconv" != yes; then
10734 am_save_CPPFLAGS="$CPPFLAGS"
10735 am_save_LIBS="$LIBS"
10736 CPPFLAGS="$LIBS $INCICONV"
10737 LIBS="$LIBS $LIBICONV"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <stdlib.h>
10741 #include <iconv.h>
10743 main ()
10745 iconv_t cd = iconv_open("","");
10746 iconv(cd,NULL,NULL,NULL,NULL);
10747 iconv_close(cd);
10749 return 0;
10751 _ACEOF
10752 if ac_fn_cxx_try_link "$LINENO"; then :
10753 am_cv_lib_iconv=yes
10754 am_cv_func_iconv=yes
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 CPPFLAGS="$am_save_CPPFLAGS"
10759 LIBS="$am_save_LIBS"
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10764 $as_echo "$am_cv_func_iconv" >&6; }
10765 if test "$am_cv_func_iconv" = yes; then
10767 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10770 if test "$am_cv_lib_iconv" = yes; then
10772 for element in $INCICONV; do
10773 haveit=
10774 for x in $CPPFLAGS; do
10776 acl_save_prefix="$prefix"
10777 prefix="$acl_final_prefix"
10778 acl_save_exec_prefix="$exec_prefix"
10779 exec_prefix="$acl_final_exec_prefix"
10780 eval x=\"$x\"
10781 exec_prefix="$acl_save_exec_prefix"
10782 prefix="$acl_save_prefix"
10784 if test "X$x" = "X$element"; then
10785 haveit=yes
10786 break
10788 done
10789 if test -z "$haveit"; then
10790 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10792 done
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10795 $as_echo_n "checking how to link with libiconv... " >&6; }
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10797 $as_echo "$LIBICONV" >&6; }
10798 else
10799 LIBICONV=
10800 LTLIBICONV=
10805 if test "$am_cv_func_iconv" = yes; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10807 $as_echo_n "checking for iconv declaration... " >&6; }
10808 if test "${am_cv_proto_iconv+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10815 #include <stdlib.h>
10816 #include <iconv.h>
10817 extern
10818 #ifdef __cplusplus
10820 #endif
10821 #if defined(__STDC__) || defined(__cplusplus)
10822 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10823 #else
10824 size_t iconv();
10825 #endif
10828 main ()
10832 return 0;
10834 _ACEOF
10835 if ac_fn_cxx_try_compile "$LINENO"; then :
10836 am_cv_proto_iconv_arg1=""
10837 else
10838 am_cv_proto_iconv_arg1="const"
10840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10841 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);"
10844 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10846 }$am_cv_proto_iconv" >&5
10847 $as_echo "${ac_t:-
10848 }$am_cv_proto_iconv" >&6; }
10850 cat >>confdefs.h <<_ACEOF
10851 #define ICONV_CONST $am_cv_proto_iconv_arg1
10852 _ACEOF
10857 # Until we have in-tree GNU iconv:
10858 LIBICONV_DEP=
10859 if test -f "$LTLIBICONV"; then
10860 LIBICONV_DEP=$LTLIBICONV
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10866 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10867 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 #include <locale.h>
10874 main ()
10876 return LC_MESSAGES
10878 return 0;
10880 _ACEOF
10881 if ac_fn_cxx_try_link "$LINENO"; then :
10882 am_cv_val_LC_MESSAGES=yes
10883 else
10884 am_cv_val_LC_MESSAGES=no
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10890 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10891 if test $am_cv_val_LC_MESSAGES = yes; then
10893 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10900 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10901 if test "${am_cv_langinfo_codeset+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 #include <langinfo.h>
10908 main ()
10910 char* cs = nl_langinfo(CODESET);
10912 return 0;
10914 _ACEOF
10915 if ac_fn_cxx_try_link "$LINENO"; then :
10916 am_cv_langinfo_codeset=yes
10917 else
10918 am_cv_langinfo_codeset=no
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10925 $as_echo "$am_cv_langinfo_codeset" >&6; }
10926 if test $am_cv_langinfo_codeset = yes; then
10928 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10933 # We will need to find libiberty.h and ansidecl.h
10934 saved_CFLAGS="$CFLAGS"
10935 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10936 saved_CXXFLAGS="$CXXFLAGS"
10937 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10939 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10940 # normal autoconf function for these. But force definition of
10941 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10942 # basename handling in libiberty.h.
10943 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10944 #undef HAVE_DECL_BASENAME
10945 #define HAVE_DECL_BASENAME 1
10946 #include \"ansidecl.h\"
10947 #include \"system.h\"
10949 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10950 ac_have_decl=1
10951 else
10952 ac_have_decl=0
10955 cat >>confdefs.h <<_ACEOF
10956 #define HAVE_DECL_BASENAME $ac_have_decl
10957 _ACEOF
10958 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10959 #undef HAVE_DECL_BASENAME
10960 #define HAVE_DECL_BASENAME 1
10961 #include \"ansidecl.h\"
10962 #include \"system.h\"
10964 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10965 ac_have_decl=1
10966 else
10967 ac_have_decl=0
10970 cat >>confdefs.h <<_ACEOF
10971 #define HAVE_DECL_STRSTR $ac_have_decl
10972 _ACEOF
10975 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10976 madvise stpcpy strnlen strsignal strverscmp \
10977 strtol strtoul strtoll strtoull setenv unsetenv \
10978 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10979 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
10981 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10983 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10984 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989 #undef $ac_tr_decl
10990 #define $ac_tr_decl 1
10992 #include "ansidecl.h"
10993 #include "system.h"
10996 main ()
10998 #ifndef $ac_func
10999 char *(*pfn) = (char *(*)) $ac_func ;
11000 #endif
11002 return 0;
11004 _ACEOF
11005 if ac_fn_cxx_try_compile "$LINENO"; then :
11006 eval "gcc_cv_have_decl_$ac_func=yes"
11007 else
11008 eval "gcc_cv_have_decl_$ac_func=no"
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11016 #define $ac_tr_decl 1
11017 _ACEOF
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11022 #define $ac_tr_decl 0
11023 _ACEOF
11027 done
11030 for ac_func in getrlimit setrlimit getrusage
11032 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11034 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11035 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040 #undef $ac_tr_decl
11041 #define $ac_tr_decl 1
11043 #include "ansidecl.h"
11044 #include "system.h"
11045 #ifdef HAVE_SYS_RESOURCE_H
11046 #include <sys/resource.h>
11047 #endif
11051 main ()
11053 #ifndef $ac_func
11054 char *(*pfn) = (char *(*)) $ac_func ;
11055 #endif
11057 return 0;
11059 _ACEOF
11060 if ac_fn_cxx_try_compile "$LINENO"; then :
11061 eval "gcc_cv_have_decl_$ac_func=yes"
11062 else
11063 eval "gcc_cv_have_decl_$ac_func=no"
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11071 #define $ac_tr_decl 1
11072 _ACEOF
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11077 #define $ac_tr_decl 0
11078 _ACEOF
11082 done
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11088 #include "ansidecl.h"
11089 #include "system.h"
11090 #ifdef HAVE_SYS_RESOURCE_H
11091 #include <sys/resource.h>
11092 #endif
11095 main ()
11097 rlim_t l = 0;
11099 return 0;
11101 _ACEOF
11102 if ac_fn_cxx_try_compile "$LINENO"; then :
11104 else
11106 $as_echo "#define rlim_t long" >>confdefs.h
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11112 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11113 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11114 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11115 for ac_func in ldgetname
11117 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11119 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11120 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* end confdefs.h. */
11125 #undef $ac_tr_decl
11126 #define $ac_tr_decl 1
11128 #include "ansidecl.h"
11129 #include "system.h"
11130 #ifdef HAVE_LDFCN_H
11131 #undef FREAD
11132 #undef FWRITE
11133 #include <ldfcn.h>
11134 #endif
11138 main ()
11140 #ifndef $ac_func
11141 char *(*pfn) = (char *(*)) $ac_func ;
11142 #endif
11144 return 0;
11146 _ACEOF
11147 if ac_fn_cxx_try_compile "$LINENO"; then :
11148 eval "gcc_cv_have_decl_$ac_func=yes"
11149 else
11150 eval "gcc_cv_have_decl_$ac_func=no"
11152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11157 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11158 #define $ac_tr_decl 1
11159 _ACEOF
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11164 #define $ac_tr_decl 0
11165 _ACEOF
11169 done
11172 for ac_func in times
11174 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11176 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11177 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182 #undef $ac_tr_decl
11183 #define $ac_tr_decl 1
11185 #include "ansidecl.h"
11186 #include "system.h"
11187 #ifdef HAVE_SYS_TIMES_H
11188 #include <sys/times.h>
11189 #endif
11193 main ()
11195 #ifndef $ac_func
11196 char *(*pfn) = (char *(*)) $ac_func ;
11197 #endif
11199 return 0;
11201 _ACEOF
11202 if ac_fn_cxx_try_compile "$LINENO"; then :
11203 eval "gcc_cv_have_decl_$ac_func=yes"
11204 else
11205 eval "gcc_cv_have_decl_$ac_func=no"
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11213 #define $ac_tr_decl 1
11214 _ACEOF
11216 else
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11219 #define $ac_tr_decl 0
11220 _ACEOF
11224 done
11227 for ac_func in sigaltstack
11229 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11231 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11232 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 #undef $ac_tr_decl
11238 #define $ac_tr_decl 1
11240 #include "ansidecl.h"
11241 #include "system.h"
11242 #include <signal.h>
11246 main ()
11248 #ifndef $ac_func
11249 char *(*pfn) = (char *(*)) $ac_func ;
11250 #endif
11252 return 0;
11254 _ACEOF
11255 if ac_fn_cxx_try_compile "$LINENO"; then :
11256 eval "gcc_cv_have_decl_$ac_func=yes"
11257 else
11258 eval "gcc_cv_have_decl_$ac_func=no"
11260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11265 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11266 #define $ac_tr_decl 1
11267 _ACEOF
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11272 #define $ac_tr_decl 0
11273 _ACEOF
11277 done
11280 # More time-related stuff.
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11282 $as_echo_n "checking for struct tms... " >&6; }
11283 if test "${ac_cv_struct_tms+set}" = set; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 #include "ansidecl.h"
11291 #include "system.h"
11292 #ifdef HAVE_SYS_TIMES_H
11293 #include <sys/times.h>
11294 #endif
11297 main ()
11299 struct tms tms;
11301 return 0;
11303 _ACEOF
11304 if ac_fn_cxx_try_compile "$LINENO"; then :
11305 ac_cv_struct_tms=yes
11306 else
11307 ac_cv_struct_tms=no
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11312 $as_echo "$ac_cv_struct_tms" >&6; }
11313 if test $ac_cv_struct_tms = yes; then
11315 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11319 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11320 # revisit after autoconf 2.50.
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11322 $as_echo_n "checking for clock_t... " >&6; }
11323 if test "${gcc_cv_type_clock_t+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11330 #include "ansidecl.h"
11331 #include "system.h"
11334 main ()
11336 clock_t x;
11338 return 0;
11340 _ACEOF
11341 if ac_fn_cxx_try_compile "$LINENO"; then :
11342 gcc_cv_type_clock_t=yes
11343 else
11344 gcc_cv_type_clock_t=no
11346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11349 $as_echo "$gcc_cv_type_clock_t" >&6; }
11350 if test $gcc_cv_type_clock_t = yes; then
11352 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11356 # Check if F_SETLKW is supported by fcntl.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11358 $as_echo_n "checking for F_SETLKW... " >&6; }
11359 if test "${ac_cv_f_setlkw+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11366 #include <fcntl.h>
11368 main ()
11371 struct flock fl;
11372 fl.l_whence = 0;
11373 fl.l_start = 0;
11374 fl.l_len = 0;
11375 fl.l_pid = 0;
11376 return fcntl (1, F_SETLKW, &fl);
11378 return 0;
11380 _ACEOF
11381 if ac_fn_cxx_try_compile "$LINENO"; then :
11382 ac_cv_f_setlkw=yes
11383 else
11384 ac_cv_f_setlkw=no
11386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11389 $as_echo "$ac_cv_f_setlkw" >&6; }
11390 if test $ac_cv_f_setlkw = yes; then
11392 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11396 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11397 CFLAGS="$saved_CFLAGS"
11398 CXXFLAGS="$saved_CXXFLAGS"
11400 # mkdir takes a single argument on some systems.
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11402 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11403 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11409 #include <sys/types.h>
11410 #ifdef HAVE_SYS_STAT_H
11411 # include <sys/stat.h>
11412 #endif
11413 #ifdef HAVE_UNISTD_H
11414 # include <unistd.h>
11415 #endif
11416 #ifdef HAVE_DIRECT_H
11417 # include <direct.h>
11418 #endif
11420 main ()
11422 mkdir ("foo", 0);
11424 return 0;
11426 _ACEOF
11427 if ac_fn_cxx_try_compile "$LINENO"; then :
11428 gcc_cv_mkdir_takes_one_arg=no
11429 else
11430 gcc_cv_mkdir_takes_one_arg=yes
11432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11435 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11436 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11438 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11443 # File extensions
11444 manext='.1'
11445 objext='.o'
11449 # With Setjmp/Longjmp based exception handling.
11450 # Check whether --enable-sjlj-exceptions was given.
11451 if test "${enable_sjlj_exceptions+set}" = set; then :
11452 enableval=$enable_sjlj_exceptions; case $target in
11453 *-*-hpux10*)
11454 if test $enableval != yes; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11456 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11457 enableval=yes
11460 esac
11461 force_sjlj_exceptions=yes
11462 else
11463 case $target in
11464 *-*-hpux10*)
11465 force_sjlj_exceptions=yes
11466 enableval=yes
11468 lm32*-*-*)
11469 force_sjlj_exceptions=yes
11470 enableval=yes
11473 force_sjlj_exceptions=no
11475 esac
11478 if test $force_sjlj_exceptions = yes; then
11479 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11481 cat >>confdefs.h <<_ACEOF
11482 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11483 _ACEOF
11487 # --------------------------------------------------------
11488 # Build, host, and target specific configuration fragments
11489 # --------------------------------------------------------
11491 # Collect build-machine-specific information.
11492 . ${srcdir}/config.build || exit 1
11494 # Collect host-machine-specific information.
11495 . ${srcdir}/config.host || exit 1
11497 target_gtfiles=
11499 # Collect target-machine-specific information.
11500 . ${srcdir}/config.gcc || exit 1
11502 extra_objs="${host_extra_objs} ${extra_objs}"
11503 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11505 # Default the target-machine variables that were not explicitly set.
11506 if test x"$tm_file" = x
11507 then tm_file=$cpu_type/$cpu_type.h; fi
11509 if test x"$extra_headers" = x
11510 then extra_headers=; fi
11512 if test x$md_file = x
11513 then md_file=$cpu_type/$cpu_type.md; fi
11515 if test x$out_file = x
11516 then out_file=$cpu_type/$cpu_type.c; fi
11518 if test x"$tmake_file" = x
11519 then tmake_file=$cpu_type/t-$cpu_type
11522 # Support --enable-initfini-array.
11523 if test x$enable_initfini_array != xno; then
11524 tm_file="${tm_file} initfini-array.h"
11527 if test x"$dwarf2" = xyes
11528 then tm_file="$tm_file tm-dwarf2.h"
11531 # Say what files are being used for the output code and MD file.
11532 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11533 echo "Using \`$srcdir/config/$md_file' as machine description file."
11535 # If any of the xm_file variables contain nonexistent files, warn
11536 # about them and drop them.
11539 for x in $build_xm_file; do
11540 if test -f $srcdir/config/$x
11541 then bx="$bx $x"
11542 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11543 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11545 done
11546 build_xm_file="$bx"
11549 for x in $host_xm_file; do
11550 if test -f $srcdir/config/$x
11551 then hx="$hx $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 host_xm_file="$hx"
11559 for x in $xm_file; do
11560 if test -f $srcdir/config/$x
11561 then tx="$tx $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 xm_file="$tx"
11568 count=a
11569 for f in $tm_file; do
11570 count=${count}x
11571 done
11572 if test $count = ax; then
11573 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11574 else
11575 echo "Using the following target machine macro files:"
11576 for f in $tm_file; do
11577 echo " $srcdir/config/$f"
11578 done
11581 if test x$use_long_long_for_widest_fast_int = xyes; then
11583 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11587 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11589 cat >>confdefs.h <<_ACEOF
11590 #define HAVE_GNU_LD $gnu_ld_bool
11591 _ACEOF
11594 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_GNU_AS $gnu_as_bool
11598 _ACEOF
11601 count=a
11602 for f in $host_xm_file; do
11603 count=${count}x
11604 done
11605 if test $count = a; then
11607 elif test $count = ax; then
11608 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11609 else
11610 echo "Using the following host machine macro files:"
11611 for f in $host_xm_file; do
11612 echo " $srcdir/config/$f"
11613 done
11615 echo "Using ${out_host_hook_obj} for host machine hooks."
11617 if test "$host_xm_file" != "$build_xm_file"; then
11618 count=a
11619 for f in $build_xm_file; do
11620 count=${count}x
11621 done
11622 if test $count = a; then
11624 elif test $count = ax; then
11625 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11626 else
11627 echo "Using the following build machine macro files:"
11628 for f in $build_xm_file; do
11629 echo " $srcdir/config/$f"
11630 done
11634 if test -n "$configured_native_system_header_dir"; then
11635 native_system_header_dir=$configured_native_system_header_dir
11637 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11640 case ${host} in
11641 powerpc*-*-darwin*)
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11643 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11644 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11650 #include <sys/cdefs.h>
11651 #include <sys/signal.h>
11652 #include <ucontext.h>
11653 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11655 _ACEOF
11656 if ac_fn_cxx_try_compile "$LINENO"; then :
11657 gcc_cv_mcontext_underscores=no
11658 else
11659 gcc_cv_mcontext_underscores=yes
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11664 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11665 if test $gcc_cv_mcontext_underscores = yes; then
11667 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11671 esac
11673 # ---------
11674 # Threading
11675 # ---------
11677 # Check if a valid thread package
11678 case ${enable_threads} in
11679 "" | no)
11680 # No threads
11681 target_thread_file='single'
11683 yes)
11684 # default
11685 target_thread_file='single'
11687 aix | dce | lynx | mipssde | posix | rtems | \
11688 single | tpf | vxworks | win32)
11689 target_thread_file=${enable_threads}
11692 echo "${enable_threads} is an unknown thread package" 1>&2
11693 exit 1
11695 esac
11697 if test x${thread_file} = x; then
11698 # No thread file set by target-specific clauses in config.gcc,
11699 # so use file chosen by default logic above
11700 thread_file=${target_thread_file}
11703 # --------
11704 # UNSORTED
11705 # --------
11707 use_cxa_atexit=no
11708 if test x$enable___cxa_atexit = xyes || \
11709 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11710 if test x$host = x$target; then
11711 case $host in
11712 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11713 # keyed to flag_use_cxa_atexit
11714 *-*-mingw32*)
11715 use_cxa_atexit=yes
11717 powerpc-ibm-aix*)
11718 use_cxa_atexit=yes
11721 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11722 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11723 use_cxa_atexit=yes
11724 else
11725 echo "__cxa_atexit can't be enabled on this target"
11729 esac
11730 else
11731 # We can't check for __cxa_atexit when building a cross, so assume
11732 # it is available
11733 use_cxa_atexit=yes
11735 if test x$use_cxa_atexit = xyes; then
11737 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11742 # Look for a file containing extra machine modes.
11743 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11744 extra_modes_file='$(srcdir)'/config/${extra_modes}
11747 cat >>confdefs.h <<_ACEOF
11748 #define EXTRA_MODES_FILE "config/$extra_modes"
11749 _ACEOF
11753 # Convert extra_options into a form suitable for Makefile use.
11754 extra_opt_files=
11755 all_opt_files=
11756 for f in $extra_options; do
11757 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11758 all_opt_files="$all_opt_files $srcdir/config/$f"
11759 done
11762 # auto-host.h is the file containing items generated by autoconf and is
11763 # the first file included by config.h.
11764 # If host=build, it is correct to have bconfig include auto-host.h
11765 # as well. If host!=build, we are in error and need to do more
11766 # work to find out the build config parameters.
11767 if test x$host = x$build
11768 then
11769 build_auto=auto-host.h
11770 else
11771 # We create a subdir, then run autoconf in the subdir.
11772 # To prevent recursion we set host and build for the new
11773 # invocation of configure to the build for this invocation
11774 # of configure.
11775 tempdir=build.$$
11776 rm -rf $tempdir
11777 mkdir $tempdir
11778 cd $tempdir
11779 case ${srcdir} in
11780 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11781 *) realsrcdir=../${srcdir};;
11782 esac
11783 # Clearing GMPINC is necessary to prevent host headers being
11784 # used by the build compiler. Defining GENERATOR_FILE stops
11785 # system.h from including gmp.h.
11786 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11787 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11788 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11789 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11790 ${realsrcdir}/configure \
11791 --enable-languages=${enable_languages-all} \
11792 --target=$target_alias --host=$build_alias --build=$build_alias
11794 # We just finished tests for the build machine, so rename
11795 # the file auto-build.h in the gcc directory.
11796 mv auto-host.h ../auto-build.h
11797 cd ..
11798 rm -rf $tempdir
11799 build_auto=auto-build.h
11803 tm_file="${tm_file} defaults.h"
11804 tm_p_file="${tm_p_file} tm-preds.h"
11805 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11806 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11807 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11808 # put this back in temporarily.
11809 xm_file="auto-host.h ansidecl.h ${xm_file}"
11811 # --------
11812 # UNSORTED
11813 # --------
11815 # Compile in configure arguments.
11816 if test -f configargs.h ; then
11817 # Being re-configured.
11818 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11819 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11820 else
11821 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11824 # Double all backslashes and backslash all quotes to turn
11825 # gcc_config_arguments into a C string.
11826 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11827 $gcc_config_arguments
11829 gcc_config_arguments_str=`cat conftest.out`
11830 rm -f conftest.out
11832 cat > configargs.h <<EOF
11833 /* Generated automatically. */
11834 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11835 static const char thread_model[] = "$thread_file";
11837 static const struct {
11838 const char *name, *value;
11839 } configure_default_options[] = $configure_default_options;
11842 gcc_BASEVER=`cat $srcdir/BASE-VER`
11843 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11844 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11845 if test -f $srcdir/REVISION ; then
11846 gcc_REVISION=`cat $srcdir/REVISION`
11847 else
11848 gcc_REVISION=""
11850 cat > plugin-version.h <<EOF
11851 #include "configargs.h"
11853 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11854 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11855 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11856 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11858 static char basever[] = "$gcc_BASEVER";
11859 static char datestamp[] = "$gcc_DATESTAMP";
11860 static char devphase[] = "$gcc_DEVPHASE";
11861 static char revision[] = "$gcc_REVISION";
11863 /* FIXME plugins: We should make the version information more precise.
11864 One way to do is to add a checksum. */
11866 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11867 devphase, revision,
11868 configuration_arguments};
11871 # Determine what GCC version number to use in filesystem paths.
11873 get_gcc_base_ver="cat"
11875 # Check whether --with-gcc-major-version-only was given.
11876 if test "${with_gcc_major_version_only+set}" = set; then :
11877 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11878 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11886 # Internationalization
11887 # If we haven't got the data from the intl directory,
11888 # assume NLS is disabled.
11889 USE_NLS=no
11890 LIBINTL=
11891 LIBINTL_DEP=
11892 INCINTL=
11893 XGETTEXT=
11894 GMSGFMT=
11895 POSUB=
11897 if test -f ../intl/config.intl; then
11898 . ../intl/config.intl
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11901 $as_echo_n "checking whether NLS is requested... " >&6; }
11902 if test x"$USE_NLS" != xyes; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11904 $as_echo "no" >&6; }
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907 $as_echo "yes" >&6; }
11909 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11913 $as_echo_n "checking for catalogs to be installed... " >&6; }
11914 # Look for .po and .gmo files in the source directory.
11915 CATALOGS=
11916 XLINGUAS=
11917 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11918 # If there aren't any .gmo files the shell will give us the
11919 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11920 # weeded out.
11921 case "$cat" in *\**)
11922 continue;;
11923 esac
11924 # The quadruple backslash is collapsed to a double backslash
11925 # by the backticks, then collapsed again by the double quotes,
11926 # leaving us with one backslash in the sed expression (right
11927 # before the dot that mustn't act as a wildcard).
11928 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11929 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11930 # The user is allowed to set LINGUAS to a list of languages to
11931 # install catalogs for. If it's empty that means "all of them."
11932 if test "x$LINGUAS" = x; then
11933 CATALOGS="$CATALOGS $cat"
11934 XLINGUAS="$XLINGUAS $lang"
11935 else
11936 case "$LINGUAS" in *$lang*)
11937 CATALOGS="$CATALOGS $cat"
11938 XLINGUAS="$XLINGUAS $lang"
11940 esac
11942 done
11943 LINGUAS="$XLINGUAS"
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11945 $as_echo "$LINGUAS" >&6; }
11948 DATADIRNAME=share
11950 INSTOBJEXT=.mo
11952 GENCAT=gencat
11954 CATOBJEXT=.gmo
11958 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11959 # -liconv on the link line twice.
11960 case "$LIBINTL" in *$LIBICONV*)
11961 LIBICONV= ;;
11962 esac
11964 # Check whether --enable-secureplt was given.
11965 if test "${enable_secureplt+set}" = set; then :
11966 enableval=$enable_secureplt;
11970 # Check whether --enable-mingw-wildcard was given.
11971 if test "${enable_mingw_wildcard+set}" = set; then :
11972 enableval=$enable_mingw_wildcard;
11973 else
11974 enable_mingw_wildcard=platform
11977 if test x"$enable_mingw_wildcard" != xplatform ; then :
11979 cat >>confdefs.h <<_ACEOF
11980 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
11981 _ACEOF
11985 # Check whether --enable-leading-mingw64-underscores was given.
11986 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11987 enableval=$enable_leading_mingw64_underscores;
11990 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11992 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11996 # Check whether --enable-cld was given.
11997 if test "${enable_cld+set}" = set; then :
11998 enableval=$enable_cld;
11999 else
12000 enable_cld=no
12004 # Check whether --enable-frame-pointer was given.
12005 if test "${enable_frame_pointer+set}" = set; then :
12006 enableval=$enable_frame_pointer;
12007 else
12009 case $target_os in
12010 linux* | darwin[8912]*)
12011 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12012 # DWARF2.
12013 enable_frame_pointer=no
12016 enable_frame_pointer=yes
12018 esac
12023 # Windows32 Registry support for specifying GCC installation paths.
12024 # Check whether --enable-win32-registry was given.
12025 if test "${enable_win32_registry+set}" = set; then :
12026 enableval=$enable_win32_registry;
12030 case $host_os in
12031 win32 | pe | cygwin* | mingw32*)
12032 if test "x$enable_win32_registry" != xno; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12034 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12035 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 ac_func_search_save_LIBS=$LIBS
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12042 /* Override any GCC internal prototype to avoid an error.
12043 Use char because int might match the return type of a GCC
12044 builtin and then its argument prototype would still apply. */
12045 #ifdef __cplusplus
12046 extern "C"
12047 #endif
12048 char RegOpenKeyExA ();
12050 main ()
12052 return RegOpenKeyExA ();
12054 return 0;
12056 _ACEOF
12057 for ac_lib in '' advapi32; do
12058 if test -z "$ac_lib"; then
12059 ac_res="none required"
12060 else
12061 ac_res=-l$ac_lib
12062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12064 if ac_fn_cxx_try_link "$LINENO"; then :
12065 ac_cv_search_RegOpenKeyExA=$ac_res
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext
12069 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12070 break
12072 done
12073 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12075 else
12076 ac_cv_search_RegOpenKeyExA=no
12078 rm conftest.$ac_ext
12079 LIBS=$ac_func_search_save_LIBS
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12082 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12083 ac_res=$ac_cv_search_RegOpenKeyExA
12084 if test "$ac_res" != no; then :
12085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12087 else
12088 enable_win32_registry=no
12093 if test "x$enable_win32_registry" != xno; then
12095 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12098 if test "x$enable_win32_registry" != xyes \
12099 && test "x$enable_win32_registry" != x; then
12101 cat >>confdefs.h <<_ACEOF
12102 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12103 _ACEOF
12108 esac
12110 # Get an absolute path to the GCC top-level source directory
12111 holddir=`${PWDCMD-pwd}`
12112 cd $srcdir
12113 topdir=`${PWDCMD-pwd}`
12114 cd $holddir
12116 # Conditionalize the makefile for this host machine.
12117 xmake_file=
12118 for f in ${host_xmake_file}
12120 if test -f ${srcdir}/config/$f
12121 then
12122 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12124 done
12126 # Conditionalize the makefile for this target machine.
12127 tmake_file_=
12128 for f in ${tmake_file}
12130 if test -f ${srcdir}/config/$f
12131 then
12132 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12134 done
12135 tmake_file="${tmake_file_}"
12137 out_object_file=`basename $out_file .c`.o
12138 common_out_object_file=`basename $common_out_file .c`.o
12140 tm_file_list="options.h"
12141 tm_include_list="options.h insn-constants.h"
12142 for f in $tm_file; do
12143 case $f in
12144 ./* )
12145 f=`echo $f | sed 's/^..//'`
12146 tm_file_list="${tm_file_list} $f"
12147 tm_include_list="${tm_include_list} $f"
12149 defaults.h )
12150 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12151 tm_include_list="${tm_include_list} $f"
12154 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12155 tm_include_list="${tm_include_list} config/$f"
12157 esac
12158 done
12160 tm_p_file_list=
12161 tm_p_include_list=
12162 for f in $tm_p_file; do
12163 case $f in
12164 tm-preds.h )
12165 tm_p_file_list="${tm_p_file_list} $f"
12166 tm_p_include_list="${tm_p_include_list} $f"
12169 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12170 tm_p_include_list="${tm_p_include_list} config/$f"
12171 esac
12172 done
12174 xm_file_list=
12175 xm_include_list=
12176 for f in $xm_file; do
12177 case $f in
12178 ansidecl.h )
12179 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12180 xm_include_list="${xm_include_list} $f"
12182 auto-host.h )
12183 xm_file_list="${xm_file_list} $f"
12184 xm_include_list="${xm_include_list} $f"
12187 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12188 xm_include_list="${xm_include_list} config/$f"
12190 esac
12191 done
12193 host_xm_file_list=
12194 host_xm_include_list=
12195 for f in $host_xm_file; do
12196 case $f in
12197 ansidecl.h )
12198 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12199 host_xm_include_list="${host_xm_include_list} $f"
12201 auto-host.h )
12202 host_xm_file_list="${host_xm_file_list} $f"
12203 host_xm_include_list="${host_xm_include_list} $f"
12206 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12207 host_xm_include_list="${host_xm_include_list} config/$f"
12209 esac
12210 done
12212 build_xm_file_list=
12213 for f in $build_xm_file; do
12214 case $f in
12215 ansidecl.h )
12216 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12217 build_xm_include_list="${build_xm_include_list} $f"
12219 auto-build.h | auto-host.h )
12220 build_xm_file_list="${build_xm_file_list} $f"
12221 build_xm_include_list="${build_xm_include_list} $f"
12224 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12225 build_xm_include_list="${build_xm_include_list} config/$f"
12227 esac
12228 done
12230 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12231 # cross-compiler which does not use the native headers and libraries.
12232 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12233 CROSS=
12234 ALL=all.internal
12235 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12236 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12238 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12239 test x$build != x$host || test "x$with_build_sysroot" != x; then
12240 if test "x$with_build_sysroot" != x; then
12241 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12242 else
12243 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12246 if test x$host != x$target
12247 then
12248 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12249 ALL=all.cross
12250 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12251 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12252 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12255 if test "x$with_build_sysroot" != "x"; then
12256 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12257 elif test "x$with_sysroot" = x; then
12258 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12259 elif test "x$with_sysroot" = xyes; then
12260 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12261 else
12262 target_header_dir="${with_sysroot}${native_system_header_dir}"
12264 else
12265 target_header_dir=${native_system_header_dir}
12268 # If this is a cross-compiler that does not
12269 # have its own set of headers then define
12270 # inhibit_libc
12272 # If this is using newlib, without having the headers available now,
12273 # then define inhibit_libc in LIBGCC2_CFLAGS.
12274 # This prevents libgcc2 from containing any code which requires libc
12275 # support.
12276 : ${inhibit_libc=false}
12277 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12278 test x$with_newlib = xyes ; } &&
12279 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12280 inhibit_libc=true
12284 # When building gcc with a cross-compiler, we need to adjust things so
12285 # that the generator programs are still built with the native compiler.
12286 # Also, we cannot run fixincludes.
12288 # These are the normal (build=host) settings:
12289 CC_FOR_BUILD='$(CC)'
12290 CXX_FOR_BUILD='$(CXX)'
12291 BUILD_CFLAGS='$(ALL_CFLAGS)'
12292 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12293 BUILD_LDFLAGS='$(LDFLAGS)'
12294 STMP_FIXINC=stmp-fixinc
12296 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12297 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12299 # And these apply if build != host, or we are generating coverage data
12300 if test x$build != x$host || test "x$coverage_flags" != x
12301 then
12302 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12303 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12304 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12306 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12307 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12308 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12309 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12314 # Expand extra_headers to include complete path.
12315 # This substitutes for lots of t-* files.
12316 extra_headers_list=
12317 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12318 for file in ${extra_headers} ; do
12319 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12320 done
12322 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12323 if test x"$use_gcc_tgmath" = xyes
12324 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12327 # Define collect2 in Makefile.
12328 case $host_can_use_collect2 in
12329 no) collect2= ;;
12330 *) collect2='collect2$(exeext)' ;;
12331 esac
12334 # Add a definition of USE_COLLECT2 if system wants one.
12335 case $use_collect2 in
12336 no) use_collect2= ;;
12337 "") ;;
12339 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12340 xm_defines="${xm_defines} USE_COLLECT2"
12341 case $host_can_use_collect2 in
12343 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12345 esac
12347 esac
12350 cat >>confdefs.h <<_ACEOF
12351 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12352 _ACEOF
12355 # ---------------------------
12356 # Assembler & linker features
12357 # ---------------------------
12359 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12360 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12361 # However when ld-new is first executed from the build tree, libtool will
12362 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12363 # to the build tree. While doing this we need to use the previous-stage
12364 # linker, or we have an infinite loop. The presence of a shell script as
12365 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12366 # the gcc/collect-ld script. So we need to know how libtool works, or
12367 # exec-tool will fail.
12370 case `pwd` in
12371 *\ * | *\ *)
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12373 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12374 esac
12378 macro_version='2.2.7a'
12379 macro_revision='1.3134'
12393 ltmain="$ac_aux_dir/ltmain.sh"
12395 # Backslashify metacharacters that are still active within
12396 # double-quoted strings.
12397 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12399 # Same as above, but do not quote variable references.
12400 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12402 # Sed substitution to delay expansion of an escaped shell variable in a
12403 # double_quote_subst'ed string.
12404 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12406 # Sed substitution to delay expansion of an escaped single quote.
12407 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12409 # Sed substitution to avoid accidental globbing in evaled expressions
12410 no_glob_subst='s/\*/\\\*/g'
12412 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12413 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12414 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12417 $as_echo_n "checking how to print strings... " >&6; }
12418 # Test print first, because it will be a builtin if present.
12419 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12420 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12421 ECHO='print -r --'
12422 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12423 ECHO='printf %s\n'
12424 else
12425 # Use this function as a fallback that always works.
12426 func_fallback_echo ()
12428 eval 'cat <<_LTECHO_EOF
12430 _LTECHO_EOF'
12432 ECHO='func_fallback_echo'
12435 # func_echo_all arg...
12436 # Invoke $ECHO with all args, space-separated.
12437 func_echo_all ()
12439 $ECHO ""
12442 case "$ECHO" in
12443 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12444 $as_echo "printf" >&6; } ;;
12445 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12446 $as_echo "print -r" >&6; } ;;
12447 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12448 $as_echo "cat" >&6; } ;;
12449 esac
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12465 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12466 if test "${ac_cv_path_SED+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12470 for ac_i in 1 2 3 4 5 6 7; do
12471 ac_script="$ac_script$as_nl$ac_script"
12472 done
12473 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12474 { ac_script=; unset ac_script;}
12475 if test -z "$SED"; then
12476 ac_path_SED_found=false
12477 # Loop through the user's path and test for each of PROGNAME-LIST
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_prog in sed gsed; do
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12486 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12487 # Check for GNU ac_path_SED and select it if it is found.
12488 # Check for GNU $ac_path_SED
12489 case `"$ac_path_SED" --version 2>&1` in
12490 *GNU*)
12491 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12493 ac_count=0
12494 $as_echo_n 0123456789 >"conftest.in"
12495 while :
12497 cat "conftest.in" "conftest.in" >"conftest.tmp"
12498 mv "conftest.tmp" "conftest.in"
12499 cp "conftest.in" "conftest.nl"
12500 $as_echo '' >> "conftest.nl"
12501 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12503 as_fn_arith $ac_count + 1 && ac_count=$as_val
12504 if test $ac_count -gt ${ac_path_SED_max-0}; then
12505 # Best one so far, save it but keep looking for a better one
12506 ac_cv_path_SED="$ac_path_SED"
12507 ac_path_SED_max=$ac_count
12509 # 10*(2^10) chars as input seems more than enough
12510 test $ac_count -gt 10 && break
12511 done
12512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12513 esac
12515 $ac_path_SED_found && break 3
12516 done
12517 done
12518 done
12519 IFS=$as_save_IFS
12520 if test -z "$ac_cv_path_SED"; then
12521 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12523 else
12524 ac_cv_path_SED=$SED
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12529 $as_echo "$ac_cv_path_SED" >&6; }
12530 SED="$ac_cv_path_SED"
12531 rm -f conftest.sed
12533 test -z "$SED" && SED=sed
12534 Xsed="$SED -e 1s/^X//"
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12547 $as_echo_n "checking for fgrep... " >&6; }
12548 if test "${ac_cv_path_FGREP+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12552 then ac_cv_path_FGREP="$GREP -F"
12553 else
12554 if test -z "$FGREP"; then
12555 ac_path_FGREP_found=false
12556 # Loop through the user's path and test for each of PROGNAME-LIST
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_prog in fgrep; do
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12565 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12566 # Check for GNU ac_path_FGREP and select it if it is found.
12567 # Check for GNU $ac_path_FGREP
12568 case `"$ac_path_FGREP" --version 2>&1` in
12569 *GNU*)
12570 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12572 ac_count=0
12573 $as_echo_n 0123456789 >"conftest.in"
12574 while :
12576 cat "conftest.in" "conftest.in" >"conftest.tmp"
12577 mv "conftest.tmp" "conftest.in"
12578 cp "conftest.in" "conftest.nl"
12579 $as_echo 'FGREP' >> "conftest.nl"
12580 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12582 as_fn_arith $ac_count + 1 && ac_count=$as_val
12583 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12584 # Best one so far, save it but keep looking for a better one
12585 ac_cv_path_FGREP="$ac_path_FGREP"
12586 ac_path_FGREP_max=$ac_count
12588 # 10*(2^10) chars as input seems more than enough
12589 test $ac_count -gt 10 && break
12590 done
12591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12592 esac
12594 $ac_path_FGREP_found && break 3
12595 done
12596 done
12597 done
12598 IFS=$as_save_IFS
12599 if test -z "$ac_cv_path_FGREP"; then
12600 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12602 else
12603 ac_cv_path_FGREP=$FGREP
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12609 $as_echo "$ac_cv_path_FGREP" >&6; }
12610 FGREP="$ac_cv_path_FGREP"
12613 test -z "$GREP" && GREP=grep
12633 # Check whether --with-gnu-ld was given.
12634 if test "${with_gnu_ld+set}" = set; then :
12635 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12636 else
12637 with_gnu_ld=no
12640 ac_prog=ld
12641 if test "$GCC" = yes; then
12642 # Check if gcc -print-prog-name=ld gives a path.
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12644 $as_echo_n "checking for ld used by $CC... " >&6; }
12645 case $host in
12646 *-*-mingw*)
12647 # gcc leaves a trailing carriage return which upsets mingw
12648 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12650 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12651 esac
12652 case $ac_prog in
12653 # Accept absolute paths.
12654 [\\/]* | ?:[\\/]*)
12655 re_direlt='/[^/][^/]*/\.\./'
12656 # Canonicalize the pathname of ld
12657 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12658 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12659 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12660 done
12661 test -z "$LD" && LD="$ac_prog"
12664 # If it fails, then pretend we aren't using GCC.
12665 ac_prog=ld
12668 # If it is relative, then search for the first ld in PATH.
12669 with_gnu_ld=unknown
12671 esac
12672 elif test "$with_gnu_ld" = yes; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12674 $as_echo_n "checking for GNU ld... " >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12677 $as_echo_n "checking for non-GNU ld... " >&6; }
12679 if test "${lt_cv_path_LD+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test -z "$LD"; then
12683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12684 for ac_dir in $PATH; do
12685 IFS="$lt_save_ifs"
12686 test -z "$ac_dir" && ac_dir=.
12687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12688 lt_cv_path_LD="$ac_dir/$ac_prog"
12689 # Check to see if the program is GNU ld. I'd rather use --version,
12690 # but apparently some variants of GNU ld only accept -v.
12691 # Break only if it was the GNU/non-GNU ld that we prefer.
12692 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12693 *GNU* | *'with BFD'*)
12694 test "$with_gnu_ld" != no && break
12697 test "$with_gnu_ld" != yes && break
12699 esac
12701 done
12702 IFS="$lt_save_ifs"
12703 else
12704 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12708 LD="$lt_cv_path_LD"
12709 if test -n "$LD"; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12711 $as_echo "$LD" >&6; }
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12716 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12718 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12719 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12723 case `$LD -v 2>&1 </dev/null` in
12724 *GNU* | *'with BFD'*)
12725 lt_cv_prog_gnu_ld=yes
12728 lt_cv_prog_gnu_ld=no
12730 esac
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12733 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12734 with_gnu_ld=$lt_cv_prog_gnu_ld
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12745 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12746 if test "${lt_cv_path_NM+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 if test -n "$NM"; then
12750 # Let the user override the test.
12751 lt_cv_path_NM="$NM"
12752 else
12753 lt_nm_to_check="${ac_tool_prefix}nm"
12754 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12755 lt_nm_to_check="$lt_nm_to_check nm"
12757 for lt_tmp_nm in $lt_nm_to_check; do
12758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12759 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12760 IFS="$lt_save_ifs"
12761 test -z "$ac_dir" && ac_dir=.
12762 tmp_nm="$ac_dir/$lt_tmp_nm"
12763 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12764 # Check to see if the nm accepts a BSD-compat flag.
12765 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12766 # nm: unknown option "B" ignored
12767 # Tru64's nm complains that /dev/null is an invalid object file
12768 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12769 */dev/null* | *'Invalid file or object type'*)
12770 lt_cv_path_NM="$tmp_nm -B"
12771 break
12774 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12775 */dev/null*)
12776 lt_cv_path_NM="$tmp_nm -p"
12777 break
12780 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12781 continue # so that we can try to find one that supports BSD flags
12783 esac
12785 esac
12787 done
12788 IFS="$lt_save_ifs"
12789 done
12790 : ${lt_cv_path_NM=no}
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12794 $as_echo "$lt_cv_path_NM" >&6; }
12795 if test "$lt_cv_path_NM" != "no"; then
12796 NM="$lt_cv_path_NM"
12797 else
12798 # Didn't find any BSD compatible name lister, look for dumpbin.
12799 if test -n "$DUMPBIN"; then :
12800 # Let the user override the test.
12801 else
12802 if test -n "$ac_tool_prefix"; then
12803 for ac_prog in dumpbin "link -dump"
12805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808 $as_echo_n "checking for $ac_word... " >&6; }
12809 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12812 if test -n "$DUMPBIN"; then
12813 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12814 else
12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816 for as_dir in $PATH
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
12820 for ac_exec_ext in '' $ac_executable_extensions; do
12821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12822 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 break 2
12826 done
12827 done
12828 IFS=$as_save_IFS
12832 DUMPBIN=$ac_cv_prog_DUMPBIN
12833 if test -n "$DUMPBIN"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12835 $as_echo "$DUMPBIN" >&6; }
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12842 test -n "$DUMPBIN" && break
12843 done
12845 if test -z "$DUMPBIN"; then
12846 ac_ct_DUMPBIN=$DUMPBIN
12847 for ac_prog in dumpbin "link -dump"
12849 # Extract the first word of "$ac_prog", so it can be a program name with args.
12850 set dummy $ac_prog; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -n "$ac_ct_DUMPBIN"; then
12857 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12870 done
12871 done
12872 IFS=$as_save_IFS
12876 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12877 if test -n "$ac_ct_DUMPBIN"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12879 $as_echo "$ac_ct_DUMPBIN" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12886 test -n "$ac_ct_DUMPBIN" && break
12887 done
12889 if test "x$ac_ct_DUMPBIN" = x; then
12890 DUMPBIN=":"
12891 else
12892 case $cross_compiling:$ac_tool_warned in
12893 yes:)
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12896 ac_tool_warned=yes ;;
12897 esac
12898 DUMPBIN=$ac_ct_DUMPBIN
12902 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12903 *COFF*)
12904 DUMPBIN="$DUMPBIN -symbols"
12907 DUMPBIN=:
12909 esac
12912 if test "$DUMPBIN" != ":"; then
12913 NM="$DUMPBIN"
12916 test -z "$NM" && NM=nm
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12924 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12925 if test "${lt_cv_nm_interface+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
12927 else
12928 lt_cv_nm_interface="BSD nm"
12929 echo "int some_variable = 0;" > conftest.$ac_ext
12930 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12931 (eval "$ac_compile" 2>conftest.err)
12932 cat conftest.err >&5
12933 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12934 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12935 cat conftest.err >&5
12936 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12937 cat conftest.out >&5
12938 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12939 lt_cv_nm_interface="MS dumpbin"
12941 rm -f conftest*
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12944 $as_echo "$lt_cv_nm_interface" >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12947 $as_echo_n "checking whether ln -s works... " >&6; }
12948 LN_S=$as_ln_s
12949 if test "$LN_S" = "ln -s"; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12951 $as_echo "yes" >&6; }
12952 else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12954 $as_echo "no, using $LN_S" >&6; }
12957 # find the maximum length of command line arguments
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12959 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12960 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12964 teststring="ABCD"
12966 case $build_os in
12967 msdosdjgpp*)
12968 # On DJGPP, this test can blow up pretty badly due to problems in libc
12969 # (any single argument exceeding 2000 bytes causes a buffer overrun
12970 # during glob expansion). Even if it were fixed, the result of this
12971 # check would be larger than it should be.
12972 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12975 gnu*)
12976 # Under GNU Hurd, this test is not required because there is
12977 # no limit to the length of command line arguments.
12978 # Libtool will interpret -1 as no limit whatsoever
12979 lt_cv_sys_max_cmd_len=-1;
12982 cygwin* | mingw* | cegcc*)
12983 # On Win9x/ME, this test blows up -- it succeeds, but takes
12984 # about 5 minutes as the teststring grows exponentially.
12985 # Worse, since 9x/ME are not pre-emptively multitasking,
12986 # you end up with a "frozen" computer, even though with patience
12987 # the test eventually succeeds (with a max line length of 256k).
12988 # Instead, let's just punt: use the minimum linelength reported by
12989 # all of the supported platforms: 8192 (on NT/2K/XP).
12990 lt_cv_sys_max_cmd_len=8192;
12993 mint*)
12994 # On MiNT this can take a long time and run out of memory.
12995 lt_cv_sys_max_cmd_len=8192;
12998 amigaos*)
12999 # On AmigaOS with pdksh, this test takes hours, literally.
13000 # So we just punt and use a minimum line length of 8192.
13001 lt_cv_sys_max_cmd_len=8192;
13004 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13005 # This has been around since 386BSD, at least. Likely further.
13006 if test -x /sbin/sysctl; then
13007 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13008 elif test -x /usr/sbin/sysctl; then
13009 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13010 else
13011 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13013 # And add a safety zone
13014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13018 interix*)
13019 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13020 lt_cv_sys_max_cmd_len=196608
13023 osf*)
13024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13026 # nice to cause kernel panics so lets avoid the loop below.
13027 # First set a reasonable default.
13028 lt_cv_sys_max_cmd_len=16384
13030 if test -x /sbin/sysconfig; then
13031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13032 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13033 esac
13036 sco3.2v5*)
13037 lt_cv_sys_max_cmd_len=102400
13039 sysv5* | sco5v6* | sysv4.2uw2*)
13040 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13041 if test -n "$kargmax"; then
13042 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13043 else
13044 lt_cv_sys_max_cmd_len=32768
13048 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13049 if test -n "$lt_cv_sys_max_cmd_len"; then
13050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13052 else
13053 # Make teststring a little bigger before we do anything with it.
13054 # a 1K string should be a reasonable start.
13055 for i in 1 2 3 4 5 6 7 8 ; do
13056 teststring=$teststring$teststring
13057 done
13058 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13059 # If test is not a shell built-in, we'll probably end up computing a
13060 # maximum length that is only half of the actual maximum length, but
13061 # we can't tell.
13062 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13063 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13064 test $i != 17 # 1/2 MB should be enough
13066 i=`expr $i + 1`
13067 teststring=$teststring$teststring
13068 done
13069 # Only check the string length outside the loop.
13070 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13071 teststring=
13072 # Add a significant safety factor because C++ compilers can tack on
13073 # massive amounts of additional arguments before passing them to the
13074 # linker. It appears as though 1/2 is a usable value.
13075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13078 esac
13082 if test -n $lt_cv_sys_max_cmd_len ; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13084 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13085 else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13087 $as_echo "none" >&6; }
13089 max_cmd_len=$lt_cv_sys_max_cmd_len
13096 : ${CP="cp -f"}
13097 : ${MV="mv -f"}
13098 : ${RM="rm -f"}
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13101 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13102 # Try some XSI features
13103 xsi_shell=no
13104 ( _lt_dummy="a/b/c"
13105 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13106 = c,a/b,, \
13107 && eval 'test $(( 1 + 1 )) -eq 2 \
13108 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13109 && xsi_shell=yes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13111 $as_echo "$xsi_shell" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13115 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13116 lt_shell_append=no
13117 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13118 >/dev/null 2>&1 \
13119 && lt_shell_append=yes
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13121 $as_echo "$lt_shell_append" >&6; }
13124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13125 lt_unset=unset
13126 else
13127 lt_unset=false
13134 # test EBCDIC or ASCII
13135 case `echo X|tr X '\101'` in
13136 A) # ASCII based system
13137 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13138 lt_SP2NL='tr \040 \012'
13139 lt_NL2SP='tr \015\012 \040\040'
13141 *) # EBCDIC based system
13142 lt_SP2NL='tr \100 \n'
13143 lt_NL2SP='tr \r\n \100\100'
13145 esac
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13156 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13157 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 lt_cv_ld_reload_flag='-r'
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13163 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13164 reload_flag=$lt_cv_ld_reload_flag
13165 case $reload_flag in
13166 "" | " "*) ;;
13167 *) reload_flag=" $reload_flag" ;;
13168 esac
13169 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13170 case $host_os in
13171 darwin*)
13172 if test "$GCC" = yes; then
13173 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13174 else
13175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13178 esac
13188 if test -n "$ac_tool_prefix"; then
13189 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13190 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 if test -n "$OBJDUMP"; then
13197 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13198 else
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13210 done
13211 done
13212 IFS=$as_save_IFS
13216 OBJDUMP=$ac_cv_prog_OBJDUMP
13217 if test -n "$OBJDUMP"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13219 $as_echo "$OBJDUMP" >&6; }
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13227 if test -z "$ac_cv_prog_OBJDUMP"; then
13228 ac_ct_OBJDUMP=$OBJDUMP
13229 # Extract the first word of "objdump", so it can be a program name with args.
13230 set dummy objdump; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 if test -n "$ac_ct_OBJDUMP"; then
13237 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13238 else
13239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240 for as_dir in $PATH
13242 IFS=$as_save_IFS
13243 test -z "$as_dir" && as_dir=.
13244 for ac_exec_ext in '' $ac_executable_extensions; do
13245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13246 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248 break 2
13250 done
13251 done
13252 IFS=$as_save_IFS
13256 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13257 if test -n "$ac_ct_OBJDUMP"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13259 $as_echo "$ac_ct_OBJDUMP" >&6; }
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13265 if test "x$ac_ct_OBJDUMP" = x; then
13266 OBJDUMP="false"
13267 else
13268 case $cross_compiling:$ac_tool_warned in
13269 yes:)
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13272 ac_tool_warned=yes ;;
13273 esac
13274 OBJDUMP=$ac_ct_OBJDUMP
13276 else
13277 OBJDUMP="$ac_cv_prog_OBJDUMP"
13280 test -z "$OBJDUMP" && OBJDUMP=objdump
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13291 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13292 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 lt_cv_file_magic_cmd='$MAGIC_CMD'
13296 lt_cv_file_magic_test_file=
13297 lt_cv_deplibs_check_method='unknown'
13298 # Need to set the preceding variable on all platforms that support
13299 # interlibrary dependencies.
13300 # 'none' -- dependencies not supported.
13301 # `unknown' -- same as none, but documents that we really don't know.
13302 # 'pass_all' -- all dependencies passed with no checks.
13303 # 'test_compile' -- check by making test program.
13304 # 'file_magic [[regex]]' -- check by looking for files in library path
13305 # which responds to the $file_magic_cmd with a given extended regex.
13306 # If you have `file' or equivalent on your system and you're not sure
13307 # whether `pass_all' will *always* work, you probably want this one.
13309 case $host_os in
13310 aix[4-9]*)
13311 lt_cv_deplibs_check_method=pass_all
13314 beos*)
13315 lt_cv_deplibs_check_method=pass_all
13318 bsdi[45]*)
13319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13320 lt_cv_file_magic_cmd='/usr/bin/file -L'
13321 lt_cv_file_magic_test_file=/shlib/libc.so
13324 cygwin*)
13325 # func_win32_libid is a shell function defined in ltmain.sh
13326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13327 lt_cv_file_magic_cmd='func_win32_libid'
13330 mingw* | pw32*)
13331 # Base MSYS/MinGW do not provide the 'file' command needed by
13332 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13333 # unless we find 'file', for example because we are cross-compiling.
13334 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13335 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13336 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13337 lt_cv_file_magic_cmd='func_win32_libid'
13338 else
13339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13340 lt_cv_file_magic_cmd='$OBJDUMP -f'
13344 cegcc*)
13345 # use the weaker test based on 'objdump'. See mingw*.
13346 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13347 lt_cv_file_magic_cmd='$OBJDUMP -f'
13350 darwin* | rhapsody*)
13351 lt_cv_deplibs_check_method=pass_all
13354 freebsd* | dragonfly*)
13355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13356 case $host_cpu in
13357 i*86 )
13358 # Not sure whether the presence of OpenBSD here was a mistake.
13359 # Let's accept both of them until this is cleared up.
13360 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13361 lt_cv_file_magic_cmd=/usr/bin/file
13362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13364 esac
13365 else
13366 lt_cv_deplibs_check_method=pass_all
13370 gnu*)
13371 lt_cv_deplibs_check_method=pass_all
13374 haiku*)
13375 lt_cv_deplibs_check_method=pass_all
13378 hpux10.20* | hpux11*)
13379 lt_cv_file_magic_cmd=/usr/bin/file
13380 case $host_cpu in
13381 ia64*)
13382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13385 hppa*64*)
13386 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]'
13387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13393 esac
13396 interix[3-9]*)
13397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13401 irix5* | irix6* | nonstopux*)
13402 case $LD in
13403 *-32|*"-32 ") libmagic=32-bit;;
13404 *-n32|*"-n32 ") libmagic=N32;;
13405 *-64|*"-64 ") libmagic=64-bit;;
13406 *) libmagic=never-match;;
13407 esac
13408 lt_cv_deplibs_check_method=pass_all
13411 # This must be Linux ELF.
13412 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13413 lt_cv_deplibs_check_method=pass_all
13416 netbsd*)
13417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13419 else
13420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13424 newos6*)
13425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13426 lt_cv_file_magic_cmd=/usr/bin/file
13427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13430 *nto* | *qnx*)
13431 lt_cv_deplibs_check_method=pass_all
13434 openbsd*)
13435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13437 else
13438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13442 osf3* | osf4* | osf5*)
13443 lt_cv_deplibs_check_method=pass_all
13446 rdos*)
13447 lt_cv_deplibs_check_method=pass_all
13450 solaris*)
13451 lt_cv_deplibs_check_method=pass_all
13454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13455 lt_cv_deplibs_check_method=pass_all
13458 sysv4 | sysv4.3*)
13459 case $host_vendor in
13460 motorola)
13461 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]'
13462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13464 ncr)
13465 lt_cv_deplibs_check_method=pass_all
13467 sequent)
13468 lt_cv_file_magic_cmd='/bin/file'
13469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13471 sni)
13472 lt_cv_file_magic_cmd='/bin/file'
13473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13474 lt_cv_file_magic_test_file=/lib/libc.so
13476 siemens)
13477 lt_cv_deplibs_check_method=pass_all
13480 lt_cv_deplibs_check_method=pass_all
13482 esac
13485 tpf*)
13486 lt_cv_deplibs_check_method=pass_all
13488 esac
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13492 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13493 file_magic_cmd=$lt_cv_file_magic_cmd
13494 deplibs_check_method=$lt_cv_deplibs_check_method
13495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13508 if test -n "$ac_tool_prefix"; then
13509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13510 set dummy ${ac_tool_prefix}ar; ac_word=$2
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13512 $as_echo_n "checking for $ac_word... " >&6; }
13513 if test "${ac_cv_prog_AR+set}" = set; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 if test -n "$AR"; then
13517 ac_cv_prog_AR="$AR" # Let the user override the test.
13518 else
13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13520 for as_dir in $PATH
13522 IFS=$as_save_IFS
13523 test -z "$as_dir" && as_dir=.
13524 for ac_exec_ext in '' $ac_executable_extensions; do
13525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13526 ac_cv_prog_AR="${ac_tool_prefix}ar"
13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528 break 2
13530 done
13531 done
13532 IFS=$as_save_IFS
13536 AR=$ac_cv_prog_AR
13537 if test -n "$AR"; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13539 $as_echo "$AR" >&6; }
13540 else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13547 if test -z "$ac_cv_prog_AR"; then
13548 ac_ct_AR=$AR
13549 # Extract the first word of "ar", so it can be a program name with args.
13550 set dummy ar; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552 $as_echo_n "checking for $ac_word... " >&6; }
13553 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13555 else
13556 if test -n "$ac_ct_AR"; then
13557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13558 else
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13562 IFS=$as_save_IFS
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13566 ac_cv_prog_ac_ct_AR="ar"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568 break 2
13570 done
13571 done
13572 IFS=$as_save_IFS
13576 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13577 if test -n "$ac_ct_AR"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13579 $as_echo "$ac_ct_AR" >&6; }
13580 else
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13585 if test "x$ac_ct_AR" = x; then
13586 AR="false"
13587 else
13588 case $cross_compiling:$ac_tool_warned in
13589 yes:)
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13592 ac_tool_warned=yes ;;
13593 esac
13594 AR=$ac_ct_AR
13596 else
13597 AR="$ac_cv_prog_AR"
13600 test -z "$AR" && AR=ar
13601 test -z "$AR_FLAGS" && AR_FLAGS=cru
13613 if test -n "$ac_tool_prefix"; then
13614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13615 set dummy ${ac_tool_prefix}strip; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if test "${ac_cv_prog_STRIP+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 if test -n "$STRIP"; then
13622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13623 else
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13635 done
13636 done
13637 IFS=$as_save_IFS
13641 STRIP=$ac_cv_prog_STRIP
13642 if test -n "$STRIP"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13644 $as_echo "$STRIP" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13652 if test -z "$ac_cv_prog_STRIP"; then
13653 ac_ct_STRIP=$STRIP
13654 # Extract the first word of "strip", so it can be a program name with args.
13655 set dummy strip; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657 $as_echo_n "checking for $ac_word... " >&6; }
13658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 if test -n "$ac_ct_STRIP"; then
13662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13663 else
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $PATH
13667 IFS=$as_save_IFS
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13671 ac_cv_prog_ac_ct_STRIP="strip"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13673 break 2
13675 done
13676 done
13677 IFS=$as_save_IFS
13681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13682 if test -n "$ac_ct_STRIP"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13684 $as_echo "$ac_ct_STRIP" >&6; }
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687 $as_echo "no" >&6; }
13690 if test "x$ac_ct_STRIP" = x; then
13691 STRIP=":"
13692 else
13693 case $cross_compiling:$ac_tool_warned in
13694 yes:)
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13697 ac_tool_warned=yes ;;
13698 esac
13699 STRIP=$ac_ct_STRIP
13701 else
13702 STRIP="$ac_cv_prog_STRIP"
13705 test -z "$STRIP" && STRIP=:
13712 if test -n "$ac_tool_prefix"; then
13713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13716 $as_echo_n "checking for $ac_word... " >&6; }
13717 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 if test -n "$RANLIB"; then
13721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13722 else
13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724 for as_dir in $PATH
13726 IFS=$as_save_IFS
13727 test -z "$as_dir" && as_dir=.
13728 for ac_exec_ext in '' $ac_executable_extensions; do
13729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732 break 2
13734 done
13735 done
13736 IFS=$as_save_IFS
13740 RANLIB=$ac_cv_prog_RANLIB
13741 if test -n "$RANLIB"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13743 $as_echo "$RANLIB" >&6; }
13744 else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746 $as_echo "no" >&6; }
13751 if test -z "$ac_cv_prog_RANLIB"; then
13752 ac_ct_RANLIB=$RANLIB
13753 # Extract the first word of "ranlib", so it can be a program name with args.
13754 set dummy ranlib; ac_word=$2
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756 $as_echo_n "checking for $ac_word... " >&6; }
13757 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 if test -n "$ac_ct_RANLIB"; then
13761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13762 else
13763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764 for as_dir in $PATH
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13770 ac_cv_prog_ac_ct_RANLIB="ranlib"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 break 2
13774 done
13775 done
13776 IFS=$as_save_IFS
13780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13781 if test -n "$ac_ct_RANLIB"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13783 $as_echo "$ac_ct_RANLIB" >&6; }
13784 else
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13789 if test "x$ac_ct_RANLIB" = x; then
13790 RANLIB=":"
13791 else
13792 case $cross_compiling:$ac_tool_warned in
13793 yes:)
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13796 ac_tool_warned=yes ;;
13797 esac
13798 RANLIB=$ac_ct_RANLIB
13800 else
13801 RANLIB="$ac_cv_prog_RANLIB"
13804 test -z "$RANLIB" && RANLIB=:
13811 # Determine commands to create old-style static archives.
13812 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13813 old_postinstall_cmds='chmod 644 $oldlib'
13814 old_postuninstall_cmds=
13816 if test -n "$RANLIB"; then
13817 case $host_os in
13818 openbsd*)
13819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13824 esac
13825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13828 case $host_os in
13829 darwin*)
13830 lock_old_archive_extraction=yes ;;
13832 lock_old_archive_extraction=no ;;
13833 esac
13873 # If no C compiler was specified, use CC.
13874 LTCC=${LTCC-"$CC"}
13876 # If no C compiler flags were specified, use CFLAGS.
13877 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13879 # Allow CC to be a program name with arguments.
13880 compiler=$CC
13883 # Check for command to grab the raw symbol name followed by C symbol from nm.
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13885 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13887 $as_echo_n "(cached) " >&6
13888 else
13890 # These are sane defaults that work on at least a few old systems.
13891 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13893 # Character class describing NM global symbol codes.
13894 symcode='[BCDEGRST]'
13896 # Regexp to match symbols that can be accessed directly from C.
13897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13899 # Define system-specific variables.
13900 case $host_os in
13901 aix*)
13902 symcode='[BCDT]'
13904 cygwin* | mingw* | pw32* | cegcc*)
13905 symcode='[ABCDGISTW]'
13907 hpux*)
13908 if test "$host_cpu" = ia64; then
13909 symcode='[ABCDEGRST]'
13912 irix* | nonstopux*)
13913 symcode='[BCDEGRST]'
13915 osf*)
13916 symcode='[BCDEGQRST]'
13918 solaris*)
13919 symcode='[BDRT]'
13921 sco3.2v5*)
13922 symcode='[DT]'
13924 sysv4.2uw2*)
13925 symcode='[DT]'
13927 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13928 symcode='[ABDT]'
13930 sysv4)
13931 symcode='[DFNSTU]'
13933 esac
13935 # If we're using GNU nm, then use its standard symbol codes.
13936 case `$NM -V 2>&1` in
13937 *GNU* | *'with BFD'*)
13938 symcode='[ABCDGIRSTW]' ;;
13939 esac
13941 # Transform an extracted symbol line into a proper C declaration.
13942 # Some systems (esp. on ia64) link data and code symbols differently,
13943 # so use this general approach.
13944 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13946 # Transform an extracted symbol line into symbol name and symbol address
13947 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13948 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'"
13950 # Handle CRLF in mingw tool chain
13951 opt_cr=
13952 case $build_os in
13953 mingw*)
13954 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13956 esac
13958 # Try without a prefix underscore, then with it.
13959 for ac_symprfx in "" "_"; do
13961 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13962 symxfrm="\\1 $ac_symprfx\\2 \\2"
13964 # Write the raw and C identifiers.
13965 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13966 # Fake it for dumpbin and say T for any non-static function
13967 # and D for any global variable.
13968 # Also find C++ and __fastcall symbols from MSVC++,
13969 # which start with @ or ?.
13970 lt_cv_sys_global_symbol_pipe="$AWK '"\
13971 " {last_section=section; section=\$ 3};"\
13972 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13973 " \$ 0!~/External *\|/{next};"\
13974 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13975 " {if(hide[section]) next};"\
13976 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13977 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13978 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13979 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13980 " ' prfx=^$ac_symprfx"
13981 else
13982 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13985 # Check to see that the pipe works correctly.
13986 pipe_works=no
13988 rm -f conftest*
13989 cat > conftest.$ac_ext <<_LT_EOF
13990 #ifdef __cplusplus
13991 extern "C" {
13992 #endif
13993 char nm_test_var;
13994 void nm_test_func(void);
13995 void nm_test_func(void){}
13996 #ifdef __cplusplus
13998 #endif
13999 int main(){nm_test_var='a';nm_test_func();return(0);}
14000 _LT_EOF
14002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14003 (eval $ac_compile) 2>&5
14004 ac_status=$?
14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006 test $ac_status = 0; }; then
14007 # Now try to grab the symbols.
14008 nlist=conftest.nm
14009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14010 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14011 ac_status=$?
14012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14013 test $ac_status = 0; } && test -s "$nlist"; then
14014 # Try sorting and uniquifying the output.
14015 if sort "$nlist" | uniq > "$nlist"T; then
14016 mv -f "$nlist"T "$nlist"
14017 else
14018 rm -f "$nlist"T
14021 # Make sure that we snagged all the symbols we need.
14022 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14023 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14024 cat <<_LT_EOF > conftest.$ac_ext
14025 #ifdef __cplusplus
14026 extern "C" {
14027 #endif
14029 _LT_EOF
14030 # Now generate the symbol file.
14031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14033 cat <<_LT_EOF >> conftest.$ac_ext
14035 /* The mapping between symbol names and symbols. */
14036 const struct {
14037 const char *name;
14038 void *address;
14040 lt__PROGRAM__LTX_preloaded_symbols[] =
14042 { "@PROGRAM@", (void *) 0 },
14043 _LT_EOF
14044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14045 cat <<\_LT_EOF >> conftest.$ac_ext
14046 {0, (void *) 0}
14049 /* This works around a problem in FreeBSD linker */
14050 #ifdef FREEBSD_WORKAROUND
14051 static const void *lt_preloaded_setup() {
14052 return lt__PROGRAM__LTX_preloaded_symbols;
14054 #endif
14056 #ifdef __cplusplus
14058 #endif
14059 _LT_EOF
14060 # Now try linking the two files.
14061 mv conftest.$ac_objext conftstm.$ac_objext
14062 lt_save_LIBS="$LIBS"
14063 lt_save_CFLAGS="$CFLAGS"
14064 LIBS="conftstm.$ac_objext"
14065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14067 (eval $ac_link) 2>&5
14068 ac_status=$?
14069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14070 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14071 pipe_works=yes
14073 LIBS="$lt_save_LIBS"
14074 CFLAGS="$lt_save_CFLAGS"
14075 else
14076 echo "cannot find nm_test_func in $nlist" >&5
14078 else
14079 echo "cannot find nm_test_var in $nlist" >&5
14081 else
14082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14084 else
14085 echo "$progname: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14088 rm -rf conftest* conftst*
14090 # Do not use the global_symbol_pipe unless it works.
14091 if test "$pipe_works" = yes; then
14092 break
14093 else
14094 lt_cv_sys_global_symbol_pipe=
14096 done
14100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14101 lt_cv_sys_global_symbol_to_cdecl=
14103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14105 $as_echo "failed" >&6; }
14106 else
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14108 $as_echo "ok" >&6; }
14132 # Check whether --enable-libtool-lock was given.
14133 if test "${enable_libtool_lock+set}" = set; then :
14134 enableval=$enable_libtool_lock;
14137 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14139 # Some flags need to be propagated to the compiler or linker for good
14140 # libtool support.
14141 case $host in
14142 ia64-*-hpux*)
14143 # Find out which ABI we are using.
14144 echo 'int i;' > conftest.$ac_ext
14145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14146 (eval $ac_compile) 2>&5
14147 ac_status=$?
14148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14149 test $ac_status = 0; }; then
14150 case `/usr/bin/file conftest.$ac_objext` in
14151 *ELF-32*)
14152 HPUX_IA64_MODE="32"
14154 *ELF-64*)
14155 HPUX_IA64_MODE="64"
14157 esac
14159 rm -rf conftest*
14161 *-*-irix6*)
14162 # Find out which ABI we are using.
14163 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14165 (eval $ac_compile) 2>&5
14166 ac_status=$?
14167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168 test $ac_status = 0; }; then
14169 if test "$lt_cv_prog_gnu_ld" = yes; then
14170 case `/usr/bin/file conftest.$ac_objext` in
14171 *32-bit*)
14172 LD="${LD-ld} -melf32bsmip"
14174 *N32*)
14175 LD="${LD-ld} -melf32bmipn32"
14177 *64-bit*)
14178 LD="${LD-ld} -melf64bmip"
14180 esac
14181 else
14182 case `/usr/bin/file conftest.$ac_objext` in
14183 *32-bit*)
14184 LD="${LD-ld} -32"
14186 *N32*)
14187 LD="${LD-ld} -n32"
14189 *64-bit*)
14190 LD="${LD-ld} -64"
14192 esac
14195 rm -rf conftest*
14198 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14199 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14200 # Find out which ABI we are using.
14201 echo 'int i;' > conftest.$ac_ext
14202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14203 (eval $ac_compile) 2>&5
14204 ac_status=$?
14205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14206 test $ac_status = 0; }; then
14207 case `/usr/bin/file conftest.o` in
14208 *32-bit*)
14209 case $host in
14210 x86_64-*kfreebsd*-gnu)
14211 LD="${LD-ld} -m elf_i386_fbsd"
14213 x86_64-*linux*)
14214 case `/usr/bin/file conftest.o` in
14215 *x86-64*)
14216 LD="${LD-ld} -m elf32_x86_64"
14219 LD="${LD-ld} -m elf_i386"
14221 esac
14223 powerpc64le-*linux*)
14224 LD="${LD-ld} -m elf32lppclinux"
14226 powerpc64-*linux*)
14227 LD="${LD-ld} -m elf32ppclinux"
14229 s390x-*linux*)
14230 LD="${LD-ld} -m elf_s390"
14232 sparc64-*linux*)
14233 LD="${LD-ld} -m elf32_sparc"
14235 esac
14237 *64-bit*)
14238 case $host in
14239 x86_64-*kfreebsd*-gnu)
14240 LD="${LD-ld} -m elf_x86_64_fbsd"
14242 x86_64-*linux*)
14243 LD="${LD-ld} -m elf_x86_64"
14245 powerpcle-*linux*)
14246 LD="${LD-ld} -m elf64lppc"
14248 powerpc-*linux*)
14249 LD="${LD-ld} -m elf64ppc"
14251 s390*-*linux*|s390*-*tpf*)
14252 LD="${LD-ld} -m elf64_s390"
14254 sparc*-*linux*)
14255 LD="${LD-ld} -m elf64_sparc"
14257 esac
14259 esac
14261 rm -rf conftest*
14264 *-*-sco3.2v5*)
14265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14266 SAVE_CFLAGS="$CFLAGS"
14267 CFLAGS="$CFLAGS -belf"
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14269 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14270 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 ac_ext=c
14274 ac_cpp='$CPP $CPPFLAGS'
14275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14283 main ()
14287 return 0;
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"; then :
14291 lt_cv_cc_needs_belf=yes
14292 else
14293 lt_cv_cc_needs_belf=no
14295 rm -f core conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
14297 ac_ext=c
14298 ac_cpp='$CPP $CPPFLAGS'
14299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14305 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14306 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14307 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14308 CFLAGS="$SAVE_CFLAGS"
14311 sparc*-*solaris*)
14312 # Find out which ABI we are using.
14313 echo 'int i;' > conftest.$ac_ext
14314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14315 (eval $ac_compile) 2>&5
14316 ac_status=$?
14317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14318 test $ac_status = 0; }; then
14319 case `/usr/bin/file conftest.o` in
14320 *64-bit*)
14321 case $lt_cv_prog_gnu_ld in
14322 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14324 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14325 LD="${LD-ld} -64"
14328 esac
14330 esac
14332 rm -rf conftest*
14334 esac
14336 need_locks="$enable_libtool_lock"
14339 case $host_os in
14340 rhapsody* | darwin*)
14341 if test -n "$ac_tool_prefix"; then
14342 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14343 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14345 $as_echo_n "checking for $ac_word... " >&6; }
14346 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
14348 else
14349 if test -n "$DSYMUTIL"; then
14350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14351 else
14352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14353 for as_dir in $PATH
14355 IFS=$as_save_IFS
14356 test -z "$as_dir" && as_dir=.
14357 for ac_exec_ext in '' $ac_executable_extensions; do
14358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14359 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14361 break 2
14363 done
14364 done
14365 IFS=$as_save_IFS
14369 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14370 if test -n "$DSYMUTIL"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14372 $as_echo "$DSYMUTIL" >&6; }
14373 else
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14380 if test -z "$ac_cv_prog_DSYMUTIL"; then
14381 ac_ct_DSYMUTIL=$DSYMUTIL
14382 # Extract the first word of "dsymutil", so it can be a program name with args.
14383 set dummy dsymutil; ac_word=$2
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14385 $as_echo_n "checking for $ac_word... " >&6; }
14386 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 if test -n "$ac_ct_DSYMUTIL"; then
14390 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14391 else
14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14393 for as_dir in $PATH
14395 IFS=$as_save_IFS
14396 test -z "$as_dir" && as_dir=.
14397 for ac_exec_ext in '' $ac_executable_extensions; do
14398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14399 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14401 break 2
14403 done
14404 done
14405 IFS=$as_save_IFS
14409 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14410 if test -n "$ac_ct_DSYMUTIL"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14412 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14413 else
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 $as_echo "no" >&6; }
14418 if test "x$ac_ct_DSYMUTIL" = x; then
14419 DSYMUTIL=":"
14420 else
14421 case $cross_compiling:$ac_tool_warned in
14422 yes:)
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14425 ac_tool_warned=yes ;;
14426 esac
14427 DSYMUTIL=$ac_ct_DSYMUTIL
14429 else
14430 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14433 if test -n "$ac_tool_prefix"; then
14434 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14435 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14437 $as_echo_n "checking for $ac_word... " >&6; }
14438 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 if test -n "$NMEDIT"; then
14442 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14443 else
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14447 IFS=$as_save_IFS
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14451 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 break 2
14455 done
14456 done
14457 IFS=$as_save_IFS
14461 NMEDIT=$ac_cv_prog_NMEDIT
14462 if test -n "$NMEDIT"; then
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14464 $as_echo "$NMEDIT" >&6; }
14465 else
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 $as_echo "no" >&6; }
14472 if test -z "$ac_cv_prog_NMEDIT"; then
14473 ac_ct_NMEDIT=$NMEDIT
14474 # Extract the first word of "nmedit", so it can be a program name with args.
14475 set dummy nmedit; ac_word=$2
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14477 $as_echo_n "checking for $ac_word... " >&6; }
14478 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 if test -n "$ac_ct_NMEDIT"; then
14482 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14483 else
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14487 IFS=$as_save_IFS
14488 test -z "$as_dir" && as_dir=.
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14491 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 break 2
14495 done
14496 done
14497 IFS=$as_save_IFS
14501 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14502 if test -n "$ac_ct_NMEDIT"; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14504 $as_echo "$ac_ct_NMEDIT" >&6; }
14505 else
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14510 if test "x$ac_ct_NMEDIT" = x; then
14511 NMEDIT=":"
14512 else
14513 case $cross_compiling:$ac_tool_warned in
14514 yes:)
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14517 ac_tool_warned=yes ;;
14518 esac
14519 NMEDIT=$ac_ct_NMEDIT
14521 else
14522 NMEDIT="$ac_cv_prog_NMEDIT"
14525 if test -n "$ac_tool_prefix"; then
14526 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14527 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14529 $as_echo_n "checking for $ac_word... " >&6; }
14530 if test "${ac_cv_prog_LIPO+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533 if test -n "$LIPO"; then
14534 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14535 else
14536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537 for as_dir in $PATH
14539 IFS=$as_save_IFS
14540 test -z "$as_dir" && as_dir=.
14541 for ac_exec_ext in '' $ac_executable_extensions; do
14542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14543 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14545 break 2
14547 done
14548 done
14549 IFS=$as_save_IFS
14553 LIPO=$ac_cv_prog_LIPO
14554 if test -n "$LIPO"; then
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14556 $as_echo "$LIPO" >&6; }
14557 else
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 $as_echo "no" >&6; }
14564 if test -z "$ac_cv_prog_LIPO"; then
14565 ac_ct_LIPO=$LIPO
14566 # Extract the first word of "lipo", so it can be a program name with args.
14567 set dummy lipo; ac_word=$2
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14569 $as_echo_n "checking for $ac_word... " >&6; }
14570 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 if test -n "$ac_ct_LIPO"; then
14574 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14575 else
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $PATH
14579 IFS=$as_save_IFS
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14583 ac_cv_prog_ac_ct_LIPO="lipo"
14584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14585 break 2
14587 done
14588 done
14589 IFS=$as_save_IFS
14593 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14594 if test -n "$ac_ct_LIPO"; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14596 $as_echo "$ac_ct_LIPO" >&6; }
14597 else
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599 $as_echo "no" >&6; }
14602 if test "x$ac_ct_LIPO" = x; then
14603 LIPO=":"
14604 else
14605 case $cross_compiling:$ac_tool_warned in
14606 yes:)
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14609 ac_tool_warned=yes ;;
14610 esac
14611 LIPO=$ac_ct_LIPO
14613 else
14614 LIPO="$ac_cv_prog_LIPO"
14617 if test -n "$ac_tool_prefix"; then
14618 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14619 set dummy ${ac_tool_prefix}otool; ac_word=$2
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14621 $as_echo_n "checking for $ac_word... " >&6; }
14622 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14623 $as_echo_n "(cached) " >&6
14624 else
14625 if test -n "$OTOOL"; then
14626 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14627 else
14628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14629 for as_dir in $PATH
14631 IFS=$as_save_IFS
14632 test -z "$as_dir" && as_dir=.
14633 for ac_exec_ext in '' $ac_executable_extensions; do
14634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14635 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14637 break 2
14639 done
14640 done
14641 IFS=$as_save_IFS
14645 OTOOL=$ac_cv_prog_OTOOL
14646 if test -n "$OTOOL"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14648 $as_echo "$OTOOL" >&6; }
14649 else
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651 $as_echo "no" >&6; }
14656 if test -z "$ac_cv_prog_OTOOL"; then
14657 ac_ct_OTOOL=$OTOOL
14658 # Extract the first word of "otool", so it can be a program name with args.
14659 set dummy otool; ac_word=$2
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 $as_echo_n "checking for $ac_word... " >&6; }
14662 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 if test -n "$ac_ct_OTOOL"; then
14666 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14667 else
14668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14669 for as_dir in $PATH
14671 IFS=$as_save_IFS
14672 test -z "$as_dir" && as_dir=.
14673 for ac_exec_ext in '' $ac_executable_extensions; do
14674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14675 ac_cv_prog_ac_ct_OTOOL="otool"
14676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14677 break 2
14679 done
14680 done
14681 IFS=$as_save_IFS
14685 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14686 if test -n "$ac_ct_OTOOL"; then
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14688 $as_echo "$ac_ct_OTOOL" >&6; }
14689 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14691 $as_echo "no" >&6; }
14694 if test "x$ac_ct_OTOOL" = x; then
14695 OTOOL=":"
14696 else
14697 case $cross_compiling:$ac_tool_warned in
14698 yes:)
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14701 ac_tool_warned=yes ;;
14702 esac
14703 OTOOL=$ac_ct_OTOOL
14705 else
14706 OTOOL="$ac_cv_prog_OTOOL"
14709 if test -n "$ac_tool_prefix"; then
14710 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14711 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14713 $as_echo_n "checking for $ac_word... " >&6; }
14714 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717 if test -n "$OTOOL64"; then
14718 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14719 else
14720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14721 for as_dir in $PATH
14723 IFS=$as_save_IFS
14724 test -z "$as_dir" && as_dir=.
14725 for ac_exec_ext in '' $ac_executable_extensions; do
14726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14727 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14729 break 2
14731 done
14732 done
14733 IFS=$as_save_IFS
14737 OTOOL64=$ac_cv_prog_OTOOL64
14738 if test -n "$OTOOL64"; then
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14740 $as_echo "$OTOOL64" >&6; }
14741 else
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14743 $as_echo "no" >&6; }
14748 if test -z "$ac_cv_prog_OTOOL64"; then
14749 ac_ct_OTOOL64=$OTOOL64
14750 # Extract the first word of "otool64", so it can be a program name with args.
14751 set dummy otool64; ac_word=$2
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14753 $as_echo_n "checking for $ac_word... " >&6; }
14754 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 if test -n "$ac_ct_OTOOL64"; then
14758 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14759 else
14760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761 for as_dir in $PATH
14763 IFS=$as_save_IFS
14764 test -z "$as_dir" && as_dir=.
14765 for ac_exec_ext in '' $ac_executable_extensions; do
14766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14767 ac_cv_prog_ac_ct_OTOOL64="otool64"
14768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14769 break 2
14771 done
14772 done
14773 IFS=$as_save_IFS
14777 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14778 if test -n "$ac_ct_OTOOL64"; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14780 $as_echo "$ac_ct_OTOOL64" >&6; }
14781 else
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14783 $as_echo "no" >&6; }
14786 if test "x$ac_ct_OTOOL64" = x; then
14787 OTOOL64=":"
14788 else
14789 case $cross_compiling:$ac_tool_warned in
14790 yes:)
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14793 ac_tool_warned=yes ;;
14794 esac
14795 OTOOL64=$ac_ct_OTOOL64
14797 else
14798 OTOOL64="$ac_cv_prog_OTOOL64"
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14828 $as_echo_n "checking for -single_module linker flag... " >&6; }
14829 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14830 $as_echo_n "(cached) " >&6
14831 else
14832 lt_cv_apple_cc_single_mod=no
14833 if test -z "${LT_MULTI_MODULE}"; then
14834 # By default we will add the -single_module flag. You can override
14835 # by either setting the environment variable LT_MULTI_MODULE
14836 # non-empty at configure time, or by adding -multi_module to the
14837 # link flags.
14838 rm -rf libconftest.dylib*
14839 echo "int foo(void){return 1;}" > conftest.c
14840 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14841 -dynamiclib -Wl,-single_module conftest.c" >&5
14842 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14843 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14844 _lt_result=$?
14845 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14846 lt_cv_apple_cc_single_mod=yes
14847 else
14848 cat conftest.err >&5
14850 rm -rf libconftest.dylib*
14851 rm -f conftest.*
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14855 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14857 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14858 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 lt_cv_ld_exported_symbols_list=no
14862 save_LDFLAGS=$LDFLAGS
14863 echo "_main" > conftest.sym
14864 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14869 main ()
14873 return 0;
14875 _ACEOF
14876 if ac_fn_c_try_link "$LINENO"; then :
14877 lt_cv_ld_exported_symbols_list=yes
14878 else
14879 lt_cv_ld_exported_symbols_list=no
14881 rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LDFLAGS="$save_LDFLAGS"
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14887 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14889 $as_echo_n "checking for -force_load linker flag... " >&6; }
14890 if test "${lt_cv_ld_force_load+set}" = set; then :
14891 $as_echo_n "(cached) " >&6
14892 else
14893 lt_cv_ld_force_load=no
14894 cat > conftest.c << _LT_EOF
14895 int forced_loaded() { return 2;}
14896 _LT_EOF
14897 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14898 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14899 echo "$AR cru libconftest.a conftest.o" >&5
14900 $AR cru libconftest.a conftest.o 2>&5
14901 cat > conftest.c << _LT_EOF
14902 int main() { return 0;}
14903 _LT_EOF
14904 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14905 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14906 _lt_result=$?
14907 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14908 lt_cv_ld_force_load=yes
14909 else
14910 cat conftest.err >&5
14912 rm -f conftest.err libconftest.a conftest conftest.c
14913 rm -rf conftest.dSYM
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14917 $as_echo "$lt_cv_ld_force_load" >&6; }
14918 case $host_os in
14919 rhapsody* | darwin1.[012])
14920 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14921 darwin1.*)
14922 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14923 darwin*) # darwin 5.x on
14924 # if running on 10.5 or later, the deployment target defaults
14925 # to the OS version, if on x86, and 10.4, the deployment
14926 # target defaults to 10.4. Don't you love it?
14927 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14928 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14929 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14930 10.[012][,.]*)
14931 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14932 10.*)
14933 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14934 esac
14936 esac
14937 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14938 _lt_dar_single_mod='$single_module'
14940 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14941 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14942 else
14943 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14945 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14946 _lt_dsymutil='~$DSYMUTIL $lib || :'
14947 else
14948 _lt_dsymutil=
14951 esac
14954 for ac_header in dlfcn.h
14955 do :
14956 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14957 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_DLFCN_H 1
14960 _ACEOF
14963 done
14969 # Set options
14973 enable_dlopen=no
14976 enable_win32_dll=no
14979 # Check whether --enable-shared was given.
14980 if test "${enable_shared+set}" = set; then :
14981 enableval=$enable_shared; p=${PACKAGE-default}
14982 case $enableval in
14983 yes) enable_shared=yes ;;
14984 no) enable_shared=no ;;
14986 enable_shared=no
14987 # Look at the argument we got. We use all the common list separators.
14988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989 for pkg in $enableval; do
14990 IFS="$lt_save_ifs"
14991 if test "X$pkg" = "X$p"; then
14992 enable_shared=yes
14994 done
14995 IFS="$lt_save_ifs"
14997 esac
14998 else
14999 enable_shared=yes
15010 # Check whether --enable-static was given.
15011 if test "${enable_static+set}" = set; then :
15012 enableval=$enable_static; p=${PACKAGE-default}
15013 case $enableval in
15014 yes) enable_static=yes ;;
15015 no) enable_static=no ;;
15017 enable_static=no
15018 # Look at the argument we got. We use all the common list separators.
15019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15020 for pkg in $enableval; do
15021 IFS="$lt_save_ifs"
15022 if test "X$pkg" = "X$p"; then
15023 enable_static=yes
15025 done
15026 IFS="$lt_save_ifs"
15028 esac
15029 else
15030 enable_static=yes
15042 # Check whether --with-pic was given.
15043 if test "${with_pic+set}" = set; then :
15044 withval=$with_pic; pic_mode="$withval"
15045 else
15046 pic_mode=default
15050 test -z "$pic_mode" && pic_mode=default
15058 # Check whether --enable-fast-install was given.
15059 if test "${enable_fast_install+set}" = set; then :
15060 enableval=$enable_fast_install; p=${PACKAGE-default}
15061 case $enableval in
15062 yes) enable_fast_install=yes ;;
15063 no) enable_fast_install=no ;;
15065 enable_fast_install=no
15066 # Look at the argument we got. We use all the common list separators.
15067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15068 for pkg in $enableval; do
15069 IFS="$lt_save_ifs"
15070 if test "X$pkg" = "X$p"; then
15071 enable_fast_install=yes
15073 done
15074 IFS="$lt_save_ifs"
15076 esac
15077 else
15078 enable_fast_install=yes
15091 # This can be used to rebuild libtool when needed
15092 LIBTOOL_DEPS="$ltmain"
15094 # Always use our own libtool.
15095 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15122 test -z "$LN_S" && LN_S="ln -s"
15137 if test -n "${ZSH_VERSION+set}" ; then
15138 setopt NO_GLOB_SUBST
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15142 $as_echo_n "checking for objdir... " >&6; }
15143 if test "${lt_cv_objdir+set}" = set; then :
15144 $as_echo_n "(cached) " >&6
15145 else
15146 rm -f .libs 2>/dev/null
15147 mkdir .libs 2>/dev/null
15148 if test -d .libs; then
15149 lt_cv_objdir=.libs
15150 else
15151 # MS-DOS does not allow filenames that begin with a dot.
15152 lt_cv_objdir=_libs
15154 rmdir .libs 2>/dev/null
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15157 $as_echo "$lt_cv_objdir" >&6; }
15158 objdir=$lt_cv_objdir
15164 cat >>confdefs.h <<_ACEOF
15165 #define LT_OBJDIR "$lt_cv_objdir/"
15166 _ACEOF
15171 case $host_os in
15172 aix3*)
15173 # AIX sometimes has problems with the GCC collect2 program. For some
15174 # reason, if we set the COLLECT_NAMES environment variable, the problems
15175 # vanish in a puff of smoke.
15176 if test "X${COLLECT_NAMES+set}" != Xset; then
15177 COLLECT_NAMES=
15178 export COLLECT_NAMES
15181 esac
15183 # Global variables:
15184 ofile=libtool
15185 can_build_shared=yes
15187 # All known linkers require a `.a' archive for static linking (except MSVC,
15188 # which needs '.lib').
15189 libext=a
15191 with_gnu_ld="$lt_cv_prog_gnu_ld"
15193 old_CC="$CC"
15194 old_CFLAGS="$CFLAGS"
15196 # Set sane defaults for various variables
15197 test -z "$CC" && CC=cc
15198 test -z "$LTCC" && LTCC=$CC
15199 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15200 test -z "$LD" && LD=ld
15201 test -z "$ac_objext" && ac_objext=o
15203 for cc_temp in $compiler""; do
15204 case $cc_temp in
15205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15207 \-*) ;;
15208 *) break;;
15209 esac
15210 done
15211 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15214 # Only perform the check for file, if the check method requires it
15215 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15216 case $deplibs_check_method in
15217 file_magic*)
15218 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15220 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15222 $as_echo_n "(cached) " >&6
15223 else
15224 case $MAGIC_CMD in
15225 [\\/*] | ?:[\\/]*)
15226 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15229 lt_save_MAGIC_CMD="$MAGIC_CMD"
15230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15231 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15232 for ac_dir in $ac_dummy; do
15233 IFS="$lt_save_ifs"
15234 test -z "$ac_dir" && ac_dir=.
15235 if test -f $ac_dir/${ac_tool_prefix}file; then
15236 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15237 if test -n "$file_magic_test_file"; then
15238 case $deplibs_check_method in
15239 "file_magic "*)
15240 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15242 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15243 $EGREP "$file_magic_regex" > /dev/null; then
15245 else
15246 cat <<_LT_EOF 1>&2
15248 *** Warning: the command libtool uses to detect shared libraries,
15249 *** $file_magic_cmd, produces output that libtool cannot recognize.
15250 *** The result is that libtool may fail to recognize shared libraries
15251 *** as such. This will affect the creation of libtool libraries that
15252 *** depend on shared libraries, but programs linked with such libtool
15253 *** libraries will work regardless of this problem. Nevertheless, you
15254 *** may want to report the problem to your system manager and/or to
15255 *** bug-libtool@gnu.org
15257 _LT_EOF
15258 fi ;;
15259 esac
15261 break
15263 done
15264 IFS="$lt_save_ifs"
15265 MAGIC_CMD="$lt_save_MAGIC_CMD"
15267 esac
15270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15271 if test -n "$MAGIC_CMD"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15273 $as_echo "$MAGIC_CMD" >&6; }
15274 else
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15283 if test -z "$lt_cv_path_MAGIC_CMD"; then
15284 if test -n "$ac_tool_prefix"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15286 $as_echo_n "checking for file... " >&6; }
15287 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 case $MAGIC_CMD in
15291 [\\/*] | ?:[\\/]*)
15292 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15295 lt_save_MAGIC_CMD="$MAGIC_CMD"
15296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15298 for ac_dir in $ac_dummy; do
15299 IFS="$lt_save_ifs"
15300 test -z "$ac_dir" && ac_dir=.
15301 if test -f $ac_dir/file; then
15302 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15303 if test -n "$file_magic_test_file"; then
15304 case $deplibs_check_method in
15305 "file_magic "*)
15306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15309 $EGREP "$file_magic_regex" > /dev/null; then
15311 else
15312 cat <<_LT_EOF 1>&2
15314 *** Warning: the command libtool uses to detect shared libraries,
15315 *** $file_magic_cmd, produces output that libtool cannot recognize.
15316 *** The result is that libtool may fail to recognize shared libraries
15317 *** as such. This will affect the creation of libtool libraries that
15318 *** depend on shared libraries, but programs linked with such libtool
15319 *** libraries will work regardless of this problem. Nevertheless, you
15320 *** may want to report the problem to your system manager and/or to
15321 *** bug-libtool@gnu.org
15323 _LT_EOF
15324 fi ;;
15325 esac
15327 break
15329 done
15330 IFS="$lt_save_ifs"
15331 MAGIC_CMD="$lt_save_MAGIC_CMD"
15333 esac
15336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15337 if test -n "$MAGIC_CMD"; then
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15339 $as_echo "$MAGIC_CMD" >&6; }
15340 else
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15346 else
15347 MAGIC_CMD=:
15353 esac
15355 # Use C for the default configuration in the libtool script
15357 lt_save_CC="$CC"
15358 ac_ext=c
15359 ac_cpp='$CPP $CPPFLAGS'
15360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15365 # Source file extension for C test sources.
15366 ac_ext=c
15368 # Object file extension for compiled C test sources.
15369 objext=o
15370 objext=$objext
15372 # Code to be used in simple compile tests
15373 lt_simple_compile_test_code="int some_variable = 0;"
15375 # Code to be used in simple link tests
15376 lt_simple_link_test_code='int main(){return(0);}'
15384 # If no C compiler was specified, use CC.
15385 LTCC=${LTCC-"$CC"}
15387 # If no C compiler flags were specified, use CFLAGS.
15388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15390 # Allow CC to be a program name with arguments.
15391 compiler=$CC
15393 # Save the default compiler, since it gets overwritten when the other
15394 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15395 compiler_DEFAULT=$CC
15397 # save warnings/boilerplate of simple test code
15398 ac_outfile=conftest.$ac_objext
15399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15401 _lt_compiler_boilerplate=`cat conftest.err`
15402 $RM conftest*
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15407 _lt_linker_boilerplate=`cat conftest.err`
15408 $RM -r conftest*
15411 ## CAVEAT EMPTOR:
15412 ## There is no encapsulation within the following macros, do not change
15413 ## the running order or otherwise move them around unless you know exactly
15414 ## what you are doing...
15415 if test -n "$compiler"; then
15417 lt_prog_compiler_no_builtin_flag=
15419 if test "$GCC" = yes; then
15420 case $cc_basename in
15421 nvcc*)
15422 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15424 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15425 esac
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15428 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15429 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15430 $as_echo_n "(cached) " >&6
15431 else
15432 lt_cv_prog_compiler_rtti_exceptions=no
15433 ac_outfile=conftest.$ac_objext
15434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15435 lt_compiler_flag="-fno-rtti -fno-exceptions"
15436 # Insert the option either (1) after the last *FLAGS variable, or
15437 # (2) before a word containing "conftest.", or (3) at the end.
15438 # Note that $ac_compile itself does not contain backslashes and begins
15439 # with a dollar sign (not a hyphen), so the echo should work correctly.
15440 # The option is referenced via a variable to avoid confusing sed.
15441 lt_compile=`echo "$ac_compile" | $SED \
15442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15444 -e 's:$: $lt_compiler_flag:'`
15445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15446 (eval "$lt_compile" 2>conftest.err)
15447 ac_status=$?
15448 cat conftest.err >&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 if (exit $ac_status) && test -s "$ac_outfile"; then
15451 # The compiler can only warn and ignore the option if not recognized
15452 # So say no if there are warnings other than the usual output.
15453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15456 lt_cv_prog_compiler_rtti_exceptions=yes
15459 $RM conftest*
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15463 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15466 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15467 else
15478 lt_prog_compiler_wl=
15479 lt_prog_compiler_pic=
15480 lt_prog_compiler_static=
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15483 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15485 if test "$GCC" = yes; then
15486 lt_prog_compiler_wl='-Wl,'
15487 lt_prog_compiler_static='-static'
15489 case $host_os in
15490 aix*)
15491 # All AIX code is PIC.
15492 if test "$host_cpu" = ia64; then
15493 # AIX 5 now supports IA64 processor
15494 lt_prog_compiler_static='-Bstatic'
15496 lt_prog_compiler_pic='-fPIC'
15499 amigaos*)
15500 case $host_cpu in
15501 powerpc)
15502 # see comment about AmigaOS4 .so support
15503 lt_prog_compiler_pic='-fPIC'
15505 m68k)
15506 # FIXME: we need at least 68020 code to build shared libraries, but
15507 # adding the `-m68020' flag to GCC prevents building anything better,
15508 # like `-m68040'.
15509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15511 esac
15514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15515 # PIC is the default for these OSes.
15518 mingw* | cygwin* | pw32* | os2* | cegcc*)
15519 # This hack is so that the source file can tell whether it is being
15520 # built for inclusion in a dll (and should export symbols for example).
15521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15522 # (--disable-auto-import) libraries
15523 lt_prog_compiler_pic='-DDLL_EXPORT'
15526 darwin* | rhapsody*)
15527 # PIC is the default on this platform
15528 # Common symbols not allowed in MH_DYLIB files
15529 lt_prog_compiler_pic='-fno-common'
15532 haiku*)
15533 # PIC is the default for Haiku.
15534 # The "-static" flag exists, but is broken.
15535 lt_prog_compiler_static=
15538 hpux*)
15539 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15540 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15541 # sets the default TLS model and affects inlining.
15542 case $host_cpu in
15543 hppa*64*)
15544 # +Z the default
15547 lt_prog_compiler_pic='-fPIC'
15549 esac
15552 interix[3-9]*)
15553 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15554 # Instead, we relocate shared libraries at runtime.
15557 msdosdjgpp*)
15558 # Just because we use GCC doesn't mean we suddenly get shared libraries
15559 # on systems that don't support them.
15560 lt_prog_compiler_can_build_shared=no
15561 enable_shared=no
15564 *nto* | *qnx*)
15565 # QNX uses GNU C++, but need to define -shared option too, otherwise
15566 # it will coredump.
15567 lt_prog_compiler_pic='-fPIC -shared'
15570 sysv4*MP*)
15571 if test -d /usr/nec; then
15572 lt_prog_compiler_pic=-Kconform_pic
15577 lt_prog_compiler_pic='-fPIC'
15579 esac
15581 case $cc_basename in
15582 nvcc*) # Cuda Compiler Driver 2.2
15583 lt_prog_compiler_wl='-Xlinker '
15584 lt_prog_compiler_pic='-Xcompiler -fPIC'
15586 esac
15587 else
15588 # PORTME Check for flag to pass linker flags through the system compiler.
15589 case $host_os in
15590 aix*)
15591 lt_prog_compiler_wl='-Wl,'
15592 if test "$host_cpu" = ia64; then
15593 # AIX 5 now supports IA64 processor
15594 lt_prog_compiler_static='-Bstatic'
15595 else
15596 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15600 mingw* | cygwin* | pw32* | os2* | cegcc*)
15601 # This hack is so that the source file can tell whether it is being
15602 # built for inclusion in a dll (and should export symbols for example).
15603 lt_prog_compiler_pic='-DDLL_EXPORT'
15606 hpux9* | hpux10* | hpux11*)
15607 lt_prog_compiler_wl='-Wl,'
15608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15609 # not for PA HP-UX.
15610 case $host_cpu in
15611 hppa*64*|ia64*)
15612 # +Z the default
15615 lt_prog_compiler_pic='+Z'
15617 esac
15618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15619 lt_prog_compiler_static='${wl}-a ${wl}archive'
15622 irix5* | irix6* | nonstopux*)
15623 lt_prog_compiler_wl='-Wl,'
15624 # PIC (with -KPIC) is the default.
15625 lt_prog_compiler_static='-non_shared'
15628 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15629 case $cc_basename in
15630 # old Intel for x86_64 which still supported -KPIC.
15631 ecc*)
15632 lt_prog_compiler_wl='-Wl,'
15633 lt_prog_compiler_pic='-KPIC'
15634 lt_prog_compiler_static='-static'
15636 # icc used to be incompatible with GCC.
15637 # ICC 10 doesn't accept -KPIC any more.
15638 icc* | ifort*)
15639 lt_prog_compiler_wl='-Wl,'
15640 lt_prog_compiler_pic='-fPIC'
15641 lt_prog_compiler_static='-static'
15643 # Lahey Fortran 8.1.
15644 lf95*)
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='--shared'
15647 lt_prog_compiler_static='--static'
15649 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15650 # Portland Group compilers (*not* the Pentium gcc compiler,
15651 # which looks to be a dead project)
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-fpic'
15654 lt_prog_compiler_static='-Bstatic'
15656 ccc*)
15657 lt_prog_compiler_wl='-Wl,'
15658 # All Alpha code is PIC.
15659 lt_prog_compiler_static='-non_shared'
15661 xl* | bgxl* | bgf* | mpixl*)
15662 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15663 lt_prog_compiler_wl='-Wl,'
15664 lt_prog_compiler_pic='-qpic'
15665 lt_prog_compiler_static='-qstaticlink'
15668 case `$CC -V 2>&1 | sed 5q` in
15669 *Sun\ F* | *Sun*Fortran*)
15670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15671 lt_prog_compiler_pic='-KPIC'
15672 lt_prog_compiler_static='-Bstatic'
15673 lt_prog_compiler_wl=''
15675 *Sun\ C*)
15676 # Sun C 5.9
15677 lt_prog_compiler_pic='-KPIC'
15678 lt_prog_compiler_static='-Bstatic'
15679 lt_prog_compiler_wl='-Wl,'
15681 esac
15683 esac
15686 newsos6)
15687 lt_prog_compiler_pic='-KPIC'
15688 lt_prog_compiler_static='-Bstatic'
15691 *nto* | *qnx*)
15692 # QNX uses GNU C++, but need to define -shared option too, otherwise
15693 # it will coredump.
15694 lt_prog_compiler_pic='-fPIC -shared'
15697 osf3* | osf4* | osf5*)
15698 lt_prog_compiler_wl='-Wl,'
15699 # All OSF/1 code is PIC.
15700 lt_prog_compiler_static='-non_shared'
15703 rdos*)
15704 lt_prog_compiler_static='-non_shared'
15707 solaris*)
15708 lt_prog_compiler_pic='-KPIC'
15709 lt_prog_compiler_static='-Bstatic'
15710 case $cc_basename in
15711 f77* | f90* | f95*)
15712 lt_prog_compiler_wl='-Qoption ld ';;
15714 lt_prog_compiler_wl='-Wl,';;
15715 esac
15718 sunos4*)
15719 lt_prog_compiler_wl='-Qoption ld '
15720 lt_prog_compiler_pic='-PIC'
15721 lt_prog_compiler_static='-Bstatic'
15724 sysv4 | sysv4.2uw2* | sysv4.3*)
15725 lt_prog_compiler_wl='-Wl,'
15726 lt_prog_compiler_pic='-KPIC'
15727 lt_prog_compiler_static='-Bstatic'
15730 sysv4*MP*)
15731 if test -d /usr/nec ;then
15732 lt_prog_compiler_pic='-Kconform_pic'
15733 lt_prog_compiler_static='-Bstatic'
15737 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15738 lt_prog_compiler_wl='-Wl,'
15739 lt_prog_compiler_pic='-KPIC'
15740 lt_prog_compiler_static='-Bstatic'
15743 unicos*)
15744 lt_prog_compiler_wl='-Wl,'
15745 lt_prog_compiler_can_build_shared=no
15748 uts4*)
15749 lt_prog_compiler_pic='-pic'
15750 lt_prog_compiler_static='-Bstatic'
15754 lt_prog_compiler_can_build_shared=no
15756 esac
15759 case $host_os in
15760 # For platforms which do not support PIC, -DPIC is meaningless:
15761 *djgpp*)
15762 lt_prog_compiler_pic=
15765 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15767 esac
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15769 $as_echo "$lt_prog_compiler_pic" >&6; }
15777 # Check to make sure the PIC flag actually works.
15779 if test -n "$lt_prog_compiler_pic"; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15781 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15782 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 lt_cv_prog_compiler_pic_works=no
15786 ac_outfile=conftest.$ac_objext
15787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15788 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15789 # Insert the option either (1) after the last *FLAGS variable, or
15790 # (2) before a word containing "conftest.", or (3) at the end.
15791 # Note that $ac_compile itself does not contain backslashes and begins
15792 # with a dollar sign (not a hyphen), so the echo should work correctly.
15793 # The option is referenced via a variable to avoid confusing sed.
15794 lt_compile=`echo "$ac_compile" | $SED \
15795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797 -e 's:$: $lt_compiler_flag:'`
15798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15799 (eval "$lt_compile" 2>conftest.err)
15800 ac_status=$?
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 if (exit $ac_status) && test -s "$ac_outfile"; then
15804 # The compiler can only warn and ignore the option if not recognized
15805 # So say no if there are warnings other than the usual output.
15806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15809 lt_cv_prog_compiler_pic_works=yes
15812 $RM conftest*
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15816 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15818 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15819 case $lt_prog_compiler_pic in
15820 "" | " "*) ;;
15821 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15822 esac
15823 else
15824 lt_prog_compiler_pic=
15825 lt_prog_compiler_can_build_shared=no
15836 # Check to make sure the static flag actually works.
15838 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15840 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15841 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15842 $as_echo_n "(cached) " >&6
15843 else
15844 lt_cv_prog_compiler_static_works=no
15845 save_LDFLAGS="$LDFLAGS"
15846 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15847 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15848 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15849 # The linker can only warn and ignore the option if not recognized
15850 # So say no if there are warnings
15851 if test -s conftest.err; then
15852 # Append any errors to the config.log.
15853 cat conftest.err 1>&5
15854 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15855 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15856 if diff conftest.exp conftest.er2 >/dev/null; then
15857 lt_cv_prog_compiler_static_works=yes
15859 else
15860 lt_cv_prog_compiler_static_works=yes
15863 $RM -r conftest*
15864 LDFLAGS="$save_LDFLAGS"
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15868 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15870 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15872 else
15873 lt_prog_compiler_static=
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15883 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 lt_cv_prog_compiler_c_o=no
15888 $RM -r conftest 2>/dev/null
15889 mkdir conftest
15890 cd conftest
15891 mkdir out
15892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15894 lt_compiler_flag="-o out/conftest2.$ac_objext"
15895 # Insert the option either (1) after the last *FLAGS variable, or
15896 # (2) before a word containing "conftest.", or (3) at the end.
15897 # Note that $ac_compile itself does not contain backslashes and begins
15898 # with a dollar sign (not a hyphen), so the echo should work correctly.
15899 lt_compile=`echo "$ac_compile" | $SED \
15900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15902 -e 's:$: $lt_compiler_flag:'`
15903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15904 (eval "$lt_compile" 2>out/conftest.err)
15905 ac_status=$?
15906 cat out/conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15909 then
15910 # The compiler can only warn and ignore the option if not recognized
15911 # So say no if there are warnings
15912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15915 lt_cv_prog_compiler_c_o=yes
15918 chmod u+w . 2>&5
15919 $RM conftest*
15920 # SGI C++ compiler will create directory out/ii_files/ for
15921 # template instantiation
15922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15923 $RM out/* && rmdir out
15924 cd ..
15925 $RM -r conftest
15926 $RM conftest*
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15930 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15938 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15939 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942 lt_cv_prog_compiler_c_o=no
15943 $RM -r conftest 2>/dev/null
15944 mkdir conftest
15945 cd conftest
15946 mkdir out
15947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15949 lt_compiler_flag="-o out/conftest2.$ac_objext"
15950 # Insert the option either (1) after the last *FLAGS variable, or
15951 # (2) before a word containing "conftest.", or (3) at the end.
15952 # Note that $ac_compile itself does not contain backslashes and begins
15953 # with a dollar sign (not a hyphen), so the echo should work correctly.
15954 lt_compile=`echo "$ac_compile" | $SED \
15955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15957 -e 's:$: $lt_compiler_flag:'`
15958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15959 (eval "$lt_compile" 2>out/conftest.err)
15960 ac_status=$?
15961 cat out/conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15964 then
15965 # The compiler can only warn and ignore the option if not recognized
15966 # So say no if there are warnings
15967 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15968 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15969 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15970 lt_cv_prog_compiler_c_o=yes
15973 chmod u+w . 2>&5
15974 $RM conftest*
15975 # SGI C++ compiler will create directory out/ii_files/ for
15976 # template instantiation
15977 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15978 $RM out/* && rmdir out
15979 cd ..
15980 $RM -r conftest
15981 $RM conftest*
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15985 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15990 hard_links="nottested"
15991 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15992 # do not overwrite the value of need_locks provided by the user
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15994 $as_echo_n "checking if we can lock with hard links... " >&6; }
15995 hard_links=yes
15996 $RM conftest*
15997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15998 touch conftest.a
15999 ln conftest.a conftest.b 2>&5 || hard_links=no
16000 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16002 $as_echo "$hard_links" >&6; }
16003 if test "$hard_links" = no; then
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16005 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16006 need_locks=warn
16008 else
16009 need_locks=no
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16018 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16020 runpath_var=
16021 allow_undefined_flag=
16022 always_export_symbols=no
16023 archive_cmds=
16024 archive_expsym_cmds=
16025 compiler_needs_object=no
16026 enable_shared_with_static_runtimes=no
16027 export_dynamic_flag_spec=
16028 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16029 hardcode_automatic=no
16030 hardcode_direct=no
16031 hardcode_direct_absolute=no
16032 hardcode_libdir_flag_spec=
16033 hardcode_libdir_flag_spec_ld=
16034 hardcode_libdir_separator=
16035 hardcode_minus_L=no
16036 hardcode_shlibpath_var=unsupported
16037 inherit_rpath=no
16038 link_all_deplibs=unknown
16039 module_cmds=
16040 module_expsym_cmds=
16041 old_archive_from_new_cmds=
16042 old_archive_from_expsyms_cmds=
16043 thread_safe_flag_spec=
16044 whole_archive_flag_spec=
16045 # include_expsyms should be a list of space-separated symbols to be *always*
16046 # included in the symbol list
16047 include_expsyms=
16048 # exclude_expsyms can be an extended regexp of symbols to exclude
16049 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16050 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16051 # as well as any symbol that contains `d'.
16052 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16053 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16054 # platforms (ab)use it in PIC code, but their linkers get confused if
16055 # the symbol is explicitly referenced. Since portable code cannot
16056 # rely on this symbol name, it's probably fine to never include it in
16057 # preloaded symbol tables.
16058 # Exclude shared library initialization/finalization symbols.
16059 extract_expsyms_cmds=
16061 case $host_os in
16062 cygwin* | mingw* | pw32* | cegcc*)
16063 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16064 # When not using gcc, we currently assume that we are using
16065 # Microsoft Visual C++.
16066 if test "$GCC" != yes; then
16067 with_gnu_ld=no
16070 interix*)
16071 # we just hope/assume this is gcc and not c89 (= MSVC++)
16072 with_gnu_ld=yes
16074 openbsd*)
16075 with_gnu_ld=no
16077 esac
16079 ld_shlibs=yes
16081 # On some targets, GNU ld is compatible enough with the native linker
16082 # that we're better off using the native interface for both.
16083 lt_use_gnu_ld_interface=no
16084 if test "$with_gnu_ld" = yes; then
16085 case $host_os in
16086 aix*)
16087 # The AIX port of GNU ld has always aspired to compatibility
16088 # with the native linker. However, as the warning in the GNU ld
16089 # block says, versions before 2.19.5* couldn't really create working
16090 # shared libraries, regardless of the interface used.
16091 case `$LD -v 2>&1` in
16092 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16093 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16094 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16096 lt_use_gnu_ld_interface=yes
16098 esac
16101 lt_use_gnu_ld_interface=yes
16103 esac
16106 if test "$lt_use_gnu_ld_interface" = yes; then
16107 # If archive_cmds runs LD, not CC, wlarc should be empty
16108 wlarc='${wl}'
16110 # Set some defaults for GNU ld with shared library support. These
16111 # are reset later if shared libraries are not supported. Putting them
16112 # here allows them to be overridden if necessary.
16113 runpath_var=LD_RUN_PATH
16114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16115 export_dynamic_flag_spec='${wl}--export-dynamic'
16116 # ancient GNU ld didn't support --whole-archive et. al.
16117 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16118 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16119 else
16120 whole_archive_flag_spec=
16122 supports_anon_versioning=no
16123 case `$LD -v 2>&1` in
16124 *GNU\ gold*) supports_anon_versioning=yes ;;
16125 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16128 *\ 2.11.*) ;; # other 2.11 versions
16129 *) supports_anon_versioning=yes ;;
16130 esac
16132 # See if GNU ld supports shared libraries.
16133 case $host_os in
16134 aix[3-9]*)
16135 # On AIX/PPC, the GNU linker is very broken
16136 if test "$host_cpu" != ia64; then
16137 ld_shlibs=no
16138 cat <<_LT_EOF 1>&2
16140 *** Warning: the GNU linker, at least up to release 2.19, is reported
16141 *** to be unable to reliably create shared libraries on AIX.
16142 *** Therefore, libtool is disabling shared libraries support. If you
16143 *** really care for shared libraries, you may want to install binutils
16144 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16145 *** You will then need to restart the configuration process.
16147 _LT_EOF
16151 amigaos*)
16152 case $host_cpu in
16153 powerpc)
16154 # see comment about AmigaOS4 .so support
16155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16156 archive_expsym_cmds=''
16158 m68k)
16159 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)'
16160 hardcode_libdir_flag_spec='-L$libdir'
16161 hardcode_minus_L=yes
16163 esac
16166 beos*)
16167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16168 allow_undefined_flag=unsupported
16169 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16170 # support --undefined. This deserves some investigation. FIXME
16171 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172 else
16173 ld_shlibs=no
16177 cygwin* | mingw* | pw32* | cegcc*)
16178 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16179 # as there is no search path for DLLs.
16180 hardcode_libdir_flag_spec='-L$libdir'
16181 export_dynamic_flag_spec='${wl}--export-all-symbols'
16182 allow_undefined_flag=unsupported
16183 always_export_symbols=no
16184 enable_shared_with_static_runtimes=yes
16185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16187 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16189 # If the export-symbols file already is a .def file (1st line
16190 # is EXPORTS), use it as is; otherwise, prepend...
16191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16192 cp $export_symbols $output_objdir/$soname.def;
16193 else
16194 echo EXPORTS > $output_objdir/$soname.def;
16195 cat $export_symbols >> $output_objdir/$soname.def;
16197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16198 else
16199 ld_shlibs=no
16203 haiku*)
16204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 link_all_deplibs=yes
16208 interix[3-9]*)
16209 hardcode_direct=no
16210 hardcode_shlibpath_var=no
16211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16212 export_dynamic_flag_spec='${wl}-E'
16213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16214 # Instead, shared libraries are loaded at an image base (0x10000000 by
16215 # default) and relocated if they conflict, which is a slow very memory
16216 # consuming and fragmenting process. To avoid this, we pick a random,
16217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16219 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16220 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'
16223 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16224 tmp_diet=no
16225 if test "$host_os" = linux-dietlibc; then
16226 case $cc_basename in
16227 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16228 esac
16230 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16231 && test "$tmp_diet" = no
16232 then
16233 tmp_addflag=' $pic_flag'
16234 tmp_sharedflag='-shared'
16235 case $cc_basename,$host_cpu in
16236 pgcc*) # Portland Group C compiler
16237 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'
16238 tmp_addflag=' $pic_flag'
16240 pgf77* | pgf90* | pgf95* | pgfortran*)
16241 # Portland Group f77 and f90 compilers
16242 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'
16243 tmp_addflag=' $pic_flag -Mnomain' ;;
16244 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16245 tmp_addflag=' -i_dynamic' ;;
16246 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16247 tmp_addflag=' -i_dynamic -nofor_main' ;;
16248 ifc* | ifort*) # Intel Fortran compiler
16249 tmp_addflag=' -nofor_main' ;;
16250 lf95*) # Lahey Fortran 8.1
16251 whole_archive_flag_spec=
16252 tmp_sharedflag='--shared' ;;
16253 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16254 tmp_sharedflag='-qmkshrobj'
16255 tmp_addflag= ;;
16256 nvcc*) # Cuda Compiler Driver 2.2
16257 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'
16258 compiler_needs_object=yes
16260 esac
16261 case `$CC -V 2>&1 | sed 5q` in
16262 *Sun\ C*) # Sun C 5.9
16263 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'
16264 compiler_needs_object=yes
16265 tmp_sharedflag='-G' ;;
16266 *Sun\ F*) # Sun Fortran 8.3
16267 tmp_sharedflag='-G' ;;
16268 esac
16269 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16271 if test "x$supports_anon_versioning" = xyes; then
16272 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16274 echo "local: *; };" >> $output_objdir/$libname.ver~
16275 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16278 case $cc_basename in
16279 xlf* | bgf* | bgxlf* | mpixlf*)
16280 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16281 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16282 hardcode_libdir_flag_spec=
16283 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16284 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16285 if test "x$supports_anon_versioning" = xyes; then
16286 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16288 echo "local: *; };" >> $output_objdir/$libname.ver~
16289 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16292 esac
16293 else
16294 ld_shlibs=no
16298 netbsd*)
16299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16300 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16301 wlarc=
16302 else
16303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16308 solaris*)
16309 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16310 ld_shlibs=no
16311 cat <<_LT_EOF 1>&2
16313 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16314 *** create shared libraries on Solaris systems. Therefore, libtool
16315 *** is disabling shared libraries support. We urge you to upgrade GNU
16316 *** binutils to release 2.9.1 or newer. Another option is to modify
16317 *** your PATH or compiler configuration so that the native linker is
16318 *** used, and then restart.
16320 _LT_EOF
16321 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16324 else
16325 ld_shlibs=no
16329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16330 case `$LD -v 2>&1` in
16331 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16332 ld_shlibs=no
16333 cat <<_LT_EOF 1>&2
16335 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16336 *** reliably create shared libraries on SCO systems. Therefore, libtool
16337 *** is disabling shared libraries support. We urge you to upgrade GNU
16338 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16339 *** your PATH or compiler configuration so that the native linker is
16340 *** used, and then restart.
16342 _LT_EOF
16345 # For security reasons, it is highly recommended that you always
16346 # use absolute paths for naming shared libraries, and exclude the
16347 # DT_RUNPATH tag from executables and libraries. But doing so
16348 # requires that you compile everything twice, which is a pain.
16349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16353 else
16354 ld_shlibs=no
16357 esac
16360 sunos4*)
16361 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362 wlarc=
16363 hardcode_direct=yes
16364 hardcode_shlibpath_var=no
16368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16371 else
16372 ld_shlibs=no
16375 esac
16377 if test "$ld_shlibs" = no; then
16378 runpath_var=
16379 hardcode_libdir_flag_spec=
16380 export_dynamic_flag_spec=
16381 whole_archive_flag_spec=
16383 else
16384 # PORTME fill in a description of your system's linker (not GNU ld)
16385 case $host_os in
16386 aix3*)
16387 allow_undefined_flag=unsupported
16388 always_export_symbols=yes
16389 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'
16390 # Note: this linker hardcodes the directories in LIBPATH if there
16391 # are no directories specified by -L.
16392 hardcode_minus_L=yes
16393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16394 # Neither direct hardcoding nor static linking is supported with a
16395 # broken collect2.
16396 hardcode_direct=unsupported
16400 aix[4-9]*)
16401 if test "$host_cpu" = ia64; then
16402 # On IA64, the linker does run time linking by default, so we don't
16403 # have to do anything special.
16404 aix_use_runtimelinking=no
16405 exp_sym_flag='-Bexport'
16406 no_entry_flag=""
16407 else
16408 # If we're using GNU nm, then we don't want the "-C" option.
16409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16410 # Also, AIX nm treats weak defined symbols like other global
16411 # defined symbols, whereas GNU nm marks them as "W".
16412 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16413 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'
16414 else
16415 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'
16417 aix_use_runtimelinking=no
16419 # Test if we are trying to use run time linking or normal
16420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16421 # need to do runtime linking.
16422 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16423 for ld_flag in $LDFLAGS; do
16424 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16425 aix_use_runtimelinking=yes
16426 break
16428 done
16430 esac
16432 exp_sym_flag='-bexport'
16433 no_entry_flag='-bnoentry'
16436 # When large executables or shared objects are built, AIX ld can
16437 # have problems creating the table of contents. If linking a library
16438 # or program results in "error TOC overflow" add -mminimal-toc to
16439 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16440 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16442 archive_cmds=''
16443 hardcode_direct=yes
16444 hardcode_direct_absolute=yes
16445 hardcode_libdir_separator=':'
16446 link_all_deplibs=yes
16447 file_list_spec='${wl}-f,'
16449 if test "$GCC" = yes; then
16450 case $host_os in aix4.[012]|aix4.[012].*)
16451 # We only want to do this on AIX 4.2 and lower, the check
16452 # below for broken collect2 doesn't work under 4.3+
16453 collect2name=`${CC} -print-prog-name=collect2`
16454 if test -f "$collect2name" &&
16455 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16456 then
16457 # We have reworked collect2
16459 else
16460 # We have old collect2
16461 hardcode_direct=unsupported
16462 # It fails to find uninstalled libraries when the uninstalled
16463 # path is not listed in the libpath. Setting hardcode_minus_L
16464 # to unsupported forces relinking
16465 hardcode_minus_L=yes
16466 hardcode_libdir_flag_spec='-L$libdir'
16467 hardcode_libdir_separator=
16470 esac
16471 shared_flag='-shared'
16472 if test "$aix_use_runtimelinking" = yes; then
16473 shared_flag="$shared_flag "'${wl}-G'
16475 else
16476 # not using gcc
16477 if test "$host_cpu" = ia64; then
16478 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16479 # chokes on -Wl,-G. The following line is correct:
16480 shared_flag='-G'
16481 else
16482 if test "$aix_use_runtimelinking" = yes; then
16483 shared_flag='${wl}-G'
16484 else
16485 shared_flag='${wl}-bM:SRE'
16490 export_dynamic_flag_spec='${wl}-bexpall'
16491 # It seems that -bexpall does not export symbols beginning with
16492 # underscore (_), so it is better to generate a list of symbols to export.
16493 always_export_symbols=yes
16494 if test "$aix_use_runtimelinking" = yes; then
16495 # Warning - without using the other runtime loading flags (-brtl),
16496 # -berok will link without error, but may produce a broken library.
16497 allow_undefined_flag='-berok'
16498 # Determine the default libpath from the value encoded in an
16499 # empty executable.
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16504 main ()
16508 return 0;
16510 _ACEOF
16511 if ac_fn_c_try_link "$LINENO"; then :
16513 lt_aix_libpath_sed='
16514 /Import File Strings/,/^$/ {
16515 /^0/ {
16516 s/^0 *\(.*\)$/\1/
16520 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16521 # Check for a 64-bit object if we didn't find anything.
16522 if test -z "$aix_libpath"; then
16523 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16526 rm -f core conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
16528 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16531 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"
16532 else
16533 if test "$host_cpu" = ia64; then
16534 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16535 allow_undefined_flag="-z nodefs"
16536 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"
16537 else
16538 # Determine the default libpath from the value encoded in an
16539 # empty executable.
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16544 main ()
16548 return 0;
16550 _ACEOF
16551 if ac_fn_c_try_link "$LINENO"; then :
16553 lt_aix_libpath_sed='
16554 /Import File Strings/,/^$/ {
16555 /^0/ {
16556 s/^0 *\(.*\)$/\1/
16560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16561 # Check for a 64-bit object if we didn't find anything.
16562 if test -z "$aix_libpath"; then
16563 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16570 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16571 # Warning - without using the other run time loading flags,
16572 # -berok will link without error, but may produce a broken library.
16573 no_undefined_flag=' ${wl}-bernotok'
16574 allow_undefined_flag=' ${wl}-berok'
16575 if test "$with_gnu_ld" = yes; then
16576 # We only use this code for GNU lds that support --whole-archive.
16577 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16578 else
16579 # Exported symbols can be pulled into shared objects from archives
16580 whole_archive_flag_spec='$convenience'
16582 archive_cmds_need_lc=yes
16583 # This is similar to how AIX traditionally builds its shared libraries.
16584 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'
16589 amigaos*)
16590 case $host_cpu in
16591 powerpc)
16592 # see comment about AmigaOS4 .so support
16593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16594 archive_expsym_cmds=''
16596 m68k)
16597 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)'
16598 hardcode_libdir_flag_spec='-L$libdir'
16599 hardcode_minus_L=yes
16601 esac
16604 bsdi[45]*)
16605 export_dynamic_flag_spec=-rdynamic
16608 cygwin* | mingw* | pw32* | cegcc*)
16609 # When not using gcc, we currently assume that we are using
16610 # Microsoft Visual C++.
16611 # hardcode_libdir_flag_spec is actually meaningless, as there is
16612 # no search path for DLLs.
16613 hardcode_libdir_flag_spec=' '
16614 allow_undefined_flag=unsupported
16615 # Tell ltmain to make .lib files, not .a files.
16616 libext=lib
16617 # Tell ltmain to make .dll files, not .so files.
16618 shrext_cmds=".dll"
16619 # FIXME: Setting linknames here is a bad hack.
16620 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16621 # The linker will automatically build a .lib file if we build a DLL.
16622 old_archive_from_new_cmds='true'
16623 # FIXME: Should let the user specify the lib program.
16624 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16625 fix_srcfile_path='`cygpath -w "$srcfile"`'
16626 enable_shared_with_static_runtimes=yes
16629 darwin* | rhapsody*)
16632 archive_cmds_need_lc=no
16633 hardcode_direct=no
16634 hardcode_automatic=yes
16635 hardcode_shlibpath_var=unsupported
16636 if test "$lt_cv_ld_force_load" = "yes"; then
16637 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\"`'
16638 else
16639 whole_archive_flag_spec=''
16641 link_all_deplibs=yes
16642 allow_undefined_flag="$_lt_dar_allow_undefined"
16643 case $cc_basename in
16644 ifort*) _lt_dar_can_shared=yes ;;
16645 *) _lt_dar_can_shared=$GCC ;;
16646 esac
16647 if test "$_lt_dar_can_shared" = "yes"; then
16648 output_verbose_link_cmd=func_echo_all
16649 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16650 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16651 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}"
16652 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}"
16654 else
16655 ld_shlibs=no
16660 dgux*)
16661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_libdir_flag_spec='-L$libdir'
16663 hardcode_shlibpath_var=no
16666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16667 # support. Future versions do this automatically, but an explicit c++rt0.o
16668 # does not break anything, and helps significantly (at the cost of a little
16669 # extra space).
16670 freebsd2.2*)
16671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16672 hardcode_libdir_flag_spec='-R$libdir'
16673 hardcode_direct=yes
16674 hardcode_shlibpath_var=no
16677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16678 freebsd2.*)
16679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16680 hardcode_direct=yes
16681 hardcode_minus_L=yes
16682 hardcode_shlibpath_var=no
16685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16686 freebsd* | dragonfly*)
16687 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16688 hardcode_libdir_flag_spec='-R$libdir'
16689 hardcode_direct=yes
16690 hardcode_shlibpath_var=no
16693 hpux9*)
16694 if test "$GCC" = yes; then
16695 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'
16696 else
16697 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'
16699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16700 hardcode_libdir_separator=:
16701 hardcode_direct=yes
16703 # hardcode_minus_L: Not really in the search PATH,
16704 # but as the default location of the library.
16705 hardcode_minus_L=yes
16706 export_dynamic_flag_spec='${wl}-E'
16709 hpux10*)
16710 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16711 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16712 else
16713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16715 if test "$with_gnu_ld" = no; then
16716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16717 hardcode_libdir_flag_spec_ld='+b $libdir'
16718 hardcode_libdir_separator=:
16719 hardcode_direct=yes
16720 hardcode_direct_absolute=yes
16721 export_dynamic_flag_spec='${wl}-E'
16722 # hardcode_minus_L: Not really in the search PATH,
16723 # but as the default location of the library.
16724 hardcode_minus_L=yes
16728 hpux11*)
16729 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16730 case $host_cpu in
16731 hppa*64*)
16732 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16734 ia64*)
16735 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16740 esac
16741 else
16742 case $host_cpu in
16743 hppa*64*)
16744 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16746 ia64*)
16747 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16751 # Older versions of the 11.00 compiler do not understand -b yet
16752 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16754 $as_echo_n "checking if $CC understands -b... " >&6; }
16755 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16756 $as_echo_n "(cached) " >&6
16757 else
16758 lt_cv_prog_compiler__b=no
16759 save_LDFLAGS="$LDFLAGS"
16760 LDFLAGS="$LDFLAGS -b"
16761 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16763 # The linker can only warn and ignore the option if not recognized
16764 # So say no if there are warnings
16765 if test -s conftest.err; then
16766 # Append any errors to the config.log.
16767 cat conftest.err 1>&5
16768 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16770 if diff conftest.exp conftest.er2 >/dev/null; then
16771 lt_cv_prog_compiler__b=yes
16773 else
16774 lt_cv_prog_compiler__b=yes
16777 $RM -r conftest*
16778 LDFLAGS="$save_LDFLAGS"
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16782 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16784 if test x"$lt_cv_prog_compiler__b" = xyes; then
16785 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16786 else
16787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16791 esac
16793 if test "$with_gnu_ld" = no; then
16794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16795 hardcode_libdir_separator=:
16797 case $host_cpu in
16798 hppa*64*|ia64*)
16799 hardcode_direct=no
16800 hardcode_shlibpath_var=no
16803 hardcode_direct=yes
16804 hardcode_direct_absolute=yes
16805 export_dynamic_flag_spec='${wl}-E'
16807 # hardcode_minus_L: Not really in the search PATH,
16808 # but as the default location of the library.
16809 hardcode_minus_L=yes
16811 esac
16815 irix5* | irix6* | nonstopux*)
16816 if test "$GCC" = yes; then
16817 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'
16818 # Try to use the -exported_symbol ld option, if it does not
16819 # work, assume that -exports_file does not work either and
16820 # implicitly export all symbols.
16821 save_LDFLAGS="$LDFLAGS"
16822 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16825 int foo(void) {}
16826 _ACEOF
16827 if ac_fn_c_try_link "$LINENO"; then :
16828 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'
16831 rm -f core conftest.err conftest.$ac_objext \
16832 conftest$ac_exeext conftest.$ac_ext
16833 LDFLAGS="$save_LDFLAGS"
16834 else
16835 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'
16836 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'
16838 archive_cmds_need_lc='no'
16839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16840 hardcode_libdir_separator=:
16841 inherit_rpath=yes
16842 link_all_deplibs=yes
16845 netbsd*)
16846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16848 else
16849 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16851 hardcode_libdir_flag_spec='-R$libdir'
16852 hardcode_direct=yes
16853 hardcode_shlibpath_var=no
16856 newsos6)
16857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16858 hardcode_direct=yes
16859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16860 hardcode_libdir_separator=:
16861 hardcode_shlibpath_var=no
16864 *nto* | *qnx*)
16867 openbsd*)
16868 if test -f /usr/libexec/ld.so; then
16869 hardcode_direct=yes
16870 hardcode_shlibpath_var=no
16871 hardcode_direct_absolute=yes
16872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16874 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16876 export_dynamic_flag_spec='${wl}-E'
16877 else
16878 case $host_os in
16879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_libdir_flag_spec='-R$libdir'
16884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16887 esac
16889 else
16890 ld_shlibs=no
16894 os2*)
16895 hardcode_libdir_flag_spec='-L$libdir'
16896 hardcode_minus_L=yes
16897 allow_undefined_flag=unsupported
16898 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'
16899 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16902 osf3*)
16903 if test "$GCC" = yes; then
16904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16905 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'
16906 else
16907 allow_undefined_flag=' -expect_unresolved \*'
16908 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'
16910 archive_cmds_need_lc='no'
16911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16912 hardcode_libdir_separator=:
16915 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-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'
16919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16920 else
16921 allow_undefined_flag=' -expect_unresolved \*'
16922 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'
16923 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~
16924 $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'
16926 # Both c and cxx compiler support -rpath directly
16927 hardcode_libdir_flag_spec='-rpath $libdir'
16929 archive_cmds_need_lc='no'
16930 hardcode_libdir_separator=:
16933 solaris*)
16934 no_undefined_flag=' -z defs'
16935 if test "$GCC" = yes; then
16936 wlarc='${wl}'
16937 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16939 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16940 else
16941 case `$CC -V 2>&1` in
16942 *"Compilers 5.0"*)
16943 wlarc=''
16944 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16949 wlarc='${wl}'
16950 archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16954 esac
16956 hardcode_libdir_flag_spec='-R$libdir'
16957 hardcode_shlibpath_var=no
16958 case $host_os in
16959 solaris2.[0-5] | solaris2.[0-5].*) ;;
16961 # The compiler driver will combine and reorder linker options,
16962 # but understands `-z linker_flag'. GCC discards it without `$wl',
16963 # but is careful enough not to reorder.
16964 # Supported since Solaris 2.6 (maybe 2.5.1?)
16965 if test "$GCC" = yes; then
16966 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16967 else
16968 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16971 esac
16972 link_all_deplibs=yes
16975 sunos4*)
16976 if test "x$host_vendor" = xsequent; then
16977 # Use $CC to link under sequent, because it throws in some extra .o
16978 # files that make .init and .fini sections work.
16979 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16980 else
16981 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16983 hardcode_libdir_flag_spec='-L$libdir'
16984 hardcode_direct=yes
16985 hardcode_minus_L=yes
16986 hardcode_shlibpath_var=no
16989 sysv4)
16990 case $host_vendor in
16991 sni)
16992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16993 hardcode_direct=yes # is this really true???
16995 siemens)
16996 ## LD is ld it makes a PLAMLIB
16997 ## CC just makes a GrossModule.
16998 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16999 reload_cmds='$CC -r -o $output$reload_objs'
17000 hardcode_direct=no
17002 motorola)
17003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17004 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17006 esac
17007 runpath_var='LD_RUN_PATH'
17008 hardcode_shlibpath_var=no
17011 sysv4.3*)
17012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_shlibpath_var=no
17014 export_dynamic_flag_spec='-Bexport'
17017 sysv4*MP*)
17018 if test -d /usr/nec; then
17019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17020 hardcode_shlibpath_var=no
17021 runpath_var=LD_RUN_PATH
17022 hardcode_runpath_var=yes
17023 ld_shlibs=yes
17027 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17028 no_undefined_flag='${wl}-z,text'
17029 archive_cmds_need_lc=no
17030 hardcode_shlibpath_var=no
17031 runpath_var='LD_RUN_PATH'
17033 if test "$GCC" = yes; then
17034 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17035 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17036 else
17037 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17038 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17042 sysv5* | sco3.2v5* | sco5v6*)
17043 # Note: We can NOT use -z defs as we might desire, because we do not
17044 # link with -lc, and that would cause any symbols used from libc to
17045 # always be unresolved, which means just about no library would
17046 # ever link correctly. If we're not using GNU ld we use -z text
17047 # though, which does catch some bad symbols but isn't as heavy-handed
17048 # as -z defs.
17049 no_undefined_flag='${wl}-z,text'
17050 allow_undefined_flag='${wl}-z,nodefs'
17051 archive_cmds_need_lc=no
17052 hardcode_shlibpath_var=no
17053 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17054 hardcode_libdir_separator=':'
17055 link_all_deplibs=yes
17056 export_dynamic_flag_spec='${wl}-Bexport'
17057 runpath_var='LD_RUN_PATH'
17059 if test "$GCC" = yes; then
17060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17062 else
17063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17068 uts4*)
17069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17070 hardcode_libdir_flag_spec='-L$libdir'
17071 hardcode_shlibpath_var=no
17075 ld_shlibs=no
17077 esac
17079 if test x$host_vendor = xsni; then
17080 case $host in
17081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17082 export_dynamic_flag_spec='${wl}-Blargedynsym'
17084 esac
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17089 $as_echo "$ld_shlibs" >&6; }
17090 test "$ld_shlibs" = no && can_build_shared=no
17092 with_gnu_ld=$with_gnu_ld
17109 # Do we need to explicitly link libc?
17111 case "x$archive_cmds_need_lc" in
17112 x|xyes)
17113 # Assume -lc should be added
17114 archive_cmds_need_lc=yes
17116 if test "$enable_shared" = yes && test "$GCC" = yes; then
17117 case $archive_cmds in
17118 *'~'*)
17119 # FIXME: we may have to deal with multi-command sequences.
17121 '$CC '*)
17122 # Test whether the compiler implicitly links with -lc since on some
17123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17124 # to ld, don't add -lc before -lgcc.
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17127 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17128 $as_echo_n "(cached) " >&6
17129 else
17130 $RM conftest*
17131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17134 (eval $ac_compile) 2>&5
17135 ac_status=$?
17136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17137 test $ac_status = 0; } 2>conftest.err; then
17138 soname=conftest
17139 lib=conftest
17140 libobjs=conftest.$ac_objext
17141 deplibs=
17142 wl=$lt_prog_compiler_wl
17143 pic_flag=$lt_prog_compiler_pic
17144 compiler_flags=-v
17145 linker_flags=-v
17146 verstring=
17147 output_objdir=.
17148 libname=conftest
17149 lt_save_allow_undefined_flag=$allow_undefined_flag
17150 allow_undefined_flag=
17151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17152 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17153 ac_status=$?
17154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17155 test $ac_status = 0; }
17156 then
17157 lt_cv_archive_cmds_need_lc=no
17158 else
17159 lt_cv_archive_cmds_need_lc=yes
17161 allow_undefined_flag=$lt_save_allow_undefined_flag
17162 else
17163 cat conftest.err 1>&5
17165 $RM conftest*
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17169 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17170 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17172 esac
17175 esac
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17336 if test "$GCC" = yes; then
17337 case $host_os in
17338 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17339 *) lt_awk_arg="/^libraries:/" ;;
17340 esac
17341 case $host_os in
17342 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17343 *) lt_sed_strip_eq="s,=/,/,g" ;;
17344 esac
17345 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17346 case $lt_search_path_spec in
17347 *\;*)
17348 # if the path contains ";" then we assume it to be the separator
17349 # otherwise default to the standard path separator (i.e. ":") - it is
17350 # assumed that no part of a normal pathname contains ";" but that should
17351 # okay in the real world where ";" in dirpaths is itself problematic.
17352 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17357 esac
17358 # Ok, now we have the path, separated by spaces, we can step through it
17359 # and add multilib dir if necessary.
17360 lt_tmp_lt_search_path_spec=
17361 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17362 for lt_sys_path in $lt_search_path_spec; do
17363 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17365 else
17366 test -d "$lt_sys_path" && \
17367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17369 done
17370 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17371 BEGIN {RS=" "; FS="/|\n";} {
17372 lt_foo="";
17373 lt_count=0;
17374 for (lt_i = NF; lt_i > 0; lt_i--) {
17375 if ($lt_i != "" && $lt_i != ".") {
17376 if ($lt_i == "..") {
17377 lt_count++;
17378 } else {
17379 if (lt_count == 0) {
17380 lt_foo="/" $lt_i lt_foo;
17381 } else {
17382 lt_count--;
17387 if (lt_foo != "") { lt_freq[lt_foo]++; }
17388 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17390 # AWK program above erroneously prepends '/' to C:/dos/paths
17391 # for these hosts.
17392 case $host_os in
17393 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17394 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17395 esac
17396 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17397 else
17398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17400 library_names_spec=
17401 libname_spec='lib$name'
17402 soname_spec=
17403 shrext_cmds=".so"
17404 postinstall_cmds=
17405 postuninstall_cmds=
17406 finish_cmds=
17407 finish_eval=
17408 shlibpath_var=
17409 shlibpath_overrides_runpath=unknown
17410 version_type=none
17411 dynamic_linker="$host_os ld.so"
17412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17413 need_lib_prefix=unknown
17414 hardcode_into_libs=no
17416 # when you set need_version to no, make sure it does not cause -set_version
17417 # flags to be left without arguments
17418 need_version=unknown
17420 case $host_os in
17421 aix3*)
17422 version_type=linux
17423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17424 shlibpath_var=LIBPATH
17426 # AIX 3 has no versioning support, so we append a major version to the name.
17427 soname_spec='${libname}${release}${shared_ext}$major'
17430 aix[4-9]*)
17431 version_type=linux
17432 need_lib_prefix=no
17433 need_version=no
17434 hardcode_into_libs=yes
17435 if test "$host_cpu" = ia64; then
17436 # AIX 5 supports IA64
17437 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17438 shlibpath_var=LD_LIBRARY_PATH
17439 else
17440 # With GCC up to 2.95.x, collect2 would create an import file
17441 # for dependence libraries. The import file would start with
17442 # the line `#! .'. This would cause the generated library to
17443 # depend on `.', always an invalid library. This was fixed in
17444 # development snapshots of GCC prior to 3.0.
17445 case $host_os in
17446 aix4 | aix4.[01] | aix4.[01].*)
17447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17448 echo ' yes '
17449 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17451 else
17452 can_build_shared=no
17455 esac
17456 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17457 # soname into executable. Probably we can add versioning support to
17458 # collect2, so additional links can be useful in future.
17459 if test "$aix_use_runtimelinking" = yes; then
17460 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17461 # instead of lib<name>.a to let people know that these are not
17462 # typical AIX shared libraries.
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 else
17465 # We preserve .a as extension for shared libraries through AIX4.2
17466 # and later when we are not doing run time linking.
17467 library_names_spec='${libname}${release}.a $libname.a'
17468 soname_spec='${libname}${release}${shared_ext}$major'
17470 shlibpath_var=LIBPATH
17474 amigaos*)
17475 case $host_cpu in
17476 powerpc)
17477 # Since July 2007 AmigaOS4 officially supports .so libraries.
17478 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481 m68k)
17482 library_names_spec='$libname.ixlibrary $libname.a'
17483 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17484 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'
17486 esac
17489 beos*)
17490 library_names_spec='${libname}${shared_ext}'
17491 dynamic_linker="$host_os ld.so"
17492 shlibpath_var=LIBRARY_PATH
17495 bsdi[45]*)
17496 version_type=linux
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17501 shlibpath_var=LD_LIBRARY_PATH
17502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17504 # the default ld.so.conf also contains /usr/contrib/lib and
17505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17506 # libtool to hard-code these into programs
17509 cygwin* | mingw* | pw32* | cegcc*)
17510 version_type=windows
17511 shrext_cmds=".dll"
17512 need_version=no
17513 need_lib_prefix=no
17515 case $GCC,$host_os in
17516 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17517 library_names_spec='$libname.dll.a'
17518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17519 postinstall_cmds='base_file=`basename \${file}`~
17520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17521 dldir=$destdir/`dirname \$dlpath`~
17522 test -d \$dldir || mkdir -p \$dldir~
17523 $install_prog $dir/$dlname \$dldir/$dlname~
17524 chmod a+x \$dldir/$dlname~
17525 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17526 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17529 dlpath=$dir/\$dldll~
17530 $RM \$dlpath'
17531 shlibpath_overrides_runpath=yes
17533 case $host_os in
17534 cygwin*)
17535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17538 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17540 mingw* | cegcc*)
17541 # MinGW DLLs use traditional 'lib' prefix
17542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17544 pw32*)
17545 # pw32 DLLs use 'pw' prefix rather than 'lib'
17546 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17548 esac
17552 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17554 esac
17555 dynamic_linker='Win32 ld.exe'
17556 # FIXME: first we should search . and the directory the executable is in
17557 shlibpath_var=PATH
17560 darwin* | rhapsody*)
17561 dynamic_linker="$host_os dyld"
17562 version_type=darwin
17563 need_lib_prefix=no
17564 need_version=no
17565 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17566 soname_spec='${libname}${release}${major}$shared_ext'
17567 shlibpath_overrides_runpath=yes
17568 shlibpath_var=DYLD_LIBRARY_PATH
17569 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17571 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17575 dgux*)
17576 version_type=linux
17577 need_lib_prefix=no
17578 need_version=no
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 shlibpath_var=LD_LIBRARY_PATH
17584 freebsd* | dragonfly*)
17585 # DragonFly does not have aout. When/if they implement a new
17586 # versioning mechanism, adjust this.
17587 if test -x /usr/bin/objformat; then
17588 objformat=`/usr/bin/objformat`
17589 else
17590 case $host_os in
17591 freebsd[23].*) objformat=aout ;;
17592 *) objformat=elf ;;
17593 esac
17595 version_type=freebsd-$objformat
17596 case $version_type in
17597 freebsd-elf*)
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17599 need_version=no
17600 need_lib_prefix=no
17602 freebsd-*)
17603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17604 need_version=yes
17606 esac
17607 shlibpath_var=LD_LIBRARY_PATH
17608 case $host_os in
17609 freebsd2.*)
17610 shlibpath_overrides_runpath=yes
17612 freebsd3.[01]* | freebsdelf3.[01]*)
17613 shlibpath_overrides_runpath=yes
17614 hardcode_into_libs=yes
17616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17618 shlibpath_overrides_runpath=no
17619 hardcode_into_libs=yes
17621 *) # from 4.6 on, and DragonFly
17622 shlibpath_overrides_runpath=yes
17623 hardcode_into_libs=yes
17625 esac
17628 gnu*)
17629 version_type=linux
17630 need_lib_prefix=no
17631 need_version=no
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17633 soname_spec='${libname}${release}${shared_ext}$major'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 hardcode_into_libs=yes
17638 haiku*)
17639 version_type=linux
17640 need_lib_prefix=no
17641 need_version=no
17642 dynamic_linker="$host_os runtime_loader"
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 shlibpath_var=LIBRARY_PATH
17646 shlibpath_overrides_runpath=yes
17647 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17648 hardcode_into_libs=yes
17651 hpux9* | hpux10* | hpux11*)
17652 # Give a soname corresponding to the major version so that dld.sl refuses to
17653 # link against other versions.
17654 version_type=sunos
17655 need_lib_prefix=no
17656 need_version=no
17657 case $host_cpu in
17658 ia64*)
17659 shrext_cmds='.so'
17660 hardcode_into_libs=yes
17661 dynamic_linker="$host_os dld.so"
17662 shlibpath_var=LD_LIBRARY_PATH
17663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 if test "X$HPUX_IA64_MODE" = X32; then
17667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17668 else
17669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17673 hppa*64*)
17674 shrext_cmds='.sl'
17675 hardcode_into_libs=yes
17676 dynamic_linker="$host_os dld.sl"
17677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17685 shrext_cmds='.sl'
17686 dynamic_linker="$host_os dld.sl"
17687 shlibpath_var=SHLIB_PATH
17688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17692 esac
17693 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17694 postinstall_cmds='chmod 555 $lib'
17695 # or fails outright, so override atomically:
17696 install_override_mode=555
17699 interix[3-9]*)
17700 version_type=linux
17701 need_lib_prefix=no
17702 need_version=no
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath=no
17708 hardcode_into_libs=yes
17711 irix5* | irix6* | nonstopux*)
17712 case $host_os in
17713 nonstopux*) version_type=nonstopux ;;
17715 if test "$lt_cv_prog_gnu_ld" = yes; then
17716 version_type=linux
17717 else
17718 version_type=irix
17719 fi ;;
17720 esac
17721 need_lib_prefix=no
17722 need_version=no
17723 soname_spec='${libname}${release}${shared_ext}$major'
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17725 case $host_os in
17726 irix5* | nonstopux*)
17727 libsuff= shlibsuff=
17730 case $LD in # libtool.m4 will add one of these switches to LD
17731 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17732 libsuff= shlibsuff= libmagic=32-bit;;
17733 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17734 libsuff=32 shlibsuff=N32 libmagic=N32;;
17735 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17736 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17737 *) libsuff= shlibsuff= libmagic=never-match;;
17738 esac
17740 esac
17741 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17742 shlibpath_overrides_runpath=no
17743 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17744 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17745 hardcode_into_libs=yes
17748 # No shared lib support for Linux oldld, aout, or coff.
17749 linux*oldld* | linux*aout* | linux*coff*)
17750 dynamic_linker=no
17753 # This must be Linux ELF.
17754 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17755 version_type=linux
17756 need_lib_prefix=no
17757 need_version=no
17758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17759 soname_spec='${libname}${release}${shared_ext}$major'
17760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17761 shlibpath_var=LD_LIBRARY_PATH
17762 shlibpath_overrides_runpath=no
17764 # Some binutils ld are patched to set DT_RUNPATH
17765 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17766 $as_echo_n "(cached) " >&6
17767 else
17768 lt_cv_shlibpath_overrides_runpath=no
17769 save_LDFLAGS=$LDFLAGS
17770 save_libdir=$libdir
17771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17777 main ()
17781 return 0;
17783 _ACEOF
17784 if ac_fn_c_try_link "$LINENO"; then :
17785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17786 lt_cv_shlibpath_overrides_runpath=yes
17789 rm -f core conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
17791 LDFLAGS=$save_LDFLAGS
17792 libdir=$save_libdir
17796 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17798 # This implies no fast_install, which is unacceptable.
17799 # Some rework will be needed to allow for fast_install
17800 # before this can be enabled.
17801 hardcode_into_libs=yes
17803 # Append ld.so.conf contents to the search path
17804 if test -f /etc/ld.so.conf; then
17805 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' ' '`
17806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17809 # We used to test for /lib/ld.so.1 and disable shared libraries on
17810 # powerpc, because MkLinux only supported shared libraries with the
17811 # GNU dynamic linker. Since this was broken with cross compilers,
17812 # most powerpc-linux boxes support dynamic linking these days and
17813 # people can always --disable-shared, the test was removed, and we
17814 # assume the GNU/Linux dynamic linker is in use.
17815 dynamic_linker='GNU/Linux ld.so'
17818 netbsd*)
17819 version_type=sunos
17820 need_lib_prefix=no
17821 need_version=no
17822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17825 dynamic_linker='NetBSD (a.out) ld.so'
17826 else
17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17828 soname_spec='${libname}${release}${shared_ext}$major'
17829 dynamic_linker='NetBSD ld.elf_so'
17831 shlibpath_var=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath=yes
17833 hardcode_into_libs=yes
17836 newsos6)
17837 version_type=linux
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 shlibpath_var=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath=yes
17843 *nto* | *qnx*)
17844 version_type=qnx
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 shlibpath_overrides_runpath=no
17851 hardcode_into_libs=yes
17852 dynamic_linker='ldqnx.so'
17855 openbsd*)
17856 version_type=sunos
17857 sys_lib_dlsearch_path_spec="/usr/lib"
17858 need_lib_prefix=no
17859 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17860 case $host_os in
17861 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17862 *) need_version=no ;;
17863 esac
17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17868 case $host_os in
17869 openbsd2.[89] | openbsd2.[89].*)
17870 shlibpath_overrides_runpath=no
17873 shlibpath_overrides_runpath=yes
17875 esac
17876 else
17877 shlibpath_overrides_runpath=yes
17881 os2*)
17882 libname_spec='$name'
17883 shrext_cmds=".dll"
17884 need_lib_prefix=no
17885 library_names_spec='$libname${shared_ext} $libname.a'
17886 dynamic_linker='OS/2 ld.exe'
17887 shlibpath_var=LIBPATH
17890 osf3* | osf4* | osf5*)
17891 version_type=osf
17892 need_lib_prefix=no
17893 need_version=no
17894 soname_spec='${libname}${release}${shared_ext}$major'
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 shlibpath_var=LD_LIBRARY_PATH
17897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17898 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17901 rdos*)
17902 dynamic_linker=no
17905 solaris*)
17906 version_type=linux
17907 need_lib_prefix=no
17908 need_version=no
17909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17910 soname_spec='${libname}${release}${shared_ext}$major'
17911 shlibpath_var=LD_LIBRARY_PATH
17912 shlibpath_overrides_runpath=yes
17913 hardcode_into_libs=yes
17914 # ldd complains unless libraries are executable
17915 postinstall_cmds='chmod +x $lib'
17918 sunos4*)
17919 version_type=sunos
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 shlibpath_overrides_runpath=yes
17924 if test "$with_gnu_ld" = yes; then
17925 need_lib_prefix=no
17927 need_version=yes
17930 sysv4 | sysv4.3*)
17931 version_type=linux
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 shlibpath_var=LD_LIBRARY_PATH
17935 case $host_vendor in
17936 sni)
17937 shlibpath_overrides_runpath=no
17938 need_lib_prefix=no
17939 runpath_var=LD_RUN_PATH
17941 siemens)
17942 need_lib_prefix=no
17944 motorola)
17945 need_lib_prefix=no
17946 need_version=no
17947 shlibpath_overrides_runpath=no
17948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17950 esac
17953 sysv4*MP*)
17954 if test -d /usr/nec ;then
17955 version_type=linux
17956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17957 soname_spec='$libname${shared_ext}.$major'
17958 shlibpath_var=LD_LIBRARY_PATH
17962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17963 version_type=freebsd-elf
17964 need_lib_prefix=no
17965 need_version=no
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 shlibpath_overrides_runpath=yes
17970 hardcode_into_libs=yes
17971 if test "$with_gnu_ld" = yes; then
17972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17973 else
17974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17975 case $host_os in
17976 sco3.2v5*)
17977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17979 esac
17981 sys_lib_dlsearch_path_spec='/usr/lib'
17984 tpf*)
17985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17986 version_type=linux
17987 need_lib_prefix=no
17988 need_version=no
17989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 shlibpath_overrides_runpath=no
17992 hardcode_into_libs=yes
17995 uts4*)
17996 version_type=linux
17997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17998 soname_spec='${libname}${release}${shared_ext}$major'
17999 shlibpath_var=LD_LIBRARY_PATH
18003 dynamic_linker=no
18005 esac
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18007 $as_echo "$dynamic_linker" >&6; }
18008 test "$dynamic_linker" = no && can_build_shared=no
18010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18011 if test "$GCC" = yes; then
18012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18015 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18016 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18018 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18019 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18114 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18115 hardcode_action=
18116 if test -n "$hardcode_libdir_flag_spec" ||
18117 test -n "$runpath_var" ||
18118 test "X$hardcode_automatic" = "Xyes" ; then
18120 # We can hardcode non-existent directories.
18121 if test "$hardcode_direct" != no &&
18122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18123 # have to relink, otherwise we might link with an installed library
18124 # when we should be linking with a yet-to-be-installed one
18125 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18126 test "$hardcode_minus_L" != no; then
18127 # Linking always hardcodes the temporary library directory.
18128 hardcode_action=relink
18129 else
18130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18131 hardcode_action=immediate
18133 else
18134 # We cannot hardcode anything, or else we can only hardcode existing
18135 # directories.
18136 hardcode_action=unsupported
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18139 $as_echo "$hardcode_action" >&6; }
18141 if test "$hardcode_action" = relink ||
18142 test "$inherit_rpath" = yes; then
18143 # Fast installation is not supported
18144 enable_fast_install=no
18145 elif test "$shlibpath_overrides_runpath" = yes ||
18146 test "$enable_shared" = no; then
18147 # Fast installation is not necessary
18148 enable_fast_install=needless
18156 if test "x$enable_dlopen" != xyes; then
18157 enable_dlopen=unknown
18158 enable_dlopen_self=unknown
18159 enable_dlopen_self_static=unknown
18160 else
18161 lt_cv_dlopen=no
18162 lt_cv_dlopen_libs=
18164 case $host_os in
18165 beos*)
18166 lt_cv_dlopen="load_add_on"
18167 lt_cv_dlopen_libs=
18168 lt_cv_dlopen_self=yes
18171 mingw* | pw32* | cegcc*)
18172 lt_cv_dlopen="LoadLibrary"
18173 lt_cv_dlopen_libs=
18176 cygwin*)
18177 lt_cv_dlopen="dlopen"
18178 lt_cv_dlopen_libs=
18181 darwin*)
18182 # if libdl is installed we need to link against it
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18186 $as_echo_n "(cached) " >&6
18187 else
18188 ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-ldl $LIBS"
18190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18196 #ifdef __cplusplus
18197 extern "C"
18198 #endif
18199 char dlopen ();
18201 main ()
18203 return dlopen ();
18205 return 0;
18207 _ACEOF
18208 if ac_fn_c_try_link "$LINENO"; then :
18209 ac_cv_lib_dl_dlopen=yes
18210 else
18211 ac_cv_lib_dl_dlopen=no
18213 rm -f core conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 LIBS=$ac_check_lib_save_LIBS
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18219 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18221 else
18223 lt_cv_dlopen="dyld"
18224 lt_cv_dlopen_libs=
18225 lt_cv_dlopen_self=yes
18232 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18233 if test "x$ac_cv_func_shl_load" = x""yes; then :
18234 lt_cv_dlopen="shl_load"
18235 else
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18237 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18238 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18239 $as_echo_n "(cached) " >&6
18240 else
18241 ac_check_lib_save_LIBS=$LIBS
18242 LIBS="-ldld $LIBS"
18243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244 /* end confdefs.h. */
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18249 #ifdef __cplusplus
18250 extern "C"
18251 #endif
18252 char shl_load ();
18254 main ()
18256 return shl_load ();
18258 return 0;
18260 _ACEOF
18261 if ac_fn_c_try_link "$LINENO"; then :
18262 ac_cv_lib_dld_shl_load=yes
18263 else
18264 ac_cv_lib_dld_shl_load=no
18266 rm -f core conftest.err conftest.$ac_objext \
18267 conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18271 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18272 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18273 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18274 else
18275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18276 if test "x$ac_cv_func_dlopen" = x""yes; then :
18277 lt_cv_dlopen="dlopen"
18278 else
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18282 $as_echo_n "(cached) " >&6
18283 else
18284 ac_check_lib_save_LIBS=$LIBS
18285 LIBS="-ldl $LIBS"
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18292 #ifdef __cplusplus
18293 extern "C"
18294 #endif
18295 char dlopen ();
18297 main ()
18299 return dlopen ();
18301 return 0;
18303 _ACEOF
18304 if ac_fn_c_try_link "$LINENO"; then :
18305 ac_cv_lib_dl_dlopen=yes
18306 else
18307 ac_cv_lib_dl_dlopen=no
18309 rm -f core conftest.err conftest.$ac_objext \
18310 conftest$ac_exeext conftest.$ac_ext
18311 LIBS=$ac_check_lib_save_LIBS
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18315 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18317 else
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18319 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18320 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18321 $as_echo_n "(cached) " >&6
18322 else
18323 ac_check_lib_save_LIBS=$LIBS
18324 LIBS="-lsvld $LIBS"
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18331 #ifdef __cplusplus
18332 extern "C"
18333 #endif
18334 char dlopen ();
18336 main ()
18338 return dlopen ();
18340 return 0;
18342 _ACEOF
18343 if ac_fn_c_try_link "$LINENO"; then :
18344 ac_cv_lib_svld_dlopen=yes
18345 else
18346 ac_cv_lib_svld_dlopen=no
18348 rm -f core conftest.err conftest.$ac_objext \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18353 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18354 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18356 else
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18358 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18359 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-ldld $LIBS"
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18370 #ifdef __cplusplus
18371 extern "C"
18372 #endif
18373 char dld_link ();
18375 main ()
18377 return dld_link ();
18379 return 0;
18381 _ACEOF
18382 if ac_fn_c_try_link "$LINENO"; then :
18383 ac_cv_lib_dld_dld_link=yes
18384 else
18385 ac_cv_lib_dld_dld_link=no
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18392 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18393 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18413 esac
18415 if test "x$lt_cv_dlopen" != xno; then
18416 enable_dlopen=yes
18417 else
18418 enable_dlopen=no
18421 case $lt_cv_dlopen in
18422 dlopen)
18423 save_CPPFLAGS="$CPPFLAGS"
18424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18426 save_LDFLAGS="$LDFLAGS"
18427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18429 save_LIBS="$LIBS"
18430 LIBS="$lt_cv_dlopen_libs $LIBS"
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18433 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18434 if test "${lt_cv_dlopen_self+set}" = set; then :
18435 $as_echo_n "(cached) " >&6
18436 else
18437 if test "$cross_compiling" = yes; then :
18438 lt_cv_dlopen_self=cross
18439 else
18440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18441 lt_status=$lt_dlunknown
18442 cat > conftest.$ac_ext <<_LT_EOF
18443 #line 18443 "configure"
18444 #include "confdefs.h"
18446 #if HAVE_DLFCN_H
18447 #include <dlfcn.h>
18448 #endif
18450 #include <stdio.h>
18452 #ifdef RTLD_GLOBAL
18453 # define LT_DLGLOBAL RTLD_GLOBAL
18454 #else
18455 # ifdef DL_GLOBAL
18456 # define LT_DLGLOBAL DL_GLOBAL
18457 # else
18458 # define LT_DLGLOBAL 0
18459 # endif
18460 #endif
18462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18463 find out it does not work in some platform. */
18464 #ifndef LT_DLLAZY_OR_NOW
18465 # ifdef RTLD_LAZY
18466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18467 # else
18468 # ifdef DL_LAZY
18469 # define LT_DLLAZY_OR_NOW DL_LAZY
18470 # else
18471 # ifdef RTLD_NOW
18472 # define LT_DLLAZY_OR_NOW RTLD_NOW
18473 # else
18474 # ifdef DL_NOW
18475 # define LT_DLLAZY_OR_NOW DL_NOW
18476 # else
18477 # define LT_DLLAZY_OR_NOW 0
18478 # endif
18479 # endif
18480 # endif
18481 # endif
18482 #endif
18484 /* When -fvisbility=hidden is used, assume the code has been annotated
18485 correspondingly for the symbols needed. */
18486 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18487 void fnord () __attribute__((visibility("default")));
18488 #endif
18490 void fnord () { int i=42; }
18491 int main ()
18493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18494 int status = $lt_dlunknown;
18496 if (self)
18498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18499 else
18501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18502 else puts (dlerror ());
18504 /* dlclose (self); */
18506 else
18507 puts (dlerror ());
18509 return status;
18511 _LT_EOF
18512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18513 (eval $ac_link) 2>&5
18514 ac_status=$?
18515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18517 (./conftest; exit; ) >&5 2>/dev/null
18518 lt_status=$?
18519 case x$lt_status in
18520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18523 esac
18524 else :
18525 # compilation failed
18526 lt_cv_dlopen_self=no
18529 rm -fr conftest*
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18534 $as_echo "$lt_cv_dlopen_self" >&6; }
18536 if test "x$lt_cv_dlopen_self" = xyes; then
18537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18539 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18540 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18541 $as_echo_n "(cached) " >&6
18542 else
18543 if test "$cross_compiling" = yes; then :
18544 lt_cv_dlopen_self_static=cross
18545 else
18546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18547 lt_status=$lt_dlunknown
18548 cat > conftest.$ac_ext <<_LT_EOF
18549 #line 18549 "configure"
18550 #include "confdefs.h"
18552 #if HAVE_DLFCN_H
18553 #include <dlfcn.h>
18554 #endif
18556 #include <stdio.h>
18558 #ifdef RTLD_GLOBAL
18559 # define LT_DLGLOBAL RTLD_GLOBAL
18560 #else
18561 # ifdef DL_GLOBAL
18562 # define LT_DLGLOBAL DL_GLOBAL
18563 # else
18564 # define LT_DLGLOBAL 0
18565 # endif
18566 #endif
18568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18569 find out it does not work in some platform. */
18570 #ifndef LT_DLLAZY_OR_NOW
18571 # ifdef RTLD_LAZY
18572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18573 # else
18574 # ifdef DL_LAZY
18575 # define LT_DLLAZY_OR_NOW DL_LAZY
18576 # else
18577 # ifdef RTLD_NOW
18578 # define LT_DLLAZY_OR_NOW RTLD_NOW
18579 # else
18580 # ifdef DL_NOW
18581 # define LT_DLLAZY_OR_NOW DL_NOW
18582 # else
18583 # define LT_DLLAZY_OR_NOW 0
18584 # endif
18585 # endif
18586 # endif
18587 # endif
18588 #endif
18590 /* When -fvisbility=hidden is used, assume the code has been annotated
18591 correspondingly for the symbols needed. */
18592 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18593 void fnord () __attribute__((visibility("default")));
18594 #endif
18596 void fnord () { int i=42; }
18597 int main ()
18599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18600 int status = $lt_dlunknown;
18602 if (self)
18604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18605 else
18607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18608 else puts (dlerror ());
18610 /* dlclose (self); */
18612 else
18613 puts (dlerror ());
18615 return status;
18617 _LT_EOF
18618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18619 (eval $ac_link) 2>&5
18620 ac_status=$?
18621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18622 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18623 (./conftest; exit; ) >&5 2>/dev/null
18624 lt_status=$?
18625 case x$lt_status in
18626 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18627 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18628 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18629 esac
18630 else :
18631 # compilation failed
18632 lt_cv_dlopen_self_static=no
18635 rm -fr conftest*
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18640 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18643 CPPFLAGS="$save_CPPFLAGS"
18644 LDFLAGS="$save_LDFLAGS"
18645 LIBS="$save_LIBS"
18647 esac
18649 case $lt_cv_dlopen_self in
18650 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18651 *) enable_dlopen_self=unknown ;;
18652 esac
18654 case $lt_cv_dlopen_self_static in
18655 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18656 *) enable_dlopen_self_static=unknown ;;
18657 esac
18676 striplib=
18677 old_striplib=
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18679 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18680 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18681 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18682 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18684 $as_echo "yes" >&6; }
18685 else
18686 # FIXME - insert some real tests, host_os isn't really good enough
18687 case $host_os in
18688 darwin*)
18689 if test -n "$STRIP" ; then
18690 striplib="$STRIP -x"
18691 old_striplib="$STRIP -S"
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18693 $as_echo "yes" >&6; }
18694 else
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18701 $as_echo "no" >&6; }
18703 esac
18717 # Report which library types will actually be built
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18719 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18721 $as_echo "$can_build_shared" >&6; }
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18724 $as_echo_n "checking whether to build shared libraries... " >&6; }
18725 test "$can_build_shared" = "no" && enable_shared=no
18727 # On AIX, shared libraries and static libraries use the same namespace, and
18728 # are all built from PIC.
18729 case $host_os in
18730 aix3*)
18731 test "$enable_shared" = yes && enable_static=no
18732 if test -n "$RANLIB"; then
18733 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18734 postinstall_cmds='$RANLIB $lib'
18738 aix[4-9]*)
18739 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18740 test "$enable_shared" = yes && enable_static=no
18743 esac
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18745 $as_echo "$enable_shared" >&6; }
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18748 $as_echo_n "checking whether to build static libraries... " >&6; }
18749 # Make sure either enable_shared or enable_static is yes.
18750 test "$enable_shared" = yes || enable_static=yes
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18752 $as_echo "$enable_static" >&6; }
18758 ac_ext=cpp
18759 ac_cpp='$CXXCPP $CPPFLAGS'
18760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18764 CC="$lt_save_CC"
18766 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18767 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18768 (test "X$CXX" != "Xg++"))) ; then
18769 ac_ext=cpp
18770 ac_cpp='$CXXCPP $CPPFLAGS'
18771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18775 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18776 if test -z "$CXXCPP"; then
18777 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18778 $as_echo_n "(cached) " >&6
18779 else
18780 # Double quotes because CXXCPP needs to be expanded
18781 for CXXCPP in "$CXX -E" "/lib/cpp"
18783 ac_preproc_ok=false
18784 for ac_cxx_preproc_warn_flag in '' yes
18786 # Use a header file that comes with gcc, so configuring glibc
18787 # with a fresh cross-compiler works.
18788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789 # <limits.h> exists even on freestanding compilers.
18790 # On the NeXT, cc -E runs the code through the compiler's parser,
18791 # not just through cpp. "Syntax error" is here to catch this case.
18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793 /* end confdefs.h. */
18794 #ifdef __STDC__
18795 # include <limits.h>
18796 #else
18797 # include <assert.h>
18798 #endif
18799 Syntax error
18800 _ACEOF
18801 if ac_fn_cxx_try_cpp "$LINENO"; then :
18803 else
18804 # Broken: fails on valid input.
18805 continue
18807 rm -f conftest.err conftest.$ac_ext
18809 # OK, works on sane cases. Now check whether nonexistent headers
18810 # can be detected and how.
18811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18812 /* end confdefs.h. */
18813 #include <ac_nonexistent.h>
18814 _ACEOF
18815 if ac_fn_cxx_try_cpp "$LINENO"; then :
18816 # Broken: success on invalid input.
18817 continue
18818 else
18819 # Passes both tests.
18820 ac_preproc_ok=:
18821 break
18823 rm -f conftest.err conftest.$ac_ext
18825 done
18826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18827 rm -f conftest.err conftest.$ac_ext
18828 if $ac_preproc_ok; then :
18829 break
18832 done
18833 ac_cv_prog_CXXCPP=$CXXCPP
18836 CXXCPP=$ac_cv_prog_CXXCPP
18837 else
18838 ac_cv_prog_CXXCPP=$CXXCPP
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18841 $as_echo "$CXXCPP" >&6; }
18842 ac_preproc_ok=false
18843 for ac_cxx_preproc_warn_flag in '' yes
18845 # Use a header file that comes with gcc, so configuring glibc
18846 # with a fresh cross-compiler works.
18847 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18848 # <limits.h> exists even on freestanding compilers.
18849 # On the NeXT, cc -E runs the code through the compiler's parser,
18850 # not just through cpp. "Syntax error" is here to catch this case.
18851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h. */
18853 #ifdef __STDC__
18854 # include <limits.h>
18855 #else
18856 # include <assert.h>
18857 #endif
18858 Syntax error
18859 _ACEOF
18860 if ac_fn_cxx_try_cpp "$LINENO"; then :
18862 else
18863 # Broken: fails on valid input.
18864 continue
18866 rm -f conftest.err conftest.$ac_ext
18868 # OK, works on sane cases. Now check whether nonexistent headers
18869 # can be detected and how.
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18872 #include <ac_nonexistent.h>
18873 _ACEOF
18874 if ac_fn_cxx_try_cpp "$LINENO"; then :
18875 # Broken: success on invalid input.
18876 continue
18877 else
18878 # Passes both tests.
18879 ac_preproc_ok=:
18880 break
18882 rm -f conftest.err conftest.$ac_ext
18884 done
18885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18886 rm -f conftest.err conftest.$ac_ext
18887 if $ac_preproc_ok; then :
18889 else
18890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18892 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18893 See \`config.log' for more details." "$LINENO" 5; }
18896 ac_ext=cpp
18897 ac_cpp='$CXXCPP $CPPFLAGS'
18898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18902 else
18903 _lt_caught_CXX_error=yes
18906 ac_ext=cpp
18907 ac_cpp='$CXXCPP $CPPFLAGS'
18908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18912 archive_cmds_need_lc_CXX=no
18913 allow_undefined_flag_CXX=
18914 always_export_symbols_CXX=no
18915 archive_expsym_cmds_CXX=
18916 compiler_needs_object_CXX=no
18917 export_dynamic_flag_spec_CXX=
18918 hardcode_direct_CXX=no
18919 hardcode_direct_absolute_CXX=no
18920 hardcode_libdir_flag_spec_CXX=
18921 hardcode_libdir_flag_spec_ld_CXX=
18922 hardcode_libdir_separator_CXX=
18923 hardcode_minus_L_CXX=no
18924 hardcode_shlibpath_var_CXX=unsupported
18925 hardcode_automatic_CXX=no
18926 inherit_rpath_CXX=no
18927 module_cmds_CXX=
18928 module_expsym_cmds_CXX=
18929 link_all_deplibs_CXX=unknown
18930 old_archive_cmds_CXX=$old_archive_cmds
18931 reload_flag_CXX=$reload_flag
18932 reload_cmds_CXX=$reload_cmds
18933 no_undefined_flag_CXX=
18934 whole_archive_flag_spec_CXX=
18935 enable_shared_with_static_runtimes_CXX=no
18937 # Source file extension for C++ test sources.
18938 ac_ext=cpp
18940 # Object file extension for compiled C++ test sources.
18941 objext=o
18942 objext_CXX=$objext
18944 # No sense in running all these tests if we already determined that
18945 # the CXX compiler isn't working. Some variables (like enable_shared)
18946 # are currently assumed to apply to all compilers on this platform,
18947 # and will be corrupted by setting them based on a non-working compiler.
18948 if test "$_lt_caught_CXX_error" != yes; then
18949 # Code to be used in simple compile tests
18950 lt_simple_compile_test_code="int some_variable = 0;"
18952 # Code to be used in simple link tests
18953 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18962 # If no C compiler was specified, use CC.
18963 LTCC=${LTCC-"$CC"}
18965 # If no C compiler flags were specified, use CFLAGS.
18966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18968 # Allow CC to be a program name with arguments.
18969 compiler=$CC
18972 # save warnings/boilerplate of simple test code
18973 ac_outfile=conftest.$ac_objext
18974 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18976 _lt_compiler_boilerplate=`cat conftest.err`
18977 $RM conftest*
18979 ac_outfile=conftest.$ac_objext
18980 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18982 _lt_linker_boilerplate=`cat conftest.err`
18983 $RM -r conftest*
18986 # Allow CC to be a program name with arguments.
18987 lt_save_CC=$CC
18988 lt_save_LD=$LD
18989 lt_save_GCC=$GCC
18990 GCC=$GXX
18991 lt_save_with_gnu_ld=$with_gnu_ld
18992 lt_save_path_LD=$lt_cv_path_LD
18993 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18994 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18995 else
18996 $as_unset lt_cv_prog_gnu_ld
18998 if test -n "${lt_cv_path_LDCXX+set}"; then
18999 lt_cv_path_LD=$lt_cv_path_LDCXX
19000 else
19001 $as_unset lt_cv_path_LD
19003 test -z "${LDCXX+set}" || LD=$LDCXX
19004 CC=${CXX-"c++"}
19005 compiler=$CC
19006 compiler_CXX=$CC
19007 for cc_temp in $compiler""; do
19008 case $cc_temp in
19009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19011 \-*) ;;
19012 *) break;;
19013 esac
19014 done
19015 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19018 if test -n "$compiler"; then
19019 # We don't want -fno-exception when compiling C++ code, so set the
19020 # no_builtin_flag separately
19021 if test "$GXX" = yes; then
19022 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19023 else
19024 lt_prog_compiler_no_builtin_flag_CXX=
19027 if test "$GXX" = yes; then
19028 # Set up default GNU C++ configuration
19032 # Check whether --with-gnu-ld was given.
19033 if test "${with_gnu_ld+set}" = set; then :
19034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19035 else
19036 with_gnu_ld=no
19039 ac_prog=ld
19040 if test "$GCC" = yes; then
19041 # Check if gcc -print-prog-name=ld gives a path.
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19043 $as_echo_n "checking for ld used by $CC... " >&6; }
19044 case $host in
19045 *-*-mingw*)
19046 # gcc leaves a trailing carriage return which upsets mingw
19047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19050 esac
19051 case $ac_prog in
19052 # Accept absolute paths.
19053 [\\/]* | ?:[\\/]*)
19054 re_direlt='/[^/][^/]*/\.\./'
19055 # Canonicalize the pathname of ld
19056 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19057 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19058 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19059 done
19060 test -z "$LD" && LD="$ac_prog"
19063 # If it fails, then pretend we aren't using GCC.
19064 ac_prog=ld
19067 # If it is relative, then search for the first ld in PATH.
19068 with_gnu_ld=unknown
19070 esac
19071 elif test "$with_gnu_ld" = yes; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19073 $as_echo_n "checking for GNU ld... " >&6; }
19074 else
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19076 $as_echo_n "checking for non-GNU ld... " >&6; }
19078 if test "${lt_cv_path_LD+set}" = set; then :
19079 $as_echo_n "(cached) " >&6
19080 else
19081 if test -z "$LD"; then
19082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19083 for ac_dir in $PATH; do
19084 IFS="$lt_save_ifs"
19085 test -z "$ac_dir" && ac_dir=.
19086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19087 lt_cv_path_LD="$ac_dir/$ac_prog"
19088 # Check to see if the program is GNU ld. I'd rather use --version,
19089 # but apparently some variants of GNU ld only accept -v.
19090 # Break only if it was the GNU/non-GNU ld that we prefer.
19091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19092 *GNU* | *'with BFD'*)
19093 test "$with_gnu_ld" != no && break
19096 test "$with_gnu_ld" != yes && break
19098 esac
19100 done
19101 IFS="$lt_save_ifs"
19102 else
19103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19107 LD="$lt_cv_path_LD"
19108 if test -n "$LD"; then
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19110 $as_echo "$LD" >&6; }
19111 else
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113 $as_echo "no" >&6; }
19115 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19117 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19118 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19119 $as_echo_n "(cached) " >&6
19120 else
19121 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19122 case `$LD -v 2>&1 </dev/null` in
19123 *GNU* | *'with BFD'*)
19124 lt_cv_prog_gnu_ld=yes
19127 lt_cv_prog_gnu_ld=no
19129 esac
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19132 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19133 with_gnu_ld=$lt_cv_prog_gnu_ld
19141 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19142 # archiving commands below assume that GNU ld is being used.
19143 if test "$with_gnu_ld" = yes; then
19144 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19145 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'
19147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19148 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19150 # If archive_cmds runs LD, not CC, wlarc should be empty
19151 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19152 # investigate it a little bit more. (MM)
19153 wlarc='${wl}'
19155 # ancient GNU ld didn't support --whole-archive et. al.
19156 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19157 $GREP 'no-whole-archive' > /dev/null; then
19158 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19159 else
19160 whole_archive_flag_spec_CXX=
19162 else
19163 with_gnu_ld=no
19164 wlarc=
19166 # A generic and very simple default shared library creation
19167 # command for GNU C++ for the case where it uses the native
19168 # linker, instead of GNU ld. If possible, this setting should
19169 # overridden to take advantage of the native linker features on
19170 # the platform it is being used on.
19171 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19174 # Commands to make compiler produce verbose output that lists
19175 # what "hidden" libraries, object files and flags are used when
19176 # linking a shared library.
19177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19179 else
19180 GXX=no
19181 with_gnu_ld=no
19182 wlarc=
19185 # PORTME: fill in a description of your system's C++ link characteristics
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19187 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19188 ld_shlibs_CXX=yes
19189 case $host_os in
19190 aix3*)
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19194 aix[4-9]*)
19195 if test "$host_cpu" = ia64; then
19196 # On IA64, the linker does run time linking by default, so we don't
19197 # have to do anything special.
19198 aix_use_runtimelinking=no
19199 exp_sym_flag='-Bexport'
19200 no_entry_flag=""
19201 else
19202 aix_use_runtimelinking=no
19204 # Test if we are trying to use run time linking or normal
19205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19206 # need to do runtime linking.
19207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19208 for ld_flag in $LDFLAGS; do
19209 case $ld_flag in
19210 *-brtl*)
19211 aix_use_runtimelinking=yes
19212 break
19214 esac
19215 done
19217 esac
19219 exp_sym_flag='-bexport'
19220 no_entry_flag='-bnoentry'
19223 # When large executables or shared objects are built, AIX ld can
19224 # have problems creating the table of contents. If linking a library
19225 # or program results in "error TOC overflow" add -mminimal-toc to
19226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19229 archive_cmds_CXX=''
19230 hardcode_direct_CXX=yes
19231 hardcode_direct_absolute_CXX=yes
19232 hardcode_libdir_separator_CXX=':'
19233 link_all_deplibs_CXX=yes
19234 file_list_spec_CXX='${wl}-f,'
19236 if test "$GXX" = yes; then
19237 case $host_os in aix4.[012]|aix4.[012].*)
19238 # We only want to do this on AIX 4.2 and lower, the check
19239 # below for broken collect2 doesn't work under 4.3+
19240 collect2name=`${CC} -print-prog-name=collect2`
19241 if test -f "$collect2name" &&
19242 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19243 then
19244 # We have reworked collect2
19246 else
19247 # We have old collect2
19248 hardcode_direct_CXX=unsupported
19249 # It fails to find uninstalled libraries when the uninstalled
19250 # path is not listed in the libpath. Setting hardcode_minus_L
19251 # to unsupported forces relinking
19252 hardcode_minus_L_CXX=yes
19253 hardcode_libdir_flag_spec_CXX='-L$libdir'
19254 hardcode_libdir_separator_CXX=
19256 esac
19257 shared_flag='-shared'
19258 if test "$aix_use_runtimelinking" = yes; then
19259 shared_flag="$shared_flag "'${wl}-G'
19261 else
19262 # not using gcc
19263 if test "$host_cpu" = ia64; then
19264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19265 # chokes on -Wl,-G. The following line is correct:
19266 shared_flag='-G'
19267 else
19268 if test "$aix_use_runtimelinking" = yes; then
19269 shared_flag='${wl}-G'
19270 else
19271 shared_flag='${wl}-bM:SRE'
19276 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19277 # It seems that -bexpall does not export symbols beginning with
19278 # underscore (_), so it is better to generate a list of symbols to
19279 # export.
19280 always_export_symbols_CXX=yes
19281 if test "$aix_use_runtimelinking" = yes; then
19282 # Warning - without using the other runtime loading flags (-brtl),
19283 # -berok will link without error, but may produce a broken library.
19284 allow_undefined_flag_CXX='-berok'
19285 # Determine the default libpath from the value encoded in an empty
19286 # executable.
19287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h. */
19291 main ()
19295 return 0;
19297 _ACEOF
19298 if ac_fn_cxx_try_link "$LINENO"; then :
19300 lt_aix_libpath_sed='
19301 /Import File Strings/,/^$/ {
19302 /^0/ {
19303 s/^0 *\(.*\)$/\1/
19307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19308 # Check for a 64-bit object if we didn't find anything.
19309 if test -z "$aix_libpath"; then
19310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19313 rm -f core conftest.err conftest.$ac_objext \
19314 conftest$ac_exeext conftest.$ac_ext
19315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19317 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19319 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"
19320 else
19321 if test "$host_cpu" = ia64; then
19322 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19323 allow_undefined_flag_CXX="-z nodefs"
19324 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"
19325 else
19326 # Determine the default libpath from the value encoded in an
19327 # empty executable.
19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329 /* end confdefs.h. */
19332 main ()
19336 return 0;
19338 _ACEOF
19339 if ac_fn_cxx_try_link "$LINENO"; then :
19341 lt_aix_libpath_sed='
19342 /Import File Strings/,/^$/ {
19343 /^0/ {
19344 s/^0 *\(.*\)$/\1/
19348 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19349 # Check for a 64-bit object if we didn't find anything.
19350 if test -z "$aix_libpath"; then
19351 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19354 rm -f core conftest.err conftest.$ac_objext \
19355 conftest$ac_exeext conftest.$ac_ext
19356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19358 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19359 # Warning - without using the other run time loading flags,
19360 # -berok will link without error, but may produce a broken library.
19361 no_undefined_flag_CXX=' ${wl}-bernotok'
19362 allow_undefined_flag_CXX=' ${wl}-berok'
19363 if test "$with_gnu_ld" = yes; then
19364 # We only use this code for GNU lds that support --whole-archive.
19365 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19366 else
19367 # Exported symbols can be pulled into shared objects from archives
19368 whole_archive_flag_spec_CXX='$convenience'
19370 archive_cmds_need_lc_CXX=yes
19371 # This is similar to how AIX traditionally builds its shared
19372 # libraries.
19373 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'
19378 beos*)
19379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19380 allow_undefined_flag_CXX=unsupported
19381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19382 # support --undefined. This deserves some investigation. FIXME
19383 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19384 else
19385 ld_shlibs_CXX=no
19389 chorus*)
19390 case $cc_basename in
19392 # FIXME: insert proper C++ library support
19393 ld_shlibs_CXX=no
19395 esac
19398 cygwin* | mingw* | pw32* | cegcc*)
19399 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19400 # as there is no search path for DLLs.
19401 hardcode_libdir_flag_spec_CXX='-L$libdir'
19402 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19403 allow_undefined_flag_CXX=unsupported
19404 always_export_symbols_CXX=no
19405 enable_shared_with_static_runtimes_CXX=yes
19407 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19408 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'
19409 # If the export-symbols file already is a .def file (1st line
19410 # is EXPORTS), use it as is; otherwise, prepend...
19411 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19412 cp $export_symbols $output_objdir/$soname.def;
19413 else
19414 echo EXPORTS > $output_objdir/$soname.def;
19415 cat $export_symbols >> $output_objdir/$soname.def;
19417 $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'
19418 else
19419 ld_shlibs_CXX=no
19422 darwin* | rhapsody*)
19425 archive_cmds_need_lc_CXX=no
19426 hardcode_direct_CXX=no
19427 hardcode_automatic_CXX=yes
19428 hardcode_shlibpath_var_CXX=unsupported
19429 if test "$lt_cv_ld_force_load" = "yes"; then
19430 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\"`'
19431 else
19432 whole_archive_flag_spec_CXX=''
19434 link_all_deplibs_CXX=yes
19435 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19436 case $cc_basename in
19437 ifort*) _lt_dar_can_shared=yes ;;
19438 *) _lt_dar_can_shared=$GCC ;;
19439 esac
19440 if test "$_lt_dar_can_shared" = "yes"; then
19441 output_verbose_link_cmd=func_echo_all
19442 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}"
19443 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19444 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}"
19445 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}"
19446 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19447 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}"
19448 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}"
19451 else
19452 ld_shlibs_CXX=no
19457 dgux*)
19458 case $cc_basename in
19459 ec++*)
19460 # FIXME: insert proper C++ library support
19461 ld_shlibs_CXX=no
19463 ghcx*)
19464 # Green Hills C++ Compiler
19465 # FIXME: insert proper C++ library support
19466 ld_shlibs_CXX=no
19469 # FIXME: insert proper C++ library support
19470 ld_shlibs_CXX=no
19472 esac
19475 freebsd2.*)
19476 # C++ shared libraries reported to be fairly broken before
19477 # switch to ELF
19478 ld_shlibs_CXX=no
19481 freebsd-elf*)
19482 archive_cmds_need_lc_CXX=no
19485 freebsd* | dragonfly*)
19486 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19487 # conventions
19488 ld_shlibs_CXX=yes
19491 gnu*)
19494 haiku*)
19495 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19496 link_all_deplibs_CXX=yes
19499 hpux9*)
19500 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19501 hardcode_libdir_separator_CXX=:
19502 export_dynamic_flag_spec_CXX='${wl}-E'
19503 hardcode_direct_CXX=yes
19504 hardcode_minus_L_CXX=yes # Not in the search PATH,
19505 # but as the default
19506 # location of the library.
19508 case $cc_basename in
19509 CC*)
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19513 aCC*)
19514 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'
19515 # Commands to make compiler produce verbose output that lists
19516 # what "hidden" libraries, object files and flags are used when
19517 # linking a shared library.
19519 # There doesn't appear to be a way to prevent this compiler from
19520 # explicitly linking system object files so we need to strip them
19521 # from the output so that they don't get included in the library
19522 # dependencies.
19523 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"'
19526 if test "$GXX" = yes; then
19527 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'
19528 else
19529 # FIXME: insert proper C++ library support
19530 ld_shlibs_CXX=no
19533 esac
19536 hpux10*|hpux11*)
19537 if test $with_gnu_ld = no; then
19538 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19539 hardcode_libdir_separator_CXX=:
19541 case $host_cpu in
19542 hppa*64*|ia64*)
19545 export_dynamic_flag_spec_CXX='${wl}-E'
19547 esac
19549 case $host_cpu in
19550 hppa*64*|ia64*)
19551 hardcode_direct_CXX=no
19552 hardcode_shlibpath_var_CXX=no
19555 hardcode_direct_CXX=yes
19556 hardcode_direct_absolute_CXX=yes
19557 hardcode_minus_L_CXX=yes # Not in the search PATH,
19558 # but as the default
19559 # location of the library.
19561 esac
19563 case $cc_basename in
19564 CC*)
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19568 aCC*)
19569 case $host_cpu in
19570 hppa*64*)
19571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19573 ia64*)
19574 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19577 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19579 esac
19580 # Commands to make compiler produce verbose output that lists
19581 # what "hidden" libraries, object files and flags are used when
19582 # linking a shared library.
19584 # There doesn't appear to be a way to prevent this compiler from
19585 # explicitly linking system object files so we need to strip them
19586 # from the output so that they don't get included in the library
19587 # dependencies.
19588 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"'
19591 if test "$GXX" = yes; then
19592 if test $with_gnu_ld = no; then
19593 case $host_cpu in
19594 hppa*64*)
19595 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19597 ia64*)
19598 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19601 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'
19603 esac
19605 else
19606 # FIXME: insert proper C++ library support
19607 ld_shlibs_CXX=no
19610 esac
19613 interix[3-9]*)
19614 hardcode_direct_CXX=no
19615 hardcode_shlibpath_var_CXX=no
19616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19617 export_dynamic_flag_spec_CXX='${wl}-E'
19618 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19619 # Instead, shared libraries are loaded at an image base (0x10000000 by
19620 # default) and relocated if they conflict, which is a slow very memory
19621 # consuming and fragmenting process. To avoid this, we pick a random,
19622 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19623 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19624 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'
19625 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'
19627 irix5* | irix6*)
19628 case $cc_basename in
19629 CC*)
19630 # SGI C++
19631 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'
19633 # Archives containing C++ object files must be created using
19634 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19635 # necessary to make sure instantiated templates are included
19636 # in the archive.
19637 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19640 if test "$GXX" = yes; then
19641 if test "$with_gnu_ld" = no; then
19642 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'
19643 else
19644 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'
19647 link_all_deplibs_CXX=yes
19649 esac
19650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19651 hardcode_libdir_separator_CXX=:
19652 inherit_rpath_CXX=yes
19655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19656 case $cc_basename in
19657 KCC*)
19658 # Kuck and Associates, Inc. (KAI) C++ Compiler
19660 # KCC will only create a shared library if the output file
19661 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19662 # to its proper name (with version) after linking.
19663 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'
19664 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'
19665 # Commands to make compiler produce verbose output that lists
19666 # what "hidden" libraries, object files and flags are used when
19667 # linking a shared library.
19669 # There doesn't appear to be a way to prevent this compiler from
19670 # explicitly linking system object files so we need to strip them
19671 # from the output so that they don't get included in the library
19672 # dependencies.
19673 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"'
19675 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19678 # Archives containing C++ object files must be created using
19679 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19680 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19682 icpc* | ecpc* )
19683 # Intel C++
19684 with_gnu_ld=yes
19685 # version 8.0 and above of icpc choke on multiply defined symbols
19686 # if we add $predep_objects and $postdep_objects, however 7.1 and
19687 # earlier do not add the objects themselves.
19688 case `$CC -V 2>&1` in
19689 *"Version 7."*)
19690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19691 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'
19693 *) # Version 8.0 or newer
19694 tmp_idyn=
19695 case $host_cpu in
19696 ia64*) tmp_idyn=' -i_dynamic';;
19697 esac
19698 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19699 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'
19701 esac
19702 archive_cmds_need_lc_CXX=no
19703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19704 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19705 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19707 pgCC* | pgcpp*)
19708 # Portland Group C++ compiler
19709 case `$CC -V` in
19710 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19711 prelink_cmds_CXX='tpldir=Template.dir~
19712 rm -rf $tpldir~
19713 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19714 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19715 old_archive_cmds_CXX='tpldir=Template.dir~
19716 rm -rf $tpldir~
19717 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19718 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19719 $RANLIB $oldlib'
19720 archive_cmds_CXX='tpldir=Template.dir~
19721 rm -rf $tpldir~
19722 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19723 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19724 archive_expsym_cmds_CXX='tpldir=Template.dir~
19725 rm -rf $tpldir~
19726 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19727 $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'
19729 *) # Version 6 and above use weak symbols
19730 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19731 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'
19733 esac
19735 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19736 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19737 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'
19739 cxx*)
19740 # Compaq C++
19741 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19742 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'
19744 runpath_var=LD_RUN_PATH
19745 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19746 hardcode_libdir_separator_CXX=:
19748 # Commands to make compiler produce verbose output that lists
19749 # what "hidden" libraries, object files and flags are used when
19750 # linking a shared library.
19752 # There doesn't appear to be a way to prevent this compiler from
19753 # explicitly linking system object files so we need to strip them
19754 # from the output so that they don't get included in the library
19755 # dependencies.
19756 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'
19758 xl* | mpixl* | bgxl*)
19759 # IBM XL 8.0 on PPC, with GNU ld
19760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19762 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19763 if test "x$supports_anon_versioning" = xyes; then
19764 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19766 echo "local: *; };" >> $output_objdir/$libname.ver~
19767 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19771 case `$CC -V 2>&1 | sed 5q` in
19772 *Sun\ C*)
19773 # Sun C++ 5.9
19774 no_undefined_flag_CXX=' -zdefs'
19775 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19776 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'
19777 hardcode_libdir_flag_spec_CXX='-R$libdir'
19778 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'
19779 compiler_needs_object_CXX=yes
19781 # Not sure whether something based on
19782 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19783 # would be better.
19784 output_verbose_link_cmd='func_echo_all'
19786 # Archives containing C++ object files must be created using
19787 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19788 # necessary to make sure instantiated templates are included
19789 # in the archive.
19790 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19792 esac
19794 esac
19797 lynxos*)
19798 # FIXME: insert proper C++ library support
19799 ld_shlibs_CXX=no
19802 m88k*)
19803 # FIXME: insert proper C++ library support
19804 ld_shlibs_CXX=no
19807 mvs*)
19808 case $cc_basename in
19809 cxx*)
19810 # FIXME: insert proper C++ library support
19811 ld_shlibs_CXX=no
19814 # FIXME: insert proper C++ library support
19815 ld_shlibs_CXX=no
19817 esac
19820 netbsd*)
19821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19822 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19823 wlarc=
19824 hardcode_libdir_flag_spec_CXX='-R$libdir'
19825 hardcode_direct_CXX=yes
19826 hardcode_shlibpath_var_CXX=no
19828 # Workaround some broken pre-1.5 toolchains
19829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19832 *nto* | *qnx*)
19833 ld_shlibs_CXX=yes
19836 openbsd2*)
19837 # C++ shared libraries are fairly broken
19838 ld_shlibs_CXX=no
19841 openbsd*)
19842 if test -f /usr/libexec/ld.so; then
19843 hardcode_direct_CXX=yes
19844 hardcode_shlibpath_var_CXX=no
19845 hardcode_direct_absolute_CXX=yes
19846 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19849 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19850 export_dynamic_flag_spec_CXX='${wl}-E'
19851 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19853 output_verbose_link_cmd=func_echo_all
19854 else
19855 ld_shlibs_CXX=no
19859 osf3* | osf4* | osf5*)
19860 case $cc_basename in
19861 KCC*)
19862 # Kuck and Associates, Inc. (KAI) C++ Compiler
19864 # KCC will only create a shared library if the output file
19865 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19866 # to its proper name (with version) after linking.
19867 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'
19869 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19870 hardcode_libdir_separator_CXX=:
19872 # Archives containing C++ object files must be created using
19873 # the KAI C++ compiler.
19874 case $host in
19875 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19876 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19877 esac
19879 RCC*)
19880 # Rational C++ 2.4.1
19881 # FIXME: insert proper C++ library support
19882 ld_shlibs_CXX=no
19884 cxx*)
19885 case $host in
19886 osf3*)
19887 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19888 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'
19889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19892 allow_undefined_flag_CXX=' -expect_unresolved \*'
19893 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'
19894 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19895 echo "-hidden">> $lib.exp~
19896 $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~
19897 $RM $lib.exp'
19898 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19900 esac
19902 hardcode_libdir_separator_CXX=:
19904 # Commands to make compiler produce verbose output that lists
19905 # what "hidden" libraries, object files and flags are used when
19906 # linking a shared library.
19908 # There doesn't appear to be a way to prevent this compiler from
19909 # explicitly linking system object files so we need to strip them
19910 # from the output so that they don't get included in the library
19911 # dependencies.
19912 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"'
19915 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19916 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19917 case $host in
19918 osf3*)
19919 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'
19922 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'
19924 esac
19926 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19927 hardcode_libdir_separator_CXX=:
19929 # Commands to make compiler produce verbose output that lists
19930 # what "hidden" libraries, object files and flags are used when
19931 # linking a shared library.
19932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19934 else
19935 # FIXME: insert proper C++ library support
19936 ld_shlibs_CXX=no
19939 esac
19942 psos*)
19943 # FIXME: insert proper C++ library support
19944 ld_shlibs_CXX=no
19947 sunos4*)
19948 case $cc_basename in
19949 CC*)
19950 # Sun C++ 4.x
19951 # FIXME: insert proper C++ library support
19952 ld_shlibs_CXX=no
19954 lcc*)
19955 # Lucid
19956 # FIXME: insert proper C++ library support
19957 ld_shlibs_CXX=no
19960 # FIXME: insert proper C++ library support
19961 ld_shlibs_CXX=no
19963 esac
19966 solaris*)
19967 case $cc_basename in
19968 CC*)
19969 # Sun C++ 4.2, 5.x and Centerline C++
19970 archive_cmds_need_lc_CXX=yes
19971 no_undefined_flag_CXX=' -zdefs'
19972 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19973 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19974 $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'
19976 hardcode_libdir_flag_spec_CXX='-R$libdir'
19977 hardcode_shlibpath_var_CXX=no
19978 case $host_os in
19979 solaris2.[0-5] | solaris2.[0-5].*) ;;
19981 # The compiler driver will combine and reorder linker options,
19982 # but understands `-z linker_flag'.
19983 # Supported since Solaris 2.6 (maybe 2.5.1?)
19984 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19986 esac
19987 link_all_deplibs_CXX=yes
19989 output_verbose_link_cmd='func_echo_all'
19991 # Archives containing C++ object files must be created using
19992 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19993 # necessary to make sure instantiated templates are included
19994 # in the archive.
19995 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19997 gcx*)
19998 # Green Hills C++ Compiler
19999 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20001 # The C++ compiler must be used to create the archive.
20002 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20005 # GNU C++ compiler with Solaris linker
20006 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20007 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20008 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20009 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20010 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20011 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20013 # Commands to make compiler produce verbose output that lists
20014 # what "hidden" libraries, object files and flags are used when
20015 # linking a shared library.
20016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20017 else
20018 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20019 # platform.
20020 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20021 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20022 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20024 # Commands to make compiler produce verbose output that lists
20025 # what "hidden" libraries, object files and flags are used when
20026 # linking a shared library.
20027 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20030 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20031 case $host_os in
20032 solaris2.[0-5] | solaris2.[0-5].*) ;;
20034 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20036 esac
20039 esac
20042 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20043 no_undefined_flag_CXX='${wl}-z,text'
20044 archive_cmds_need_lc_CXX=no
20045 hardcode_shlibpath_var_CXX=no
20046 runpath_var='LD_RUN_PATH'
20048 case $cc_basename in
20049 CC*)
20050 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20051 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20054 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20055 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20057 esac
20060 sysv5* | sco3.2v5* | sco5v6*)
20061 # Note: We can NOT use -z defs as we might desire, because we do not
20062 # link with -lc, and that would cause any symbols used from libc to
20063 # always be unresolved, which means just about no library would
20064 # ever link correctly. If we're not using GNU ld we use -z text
20065 # though, which does catch some bad symbols but isn't as heavy-handed
20066 # as -z defs.
20067 no_undefined_flag_CXX='${wl}-z,text'
20068 allow_undefined_flag_CXX='${wl}-z,nodefs'
20069 archive_cmds_need_lc_CXX=no
20070 hardcode_shlibpath_var_CXX=no
20071 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20072 hardcode_libdir_separator_CXX=':'
20073 link_all_deplibs_CXX=yes
20074 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20075 runpath_var='LD_RUN_PATH'
20077 case $cc_basename in
20078 CC*)
20079 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20080 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20081 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20082 '"$old_archive_cmds_CXX"
20083 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20084 '"$reload_cmds_CXX"
20087 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20088 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 esac
20093 tandem*)
20094 case $cc_basename in
20095 NCC*)
20096 # NonStop-UX NCC 3.20
20097 # FIXME: insert proper C++ library support
20098 ld_shlibs_CXX=no
20101 # FIXME: insert proper C++ library support
20102 ld_shlibs_CXX=no
20104 esac
20107 vxworks*)
20108 # FIXME: insert proper C++ library support
20109 ld_shlibs_CXX=no
20113 # FIXME: insert proper C++ library support
20114 ld_shlibs_CXX=no
20116 esac
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20119 $as_echo "$ld_shlibs_CXX" >&6; }
20120 test "$ld_shlibs_CXX" = no && can_build_shared=no
20122 GCC_CXX="$GXX"
20123 LD_CXX="$LD"
20125 ## CAVEAT EMPTOR:
20126 ## There is no encapsulation within the following macros, do not change
20127 ## the running order or otherwise move them around unless you know exactly
20128 ## what you are doing...
20129 # Dependencies to place before and after the object being linked:
20130 predep_objects_CXX=
20131 postdep_objects_CXX=
20132 predeps_CXX=
20133 postdeps_CXX=
20134 compiler_lib_search_path_CXX=
20136 cat > conftest.$ac_ext <<_LT_EOF
20137 class Foo
20139 public:
20140 Foo (void) { a = 0; }
20141 private:
20142 int a;
20144 _LT_EOF
20146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20147 (eval $ac_compile) 2>&5
20148 ac_status=$?
20149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20150 test $ac_status = 0; }; then
20151 # Parse the compiler output and extract the necessary
20152 # objects, libraries and library flags.
20154 # Sentinel used to keep track of whether or not we are before
20155 # the conftest object file.
20156 pre_test_object_deps_done=no
20158 for p in `eval "$output_verbose_link_cmd"`; do
20159 case $p in
20161 -L* | -R* | -l*)
20162 # Some compilers place space between "-{L,R}" and the path.
20163 # Remove the space.
20164 if test $p = "-L" ||
20165 test $p = "-R"; then
20166 prev=$p
20167 continue
20168 else
20169 prev=
20172 if test "$pre_test_object_deps_done" = no; then
20173 case $p in
20174 -L* | -R*)
20175 # Internal compiler library paths should come after those
20176 # provided the user. The postdeps already come after the
20177 # user supplied libs so there is no need to process them.
20178 if test -z "$compiler_lib_search_path_CXX"; then
20179 compiler_lib_search_path_CXX="${prev}${p}"
20180 else
20181 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20184 # The "-l" case would never come before the object being
20185 # linked, so don't bother handling this case.
20186 esac
20187 else
20188 if test -z "$postdeps_CXX"; then
20189 postdeps_CXX="${prev}${p}"
20190 else
20191 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20196 *.$objext)
20197 # This assumes that the test object file only shows up
20198 # once in the compiler output.
20199 if test "$p" = "conftest.$objext"; then
20200 pre_test_object_deps_done=yes
20201 continue
20204 if test "$pre_test_object_deps_done" = no; then
20205 if test -z "$predep_objects_CXX"; then
20206 predep_objects_CXX="$p"
20207 else
20208 predep_objects_CXX="$predep_objects_CXX $p"
20210 else
20211 if test -z "$postdep_objects_CXX"; then
20212 postdep_objects_CXX="$p"
20213 else
20214 postdep_objects_CXX="$postdep_objects_CXX $p"
20219 *) ;; # Ignore the rest.
20221 esac
20222 done
20224 # Clean up.
20225 rm -f a.out a.exe
20226 else
20227 echo "libtool.m4: error: problem compiling CXX test program"
20230 $RM -f confest.$objext
20232 # PORTME: override above test on systems where it is broken
20233 case $host_os in
20234 interix[3-9]*)
20235 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20236 # hack all around it, let's just trust "g++" to DTRT.
20237 predep_objects_CXX=
20238 postdep_objects_CXX=
20239 postdeps_CXX=
20242 linux*)
20243 case `$CC -V 2>&1 | sed 5q` in
20244 *Sun\ C*)
20245 # Sun C++ 5.9
20247 # The more standards-conforming stlport4 library is
20248 # incompatible with the Cstd library. Avoid specifying
20249 # it if it's in CXXFLAGS. Ignore libCrun as
20250 # -library=stlport4 depends on it.
20251 case " $CXX $CXXFLAGS " in
20252 *" -library=stlport4 "*)
20253 solaris_use_stlport4=yes
20255 esac
20257 if test "$solaris_use_stlport4" != yes; then
20258 postdeps_CXX='-library=Cstd -library=Crun'
20261 esac
20264 solaris*)
20265 case $cc_basename in
20266 CC*)
20267 # The more standards-conforming stlport4 library is
20268 # incompatible with the Cstd library. Avoid specifying
20269 # it if it's in CXXFLAGS. Ignore libCrun as
20270 # -library=stlport4 depends on it.
20271 case " $CXX $CXXFLAGS " in
20272 *" -library=stlport4 "*)
20273 solaris_use_stlport4=yes
20275 esac
20277 # Adding this requires a known-good setup of shared libraries for
20278 # Sun compiler versions before 5.6, else PIC objects from an old
20279 # archive will be linked into the output, leading to subtle bugs.
20280 if test "$solaris_use_stlport4" != yes; then
20281 postdeps_CXX='-library=Cstd -library=Crun'
20284 esac
20286 esac
20289 case " $postdeps_CXX " in
20290 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20291 esac
20292 compiler_lib_search_dirs_CXX=
20293 if test -n "${compiler_lib_search_path_CXX}"; then
20294 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20327 lt_prog_compiler_wl_CXX=
20328 lt_prog_compiler_pic_CXX=
20329 lt_prog_compiler_static_CXX=
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20332 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20334 # C++ specific cases for pic, static, wl, etc.
20335 if test "$GXX" = yes; then
20336 lt_prog_compiler_wl_CXX='-Wl,'
20337 lt_prog_compiler_static_CXX='-static'
20339 case $host_os in
20340 aix*)
20341 # All AIX code is PIC.
20342 if test "$host_cpu" = ia64; then
20343 # AIX 5 now supports IA64 processor
20344 lt_prog_compiler_static_CXX='-Bstatic'
20346 lt_prog_compiler_pic_CXX='-fPIC'
20349 amigaos*)
20350 case $host_cpu in
20351 powerpc)
20352 # see comment about AmigaOS4 .so support
20353 lt_prog_compiler_pic_CXX='-fPIC'
20355 m68k)
20356 # FIXME: we need at least 68020 code to build shared libraries, but
20357 # adding the `-m68020' flag to GCC prevents building anything better,
20358 # like `-m68040'.
20359 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20361 esac
20364 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20365 # PIC is the default for these OSes.
20367 mingw* | cygwin* | os2* | pw32* | cegcc*)
20368 # This hack is so that the source file can tell whether it is being
20369 # built for inclusion in a dll (and should export symbols for example).
20370 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20371 # (--disable-auto-import) libraries
20372 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20374 darwin* | rhapsody*)
20375 # PIC is the default on this platform
20376 # Common symbols not allowed in MH_DYLIB files
20377 lt_prog_compiler_pic_CXX='-fno-common'
20379 *djgpp*)
20380 # DJGPP does not support shared libraries at all
20381 lt_prog_compiler_pic_CXX=
20383 haiku*)
20384 # PIC is the default for Haiku.
20385 # The "-static" flag exists, but is broken.
20386 lt_prog_compiler_static_CXX=
20388 interix[3-9]*)
20389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20390 # Instead, we relocate shared libraries at runtime.
20392 sysv4*MP*)
20393 if test -d /usr/nec; then
20394 lt_prog_compiler_pic_CXX=-Kconform_pic
20397 hpux*)
20398 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20399 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20400 # sets the default TLS model and affects inlining.
20401 case $host_cpu in
20402 hppa*64*)
20405 lt_prog_compiler_pic_CXX='-fPIC'
20407 esac
20409 *qnx* | *nto*)
20410 # QNX uses GNU C++, but need to define -shared option too, otherwise
20411 # it will coredump.
20412 lt_prog_compiler_pic_CXX='-fPIC -shared'
20415 lt_prog_compiler_pic_CXX='-fPIC'
20417 esac
20418 else
20419 case $host_os in
20420 aix[4-9]*)
20421 # All AIX code is PIC.
20422 if test "$host_cpu" = ia64; then
20423 # AIX 5 now supports IA64 processor
20424 lt_prog_compiler_static_CXX='-Bstatic'
20425 else
20426 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20429 chorus*)
20430 case $cc_basename in
20431 cxch68*)
20432 # Green Hills C++ Compiler
20433 # _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"
20435 esac
20437 dgux*)
20438 case $cc_basename in
20439 ec++*)
20440 lt_prog_compiler_pic_CXX='-KPIC'
20442 ghcx*)
20443 # Green Hills C++ Compiler
20444 lt_prog_compiler_pic_CXX='-pic'
20448 esac
20450 freebsd* | dragonfly*)
20451 # FreeBSD uses GNU C++
20453 hpux9* | hpux10* | hpux11*)
20454 case $cc_basename in
20455 CC*)
20456 lt_prog_compiler_wl_CXX='-Wl,'
20457 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20458 if test "$host_cpu" != ia64; then
20459 lt_prog_compiler_pic_CXX='+Z'
20462 aCC*)
20463 lt_prog_compiler_wl_CXX='-Wl,'
20464 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20465 case $host_cpu in
20466 hppa*64*|ia64*)
20467 # +Z the default
20470 lt_prog_compiler_pic_CXX='+Z'
20472 esac
20476 esac
20478 interix*)
20479 # This is c89, which is MS Visual C++ (no shared libs)
20480 # Anyone wants to do a port?
20482 irix5* | irix6* | nonstopux*)
20483 case $cc_basename in
20484 CC*)
20485 lt_prog_compiler_wl_CXX='-Wl,'
20486 lt_prog_compiler_static_CXX='-non_shared'
20487 # CC pic flag -KPIC is the default.
20491 esac
20493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20494 case $cc_basename in
20495 KCC*)
20496 # KAI C++ Compiler
20497 lt_prog_compiler_wl_CXX='--backend -Wl,'
20498 lt_prog_compiler_pic_CXX='-fPIC'
20500 ecpc* )
20501 # old Intel C++ for x86_64 which still supported -KPIC.
20502 lt_prog_compiler_wl_CXX='-Wl,'
20503 lt_prog_compiler_pic_CXX='-KPIC'
20504 lt_prog_compiler_static_CXX='-static'
20506 icpc* )
20507 # Intel C++, used to be incompatible with GCC.
20508 # ICC 10 doesn't accept -KPIC any more.
20509 lt_prog_compiler_wl_CXX='-Wl,'
20510 lt_prog_compiler_pic_CXX='-fPIC'
20511 lt_prog_compiler_static_CXX='-static'
20513 pgCC* | pgcpp*)
20514 # Portland Group C++ compiler
20515 lt_prog_compiler_wl_CXX='-Wl,'
20516 lt_prog_compiler_pic_CXX='-fpic'
20517 lt_prog_compiler_static_CXX='-Bstatic'
20519 cxx*)
20520 # Compaq C++
20521 # Make sure the PIC flag is empty. It appears that all Alpha
20522 # Linux and Compaq Tru64 Unix objects are PIC.
20523 lt_prog_compiler_pic_CXX=
20524 lt_prog_compiler_static_CXX='-non_shared'
20526 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20527 # IBM XL 8.0, 9.0 on PPC and BlueGene
20528 lt_prog_compiler_wl_CXX='-Wl,'
20529 lt_prog_compiler_pic_CXX='-qpic'
20530 lt_prog_compiler_static_CXX='-qstaticlink'
20533 case `$CC -V 2>&1 | sed 5q` in
20534 *Sun\ C*)
20535 # Sun C++ 5.9
20536 lt_prog_compiler_pic_CXX='-KPIC'
20537 lt_prog_compiler_static_CXX='-Bstatic'
20538 lt_prog_compiler_wl_CXX='-Qoption ld '
20540 esac
20542 esac
20544 lynxos*)
20546 m88k*)
20548 mvs*)
20549 case $cc_basename in
20550 cxx*)
20551 lt_prog_compiler_pic_CXX='-W c,exportall'
20555 esac
20557 netbsd*)
20559 *qnx* | *nto*)
20560 # QNX uses GNU C++, but need to define -shared option too, otherwise
20561 # it will coredump.
20562 lt_prog_compiler_pic_CXX='-fPIC -shared'
20564 osf3* | osf4* | osf5*)
20565 case $cc_basename in
20566 KCC*)
20567 lt_prog_compiler_wl_CXX='--backend -Wl,'
20569 RCC*)
20570 # Rational C++ 2.4.1
20571 lt_prog_compiler_pic_CXX='-pic'
20573 cxx*)
20574 # Digital/Compaq C++
20575 lt_prog_compiler_wl_CXX='-Wl,'
20576 # Make sure the PIC flag is empty. It appears that all Alpha
20577 # Linux and Compaq Tru64 Unix objects are PIC.
20578 lt_prog_compiler_pic_CXX=
20579 lt_prog_compiler_static_CXX='-non_shared'
20583 esac
20585 psos*)
20587 solaris*)
20588 case $cc_basename in
20589 CC*)
20590 # Sun C++ 4.2, 5.x and Centerline C++
20591 lt_prog_compiler_pic_CXX='-KPIC'
20592 lt_prog_compiler_static_CXX='-Bstatic'
20593 lt_prog_compiler_wl_CXX='-Qoption ld '
20595 gcx*)
20596 # Green Hills C++ Compiler
20597 lt_prog_compiler_pic_CXX='-PIC'
20601 esac
20603 sunos4*)
20604 case $cc_basename in
20605 CC*)
20606 # Sun C++ 4.x
20607 lt_prog_compiler_pic_CXX='-pic'
20608 lt_prog_compiler_static_CXX='-Bstatic'
20610 lcc*)
20611 # Lucid
20612 lt_prog_compiler_pic_CXX='-pic'
20616 esac
20618 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20619 case $cc_basename in
20620 CC*)
20621 lt_prog_compiler_wl_CXX='-Wl,'
20622 lt_prog_compiler_pic_CXX='-KPIC'
20623 lt_prog_compiler_static_CXX='-Bstatic'
20625 esac
20627 tandem*)
20628 case $cc_basename in
20629 NCC*)
20630 # NonStop-UX NCC 3.20
20631 lt_prog_compiler_pic_CXX='-KPIC'
20635 esac
20637 vxworks*)
20640 lt_prog_compiler_can_build_shared_CXX=no
20642 esac
20645 case $host_os in
20646 # For platforms which do not support PIC, -DPIC is meaningless:
20647 *djgpp*)
20648 lt_prog_compiler_pic_CXX=
20651 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20653 esac
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20655 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20660 # Check to make sure the PIC flag actually works.
20662 if test -n "$lt_prog_compiler_pic_CXX"; then
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20664 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20665 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20666 $as_echo_n "(cached) " >&6
20667 else
20668 lt_cv_prog_compiler_pic_works_CXX=no
20669 ac_outfile=conftest.$ac_objext
20670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20671 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20672 # Insert the option either (1) after the last *FLAGS variable, or
20673 # (2) before a word containing "conftest.", or (3) at the end.
20674 # Note that $ac_compile itself does not contain backslashes and begins
20675 # with a dollar sign (not a hyphen), so the echo should work correctly.
20676 # The option is referenced via a variable to avoid confusing sed.
20677 lt_compile=`echo "$ac_compile" | $SED \
20678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20680 -e 's:$: $lt_compiler_flag:'`
20681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20682 (eval "$lt_compile" 2>conftest.err)
20683 ac_status=$?
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 if (exit $ac_status) && test -s "$ac_outfile"; then
20687 # The compiler can only warn and ignore the option if not recognized
20688 # So say no if there are warnings other than the usual output.
20689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20692 lt_cv_prog_compiler_pic_works_CXX=yes
20695 $RM conftest*
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20699 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20701 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20702 case $lt_prog_compiler_pic_CXX in
20703 "" | " "*) ;;
20704 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20705 esac
20706 else
20707 lt_prog_compiler_pic_CXX=
20708 lt_prog_compiler_can_build_shared_CXX=no
20716 # Check to make sure the static flag actually works.
20718 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20720 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20721 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20722 $as_echo_n "(cached) " >&6
20723 else
20724 lt_cv_prog_compiler_static_works_CXX=no
20725 save_LDFLAGS="$LDFLAGS"
20726 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20727 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20729 # The linker can only warn and ignore the option if not recognized
20730 # So say no if there are warnings
20731 if test -s conftest.err; then
20732 # Append any errors to the config.log.
20733 cat conftest.err 1>&5
20734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20736 if diff conftest.exp conftest.er2 >/dev/null; then
20737 lt_cv_prog_compiler_static_works_CXX=yes
20739 else
20740 lt_cv_prog_compiler_static_works_CXX=yes
20743 $RM -r conftest*
20744 LDFLAGS="$save_LDFLAGS"
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20748 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20750 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20752 else
20753 lt_prog_compiler_static_CXX=
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20761 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20762 $as_echo_n "(cached) " >&6
20763 else
20764 lt_cv_prog_compiler_c_o_CXX=no
20765 $RM -r conftest 2>/dev/null
20766 mkdir conftest
20767 cd conftest
20768 mkdir out
20769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20771 lt_compiler_flag="-o out/conftest2.$ac_objext"
20772 # Insert the option either (1) after the last *FLAGS variable, or
20773 # (2) before a word containing "conftest.", or (3) at the end.
20774 # Note that $ac_compile itself does not contain backslashes and begins
20775 # with a dollar sign (not a hyphen), so the echo should work correctly.
20776 lt_compile=`echo "$ac_compile" | $SED \
20777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20779 -e 's:$: $lt_compiler_flag:'`
20780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20781 (eval "$lt_compile" 2>out/conftest.err)
20782 ac_status=$?
20783 cat out/conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20786 then
20787 # The compiler can only warn and ignore the option if not recognized
20788 # So say no if there are warnings
20789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20792 lt_cv_prog_compiler_c_o_CXX=yes
20795 chmod u+w . 2>&5
20796 $RM conftest*
20797 # SGI C++ compiler will create directory out/ii_files/ for
20798 # template instantiation
20799 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20800 $RM out/* && rmdir out
20801 cd ..
20802 $RM -r conftest
20803 $RM conftest*
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20807 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20813 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20814 $as_echo_n "(cached) " >&6
20815 else
20816 lt_cv_prog_compiler_c_o_CXX=no
20817 $RM -r conftest 2>/dev/null
20818 mkdir conftest
20819 cd conftest
20820 mkdir out
20821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20823 lt_compiler_flag="-o out/conftest2.$ac_objext"
20824 # Insert the option either (1) after the last *FLAGS variable, or
20825 # (2) before a word containing "conftest.", or (3) at the end.
20826 # Note that $ac_compile itself does not contain backslashes and begins
20827 # with a dollar sign (not a hyphen), so the echo should work correctly.
20828 lt_compile=`echo "$ac_compile" | $SED \
20829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20831 -e 's:$: $lt_compiler_flag:'`
20832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20833 (eval "$lt_compile" 2>out/conftest.err)
20834 ac_status=$?
20835 cat out/conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20838 then
20839 # The compiler can only warn and ignore the option if not recognized
20840 # So say no if there are warnings
20841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20844 lt_cv_prog_compiler_c_o_CXX=yes
20847 chmod u+w . 2>&5
20848 $RM conftest*
20849 # SGI C++ compiler will create directory out/ii_files/ for
20850 # template instantiation
20851 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20852 $RM out/* && rmdir out
20853 cd ..
20854 $RM -r conftest
20855 $RM conftest*
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20859 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20864 hard_links="nottested"
20865 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20866 # do not overwrite the value of need_locks provided by the user
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20868 $as_echo_n "checking if we can lock with hard links... " >&6; }
20869 hard_links=yes
20870 $RM conftest*
20871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20872 touch conftest.a
20873 ln conftest.a conftest.b 2>&5 || hard_links=no
20874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20876 $as_echo "$hard_links" >&6; }
20877 if test "$hard_links" = no; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20879 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20880 need_locks=warn
20882 else
20883 need_locks=no
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20889 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20891 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20892 case $host_os in
20893 aix[4-9]*)
20894 # If we're using GNU nm, then we don't want the "-C" option.
20895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20896 # Also, AIX nm treats weak defined symbols like other global defined
20897 # symbols, whereas GNU nm marks them as "W".
20898 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20899 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'
20900 else
20901 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'
20904 pw32*)
20905 export_symbols_cmds_CXX="$ltdll_cmds"
20907 cygwin* | mingw* | cegcc*)
20908 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'
20911 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20913 esac
20914 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20917 $as_echo "$ld_shlibs_CXX" >&6; }
20918 test "$ld_shlibs_CXX" = no && can_build_shared=no
20920 with_gnu_ld_CXX=$with_gnu_ld
20928 # Do we need to explicitly link libc?
20930 case "x$archive_cmds_need_lc_CXX" in
20931 x|xyes)
20932 # Assume -lc should be added
20933 archive_cmds_need_lc_CXX=yes
20935 if test "$enable_shared" = yes && test "$GCC" = yes; then
20936 case $archive_cmds_CXX in
20937 *'~'*)
20938 # FIXME: we may have to deal with multi-command sequences.
20940 '$CC '*)
20941 # Test whether the compiler implicitly links with -lc since on some
20942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20943 # to ld, don't add -lc before -lgcc.
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20945 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20946 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20947 $as_echo_n "(cached) " >&6
20948 else
20949 $RM conftest*
20950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20953 (eval $ac_compile) 2>&5
20954 ac_status=$?
20955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20956 test $ac_status = 0; } 2>conftest.err; then
20957 soname=conftest
20958 lib=conftest
20959 libobjs=conftest.$ac_objext
20960 deplibs=
20961 wl=$lt_prog_compiler_wl_CXX
20962 pic_flag=$lt_prog_compiler_pic_CXX
20963 compiler_flags=-v
20964 linker_flags=-v
20965 verstring=
20966 output_objdir=.
20967 libname=conftest
20968 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20969 allow_undefined_flag_CXX=
20970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20971 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20972 ac_status=$?
20973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20974 test $ac_status = 0; }
20975 then
20976 lt_cv_archive_cmds_need_lc_CXX=no
20977 else
20978 lt_cv_archive_cmds_need_lc_CXX=yes
20980 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20981 else
20982 cat conftest.err 1>&5
20984 $RM conftest*
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20988 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20989 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20991 esac
20994 esac
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21060 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21062 library_names_spec=
21063 libname_spec='lib$name'
21064 soname_spec=
21065 shrext_cmds=".so"
21066 postinstall_cmds=
21067 postuninstall_cmds=
21068 finish_cmds=
21069 finish_eval=
21070 shlibpath_var=
21071 shlibpath_overrides_runpath=unknown
21072 version_type=none
21073 dynamic_linker="$host_os ld.so"
21074 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21075 need_lib_prefix=unknown
21076 hardcode_into_libs=no
21078 # when you set need_version to no, make sure it does not cause -set_version
21079 # flags to be left without arguments
21080 need_version=unknown
21082 case $host_os in
21083 aix3*)
21084 version_type=linux
21085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21086 shlibpath_var=LIBPATH
21088 # AIX 3 has no versioning support, so we append a major version to the name.
21089 soname_spec='${libname}${release}${shared_ext}$major'
21092 aix[4-9]*)
21093 version_type=linux
21094 need_lib_prefix=no
21095 need_version=no
21096 hardcode_into_libs=yes
21097 if test "$host_cpu" = ia64; then
21098 # AIX 5 supports IA64
21099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21100 shlibpath_var=LD_LIBRARY_PATH
21101 else
21102 # With GCC up to 2.95.x, collect2 would create an import file
21103 # for dependence libraries. The import file would start with
21104 # the line `#! .'. This would cause the generated library to
21105 # depend on `.', always an invalid library. This was fixed in
21106 # development snapshots of GCC prior to 3.0.
21107 case $host_os in
21108 aix4 | aix4.[01] | aix4.[01].*)
21109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21110 echo ' yes '
21111 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21113 else
21114 can_build_shared=no
21117 esac
21118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21119 # soname into executable. Probably we can add versioning support to
21120 # collect2, so additional links can be useful in future.
21121 if test "$aix_use_runtimelinking" = yes; then
21122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21123 # instead of lib<name>.a to let people know that these are not
21124 # typical AIX shared libraries.
21125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 else
21127 # We preserve .a as extension for shared libraries through AIX4.2
21128 # and later when we are not doing run time linking.
21129 library_names_spec='${libname}${release}.a $libname.a'
21130 soname_spec='${libname}${release}${shared_ext}$major'
21132 shlibpath_var=LIBPATH
21136 amigaos*)
21137 case $host_cpu in
21138 powerpc)
21139 # Since July 2007 AmigaOS4 officially supports .so libraries.
21140 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21143 m68k)
21144 library_names_spec='$libname.ixlibrary $libname.a'
21145 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21146 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'
21148 esac
21151 beos*)
21152 library_names_spec='${libname}${shared_ext}'
21153 dynamic_linker="$host_os ld.so"
21154 shlibpath_var=LIBRARY_PATH
21157 bsdi[45]*)
21158 version_type=linux
21159 need_version=no
21160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21161 soname_spec='${libname}${release}${shared_ext}$major'
21162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21163 shlibpath_var=LD_LIBRARY_PATH
21164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21166 # the default ld.so.conf also contains /usr/contrib/lib and
21167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21168 # libtool to hard-code these into programs
21171 cygwin* | mingw* | pw32* | cegcc*)
21172 version_type=windows
21173 shrext_cmds=".dll"
21174 need_version=no
21175 need_lib_prefix=no
21177 case $GCC,$host_os in
21178 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21179 library_names_spec='$libname.dll.a'
21180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21181 postinstall_cmds='base_file=`basename \${file}`~
21182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21183 dldir=$destdir/`dirname \$dlpath`~
21184 test -d \$dldir || mkdir -p \$dldir~
21185 $install_prog $dir/$dlname \$dldir/$dlname~
21186 chmod a+x \$dldir/$dlname~
21187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21191 dlpath=$dir/\$dldll~
21192 $RM \$dlpath'
21193 shlibpath_overrides_runpath=yes
21195 case $host_os in
21196 cygwin*)
21197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21201 mingw* | cegcc*)
21202 # MinGW DLLs use traditional 'lib' prefix
21203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21205 pw32*)
21206 # pw32 DLLs use 'pw' prefix rather than 'lib'
21207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21209 esac
21213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21215 esac
21216 dynamic_linker='Win32 ld.exe'
21217 # FIXME: first we should search . and the directory the executable is in
21218 shlibpath_var=PATH
21221 darwin* | rhapsody*)
21222 dynamic_linker="$host_os dyld"
21223 version_type=darwin
21224 need_lib_prefix=no
21225 need_version=no
21226 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21227 soname_spec='${libname}${release}${major}$shared_ext'
21228 shlibpath_overrides_runpath=yes
21229 shlibpath_var=DYLD_LIBRARY_PATH
21230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21235 dgux*)
21236 version_type=linux
21237 need_lib_prefix=no
21238 need_version=no
21239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21240 soname_spec='${libname}${release}${shared_ext}$major'
21241 shlibpath_var=LD_LIBRARY_PATH
21244 freebsd* | dragonfly*)
21245 # DragonFly does not have aout. When/if they implement a new
21246 # versioning mechanism, adjust this.
21247 if test -x /usr/bin/objformat; then
21248 objformat=`/usr/bin/objformat`
21249 else
21250 case $host_os in
21251 freebsd[23].*) objformat=aout ;;
21252 *) objformat=elf ;;
21253 esac
21255 version_type=freebsd-$objformat
21256 case $version_type in
21257 freebsd-elf*)
21258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21259 need_version=no
21260 need_lib_prefix=no
21262 freebsd-*)
21263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21264 need_version=yes
21266 esac
21267 shlibpath_var=LD_LIBRARY_PATH
21268 case $host_os in
21269 freebsd2.*)
21270 shlibpath_overrides_runpath=yes
21272 freebsd3.[01]* | freebsdelf3.[01]*)
21273 shlibpath_overrides_runpath=yes
21274 hardcode_into_libs=yes
21276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21278 shlibpath_overrides_runpath=no
21279 hardcode_into_libs=yes
21281 *) # from 4.6 on, and DragonFly
21282 shlibpath_overrides_runpath=yes
21283 hardcode_into_libs=yes
21285 esac
21288 gnu*)
21289 version_type=linux
21290 need_lib_prefix=no
21291 need_version=no
21292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21293 soname_spec='${libname}${release}${shared_ext}$major'
21294 shlibpath_var=LD_LIBRARY_PATH
21295 hardcode_into_libs=yes
21298 haiku*)
21299 version_type=linux
21300 need_lib_prefix=no
21301 need_version=no
21302 dynamic_linker="$host_os runtime_loader"
21303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21304 soname_spec='${libname}${release}${shared_ext}$major'
21305 shlibpath_var=LIBRARY_PATH
21306 shlibpath_overrides_runpath=yes
21307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21308 hardcode_into_libs=yes
21311 hpux9* | hpux10* | hpux11*)
21312 # Give a soname corresponding to the major version so that dld.sl refuses to
21313 # link against other versions.
21314 version_type=sunos
21315 need_lib_prefix=no
21316 need_version=no
21317 case $host_cpu in
21318 ia64*)
21319 shrext_cmds='.so'
21320 hardcode_into_libs=yes
21321 dynamic_linker="$host_os dld.so"
21322 shlibpath_var=LD_LIBRARY_PATH
21323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21325 soname_spec='${libname}${release}${shared_ext}$major'
21326 if test "X$HPUX_IA64_MODE" = X32; then
21327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21328 else
21329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21333 hppa*64*)
21334 shrext_cmds='.sl'
21335 hardcode_into_libs=yes
21336 dynamic_linker="$host_os dld.sl"
21337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21340 soname_spec='${libname}${release}${shared_ext}$major'
21341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21345 shrext_cmds='.sl'
21346 dynamic_linker="$host_os dld.sl"
21347 shlibpath_var=SHLIB_PATH
21348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21350 soname_spec='${libname}${release}${shared_ext}$major'
21352 esac
21353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21354 postinstall_cmds='chmod 555 $lib'
21355 # or fails outright, so override atomically:
21356 install_override_mode=555
21359 interix[3-9]*)
21360 version_type=linux
21361 need_lib_prefix=no
21362 need_version=no
21363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21364 soname_spec='${libname}${release}${shared_ext}$major'
21365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21366 shlibpath_var=LD_LIBRARY_PATH
21367 shlibpath_overrides_runpath=no
21368 hardcode_into_libs=yes
21371 irix5* | irix6* | nonstopux*)
21372 case $host_os in
21373 nonstopux*) version_type=nonstopux ;;
21375 if test "$lt_cv_prog_gnu_ld" = yes; then
21376 version_type=linux
21377 else
21378 version_type=irix
21379 fi ;;
21380 esac
21381 need_lib_prefix=no
21382 need_version=no
21383 soname_spec='${libname}${release}${shared_ext}$major'
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21385 case $host_os in
21386 irix5* | nonstopux*)
21387 libsuff= shlibsuff=
21390 case $LD in # libtool.m4 will add one of these switches to LD
21391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21392 libsuff= shlibsuff= libmagic=32-bit;;
21393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21394 libsuff=32 shlibsuff=N32 libmagic=N32;;
21395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21397 *) libsuff= shlibsuff= libmagic=never-match;;
21398 esac
21400 esac
21401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21402 shlibpath_overrides_runpath=no
21403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21405 hardcode_into_libs=yes
21408 # No shared lib support for Linux oldld, aout, or coff.
21409 linux*oldld* | linux*aout* | linux*coff*)
21410 dynamic_linker=no
21413 # This must be Linux ELF.
21414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21415 version_type=linux
21416 need_lib_prefix=no
21417 need_version=no
21418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21419 soname_spec='${libname}${release}${shared_ext}$major'
21420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21421 shlibpath_var=LD_LIBRARY_PATH
21422 shlibpath_overrides_runpath=no
21424 # Some binutils ld are patched to set DT_RUNPATH
21425 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21426 $as_echo_n "(cached) " >&6
21427 else
21428 lt_cv_shlibpath_overrides_runpath=no
21429 save_LDFLAGS=$LDFLAGS
21430 save_libdir=$libdir
21431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21437 main ()
21441 return 0;
21443 _ACEOF
21444 if ac_fn_cxx_try_link "$LINENO"; then :
21445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21446 lt_cv_shlibpath_overrides_runpath=yes
21449 rm -f core conftest.err conftest.$ac_objext \
21450 conftest$ac_exeext conftest.$ac_ext
21451 LDFLAGS=$save_LDFLAGS
21452 libdir=$save_libdir
21456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21458 # This implies no fast_install, which is unacceptable.
21459 # Some rework will be needed to allow for fast_install
21460 # before this can be enabled.
21461 hardcode_into_libs=yes
21463 # Append ld.so.conf contents to the search path
21464 if test -f /etc/ld.so.conf; then
21465 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' ' '`
21466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21469 # We used to test for /lib/ld.so.1 and disable shared libraries on
21470 # powerpc, because MkLinux only supported shared libraries with the
21471 # GNU dynamic linker. Since this was broken with cross compilers,
21472 # most powerpc-linux boxes support dynamic linking these days and
21473 # people can always --disable-shared, the test was removed, and we
21474 # assume the GNU/Linux dynamic linker is in use.
21475 dynamic_linker='GNU/Linux ld.so'
21478 netbsd*)
21479 version_type=sunos
21480 need_lib_prefix=no
21481 need_version=no
21482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21485 dynamic_linker='NetBSD (a.out) ld.so'
21486 else
21487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21488 soname_spec='${libname}${release}${shared_ext}$major'
21489 dynamic_linker='NetBSD ld.elf_so'
21491 shlibpath_var=LD_LIBRARY_PATH
21492 shlibpath_overrides_runpath=yes
21493 hardcode_into_libs=yes
21496 newsos6)
21497 version_type=linux
21498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21499 shlibpath_var=LD_LIBRARY_PATH
21500 shlibpath_overrides_runpath=yes
21503 *nto* | *qnx*)
21504 version_type=qnx
21505 need_lib_prefix=no
21506 need_version=no
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21508 soname_spec='${libname}${release}${shared_ext}$major'
21509 shlibpath_var=LD_LIBRARY_PATH
21510 shlibpath_overrides_runpath=no
21511 hardcode_into_libs=yes
21512 dynamic_linker='ldqnx.so'
21515 openbsd*)
21516 version_type=sunos
21517 sys_lib_dlsearch_path_spec="/usr/lib"
21518 need_lib_prefix=no
21519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21520 case $host_os in
21521 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21522 *) need_version=no ;;
21523 esac
21524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21526 shlibpath_var=LD_LIBRARY_PATH
21527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21528 case $host_os in
21529 openbsd2.[89] | openbsd2.[89].*)
21530 shlibpath_overrides_runpath=no
21533 shlibpath_overrides_runpath=yes
21535 esac
21536 else
21537 shlibpath_overrides_runpath=yes
21541 os2*)
21542 libname_spec='$name'
21543 shrext_cmds=".dll"
21544 need_lib_prefix=no
21545 library_names_spec='$libname${shared_ext} $libname.a'
21546 dynamic_linker='OS/2 ld.exe'
21547 shlibpath_var=LIBPATH
21550 osf3* | osf4* | osf5*)
21551 version_type=osf
21552 need_lib_prefix=no
21553 need_version=no
21554 soname_spec='${libname}${release}${shared_ext}$major'
21555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21556 shlibpath_var=LD_LIBRARY_PATH
21557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21561 rdos*)
21562 dynamic_linker=no
21565 solaris*)
21566 version_type=linux
21567 need_lib_prefix=no
21568 need_version=no
21569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21570 soname_spec='${libname}${release}${shared_ext}$major'
21571 shlibpath_var=LD_LIBRARY_PATH
21572 shlibpath_overrides_runpath=yes
21573 hardcode_into_libs=yes
21574 # ldd complains unless libraries are executable
21575 postinstall_cmds='chmod +x $lib'
21578 sunos4*)
21579 version_type=sunos
21580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21582 shlibpath_var=LD_LIBRARY_PATH
21583 shlibpath_overrides_runpath=yes
21584 if test "$with_gnu_ld" = yes; then
21585 need_lib_prefix=no
21587 need_version=yes
21590 sysv4 | sysv4.3*)
21591 version_type=linux
21592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21593 soname_spec='${libname}${release}${shared_ext}$major'
21594 shlibpath_var=LD_LIBRARY_PATH
21595 case $host_vendor in
21596 sni)
21597 shlibpath_overrides_runpath=no
21598 need_lib_prefix=no
21599 runpath_var=LD_RUN_PATH
21601 siemens)
21602 need_lib_prefix=no
21604 motorola)
21605 need_lib_prefix=no
21606 need_version=no
21607 shlibpath_overrides_runpath=no
21608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21610 esac
21613 sysv4*MP*)
21614 if test -d /usr/nec ;then
21615 version_type=linux
21616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21617 soname_spec='$libname${shared_ext}.$major'
21618 shlibpath_var=LD_LIBRARY_PATH
21622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21623 version_type=freebsd-elf
21624 need_lib_prefix=no
21625 need_version=no
21626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21627 soname_spec='${libname}${release}${shared_ext}$major'
21628 shlibpath_var=LD_LIBRARY_PATH
21629 shlibpath_overrides_runpath=yes
21630 hardcode_into_libs=yes
21631 if test "$with_gnu_ld" = yes; then
21632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21633 else
21634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21635 case $host_os in
21636 sco3.2v5*)
21637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21639 esac
21641 sys_lib_dlsearch_path_spec='/usr/lib'
21644 tpf*)
21645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21646 version_type=linux
21647 need_lib_prefix=no
21648 need_version=no
21649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21650 shlibpath_var=LD_LIBRARY_PATH
21651 shlibpath_overrides_runpath=no
21652 hardcode_into_libs=yes
21655 uts4*)
21656 version_type=linux
21657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21658 soname_spec='${libname}${release}${shared_ext}$major'
21659 shlibpath_var=LD_LIBRARY_PATH
21663 dynamic_linker=no
21665 esac
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21667 $as_echo "$dynamic_linker" >&6; }
21668 test "$dynamic_linker" = no && can_build_shared=no
21670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21671 if test "$GCC" = yes; then
21672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21720 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21721 hardcode_action_CXX=
21722 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21723 test -n "$runpath_var_CXX" ||
21724 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21726 # We can hardcode non-existent directories.
21727 if test "$hardcode_direct_CXX" != no &&
21728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21729 # have to relink, otherwise we might link with an installed library
21730 # when we should be linking with a yet-to-be-installed one
21731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21732 test "$hardcode_minus_L_CXX" != no; then
21733 # Linking always hardcodes the temporary library directory.
21734 hardcode_action_CXX=relink
21735 else
21736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21737 hardcode_action_CXX=immediate
21739 else
21740 # We cannot hardcode anything, or else we can only hardcode existing
21741 # directories.
21742 hardcode_action_CXX=unsupported
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21745 $as_echo "$hardcode_action_CXX" >&6; }
21747 if test "$hardcode_action_CXX" = relink ||
21748 test "$inherit_rpath_CXX" = yes; then
21749 # Fast installation is not supported
21750 enable_fast_install=no
21751 elif test "$shlibpath_overrides_runpath" = yes ||
21752 test "$enable_shared" = no; then
21753 # Fast installation is not necessary
21754 enable_fast_install=needless
21763 fi # test -n "$compiler"
21765 CC=$lt_save_CC
21766 LDCXX=$LD
21767 LD=$lt_save_LD
21768 GCC=$lt_save_GCC
21769 with_gnu_ld=$lt_save_with_gnu_ld
21770 lt_cv_path_LDCXX=$lt_cv_path_LD
21771 lt_cv_path_LD=$lt_save_path_LD
21772 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21773 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21774 fi # test "$_lt_caught_CXX_error" != yes
21776 ac_ext=cpp
21777 ac_cpp='$CXXCPP $CPPFLAGS'
21778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21797 # Only expand once:
21803 # Identify the assembler which will work hand-in-glove with the newly
21804 # built GCC, so that we can examine its features. This is the assembler
21805 # which will be driven by the driver program.
21807 # If build != host, and we aren't building gas in-tree, we identify a
21808 # build->target assembler and hope that it will have the same features
21809 # as the host->target assembler we'll be using.
21810 gcc_cv_gas_major_version=
21811 gcc_cv_gas_minor_version=
21812 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21814 if test "${gcc_cv_as+set}" = set; then :
21816 else
21818 if test -x "$DEFAULT_ASSEMBLER"; then
21819 gcc_cv_as="$DEFAULT_ASSEMBLER"
21820 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21821 && test -f ../gas/Makefile \
21822 && test x$build = x$host; then
21823 gcc_cv_as=../gas/as-new$build_exeext
21824 elif test -x as$build_exeext; then
21825 # Build using assembler in the current directory.
21826 gcc_cv_as=./as$build_exeext
21827 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21828 gcc_cv_as="$AS_FOR_TARGET"
21829 else
21830 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21831 set dummy $AS_FOR_TARGET; ac_word=$2
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21833 $as_echo_n "checking for $ac_word... " >&6; }
21834 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21835 $as_echo_n "(cached) " >&6
21836 else
21837 case $gcc_cv_as in
21838 [\\/]* | ?:[\\/]*)
21839 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21843 for as_dir in $PATH
21845 IFS=$as_save_IFS
21846 test -z "$as_dir" && as_dir=.
21847 for ac_exec_ext in '' $ac_executable_extensions; do
21848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21849 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21851 break 2
21853 done
21854 done
21855 IFS=$as_save_IFS
21858 esac
21860 gcc_cv_as=$ac_cv_path_gcc_cv_as
21861 if test -n "$gcc_cv_as"; then
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21863 $as_echo "$gcc_cv_as" >&6; }
21864 else
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21866 $as_echo "no" >&6; }
21873 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21875 case "$ORIGINAL_AS_FOR_TARGET" in
21876 ./as | ./as$build_exeext) ;;
21877 *) ac_config_files="$ac_config_files as:exec-tool.in"
21879 esac
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21882 $as_echo_n "checking what assembler to use... " >&6; }
21883 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21884 # Single tree build which includes gas. We want to prefer it
21885 # over whatever linker top-level may have detected, since
21886 # we'll use what we're building after installation anyway.
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21888 $as_echo "newly built gas" >&6; }
21889 in_tree_gas=yes
21890 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21891 for f in $gcc_cv_as_bfd_srcdir/configure \
21892 $gcc_cv_as_gas_srcdir/configure \
21893 $gcc_cv_as_gas_srcdir/configure.ac \
21894 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21895 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21896 if test x$gcc_cv_gas_version != x; then
21897 break
21899 done
21900 case $gcc_cv_gas_version in
21901 VERSION=[0-9]*) ;;
21902 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21903 esac
21904 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21905 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21906 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21907 case $gcc_cv_gas_patch_version in
21908 "") gcc_cv_gas_patch_version="0" ;;
21909 esac
21910 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21911 + $gcc_cv_gas_minor_version \) \* 1000 \
21912 + $gcc_cv_gas_patch_version`
21914 in_tree_gas_is_elf=no
21915 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21916 || (grep 'obj_format = multi' ../gas/Makefile \
21917 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21918 then
21919 in_tree_gas_is_elf=yes
21921 else
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21923 $as_echo "$gcc_cv_as" >&6; }
21924 in_tree_gas=no
21927 default_ld=
21928 # Check whether --enable-ld was given.
21929 if test "${enable_ld+set}" = set; then :
21930 enableval=$enable_ld; case "${enableval}" in
21932 default_ld=ld.gold
21934 esac
21938 install_gold_as_default=no
21939 # Check whether --enable-gold was given.
21940 if test "${enable_gold+set}" = set; then :
21941 enableval=$enable_gold; case "${enableval}" in
21942 default)
21943 install_gold_as_default=yes
21945 yes)
21946 if test x${default_ld} != x; then
21947 install_gold_as_default=yes
21953 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21955 esac
21959 # Identify the linker which will work hand-in-glove with the newly
21960 # built GCC, so that we can examine its features. This is the linker
21961 # which will be driven by the driver program.
21963 # If build != host, and we aren't building gas in-tree, we identify a
21964 # build->target linker and hope that it will have the same features
21965 # as the host->target linker we'll be using.
21966 gcc_cv_gld_major_version=
21967 gcc_cv_gld_minor_version=
21968 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21969 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21970 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21972 if test "${gcc_cv_ld+set}" = set; then :
21974 else
21976 if test -x "$DEFAULT_LINKER"; then
21977 gcc_cv_ld="$DEFAULT_LINKER"
21978 elif test $install_gold_as_default = yes \
21979 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21980 && test -f ../gold/Makefile \
21981 && test x$build = x$host; then
21982 gcc_cv_ld=../gold/ld-new$build_exeext
21983 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21984 && test -f ../ld/Makefile \
21985 && test x$build = x$host; then
21986 gcc_cv_ld=../ld/ld-new$build_exeext
21987 elif test -x collect-ld$build_exeext; then
21988 # Build using linker in the current directory.
21989 gcc_cv_ld=./collect-ld$build_exeext
21990 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21991 gcc_cv_ld="$LD_FOR_TARGET"
21992 else
21993 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21994 set dummy $LD_FOR_TARGET; ac_word=$2
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21996 $as_echo_n "checking for $ac_word... " >&6; }
21997 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21998 $as_echo_n "(cached) " >&6
21999 else
22000 case $gcc_cv_ld in
22001 [\\/]* | ?:[\\/]*)
22002 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22006 for as_dir in $PATH
22008 IFS=$as_save_IFS
22009 test -z "$as_dir" && as_dir=.
22010 for ac_exec_ext in '' $ac_executable_extensions; do
22011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22012 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22014 break 2
22016 done
22017 done
22018 IFS=$as_save_IFS
22021 esac
22023 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22024 if test -n "$gcc_cv_ld"; then
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22026 $as_echo "$gcc_cv_ld" >&6; }
22027 else
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22029 $as_echo "no" >&6; }
22036 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22037 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22038 # if the PLUGIN_LD is set ld-new, just have it as ld
22039 # as that is the installed named.
22040 if test x$PLUGIN_LD_SUFFIX = xld-new \
22041 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22042 PLUGIN_LD_SUFFIX=ld
22045 # Check whether --with-plugin-ld was given.
22046 if test "${with_plugin_ld+set}" = set; then :
22047 withval=$with_plugin_ld; if test x"$withval" != x; then
22048 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22049 PLUGIN_LD_SUFFIX="$withval"
22055 cat >>confdefs.h <<_ACEOF
22056 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22057 _ACEOF
22060 # Check to see if we are using gold instead of ld
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22062 $as_echo_n "checking whether we are using gold... " >&6; }
22063 ld_is_gold=no
22064 if test x$gcc_cv_ld != x; then
22065 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22066 | grep "GNU gold" > /dev/null; then
22067 ld_is_gold=yes
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22071 $as_echo "$ld_is_gold" >&6; }
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22074 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22075 # Check to see if default ld is not gold, but gold is
22076 # available and has support for split stack. If gcc was configured
22077 # with gold then no checking is done.
22079 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22081 # For platforms other than powerpc64*, enable as appropriate.
22083 gold_non_default=no
22084 ld_gold=`which ${gcc_cv_ld}.gold`
22085 # Make sure this gold has minimal split stack support
22086 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22087 ld_vers=`$ld_gold --version | sed 1q`
22088 gold_vers=`echo $ld_vers | sed -n \
22089 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22090 case $target in
22091 # check that the gold version contains the complete split stack support
22092 # on powerpc64 big and little endian
22093 powerpc64*-*-*)
22094 case "$gold_vers" in
22095 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22097 *) gold_non_default=no
22099 esac
22101 esac
22103 if test $gold_non_default = yes; then
22105 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22110 $as_echo "$gold_non_default" >&6; }
22112 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22114 case "$ORIGINAL_LD_FOR_TARGET" in
22115 ./collect-ld | ./collect-ld$build_exeext) ;;
22116 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22118 esac
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22121 $as_echo_n "checking what linker to use... " >&6; }
22122 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22123 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22124 # Single tree build which includes ld. We want to prefer it
22125 # over whatever linker top-level may have detected, since
22126 # we'll use what we're building after installation anyway.
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22128 $as_echo "newly built ld" >&6; }
22129 in_tree_ld=yes
22130 in_tree_ld_is_elf=no
22131 if (grep 'EMUL = .*elf' ../ld/Makefile \
22132 || grep 'EMUL = .*linux' ../ld/Makefile \
22133 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22134 in_tree_ld_is_elf=yes
22135 elif test "$ld_is_gold" = yes; then
22136 in_tree_ld_is_elf=yes
22138 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
22140 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22141 if test x$gcc_cv_gld_version != x; then
22142 break
22144 done
22145 case $gcc_cv_gld_version in
22146 VERSION=[0-9]*) ;;
22147 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22148 esac
22149 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22150 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22151 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22152 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22153 else
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22155 $as_echo "$gcc_cv_ld" >&6; }
22156 in_tree_ld=no
22157 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22158 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22159 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22165 # Figure out what nm we will be using.
22166 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22167 if test "${gcc_cv_nm+set}" = set; then :
22169 else
22171 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22172 && test -f ../binutils/Makefile \
22173 && test x$build = x$host; then
22174 gcc_cv_nm=../binutils/nm-new$build_exeext
22175 elif test -x nm$build_exeext; then
22176 gcc_cv_nm=./nm$build_exeext
22177 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22178 gcc_cv_nm="$NM_FOR_TARGET"
22179 else
22180 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22181 set dummy $NM_FOR_TARGET; ac_word=$2
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22183 $as_echo_n "checking for $ac_word... " >&6; }
22184 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22185 $as_echo_n "(cached) " >&6
22186 else
22187 case $gcc_cv_nm in
22188 [\\/]* | ?:[\\/]*)
22189 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22193 for as_dir in $PATH
22195 IFS=$as_save_IFS
22196 test -z "$as_dir" && as_dir=.
22197 for ac_exec_ext in '' $ac_executable_extensions; do
22198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22199 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22201 break 2
22203 done
22204 done
22205 IFS=$as_save_IFS
22208 esac
22210 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22211 if test -n "$gcc_cv_nm"; then
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22213 $as_echo "$gcc_cv_nm" >&6; }
22214 else
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22216 $as_echo "no" >&6; }
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22224 $as_echo_n "checking what nm to use... " >&6; }
22225 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22226 # Single tree build which includes binutils.
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22228 $as_echo "newly built nm" >&6; }
22229 in_tree_nm=yes
22230 else
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22232 $as_echo "$gcc_cv_nm" >&6; }
22233 in_tree_nm=no
22236 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22238 case "$ORIGINAL_NM_FOR_TARGET" in
22239 ./nm | ./nm$build_exeext) ;;
22240 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22242 esac
22245 # Figure out what objdump we will be using.
22246 if test "${gcc_cv_objdump+set}" = set; then :
22248 else
22250 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22251 && test -f ../binutils/Makefile \
22252 && test x$build = x$host; then
22253 # Single tree build which includes binutils.
22254 gcc_cv_objdump=../binutils/objdump$build_exeext
22255 elif test -x objdump$build_exeext; then
22256 gcc_cv_objdump=./objdump$build_exeext
22257 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22258 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22259 else
22260 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22261 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22263 $as_echo_n "checking for $ac_word... " >&6; }
22264 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22265 $as_echo_n "(cached) " >&6
22266 else
22267 case $gcc_cv_objdump in
22268 [\\/]* | ?:[\\/]*)
22269 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22273 for as_dir in $PATH
22275 IFS=$as_save_IFS
22276 test -z "$as_dir" && as_dir=.
22277 for ac_exec_ext in '' $ac_executable_extensions; do
22278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22279 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22281 break 2
22283 done
22284 done
22285 IFS=$as_save_IFS
22288 esac
22290 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22291 if test -n "$gcc_cv_objdump"; then
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22293 $as_echo "$gcc_cv_objdump" >&6; }
22294 else
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22296 $as_echo "no" >&6; }
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22304 $as_echo_n "checking what objdump to use... " >&6; }
22305 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22306 # Single tree build which includes binutils.
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22308 $as_echo "newly built objdump" >&6; }
22309 elif test x$gcc_cv_objdump = x; then
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22311 $as_echo "not found" >&6; }
22312 else
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22314 $as_echo "$gcc_cv_objdump" >&6; }
22317 # Figure out what readelf we will be using.
22318 if test "${gcc_cv_readelf+set}" = set; then :
22320 else
22322 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22323 && test -f ../binutils/Makefile \
22324 && test x$build = x$host; then
22325 # Single tree build which includes binutils.
22326 gcc_cv_readelf=../binutils/readelf$build_exeext
22327 elif test -x readelf$build_exeext; then
22328 gcc_cv_readelf=./readelf$build_exeext
22329 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22330 gcc_cv_readelf="$READELF_FOR_TARGET"
22331 else
22332 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22333 set dummy $READELF_FOR_TARGET; ac_word=$2
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22335 $as_echo_n "checking for $ac_word... " >&6; }
22336 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22337 $as_echo_n "(cached) " >&6
22338 else
22339 case $gcc_cv_readelf in
22340 [\\/]* | ?:[\\/]*)
22341 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345 for as_dir in $PATH
22347 IFS=$as_save_IFS
22348 test -z "$as_dir" && as_dir=.
22349 for ac_exec_ext in '' $ac_executable_extensions; do
22350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22351 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22353 break 2
22355 done
22356 done
22357 IFS=$as_save_IFS
22360 esac
22362 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22363 if test -n "$gcc_cv_readelf"; then
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22365 $as_echo "$gcc_cv_readelf" >&6; }
22366 else
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22368 $as_echo "no" >&6; }
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22376 $as_echo_n "checking what readelf to use... " >&6; }
22377 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22378 # Single tree build which includes binutils.
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22380 $as_echo "newly built readelf" >&6; }
22381 elif test x$gcc_cv_readelf = x; then
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22383 $as_echo "not found" >&6; }
22384 else
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22386 $as_echo "$gcc_cv_readelf" >&6; }
22389 # Figure out what assembler alignment features are present.
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22391 $as_echo_n "checking assembler flags... " >&6; }
22392 if test "${gcc_cv_as_flags+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22394 else
22395 case "$target" in
22396 i[34567]86-*-linux*)
22397 gcc_cv_as_flags=--32
22399 x86_64-*-linux-gnux32)
22400 gcc_cv_as_flags=--x32
22402 x86_64-*-linux*)
22403 gcc_cv_as_flags=--64
22405 powerpc*-*-darwin*)
22406 gcc_cv_as_flags="-arch ppc"
22409 gcc_cv_as_flags=" "
22411 esac
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22414 $as_echo "$gcc_cv_as_flags" >&6; }
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22417 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22418 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421 gcc_cv_as_balign_and_p2align=no
22422 if test $in_tree_gas = yes; then
22423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22424 then gcc_cv_as_balign_and_p2align=yes
22426 elif test x$gcc_cv_as != x; then
22427 $as_echo '.balign 4
22428 .p2align 2' > conftest.s
22429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22431 (eval $ac_try) 2>&5
22432 ac_status=$?
22433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22434 test $ac_status = 0; }; }
22435 then
22436 gcc_cv_as_balign_and_p2align=yes
22437 else
22438 echo "configure: failed program was" >&5
22439 cat conftest.s >&5
22441 rm -f conftest.o conftest.s
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22445 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22446 if test $gcc_cv_as_balign_and_p2align = yes; then
22448 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22454 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22455 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22456 $as_echo_n "(cached) " >&6
22457 else
22458 gcc_cv_as_max_skip_p2align=no
22459 if test $in_tree_gas = yes; then
22460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22461 then gcc_cv_as_max_skip_p2align=yes
22463 elif test x$gcc_cv_as != x; then
22464 $as_echo '.p2align 4,,7' > conftest.s
22465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470 test $ac_status = 0; }; }
22471 then
22472 gcc_cv_as_max_skip_p2align=yes
22473 else
22474 echo "configure: failed program was" >&5
22475 cat conftest.s >&5
22477 rm -f conftest.o conftest.s
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22481 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22482 if test $gcc_cv_as_max_skip_p2align = yes; then
22484 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22490 $as_echo_n "checking assembler for .literal16... " >&6; }
22491 if test "${gcc_cv_as_literal16+set}" = set; then :
22492 $as_echo_n "(cached) " >&6
22493 else
22494 gcc_cv_as_literal16=no
22495 if test $in_tree_gas = yes; then
22496 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22497 then gcc_cv_as_literal16=yes
22499 elif test x$gcc_cv_as != x; then
22500 $as_echo '.literal16' > conftest.s
22501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22506 test $ac_status = 0; }; }
22507 then
22508 gcc_cv_as_literal16=yes
22509 else
22510 echo "configure: failed program was" >&5
22511 cat conftest.s >&5
22513 rm -f conftest.o conftest.s
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22517 $as_echo "$gcc_cv_as_literal16" >&6; }
22518 if test $gcc_cv_as_literal16 = yes; then
22520 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22526 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22527 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22529 else
22530 gcc_cv_as_subsection_m1=no
22531 if test $in_tree_gas = yes; then
22532 if test $in_tree_gas_is_elf = yes \
22533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22534 then gcc_cv_as_subsection_m1=yes
22536 elif test x$gcc_cv_as != x; then
22537 $as_echo 'conftest_label1: .word 0
22538 .subsection -1
22539 conftest_label2: .word 0
22540 .previous' > conftest.s
22541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22543 (eval $ac_try) 2>&5
22544 ac_status=$?
22545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22546 test $ac_status = 0; }; }
22547 then
22548 if test x$gcc_cv_nm != x; then
22549 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22550 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22551 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22552 then :
22553 else gcc_cv_as_subsection_m1=yes
22555 rm -f conftest.nm1 conftest.nm2
22557 else
22558 echo "configure: failed program was" >&5
22559 cat conftest.s >&5
22561 rm -f conftest.o conftest.s
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22565 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22566 if test $gcc_cv_as_subsection_m1 = yes; then
22568 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22574 $as_echo_n "checking assembler for .weak... " >&6; }
22575 if test "${gcc_cv_as_weak+set}" = set; then :
22576 $as_echo_n "(cached) " >&6
22577 else
22578 gcc_cv_as_weak=no
22579 if test $in_tree_gas = yes; then
22580 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22581 then gcc_cv_as_weak=yes
22583 elif test x$gcc_cv_as != x; then
22584 $as_echo ' .weak foobar' > conftest.s
22585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22587 (eval $ac_try) 2>&5
22588 ac_status=$?
22589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22590 test $ac_status = 0; }; }
22591 then
22592 gcc_cv_as_weak=yes
22593 else
22594 echo "configure: failed program was" >&5
22595 cat conftest.s >&5
22597 rm -f conftest.o conftest.s
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22601 $as_echo "$gcc_cv_as_weak" >&6; }
22602 if test $gcc_cv_as_weak = yes; then
22604 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22610 $as_echo_n "checking assembler for .weakref... " >&6; }
22611 if test "${gcc_cv_as_weakref+set}" = set; then :
22612 $as_echo_n "(cached) " >&6
22613 else
22614 gcc_cv_as_weakref=no
22615 if test $in_tree_gas = yes; then
22616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22617 then gcc_cv_as_weakref=yes
22619 elif test x$gcc_cv_as != x; then
22620 $as_echo ' .weakref foobar, barfnot' > conftest.s
22621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; }
22627 then
22628 gcc_cv_as_weakref=yes
22629 else
22630 echo "configure: failed program was" >&5
22631 cat conftest.s >&5
22633 rm -f conftest.o conftest.s
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22637 $as_echo "$gcc_cv_as_weakref" >&6; }
22638 if test $gcc_cv_as_weakref = yes; then
22640 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22646 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22647 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22648 $as_echo_n "(cached) " >&6
22649 else
22650 gcc_cv_as_nsubspa_comdat=no
22651 if test $in_tree_gas = yes; then
22652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22653 then gcc_cv_as_nsubspa_comdat=yes
22655 elif test x$gcc_cv_as != x; then
22656 $as_echo ' .SPACE $TEXT$
22657 .NSUBSPA $CODE$,COMDAT' > conftest.s
22658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22660 (eval $ac_try) 2>&5
22661 ac_status=$?
22662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22663 test $ac_status = 0; }; }
22664 then
22665 gcc_cv_as_nsubspa_comdat=yes
22666 else
22667 echo "configure: failed program was" >&5
22668 cat conftest.s >&5
22670 rm -f conftest.o conftest.s
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22674 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22675 if test $gcc_cv_as_nsubspa_comdat = yes; then
22677 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22682 # .hidden needs to be supported in both the assembler and the linker,
22683 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22684 # This is irritatingly difficult to feature test for; we have to check the
22685 # date string after the version number. If we've got an in-tree
22686 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22687 # to be safe.
22688 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22689 case "${target}" in
22690 *-*-aix*)
22691 conftest_s=' .globl foobar,hidden'
22694 conftest_s=' .hidden foobar
22695 foobar:'
22697 esac
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22699 $as_echo_n "checking assembler for .hidden... " >&6; }
22700 if test "${gcc_cv_as_hidden+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22702 else
22703 gcc_cv_as_hidden=no
22704 if test $in_tree_gas = yes; then
22705 if test $in_tree_gas_is_elf = yes \
22706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22707 then gcc_cv_as_hidden=yes
22709 elif test x$gcc_cv_as != x; then
22710 $as_echo "$conftest_s" > conftest.s
22711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22713 (eval $ac_try) 2>&5
22714 ac_status=$?
22715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22716 test $ac_status = 0; }; }
22717 then
22718 gcc_cv_as_hidden=yes
22719 else
22720 echo "configure: failed program was" >&5
22721 cat conftest.s >&5
22723 rm -f conftest.o conftest.s
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22727 $as_echo "$gcc_cv_as_hidden" >&6; }
22730 case "${target}" in
22731 *-*-darwin*)
22732 # Darwin as has some visibility support, though with a different syntax.
22733 gcc_cv_as_hidden=yes
22735 esac
22737 # gnu_indirect_function type is an extension proposed at
22738 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22739 # selection of function implementation
22740 # Check whether --enable-gnu-indirect-function was given.
22741 if test "${enable_gnu_indirect_function+set}" = set; then :
22742 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22743 yes | no) ;;
22744 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22745 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22746 esac
22747 else
22748 enable_gnu_indirect_function="$default_gnu_indirect_function"
22752 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22754 cat >>confdefs.h <<_ACEOF
22755 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22756 _ACEOF
22760 if test $in_tree_ld != yes ; then
22761 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22762 if echo "$ld_ver" | grep GNU > /dev/null; then
22763 if test x"$ld_is_gold" = xyes; then
22764 # GNU gold --version looks like this:
22766 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22768 # We extract the binutils version which is more familiar and specific
22769 # than the gold version.
22770 ld_vers=`echo $ld_ver | sed -n \
22771 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22772 else
22773 # GNU ld --version looks like this:
22775 # GNU ld (GNU Binutils) 2.21.51.20110225
22776 ld_vers=`echo $ld_ver | sed -n \
22777 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22779 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'`
22780 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22781 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22782 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22783 else
22784 case "${target}" in
22785 *-*-solaris2*)
22786 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22787 # format.
22789 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22790 # /usr/ccs/bin/ld has been configured.
22791 ld_ver=`$gcc_cv_ld -V 2>&1`
22792 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22793 ld_vers=`echo $ld_ver | sed -n \
22794 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22795 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22796 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22799 esac
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22804 $as_echo_n "checking linker for .hidden support... " >&6; }
22805 if test "${gcc_cv_ld_hidden+set}" = set; then :
22806 $as_echo_n "(cached) " >&6
22807 else
22808 if test $in_tree_ld = yes ; then
22809 gcc_cv_ld_hidden=no
22810 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 \
22811 && test $in_tree_ld_is_elf = yes; then
22812 gcc_cv_ld_hidden=yes
22814 else
22815 gcc_cv_ld_hidden=yes
22816 if test x"$ld_is_gold" = xyes; then
22818 elif echo "$ld_ver" | grep GNU > /dev/null; then
22819 case "${target}" in
22820 mmix-knuth-mmixware)
22821 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22822 gcc_cv_ld_hidden=no
22824 esac
22825 if test 0"$ld_date" -lt 20020404; then
22826 if test -n "$ld_date"; then
22827 # If there was date string, but was earlier than 2002-04-04, fail
22828 gcc_cv_ld_hidden=no
22829 elif test -z "$ld_vers"; then
22830 # If there was no date string nor ld version number, something is wrong
22831 gcc_cv_ld_hidden=no
22832 else
22833 test -z "$ld_vers_patch" && ld_vers_patch=0
22834 if test "$ld_vers_major" -lt 2; then
22835 gcc_cv_ld_hidden=no
22836 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22837 gcc_cv_ld_hidden="no"
22838 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22839 gcc_cv_ld_hidden=no
22843 else
22844 case "${target}" in
22845 *-*-aix[789]*)
22846 gcc_cv_ld_hidden=yes
22848 *-*-darwin*)
22849 # Darwin ld has some visibility support.
22850 gcc_cv_ld_hidden=yes
22852 hppa64*-*-hpux* | ia64*-*-hpux*)
22853 gcc_cv_ld_hidden=yes
22855 *-*-solaris2.1[0-9]*)
22856 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22857 # .symbolic was only added in Solaris 9 12/02.
22858 gcc_cv_ld_hidden=yes
22861 gcc_cv_ld_hidden=no
22863 esac
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22868 $as_echo "$gcc_cv_ld_hidden" >&6; }
22869 libgcc_visibility=no
22872 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22873 libgcc_visibility=yes
22875 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22880 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22881 gcc_cv_ld_ro_rw_mix=unknown
22882 if test $in_tree_ld = yes ; then
22883 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
22884 && test $in_tree_ld_is_elf = yes; then
22885 gcc_cv_ld_ro_rw_mix=read-write
22887 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22888 echo '.section myfoosect, "a"' > conftest1.s
22889 echo '.section myfoosect, "aw"' > conftest2.s
22890 echo '.byte 1' >> conftest2.s
22891 echo '.section myfoosect, "a"' > conftest3.s
22892 echo '.byte 0' >> conftest3.s
22893 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22894 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22895 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22896 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22897 conftest2.o conftest3.o > /dev/null 2>&1; then
22898 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22899 | sed -e '/myfoosect/!d' -e N`
22900 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22901 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22902 gcc_cv_ld_ro_rw_mix=read-only
22903 else
22904 gcc_cv_ld_ro_rw_mix=read-write
22908 rm -f conftest.* conftest[123].*
22910 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22912 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22916 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22918 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22919 case "${target}" in
22920 *-*-solaris2*)
22922 # Solaris 2 ld -V output looks like this for a regular version:
22924 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22926 # but test versions add stuff at the end:
22928 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22930 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22931 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22932 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22933 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22934 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22935 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22938 esac
22941 # Check whether --enable-initfini-array was given.
22942 if test "${enable_initfini_array+set}" = set; then :
22943 enableval=$enable_initfini_array;
22944 else
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22947 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22948 if test "${gcc_cv_initfini_array+set}" = set; then :
22949 $as_echo_n "(cached) " >&6
22950 else
22951 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22952 case "${target}" in
22953 ia64-*)
22954 if test "$cross_compiling" = yes; then :
22955 gcc_cv_initfini_array=no
22956 else
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22960 #ifndef __ELF__
22961 #error Not an ELF OS
22962 #endif
22963 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22964 if it can be used. */
22965 static int x = -1;
22966 int main (void) { return x; }
22967 int foo (void) { x = 0; }
22968 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22970 _ACEOF
22971 if ac_fn_cxx_try_run "$LINENO"; then :
22972 gcc_cv_initfini_array=yes
22973 else
22974 gcc_cv_initfini_array=no
22976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22977 conftest.$ac_objext conftest.beam conftest.$ac_ext
22981 gcc_cv_initfini_array=no
22982 if test $in_tree_ld = yes ; then
22983 if test "$gcc_cv_gld_major_version" -eq 2 \
22984 -a "$gcc_cv_gld_minor_version" -ge 22 \
22985 -o "$gcc_cv_gld_major_version" -gt 2 \
22986 && test $in_tree_ld_is_elf = yes; then
22987 gcc_cv_initfini_array=yes
22989 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22990 case $target:$gas in
22991 *:yes)
22992 sh_flags='"a"'
22993 sh_type='%progbits'
22995 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22996 sh_flags='"a"'
22997 sh_type='@progbits'
22999 sparc*-*-solaris2*:no)
23000 sh_flags='#alloc'
23001 sh_type='#progbits'
23002 sh_quote='"'
23004 esac
23005 case "$target:$gnu_ld" in
23006 *:yes)
23007 cat > conftest.s <<EOF
23008 .section .dtors,$sh_flags,$sh_type
23009 .balign 4
23010 .byte 'A', 'A', 'A', 'A'
23011 .section .ctors,$sh_flags,$sh_type
23012 .balign 4
23013 .byte 'B', 'B', 'B', 'B'
23014 .section .fini_array.65530,$sh_flags,$sh_type
23015 .balign 4
23016 .byte 'C', 'C', 'C', 'C'
23017 .section .init_array.65530,$sh_flags,$sh_type
23018 .balign 4
23019 .byte 'D', 'D', 'D', 'D'
23020 .section .dtors.64528,$sh_flags,$sh_type
23021 .balign 4
23022 .byte 'E', 'E', 'E', 'E'
23023 .section .ctors.64528,$sh_flags,$sh_type
23024 .balign 4
23025 .byte 'F', 'F', 'F', 'F'
23026 .section .fini_array.01005,$sh_flags,$sh_type
23027 .balign 4
23028 .byte 'G', 'G', 'G', 'G'
23029 .section .init_array.01005,$sh_flags,$sh_type
23030 .balign 4
23031 .byte 'H', 'H', 'H', 'H'
23032 .text
23033 .globl _start
23034 _start:
23036 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23037 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23038 && $gcc_cv_objdump -s -j .init_array conftest \
23039 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23040 && $gcc_cv_objdump -s -j .fini_array conftest \
23041 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23042 gcc_cv_initfini_array=yes
23045 *-*-solaris2*:no)
23046 # When Solaris ld added constructor priority support, it was
23047 # decided to only handle .init_array.N/.fini_array.N since
23048 # there was no need for backwards compatibility with
23049 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23050 # sections with correct execution order resp. to
23051 # .init_array/.fini_array, while gld merges them into
23052 # .init_array/.fini_array.
23053 cat > conftest.s <<EOF
23054 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23055 .align 4
23056 .byte 'C', 'C', 'C', 'C'
23057 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23058 .align 4
23059 .byte 'D', 'D', 'D', 'D'
23060 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23061 .align 4
23062 .byte 'G', 'G', 'G', 'G'
23063 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23064 .align 4
23065 .byte 'H', 'H', 'H', 'H'
23066 .text
23067 .globl _start
23068 _start:
23070 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23071 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23072 && $gcc_cv_objdump -s -j .init_array conftest \
23073 | grep HHHHDDDD > /dev/null 2>&1 \
23074 && $gcc_cv_objdump -s -j .fini_array conftest \
23075 | grep GGGGCCCC > /dev/null 2>&1; then
23076 gcc_cv_initfini_array=yes
23079 esac
23080 rm -f conftest conftest.*
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23085 #ifndef __ELF__
23086 # error Not an ELF OS
23087 #endif
23088 #include <stdlib.h>
23089 #if defined __GLIBC_PREREQ
23090 # if __GLIBC_PREREQ (2, 4)
23091 # else
23092 # error GLIBC 2.4 required
23093 # endif
23094 #else
23095 # if defined __sun__ && defined __svr4__
23096 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23097 # else
23098 # error The C library not known to support .init_array/.fini_array
23099 # endif
23100 #endif
23102 _ACEOF
23103 if ac_fn_cxx_try_cpp "$LINENO"; then :
23105 else
23106 gcc_cv_initfini_array=no
23108 rm -f conftest.err conftest.$ac_ext;;
23109 esac
23110 else
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23112 $as_echo_n "checking cross compile... guessing... " >&6; }
23113 gcc_cv_initfini_array=no
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23117 $as_echo "$gcc_cv_initfini_array" >&6; }
23118 enable_initfini_array=$gcc_cv_initfini_array
23123 cat >>confdefs.h <<_ACEOF
23124 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23125 _ACEOF
23129 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23131 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23132 if test "${gcc_cv_as_leb128+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23134 else
23135 gcc_cv_as_leb128=no
23136 if test $in_tree_gas = yes; then
23137 if test $in_tree_gas_is_elf = yes \
23138 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23139 then gcc_cv_as_leb128=yes
23141 elif test x$gcc_cv_as != x; then
23142 $as_echo ' .data
23143 .uleb128 L2 - L1
23145 .uleb128 1280
23146 .sleb128 -1010
23147 L2:' > conftest.s
23148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23154 then
23155 # GAS versions before 2.11 do not support uleb128,
23156 # despite appearing to.
23157 # ??? There exists an elf-specific test that will crash
23158 # the assembler. Perhaps it's better to figure out whether
23159 # arbitrary sections are supported and try the test.
23160 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23161 if echo "$as_ver" | grep GNU > /dev/null; then
23162 as_vers=`echo $as_ver | sed -n \
23163 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23164 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23165 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23166 if test $as_major -eq 2 && test $as_minor -lt 11
23167 then :
23168 else gcc_cv_as_leb128=yes
23171 else
23172 echo "configure: failed program was" >&5
23173 cat conftest.s >&5
23175 rm -f conftest.o conftest.s
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23179 $as_echo "$gcc_cv_as_leb128" >&6; }
23180 if test $gcc_cv_as_leb128 = yes; then
23182 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23185 if test $gcc_cv_as_leb128 != yes; then
23187 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23191 # Check if we have assembler support for unwind directives.
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23193 $as_echo_n "checking assembler for cfi directives... " >&6; }
23194 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23195 $as_echo_n "(cached) " >&6
23196 else
23197 gcc_cv_as_cfi_directive=no
23198 if test x$gcc_cv_as != x; then
23199 $as_echo ' .text
23200 .cfi_startproc
23201 .cfi_offset 0, 0
23202 .cfi_same_value 1
23203 .cfi_def_cfa 1, 2
23204 .cfi_escape 1, 2, 3, 4, 5
23205 .cfi_endproc' > conftest.s
23206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23208 (eval $ac_try) 2>&5
23209 ac_status=$?
23210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23211 test $ac_status = 0; }; }
23212 then
23213 case "$target" in
23214 *-*-solaris*)
23215 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23216 # read-only and read-write sections, we need to make sure that the
23217 # assembler used emits read-write .eh_frame sections.
23218 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23219 if test "x$gcc_cv_objdump" != x; then
23220 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23221 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23222 gcc_cv_as_cfi_directive=no
23223 else
23224 case "$target" in
23225 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23226 # On Solaris/x86, make sure that GCC and assembler agree on using
23227 # read-only .eh_frame sections for 64-bit.
23228 if test x$gas = xyes; then
23229 as_ix86_64_opt="--64"
23230 else
23231 as_ix86_64_opt="-xarch=amd64"
23233 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23234 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23235 sed -e /.eh_frame/!d -e N | \
23236 grep READONLY > /dev/null; then
23237 gcc_cv_as_cfi_directive=yes
23238 else
23239 gcc_cv_as_cfi_directive=no
23243 gcc_cv_as_cfi_directive=yes
23245 esac
23247 else
23248 # no objdump, err on the side of caution
23249 gcc_cv_as_cfi_directive=no
23251 else
23252 gcc_cv_as_cfi_directive=yes
23255 *-*-*)
23256 gcc_cv_as_cfi_directive=yes
23258 esac
23259 else
23260 echo "configure: failed program was" >&5
23261 cat conftest.s >&5
23263 rm -f conftest.o conftest.s
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23267 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23270 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23272 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23273 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23274 $as_echo_n "(cached) " >&6
23275 else
23276 gcc_cv_as_cfi_advance_working=no
23277 if test x$gcc_cv_as != x; then
23278 $as_echo ' .text
23279 .cfi_startproc
23280 .cfi_adjust_cfa_offset 64
23281 .skip 75040, 0
23282 .cfi_adjust_cfa_offset 128
23283 .cfi_endproc' > conftest.s
23284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23286 (eval $ac_try) 2>&5
23287 ac_status=$?
23288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23289 test $ac_status = 0; }; }
23290 then
23292 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23293 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23294 gcc_cv_as_cfi_advance_working=yes
23297 else
23298 echo "configure: failed program was" >&5
23299 cat conftest.s >&5
23301 rm -f conftest.o conftest.s
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23305 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23308 else
23309 # no objdump, err on the side of caution
23310 gcc_cv_as_cfi_advance_working=no
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23316 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23317 _ACEOF
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23322 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23323 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23324 $as_echo_n "(cached) " >&6
23325 else
23326 gcc_cv_as_cfi_personality_directive=no
23327 if test x$gcc_cv_as != x; then
23328 $as_echo ' .text
23329 .cfi_startproc
23330 .cfi_personality 0, symbol
23331 .cfi_endproc' > conftest.s
23332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23337 test $ac_status = 0; }; }
23338 then
23339 gcc_cv_as_cfi_personality_directive=yes
23340 else
23341 echo "configure: failed program was" >&5
23342 cat conftest.s >&5
23344 rm -f conftest.o conftest.s
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23348 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23352 cat >>confdefs.h <<_ACEOF
23353 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23354 then echo 1; else echo 0; fi`
23355 _ACEOF
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23359 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23360 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23361 $as_echo_n "(cached) " >&6
23362 else
23363 gcc_cv_as_cfi_sections_directive=no
23364 if test x$gcc_cv_as != x; then
23365 $as_echo ' .text
23366 .cfi_sections .debug_frame, .eh_frame
23367 .cfi_startproc
23368 .cfi_endproc' > conftest.s
23369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23375 then
23376 case $target_os in
23377 win32 | pe | cygwin* | mingw32*)
23378 # Need to check that we generated the correct relocation for the
23379 # .debug_frame section. This was fixed for binutils 2.21.
23380 gcc_cv_as_cfi_sections_directive=no
23381 if test "x$gcc_cv_objdump" != x; then
23382 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23383 grep secrel > /dev/null; then
23384 gcc_cv_as_cfi_sections_directive=yes
23389 gcc_cv_as_cfi_sections_directive=yes
23391 esac
23392 else
23393 echo "configure: failed program was" >&5
23394 cat conftest.s >&5
23396 rm -f conftest.o conftest.s
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23400 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23405 cat >>confdefs.h <<_ACEOF
23406 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23407 then echo 1; else echo 0; fi`
23408 _ACEOF
23411 # GAS versions up to and including 2.11.0 may mis-optimize
23412 # .eh_frame data.
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23414 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23415 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23416 $as_echo_n "(cached) " >&6
23417 else
23418 gcc_cv_as_eh_frame=no
23419 if test $in_tree_gas = yes; then
23420 if test $in_tree_gas_is_elf = yes \
23421 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23422 then gcc_cv_as_eh_frame=yes
23424 elif test x$gcc_cv_as != x; then
23425 $as_echo ' .text
23426 .LFB1:
23427 .4byte 0
23428 .L1:
23429 .4byte 0
23430 .LFE1:
23431 .section .eh_frame,"aw",@progbits
23432 __FRAME_BEGIN__:
23433 .4byte .LECIE1-.LSCIE1
23434 .LSCIE1:
23435 .4byte 0x0
23436 .byte 0x1
23437 .ascii "z\0"
23438 .byte 0x1
23439 .byte 0x78
23440 .byte 0x1a
23441 .byte 0x0
23442 .byte 0x4
23443 .4byte 1
23444 .p2align 1
23445 .LECIE1:
23446 .LSFDE1:
23447 .4byte .LEFDE1-.LASFDE1
23448 .LASFDE1:
23449 .4byte .LASFDE1-__FRAME_BEGIN__
23450 .4byte .LFB1
23451 .4byte .LFE1-.LFB1
23452 .byte 0x4
23453 .4byte .LFE1-.LFB1
23454 .byte 0x4
23455 .4byte .L1-.LFB1
23456 .LEFDE1:' > conftest.s
23457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23459 (eval $ac_try) 2>&5
23460 ac_status=$?
23461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23462 test $ac_status = 0; }; }
23463 then
23464 cat > conftest.lit <<EOF
23465 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23466 0010 01000000 12000000 18000000 00000000 ................
23467 0020 08000000 04080000 0044 .........D
23469 cat > conftest.big <<EOF
23470 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23471 0010 00000001 00000012 00000018 00000000 ................
23472 0020 00000008 04000000 0844 .........D
23474 # If the assembler didn't choke, and we can objdump,
23475 # and we got the correct data, then succeed.
23476 # The text in the here-document typically retains its unix-style line
23477 # endings, while the output of objdump will use host line endings.
23478 # Therefore, use diff -b for the comparisons.
23479 if test x$gcc_cv_objdump != x \
23480 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23481 | tail -3 > conftest.got \
23482 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23483 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23484 then
23485 gcc_cv_as_eh_frame=yes
23486 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23491 test $ac_status = 0; }; }; then
23492 gcc_cv_as_eh_frame=buggy
23493 else
23494 # Uh oh, what do we do now?
23495 gcc_cv_as_eh_frame=no
23497 else
23498 echo "configure: failed program was" >&5
23499 cat conftest.s >&5
23501 rm -f conftest.o conftest.s
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23505 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23509 if test $gcc_cv_as_eh_frame = buggy; then
23511 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23516 $as_echo_n "checking assembler for section merging support... " >&6; }
23517 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23518 $as_echo_n "(cached) " >&6
23519 else
23520 gcc_cv_as_shf_merge=no
23521 if test $in_tree_gas = yes; then
23522 if test $in_tree_gas_is_elf = yes \
23523 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23524 then gcc_cv_as_shf_merge=yes
23526 elif test x$gcc_cv_as != x; then
23527 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23533 test $ac_status = 0; }; }
23534 then
23535 gcc_cv_as_shf_merge=yes
23536 else
23537 echo "configure: failed program was" >&5
23538 cat conftest.s >&5
23540 rm -f conftest.o conftest.s
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23544 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23547 if test $gcc_cv_as_shf_merge = no; then
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23549 $as_echo_n "checking assembler for section merging support... " >&6; }
23550 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23551 $as_echo_n "(cached) " >&6
23552 else
23553 gcc_cv_as_shf_merge=no
23554 if test $in_tree_gas = yes; then
23555 if test $in_tree_gas_is_elf = yes \
23556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23557 then gcc_cv_as_shf_merge=yes
23559 elif test x$gcc_cv_as != x; then
23560 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23563 (eval $ac_try) 2>&5
23564 ac_status=$?
23565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23566 test $ac_status = 0; }; }
23567 then
23568 gcc_cv_as_shf_merge=yes
23569 else
23570 echo "configure: failed program was" >&5
23571 cat conftest.s >&5
23573 rm -f conftest.o conftest.s
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23577 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23582 cat >>confdefs.h <<_ACEOF
23583 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23584 _ACEOF
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23588 $as_echo_n "checking assembler for stabs directive... " >&6; }
23589 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23590 $as_echo_n "(cached) " >&6
23591 else
23592 gcc_cv_as_stabs_directive=no
23593 if test x$gcc_cv_as != x; then
23594 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23597 (eval $ac_try) 2>&5
23598 ac_status=$?
23599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23600 test $ac_status = 0; }; }
23601 then
23602 gcc_cv_as_stabs_directive=yes
23603 else
23604 echo "configure: failed program was" >&5
23605 cat conftest.s >&5
23607 rm -f conftest.o conftest.s
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23611 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23612 if test $gcc_cv_as_stabs_directive = yes; then
23614 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23620 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23621 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23622 $as_echo_n "(cached) " >&6
23623 else
23624 gcc_cv_as_comdat_group=no
23625 if test $in_tree_gas = yes; then
23626 if test $in_tree_gas_is_elf = yes \
23627 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23628 then gcc_cv_as_comdat_group=yes
23630 elif test x$gcc_cv_as != x; then
23631 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23637 test $ac_status = 0; }; }
23638 then
23639 gcc_cv_as_comdat_group=yes
23640 else
23641 echo "configure: failed program was" >&5
23642 cat conftest.s >&5
23644 rm -f conftest.o conftest.s
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23648 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23651 if test $gcc_cv_as_comdat_group = yes; then
23652 gcc_cv_as_comdat_group_percent=no
23653 gcc_cv_as_comdat_group_group=no
23654 else
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23656 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23657 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23658 $as_echo_n "(cached) " >&6
23659 else
23660 gcc_cv_as_comdat_group_percent=no
23661 if test $in_tree_gas = yes; then
23662 if test $in_tree_gas_is_elf = yes \
23663 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23664 then gcc_cv_as_comdat_group_percent=yes
23666 elif test x$gcc_cv_as != x; then
23667 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23670 (eval $ac_try) 2>&5
23671 ac_status=$?
23672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23673 test $ac_status = 0; }; }
23674 then
23675 gcc_cv_as_comdat_group_percent=yes
23676 else
23677 echo "configure: failed program was" >&5
23678 cat conftest.s >&5
23680 rm -f conftest.o conftest.s
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23684 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23687 if test $gcc_cv_as_comdat_group_percent = yes; then
23688 gcc_cv_as_comdat_group_group=no
23689 else
23690 case "${target}" in
23691 # Sun as uses a completely different syntax.
23692 *-*-solaris2*)
23693 case "${target}" in
23694 sparc*-*-solaris2*)
23695 conftest_s='
23696 .group foo,".text%foo",#comdat
23697 .section ".text%foo", #alloc,#execinstr,#progbits
23698 .globl foo
23699 foo:
23702 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23703 conftest_s='
23704 .group foo,.text%foo,#comdat
23705 .section .text%foo, "ax", @progbits
23706 .globl foo
23707 foo:
23710 esac
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23712 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23713 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23714 $as_echo_n "(cached) " >&6
23715 else
23716 gcc_cv_as_comdat_group_group=no
23717 if test x$gcc_cv_as != x; then
23718 $as_echo "$conftest_s" > conftest.s
23719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23724 test $ac_status = 0; }; }
23725 then
23726 gcc_cv_as_comdat_group_group=yes
23727 else
23728 echo "configure: failed program was" >&5
23729 cat conftest.s >&5
23731 rm -f conftest.o conftest.s
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23735 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23739 esac
23740 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23741 gcc_cv_as_comdat_group_group=no
23745 if test x"$ld_is_gold" = xyes; then
23746 comdat_group=yes
23747 elif test $in_tree_ld = yes ; then
23748 comdat_group=no
23749 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 \
23750 && test $in_tree_ld_is_elf = yes; then
23751 comdat_group=yes
23753 elif echo "$ld_ver" | grep GNU > /dev/null; then
23754 comdat_group=yes
23755 if test 0"$ld_date" -lt 20050308; then
23756 if test -n "$ld_date"; then
23757 # If there was date string, but was earlier than 2005-03-08, fail
23758 comdat_group=no
23759 elif test "$ld_vers_major" -lt 2; then
23760 comdat_group=no
23761 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23762 comdat_group=no
23765 else
23766 case "${target}" in
23767 *-*-solaris2.1[1-9]*)
23768 comdat_group=no
23769 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23770 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23771 # version 1.688.
23773 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23774 # least ld version 1.2267.
23775 if test "$ld_vers_major" -gt 1; then
23776 comdat_group=yes
23777 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23778 comdat_group=yes
23779 elif test "$ld_vers_minor" -ge 2267; then
23780 comdat_group=yes
23784 # Assume linkers other than GNU ld don't support COMDAT group.
23785 comdat_group=no
23787 esac
23789 # Allow overriding the automatic COMDAT group tests above.
23790 # Check whether --enable-comdat was given.
23791 if test "${enable_comdat+set}" = set; then :
23792 enableval=$enable_comdat; comdat_group="$enable_comdat"
23795 if test $comdat_group = no; then
23796 gcc_cv_as_comdat_group=no
23797 gcc_cv_as_comdat_group_percent=no
23798 gcc_cv_as_comdat_group_group=no
23801 cat >>confdefs.h <<_ACEOF
23802 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23803 || test $gcc_cv_as_comdat_group_percent = yes \
23804 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23805 _ACEOF
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23809 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23810 if test "${gcc_cv_as_discriminator+set}" = set; then :
23811 $as_echo_n "(cached) " >&6
23812 else
23813 gcc_cv_as_discriminator=no
23814 if test $in_tree_gas = yes; then
23815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23816 then gcc_cv_as_discriminator=yes
23818 elif test x$gcc_cv_as != x; then
23819 $as_echo ' .text
23820 .file 1 "conf.c"
23821 .loc 1 1 0 discriminator 1' > conftest.s
23822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23824 (eval $ac_try) 2>&5
23825 ac_status=$?
23826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23827 test $ac_status = 0; }; }
23828 then
23829 gcc_cv_as_discriminator=yes
23830 else
23831 echo "configure: failed program was" >&5
23832 cat conftest.s >&5
23834 rm -f conftest.o conftest.s
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23838 $as_echo "$gcc_cv_as_discriminator" >&6; }
23839 if test $gcc_cv_as_discriminator = yes; then
23841 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23846 # Thread-local storage - the check is heavily parameterized.
23847 conftest_s=
23848 tls_first_major=
23849 tls_first_minor=
23850 tls_as_opt=
23851 case "$target" in
23852 alpha*-*-*)
23853 conftest_s='
23854 .section ".tdata","awT",@progbits
23855 foo: .long 25
23856 .text
23857 ldq $27,__tls_get_addr($29) !literal!1
23858 lda $16,foo($29) !tlsgd!1
23859 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23860 ldq $27,__tls_get_addr($29) !literal!2
23861 lda $16,foo($29) !tlsldm!2
23862 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23863 ldq $1,foo($29) !gotdtprel
23864 ldah $2,foo($29) !dtprelhi
23865 lda $3,foo($2) !dtprello
23866 lda $4,foo($29) !dtprel
23867 ldq $1,foo($29) !gottprel
23868 ldah $2,foo($29) !tprelhi
23869 lda $3,foo($2) !tprello
23870 lda $4,foo($29) !tprel'
23871 tls_first_major=2
23872 tls_first_minor=13
23873 tls_as_opt=--fatal-warnings
23875 arc*-*-*)
23876 conftest_s='
23877 add_s r0,r0, @foo@tpoff'
23878 tls_first_major=2
23879 tls_first_minor=23
23881 cris-*-*|crisv32-*-*)
23882 conftest_s='
23883 .section ".tdata","awT",@progbits
23884 x: .long 25
23885 .text
23886 move.d x:IE,$r10
23887 nop'
23888 tls_first_major=2
23889 tls_first_minor=20
23890 tls_as_opt=--fatal-warnings
23892 frv*-*-*)
23893 conftest_s='
23894 .section ".tdata","awT",@progbits
23895 x: .long 25
23896 .text
23897 call #gettlsoff(x)'
23898 tls_first_major=2
23899 tls_first_minor=14
23901 hppa*-*-linux*)
23902 conftest_s='
23903 t1: .reg %r20
23904 t2: .reg %r21
23905 gp: .reg %r19
23906 .section ".tdata","awT",@progbits
23907 foo: .long 25
23908 .text
23909 .align 4
23910 addil LT%foo-$tls_gdidx$,gp
23911 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23912 b __tls_get_addr
23914 addil LT%foo-$tls_ldidx$,gp
23915 b __tls_get_addr
23916 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23917 addil LR%foo-$tls_dtpoff$,%ret0
23918 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23919 mfctl %cr27,%t1
23920 addil LT%foo-$tls_ieoff$,gp
23921 ldw RT%foo-$tls_ieoff$(%r1),%t2
23922 add %t1,%t2,%t3
23923 mfctl %cr27,%t1
23924 addil LR%foo-$tls_leoff$,%t1
23925 ldo RR%foo-$tls_leoff$(%r1),%t2'
23926 tls_first_major=2
23927 tls_first_minor=15
23928 tls_as_opt=--fatal-warnings
23930 arm*-*-*)
23931 conftest_s='
23932 .section ".tdata","awT",%progbits
23933 foo: .long 25
23934 .text
23935 .word foo(gottpoff)
23936 .word foo(tpoff)
23937 .word foo(tlsgd)
23938 .word foo(tlsldm)
23939 .word foo(tlsldo)'
23940 tls_first_major=2
23941 tls_first_minor=17
23943 i[34567]86-*-* | x86_64-*-*)
23944 case "$target" in
23945 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23946 on_solaris=yes
23949 on_solaris=no
23951 esac
23952 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23953 conftest_s='
23954 .section .tdata,"awt",@progbits'
23955 tls_first_major=0
23956 tls_first_minor=0
23957 tls_section_flag=t
23959 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23961 else
23962 conftest_s='
23963 .section ".tdata","awT",@progbits'
23964 tls_first_major=2
23965 tls_first_minor=14
23966 tls_section_flag=T
23967 tls_as_opt="--fatal-warnings"
23969 case "$target" in
23970 i[34567]86-*-*)
23971 conftest_s="$conftest_s
23972 foo: .long 25
23973 .text
23974 movl %gs:0, %eax
23975 leal foo@tlsgd(,%ebx,1), %eax
23976 leal foo@tlsldm(%ebx), %eax
23977 leal foo@dtpoff(%eax), %edx
23978 movl foo@gottpoff(%ebx), %eax
23979 subl foo@gottpoff(%ebx), %eax
23980 addl foo@gotntpoff(%ebx), %eax
23981 movl foo@indntpoff, %eax
23982 movl \$foo@tpoff, %eax
23983 subl \$foo@tpoff, %eax
23984 leal foo@ntpoff(%ecx), %eax"
23986 x86_64-*-*)
23987 if test x$on_solaris = xyes; then
23988 case $gas_flag in
23989 yes) tls_as_opt="$tls_as_opt --64" ;;
23990 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23991 esac
23993 conftest_s="$conftest_s
23994 foo: .long 25
23995 .text
23996 movq %fs:0, %rax
23997 leaq foo@tlsgd(%rip), %rdi
23998 leaq foo@tlsld(%rip), %rdi
23999 leaq foo@dtpoff(%rax), %rdx
24000 movq foo@gottpoff(%rip), %rax
24001 movq \$foo@tpoff, %rax"
24003 esac
24005 ia64-*-*)
24006 conftest_s='
24007 .section ".tdata","awT",@progbits
24008 foo: data8 25
24009 .text
24010 addl r16 = @ltoff(@dtpmod(foo#)), gp
24011 addl r17 = @ltoff(@dtprel(foo#)), gp
24012 addl r18 = @ltoff(@tprel(foo#)), gp
24013 addl r19 = @dtprel(foo#), gp
24014 adds r21 = @dtprel(foo#), r13
24015 movl r23 = @dtprel(foo#)
24016 addl r20 = @tprel(foo#), gp
24017 adds r22 = @tprel(foo#), r13
24018 movl r24 = @tprel(foo#)'
24019 tls_first_major=2
24020 tls_first_minor=13
24021 tls_as_opt=--fatal-warnings
24023 microblaze*-*-*)
24024 conftest_s='
24025 .section .tdata,"awT",@progbits
24027 .word 2
24028 .text
24029 addik r5,r20,x@TLSGD
24030 addik r5,r20,x@TLSLDM'
24031 tls_first_major=2
24032 tls_first_minor=20
24033 tls_as_opt='--fatal-warnings'
24035 mips*-*-*)
24036 conftest_s='
24037 .section .tdata,"awT",@progbits
24039 .word 2
24040 .text
24041 addiu $4, $28, %tlsgd(x)
24042 addiu $4, $28, %tlsldm(x)
24043 lui $4, %dtprel_hi(x)
24044 addiu $4, $4, %dtprel_lo(x)
24045 lw $4, %gottprel(x)($28)
24046 lui $4, %tprel_hi(x)
24047 addiu $4, $4, %tprel_lo(x)'
24048 tls_first_major=2
24049 tls_first_minor=16
24050 tls_as_opt='-32 --fatal-warnings'
24052 m68k-*-*)
24053 conftest_s='
24054 .section .tdata,"awT",@progbits
24056 .word 2
24057 .text
24058 foo:
24059 move.l x@TLSGD(%a5),%a0
24060 move.l x@TLSLDM(%a5),%a0
24061 move.l x@TLSLDO(%a5),%a0
24062 move.l x@TLSIE(%a5),%a0
24063 move.l x@TLSLE(%a5),%a0'
24064 tls_first_major=2
24065 tls_first_minor=19
24066 tls_as_opt='--fatal-warnings'
24068 nios2-*-*)
24069 conftest_s='
24070 .section ".tdata","awT",@progbits'
24071 tls_first_major=2
24072 tls_first_minor=23
24073 tls_as_opt="--fatal-warnings"
24075 aarch64*-*-*)
24076 conftest_s='
24077 .section ".tdata","awT",%progbits
24078 foo: .long 25
24079 .text
24080 adrp x0, :tlsgd:x
24081 add x0, x0, #:tlsgd_lo12:x
24082 bl __tls_get_addr
24083 nop'
24084 tls_first_major=2
24085 tls_first_minor=20
24086 tls_as_opt='--fatal-warnings'
24088 powerpc-ibm-aix*)
24089 conftest_s='
24090 .extern __get_tpointer
24091 .toc
24092 LC..1:
24093 .tc a[TC],a[TL]@le
24094 .csect .text[PR]
24095 .tlstest:
24096 lwz 9,LC..1(2)
24097 bla __get_tpointer
24098 lwzx 3,9,3
24099 .globl a
24100 .csect a[TL],4
24102 .space 4'
24103 tls_first_major=0
24104 tls_first_minor=0
24106 powerpc64*-*-*)
24107 conftest_s='
24108 .section ".tdata","awT",@progbits
24109 .align 3
24110 ld0: .space 8
24111 ld1: .space 8
24112 x1: .space 8
24113 x2: .space 8
24114 x3: .space 8
24115 .text
24116 addi 3,2,ld0@got@tlsgd
24117 bl .__tls_get_addr
24119 addi 3,2,ld1@toc
24120 bl .__tls_get_addr
24122 addi 3,2,x1@got@tlsld
24123 bl .__tls_get_addr
24125 addi 9,3,x1@dtprel
24126 bl .__tls_get_addr
24128 addis 9,3,x2@dtprel@ha
24129 addi 9,9,x2@dtprel@l
24130 bl .__tls_get_addr
24132 ld 9,x3@got@dtprel(2)
24133 add 9,9,3
24134 bl .__tls_get_addr
24135 nop'
24136 tls_first_major=2
24137 tls_first_minor=14
24138 tls_as_opt="-a64 --fatal-warnings"
24140 powerpc*-*-*)
24141 conftest_s='
24142 .section ".tdata","awT",@progbits
24143 .align 2
24144 ld0: .space 4
24145 ld1: .space 4
24146 x1: .space 4
24147 x2: .space 4
24148 x3: .space 4
24149 .text
24150 addi 3,31,ld0@got@tlsgd
24151 bl __tls_get_addr
24152 addi 3,31,x1@got@tlsld
24153 bl __tls_get_addr
24154 addi 9,3,x1@dtprel
24155 addis 9,3,x2@dtprel@ha
24156 addi 9,9,x2@dtprel@l
24157 lwz 9,x3@got@tprel(31)
24158 add 9,9,x@tls
24159 addi 9,2,x1@tprel
24160 addis 9,2,x2@tprel@ha
24161 addi 9,9,x2@tprel@l'
24162 tls_first_major=2
24163 tls_first_minor=14
24164 tls_as_opt="-a32 --fatal-warnings"
24166 riscv*-*-*)
24167 conftest_s='
24168 .section .tdata,"awT",@progbits
24169 x: .word 2
24170 .text
24171 la.tls.gd a0,x
24172 call __tls_get_addr'
24173 tls_first_major=2
24174 tls_first_minor=21
24175 tls_as_opt='--fatal-warnings'
24177 s390-*-*)
24178 conftest_s='
24179 .section ".tdata","awT",@progbits
24180 foo: .long 25
24181 .text
24182 .long foo@TLSGD
24183 .long foo@TLSLDM
24184 .long foo@DTPOFF
24185 .long foo@NTPOFF
24186 .long foo@GOTNTPOFF
24187 .long foo@INDNTPOFF
24188 l %r1,foo@GOTNTPOFF(%r12)
24189 l %r1,0(%r1):tls_load:foo
24190 bas %r14,0(%r1,%r13):tls_gdcall:foo
24191 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24192 tls_first_major=2
24193 tls_first_minor=14
24194 tls_as_opt="-m31 --fatal-warnings"
24196 s390x-*-*)
24197 conftest_s='
24198 .section ".tdata","awT",@progbits
24199 foo: .long 25
24200 .text
24201 .quad foo@TLSGD
24202 .quad foo@TLSLDM
24203 .quad foo@DTPOFF
24204 .quad foo@NTPOFF
24205 .quad foo@GOTNTPOFF
24206 lg %r1,foo@GOTNTPOFF(%r12)
24207 larl %r1,foo@INDNTPOFF
24208 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24209 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24210 tls_first_major=2
24211 tls_first_minor=14
24212 tls_as_opt="-m64 -Aesame --fatal-warnings"
24214 sh-*-* | sh[123456789lbe]*-*-*)
24215 conftest_s='
24216 .section ".tdata","awT",@progbits
24217 foo: .long 25
24218 .text
24219 .long foo@TLSGD
24220 .long foo@TLSLDM
24221 .long foo@DTPOFF
24222 .long foo@GOTTPOFF
24223 .long foo@TPOFF'
24224 tls_first_major=2
24225 tls_first_minor=13
24226 tls_as_opt=--fatal-warnings
24228 sparc*-*-*)
24229 case "$target" in
24230 sparc*-sun-solaris2.*)
24231 on_solaris=yes
24234 on_solaris=no
24236 esac
24237 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24238 conftest_s='
24239 .section ".tdata",#alloc,#write,#tls'
24240 tls_first_major=0
24241 tls_first_minor=0
24242 else
24243 conftest_s='
24244 .section ".tdata","awT",@progbits'
24245 tls_first_major=2
24246 tls_first_minor=14
24247 tls_as_opt="-32 --fatal-warnings"
24249 conftest_s="$conftest_s
24250 foo: .long 25
24251 .text
24252 sethi %tgd_hi22(foo), %o0
24253 add %o0, %tgd_lo10(foo), %o1
24254 add %l7, %o1, %o0, %tgd_add(foo)
24255 call __tls_get_addr, %tgd_call(foo)
24256 sethi %tldm_hi22(foo), %l1
24257 add %l1, %tldm_lo10(foo), %l2
24258 add %l7, %l2, %o0, %tldm_add(foo)
24259 call __tls_get_addr, %tldm_call(foo)
24260 sethi %tldo_hix22(foo), %l3
24261 xor %l3, %tldo_lox10(foo), %l4
24262 add %o0, %l4, %l5, %tldo_add(foo)
24263 sethi %tie_hi22(foo), %o3
24264 add %o3, %tie_lo10(foo), %o3
24265 ld [%l7 + %o3], %o2, %tie_ld(foo)
24266 add %g7, %o2, %o4, %tie_add(foo)
24267 sethi %tle_hix22(foo), %l1
24268 xor %l1, %tle_lox10(foo), %o5
24269 ld [%g7 + %o5], %o1"
24271 tilepro*-*-*)
24272 conftest_s='
24273 .section ".tdata","awT",@progbits
24274 foo: .long 25
24275 .text
24276 addli r0, zero, tls_gd(foo)
24277 auli r0, zero, tls_gd_ha16(foo)
24278 addli r0, r0, tls_gd_lo16(foo)
24279 jal __tls_get_addr
24280 addli r0, zero, tls_ie(foo)
24281 auli r0, r0, tls_ie_ha16(foo)
24282 addli r0, r0, tls_ie_lo16(foo)'
24283 tls_first_major=2
24284 tls_first_minor=22
24285 tls_as_opt="--fatal-warnings"
24287 tilegx*-*-*)
24288 conftest_s='
24289 .section ".tdata","awT",@progbits
24290 foo: .long 25
24291 .text
24292 shl16insli r0, zero, hw0_last_tls_gd(foo)
24293 shl16insli r0, zero, hw1_last_tls_gd(foo)
24294 shl16insli r0, r0, hw0_tls_gd(foo)
24295 jal __tls_get_addr
24296 shl16insli r0, zero, hw1_last_tls_ie(foo)
24297 shl16insli r0, r0, hw0_tls_ie(foo)'
24298 tls_first_major=2
24299 tls_first_minor=22
24300 tls_as_opt="--fatal-warnings"
24302 xtensa*-*-*)
24303 conftest_s='
24304 .section ".tdata","awT",@progbits
24305 foo: .long 25
24306 .text
24307 movi a8, foo@TLSFUNC
24308 movi a10, foo@TLSARG
24309 callx8.tls a8, foo@TLSCALL'
24310 tls_first_major=2
24311 tls_first_minor=19
24313 esac
24314 set_have_as_tls=no
24315 if test "x$enable_tls" = xno ; then
24316 : # TLS explicitly disabled.
24317 elif test "x$enable_tls" = xyes ; then
24318 set_have_as_tls=yes # TLS explicitly enabled.
24319 elif test -z "$tls_first_major"; then
24320 : # If we don't have a check, assume no support.
24321 else
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24323 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24324 if test "${gcc_cv_as_tls+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_tls=no
24328 if test $in_tree_gas = yes; then
24329 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24330 then gcc_cv_as_tls=yes
24332 elif test x$gcc_cv_as != x; then
24333 $as_echo "$conftest_s" > conftest.s
24334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24340 then
24341 gcc_cv_as_tls=yes
24342 else
24343 echo "configure: failed program was" >&5
24344 cat conftest.s >&5
24346 rm -f conftest.o conftest.s
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24350 $as_echo "$gcc_cv_as_tls" >&6; }
24351 if test $gcc_cv_as_tls = yes; then
24352 set_have_as_tls=yes
24356 if test $set_have_as_tls = yes ; then
24358 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24362 # Target-specific assembler checks.
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24365 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24366 gcc_cv_ld_static_dynamic=no
24367 gcc_cv_ld_static_option='-Bstatic'
24368 gcc_cv_ld_dynamic_option='-Bdynamic'
24369 if test $in_tree_ld = yes ; then
24370 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
24371 gcc_cv_ld_static_dynamic=yes
24373 elif test x$gcc_cv_ld != x; then
24374 # Check if linker supports -Bstatic/-Bdynamic option
24375 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24376 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24377 gcc_cv_ld_static_dynamic=yes
24378 else
24379 case "$target" in
24380 # AIX ld uses -b flags
24381 *-*-aix4.[23]* | *-*-aix[5-9]*)
24382 gcc_cv_ld_static_dynamic=yes
24383 gcc_cv_ld_static_option="-bstatic"
24384 gcc_cv_ld_dynamic_option="-bdynamic"
24386 # HP-UX ld uses -a flags to select between shared and archive.
24387 *-*-hpux*)
24388 if test x"$gnu_ld" = xno; then
24389 gcc_cv_ld_static_dynamic=yes
24390 gcc_cv_ld_static_option="-aarchive_shared"
24391 gcc_cv_ld_dynamic_option="-adefault"
24394 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24395 *-*-solaris2*)
24396 gcc_cv_ld_static_dynamic=yes
24398 esac
24401 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24403 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24406 cat >>confdefs.h <<_ACEOF
24407 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24408 _ACEOF
24411 cat >>confdefs.h <<_ACEOF
24412 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24413 _ACEOF
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24417 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24419 if test x"$demangler_in_ld" = xyes; then
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24421 $as_echo_n "checking linker --demangle support... " >&6; }
24422 gcc_cv_ld_demangle=no
24423 if test $in_tree_ld = yes; then
24424 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 \
24425 gcc_cv_ld_demangle=yes
24427 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24428 # Check if the GNU linker supports --demangle option
24429 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24430 gcc_cv_ld_demangle=yes
24433 if test x"$gcc_cv_ld_demangle" = xyes; then
24435 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24439 $as_echo "$gcc_cv_ld_demangle" >&6; }
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24443 $as_echo_n "checking linker plugin support... " >&6; }
24444 gcc_cv_lto_plugin=0
24445 if test -f liblto_plugin.la; then
24446 save_ld_ver="$ld_ver"
24447 save_ld_vers_major="$ld_vers_major"
24448 save_ld_vers_minor="$ld_vers_minor"
24449 save_ld_is_gold="$ld_is_gold"
24451 ld_is_gold=no
24453 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24454 ld_ver="GNU ld"
24455 # FIXME: ld_is_gold?
24456 ld_vers_major="$gcc_cv_gld_major_version"
24457 ld_vers_minor="$gcc_cv_gld_minor_version"
24458 else
24459 # Determine plugin linker version.
24460 # FIXME: Partial duplicate from above, generalize.
24461 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24462 if echo "$ld_ver" | grep GNU > /dev/null; then
24463 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24464 ld_is_gold=yes
24465 ld_vers=`echo $ld_ver | sed -n \
24466 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24467 else
24468 ld_vers=`echo $ld_ver | sed -n \
24469 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24471 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24472 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24476 # Determine plugin support.
24477 if echo "$ld_ver" | grep GNU > /dev/null; then
24478 # Require GNU ld or gold 2.21+ for plugin support by default.
24479 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24480 gcc_cv_lto_plugin=2
24481 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24482 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24483 gcc_cv_lto_plugin=1
24487 ld_ver="$save_ld_ver"
24488 ld_vers_major="$save_ld_vers_major"
24489 ld_vers_minor="$save_ld_vers_minor"
24490 ld_is_gold="$save_ld_is_gold"
24493 cat >>confdefs.h <<_ACEOF
24494 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24495 _ACEOF
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24498 $as_echo "$gcc_cv_lto_plugin" >&6; }
24500 # Target OS-specific assembler checks.
24502 case "$target_os" in
24503 darwin*)
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24505 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24506 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24507 $as_echo_n "(cached) " >&6
24508 else
24509 gcc_cv_as_mmacosx_version_min=no
24510 if test x$gcc_cv_as != x; then
24511 $as_echo '.text' > conftest.s
24512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24515 ac_status=$?
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24518 then
24519 gcc_cv_as_mmacosx_version_min=yes
24520 else
24521 echo "configure: failed program was" >&5
24522 cat conftest.s >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24528 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24529 if test $gcc_cv_as_mmacosx_version_min = yes; then
24531 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24536 esac
24538 # Target CPU-specific assembler checks.
24540 case "$target" in
24541 aarch64*-*-*)
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24543 $as_echo_n "checking assembler for -mabi option... " >&6; }
24544 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24545 $as_echo_n "(cached) " >&6
24546 else
24547 gcc_cv_as_aarch64_mabi=no
24548 if test x$gcc_cv_as != x; then
24549 $as_echo '.text' > conftest.s
24550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24552 (eval $ac_try) 2>&5
24553 ac_status=$?
24554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24555 test $ac_status = 0; }; }
24556 then
24557 gcc_cv_as_aarch64_mabi=yes
24558 else
24559 echo "configure: failed program was" >&5
24560 cat conftest.s >&5
24562 rm -f conftest.o conftest.s
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24566 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24569 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24571 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24573 else
24574 if test x$with_abi = xilp32; then
24575 as_fn_error "Assembler does not support -mabi=ilp32.\
24576 Upgrade the Assembler." "$LINENO" 5
24578 if test x"$with_multilib_list" = xdefault; then
24579 TM_MULTILIB_CONFIG=lp64
24580 else
24581 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24582 for aarch64_multilib in ${aarch64_multilibs}; do
24583 case ${aarch64_multilib} in
24584 ilp32)
24585 as_fn_error "Assembler does not support -mabi=ilp32.\
24586 Upgrade the Assembler." "$LINENO" 5
24590 esac
24591 done
24594 # Check if we have binutils support for relocations types needed by -fpic
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24596 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24597 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24598 $as_echo_n "(cached) " >&6
24599 else
24600 gcc_cv_as_aarch64_picreloc=no
24601 if test x$gcc_cv_as != x; then
24602 $as_echo '
24603 .text
24604 ldr x0, [x2, #:gotpage_lo15:globalsym]
24605 ' > conftest.s
24606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608 (eval $ac_try) 2>&5
24609 ac_status=$?
24610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611 test $ac_status = 0; }; }
24612 then
24613 gcc_cv_as_aarch64_picreloc=yes
24614 else
24615 echo "configure: failed program was" >&5
24616 cat conftest.s >&5
24618 rm -f conftest.o conftest.s
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24622 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24623 if test $gcc_cv_as_aarch64_picreloc = yes; then
24625 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24629 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24630 # Check whether --enable-fix-cortex-a53-835769 was given.
24631 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24632 enableval=$enable_fix_cortex_a53_835769;
24633 case $enableval in
24634 yes)
24635 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24640 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24641 Valid choices are 'yes' and 'no'." "$LINENO" 5
24644 esac
24648 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24649 # Check whether --enable-fix-cortex-a53-843419 was given.
24650 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24651 enableval=$enable_fix_cortex_a53_843419;
24652 case $enableval in
24653 yes)
24654 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24659 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24660 Valid choices are 'yes' and 'no'." "$LINENO" 5
24663 esac
24669 # All TARGET_ABI_OSF targets.
24670 alpha*-*-linux* | alpha*-*-*bsd*)
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24672 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24673 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_as_alpha_explicit_relocs=no
24677 if test $in_tree_gas = yes; then
24678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24679 then gcc_cv_as_alpha_explicit_relocs=yes
24681 elif test x$gcc_cv_as != x; then
24682 $as_echo ' .set nomacro
24683 .text
24684 extbl $3, $2, $3 !lituse_bytoff!1
24685 ldq $2, a($29) !literal!1
24686 ldq $4, b($29) !literal!2
24687 ldq_u $3, 0($2) !lituse_base!1
24688 ldq $27, f($29) !literal!5
24689 jsr $26, ($27), f !lituse_jsr!5
24690 ldah $29, 0($26) !gpdisp!3
24691 lda $0, c($29) !gprel
24692 ldah $1, d($29) !gprelhigh
24693 lda $1, d($1) !gprellow
24694 lda $29, 0($29) !gpdisp!3' > conftest.s
24695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24698 ac_status=$?
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24701 then
24702 gcc_cv_as_alpha_explicit_relocs=yes
24703 else
24704 echo "configure: failed program was" >&5
24705 cat conftest.s >&5
24707 rm -f conftest.o conftest.s
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24711 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24712 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24714 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24719 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24720 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24722 else
24723 gcc_cv_as_alpha_jsrdirect_relocs=no
24724 if test $in_tree_gas = yes; then
24725 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24726 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24728 elif test x$gcc_cv_as != x; then
24729 $as_echo ' .set nomacro
24730 .text
24731 ldq $27, a($29) !literal!1
24732 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24738 test $ac_status = 0; }; }
24739 then
24740 gcc_cv_as_alpha_jsrdirect_relocs=yes
24741 else
24742 echo "configure: failed program was" >&5
24743 cat conftest.s >&5
24745 rm -f conftest.o conftest.s
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24749 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24750 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24752 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24758 avr-*-*)
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24760 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24761 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24762 $as_echo_n "(cached) " >&6
24763 else
24764 gcc_cv_as_avr_mlink_relax=no
24765 if test x$gcc_cv_as != x; then
24766 $as_echo '.text' > conftest.s
24767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24769 (eval $ac_try) 2>&5
24770 ac_status=$?
24771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24772 test $ac_status = 0; }; }
24773 then
24774 gcc_cv_as_avr_mlink_relax=yes
24775 else
24776 echo "configure: failed program was" >&5
24777 cat conftest.s >&5
24779 rm -f conftest.o conftest.s
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24783 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24784 if test $gcc_cv_as_avr_mlink_relax = yes; then
24786 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24792 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24793 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24795 else
24796 gcc_cv_as_avr_mrmw=no
24797 if test x$gcc_cv_as != x; then
24798 $as_echo '.text' > conftest.s
24799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24801 (eval $ac_try) 2>&5
24802 ac_status=$?
24803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24804 test $ac_status = 0; }; }
24805 then
24806 gcc_cv_as_avr_mrmw=yes
24807 else
24808 echo "configure: failed program was" >&5
24809 cat conftest.s >&5
24811 rm -f conftest.o conftest.s
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24815 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24816 if test $gcc_cv_as_avr_mrmw = yes; then
24818 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
24824 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
24825 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
24826 $as_echo_n "(cached) " >&6
24827 else
24828 gcc_cv_as_avr_mgccisr=no
24829 if test x$gcc_cv_as != x; then
24830 $as_echo '.text
24831 __gcc_isr 1
24832 __gcc_isr 2
24833 __gcc_isr 0,r24
24834 ' > conftest.s
24835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
24836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24840 test $ac_status = 0; }; }
24841 then
24842 gcc_cv_as_avr_mgccisr=yes
24843 else
24844 echo "configure: failed program was" >&5
24845 cat conftest.s >&5
24847 rm -f conftest.o conftest.s
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
24851 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
24852 if test $gcc_cv_as_avr_mgccisr = yes; then
24854 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
24859 # Check how default linker description file implements .rodata for
24860 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
24861 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
24863 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
24864 cat > conftest.s <<EOF
24865 .section .rodata,"a",@progbits
24866 .global xxvaryy
24867 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
24868 xxvaryy:
24869 .word 1
24871 rm -f conftest.nm
24872 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
24873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24874 (eval $ac_try) 2>&5
24875 ac_status=$?
24876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24877 test $ac_status = 0; }; }
24878 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
24879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24880 (eval $ac_try) 2>&5
24881 ac_status=$?
24882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24883 test $ac_status = 0; }; }
24884 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 if test -s conftest.nm
24891 then
24892 if grep ' R xxvaryy' conftest.nm > /dev/null; then
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24894 $as_echo "yes" >&6; }
24896 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
24898 else
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
24900 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
24901 echo "$as_me: nm output was" >&5
24902 cat conftest.nm >&5
24903 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
24905 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
24907 else
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
24909 $as_echo "test failed" >&6; }
24910 echo "$as_me: failed program was" >&5
24911 cat conftest.s >&5
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
24913 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
24915 rm -f conftest.s conftest.o conftest.elf conftest.nm
24918 cris-*-*)
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24920 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24921 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24922 $as_echo_n "(cached) " >&6
24923 else
24924 gcc_cv_as_cris_no_mul_bug=no
24925 if test $in_tree_gas = yes; then
24926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24927 then gcc_cv_as_cris_no_mul_bug=yes
24929 elif test x$gcc_cv_as != x; then
24930 $as_echo '.text' > conftest.s
24931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24933 (eval $ac_try) 2>&5
24934 ac_status=$?
24935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24936 test $ac_status = 0; }; }
24937 then
24938 gcc_cv_as_cris_no_mul_bug=yes
24939 else
24940 echo "configure: failed program was" >&5
24941 cat conftest.s >&5
24943 rm -f conftest.o conftest.s
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24947 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24948 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24950 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24956 sparc*-*-*)
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24958 $as_echo_n "checking assembler for .register... " >&6; }
24959 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24960 $as_echo_n "(cached) " >&6
24961 else
24962 gcc_cv_as_sparc_register_op=no
24963 if test x$gcc_cv_as != x; then
24964 $as_echo '.register %g2, #scratch' > conftest.s
24965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24967 (eval $ac_try) 2>&5
24968 ac_status=$?
24969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24970 test $ac_status = 0; }; }
24971 then
24972 gcc_cv_as_sparc_register_op=yes
24973 else
24974 echo "configure: failed program was" >&5
24975 cat conftest.s >&5
24977 rm -f conftest.o conftest.s
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24981 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24982 if test $gcc_cv_as_sparc_register_op = yes; then
24984 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24990 $as_echo_n "checking assembler for -relax option... " >&6; }
24991 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24992 $as_echo_n "(cached) " >&6
24993 else
24994 gcc_cv_as_sparc_relax=no
24995 if test x$gcc_cv_as != x; then
24996 $as_echo '.text' > conftest.s
24997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25000 ac_status=$?
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }
25003 then
25004 gcc_cv_as_sparc_relax=yes
25005 else
25006 echo "configure: failed program was" >&5
25007 cat conftest.s >&5
25009 rm -f conftest.o conftest.s
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25013 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25014 if test $gcc_cv_as_sparc_relax = yes; then
25016 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25022 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25023 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25024 $as_echo_n "(cached) " >&6
25025 else
25026 gcc_cv_as_sparc_gotdata_op=no
25027 if test x$gcc_cv_as != x; then
25028 $as_echo '.text
25029 .align 4
25030 foo:
25032 bar:
25033 sethi %gdop_hix22(foo), %g1
25034 xor %g1, %gdop_lox10(foo), %g1
25035 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25038 (eval $ac_try) 2>&5
25039 ac_status=$?
25040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25041 test $ac_status = 0; }; }
25042 then
25043 if test x$gcc_cv_ld != x \
25044 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25045 if test x$gcc_cv_objdump != x; then
25046 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25047 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25048 gcc_cv_as_sparc_gotdata_op=no
25049 else
25050 gcc_cv_as_sparc_gotdata_op=yes
25054 rm -f conftest
25055 else
25056 echo "configure: failed program was" >&5
25057 cat conftest.s >&5
25059 rm -f conftest.o conftest.s
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25063 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25064 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25066 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25072 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25073 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25074 $as_echo_n "(cached) " >&6
25075 else
25076 gcc_cv_as_sparc_ua_pcrel=no
25077 if test x$gcc_cv_as != x; then
25078 $as_echo '.text
25079 foo:
25081 .data
25082 .align 4
25083 .byte 0
25084 .uaword %r_disp32(foo)' > conftest.s
25085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25087 (eval $ac_try) 2>&5
25088 ac_status=$?
25089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25090 test $ac_status = 0; }; }
25091 then
25092 if test x$gcc_cv_ld != x \
25093 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25094 gcc_cv_as_sparc_ua_pcrel=yes
25096 rm -f conftest
25097 else
25098 echo "configure: failed program was" >&5
25099 cat conftest.s >&5
25101 rm -f conftest.o conftest.s
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25105 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25106 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25108 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25112 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25113 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25114 $as_echo_n "(cached) " >&6
25115 else
25116 gcc_cv_as_sparc_ua_pcrel_hidden=no
25117 if test x$gcc_cv_as != x; then
25118 $as_echo '.data
25119 .align 4
25120 .byte 0x31
25121 .uaword %r_disp32(foo)
25122 .byte 0x32, 0x33, 0x34
25123 .global foo
25124 .hidden foo
25125 foo:
25126 .skip 4' > conftest.s
25127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25129 (eval $ac_try) 2>&5
25130 ac_status=$?
25131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25132 test $ac_status = 0; }; }
25133 then
25134 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25135 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25136 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25137 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25138 if $gcc_cv_objdump -R conftest 2> /dev/null \
25139 | grep 'DISP32' > /dev/null 2>&1; then
25141 else
25142 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25145 rm -f conftest
25146 else
25147 echo "configure: failed program was" >&5
25148 cat conftest.s >&5
25150 rm -f conftest.o conftest.s
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25154 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25155 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25157 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25163 # unaligned pcrel relocs
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25166 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25167 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25169 else
25170 gcc_cv_as_sparc_offsetable_lo10=no
25171 if test x$gcc_cv_as != x; then
25172 $as_echo '.text
25173 or %g1, %lo(ab) + 12, %g1
25174 or %g1, %lo(ab + 12), %g1' > conftest.s
25175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25177 (eval $ac_try) 2>&5
25178 ac_status=$?
25179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25180 test $ac_status = 0; }; }
25181 then
25182 if test x$gcc_cv_objdump != x \
25183 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25184 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25185 gcc_cv_as_sparc_offsetable_lo10=yes
25187 else
25188 echo "configure: failed program was" >&5
25189 cat conftest.s >&5
25191 rm -f conftest.o conftest.s
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25195 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25196 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25198 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25204 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25205 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25206 $as_echo_n "(cached) " >&6
25207 else
25208 gcc_cv_as_sparc_fmaf=no
25209 if test x$gcc_cv_as != x; then
25210 $as_echo '.text
25211 .register %g2, #scratch
25212 .register %g3, #scratch
25213 .align 4
25214 fmaddd %f0, %f2, %f4, %f6
25215 addxccc %g1, %g2, %g3
25216 fsrl32 %f2, %f4, %f8
25217 fnaddd %f10, %f12, %f14' > conftest.s
25218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25220 (eval $ac_try) 2>&5
25221 ac_status=$?
25222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25223 test $ac_status = 0; }; }
25224 then
25225 gcc_cv_as_sparc_fmaf=yes
25226 else
25227 echo "configure: failed program was" >&5
25228 cat conftest.s >&5
25230 rm -f conftest.o conftest.s
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25234 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25235 if test $gcc_cv_as_sparc_fmaf = yes; then
25237 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25243 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25244 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25246 else
25247 gcc_cv_as_sparc_sparc4=no
25248 if test x$gcc_cv_as != x; then
25249 $as_echo '.text
25250 .register %g2, #scratch
25251 .register %g3, #scratch
25252 .align 4
25253 cxbe %g2, %g3, 1f
25254 1: cwbneg %g2, %g3, 1f
25255 1: sha1
25257 aes_kexpand0 %f4, %f6, %f8
25258 des_round %f38, %f40, %f42, %f44
25259 camellia_f %f54, %f56, %f58, %f60
25260 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25263 (eval $ac_try) 2>&5
25264 ac_status=$?
25265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25266 test $ac_status = 0; }; }
25267 then
25268 gcc_cv_as_sparc_sparc4=yes
25269 else
25270 echo "configure: failed program was" >&5
25271 cat conftest.s >&5
25273 rm -f conftest.o conftest.s
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25277 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25278 if test $gcc_cv_as_sparc_sparc4 = yes; then
25280 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25286 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25287 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25289 else
25290 gcc_cv_as_sparc_sparc5=no
25291 if test x$gcc_cv_as != x; then
25292 $as_echo '.text
25293 .register %g2, #scratch
25294 .register %g3, #scratch
25295 .align 4
25296 subxc %g1, %g2, %g3
25297 fpadd8 %f0, %f2, %f4' > conftest.s
25298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25301 ac_status=$?
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25304 then
25305 gcc_cv_as_sparc_sparc5=yes
25306 else
25307 echo "configure: failed program was" >&5
25308 cat conftest.s >&5
25310 rm -f conftest.o conftest.s
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25314 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25315 if test $gcc_cv_as_sparc_sparc5 = yes; then
25317 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25323 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25324 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25325 $as_echo_n "(cached) " >&6
25326 else
25327 gcc_cv_as_sparc_sparc6=no
25328 if test x$gcc_cv_as != x; then
25329 $as_echo '.text
25330 .register %g2, #scratch
25331 .register %g3, #scratch
25332 .align 4
25333 rd %entropy, %g1
25334 fpsll64x %f0, %f2, %f4' > conftest.s
25335 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25337 (eval $ac_try) 2>&5
25338 ac_status=$?
25339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25340 test $ac_status = 0; }; }
25341 then
25342 gcc_cv_as_sparc_sparc6=yes
25343 else
25344 echo "configure: failed program was" >&5
25345 cat conftest.s >&5
25347 rm -f conftest.o conftest.s
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25351 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25352 if test $gcc_cv_as_sparc_sparc6 = yes; then
25354 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25360 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25361 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25362 $as_echo_n "(cached) " >&6
25363 else
25364 gcc_cv_as_sparc_leon=no
25365 if test x$gcc_cv_as != x; then
25366 $as_echo '.text
25367 .register %g2, #scratch
25368 .register %g3, #scratch
25369 .align 4
25370 smac %g2, %g3, %g1
25371 umac %g2, %g3, %g1
25372 casa [%g2] 0xb, %g3, %g1' > conftest.s
25373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25375 (eval $ac_try) 2>&5
25376 ac_status=$?
25377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25378 test $ac_status = 0; }; }
25379 then
25380 gcc_cv_as_sparc_leon=yes
25381 else
25382 echo "configure: failed program was" >&5
25383 cat conftest.s >&5
25385 rm -f conftest.o conftest.s
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25389 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25390 if test $gcc_cv_as_sparc_leon = yes; then
25392 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25398 i[34567]86-*-* | x86_64-*-*)
25399 case $target_os in
25400 cygwin*)
25401 # Full C++ conformance when using a shared libstdc++-v3 requires some
25402 # support from the Cygwin DLL, which in more recent versions exports
25403 # wrappers to aid in interposing and redirecting operators new, delete,
25404 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25405 # are configuring for a version of Cygwin that exports the wrappers.
25406 if test x$host = x$target && test x$host_cpu = xi686; then
25407 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25408 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25409 gcc_ac_cygwin_dll_wrappers=yes
25410 else
25411 gcc_ac_cygwin_dll_wrappers=no
25414 else
25415 # Can't check presence of libc functions during cross-compile, so
25416 # we just have to assume we're building for an up-to-date target.
25417 gcc_ac_cygwin_dll_wrappers=yes
25420 cat >>confdefs.h <<_ACEOF
25421 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25422 _ACEOF
25424 esac
25425 case $target_os in
25426 cygwin* | pe | mingw32*)
25427 # Recent binutils allows the three-operand form of ".comm" on PE. This
25428 # definition is used unconditionally to initialise the default state of
25429 # the target option variable that governs usage of the feature.
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25431 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25432 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25433 $as_echo_n "(cached) " >&6
25434 else
25435 gcc_cv_as_comm_has_align=no
25436 if test $in_tree_gas = yes; then
25437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25438 then gcc_cv_as_comm_has_align=yes
25440 elif test x$gcc_cv_as != x; then
25441 $as_echo '.comm foo,1,32' > conftest.s
25442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25444 (eval $ac_try) 2>&5
25445 ac_status=$?
25446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25447 test $ac_status = 0; }; }
25448 then
25449 gcc_cv_as_comm_has_align=yes
25450 else
25451 echo "configure: failed program was" >&5
25452 cat conftest.s >&5
25454 rm -f conftest.o conftest.s
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25458 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25462 cat >>confdefs.h <<_ACEOF
25463 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25464 _ACEOF
25466 # Used for DWARF 2 in PE
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25468 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25469 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25471 else
25472 gcc_cv_as_ix86_pe_secrel32=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25475 then gcc_cv_as_ix86_pe_secrel32=yes
25477 elif test x$gcc_cv_as != x; then
25478 $as_echo '.text
25479 foo: nop
25480 .data
25481 .secrel32 foo' > conftest.s
25482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25484 (eval $ac_try) 2>&5
25485 ac_status=$?
25486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25487 test $ac_status = 0; }; }
25488 then
25489 if test x$gcc_cv_ld != x \
25490 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25491 gcc_cv_as_ix86_pe_secrel32=yes
25493 rm -f conftest
25494 else
25495 echo "configure: failed program was" >&5
25496 cat conftest.s >&5
25498 rm -f conftest.o conftest.s
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25502 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25503 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25505 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25509 # Test if the assembler supports the extended form of the .section
25510 # directive that specifies section alignment. LTO support uses this,
25511 # but normally only after installation, so we warn but don't fail the
25512 # configure if LTO is enabled but the assembler does not support it.
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25514 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25515 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25517 else
25518 gcc_cv_as_section_has_align=no
25519 if test $in_tree_gas = yes; then
25520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25521 then gcc_cv_as_section_has_align=yes
25523 elif test x$gcc_cv_as != x; then
25524 $as_echo '.section lto_test,"dr0"' > conftest.s
25525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530 test $ac_status = 0; }; }
25531 then
25532 gcc_cv_as_section_has_align=yes
25533 else
25534 echo "configure: failed program was" >&5
25535 cat conftest.s >&5
25537 rm -f conftest.o conftest.s
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25541 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25544 if test x$gcc_cv_as_section_has_align != xyes; then
25545 case ",$enable_languages," in
25546 *,lto,*)
25547 { $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
25548 $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;}
25550 esac
25553 esac
25555 # Test if the assembler supports the section flag 'e' for specifying
25556 # an excluded section.
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25558 $as_echo_n "checking assembler for .section with e... " >&6; }
25559 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25560 $as_echo_n "(cached) " >&6
25561 else
25562 gcc_cv_as_section_has_e=no
25563 if test $in_tree_gas = yes; then
25564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25565 then gcc_cv_as_section_has_e=yes
25567 elif test x$gcc_cv_as != x; then
25568 $as_echo '.section foo1,"e"
25569 .byte 0,0,0,0' > conftest.s
25570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25576 then
25577 gcc_cv_as_section_has_e=yes
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25586 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25590 cat >>confdefs.h <<_ACEOF
25591 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25592 _ACEOF
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25596 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25597 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25598 $as_echo_n "(cached) " >&6
25599 else
25600 gcc_cv_as_ix86_filds=no
25601 if test x$gcc_cv_as != x; then
25602 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25606 ac_status=$?
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25609 then
25610 gcc_cv_as_ix86_filds=yes
25611 else
25612 echo "configure: failed program was" >&5
25613 cat conftest.s >&5
25615 rm -f conftest.o conftest.s
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25619 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25620 if test $gcc_cv_as_ix86_filds = yes; then
25622 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25628 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25629 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25630 $as_echo_n "(cached) " >&6
25631 else
25632 gcc_cv_as_ix86_fildq=no
25633 if test x$gcc_cv_as != x; then
25634 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25637 (eval $ac_try) 2>&5
25638 ac_status=$?
25639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25640 test $ac_status = 0; }; }
25641 then
25642 gcc_cv_as_ix86_fildq=yes
25643 else
25644 echo "configure: failed program was" >&5
25645 cat conftest.s >&5
25647 rm -f conftest.o conftest.s
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25651 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25652 if test $gcc_cv_as_ix86_fildq = yes; then
25654 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25660 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25661 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25662 $as_echo_n "(cached) " >&6
25663 else
25664 gcc_cv_as_ix86_cmov_sun_syntax=no
25665 if test x$gcc_cv_as != x; then
25666 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25673 then
25674 gcc_cv_as_ix86_cmov_sun_syntax=yes
25675 else
25676 echo "configure: failed program was" >&5
25677 cat conftest.s >&5
25679 rm -f conftest.o conftest.s
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25683 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25684 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25686 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25692 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25693 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25695 else
25696 gcc_cv_as_ix86_ffreep=no
25697 if test x$gcc_cv_as != x; then
25698 $as_echo 'ffreep %st(1)' > conftest.s
25699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25701 (eval $ac_try) 2>&5
25702 ac_status=$?
25703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25704 test $ac_status = 0; }; }
25705 then
25706 gcc_cv_as_ix86_ffreep=yes
25707 else
25708 echo "configure: failed program was" >&5
25709 cat conftest.s >&5
25711 rm -f conftest.o conftest.s
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25715 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25716 if test $gcc_cv_as_ix86_ffreep = yes; then
25718 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25724 $as_echo_n "checking assembler for .quad directive... " >&6; }
25725 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25726 $as_echo_n "(cached) " >&6
25727 else
25728 gcc_cv_as_ix86_quad=no
25729 if test x$gcc_cv_as != x; then
25730 $as_echo '.quad 0' > conftest.s
25731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25736 test $ac_status = 0; }; }
25737 then
25738 gcc_cv_as_ix86_quad=yes
25739 else
25740 echo "configure: failed program was" >&5
25741 cat conftest.s >&5
25743 rm -f conftest.o conftest.s
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25747 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25748 if test $gcc_cv_as_ix86_quad = yes; then
25750 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25756 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25757 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25758 $as_echo_n "(cached) " >&6
25759 else
25760 gcc_cv_as_ix86_sahf=no
25761 if test x$gcc_cv_as != x; then
25762 $as_echo '.code64
25763 sahf' > conftest.s
25764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25769 test $ac_status = 0; }; }
25770 then
25771 gcc_cv_as_ix86_sahf=yes
25772 else
25773 echo "configure: failed program was" >&5
25774 cat conftest.s >&5
25776 rm -f conftest.o conftest.s
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25780 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25781 if test $gcc_cv_as_ix86_sahf = yes; then
25783 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25789 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25790 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25791 $as_echo_n "(cached) " >&6
25792 else
25793 gcc_cv_as_ix86_interunit_movq=no
25794 if test x$gcc_cv_as != x; then
25795 $as_echo '.code64
25796 movq %mm0, %rax
25797 movq %rax, %xmm0' > conftest.s
25798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25801 ac_status=$?
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; }
25804 then
25805 gcc_cv_as_ix86_interunit_movq=yes
25806 else
25807 echo "configure: failed program was" >&5
25808 cat conftest.s >&5
25810 rm -f conftest.o conftest.s
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25814 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25818 cat >>confdefs.h <<_ACEOF
25819 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25820 _ACEOF
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25824 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25825 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25827 else
25828 gcc_cv_as_ix86_hle=no
25829 if test x$gcc_cv_as != x; then
25830 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25831 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25834 ac_status=$?
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25837 then
25838 gcc_cv_as_ix86_hle=yes
25839 else
25840 echo "configure: failed program was" >&5
25841 cat conftest.s >&5
25843 rm -f conftest.o conftest.s
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25847 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25848 if test $gcc_cv_as_ix86_hle = yes; then
25850 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25856 $as_echo_n "checking assembler for swap suffix... " >&6; }
25857 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25858 $as_echo_n "(cached) " >&6
25859 else
25860 gcc_cv_as_ix86_swap=no
25861 if test x$gcc_cv_as != x; then
25862 $as_echo 'movl.s %esp, %ebp' > conftest.s
25863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25868 test $ac_status = 0; }; }
25869 then
25870 gcc_cv_as_ix86_swap=yes
25871 else
25872 echo "configure: failed program was" >&5
25873 cat conftest.s >&5
25875 rm -f conftest.o conftest.s
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25879 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25880 if test $gcc_cv_as_ix86_swap = yes; then
25882 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25888 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25889 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25892 gcc_cv_as_ix86_diff_sect_delta=no
25893 if test x$gcc_cv_as != x; then
25894 $as_echo '.section .rodata
25895 .L1:
25896 .long .L2-.L1
25897 .long .L3-.L1
25898 .text
25899 .L3: nop
25900 .L2: nop' > conftest.s
25901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903 (eval $ac_try) 2>&5
25904 ac_status=$?
25905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906 test $ac_status = 0; }; }
25907 then
25908 gcc_cv_as_ix86_diff_sect_delta=yes
25909 else
25910 echo "configure: failed program was" >&5
25911 cat conftest.s >&5
25913 rm -f conftest.o conftest.s
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25917 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25918 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25920 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25926 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25927 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25928 $as_echo_n "(cached) " >&6
25929 else
25930 gcc_cv_as_ix86_rep_lock_prefix=no
25931 if test x$gcc_cv_as != x; then
25932 $as_echo 'rep movsl
25933 rep ret
25934 rep nop
25935 rep bsf %ecx, %eax
25936 rep bsr %ecx, %eax
25937 lock addl %edi, (%eax,%esi)
25938 lock orl $0, (%esp)' > conftest.s
25939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25944 test $ac_status = 0; }; }
25945 then
25946 gcc_cv_as_ix86_rep_lock_prefix=yes
25947 else
25948 echo "configure: failed program was" >&5
25949 cat conftest.s >&5
25951 rm -f conftest.o conftest.s
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25955 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25956 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25958 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25964 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25965 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25966 $as_echo_n "(cached) " >&6
25967 else
25968 gcc_cv_as_ix86_ud2=no
25969 if test x$gcc_cv_as != x; then
25970 $as_echo 'ud2' > conftest.s
25971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25976 test $ac_status = 0; }; }
25977 then
25978 gcc_cv_as_ix86_ud2=yes
25979 else
25980 echo "configure: failed program was" >&5
25981 cat conftest.s >&5
25983 rm -f conftest.o conftest.s
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25987 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25988 if test $gcc_cv_as_ix86_ud2 = yes; then
25990 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25995 # Enforce 32-bit output with gas and gld.
25996 if test x$gas = xyes; then
25997 as_ix86_gas_32_opt="--32"
25999 if echo "$ld_ver" | grep GNU > /dev/null; then
26000 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26001 ld_ix86_gld_32_opt="-melf_i386_sol2"
26002 else
26003 ld_ix86_gld_32_opt="-melf_i386"
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26008 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26009 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26010 $as_echo_n "(cached) " >&6
26011 else
26012 gcc_cv_as_ix86_tlsgdplt=no
26013 if test x$gcc_cv_as != x; then
26014 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; }
26021 then
26022 if test x$gcc_cv_ld != x \
26023 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26024 gcc_cv_as_ix86_tlsgdplt=yes
26026 rm -f conftest
26027 else
26028 echo "configure: failed program was" >&5
26029 cat conftest.s >&5
26031 rm -f conftest.o conftest.s
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26035 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26036 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26038 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26043 conftest_s='
26044 .section .tdata,"aw'$tls_section_flag'",@progbits
26045 tls_ld:
26046 .section .text,"ax",@progbits
26047 call tls_ld@tlsldmplt'
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26050 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26051 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 gcc_cv_as_ix86_tlsldmplt=no
26055 if test x$gcc_cv_as != x; then
26056 $as_echo "$conftest_s" > conftest.s
26057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26059 (eval $ac_try) 2>&5
26060 ac_status=$?
26061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26062 test $ac_status = 0; }; }
26063 then
26064 if test x$gcc_cv_ld != x \
26065 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26066 gcc_cv_as_ix86_tlsldmplt=yes
26068 rm -f conftest
26069 else
26070 echo "configure: failed program was" >&5
26071 cat conftest.s >&5
26073 rm -f conftest.o conftest.s
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26077 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26081 cat >>confdefs.h <<_ACEOF
26082 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26083 _ACEOF
26086 conftest_s='
26087 .section .text,"ax",@progbits
26088 .globl _start
26089 .type _start, @function
26090 _start:
26091 leal value@tlsldm(%ebx), %eax
26092 call ___tls_get_addr@plt
26094 .section .tdata,"aw'$tls_section_flag'",@progbits
26095 .type value, @object
26096 value:'
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26098 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26099 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26100 $as_echo_n "(cached) " >&6
26101 else
26102 gcc_cv_as_ix86_tlsldm=no
26103 if test x$gcc_cv_as != x; then
26104 $as_echo "$conftest_s" > conftest.s
26105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26107 (eval $ac_try) 2>&5
26108 ac_status=$?
26109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26110 test $ac_status = 0; }; }
26111 then
26112 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26113 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26114 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26115 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26116 gcc_cv_as_ix86_tlsldm=yes
26119 rm -f conftest
26120 else
26121 echo "configure: failed program was" >&5
26122 cat conftest.s >&5
26124 rm -f conftest.o conftest.s
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26128 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26132 cat >>confdefs.h <<_ACEOF
26133 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26134 _ACEOF
26137 conftest_s='
26138 .data
26139 bar:
26140 .byte 1
26141 .text
26142 .global _start
26143 _start:
26144 cmpl $0, bar@GOT
26145 jmp *_start@GOT'
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26147 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26148 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26149 $as_echo_n "(cached) " >&6
26150 else
26151 gcc_cv_as_ix86_got32x=no
26152 if test x$gcc_cv_as != x; then
26153 $as_echo "$conftest_s" > conftest.s
26154 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26156 (eval $ac_try) 2>&5
26157 ac_status=$?
26158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26159 test $ac_status = 0; }; }
26160 then
26161 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26162 && test x$gcc_cv_readelf != x \
26163 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26164 | grep R_386_GOT32X > /dev/null 2>&1 \
26165 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26166 if $gcc_cv_objdump -dw conftest 2>&1 \
26167 | grep 0xffffff > /dev/null 2>&1; then
26168 gcc_cv_as_ix86_got32x=no
26169 else
26170 gcc_cv_as_ix86_got32x=yes
26173 rm -f conftest
26174 else
26175 echo "configure: failed program was" >&5
26176 cat conftest.s >&5
26178 rm -f conftest.o conftest.s
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26182 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26186 cat >>confdefs.h <<_ACEOF
26187 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26188 _ACEOF
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26192 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26193 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26194 $as_echo_n "(cached) " >&6
26195 else
26196 gcc_cv_as_ix86_gotoff_in_data=no
26197 if test $in_tree_gas = yes; then
26198 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26199 then gcc_cv_as_ix86_gotoff_in_data=yes
26201 elif test x$gcc_cv_as != x; then
26202 $as_echo ' .text
26203 .L0:
26205 .data
26206 .long .L0@GOTOFF' > conftest.s
26207 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26213 then
26214 gcc_cv_as_ix86_gotoff_in_data=yes
26215 else
26216 echo "configure: failed program was" >&5
26217 cat conftest.s >&5
26219 rm -f conftest.o conftest.s
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26223 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26227 cat >>confdefs.h <<_ACEOF
26228 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26229 _ACEOF
26232 conftest_s='
26233 .section .text,"ax",@progbits
26234 .globl _start
26235 .type _start, @function
26236 _start:
26237 leal ld@tlsldm(%ecx), %eax
26238 call *___tls_get_addr@GOT(%ecx)
26239 leal gd@tlsgd(%ecx), %eax
26240 call *___tls_get_addr@GOT(%ecx)
26242 .section .tdata,"aw'$tls_section_flag'",@progbits
26243 .type ld, @object
26245 .byte 0
26246 .globl gd
26247 .type gd, @object
26249 .byte 0'
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26251 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26252 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26253 $as_echo_n "(cached) " >&6
26254 else
26255 gcc_cv_as_ix86_tls_get_addr_via_got=no
26256 if test x$gcc_cv_as != x; then
26257 $as_echo "$conftest_s" > conftest.s
26258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26260 (eval $ac_try) 2>&5
26261 ac_status=$?
26262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26263 test $ac_status = 0; }; }
26264 then
26265 if test x$gcc_cv_ld != x \
26266 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26267 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26269 rm -f conftest
26270 else
26271 echo "configure: failed program was" >&5
26272 cat conftest.s >&5
26274 rm -f conftest.o conftest.s
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26278 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26282 cat >>confdefs.h <<_ACEOF
26283 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26284 _ACEOF
26288 ia64*-*-*)
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26290 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26291 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26293 else
26294 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26295 if test $in_tree_gas = yes; then
26296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26297 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26299 elif test x$gcc_cv_as != x; then
26300 $as_echo ' .text
26301 addl r15 = @ltoffx(x#), gp
26303 ld8.mov r16 = [r15], x#' > conftest.s
26304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26306 (eval $ac_try) 2>&5
26307 ac_status=$?
26308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26309 test $ac_status = 0; }; }
26310 then
26311 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26312 else
26313 echo "configure: failed program was" >&5
26314 cat conftest.s >&5
26316 rm -f conftest.o conftest.s
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26320 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26321 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26323 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26330 powerpc*-*-*)
26332 case $target in
26333 *-*-darwin*)
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26335 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26336 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26337 $as_echo_n "(cached) " >&6
26338 else
26339 gcc_cv_as_machine_directive=no
26340 if test x$gcc_cv_as != x; then
26341 $as_echo ' .machine ppc7400' > conftest.s
26342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; }
26348 then
26349 gcc_cv_as_machine_directive=yes
26350 else
26351 echo "configure: failed program was" >&5
26352 cat conftest.s >&5
26354 rm -f conftest.o conftest.s
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26358 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26361 if test x$gcc_cv_as_machine_directive != xyes; then
26362 echo "*** This target requires an assembler supporting \".machine\"" >&2
26363 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26364 test x$build = x$target && exit 1
26367 esac
26369 case $target in
26370 *-*-aix*) conftest_s=' .machine "pwr5"
26371 .csect .text[PR]
26372 mfcr 3,128';;
26373 *-*-darwin*) conftest_s=' .text
26374 mfcr r3,128';;
26375 *) conftest_s=' .machine power4
26376 .text
26377 mfcr 3,128';;
26378 esac
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26381 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26382 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26383 $as_echo_n "(cached) " >&6
26384 else
26385 gcc_cv_as_powerpc_mfcrf=no
26386 if test $in_tree_gas = yes; then
26387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26388 then gcc_cv_as_powerpc_mfcrf=yes
26390 elif test x$gcc_cv_as != x; then
26391 $as_echo "$conftest_s" > conftest.s
26392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26394 (eval $ac_try) 2>&5
26395 ac_status=$?
26396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26397 test $ac_status = 0; }; }
26398 then
26399 gcc_cv_as_powerpc_mfcrf=yes
26400 else
26401 echo "configure: failed program was" >&5
26402 cat conftest.s >&5
26404 rm -f conftest.o conftest.s
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26408 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26409 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26411 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26416 case $target in
26417 *-*-aix*) conftest_s=' .machine "pwr5"
26418 .csect .text[PR]
26419 popcntb 3,3';;
26420 *) conftest_s=' .machine power5
26421 .text
26422 popcntb 3,3';;
26423 esac
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26426 $as_echo_n "checking assembler for popcntb support... " >&6; }
26427 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26428 $as_echo_n "(cached) " >&6
26429 else
26430 gcc_cv_as_powerpc_popcntb=no
26431 if test $in_tree_gas = yes; then
26432 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26433 then gcc_cv_as_powerpc_popcntb=yes
26435 elif test x$gcc_cv_as != x; then
26436 $as_echo "$conftest_s" > conftest.s
26437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26439 (eval $ac_try) 2>&5
26440 ac_status=$?
26441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26442 test $ac_status = 0; }; }
26443 then
26444 gcc_cv_as_powerpc_popcntb=yes
26445 else
26446 echo "configure: failed program was" >&5
26447 cat conftest.s >&5
26449 rm -f conftest.o conftest.s
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26453 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26454 if test $gcc_cv_as_powerpc_popcntb = yes; then
26456 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26461 case $target in
26462 *-*-aix*) conftest_s=' .machine "pwr5x"
26463 .csect .text[PR]
26464 frin 1,1';;
26465 *) conftest_s=' .machine power5
26466 .text
26467 frin 1,1';;
26468 esac
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26471 $as_echo_n "checking assembler for fp round support... " >&6; }
26472 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26473 $as_echo_n "(cached) " >&6
26474 else
26475 gcc_cv_as_powerpc_fprnd=no
26476 if test $in_tree_gas = yes; then
26477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26478 then gcc_cv_as_powerpc_fprnd=yes
26480 elif test x$gcc_cv_as != x; then
26481 $as_echo "$conftest_s" > conftest.s
26482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487 test $ac_status = 0; }; }
26488 then
26489 gcc_cv_as_powerpc_fprnd=yes
26490 else
26491 echo "configure: failed program was" >&5
26492 cat conftest.s >&5
26494 rm -f conftest.o conftest.s
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26498 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26499 if test $gcc_cv_as_powerpc_fprnd = yes; then
26501 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26506 case $target in
26507 *-*-aix*) conftest_s=' .machine "pwr6"
26508 .csect .text[PR]
26509 mffgpr 1,3';;
26510 *) conftest_s=' .machine power6
26511 .text
26512 mffgpr 1,3';;
26513 esac
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26516 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26517 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26518 $as_echo_n "(cached) " >&6
26519 else
26520 gcc_cv_as_powerpc_mfpgpr=no
26521 if test $in_tree_gas = yes; then
26522 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26523 then gcc_cv_as_powerpc_mfpgpr=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 -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_mfpgpr=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_mfpgpr" >&5
26543 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26544 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26546 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26551 case $target in
26552 *-*-aix*) conftest_s=' .csect .text[PR]
26553 LCF..0:
26554 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26555 *-*-darwin*)
26556 conftest_s=' .text
26557 LCF0:
26558 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26559 *) conftest_s=' .text
26560 .LCF0:
26561 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26562 esac
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26565 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26566 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26567 $as_echo_n "(cached) " >&6
26568 else
26569 gcc_cv_as_powerpc_rel16=no
26570 if test $in_tree_gas = yes; then
26571 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26572 then gcc_cv_as_powerpc_rel16=yes
26574 elif test x$gcc_cv_as != x; then
26575 $as_echo "$conftest_s" > conftest.s
26576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26578 (eval $ac_try) 2>&5
26579 ac_status=$?
26580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26581 test $ac_status = 0; }; }
26582 then
26583 gcc_cv_as_powerpc_rel16=yes
26584 else
26585 echo "configure: failed program was" >&5
26586 cat conftest.s >&5
26588 rm -f conftest.o conftest.s
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26592 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26593 if test $gcc_cv_as_powerpc_rel16 = yes; then
26595 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26600 case $target in
26601 *-*-aix*) conftest_s=' .machine "pwr6"
26602 .csect .text[PR]
26603 cmpb 3,4,5';;
26604 *) conftest_s=' .machine power6
26605 .text
26606 cmpb 3,4,5';;
26607 esac
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26610 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26611 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26612 $as_echo_n "(cached) " >&6
26613 else
26614 gcc_cv_as_powerpc_cmpb=no
26615 if test $in_tree_gas = yes; then
26616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26617 then gcc_cv_as_powerpc_cmpb=yes
26619 elif test x$gcc_cv_as != x; then
26620 $as_echo "$conftest_s" > conftest.s
26621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26626 test $ac_status = 0; }; }
26627 then
26628 gcc_cv_as_powerpc_cmpb=yes
26629 else
26630 echo "configure: failed program was" >&5
26631 cat conftest.s >&5
26633 rm -f conftest.o conftest.s
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26637 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26638 if test $gcc_cv_as_powerpc_cmpb = yes; then
26640 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26645 case $target in
26646 *-*-aix*) conftest_s=' .machine "pwr6"
26647 .csect .text[PR]
26648 dadd 1,2,3';;
26649 *) conftest_s=' .machine power6
26650 .text
26651 dadd 1,2,3';;
26652 esac
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26655 $as_echo_n "checking assembler for decimal float support... " >&6; }
26656 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26657 $as_echo_n "(cached) " >&6
26658 else
26659 gcc_cv_as_powerpc_dfp=no
26660 if test $in_tree_gas = yes; then
26661 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26662 then gcc_cv_as_powerpc_dfp=yes
26664 elif test x$gcc_cv_as != x; then
26665 $as_echo "$conftest_s" > conftest.s
26666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26668 (eval $ac_try) 2>&5
26669 ac_status=$?
26670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26671 test $ac_status = 0; }; }
26672 then
26673 gcc_cv_as_powerpc_dfp=yes
26674 else
26675 echo "configure: failed program was" >&5
26676 cat conftest.s >&5
26678 rm -f conftest.o conftest.s
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26682 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26683 if test $gcc_cv_as_powerpc_dfp = yes; then
26685 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26690 case $target in
26691 *-*-aix*) conftest_s=' .machine "pwr7"
26692 .csect .text[PR]
26693 lxvd2x 1,2,3';;
26694 *) conftest_s=' .machine power7
26695 .text
26696 lxvd2x 1,2,3';;
26697 esac
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26700 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26701 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26702 $as_echo_n "(cached) " >&6
26703 else
26704 gcc_cv_as_powerpc_vsx=no
26705 if test $in_tree_gas = yes; then
26706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26707 then gcc_cv_as_powerpc_vsx=yes
26709 elif test x$gcc_cv_as != x; then
26710 $as_echo "$conftest_s" > conftest.s
26711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26717 then
26718 gcc_cv_as_powerpc_vsx=yes
26719 else
26720 echo "configure: failed program was" >&5
26721 cat conftest.s >&5
26723 rm -f conftest.o conftest.s
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26727 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26728 if test $gcc_cv_as_powerpc_vsx = yes; then
26730 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26735 case $target in
26736 *-*-aix*) conftest_s=' .machine "pwr7"
26737 .csect .text[PR]
26738 popcntd 3,3';;
26739 *) conftest_s=' .machine power7
26740 .text
26741 popcntd 3,3';;
26742 esac
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26745 $as_echo_n "checking assembler for popcntd support... " >&6; }
26746 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26747 $as_echo_n "(cached) " >&6
26748 else
26749 gcc_cv_as_powerpc_popcntd=no
26750 if test $in_tree_gas = yes; then
26751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26752 then gcc_cv_as_powerpc_popcntd=yes
26754 elif test x$gcc_cv_as != x; then
26755 $as_echo "$conftest_s" > conftest.s
26756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26758 (eval $ac_try) 2>&5
26759 ac_status=$?
26760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26761 test $ac_status = 0; }; }
26762 then
26763 gcc_cv_as_powerpc_popcntd=yes
26764 else
26765 echo "configure: failed program was" >&5
26766 cat conftest.s >&5
26768 rm -f conftest.o conftest.s
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26772 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26773 if test $gcc_cv_as_powerpc_popcntd = yes; then
26775 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26780 case $target in
26781 *-*-aix*) conftest_s=' .machine "pwr8"
26782 .csect .text[PR]';;
26783 *) conftest_s=' .machine power8
26784 .text';;
26785 esac
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26788 $as_echo_n "checking assembler for power8 support... " >&6; }
26789 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26790 $as_echo_n "(cached) " >&6
26791 else
26792 gcc_cv_as_powerpc_power8=no
26793 if test $in_tree_gas = yes; then
26794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26795 then gcc_cv_as_powerpc_power8=yes
26797 elif test x$gcc_cv_as != x; then
26798 $as_echo "$conftest_s" > conftest.s
26799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26804 test $ac_status = 0; }; }
26805 then
26806 gcc_cv_as_powerpc_power8=yes
26807 else
26808 echo "configure: failed program was" >&5
26809 cat conftest.s >&5
26811 rm -f conftest.o conftest.s
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26815 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26816 if test $gcc_cv_as_powerpc_power8 = yes; then
26818 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26823 case $target in
26824 *-*-aix*) conftest_s=' .machine "pwr9"
26825 .csect .text[PR]';;
26826 *) conftest_s=' .machine power9
26827 .text';;
26828 esac
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26831 $as_echo_n "checking assembler for power9 support... " >&6; }
26832 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26833 $as_echo_n "(cached) " >&6
26834 else
26835 gcc_cv_as_powerpc_power9=no
26836 if test $in_tree_gas = yes; then
26837 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26838 then gcc_cv_as_powerpc_power9=yes
26840 elif test x$gcc_cv_as != x; then
26841 $as_echo "$conftest_s" > conftest.s
26842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26844 (eval $ac_try) 2>&5
26845 ac_status=$?
26846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26847 test $ac_status = 0; }; }
26848 then
26849 gcc_cv_as_powerpc_power9=yes
26850 else
26851 echo "configure: failed program was" >&5
26852 cat conftest.s >&5
26854 rm -f conftest.o conftest.s
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26858 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26859 if test $gcc_cv_as_powerpc_power9 = yes; then
26861 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26866 case $target in
26867 *-*-aix*) conftest_s=' .csect .text[PR]
26868 lwsync';;
26869 *) conftest_s=' .text
26870 lwsync';;
26871 esac
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26874 $as_echo_n "checking assembler for lwsync support... " >&6; }
26875 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26876 $as_echo_n "(cached) " >&6
26877 else
26878 gcc_cv_as_powerpc_lwsync=no
26879 if test $in_tree_gas = yes; then
26880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26881 then gcc_cv_as_powerpc_lwsync=yes
26883 elif test x$gcc_cv_as != x; then
26884 $as_echo "$conftest_s" > conftest.s
26885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26887 (eval $ac_try) 2>&5
26888 ac_status=$?
26889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26890 test $ac_status = 0; }; }
26891 then
26892 gcc_cv_as_powerpc_lwsync=yes
26893 else
26894 echo "configure: failed program was" >&5
26895 cat conftest.s >&5
26897 rm -f conftest.o conftest.s
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26901 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26902 if test $gcc_cv_as_powerpc_lwsync = yes; then
26904 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26909 case $target in
26910 *-*-aix*) conftest_s=' .machine "476"
26911 .csect .text[PR]
26912 dci 0';;
26913 *) conftest_s=' .machine "476"
26914 .text
26915 dci 0';;
26916 esac
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26919 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26920 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26921 $as_echo_n "(cached) " >&6
26922 else
26923 gcc_cv_as_powerpc_dci=no
26924 if test $in_tree_gas = yes; then
26925 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26926 then gcc_cv_as_powerpc_dci=yes
26928 elif test x$gcc_cv_as != x; then
26929 $as_echo "$conftest_s" > conftest.s
26930 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26932 (eval $ac_try) 2>&5
26933 ac_status=$?
26934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26935 test $ac_status = 0; }; }
26936 then
26937 gcc_cv_as_powerpc_dci=yes
26938 else
26939 echo "configure: failed program was" >&5
26940 cat conftest.s >&5
26942 rm -f conftest.o conftest.s
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26946 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26947 if test $gcc_cv_as_powerpc_dci = yes; then
26949 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26955 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26956 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26957 $as_echo_n "(cached) " >&6
26958 else
26959 gcc_cv_as_powerpc_gnu_attribute=no
26960 if test $in_tree_gas = yes; then
26961 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26962 then gcc_cv_as_powerpc_gnu_attribute=yes
26964 elif test x$gcc_cv_as != x; then
26965 $as_echo '.gnu_attribute 4,1' > conftest.s
26966 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26968 (eval $ac_try) 2>&5
26969 ac_status=$?
26970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26971 test $ac_status = 0; }; }
26972 then
26973 gcc_cv_as_powerpc_gnu_attribute=yes
26974 else
26975 echo "configure: failed program was" >&5
26976 cat conftest.s >&5
26978 rm -f conftest.o conftest.s
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26982 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26983 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26985 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26991 $as_echo_n "checking assembler for tls marker support... " >&6; }
26992 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26993 $as_echo_n "(cached) " >&6
26994 else
26995 gcc_cv_as_powerpc_tls_markers=no
26996 if test $in_tree_gas = yes; then
26997 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26998 then gcc_cv_as_powerpc_tls_markers=yes
27000 elif test x$gcc_cv_as != x; then
27001 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27007 test $ac_status = 0; }; }
27008 then
27009 gcc_cv_as_powerpc_tls_markers=yes
27010 else
27011 echo "configure: failed program was" >&5
27012 cat conftest.s >&5
27014 rm -f conftest.o conftest.s
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27018 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27019 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27021 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27027 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27028 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
27029 $as_echo_n "(cached) " >&6
27030 else
27031 gcc_cv_as_powerpc_entry_markers=no
27032 if test $in_tree_gas = yes; then
27033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27034 then gcc_cv_as_powerpc_entry_markers=yes
27036 elif test x$gcc_cv_as != x; then
27037 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27040 (eval $ac_try) 2>&5
27041 ac_status=$?
27042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27043 test $ac_status = 0; }; }
27044 then
27045 gcc_cv_as_powerpc_entry_markers=yes
27046 else
27047 echo "configure: failed program was" >&5
27048 cat conftest.s >&5
27050 rm -f conftest.o conftest.s
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27054 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27055 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27057 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27062 case $target in
27063 *-*-aix*)
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27065 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27066 if test "${gcc_cv_as_aix_ref+set}" = set; then :
27067 $as_echo_n "(cached) " >&6
27068 else
27069 gcc_cv_as_aix_ref=no
27070 if test $in_tree_gas = yes; then
27071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27072 then gcc_cv_as_aix_ref=yes
27074 elif test x$gcc_cv_as != x; then
27075 $as_echo ' .csect stuff[rw]
27076 stuff:
27077 .long 1
27078 .extern sym
27079 .ref sym
27080 ' > conftest.s
27081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27086 test $ac_status = 0; }; }
27087 then
27088 gcc_cv_as_aix_ref=yes
27089 else
27090 echo "configure: failed program was" >&5
27091 cat conftest.s >&5
27093 rm -f conftest.o conftest.s
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27097 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27098 if test $gcc_cv_as_aix_ref = yes; then
27100 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27106 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27107 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
27108 $as_echo_n "(cached) " >&6
27109 else
27110 gcc_cv_as_aix_dwloc=no
27111 if test $in_tree_gas = yes; then
27112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27113 then gcc_cv_as_aix_dwloc=yes
27115 elif test x$gcc_cv_as != x; then
27116 $as_echo ' .dwsect 0xA0000
27117 Lframe..0:
27118 .vbyte 4,Lframe..0
27119 ' > conftest.s
27120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27125 test $ac_status = 0; }; }
27126 then
27127 gcc_cv_as_aix_dwloc=yes
27128 else
27129 echo "configure: failed program was" >&5
27130 cat conftest.s >&5
27132 rm -f conftest.o conftest.s
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27136 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27137 if test $gcc_cv_as_aix_dwloc = yes; then
27139 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27144 esac
27147 mips*-*-*)
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27149 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27150 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27151 $as_echo_n "(cached) " >&6
27152 else
27153 gcc_cv_as_mips_explicit_relocs=no
27154 if test $in_tree_gas = yes; then
27155 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27156 then gcc_cv_as_mips_explicit_relocs=yes
27158 elif test x$gcc_cv_as != x; then
27159 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27162 (eval $ac_try) 2>&5
27163 ac_status=$?
27164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27165 test $ac_status = 0; }; }
27166 then
27167 gcc_cv_as_mips_explicit_relocs=yes
27168 else
27169 echo "configure: failed program was" >&5
27170 cat conftest.s >&5
27172 rm -f conftest.o conftest.s
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27176 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27177 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27178 if test x$target_cpu_default = x
27179 then target_cpu_default=MASK_EXPLICIT_RELOCS
27180 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27186 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27187 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27188 $as_echo_n "(cached) " >&6
27189 else
27190 gcc_cv_as_mips_no_shared=no
27191 if test $in_tree_gas = yes; then
27192 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27193 then gcc_cv_as_mips_no_shared=yes
27195 elif test x$gcc_cv_as != x; then
27196 $as_echo 'nop' > conftest.s
27197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27202 test $ac_status = 0; }; }
27203 then
27204 gcc_cv_as_mips_no_shared=yes
27205 else
27206 echo "configure: failed program was" >&5
27207 cat conftest.s >&5
27209 rm -f conftest.o conftest.s
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27213 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27214 if test $gcc_cv_as_mips_no_shared = yes; then
27216 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27222 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27223 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27224 $as_echo_n "(cached) " >&6
27225 else
27226 gcc_cv_as_mips_gnu_attribute=no
27227 if test $in_tree_gas = yes; then
27228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27229 then gcc_cv_as_mips_gnu_attribute=yes
27231 elif test x$gcc_cv_as != x; then
27232 $as_echo '.gnu_attribute 4,1' > conftest.s
27233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27236 ac_status=$?
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; }
27239 then
27240 gcc_cv_as_mips_gnu_attribute=yes
27241 else
27242 echo "configure: failed program was" >&5
27243 cat conftest.s >&5
27245 rm -f conftest.o conftest.s
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27249 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27250 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27252 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27258 $as_echo_n "checking assembler for .module support... " >&6; }
27259 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27260 $as_echo_n "(cached) " >&6
27261 else
27262 gcc_cv_as_mips_dot_module=no
27263 if test x$gcc_cv_as != x; then
27264 $as_echo '.module mips2
27265 .module fp=xx' > conftest.s
27266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27268 (eval $ac_try) 2>&5
27269 ac_status=$?
27270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27271 test $ac_status = 0; }; }
27272 then
27273 gcc_cv_as_mips_dot_module=yes
27274 else
27275 echo "configure: failed program was" >&5
27276 cat conftest.s >&5
27278 rm -f conftest.o conftest.s
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27282 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27283 if test $gcc_cv_as_mips_dot_module = yes; then
27285 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27289 if test x$gcc_cv_as_mips_dot_module = xno \
27290 && test x$with_fp_32 != x; then
27291 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27295 $as_echo_n "checking assembler for .micromips support... " >&6; }
27296 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27297 $as_echo_n "(cached) " >&6
27298 else
27299 gcc_cv_as_micromips_support=no
27300 if test x$gcc_cv_as != x; then
27301 $as_echo '.set micromips' > conftest.s
27302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27304 (eval $ac_try) 2>&5
27305 ac_status=$?
27306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307 test $ac_status = 0; }; }
27308 then
27309 gcc_cv_as_micromips_support=yes
27310 else
27311 echo "configure: failed program was" >&5
27312 cat conftest.s >&5
27314 rm -f conftest.o conftest.s
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27318 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27319 if test $gcc_cv_as_micromips_support = yes; then
27321 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27327 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27328 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27329 $as_echo_n "(cached) " >&6
27330 else
27331 gcc_cv_as_mips_dtprelword=no
27332 if test $in_tree_gas = yes; then
27333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27334 then gcc_cv_as_mips_dtprelword=yes
27336 elif test x$gcc_cv_as != x; then
27337 $as_echo '.section .tdata,"awT",@progbits
27339 .word 2
27340 .text
27341 .dtprelword x+0x8000' > conftest.s
27342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27344 (eval $ac_try) 2>&5
27345 ac_status=$?
27346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27347 test $ac_status = 0; }; }
27348 then
27349 gcc_cv_as_mips_dtprelword=yes
27350 else
27351 echo "configure: failed program was" >&5
27352 cat conftest.s >&5
27354 rm -f conftest.o conftest.s
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27358 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27359 if test $gcc_cv_as_mips_dtprelword = yes; then
27361 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27367 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27368 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27369 $as_echo_n "(cached) " >&6
27370 else
27371 gcc_cv_as_mips_dspr1_mult=no
27372 if test x$gcc_cv_as != x; then
27373 $as_echo ' .set mips32r2
27374 .set nodspr2
27375 .set dsp
27376 madd $ac3,$4,$5
27377 maddu $ac3,$4,$5
27378 msub $ac3,$4,$5
27379 msubu $ac3,$4,$5
27380 mult $ac3,$4,$5
27381 multu $ac3,$4,$5' > conftest.s
27382 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27384 (eval $ac_try) 2>&5
27385 ac_status=$?
27386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27387 test $ac_status = 0; }; }
27388 then
27389 gcc_cv_as_mips_dspr1_mult=yes
27390 else
27391 echo "configure: failed program was" >&5
27392 cat conftest.s >&5
27394 rm -f conftest.o conftest.s
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27398 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27399 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27401 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27407 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27408 gcc_cv_as_ld_jalr_reloc=no
27409 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27410 if test $in_tree_ld = yes ; then
27411 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 \
27412 && test $in_tree_ld_is_elf = yes; then
27413 gcc_cv_as_ld_jalr_reloc=yes
27415 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27416 echo ' .ent x' > conftest.s
27417 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27418 echo ' lw $25,%call16(y)($28)' >> conftest.s
27419 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27420 echo '1: jalr $25' >> conftest.s
27421 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27422 echo '1: jalr $25' >> conftest.s
27423 echo ' .end x' >> conftest.s
27424 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27425 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27426 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27427 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27428 gcc_cv_as_ld_jalr_reloc=yes
27431 rm -f conftest.*
27434 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27435 if test x$target_cpu_default = x; then
27436 target_cpu_default=MASK_RELAX_PIC_CALLS
27437 else
27438 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27442 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27445 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27446 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27447 $as_echo_n "(cached) " >&6
27448 else
27449 gcc_cv_ld_mips_personality_relaxation=no
27450 if test $in_tree_ld = yes ; then
27451 if test "$gcc_cv_gld_major_version" -eq 2 \
27452 -a "$gcc_cv_gld_minor_version" -ge 21 \
27453 -o "$gcc_cv_gld_major_version" -gt 2; then
27454 gcc_cv_ld_mips_personality_relaxation=yes
27456 elif test x$gcc_cv_as != x \
27457 -a x$gcc_cv_ld != x \
27458 -a x$gcc_cv_readelf != x ; then
27459 cat > conftest.s <<EOF
27460 .cfi_startproc
27461 .cfi_personality 0x80,indirect_ptr
27462 .ent test
27463 test:
27465 .end test
27466 .cfi_endproc
27468 .section .data,"aw",@progbits
27469 indirect_ptr:
27470 .dc.a personality
27472 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27473 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27474 if $gcc_cv_readelf -d conftest 2>&1 \
27475 | grep TEXTREL > /dev/null 2>&1; then
27477 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27478 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27480 else
27481 gcc_cv_ld_mips_personality_relaxation=yes
27485 rm -f conftest.s conftest.o conftest
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27488 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27489 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27491 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27496 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27497 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27498 $as_echo_n "(cached) " >&6
27499 else
27500 gcc_cv_as_mips_nan=no
27501 if test x$gcc_cv_as != x; then
27502 $as_echo '' > conftest.s
27503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27505 (eval $ac_try) 2>&5
27506 ac_status=$?
27507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27508 test $ac_status = 0; }; }
27509 then
27510 gcc_cv_as_mips_nan=yes
27511 else
27512 echo "configure: failed program was" >&5
27513 cat conftest.s >&5
27515 rm -f conftest.o conftest.s
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27519 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27520 if test $gcc_cv_as_mips_nan = yes; then
27522 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27526 if test x$gcc_cv_as_mips_nan = xno \
27527 && test x$with_nan != x; then
27528 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27531 s390*-*-*)
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27533 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27534 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27535 $as_echo_n "(cached) " >&6
27536 else
27537 gcc_cv_as_s390_gnu_attribute=no
27538 if test $in_tree_gas = yes; then
27539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27540 then gcc_cv_as_s390_gnu_attribute=yes
27542 elif test x$gcc_cv_as != x; then
27543 $as_echo '.gnu_attribute 8,1' > conftest.s
27544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27546 (eval $ac_try) 2>&5
27547 ac_status=$?
27548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27549 test $ac_status = 0; }; }
27550 then
27551 gcc_cv_as_s390_gnu_attribute=yes
27552 else
27553 echo "configure: failed program was" >&5
27554 cat conftest.s >&5
27556 rm -f conftest.o conftest.s
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27560 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27561 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27563 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27568 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27569 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27570 $as_echo_n "(cached) " >&6
27571 else
27572 gcc_cv_as_s390_machine_machinemode=no
27573 if test $in_tree_gas = yes; then
27574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27575 then gcc_cv_as_s390_machine_machinemode=yes
27577 elif test x$gcc_cv_as != x; then
27578 $as_echo ' .machinemode push
27579 .machinemode pop
27580 .machine push
27581 .machine pop' > conftest.s
27582 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27584 (eval $ac_try) 2>&5
27585 ac_status=$?
27586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27587 test $ac_status = 0; }; }
27588 then
27589 gcc_cv_as_s390_machine_machinemode=yes
27590 else
27591 echo "configure: failed program was" >&5
27592 cat conftest.s >&5
27594 rm -f conftest.o conftest.s
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27598 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27599 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27601 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27606 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27607 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27608 $as_echo_n "(cached) " >&6
27609 else
27610 gcc_cv_as_s390_architecture_modifiers=no
27611 if test $in_tree_gas = yes; then
27612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27613 then gcc_cv_as_s390_architecture_modifiers=yes
27615 elif test x$gcc_cv_as != x; then
27616 $as_echo ' .machine z13+vx ' > conftest.s
27617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27622 test $ac_status = 0; }; }
27623 then
27624 gcc_cv_as_s390_architecture_modifiers=yes
27625 else
27626 echo "configure: failed program was" >&5
27627 cat conftest.s >&5
27629 rm -f conftest.o conftest.s
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27633 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27634 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27636 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27641 esac
27643 # Mips and HP-UX need the GNU assembler.
27644 # Linux on IA64 might be able to use the Intel assembler.
27646 case "$target" in
27647 mips*-*-* | *-*-hpux* )
27648 if test x$gas_flag = xyes \
27649 || test x"$host" != x"$build" \
27650 || test ! -x "$gcc_cv_as" \
27651 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27653 else
27654 echo "*** This configuration requires the GNU assembler" >&2
27655 exit 1
27658 esac
27660 # ??? Not all targets support dwarf2 debug_line, even within a version
27661 # of gas. Moreover, we need to emit a valid instruction to trigger any
27662 # info to the output file. So, as supported targets are added to gas 2.11,
27663 # add some instruction here to (also) show we expect this might work.
27664 # ??? Once 2.11 is released, probably need to add first known working
27665 # version to the per-target configury.
27666 case "$cpu_type" in
27667 aarch64 | alpha | arc | arm | avr | bfin | cris | i386 | m32c | m68k \
27668 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27669 | tilegx | tilepro | visium | xstormy16 | xtensa)
27670 insn="nop"
27672 ia64 | s390)
27673 insn="nop 0"
27675 mmix)
27676 insn="swym 0"
27678 esac
27679 if test x"$insn" != x; then
27680 conftest_s="\
27681 .file 1 \"conftest.s\"
27682 .loc 1 3 0
27683 $insn"
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27685 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27686 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27687 $as_echo_n "(cached) " >&6
27688 else
27689 gcc_cv_as_dwarf2_debug_line=no
27690 if test $in_tree_gas = yes; then
27691 if test $in_tree_gas_is_elf = yes \
27692 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27693 then gcc_cv_as_dwarf2_debug_line=yes
27695 elif test x$gcc_cv_as != x; then
27696 $as_echo "$conftest_s" > conftest.s
27697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27699 (eval $ac_try) 2>&5
27700 ac_status=$?
27701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27702 test $ac_status = 0; }; }
27703 then
27704 if test x$gcc_cv_objdump != x \
27705 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27706 | grep debug_line > /dev/null 2>&1; then
27707 gcc_cv_as_dwarf2_debug_line=yes
27709 else
27710 echo "configure: failed program was" >&5
27711 cat conftest.s >&5
27713 rm -f conftest.o conftest.s
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27717 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27721 # The .debug_line file table must be in the exact order that
27722 # we specified the files, since these indices are also used
27723 # by DW_AT_decl_file. Approximate this test by testing if
27724 # the assembler bitches if the same index is assigned twice.
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27726 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27727 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27728 $as_echo_n "(cached) " >&6
27729 else
27730 gcc_cv_as_dwarf2_file_buggy=no
27731 if test x$gcc_cv_as != x; then
27732 $as_echo ' .file 1 "foo.s"
27733 .file 1 "bar.s"' > conftest.s
27734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27736 (eval $ac_try) 2>&5
27737 ac_status=$?
27738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27739 test $ac_status = 0; }; }
27740 then
27741 gcc_cv_as_dwarf2_file_buggy=yes
27742 else
27743 echo "configure: failed program was" >&5
27744 cat conftest.s >&5
27746 rm -f conftest.o conftest.s
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27750 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27754 if test $gcc_cv_as_dwarf2_debug_line = yes \
27755 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27757 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27762 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27763 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27764 $as_echo_n "(cached) " >&6
27765 else
27766 gcc_cv_as_gdwarf2_flag=no
27767 if test $in_tree_gas = yes; then
27768 if test $in_tree_gas_is_elf = yes \
27769 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27770 then gcc_cv_as_gdwarf2_flag=yes
27772 elif test x$gcc_cv_as != x; then
27773 $as_echo "$insn" > conftest.s
27774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27776 (eval $ac_try) 2>&5
27777 ac_status=$?
27778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27779 test $ac_status = 0; }; }
27780 then
27781 gcc_cv_as_gdwarf2_flag=yes
27782 else
27783 echo "configure: failed program was" >&5
27784 cat conftest.s >&5
27786 rm -f conftest.o conftest.s
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27790 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27791 if test $gcc_cv_as_gdwarf2_flag = yes; then
27793 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27799 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27800 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27801 $as_echo_n "(cached) " >&6
27802 else
27803 gcc_cv_as_gstabs_flag=no
27804 if test $in_tree_gas = yes; then
27805 if test $in_tree_gas_is_elf = yes \
27806 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27807 then gcc_cv_as_gstabs_flag=yes
27809 elif test x$gcc_cv_as != x; then
27810 $as_echo "$insn" > conftest.s
27811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27813 (eval $ac_try) 2>&5
27814 ac_status=$?
27815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27816 test $ac_status = 0; }; }
27817 then
27818 gcc_cv_as_gstabs_flag=yes
27819 else
27820 echo "configure: failed program was" >&5
27821 cat conftest.s >&5
27823 rm -f conftest.o conftest.s
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27827 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27828 if test $gcc_cv_as_gstabs_flag = yes; then
27830 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27836 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27837 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27838 $as_echo_n "(cached) " >&6
27839 else
27840 gcc_cv_as_debug_prefix_map_flag=no
27841 if test $in_tree_gas = yes; then
27842 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27843 then gcc_cv_as_debug_prefix_map_flag=yes
27845 elif test x$gcc_cv_as != x; then
27846 $as_echo "$insn" > conftest.s
27847 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27849 (eval $ac_try) 2>&5
27850 ac_status=$?
27851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27852 test $ac_status = 0; }; }
27853 then
27854 gcc_cv_as_debug_prefix_map_flag=yes
27855 else
27856 echo "configure: failed program was" >&5
27857 cat conftest.s >&5
27859 rm -f conftest.o conftest.s
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27863 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27864 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27866 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27873 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27874 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27875 $as_echo_n "(cached) " >&6
27876 else
27877 gcc_cv_as_compress_debug=no
27878 if test x$gcc_cv_as != x; then
27879 $as_echo '' > conftest.s
27880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27882 (eval $ac_try) 2>&5
27883 ac_status=$?
27884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27885 test $ac_status = 0; }; }
27886 then
27887 # gas compiled without zlib cannot compress debug sections and warns
27888 # about it, but still exits successfully. So check for this, too.
27889 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27890 then
27891 gcc_cv_as_compress_debug=0
27892 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27893 # defaulting to the ELF gABI format.
27894 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27895 then
27896 gcc_cv_as_compress_debug=2
27897 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27898 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27899 # Before binutils 2.26, gas only supported --compress-debug-options and
27900 # emitted the traditional GNU format.
27901 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27902 then
27903 gcc_cv_as_compress_debug=1
27904 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27905 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27906 else
27907 gcc_cv_as_compress_debug=0
27909 else
27910 echo "configure: failed program was" >&5
27911 cat conftest.s >&5
27913 rm -f conftest.o conftest.s
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27917 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27921 cat >>confdefs.h <<_ACEOF
27922 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27923 _ACEOF
27926 cat >>confdefs.h <<_ACEOF
27927 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27928 _ACEOF
27931 cat >>confdefs.h <<_ACEOF
27932 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27933 _ACEOF
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27937 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27938 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27939 $as_echo_n "(cached) " >&6
27940 else
27941 gcc_cv_as_lcomm_with_alignment=no
27942 if test x$gcc_cv_as != x; then
27943 $as_echo '.lcomm bar,4,16' > conftest.s
27944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27946 (eval $ac_try) 2>&5
27947 ac_status=$?
27948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27949 test $ac_status = 0; }; }
27950 then
27951 gcc_cv_as_lcomm_with_alignment=yes
27952 else
27953 echo "configure: failed program was" >&5
27954 cat conftest.s >&5
27956 rm -f conftest.o conftest.s
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27960 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27961 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27963 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27968 if test x$with_sysroot = x && test x$host = x$target \
27969 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27970 && test "$prefix" != "NONE"; then
27972 cat >>confdefs.h <<_ACEOF
27973 #define PREFIX_INCLUDE_DIR "$prefix/include"
27974 _ACEOF
27978 # Determine the version of glibc, if any, used on the target.
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27980 $as_echo_n "checking for target glibc version... " >&6; }
27982 # Check whether --with-glibc-version was given.
27983 if test "${with_glibc_version+set}" = set; then :
27984 withval=$with_glibc_version;
27985 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27986 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27987 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27988 else
27989 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27991 else
27993 glibc_version_major=0
27994 glibc_version_minor=0
27995 if test -f $target_header_dir/features.h \
27996 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27997 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27998 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27999 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28004 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28006 cat >>confdefs.h <<_ACEOF
28007 #define TARGET_GLIBC_MAJOR $glibc_version_major
28008 _ACEOF
28011 cat >>confdefs.h <<_ACEOF
28012 #define TARGET_GLIBC_MINOR $glibc_version_minor
28013 _ACEOF
28016 # Check whether --enable-gnu-unique-object was given.
28017 if test "${enable_gnu_unique_object+set}" = set; then :
28018 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28019 yes | no) ;;
28020 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28021 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28022 esac
28023 else
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28025 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28026 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
28027 $as_echo_n "(cached) " >&6
28028 else
28029 gcc_cv_as_gnu_unique_object=no
28030 if test $in_tree_gas = yes; then
28031 if test $in_tree_gas_is_elf = yes \
28032 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28033 then gcc_cv_as_gnu_unique_object=yes
28035 elif test x$gcc_cv_as != x; then
28036 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28037 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28039 (eval $ac_try) 2>&5
28040 ac_status=$?
28041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28042 test $ac_status = 0; }; }
28043 then
28044 gcc_cv_as_gnu_unique_object=yes
28045 else
28046 echo "configure: failed program was" >&5
28047 cat conftest.s >&5
28049 rm -f conftest.o conftest.s
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28053 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28054 if test $gcc_cv_as_gnu_unique_object = yes; then
28055 # We need to unquote above to to use the definition from config.gcc.
28056 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28058 if test $glibc_version_major -gt 2 \
28059 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28060 enable_gnu_unique_object=yes
28067 if test x$enable_gnu_unique_object = xyes; then
28069 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28074 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28075 if test "${gcc_cv_as_line_zero+set}" = set; then :
28076 $as_echo_n "(cached) " >&6
28077 else
28078 gcc_cv_as_line_zero=no
28079 if test $in_tree_gas = yes; then
28080 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28081 then gcc_cv_as_line_zero=yes
28083 elif test "x$gcc_cv_as" != x; then
28084 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28085 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28087 (eval $ac_try) 2>&5
28088 ac_status=$?
28089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28090 test $ac_status = 0; }; } &&
28091 test "x`cat conftest.out`" = x
28092 then
28093 gcc_cv_as_line_zero=yes
28094 else
28095 echo "configure: failed program was" >&5
28096 cat conftest.s >&5
28097 echo "configure: error output was" >&5
28098 cat conftest.out >&5
28100 rm -f conftest.o conftest.s conftest.out
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28104 $as_echo "$gcc_cv_as_line_zero" >&6; }
28105 if test "x$gcc_cv_as_line_zero" = xyes; then
28107 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28112 $as_echo_n "checking support for thin archives... " >&6; }
28113 thin_archive_support=no
28114 echo 'int main (void) { return 0; }' > conftest.c
28115 if ($AR --version | sed 1q | grep "GNU ar" \
28116 && $CC $CFLAGS -c conftest.c \
28117 && $AR rcT conftest.a conftest.o \
28118 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28119 thin_archive_support=yes
28121 rm -f conftest.c conftest.o conftest.a conftest
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28123 $as_echo "$thin_archive_support" >&6; }
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28127 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28128 gcc_cv_ld_eh_frame_hdr=no
28129 if test $in_tree_ld = yes ; then
28130 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 \
28131 && test $in_tree_ld_is_elf = yes; then
28132 gcc_cv_ld_eh_frame_hdr=yes
28134 elif test x$gcc_cv_ld != x; then
28135 if echo "$ld_ver" | grep GNU > /dev/null; then
28136 # Check if linker supports --eh-frame-hdr option
28137 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28138 gcc_cv_ld_eh_frame_hdr=yes
28140 else
28141 case "$target" in
28142 *-*-solaris2*)
28143 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28144 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28145 gcc_cv_ld_eh_frame_hdr=yes
28148 esac
28152 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28154 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28158 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28161 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28162 gcc_cv_ld_eh_frame_ciev3=no
28163 if test $in_tree_ld = yes ; then
28164 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 \
28165 && test $in_tree_ld_is_elf = yes; then
28166 gcc_cv_ld_eh_frame_ciev3=yes
28168 elif test x$gcc_cv_ld != x; then
28169 if echo "$ld_ver" | grep GNU > /dev/null; then
28170 gcc_cv_ld_eh_frame_ciev3=yes
28171 if test 0"$ld_date" -lt 20040513; then
28172 if test -n "$ld_date"; then
28173 # If there was date string, but was earlier than 2004-05-13, fail
28174 gcc_cv_ld_eh_frame_ciev3=no
28175 elif test "$ld_vers_major" -lt 2; then
28176 gcc_cv_ld_eh_frame_ciev3=no
28177 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28178 gcc_cv_ld_eh_frame_ciev3=no
28181 else
28182 case "$target" in
28183 *-*-solaris2*)
28184 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28185 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28186 gcc_cv_ld_eh_frame_ciev3=yes
28189 esac
28193 cat >>confdefs.h <<_ACEOF
28194 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28195 _ACEOF
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28198 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28201 $as_echo_n "checking linker position independent executable support... " >&6; }
28202 gcc_cv_ld_pie=no
28203 if test $in_tree_ld = yes ; then
28204 case "$target" in
28205 # Full PIE support on Solaris was only introduced in gld 2.26.
28206 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28207 *) gcc_gld_pie_min_version=15 ;;
28208 esac
28209 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 \
28210 && test $in_tree_ld_is_elf = yes; then
28211 gcc_cv_ld_pie=yes
28213 elif test x$gcc_cv_ld != x; then
28214 # Check if linker supports -pie option
28215 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28216 gcc_cv_ld_pie=yes
28217 case "$target" in
28218 *-*-solaris2*)
28219 if echo "$ld_ver" | grep GNU > /dev/null \
28220 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28221 gcc_cv_ld_pie=no
28224 esac
28225 else
28226 case "$target" in
28227 *-*-solaris2.1[1-9]*)
28228 # Solaris 11.x and Solaris 12 added PIE support.
28229 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28230 gcc_cv_ld_pie=yes
28233 esac
28236 if test x"$gcc_cv_ld_pie" = xyes; then
28238 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28242 $as_echo "$gcc_cv_ld_pie" >&6; }
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28245 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28246 gcc_cv_ld_pie_copyreloc=no
28247 if test $gcc_cv_ld_pie = yes ; then
28248 if test $in_tree_ld = yes ; then
28249 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
28250 gcc_cv_ld_pie_copyreloc=yes
28252 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28253 # Check if linker supports -pie option with copy reloc
28254 case "$target" in
28255 i?86-*-linux* | x86_64-*-linux*)
28256 cat > conftest1.s <<EOF
28257 .globl a_glob
28258 .data
28259 .type a_glob, @object
28260 .size a_glob, 4
28261 a_glob:
28262 .long 2
28264 cat > conftest2.s <<EOF
28265 .text
28266 .globl main
28267 .type main, @function
28268 main:
28269 movl %eax, a_glob(%rip)
28270 .size main, .-main
28271 .globl ptr
28272 .section .data.rel,"aw",@progbits
28273 .type ptr, @object
28274 ptr:
28275 .quad a_glob
28277 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28278 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28279 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28280 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28281 gcc_cv_ld_pie_copyreloc=yes
28283 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28285 esac
28289 cat >>confdefs.h <<_ACEOF
28290 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28291 _ACEOF
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28294 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28297 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28298 gcc_cv_ld_eh_gc_sections=no
28299 if test $in_tree_ld = yes ; then
28300 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 \
28301 && test $in_tree_ld_is_elf = yes; then
28302 gcc_cv_ld_eh_gc_sections=yes
28304 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28305 cat > conftest.s <<EOF
28306 .section .text
28307 .globl _start
28308 .type _start, @function
28309 _start:
28310 .long foo
28311 .size _start, .-_start
28312 .section .text.foo,"ax",@progbits
28313 .type foo, @function
28314 foo:
28315 .long 0
28316 .size foo, .-foo
28317 .section .gcc_except_table.foo,"a",@progbits
28318 .L0:
28319 .long 0
28320 .section .eh_frame,"a",@progbits
28321 .long .L0
28323 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28324 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28325 | grep "gc-sections option ignored" > /dev/null; then
28326 gcc_cv_ld_eh_gc_sections=no
28327 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28328 | grep gcc_except_table > /dev/null; then
28329 gcc_cv_ld_eh_gc_sections=yes
28330 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28331 if test x$gcc_cv_as_comdat_group != xyes; then
28332 gcc_cv_ld_eh_gc_sections=no
28333 cat > conftest.s <<EOF
28334 .section .text
28335 .globl _start
28336 .type _start, @function
28337 _start:
28338 .long foo
28339 .size _start, .-_start
28340 .section .gnu.linkonce.t.foo,"ax",@progbits
28341 .type foo, @function
28342 foo:
28343 .long 0
28344 .size foo, .-foo
28345 .section .gcc_except_table.foo,"a",@progbits
28346 .L0:
28347 .long 0
28348 .section .eh_frame,"a",@progbits
28349 .long .L0
28351 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28352 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28353 | grep "gc-sections option ignored" > /dev/null; then
28354 gcc_cv_ld_eh_gc_sections=no
28355 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28356 | grep gcc_except_table > /dev/null; then
28357 gcc_cv_ld_eh_gc_sections=yes
28363 rm -f conftest.s conftest.o conftest
28365 case "$target" in
28366 hppa*-*-linux*)
28367 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28368 gcc_cv_ld_eh_gc_sections=no
28370 esac
28371 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28373 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28377 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28380 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28381 gcc_cv_ld_eh_gc_sections_bug=no
28382 if test $in_tree_ld = yes ; then
28383 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 \
28384 && test $in_tree_ld_is_elf = yes; then
28385 gcc_cv_ld_eh_gc_sections_bug=yes
28387 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
28388 gcc_cv_ld_eh_gc_sections_bug=yes
28389 cat > conftest.s <<EOF
28390 .section .text
28391 .globl _start
28392 .type _start, @function
28393 _start:
28394 .long foo
28395 .size _start, .-_start
28396 .section .text.startup.foo,"ax",@progbits
28397 .type foo, @function
28398 foo:
28399 .long 0
28400 .size foo, .-foo
28401 .section .gcc_except_table.foo,"a",@progbits
28402 .L0:
28403 .long 0
28404 .section .eh_frame,"a",@progbits
28405 .long .L0
28407 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28408 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28409 | grep "gc-sections option ignored" > /dev/null; then
28411 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28412 | grep gcc_except_table > /dev/null; then
28413 gcc_cv_ld_eh_gc_sections_bug=no
28416 rm -f conftest.s conftest.o conftest
28418 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28420 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28424 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28427 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28428 # gold/gld support compressed debug sections since binutils 2.19/2.21
28429 # In binutils 2.26, gld gained support for the ELF gABI format.
28430 if test $in_tree_ld = yes ; then
28431 gcc_cv_ld_compress_debug=0
28432 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 \
28433 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28434 gcc_cv_ld_compress_debug=2
28435 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28436 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28437 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28438 gcc_cv_ld_compress_debug=3
28439 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28440 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 \
28441 && test $in_tree_ld_is_elf = yes; then
28442 gcc_cv_ld_compress_debug=1
28444 elif echo "$ld_ver" | grep GNU > /dev/null; then
28445 if test "$ld_vers_major" -lt 2 \
28446 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28447 gcc_cv_ld_compress_debug=0
28448 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28449 gcc_cv_ld_compress_debug=1
28450 else
28451 gcc_cv_ld_compress_debug=3
28452 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28454 if test $ld_is_gold = yes; then
28455 gcc_cv_ld_compress_debug=2
28456 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28458 else
28459 case "${target}" in
28460 *-*-solaris2*)
28461 # Introduced in Solaris 11.2.
28462 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28463 gcc_cv_ld_compress_debug=3
28464 gcc_cv_ld_compress_debug_option="-z compress-sections"
28465 else
28466 gcc_cv_ld_compress_debug=0
28470 # Assume linkers other than GNU ld don't support compessed debug
28471 # sections.
28472 gcc_cv_ld_compress_debug=0
28474 esac
28477 cat >>confdefs.h <<_ACEOF
28478 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28479 _ACEOF
28482 cat >>confdefs.h <<_ACEOF
28483 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28484 _ACEOF
28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28487 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28489 if test x"$ld64_flag" = x"yes"; then
28491 # Set defaults for possibly untestable items.
28492 gcc_cv_ld64_export_dynamic=0
28494 if test "$build" = "$host"; then
28495 darwin_try_test=1
28496 else
28497 darwin_try_test=0
28500 # On Darwin, because of FAT library support, it is often possible to execute
28501 # exes from compatible archs even when the host differs from the build system.
28502 case "$build","$host" in
28503 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28504 darwin_try_test=1;;
28505 *) ;;
28506 esac
28508 # If the configurer specified a minimum ld64 version to be supported, then use
28509 # that to determine feature support.
28510 if test x"${gcc_cv_ld64_version}" != x; then
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28512 $as_echo_n "checking ld64 specified version... " >&6; }
28513 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28515 $as_echo "$gcc_cv_ld64_major" >&6; }
28516 if test "$gcc_cv_ld64_major" -ge 236; then
28517 gcc_cv_ld64_export_dynamic=1
28519 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28520 # If the version was not specified, try to find it.
28521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28522 $as_echo_n "checking linker version... " >&6; }
28523 if test x"${gcc_cv_ld64_version}" = x; then
28524 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28527 $as_echo "$gcc_cv_ld64_version" >&6; }
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28530 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28531 gcc_cv_ld64_export_dynamic=1
28532 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28533 gcc_cv_ld64_export_dynamic=0
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28536 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28539 if test x"${gcc_cv_ld64_version}" != x; then
28541 cat >>confdefs.h <<_ACEOF
28542 #define LD64_VERSION "${gcc_cv_ld64_version}"
28543 _ACEOF
28548 cat >>confdefs.h <<_ACEOF
28549 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28550 _ACEOF
28554 # --------
28555 # UNSORTED
28556 # --------
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28559 $as_echo_n "checking linker --as-needed support... " >&6; }
28560 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28561 $as_echo_n "(cached) " >&6
28562 else
28563 gcc_cv_ld_as_needed=no
28564 gcc_cv_ld_as_needed_option='--as-needed'
28565 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28566 if test $in_tree_ld = yes ; then
28567 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 \
28568 && test $in_tree_ld_is_elf = yes; then
28569 gcc_cv_ld_as_needed=yes
28571 elif test x$gcc_cv_ld != x; then
28572 # Check if linker supports --as-needed and --no-as-needed options
28573 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28574 gcc_cv_ld_as_needed=yes
28576 case "$target:$gnu_ld" in
28577 *-*-solaris2*:no)
28578 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28579 # forms.
28580 gcc_cv_ld_as_needed=yes
28581 gcc_cv_ld_as_needed_option="-z ignore"
28582 gcc_cv_ld_no_as_needed_option="-z record"
28584 esac
28586 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28587 # dl_iterate_phdr, i.e. since Solaris 11.
28588 case "$target" in
28589 *-*-solaris2.1[1-9]*)
28590 case "$target" in
28591 i?86-*-* | x86_64-*-*)
28592 if echo "$ld_ver" | grep GNU > /dev/null; then
28593 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28594 gcc_cv_ld_as_needed=no
28597 esac
28599 *-*-solaris2*)
28600 gcc_cv_ld_as_needed=no
28602 esac
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28606 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28607 if test x"$gcc_cv_ld_as_needed" = xyes; then
28609 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28612 cat >>confdefs.h <<_ACEOF
28613 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28614 _ACEOF
28617 cat >>confdefs.h <<_ACEOF
28618 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28619 _ACEOF
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28624 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28625 saved_LDFLAGS="$LDFLAGS"
28626 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28627 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28629 /* end confdefs.h. */
28630 int main(void) {return 0;}
28631 _ACEOF
28632 if ac_fn_cxx_try_link "$LINENO"; then :
28633 gcc_cv_ld_clearcap=yes; break
28634 else
28635 gcc_cv_ld_clearcap=no
28637 rm -f core conftest.err conftest.$ac_objext \
28638 conftest$ac_exeext conftest.$ac_ext
28639 done
28640 LDFLAGS="$saved_LDFLAGS"
28641 if test "x$gcc_cv_ld_clearcap" = xyes; then
28643 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28645 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28649 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28651 case "$target" in
28652 powerpc*-*-*)
28653 case "$target" in
28654 *le-*-linux*)
28655 emul_name="-melf32lppc"
28658 emul_name="-melf32ppc"
28660 esac
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28662 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28663 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28664 $as_echo_n "(cached) " >&6
28665 else
28666 gcc_cv_ld_ppc_attr=no
28667 if test x"$ld_is_gold" = xyes; then
28668 gcc_cv_ld_ppc_attr=yes
28669 elif test $in_tree_ld = yes ; then
28670 if test "$gcc_cv_gld_major_version" -eq 2 \
28671 -a "$gcc_cv_gld_minor_version" -ge 28 \
28672 -o "$gcc_cv_gld_major_version" -gt 2; then
28673 gcc_cv_ld_ppc_attr=yes
28675 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28676 # check that merging the long double .gnu_attribute doesn't warn
28677 cat > conftest1.s <<EOF
28678 .gnu_attribute 4,1
28680 cat > conftest2.s <<EOF
28681 .gnu_attribute 4,9
28683 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28684 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28685 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28686 && test ! -s conftest.err; then
28687 gcc_cv_ld_ppc_attr=yes
28689 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28694 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28695 if test x$gcc_cv_ld_ppc_attr = xyes; then
28697 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28701 esac
28703 case "$target:$tm_file" in
28704 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28705 case "$target" in
28706 *le-*-linux*)
28707 emul_name="-melf64lppc"
28709 *-*-linux*)
28710 emul_name="-melf64ppc"
28712 *-*-freebsd*)
28713 emul_name="-melf64ppc_fbsd"
28715 esac
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28717 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28718 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28719 $as_echo_n "(cached) " >&6
28720 else
28721 gcc_cv_ld_no_dot_syms=no
28722 if test x"$ld_is_gold" = xyes; then
28723 gcc_cv_ld_no_dot_syms=yes
28724 elif test $in_tree_ld = yes ; then
28725 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
28726 gcc_cv_ld_no_dot_syms=yes
28728 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28729 cat > conftest1.s <<EOF
28730 .text
28731 bl .foo
28733 cat > conftest2.s <<EOF
28734 .section ".opd","aw"
28735 .align 3
28736 .globl foo
28737 .type foo,@function
28738 foo:
28739 .quad .LEfoo,.TOC.@tocbase,0
28740 .text
28741 .LEfoo:
28743 .size foo,.-.LEfoo
28745 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28746 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28747 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28748 gcc_cv_ld_no_dot_syms=yes
28750 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28755 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28756 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28758 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28763 $as_echo_n "checking linker large toc support... " >&6; }
28764 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28765 $as_echo_n "(cached) " >&6
28766 else
28767 gcc_cv_ld_large_toc=no
28768 if test x"$ld_is_gold" = xyes; then
28769 gcc_cv_ld_large_toc=yes
28770 elif test $in_tree_ld = yes ; then
28771 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
28772 gcc_cv_ld_large_toc=yes
28774 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28775 cat > conftest.s <<EOF
28776 .section ".tbss","awT",@nobits
28777 .align 3
28778 ie0: .space 8
28779 .global _start
28780 .text
28781 _start:
28782 addis 9,13,ie0@got@tprel@ha
28783 ld 9,ie0@got@tprel@l(9)
28785 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28786 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28787 gcc_cv_ld_large_toc=yes
28789 rm -f conftest conftest.o conftest.s
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28794 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28795 if test x"$gcc_cv_ld_large_toc" = xyes; then
28797 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28802 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28803 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28804 $as_echo_n "(cached) " >&6
28805 else
28806 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28807 cat > conftest.s <<EOF
28808 .global _start
28809 .text
28810 _start:
28811 addis 9,2,x@got@ha
28812 .section .data.rel.ro,"aw",@progbits
28813 .p2align 16
28814 .space 32768
28815 x: .quad .TOC.
28817 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28818 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28819 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)) }'`
28821 rm -f conftest conftest.o conftest.s
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28826 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28827 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28829 cat >>confdefs.h <<_ACEOF
28830 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28831 _ACEOF
28835 esac
28837 case "$target" in
28838 *-*-aix*)
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28840 $as_echo_n "checking linker large toc support... " >&6; }
28841 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28842 $as_echo_n "(cached) " >&6
28843 else
28844 gcc_cv_ld_large_toc=no
28845 if test x$gcc_cv_as != x ; then
28846 cat > conftest.s <<EOF
28847 .toc
28848 LC..1:
28849 .tc a[TC],a[RW]
28850 .extern a[RW]
28851 .csect .text[PR]
28852 .largetoctest:
28853 addis 9,LC..1@u(2)
28854 ld 3,LC..1@l(9)
28856 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28857 gcc_cv_ld_large_toc=yes
28859 rm -f conftest conftest.o conftest.s
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28864 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28865 if test x"$gcc_cv_ld_large_toc" = xyes; then
28867 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28871 esac
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28874 $as_echo_n "checking linker --build-id support... " >&6; }
28875 if test "${gcc_cv_ld_buildid+set}" = set; then :
28876 $as_echo_n "(cached) " >&6
28877 else
28878 gcc_cv_ld_buildid=no
28879 if test $in_tree_ld = yes ; then
28880 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28881 "$gcc_cv_gld_minor_version" -ge 18 -o \
28882 "$gcc_cv_gld_major_version" -gt 2 \
28883 && test $in_tree_ld_is_elf = yes; then
28884 gcc_cv_ld_buildid=yes
28886 elif test x$gcc_cv_ld != x; then
28887 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28888 gcc_cv_ld_buildid=yes
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28893 $as_echo "$gcc_cv_ld_buildid" >&6; }
28894 if test x"$gcc_cv_ld_buildid" = xyes; then
28896 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28900 # Check whether --enable-linker-build-id was given.
28901 if test "${enable_linker_build_id+set}" = set; then :
28902 enableval=$enable_linker_build_id;
28903 else
28904 enable_linker_build_id=no
28908 if test x"$enable_linker_build_id" = xyes; then
28909 if test x"$gcc_cv_ld_buildid" = xyes; then
28911 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28913 else
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28915 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28919 # In binutils 2.21, GNU ld gained support for new emulations fully
28920 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28922 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28923 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28924 $as_echo_n "(cached) " >&6
28925 else
28926 gcc_cv_ld_sol2_emulation=no
28927 if test $in_tree_ld = yes ; then
28928 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28929 "$gcc_cv_gld_minor_version" -ge 21 -o \
28930 "$gcc_cv_gld_major_version" -gt 2 \
28931 && test $in_tree_ld_is_elf = yes; then
28932 gcc_cv_ld_sol2_emulation=yes
28934 elif test x$gcc_cv_ld != x; then
28935 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28936 grep _sol2 > /dev/null; then
28937 gcc_cv_ld_sol2_emulation=yes
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28942 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28943 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28945 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28950 $as_echo_n "checking linker --sysroot support... " >&6; }
28951 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28952 $as_echo_n "(cached) " >&6
28953 else
28954 gcc_cv_ld_sysroot=no
28955 if test $in_tree_ld = yes ; then
28956 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
28957 gcc_cv_ld_sysroot=yes
28959 elif test x$gcc_cv_ld != x; then
28960 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28961 gcc_cv_ld_sysroot=yes
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28966 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28967 if test x"$gcc_cv_ld_sysroot" = xyes; then
28969 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28973 case $target in
28974 *-*-solaris2*)
28975 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28977 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28978 if test "${gcc_cv_solaris_crts+set}" = set; then :
28979 $as_echo_n "(cached) " >&6
28980 else
28981 gcc_cv_solaris_crts=no
28982 if test x$host != x$target; then
28983 if test "x$with_sysroot" = xyes; then
28984 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28985 else
28986 target_sysroot="${with_sysroot}"
28989 target_libdir="$target_sysroot/usr/lib"
28990 # At the time they were added, gcrt1.o became a symlink for backwards
28991 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28992 case $target in
28993 i?86-*-solaris2* | x86_64-*-solaris2*)
28994 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28996 sparc*-*-solaris2*)
28997 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28999 esac
29001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29002 $as_echo "$gcc_cv_solaris_crts" >&6; }
29004 esac
29005 if test x$gcc_cv_solaris_crts = xyes; then
29007 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29011 # Test for stack protector support in target C library.
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29013 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29014 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
29015 $as_echo_n "(cached) " >&6
29016 else
29017 gcc_cv_libc_provides_ssp=no
29018 case "$target" in
29019 *-*-musl*)
29020 # All versions of musl provide stack protector
29021 gcc_cv_libc_provides_ssp=yes;;
29022 *-*-linux* | *-*-kfreebsd*-gnu)
29023 # glibc 2.4 and later provides __stack_chk_fail and
29024 # either __stack_chk_guard, or TLS access to stack guard canary.
29026 if test $glibc_version_major -gt 2 \
29027 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29028 gcc_cv_libc_provides_ssp=yes
29029 else
29031 if test -f $target_header_dir/features.h \
29032 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29033 $target_header_dir/features.h > /dev/null; then
29034 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29035 $target_header_dir/features.h > /dev/null && \
29036 test -f $target_header_dir/bits/uClibc_config.h && \
29037 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29038 $target_header_dir/bits/uClibc_config.h > /dev/null; then
29039 gcc_cv_libc_provides_ssp=yes
29041 # all versions of Bionic support stack protector
29042 elif test -f $target_header_dir/sys/cdefs.h \
29043 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29044 $target_header_dir/sys/cdefs.h > /dev/null; then
29045 gcc_cv_libc_provides_ssp=yes
29049 *-*-gnu*)
29050 # Avoid complicated tests (see
29051 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29052 # simply assert that glibc does provide this, which is true for all
29053 # realistically usable GNU/Hurd configurations.
29054 # All supported versions of musl provide it as well
29055 gcc_cv_libc_provides_ssp=yes;;
29056 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
29057 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29058 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
29059 gcc_cv_libc_provides_ssp=yes
29060 else
29061 echo "no __stack_chk_fail on this target"
29065 *) gcc_cv_libc_provides_ssp=no ;;
29066 esac
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29069 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29071 if test x$gcc_cv_libc_provides_ssp = xyes; then
29073 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29077 # Check whether --enable-default-ssp was given.
29078 # Check whether --enable-default-ssp was given.
29079 if test "${enable_default_ssp+set}" = set; then :
29080 enableval=$enable_default_ssp;
29081 if test x$gcc_cv_libc_provides_ssp = xyes; then
29082 case "$target" in
29083 ia64*-*-*) enable_default_ssp=no ;;
29084 *) enable_default_ssp=$enableval ;;
29085 esac
29086 else
29087 enable_default_ssp=no
29089 else
29090 enable_default_ssp=no
29093 if test x$enable_default_ssp = xyes ; then
29095 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29100 # Test for <sys/sdt.h> on the target.
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29103 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29104 have_sys_sdt_h=no
29105 if test -f $target_header_dir/sys/sdt.h; then
29106 have_sys_sdt_h=yes
29108 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29112 $as_echo "$have_sys_sdt_h" >&6; }
29114 # Check if TFmode long double should be used by default or not.
29115 # Some glibc targets used DFmode long double, but with glibc 2.4
29116 # and later they can use TFmode.
29117 case "$target" in
29118 powerpc*-*-linux* | \
29119 sparc*-*-linux* | \
29120 s390*-*-linux* | \
29121 alpha*-*-linux*)
29123 # Check whether --with-long-double-128 was given.
29124 if test "${with_long_double_128+set}" = set; then :
29125 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29126 else
29128 if test $glibc_version_major -gt 2 \
29129 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29130 gcc_cv_target_ldbl128=yes
29131 else
29133 gcc_cv_target_ldbl128=no
29134 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29135 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29136 && gcc_cv_target_ldbl128=yes
29142 esac
29143 if test x$gcc_cv_target_ldbl128 = xyes; then
29145 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29149 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29150 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29151 gcc_cv_libc_provides_hwcap_in_tcb=no
29152 case "$target" in
29153 powerpc*-*-linux*)
29155 if test $glibc_version_major -gt 2 \
29156 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29157 gcc_cv_libc_provides_hwcap_in_tcb=yes
29160 esac
29161 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29163 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29168 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29169 gcc_cv_target_dl_iterate_phdr=unknown
29170 case "$target" in
29171 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29172 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29173 # libdl there, both complicating its use and breaking compatibility
29174 # between Solaris 10 updates.
29175 *-*-solaris2.1[1-9]*)
29176 # <link.h> needs both a dl_iterate_phdr declaration and support for
29177 # compilation with largefile support.
29178 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29179 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29180 gcc_cv_target_dl_iterate_phdr=yes
29181 else
29182 gcc_cv_target_dl_iterate_phdr=no
29185 *-*-dragonfly* | *-*-freebsd*)
29186 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29187 gcc_cv_target_dl_iterate_phdr=yes
29188 else
29189 gcc_cv_target_dl_iterate_phdr=no
29192 *-linux-musl*)
29193 gcc_cv_target_dl_iterate_phdr=yes
29195 esac
29197 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29199 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29203 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29205 # We no longer support different GC mechanisms. Emit an error if
29206 # the user configures with --with-gc.
29208 # Check whether --with-gc was given.
29209 if test "${with_gc+set}" = set; then :
29210 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29214 # Libraries to use on the host. This will normally be set by the top
29215 # level Makefile. Here we simply capture the value for our Makefile.
29216 if test -z "${HOST_LIBS+set}"; then
29217 HOST_LIBS=
29221 # Use the system's zlib library.
29223 # Use the system's zlib library.
29224 zlibdir="-L\$(top_builddir)/../zlib"
29225 zlibinc="-I\$(top_srcdir)/../zlib"
29227 # Check whether --with-system-zlib was given.
29228 if test "${with_system_zlib+set}" = set; then :
29229 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29230 zlibdir=
29231 zlibinc=
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29242 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29243 # Check whether --enable-maintainer-mode was given.
29244 if test "${enable_maintainer_mode+set}" = set; then :
29245 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29246 else
29247 maintainer_mode=no
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29252 $as_echo "$maintainer_mode" >&6; }
29254 if test "$maintainer_mode" = "yes"; then
29255 MAINT=''
29256 else
29257 MAINT='#'
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29262 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29263 # Check whether --enable-link-mutex was given.
29264 if test "${enable_link_mutex+set}" = set; then :
29265 enableval=$enable_link_mutex; do_link_mutex=$enableval
29266 else
29267 do_link_mutex=no
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29271 $as_echo "$do_link_mutex" >&6; }
29273 if test "$do_link_mutex" = "yes"; then
29274 DO_LINK_MUTEX=true
29275 else
29276 DO_LINK_MUTEX=false
29280 # --------------
29281 # Language hooks
29282 # --------------
29284 # Make empty files to contain the specs and options for each language.
29285 # Then add #include lines to for a compiler that has specs and/or options.
29287 subdirs=
29288 lang_opt_files=
29289 lang_specs_files=
29290 lang_tree_files=
29291 # These (without "all_") are set in each config-lang.in.
29292 # `language' must be a single word so is spelled singularly.
29293 all_languages=
29294 all_compilers=
29295 all_outputs='Makefile'
29296 # List of language makefile fragments.
29297 all_lang_makefrags=
29298 # Additional files for gengtype
29299 all_gtfiles="$target_gtfiles"
29301 # These are the languages that are set in --enable-languages,
29302 # and are available in the GCC tree.
29303 all_selected_languages=
29305 # Add the language fragments.
29306 # Languages are added via two mechanisms. Some information must be
29307 # recorded in makefile variables, these are defined in config-lang.in.
29308 # We accumulate them and plug them into the main Makefile.
29309 # The other mechanism is a set of hooks for each of the main targets
29310 # like `clean', `install', etc.
29312 language_hooks="Make-hooks"
29314 for lang in ${srcdir}/*/config-lang.in
29316 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29318 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29319 if test "x$lang_alias" = x
29320 then
29321 echo "$lang doesn't set \$language." 1>&2
29322 exit 1
29324 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29325 subdirs="$subdirs $subdir"
29327 # $gcc_subdir is where the gcc integration files are to be found
29328 # for a language, both for internal compiler purposes (compiler
29329 # sources implementing front-end to GCC tree converters), and for
29330 # build infrastructure purposes (Make-lang.in, etc.)
29332 # This will be <subdir> (relative to $srcdir) if a line like
29333 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29334 # is found in <langdir>/config-lang.in, and will remain <langdir>
29335 # otherwise.
29337 # Except for the language alias (fetched above), the regular
29338 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29339 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29340 # only this and the language alias.
29342 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29343 if [ "$gcc_subdir" = "" ]; then
29344 gcc_subdir="$subdir"
29347 case ",$enable_languages," in
29348 *,$lang_alias,*)
29349 all_selected_languages="$all_selected_languages $lang_alias"
29350 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29351 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29354 esac
29356 language=
29357 boot_language=
29358 compilers=
29359 outputs=
29360 gtfiles=
29361 subdir_requires=
29362 . ${srcdir}/$gcc_subdir/config-lang.in
29363 if test "x$language" = x
29364 then
29365 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29366 exit 1
29369 ok=:
29370 case ",$enable_languages," in
29371 *,$lang_alias,*) ;;
29373 for i in $subdir_requires; do
29374 test -f "${srcdir}/$i/config-lang.in" && continue
29375 ok=false
29376 break
29377 done
29379 esac
29380 $ok || continue
29382 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29383 if test -f $srcdir/$gcc_subdir/lang.opt; then
29384 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29385 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29387 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29388 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29390 all_languages="$all_languages $language"
29391 all_compilers="$all_compilers $compilers"
29392 all_outputs="$all_outputs $outputs"
29393 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29394 case ",$enable_languages," in
29395 *,lto,*)
29397 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29399 enable_lto=yes
29402 *) ;;
29403 esac
29404 done
29406 check_languages=
29407 for language in $all_selected_languages
29409 check_languages="$check_languages check-$language"
29410 done
29412 # We link each language in with a set of hooks, reached indirectly via
29413 # lang.${target}. Only do so for selected languages.
29415 rm -f Make-hooks
29416 touch Make-hooks
29417 target_list="all.cross start.encap rest.encap tags \
29418 install-common install-man install-info install-pdf install-html dvi \
29419 pdf html uninstall info man srcextra srcman srcinfo \
29420 mostlyclean clean distclean maintainer-clean install-plugin"
29422 for t in $target_list
29425 for lang in $all_selected_languages
29427 x="$x $lang.$t"
29428 done
29429 echo "lang.$t: $x" >> Make-hooks
29430 done
29432 # --------
29433 # Option include files
29434 # --------
29436 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29437 option_includes="option-includes.mk"
29440 # --------
29441 # UNSORTED
29442 # --------
29444 # Create .gdbinit.
29446 echo "dir ." > .gdbinit
29447 echo "dir ${srcdir}" >> .gdbinit
29448 if test x$gdb_needs_out_file_path = xyes
29449 then
29450 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29452 if test "x$subdirs" != x; then
29453 for s in $subdirs
29455 echo "dir ${srcdir}/$s" >> .gdbinit
29456 done
29458 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29459 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29461 # Put a breakpoint on __asan_report_error to help with debugging buffer
29462 # overflow.
29463 case "$CFLAGS" in
29464 *-fsanitize=address*)
29465 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29467 esac
29469 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29473 # Find a directory in which to install a shared libgcc.
29475 # Check whether --enable-version-specific-runtime-libs was given.
29476 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29477 enableval=$enable_version_specific_runtime_libs;
29481 # Substitute configuration variables
29544 # Echo link setup.
29545 if test x${build} = x${host} ; then
29546 if test x${host} = x${target} ; then
29547 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29548 else
29549 echo "Links are now set up to build a cross-compiler" 1>&2
29550 echo " from ${host} to ${target}." 1>&2
29552 else
29553 if test x${host} = x${target} ; then
29554 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29555 echo " for ${target}." 1>&2
29556 else
29557 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29558 echo " from ${host} to ${target}." 1>&2
29567 if test "x${ISLLIBS}" != "x" ; then
29569 $as_echo "#define HAVE_isl 1" >>confdefs.h
29573 # Check for plugin support
29574 # Check whether --enable-plugin was given.
29575 if test "${enable_plugin+set}" = set; then :
29576 enableval=$enable_plugin; enable_plugin=$enableval
29577 else
29578 enable_plugin=yes; default_plugin=yes
29582 pluginlibs=
29584 case "${host}" in
29585 *-*-darwin*)
29586 if test x$build = x$host; then
29587 export_sym_check="nm${exeext} -g"
29588 elif test x$host = x$target; then
29589 export_sym_check="$gcc_cv_nm -g"
29590 else
29591 export_sym_check=
29595 if test x$build = x$host; then
29596 export_sym_check="objdump${exeext} -T"
29597 elif test x$host = x$target; then
29598 export_sym_check="$gcc_cv_objdump -T"
29599 else
29600 export_sym_check=
29603 esac
29605 if test x"$enable_plugin" = x"yes"; then
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29608 $as_echo_n "checking for exported symbols... " >&6; }
29609 if test "x$export_sym_check" != x; then
29610 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29611 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29612 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29613 : # No need to use a flag
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29615 $as_echo "yes" >&6; }
29616 else
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29618 $as_echo "yes" >&6; }
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29620 $as_echo_n "checking for -rdynamic... " >&6; }
29621 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29622 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29623 plugin_rdynamic=yes
29624 pluginlibs="-rdynamic"
29625 else
29626 plugin_rdynamic=no
29627 enable_plugin=no
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29630 $as_echo "$plugin_rdynamic" >&6; }
29632 else
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29634 $as_echo "unable to check" >&6; }
29637 # Check -ldl
29638 saved_LIBS="$LIBS"
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29640 $as_echo_n "checking for library containing dlopen... " >&6; }
29641 if test "${ac_cv_search_dlopen+set}" = set; then :
29642 $as_echo_n "(cached) " >&6
29643 else
29644 ac_func_search_save_LIBS=$LIBS
29645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29646 /* end confdefs.h. */
29648 /* Override any GCC internal prototype to avoid an error.
29649 Use char because int might match the return type of a GCC
29650 builtin and then its argument prototype would still apply. */
29651 #ifdef __cplusplus
29652 extern "C"
29653 #endif
29654 char dlopen ();
29656 main ()
29658 return dlopen ();
29660 return 0;
29662 _ACEOF
29663 for ac_lib in '' dl; do
29664 if test -z "$ac_lib"; then
29665 ac_res="none required"
29666 else
29667 ac_res=-l$ac_lib
29668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29670 if ac_fn_cxx_try_link "$LINENO"; then :
29671 ac_cv_search_dlopen=$ac_res
29673 rm -f core conftest.err conftest.$ac_objext \
29674 conftest$ac_exeext
29675 if test "${ac_cv_search_dlopen+set}" = set; then :
29676 break
29678 done
29679 if test "${ac_cv_search_dlopen+set}" = set; then :
29681 else
29682 ac_cv_search_dlopen=no
29684 rm conftest.$ac_ext
29685 LIBS=$ac_func_search_save_LIBS
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29688 $as_echo "$ac_cv_search_dlopen" >&6; }
29689 ac_res=$ac_cv_search_dlopen
29690 if test "$ac_res" != no; then :
29691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29695 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29696 pluginlibs="$pluginlibs -ldl"
29698 LIBS="$saved_LIBS"
29700 # Check that we can build shared objects with -fPIC -shared
29701 saved_LDFLAGS="$LDFLAGS"
29702 saved_CFLAGS="$CFLAGS"
29703 case "${host}" in
29704 *-*-darwin*)
29705 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29706 CFLAGS="$CFLAGS -fPIC"
29707 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29710 CFLAGS="$CFLAGS -fPIC"
29711 LDFLAGS="$LDFLAGS -fPIC -shared"
29713 esac
29714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29715 $as_echo_n "checking for -fPIC -shared... " >&6; }
29716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29717 /* end confdefs.h. */
29718 extern int X;
29720 main ()
29722 return X == 0;
29724 return 0;
29726 _ACEOF
29727 if ac_fn_cxx_try_link "$LINENO"; then :
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29729 $as_echo "yes" >&6; }; have_pic_shared=yes
29730 else
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29732 $as_echo "no" >&6; }; have_pic_shared=no
29734 rm -f core conftest.err conftest.$ac_objext \
29735 conftest$ac_exeext conftest.$ac_ext
29736 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29737 pluginlibs=
29738 enable_plugin=no
29740 LDFLAGS="$saved_LDFLAGS"
29741 CFLAGS="$saved_CFLAGS"
29743 # If plugin support had been requested but not available, fail.
29744 if test x"$enable_plugin" = x"no" ; then
29745 if test x"$default_plugin" != x"yes"; then
29746 as_fn_error "
29747 Building GCC with plugin support requires a host that supports
29748 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29755 if test x"$enable_plugin" = x"yes"; then
29757 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29762 # Enable --enable-host-shared
29763 # Check whether --enable-host-shared was given.
29764 if test "${enable_host_shared+set}" = set; then :
29765 enableval=$enable_host_shared; PICFLAG=-fPIC
29766 else
29767 PICFLAG=
29774 # Check whether --enable-libquadmath-support was given.
29775 if test "${enable_libquadmath_support+set}" = set; then :
29776 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29777 else
29778 ENABLE_LIBQUADMATH_SUPPORT=yes
29781 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29783 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29788 # Specify what hash style to use by default.
29790 # Check whether --with-linker-hash-style was given.
29791 if test "${with_linker_hash_style+set}" = set; then :
29792 withval=$with_linker_hash_style; case x"$withval" in
29793 xsysv)
29794 LINKER_HASH_STYLE=sysv
29796 xgnu)
29797 LINKER_HASH_STYLE=gnu
29799 xboth)
29800 LINKER_HASH_STYLE=both
29803 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29805 esac
29806 else
29807 LINKER_HASH_STYLE=''
29810 if test x"${LINKER_HASH_STYLE}" != x; then
29812 cat >>confdefs.h <<_ACEOF
29813 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29814 _ACEOF
29818 # Specify what should be the default of -fdiagnostics-color option.
29820 # Check whether --with-diagnostics-color was given.
29821 if test "${with_diagnostics_color+set}" = set; then :
29822 withval=$with_diagnostics_color; case x"$withval" in
29823 xnever)
29824 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29826 xauto)
29827 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29829 xauto-if-env)
29830 DIAGNOSTICS_COLOR_DEFAULT=-1
29832 xalways)
29833 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29836 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29838 esac
29839 else
29840 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29844 cat >>confdefs.h <<_ACEOF
29845 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29846 _ACEOF
29849 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29850 # of jit/jit-playback.c.
29851 cat > gcc-driver-name.h <<EOF
29852 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29855 # Check whether --enable-default-pie was given.
29856 # Check whether --enable-default-pie was given.
29857 if test "${enable_default_pie+set}" = set; then :
29858 enableval=$enable_default_pie; enable_default_pie=$enableval
29859 else
29860 enable_default_pie=no
29863 if test x$enable_default_pie = xyes ; then
29865 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29870 # Check if -fno-PIE works.
29871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29872 $as_echo_n "checking for -fno-PIE option... " >&6; }
29873 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29874 $as_echo_n "(cached) " >&6
29875 else
29876 saved_CXXFLAGS="$CXXFLAGS"
29877 CXXFLAGS="$CXXFLAGS -fno-PIE"
29878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29879 /* end confdefs.h. */
29880 int main(void) {return 0;}
29881 _ACEOF
29882 if ac_fn_cxx_try_compile "$LINENO"; then :
29883 gcc_cv_c_no_fpie=yes
29884 else
29885 gcc_cv_c_no_fpie=no
29887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29888 CXXFLAGS="$saved_CXXFLAGS"
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29891 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29892 if test "$gcc_cv_c_no_fpie" = "yes"; then
29893 NO_PIE_CFLAGS="-fno-PIE"
29897 # Check if -no-pie works.
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29899 $as_echo_n "checking for -no-pie option... " >&6; }
29900 if test "${gcc_cv_no_pie+set}" = set; then :
29901 $as_echo_n "(cached) " >&6
29902 else
29903 saved_LDFLAGS="$LDFLAGS"
29904 LDFLAGS="$LDFLAGS -no-pie"
29905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29906 /* end confdefs.h. */
29907 int main(void) {return 0;}
29908 _ACEOF
29909 if ac_fn_cxx_try_link "$LINENO"; then :
29910 gcc_cv_no_pie=yes
29911 else
29912 gcc_cv_no_pie=no
29914 rm -f core conftest.err conftest.$ac_objext \
29915 conftest$ac_exeext conftest.$ac_ext
29916 LDFLAGS="$saved_LDFLAGS"
29918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29919 $as_echo "$gcc_cv_no_pie" >&6; }
29920 if test "$gcc_cv_no_pie" = "yes"; then
29921 NO_PIE_FLAG="-no-pie"
29925 # Check linker supports '-z bndplt'
29926 ld_bndplt_support=no
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29928 $as_echo_n "checking linker -z bndplt option... " >&6; }
29929 if test x"$ld_is_gold" = xno; then
29930 if test $in_tree_ld = yes ; then
29931 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
29932 ld_bndplt_support=yes
29934 elif test x$gcc_cv_ld != x; then
29935 # Check if linker supports -a bndplt option
29936 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29937 ld_bndplt_support=yes
29941 if test x"$ld_bndplt_support" = xyes; then
29943 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29947 $as_echo "$ld_bndplt_support" >&6; }
29949 # Check linker supports '--push-state'/'--pop-state'
29950 ld_pushpopstate_support=no
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29952 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29953 if test x"$ld_is_gold" = xno; then
29954 if test $in_tree_ld = yes ; then
29955 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
29956 ld_pushpopstate_support=yes
29958 elif test x$gcc_cv_ld != x; then
29959 # Check if linker supports --push-state/--pop-state options
29960 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
29961 ld_pushpopstate_support=yes
29965 if test x"$ld_pushpopstate_support" = xyes; then
29967 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29971 $as_echo "$ld_pushpopstate_support" >&6; }
29973 # Configure the subdirectories
29974 # AC_CONFIG_SUBDIRS($subdirs)
29976 # Create the Makefile
29977 # and configure language subdirectories
29978 ac_config_files="$ac_config_files $all_outputs"
29981 ac_config_commands="$ac_config_commands default"
29983 cat >confcache <<\_ACEOF
29984 # This file is a shell script that caches the results of configure
29985 # tests run on this system so they can be shared between configure
29986 # scripts and configure runs, see configure's option --config-cache.
29987 # It is not useful on other systems. If it contains results you don't
29988 # want to keep, you may remove or edit it.
29990 # config.status only pays attention to the cache file if you give it
29991 # the --recheck option to rerun configure.
29993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29995 # following values.
29997 _ACEOF
29999 # The following way of writing the cache mishandles newlines in values,
30000 # but we know of no workaround that is simple, portable, and efficient.
30001 # So, we kill variables containing newlines.
30002 # Ultrix sh set writes to stderr and can't be redirected directly,
30003 # and sets the high bit in the cache file unless we assign to the vars.
30005 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30006 eval ac_val=\$$ac_var
30007 case $ac_val in #(
30008 *${as_nl}*)
30009 case $ac_var in #(
30010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30012 esac
30013 case $ac_var in #(
30014 _ | IFS | as_nl) ;; #(
30015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30016 *) { eval $ac_var=; unset $ac_var;} ;;
30017 esac ;;
30018 esac
30019 done
30021 (set) 2>&1 |
30022 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30023 *${as_nl}ac_space=\ *)
30024 # `set' does not quote correctly, so add quotes: double-quote
30025 # substitution turns \\\\ into \\, and sed turns \\ into \.
30026 sed -n \
30027 "s/'/'\\\\''/g;
30028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30029 ;; #(
30031 # `set' quotes correctly as required by POSIX, so do not add quotes.
30032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30034 esac |
30035 sort
30037 sed '
30038 /^ac_cv_env_/b end
30039 t clear
30040 :clear
30041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30042 t end
30043 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30044 :end' >>confcache
30045 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30046 if test -w "$cache_file"; then
30047 test "x$cache_file" != "x/dev/null" &&
30048 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30049 $as_echo "$as_me: updating cache $cache_file" >&6;}
30050 cat confcache >$cache_file
30051 else
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30053 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30056 rm -f confcache
30058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30059 # Let make expand exec_prefix.
30060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30062 DEFS=-DHAVE_CONFIG_H
30064 ac_libobjs=
30065 ac_ltlibobjs=
30066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30067 # 1. Remove the extension, and $U if already installed.
30068 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30069 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30070 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30071 # will be set to the directory where LIBOBJS objects are built.
30072 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30073 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30074 done
30075 LIBOBJS=$ac_libobjs
30077 LTLIBOBJS=$ac_ltlibobjs
30082 : ${CONFIG_STATUS=./config.status}
30083 ac_write_fail=0
30084 ac_clean_files_save=$ac_clean_files
30085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30087 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30088 as_write_fail=0
30089 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30090 #! $SHELL
30091 # Generated by $as_me.
30092 # Run this file to recreate the current configuration.
30093 # Compiler output produced by configure, useful for debugging
30094 # configure, is in config.log if it exists.
30096 debug=false
30097 ac_cs_recheck=false
30098 ac_cs_silent=false
30100 SHELL=\${CONFIG_SHELL-$SHELL}
30101 export SHELL
30102 _ASEOF
30103 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30104 ## -------------------- ##
30105 ## M4sh Initialization. ##
30106 ## -------------------- ##
30108 # Be more Bourne compatible
30109 DUALCASE=1; export DUALCASE # for MKS sh
30110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30111 emulate sh
30112 NULLCMD=:
30113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30114 # is contrary to our usage. Disable this feature.
30115 alias -g '${1+"$@"}'='"$@"'
30116 setopt NO_GLOB_SUBST
30117 else
30118 case `(set -o) 2>/dev/null` in #(
30119 *posix*) :
30120 set -o posix ;; #(
30121 *) :
30123 esac
30127 as_nl='
30129 export as_nl
30130 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30131 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30134 # Prefer a ksh shell builtin over an external printf program on Solaris,
30135 # but without wasting forks for bash or zsh.
30136 if test -z "$BASH_VERSION$ZSH_VERSION" \
30137 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30138 as_echo='print -r --'
30139 as_echo_n='print -rn --'
30140 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30141 as_echo='printf %s\n'
30142 as_echo_n='printf %s'
30143 else
30144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30146 as_echo_n='/usr/ucb/echo -n'
30147 else
30148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30149 as_echo_n_body='eval
30150 arg=$1;
30151 case $arg in #(
30152 *"$as_nl"*)
30153 expr "X$arg" : "X\\(.*\\)$as_nl";
30154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30155 esac;
30156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30158 export as_echo_n_body
30159 as_echo_n='sh -c $as_echo_n_body as_echo'
30161 export as_echo_body
30162 as_echo='sh -c $as_echo_body as_echo'
30165 # The user is always right.
30166 if test "${PATH_SEPARATOR+set}" != set; then
30167 PATH_SEPARATOR=:
30168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30170 PATH_SEPARATOR=';'
30175 # IFS
30176 # We need space, tab and new line, in precisely that order. Quoting is
30177 # there to prevent editors from complaining about space-tab.
30178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30179 # splitting by setting IFS to empty value.)
30180 IFS=" "" $as_nl"
30182 # Find who we are. Look in the path if we contain no directory separator.
30183 case $0 in #((
30184 *[\\/]* ) as_myself=$0 ;;
30185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30186 for as_dir in $PATH
30188 IFS=$as_save_IFS
30189 test -z "$as_dir" && as_dir=.
30190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30191 done
30192 IFS=$as_save_IFS
30195 esac
30196 # We did not find ourselves, most probably we were run as `sh COMMAND'
30197 # in which case we are not to be found in the path.
30198 if test "x$as_myself" = x; then
30199 as_myself=$0
30201 if test ! -f "$as_myself"; then
30202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30203 exit 1
30206 # Unset variables that we do not need and which cause bugs (e.g. in
30207 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30208 # suppresses any "Segmentation fault" message there. '((' could
30209 # trigger a bug in pdksh 5.2.14.
30210 for as_var in BASH_ENV ENV MAIL MAILPATH
30211 do eval test x\${$as_var+set} = xset \
30212 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30213 done
30214 PS1='$ '
30215 PS2='> '
30216 PS4='+ '
30218 # NLS nuisances.
30219 LC_ALL=C
30220 export LC_ALL
30221 LANGUAGE=C
30222 export LANGUAGE
30224 # CDPATH.
30225 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30228 # as_fn_error ERROR [LINENO LOG_FD]
30229 # ---------------------------------
30230 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30231 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30232 # script with status $?, using 1 if that was 0.
30233 as_fn_error ()
30235 as_status=$?; test $as_status -eq 0 && as_status=1
30236 if test "$3"; then
30237 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30240 $as_echo "$as_me: error: $1" >&2
30241 as_fn_exit $as_status
30242 } # as_fn_error
30245 # as_fn_set_status STATUS
30246 # -----------------------
30247 # Set $? to STATUS, without forking.
30248 as_fn_set_status ()
30250 return $1
30251 } # as_fn_set_status
30253 # as_fn_exit STATUS
30254 # -----------------
30255 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30256 as_fn_exit ()
30258 set +e
30259 as_fn_set_status $1
30260 exit $1
30261 } # as_fn_exit
30263 # as_fn_unset VAR
30264 # ---------------
30265 # Portably unset VAR.
30266 as_fn_unset ()
30268 { eval $1=; unset $1;}
30270 as_unset=as_fn_unset
30271 # as_fn_append VAR VALUE
30272 # ----------------------
30273 # Append the text in VALUE to the end of the definition contained in VAR. Take
30274 # advantage of any shell optimizations that allow amortized linear growth over
30275 # repeated appends, instead of the typical quadratic growth present in naive
30276 # implementations.
30277 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30278 eval 'as_fn_append ()
30280 eval $1+=\$2
30282 else
30283 as_fn_append ()
30285 eval $1=\$$1\$2
30287 fi # as_fn_append
30289 # as_fn_arith ARG...
30290 # ------------------
30291 # Perform arithmetic evaluation on the ARGs, and store the result in the
30292 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30293 # must be portable across $(()) and expr.
30294 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30295 eval 'as_fn_arith ()
30297 as_val=$(( $* ))
30299 else
30300 as_fn_arith ()
30302 as_val=`expr "$@" || test $? -eq 1`
30304 fi # as_fn_arith
30307 if expr a : '\(a\)' >/dev/null 2>&1 &&
30308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30309 as_expr=expr
30310 else
30311 as_expr=false
30314 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30315 as_basename=basename
30316 else
30317 as_basename=false
30320 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30321 as_dirname=dirname
30322 else
30323 as_dirname=false
30326 as_me=`$as_basename -- "$0" ||
30327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30328 X"$0" : 'X\(//\)$' \| \
30329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30330 $as_echo X/"$0" |
30331 sed '/^.*\/\([^/][^/]*\)\/*$/{
30332 s//\1/
30335 /^X\/\(\/\/\)$/{
30336 s//\1/
30339 /^X\/\(\/\).*/{
30340 s//\1/
30343 s/.*/./; q'`
30345 # Avoid depending upon Character Ranges.
30346 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30347 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30348 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30349 as_cr_digits='0123456789'
30350 as_cr_alnum=$as_cr_Letters$as_cr_digits
30352 ECHO_C= ECHO_N= ECHO_T=
30353 case `echo -n x` in #(((((
30354 -n*)
30355 case `echo 'xy\c'` in
30356 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30357 xy) ECHO_C='\c';;
30358 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30359 ECHO_T=' ';;
30360 esac;;
30362 ECHO_N='-n';;
30363 esac
30365 rm -f conf$$ conf$$.exe conf$$.file
30366 if test -d conf$$.dir; then
30367 rm -f conf$$.dir/conf$$.file
30368 else
30369 rm -f conf$$.dir
30370 mkdir conf$$.dir 2>/dev/null
30372 if (echo >conf$$.file) 2>/dev/null; then
30373 if ln -s conf$$.file conf$$ 2>/dev/null; then
30374 as_ln_s='ln -s'
30375 # ... but there are two gotchas:
30376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30378 # In both cases, we have to default to `cp -p'.
30379 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30380 as_ln_s='cp -p'
30381 elif ln conf$$.file conf$$ 2>/dev/null; then
30382 as_ln_s=ln
30383 else
30384 as_ln_s='cp -p'
30386 else
30387 as_ln_s='cp -p'
30389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30390 rmdir conf$$.dir 2>/dev/null
30393 # as_fn_mkdir_p
30394 # -------------
30395 # Create "$as_dir" as a directory, including parents if necessary.
30396 as_fn_mkdir_p ()
30399 case $as_dir in #(
30400 -*) as_dir=./$as_dir;;
30401 esac
30402 test -d "$as_dir" || eval $as_mkdir_p || {
30403 as_dirs=
30404 while :; do
30405 case $as_dir in #(
30406 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30407 *) as_qdir=$as_dir;;
30408 esac
30409 as_dirs="'$as_qdir' $as_dirs"
30410 as_dir=`$as_dirname -- "$as_dir" ||
30411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30412 X"$as_dir" : 'X\(//\)[^/]' \| \
30413 X"$as_dir" : 'X\(//\)$' \| \
30414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30415 $as_echo X"$as_dir" |
30416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30417 s//\1/
30420 /^X\(\/\/\)[^/].*/{
30421 s//\1/
30424 /^X\(\/\/\)$/{
30425 s//\1/
30428 /^X\(\/\).*/{
30429 s//\1/
30432 s/.*/./; q'`
30433 test -d "$as_dir" && break
30434 done
30435 test -z "$as_dirs" || eval "mkdir $as_dirs"
30436 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30439 } # as_fn_mkdir_p
30440 if mkdir -p . 2>/dev/null; then
30441 as_mkdir_p='mkdir -p "$as_dir"'
30442 else
30443 test -d ./-p && rmdir ./-p
30444 as_mkdir_p=false
30447 if test -x / >/dev/null 2>&1; then
30448 as_test_x='test -x'
30449 else
30450 if ls -dL / >/dev/null 2>&1; then
30451 as_ls_L_option=L
30452 else
30453 as_ls_L_option=
30455 as_test_x='
30456 eval sh -c '\''
30457 if test -d "$1"; then
30458 test -d "$1/.";
30459 else
30460 case $1 in #(
30461 -*)set "./$1";;
30462 esac;
30463 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30464 ???[sx]*):;;*)false;;esac;fi
30465 '\'' sh
30468 as_executable_p=$as_test_x
30470 # Sed expression to map a string onto a valid CPP name.
30471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30473 # Sed expression to map a string onto a valid variable name.
30474 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30477 exec 6>&1
30478 ## ----------------------------------- ##
30479 ## Main body of $CONFIG_STATUS script. ##
30480 ## ----------------------------------- ##
30481 _ASEOF
30482 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30485 # Save the log message, to keep $0 and so on meaningful, and to
30486 # report actual input values of CONFIG_FILES etc. instead of their
30487 # values after options handling.
30488 ac_log="
30489 This file was extended by $as_me, which was
30490 generated by GNU Autoconf 2.64. Invocation command line was
30492 CONFIG_FILES = $CONFIG_FILES
30493 CONFIG_HEADERS = $CONFIG_HEADERS
30494 CONFIG_LINKS = $CONFIG_LINKS
30495 CONFIG_COMMANDS = $CONFIG_COMMANDS
30496 $ $0 $@
30498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30501 _ACEOF
30503 case $ac_config_files in *"
30504 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30505 esac
30507 case $ac_config_headers in *"
30508 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30509 esac
30512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30513 # Files that config.status was made for.
30514 config_files="$ac_config_files"
30515 config_headers="$ac_config_headers"
30516 config_links="$ac_config_links"
30517 config_commands="$ac_config_commands"
30519 _ACEOF
30521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30522 ac_cs_usage="\
30523 \`$as_me' instantiates files and other configuration actions
30524 from templates according to the current configuration. Unless the files
30525 and actions are specified as TAGs, all are instantiated by default.
30527 Usage: $0 [OPTION]... [TAG]...
30529 -h, --help print this help, then exit
30530 -V, --version print version number and configuration settings, then exit
30531 -q, --quiet, --silent
30532 do not print progress messages
30533 -d, --debug don't remove temporary files
30534 --recheck update $as_me by reconfiguring in the same conditions
30535 --file=FILE[:TEMPLATE]
30536 instantiate the configuration file FILE
30537 --header=FILE[:TEMPLATE]
30538 instantiate the configuration header FILE
30540 Configuration files:
30541 $config_files
30543 Configuration headers:
30544 $config_headers
30546 Configuration links:
30547 $config_links
30549 Configuration commands:
30550 $config_commands
30552 Report bugs to the package provider."
30554 _ACEOF
30555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30556 ac_cs_version="\\
30557 config.status
30558 configured by $0, generated by GNU Autoconf 2.64,
30559 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30561 Copyright (C) 2009 Free Software Foundation, Inc.
30562 This config.status script is free software; the Free Software Foundation
30563 gives unlimited permission to copy, distribute and modify it."
30565 ac_pwd='$ac_pwd'
30566 srcdir='$srcdir'
30567 AWK='$AWK'
30568 test -n "\$AWK" || AWK=awk
30569 _ACEOF
30571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30572 # The default lists apply if the user does not specify any file.
30573 ac_need_defaults=:
30574 while test $# != 0
30576 case $1 in
30577 --*=*)
30578 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30579 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30580 ac_shift=:
30583 ac_option=$1
30584 ac_optarg=$2
30585 ac_shift=shift
30587 esac
30589 case $ac_option in
30590 # Handling of the options.
30591 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30592 ac_cs_recheck=: ;;
30593 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30594 $as_echo "$ac_cs_version"; exit ;;
30595 --debug | --debu | --deb | --de | --d | -d )
30596 debug=: ;;
30597 --file | --fil | --fi | --f )
30598 $ac_shift
30599 case $ac_optarg in
30600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30601 esac
30602 as_fn_append CONFIG_FILES " '$ac_optarg'"
30603 ac_need_defaults=false;;
30604 --header | --heade | --head | --hea )
30605 $ac_shift
30606 case $ac_optarg in
30607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30608 esac
30609 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30610 ac_need_defaults=false;;
30611 --he | --h)
30612 # Conflict between --help and --header
30613 as_fn_error "ambiguous option: \`$1'
30614 Try \`$0 --help' for more information.";;
30615 --help | --hel | -h )
30616 $as_echo "$ac_cs_usage"; exit ;;
30617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30618 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30619 ac_cs_silent=: ;;
30621 # This is an error.
30622 -*) as_fn_error "unrecognized option: \`$1'
30623 Try \`$0 --help' for more information." ;;
30625 *) as_fn_append ac_config_targets " $1"
30626 ac_need_defaults=false ;;
30628 esac
30629 shift
30630 done
30632 ac_configure_extra_args=
30634 if $ac_cs_silent; then
30635 exec 6>/dev/null
30636 ac_configure_extra_args="$ac_configure_extra_args --silent"
30639 _ACEOF
30640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30641 if \$ac_cs_recheck; then
30642 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30643 shift
30644 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30645 CONFIG_SHELL='$SHELL'
30646 export CONFIG_SHELL
30647 exec "\$@"
30650 _ACEOF
30651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30652 exec 5>>config.log
30654 echo
30655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30656 ## Running $as_me. ##
30657 _ASBOX
30658 $as_echo "$ac_log"
30659 } >&5
30661 _ACEOF
30662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30664 # INIT-COMMANDS
30666 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30667 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30668 subdirs='$subdirs'
30670 _ACEOF
30672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30674 # Handling of arguments.
30675 for ac_config_target in $ac_config_targets
30677 case $ac_config_target in
30678 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30679 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30680 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30681 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30682 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30683 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30684 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30685 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30686 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30688 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30689 esac
30690 done
30693 # If the user did not use the arguments to specify the items to instantiate,
30694 # then the envvar interface is used. Set only those that are not.
30695 # We use the long form for the default assignment because of an extremely
30696 # bizarre bug on SunOS 4.1.3.
30697 if $ac_need_defaults; then
30698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30700 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30704 # Have a temporary directory for convenience. Make it in the build tree
30705 # simply because there is no reason against having it here, and in addition,
30706 # creating and moving files from /tmp can sometimes cause problems.
30707 # Hook for its removal unless debugging.
30708 # Note that there is a small window in which the directory will not be cleaned:
30709 # after its creation but before its name has been assigned to `$tmp'.
30710 $debug ||
30712 tmp=
30713 trap 'exit_status=$?
30714 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30716 trap 'as_fn_exit 1' 1 2 13 15
30718 # Create a (secure) tmp directory for tmp files.
30721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30722 test -n "$tmp" && test -d "$tmp"
30723 } ||
30725 tmp=./conf$$-$RANDOM
30726 (umask 077 && mkdir "$tmp")
30727 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30729 # Set up the scripts for CONFIG_FILES section.
30730 # No need to generate them if there are no CONFIG_FILES.
30731 # This happens for instance with `./config.status config.h'.
30732 if test -n "$CONFIG_FILES"; then
30734 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30735 ac_cs_awk_getline=:
30736 ac_cs_awk_pipe_init=
30737 ac_cs_awk_read_file='
30738 while ((getline aline < (F[key])) > 0)
30739 print(aline)
30740 close(F[key])'
30741 ac_cs_awk_pipe_fini=
30742 else
30743 ac_cs_awk_getline=false
30744 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30745 ac_cs_awk_read_file='
30746 print "|#_!!_#|"
30747 print "cat " F[key] " &&"
30748 '$ac_cs_awk_pipe_init
30749 # The final `:' finishes the AND list.
30750 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30752 ac_cr=`echo X | tr X '\015'`
30753 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30754 # But we know of no other shell where ac_cr would be empty at this
30755 # point, so we can use a bashism as a fallback.
30756 if test "x$ac_cr" = x; then
30757 eval ac_cr=\$\'\\r\'
30759 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30760 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30761 ac_cs_awk_cr='\r'
30762 else
30763 ac_cs_awk_cr=$ac_cr
30766 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30767 _ACEOF
30769 # Create commands to substitute file output variables.
30771 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30772 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30773 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30774 echo "_ACAWK" &&
30775 echo "_ACEOF"
30776 } >conf$$files.sh &&
30777 . ./conf$$files.sh ||
30778 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30779 rm -f conf$$files.sh
30782 echo "cat >conf$$subs.awk <<_ACEOF" &&
30783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30784 echo "_ACEOF"
30785 } >conf$$subs.sh ||
30786 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30787 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30788 ac_delim='%!_!# '
30789 for ac_last_try in false false false false false :; do
30790 . ./conf$$subs.sh ||
30791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30794 if test $ac_delim_n = $ac_delim_num; then
30795 break
30796 elif $ac_last_try; then
30797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30798 else
30799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30801 done
30802 rm -f conf$$subs.sh
30804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30805 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30806 _ACEOF
30807 sed -n '
30809 s/^/S["/; s/!.*/"]=/
30812 s/^[^!]*!//
30813 :repl
30814 t repl
30815 s/'"$ac_delim"'$//
30816 t delim
30819 s/\(.\{148\}\).*/\1/
30820 t more1
30821 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30824 b repl
30825 :more1
30826 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30829 s/.\{148\}//
30830 t nl
30831 :delim
30833 s/\(.\{148\}\).*/\1/
30834 t more2
30835 s/["\\]/\\&/g; s/^/"/; s/$/"/
30838 :more2
30839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30842 s/.\{148\}//
30843 t delim
30844 ' <conf$$subs.awk | sed '
30845 /^[^""]/{
30847 s/\n//
30849 ' >>$CONFIG_STATUS || ac_write_fail=1
30850 rm -f conf$$subs.awk
30851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30852 _ACAWK
30853 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30854 for (key in S) S_is_set[key] = 1
30855 FS = "\a"
30856 \$ac_cs_awk_pipe_init
30859 line = $ 0
30860 nfields = split(line, field, "@")
30861 substed = 0
30862 len = length(field[1])
30863 for (i = 2; i < nfields; i++) {
30864 key = field[i]
30865 keylen = length(key)
30866 if (S_is_set[key]) {
30867 value = S[key]
30868 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30869 len += length(value) + length(field[++i])
30870 substed = 1
30871 } else
30872 len += 1 + keylen
30874 if (nfields == 3 && !substed) {
30875 key = field[2]
30876 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30877 \$ac_cs_awk_read_file
30878 next
30881 print line
30883 \$ac_cs_awk_pipe_fini
30884 _ACAWK
30885 _ACEOF
30886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30887 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30888 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30889 else
30891 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30892 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30893 _ACEOF
30895 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30896 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30897 # trailing colons and then remove the whole line if VPATH becomes empty
30898 # (actually we leave an empty line to preserve line numbers).
30899 if test "x$srcdir" = x.; then
30900 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30901 s/:*\$(srcdir):*/:/
30902 s/:*\${srcdir}:*/:/
30903 s/:*@srcdir@:*/:/
30904 s/^\([^=]*=[ ]*\):*/\1/
30905 s/:*$//
30906 s/^[^=]*=[ ]*$//
30910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30911 fi # test -n "$CONFIG_FILES"
30913 # Set up the scripts for CONFIG_HEADERS section.
30914 # No need to generate them if there are no CONFIG_HEADERS.
30915 # This happens for instance with `./config.status Makefile'.
30916 if test -n "$CONFIG_HEADERS"; then
30917 cat >"$tmp/defines.awk" <<\_ACAWK ||
30918 BEGIN {
30919 _ACEOF
30921 # Transform confdefs.h into an awk script `defines.awk', embedded as
30922 # here-document in config.status, that substitutes the proper values into
30923 # config.h.in to produce config.h.
30925 # Create a delimiter string that does not exist in confdefs.h, to ease
30926 # handling of long lines.
30927 ac_delim='%!_!# '
30928 for ac_last_try in false false :; do
30929 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30930 if test -z "$ac_t"; then
30931 break
30932 elif $ac_last_try; then
30933 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30934 else
30935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30937 done
30939 # For the awk script, D is an array of macro values keyed by name,
30940 # likewise P contains macro parameters if any. Preserve backslash
30941 # newline sequences.
30943 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30944 sed -n '
30945 s/.\{148\}/&'"$ac_delim"'/g
30946 t rset
30947 :rset
30948 s/^[ ]*#[ ]*define[ ][ ]*/ /
30949 t def
30951 :def
30952 s/\\$//
30953 t bsnl
30954 s/["\\]/\\&/g
30955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30956 D["\1"]=" \3"/p
30957 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30959 :bsnl
30960 s/["\\]/\\&/g
30961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30962 D["\1"]=" \3\\\\\\n"\\/p
30963 t cont
30964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30965 t cont
30967 :cont
30969 s/.\{148\}/&'"$ac_delim"'/g
30970 t clear
30971 :clear
30972 s/\\$//
30973 t bsnlc
30974 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30976 :bsnlc
30977 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30978 b cont
30979 ' <confdefs.h | sed '
30980 s/'"$ac_delim"'/"\\\
30981 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30984 for (key in D) D_is_set[key] = 1
30985 FS = "\a"
30987 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30988 line = \$ 0
30989 split(line, arg, " ")
30990 if (arg[1] == "#") {
30991 defundef = arg[2]
30992 mac1 = arg[3]
30993 } else {
30994 defundef = substr(arg[1], 2)
30995 mac1 = arg[2]
30997 split(mac1, mac2, "(") #)
30998 macro = mac2[1]
30999 prefix = substr(line, 1, index(line, defundef) - 1)
31000 if (D_is_set[macro]) {
31001 # Preserve the white space surrounding the "#".
31002 print prefix "define", macro P[macro] D[macro]
31003 next
31004 } else {
31005 # Replace #undef with comments. This is necessary, for example,
31006 # in the case of _POSIX_SOURCE, which is predefined and required
31007 # on some systems where configure will not decide to define it.
31008 if (defundef == "undef") {
31009 print "/*", prefix defundef, macro, "*/"
31010 next
31014 { print }
31015 _ACAWK
31016 _ACEOF
31017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31018 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31019 fi # test -n "$CONFIG_HEADERS"
31022 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31023 shift
31024 for ac_tag
31026 case $ac_tag in
31027 :[FHLC]) ac_mode=$ac_tag; continue;;
31028 esac
31029 case $ac_mode$ac_tag in
31030 :[FHL]*:*);;
31031 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31032 :[FH]-) ac_tag=-:-;;
31033 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31034 esac
31035 ac_save_IFS=$IFS
31036 IFS=:
31037 set x $ac_tag
31038 IFS=$ac_save_IFS
31039 shift
31040 ac_file=$1
31041 shift
31043 case $ac_mode in
31044 :L) ac_source=$1;;
31045 :[FH])
31046 ac_file_inputs=
31047 for ac_f
31049 case $ac_f in
31050 -) ac_f="$tmp/stdin";;
31051 *) # Look for the file first in the build tree, then in the source tree
31052 # (if the path is not absolute). The absolute path cannot be DOS-style,
31053 # because $ac_f cannot contain `:'.
31054 test -f "$ac_f" ||
31055 case $ac_f in
31056 [\\/$]*) false;;
31057 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31058 esac ||
31059 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31060 esac
31061 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31062 as_fn_append ac_file_inputs " '$ac_f'"
31063 done
31065 # Let's still pretend it is `configure' which instantiates (i.e., don't
31066 # use $as_me), people would be surprised to read:
31067 # /* config.h. Generated by config.status. */
31068 configure_input='Generated from '`
31069 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31070 `' by configure.'
31071 if test x"$ac_file" != x-; then
31072 configure_input="$ac_file. $configure_input"
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31074 $as_echo "$as_me: creating $ac_file" >&6;}
31076 # Neutralize special characters interpreted by sed in replacement strings.
31077 case $configure_input in #(
31078 *\&* | *\|* | *\\* )
31079 ac_sed_conf_input=`$as_echo "$configure_input" |
31080 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31081 *) ac_sed_conf_input=$configure_input;;
31082 esac
31084 case $ac_tag in
31085 *:-:* | *:-) cat >"$tmp/stdin" \
31086 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31087 esac
31089 esac
31091 ac_dir=`$as_dirname -- "$ac_file" ||
31092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31093 X"$ac_file" : 'X\(//\)[^/]' \| \
31094 X"$ac_file" : 'X\(//\)$' \| \
31095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31096 $as_echo X"$ac_file" |
31097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31098 s//\1/
31101 /^X\(\/\/\)[^/].*/{
31102 s//\1/
31105 /^X\(\/\/\)$/{
31106 s//\1/
31109 /^X\(\/\).*/{
31110 s//\1/
31113 s/.*/./; q'`
31114 as_dir="$ac_dir"; as_fn_mkdir_p
31115 ac_builddir=.
31117 case "$ac_dir" in
31118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31120 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31121 # A ".." for each directory in $ac_dir_suffix.
31122 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31123 case $ac_top_builddir_sub in
31124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31126 esac ;;
31127 esac
31128 ac_abs_top_builddir=$ac_pwd
31129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31130 # for backward compatibility:
31131 ac_top_builddir=$ac_top_build_prefix
31133 case $srcdir in
31134 .) # We are building in place.
31135 ac_srcdir=.
31136 ac_top_srcdir=$ac_top_builddir_sub
31137 ac_abs_top_srcdir=$ac_pwd ;;
31138 [\\/]* | ?:[\\/]* ) # Absolute name.
31139 ac_srcdir=$srcdir$ac_dir_suffix;
31140 ac_top_srcdir=$srcdir
31141 ac_abs_top_srcdir=$srcdir ;;
31142 *) # Relative name.
31143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31144 ac_top_srcdir=$ac_top_build_prefix$srcdir
31145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31146 esac
31147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31150 case $ac_mode in
31153 # CONFIG_FILE
31156 _ACEOF
31158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31159 # If the template does not know about datarootdir, expand it.
31160 # FIXME: This hack should be removed a few years after 2.60.
31161 ac_datarootdir_hack=; ac_datarootdir_seen=
31162 ac_sed_dataroot='
31163 /datarootdir/ {
31167 /@datadir@/p
31168 /@docdir@/p
31169 /@infodir@/p
31170 /@localedir@/p
31171 /@mandir@/p'
31172 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31173 *datarootdir*) ac_datarootdir_seen=yes;;
31174 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31176 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31177 _ACEOF
31178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31179 ac_datarootdir_hack='
31180 s&@datadir@&$datadir&g
31181 s&@docdir@&$docdir&g
31182 s&@infodir@&$infodir&g
31183 s&@localedir@&$localedir&g
31184 s&@mandir@&$mandir&g
31185 s&\\\${datarootdir}&$datarootdir&g' ;;
31186 esac
31187 _ACEOF
31189 # Neutralize VPATH when `$srcdir' = `.'.
31190 # Shell code in configure.ac might set extrasub.
31191 # FIXME: do we really want to maintain this feature?
31192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31193 ac_sed_extra="$ac_vpsub
31194 $extrasub
31195 _ACEOF
31196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31199 s|@configure_input@|$ac_sed_conf_input|;t t
31200 s&@top_builddir@&$ac_top_builddir_sub&;t t
31201 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31202 s&@srcdir@&$ac_srcdir&;t t
31203 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31204 s&@top_srcdir@&$ac_top_srcdir&;t t
31205 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31206 s&@builddir@&$ac_builddir&;t t
31207 s&@abs_builddir@&$ac_abs_builddir&;t t
31208 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31209 $ac_datarootdir_hack
31211 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31212 if $ac_cs_awk_getline; then
31213 $AWK -f "$tmp/subs.awk"
31214 else
31215 $AWK -f "$tmp/subs.awk" | $SHELL
31216 fi >$tmp/out \
31217 || as_fn_error "could not create $ac_file" "$LINENO" 5
31219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31220 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31223 which seems to be undefined. Please make sure it is defined." >&5
31224 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31225 which seems to be undefined. Please make sure it is defined." >&2;}
31227 rm -f "$tmp/stdin"
31228 case $ac_file in
31229 -) cat "$tmp/out" && rm -f "$tmp/out";;
31230 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31231 esac \
31232 || as_fn_error "could not create $ac_file" "$LINENO" 5
31236 # CONFIG_HEADER
31238 if test x"$ac_file" != x-; then
31240 $as_echo "/* $configure_input */" \
31241 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31242 } >"$tmp/config.h" \
31243 || as_fn_error "could not create $ac_file" "$LINENO" 5
31244 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31245 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31246 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31247 else
31248 rm -f "$ac_file"
31249 mv "$tmp/config.h" "$ac_file" \
31250 || as_fn_error "could not create $ac_file" "$LINENO" 5
31252 else
31253 $as_echo "/* $configure_input */" \
31254 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31255 || as_fn_error "could not create -" "$LINENO" 5
31260 # CONFIG_LINK
31263 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31265 else
31266 # Prefer the file from the source tree if names are identical.
31267 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31268 ac_source=$srcdir/$ac_source
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31272 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31274 if test ! -r "$ac_source"; then
31275 as_fn_error "$ac_source: file not found" "$LINENO" 5
31277 rm -f "$ac_file"
31279 # Try a relative symlink, then a hard link, then a copy.
31280 case $srcdir in
31281 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31282 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31283 esac
31284 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31285 ln "$ac_source" "$ac_file" 2>/dev/null ||
31286 cp -p "$ac_source" "$ac_file" ||
31287 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31290 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31291 $as_echo "$as_me: executing $ac_file commands" >&6;}
31293 esac
31296 case $ac_file$ac_mode in
31297 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31298 "gccdepdir":C)
31299 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31300 for lang in $subdirs c-family common
31302 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31303 done ;;
31304 "as":F) chmod +x as ;;
31305 "collect-ld":F) chmod +x collect-ld ;;
31306 "nm":F) chmod +x nm ;;
31307 "default":C)
31308 case ${CONFIG_HEADERS} in
31309 *auto-host.h:config.in*)
31310 echo > cstamp-h ;;
31311 esac
31312 # Make sure all the subdirs exist.
31313 for d in $subdirs doc build common c-family
31315 test -d $d || mkdir $d
31316 done
31319 esac
31320 done # for ac_tag
31323 as_fn_exit 0
31324 _ACEOF
31325 ac_clean_files=$ac_clean_files_save
31327 test $ac_write_fail = 0 ||
31328 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31331 # configure is writing to config.log, and then calls config.status.
31332 # config.status does its own redirection, appending to config.log.
31333 # Unfortunately, on DOS this fails, as config.log is still kept open
31334 # by configure, so config.status won't be able to write to it; its
31335 # output is simply discarded. So we exec the FD to /dev/null,
31336 # effectively closing config.log, so it can be properly (re)opened and
31337 # appended to by config.status. When coming back to configure, we
31338 # need to make the FD available again.
31339 if test "$no_create" != yes; then
31340 ac_cs_success=:
31341 ac_config_status_args=
31342 test "$silent" = yes &&
31343 ac_config_status_args="$ac_config_status_args --quiet"
31344 exec 5>/dev/null
31345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31346 exec 5>>config.log
31347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31348 # would make configure fail if this is the last instruction.
31349 $ac_cs_success || as_fn_exit $?
31351 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31353 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}