[ARM][committed] Sort ARMv8 processors by alphabetic order
[official-gcc.git] / gcc / configure
blobb9a39d3454ead9b2e17ba349d9fd7e9f1eeb7fc1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 SYSTEM_HEADER_DIR
724 CROSS
725 CATOBJEXT
726 GENCAT
727 INSTOBJEXT
728 DATADIRNAME
729 CATALOGS
730 POSUB
731 GMSGFMT
732 XGETTEXT
733 INCINTL
734 LIBINTL_DEP
735 LIBINTL
736 USE_NLS
737 extra_opt_files
738 extra_modes_file
739 NATIVE_SYSTEM_HEADER_DIR
740 objext
741 manext
742 LIBICONV_DEP
743 LTLIBICONV
744 LIBICONV
745 LDEXP_LIB
746 EXTRA_GCC_LIBS
747 GNAT_LIBEXC
748 COLLECT2_LIBS
749 CXXDEPMODE
750 DEPDIR
751 am__leading_dot
752 doc_build_sys
755 BISON
756 FLEX
757 GENERATED_MANPAGES
758 BUILD_INFO
759 MAKEINFO
760 have_mktemp_command
761 make_compare_target
762 INSTALL_DATA
763 INSTALL_PROGRAM
764 INSTALL
765 ranlib_flags
766 RANLIB
768 LN_S
770 SET_MAKE
771 accel_dir_suffix
772 real_target_noncanonical
773 enable_as_accelerator
774 REPORT_BUGS_TEXI
775 REPORT_BUGS_TO
776 PKGVERSION
777 CONFIGURE_SPECS
778 enable_shared
779 enable_fixed_point
780 enable_decimal_float
781 with_float
782 with_cpu
783 enable_multiarch
784 enable_multilib
785 coverage_flags
786 valgrind_command
787 valgrind_path_defines
788 valgrind_path
789 TREECHECKING
790 nocommon_flag
791 noexception_flags
792 warn_cxxflags
793 warn_cflags
794 c_strict_warn
795 strict_warn
796 c_loose_warn
797 loose_warn
798 aliasing_flags
800 EGREP
801 GREP
802 CXXCPP
803 PICFLAG_FOR_TARGET
804 GNATMAKE
805 GNATBIND
806 ac_ct_CXX
807 CXXFLAGS
809 OBJEXT
810 EXEEXT
811 ac_ct_CC
812 CPPFLAGS
813 LDFLAGS
814 CFLAGS
816 GENINSRC
817 CROSS_SYSTEM_HEADER_DIR
818 TARGET_SYSTEM_ROOT_DEFINE
819 TARGET_SYSTEM_ROOT
820 SYSROOT_CFLAGS_FOR_TARGET
821 target_subdir
822 host_subdir
823 build_subdir
824 build_libsubdir
825 target_noncanonical
826 host_noncanonical
827 target_os
828 target_vendor
829 target_cpu
830 target
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files='option_includes
878 language_hooks'
879 ac_user_opts='
880 enable_option_checking
881 with_build_libsubdir
882 with_local_prefix
883 with_native_system_header_dir
884 with_build_sysroot
885 with_sysroot
886 with_gxx_include_dir
887 with_cpp_install_dir
888 enable_generated_files_in_srcdir
889 with_gnu_ld
890 with_ld
891 with_demangler_in_ld
892 with_gnu_as
893 with_as
894 enable_largefile
895 enable_build_format_warnings
896 enable_werror_always
897 enable_checking
898 enable_coverage
899 enable_gather_detailed_mem_stats
900 enable_valgrind_annotations
901 with_stabs
902 enable_multilib
903 enable_multiarch
904 enable___cxa_atexit
905 enable_decimal_float
906 enable_fixed_point
907 enable_threads
908 enable_tls
909 enable_vtable_verify
910 enable_objc_gc
911 with_dwarf2
912 enable_shared
913 with_specs
914 with_pkgversion
915 with_bugurl
916 enable_languages
917 with_multilib_list
918 enable_rpath
919 with_libiconv_prefix
920 enable_sjlj_exceptions
921 enable_secureplt
922 enable_leading_mingw64_underscores
923 enable_cld
924 enable_frame_pointer
925 enable_win32_registry
926 enable_static
927 with_pic
928 enable_fast_install
929 enable_libtool_lock
930 enable_ld
931 enable_gold
932 with_plugin_ld
933 enable_gnu_indirect_function
934 enable_initfini_array
935 enable_comdat
936 enable_fix_cortex_a53_835769
937 enable_fix_cortex_a53_843419
938 with_glibc_version
939 enable_gnu_unique_object
940 enable_linker_build_id
941 enable_default_ssp
942 with_long_double_128
943 with_gc
944 with_system_zlib
945 enable_maintainer_mode
946 enable_link_mutex
947 enable_version_specific_runtime_libs
948 enable_plugin
949 enable_host_shared
950 enable_libquadmath_support
951 with_linker_hash_style
952 with_diagnostics_color
953 enable_default_pie
955 ac_precious_vars='build_alias
956 host_alias
957 target_alias
959 CFLAGS
960 LDFLAGS
961 LIBS
962 CPPFLAGS
964 CXXFLAGS
966 CXXCPP
968 GMPLIBS
969 GMPINC
970 ISLLIBS
971 ISLINC'
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1042 ac_dashdash=yes ;;
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=\$ac_optarg ;;
1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120 | --exec | --exe | --ex)
1121 ac_prev=exec_prefix ;;
1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124 | --exec=* | --exe=* | --ex=*)
1125 exec_prefix=$ac_optarg ;;
1127 -gas | --gas | --ga | --g)
1128 # Obsolete; use --with-gas.
1129 with_gas=yes ;;
1131 -help | --help | --hel | --he | -h)
1132 ac_init_help=long ;;
1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134 ac_init_help=recursive ;;
1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136 ac_init_help=short ;;
1138 -host | --host | --hos | --ho)
1139 ac_prev=host_alias ;;
1140 -host=* | --host=* | --hos=* | --ho=*)
1141 host_alias=$ac_optarg ;;
1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144 ac_prev=htmldir ;;
1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146 | --ht=*)
1147 htmldir=$ac_optarg ;;
1149 -includedir | --includedir | --includedi | --included | --include \
1150 | --includ | --inclu | --incl | --inc)
1151 ac_prev=includedir ;;
1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153 | --includ=* | --inclu=* | --incl=* | --inc=*)
1154 includedir=$ac_optarg ;;
1156 -infodir | --infodir | --infodi | --infod | --info | --inf)
1157 ac_prev=infodir ;;
1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159 infodir=$ac_optarg ;;
1161 -libdir | --libdir | --libdi | --libd)
1162 ac_prev=libdir ;;
1163 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164 libdir=$ac_optarg ;;
1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167 | --libexe | --libex | --libe)
1168 ac_prev=libexecdir ;;
1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170 | --libexe=* | --libex=* | --libe=*)
1171 libexecdir=$ac_optarg ;;
1173 -localedir | --localedir | --localedi | --localed | --locale)
1174 ac_prev=localedir ;;
1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176 localedir=$ac_optarg ;;
1178 -localstatedir | --localstatedir | --localstatedi | --localstated \
1179 | --localstate | --localstat | --localsta | --localst | --locals)
1180 ac_prev=localstatedir ;;
1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183 localstatedir=$ac_optarg ;;
1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186 ac_prev=mandir ;;
1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188 mandir=$ac_optarg ;;
1190 -nfp | --nfp | --nf)
1191 # Obsolete; use --without-fp.
1192 with_fp=no ;;
1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195 | --no-cr | --no-c | -n)
1196 no_create=yes ;;
1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200 no_recursion=yes ;;
1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204 | --oldin | --oldi | --old | --ol | --o)
1205 ac_prev=oldincludedir ;;
1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209 oldincludedir=$ac_optarg ;;
1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212 ac_prev=prefix ;;
1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214 prefix=$ac_optarg ;;
1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217 | --program-pre | --program-pr | --program-p)
1218 ac_prev=program_prefix ;;
1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221 program_prefix=$ac_optarg ;;
1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224 | --program-suf | --program-su | --program-s)
1225 ac_prev=program_suffix ;;
1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228 program_suffix=$ac_optarg ;;
1230 -program-transform-name | --program-transform-name \
1231 | --program-transform-nam | --program-transform-na \
1232 | --program-transform-n | --program-transform- \
1233 | --program-transform | --program-transfor \
1234 | --program-transfo | --program-transf \
1235 | --program-trans | --program-tran \
1236 | --progr-tra | --program-tr | --program-t)
1237 ac_prev=program_transform_name ;;
1238 -program-transform-name=* | --program-transform-name=* \
1239 | --program-transform-nam=* | --program-transform-na=* \
1240 | --program-transform-n=* | --program-transform-=* \
1241 | --program-transform=* | --program-transfor=* \
1242 | --program-transfo=* | --program-transf=* \
1243 | --program-trans=* | --program-tran=* \
1244 | --progr-tra=* | --program-tr=* | --program-t=*)
1245 program_transform_name=$ac_optarg ;;
1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248 ac_prev=pdfdir ;;
1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250 pdfdir=$ac_optarg ;;
1252 -psdir | --psdir | --psdi | --psd | --ps)
1253 ac_prev=psdir ;;
1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255 psdir=$ac_optarg ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 silent=yes ;;
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262 ac_prev=sbindir ;;
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264 | --sbi=* | --sb=*)
1265 sbindir=$ac_optarg ;;
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1270 | --sha | --sh)
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275 | --sha=* | --sh=*)
1276 sharedstatedir=$ac_optarg ;;
1278 -site | --site | --sit)
1279 ac_prev=site ;;
1280 -site=* | --site=* | --sit=*)
1281 site=$ac_optarg ;;
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284 ac_prev=srcdir ;;
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 verbose=yes ;;
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1306 -with-* | --with-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=\$ac_optarg ;;
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) as_fn_error "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1366 esac
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378 esac
1379 done
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error "missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 esac
1394 # Check all directory arguments for consistency.
1395 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1402 case $ac_val in
1403 */ )
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1406 esac
1407 # Be sure to have absolute directory names.
1408 case $ac_val in
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411 esac
1412 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436 test "$silent" = yes && exec 6>/dev/null
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error "pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1465 /^X\(\/\/\)$/{
1466 s//\1/
1469 /^X\(\/\).*/{
1470 s//\1/
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1478 else
1479 ac_srcdir_defaulted=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1488 pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513 \`configure' configures this package to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1522 Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 [PREFIX]
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1568 cat <<\_ACEOF
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 --target=TARGET configure for building compilers for TARGET [HOST]
1579 _ACEOF
1582 if test -n "$ac_init_help"; then
1584 cat <<\_ACEOF
1586 Optional Features:
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-generated-files-in-srcdir
1591 put copies of generated files in source dir intended
1592 for creating source tarballs for users without
1593 texinfo bison or flex
1594 --disable-largefile omit support for large files
1595 --disable-build-format-warnings
1596 don't use -Wformat while building GCC
1597 --enable-werror-always enable -Werror despite compiler version
1598 --enable-checking[=LIST]
1599 enable expensive run-time checks. With LIST, enable
1600 only specific categories of checks. Categories are:
1601 yes,no,all,none,release. Flags are:
1602 assert,df,extra,fold,gc,gcac,gimple,misc,
1603 rtlflag,rtl,runtime,tree,valgrind,types
1604 --enable-coverage[=LEVEL]
1605 enable compiler's code coverage collection. Use to
1606 measure compiler performance and locate unused parts
1607 of the compiler. With LEVEL, specify optimization.
1608 Values are opt, noopt, default is noopt
1609 --enable-gather-detailed-mem-stats
1610 enable detailed memory allocation stats gathering
1611 --enable-valgrind-annotations
1612 enable valgrind runtime interaction
1613 --enable-multilib enable library support for multiple ABIs
1614 --enable-multiarch enable support for multiarch paths
1615 --enable-__cxa_atexit enable __cxa_atexit for C++
1616 --enable-decimal-float={no,yes,bid,dpd}
1617 enable decimal float extension to C. Selecting 'bid'
1618 or 'dpd' choses which decimal floating point format
1619 to use
1620 --enable-fixed-point enable fixed-point arithmetic extension to C
1621 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1622 package
1623 --enable-tls enable or disable generation of tls code overriding
1624 the assembler check for tls support
1625 --enable-vtable-verify enable vtable verification feature
1626 --enable-objc-gc enable the use of Boehm's garbage collector with the
1627 GNU Objective-C runtime
1628 --disable-shared don't provide a shared libgcc
1629 --enable-languages=LIST specify which front-ends to build
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-sjlj-exceptions
1632 arrange to use setjmp/longjmp exception handling
1633 --enable-secureplt enable -msecure-plt by default for PowerPC
1634 --enable-leading-mingw64-underscores
1635 enable leading underscores on 64 bit mingw targets
1636 --enable-cld enable -mcld by default for 32bit x86
1637 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1639 --disable-win32-registry
1640 disable lookup of installation paths in the Registry
1641 on Windows hosts
1642 --enable-win32-registry enable registry lookup (default)
1643 --enable-win32-registry=KEY
1644 use KEY instead of GCC version as the last portion
1645 of the registry key
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=yes]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1652 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1653 --enable-gnu-indirect-function
1654 enable the use of the @gnu_indirect_function to
1655 glibc systems
1656 --enable-initfini-array use .init_array/.fini_array sections
1657 --enable-comdat enable COMDAT group support
1659 --enable-fix-cortex-a53-835769
1660 enable workaround for AArch64 Cortex-A53 erratum
1661 835769 by default
1662 --disable-fix-cortex-a53-835769
1663 disable workaround for AArch64 Cortex-A53 erratum
1664 835769 by default
1667 --enable-fix-cortex-a53-843419
1668 enable workaround for AArch64 Cortex-A53 erratum
1669 843419 by default
1670 --disable-fix-cortex-a53-843419
1671 disable workaround for AArch64 Cortex-A53 erratum
1672 843419 by default
1674 --enable-gnu-unique-object
1675 enable the use of the @gnu_unique_object ELF
1676 extension on glibc systems
1677 --enable-linker-build-id
1678 compiler will always pass --build-id to linker
1679 --enable-default-ssp enable Stack Smashing Protection as default
1680 --enable-maintainer-mode
1681 enable make rules and dependencies not useful (and
1682 sometimes confusing) to the casual installer
1683 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1684 thrashing on the build machine
1685 --enable-version-specific-runtime-libs
1686 specify that runtime libraries should be installed
1687 in a compiler-specific directory
1688 --enable-plugin enable plugin support
1689 --enable-host-shared build host code as shared libraries
1690 --disable-libquadmath-support
1691 disable libquadmath support for Fortran
1692 --enable-default-pie enable Position Independent Executable as default
1694 Optional Packages:
1695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1697 --with-build-libsubdir=DIR Directory where to find libraries for build system
1698 --with-local-prefix=DIR specifies directory to put local include
1699 --with-native-system-header-dir=dir
1700 use dir as the directory to look for standard
1701 system header files in. Defaults to /usr/include.
1702 --with-build-sysroot=sysroot
1703 use sysroot as the system root during the build
1704 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1705 --with-gxx-include-dir=DIR
1706 specifies directory to put g++ header files
1707 --with-cpp-install-dir=DIR
1708 install the user visible C preprocessor in DIR
1709 (relative to PREFIX) as well as PREFIX/bin
1710 --with-gnu-ld arrange to work with GNU ld
1711 --with-ld arrange to use the specified ld (full pathname)
1712 --with-demangler-in-ld try to use demangler in GNU ld
1713 --with-gnu-as arrange to work with GNU as
1714 --with-as arrange to use the specified as (full pathname)
1715 --with-stabs arrange to use stabs instead of host debug format
1716 --with-dwarf2 force the default debug format to be DWARF 2
1717 --with-specs=SPECS add SPECS to driver command-line processing
1718 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1719 --with-bugurl=URL Direct users to URL to report a bug
1720 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1721 --with-gnu-ld assume the C compiler uses GNU ld default=no
1722 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1723 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1725 both]
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1727 --with-plugin-ld=[ARG] specify the plugin linker
1728 --with-glibc-version=M.N
1729 assume GCC used with glibc version M.N or later
1730 --with-long-double-128 use 128-bit long double by default
1731 --with-gc={page,zone} this option is not supported anymore. It used to
1732 choose the garbage collection mechanism to use with
1733 the compiler
1734 --with-system-zlib use installed libz
1735 --with-linker-hash-style={sysv,gnu,both}
1736 specify the linker hash style
1737 --with-diagnostics-color={never,auto,auto-if-env,always}
1738 specify the default of -fdiagnostics-color option
1739 auto-if-env stands for -fdiagnostics-color=auto if
1740 GCC_COLOR environment variable is present and
1741 -fdiagnostics-color=never otherwise
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1753 CXXCPP C++ preprocessor
1754 CPP C preprocessor
1755 GMPLIBS How to link GMP
1756 GMPINC How to find GMP include files
1757 ISLLIBS How to link isl
1758 ISLINC How to find isl include files
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1763 Report bugs to the package provider.
1764 _ACEOF
1765 ac_status=$?
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1773 continue
1774 ac_builddir=.
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1792 case $srcdir in
1793 .) # We are building in place.
1794 ac_srcdir=.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1801 *) # Relative name.
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1811 echo &&
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1816 else
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 fi || ac_status=$?
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1820 done
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825 cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.64
1829 Copyright (C) 2009 Free Software Foundation, Inc.
1830 This configure script is free software; the Free Software Foundation
1831 gives unlimited permission to copy, distribute and modify it.
1832 _ACEOF
1833 exit
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_c_try_compile
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=1
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
1914 } # ac_fn_cxx_try_compile
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1940 }; then :
1941 ac_retval=0
1942 else
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=1
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 return $ac_retval
1951 } # ac_fn_cxx_try_cpp
1953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # ---------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1957 # accordingly.
1958 ac_fn_cxx_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 else
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_cxx_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1981 else
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_cxx_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1997 else
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2006 yes:no: )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 no:yes:* )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=\$ac_header_compiler"
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_cxx_check_header_mongrel
2040 # ac_fn_cxx_try_run LINENO
2041 # ------------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_cxx_try_run ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2055 ac_status=$?
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2068 ac_retval=0
2069 else
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 return $ac_retval
2080 } # ac_fn_cxx_try_run
2082 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_cxx_check_header_compile ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_cxx_check_header_compile
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2116 ac_fn_c_try_cpp ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2120 case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev/null && {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 ac_retval=1
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 return $ac_retval
2148 } # ac_fn_c_try_cpp
2150 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2151 # ----------------------------------------------
2152 # Tries to find the compile-time value of EXPR in a program that includes
2153 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2154 # computed
2155 ac_fn_cxx_compute_int ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if test "$cross_compiling" = yes; then
2159 # Depending upon the size, compute the lo and hi bounds.
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 static int test_array [1 - 2 * !(($2) >= 0)];
2167 test_array [0] = 0
2170 return 0;
2172 _ACEOF
2173 if ac_fn_cxx_try_compile "$LINENO"; then :
2174 ac_lo=0 ac_mid=0
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 main ()
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183 test_array [0] = 0
2186 return 0;
2188 _ACEOF
2189 if ac_fn_cxx_try_compile "$LINENO"; then :
2190 ac_hi=$ac_mid; break
2191 else
2192 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193 if test $ac_lo -le $ac_mid; then
2194 ac_lo= ac_hi=
2195 break
2197 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 done
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 static int test_array [1 - 2 * !(($2) < 0)];
2209 test_array [0] = 0
2212 return 0;
2214 _ACEOF
2215 if ac_fn_cxx_try_compile "$LINENO"; then :
2216 ac_hi=-1 ac_mid=-1
2217 while :; do
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2222 main ()
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2225 test_array [0] = 0
2228 return 0;
2230 _ACEOF
2231 if ac_fn_cxx_try_compile "$LINENO"; then :
2232 ac_lo=$ac_mid; break
2233 else
2234 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2235 if test $ac_mid -le $ac_hi; then
2236 ac_lo= ac_hi=
2237 break
2239 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 done
2243 else
2244 ac_lo= ac_hi=
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 # Binary search between lo and hi bounds.
2250 while test "x$ac_lo" != "x$ac_hi"; do
2251 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2259 test_array [0] = 0
2262 return 0;
2264 _ACEOF
2265 if ac_fn_cxx_try_compile "$LINENO"; then :
2266 ac_hi=$ac_mid
2267 else
2268 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 done
2272 case $ac_lo in #((
2273 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274 '') ac_retval=1 ;;
2275 esac
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2280 static long int longval () { return $2; }
2281 static unsigned long int ulongval () { return $2; }
2282 #include <stdio.h>
2283 #include <stdlib.h>
2285 main ()
2288 FILE *f = fopen ("conftest.val", "w");
2289 if (! f)
2290 return 1;
2291 if (($2) < 0)
2293 long int i = longval ();
2294 if (i != ($2))
2295 return 1;
2296 fprintf (f, "%ld", i);
2298 else
2300 unsigned long int i = ulongval ();
2301 if (i != ($2))
2302 return 1;
2303 fprintf (f, "%lu", i);
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2310 return 0;
2312 _ACEOF
2313 if ac_fn_cxx_try_run "$LINENO"; then :
2314 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2315 else
2316 ac_retval=1
2318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2319 conftest.$ac_objext conftest.beam conftest.$ac_ext
2320 rm -f conftest.val
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 return $ac_retval
2326 } # ac_fn_cxx_compute_int
2328 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_cxx_check_type ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 eval "$3=no"
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2345 main ()
2347 if (sizeof ($2))
2348 return 0;
2350 return 0;
2352 _ACEOF
2353 if ac_fn_cxx_try_compile "$LINENO"; then :
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2358 main ()
2360 if (sizeof (($2)))
2361 return 0;
2363 return 0;
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2368 else
2369 eval "$3=yes"
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_cxx_check_type
2382 # ac_fn_c_find_intX_t LINENO BITS VAR
2383 # -----------------------------------
2384 # Finds a signed integer type with width BITS, setting cache variable VAR
2385 # accordingly.
2386 ac_fn_c_find_intX_t ()
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2390 $as_echo_n "checking for int$2_t... " >&6; }
2391 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2393 else
2394 eval "$3=no"
2395 for ac_type in int$2_t 'int' 'long int' \
2396 'long long int' 'short int' 'signed char'; do
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2401 main ()
2403 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2404 test_array [0] = 0
2407 return 0;
2409 _ACEOF
2410 if ac_fn_cxx_try_compile "$LINENO"; then :
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2415 main ()
2417 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2418 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2419 test_array [0] = 0
2422 return 0;
2424 _ACEOF
2425 if ac_fn_cxx_try_compile "$LINENO"; then :
2427 else
2428 case $ac_type in #(
2429 int$2_t) :
2430 eval "$3=yes" ;; #(
2431 *) :
2432 eval "$3=\$ac_type" ;;
2433 esac
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 eval as_val=\$$3
2439 if test "x$as_val" = x""no; then :
2441 else
2442 break
2444 done
2446 eval ac_res=\$$3
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 } # ac_fn_c_find_intX_t
2453 # ac_fn_cxx_try_link LINENO
2454 # -------------------------
2455 # Try to link conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_link ()
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 rm -f conftest.$ac_objext conftest$ac_exeext
2460 if { { ac_try="$ac_link"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2468 ac_status=$?
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2481 }; then :
2482 ac_retval=0
2483 else
2484 $as_echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 ac_retval=1
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495 return $ac_retval
2497 } # ac_fn_cxx_try_link
2499 # ac_fn_c_find_uintX_t LINENO BITS VAR
2500 # ------------------------------------
2501 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2502 # accordingly.
2503 ac_fn_c_find_uintX_t ()
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2507 $as_echo_n "checking for uint$2_t... " >&6; }
2508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 eval "$3=no"
2512 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2513 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2518 main ()
2520 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2521 test_array [0] = 0
2524 return 0;
2526 _ACEOF
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2528 case $ac_type in #(
2529 uint$2_t) :
2530 eval "$3=yes" ;; #(
2531 *) :
2532 eval "$3=\$ac_type" ;;
2533 esac
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 eval as_val=\$$3
2537 if test "x$as_val" = x""no; then :
2539 else
2540 break
2542 done
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_c_find_uintX_t
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 #include <$2>
2565 _ACEOF
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2571 rm -f conftest.err conftest.$ac_ext
2573 eval ac_res=\$$3
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_cxx_check_header_preproc
2580 # ac_fn_cxx_check_func LINENO FUNC VAR
2581 # ------------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_cxx_check_func ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2602 #ifdef __STDC__
2603 # include <limits.h>
2604 #else
2605 # include <assert.h>
2606 #endif
2608 #undef $2
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 char $2 ();
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2621 choke me
2622 #endif
2625 main ()
2627 return $2 ();
2629 return 0;
2631 _ACEOF
2632 if ac_fn_cxx_try_link "$LINENO"; then :
2633 eval "$3=yes"
2634 else
2635 eval "$3=no"
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2640 eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 } # ac_fn_cxx_check_func
2647 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2648 # --------------------------------------
2649 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2650 ac_fn_cxx_check_decl ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2664 main ()
2666 #ifndef $as_decl_name
2667 #ifdef __cplusplus
2668 (void) $as_decl_use;
2669 #else
2670 (void) $as_decl_name;
2671 #endif
2672 #endif
2675 return 0;
2677 _ACEOF
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 eval "$3=yes"
2680 else
2681 eval "$3=no"
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 } # ac_fn_cxx_check_decl
2692 # ac_fn_c_try_link LINENO
2693 # -----------------------
2694 # Try to link conftest.$ac_ext, and return whether this succeeded.
2695 ac_fn_c_try_link ()
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 rm -f conftest.$ac_objext conftest$ac_exeext
2699 if { { ac_try="$ac_link"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link") 2>conftest.err
2707 ac_status=$?
2708 if test -s conftest.err; then
2709 grep -v '^ *+' conftest.err >conftest.er1
2710 cat conftest.er1 >&5
2711 mv -f conftest.er1 conftest.err
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest$ac_exeext && {
2718 test "$cross_compiling" = yes ||
2719 $as_test_x conftest$ac_exeext
2720 }; then :
2721 ac_retval=0
2722 else
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 ac_retval=1
2728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2730 # interfere with the next link command; also delete a directory that is
2731 # left behind by Apple's compiler. We do this before executing the actions.
2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 return $ac_retval
2736 } # ac_fn_c_try_link
2738 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2739 # ----------------------------------------------
2740 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_preproc ()
2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2751 #include <$2>
2752 _ACEOF
2753 if ac_fn_c_try_cpp "$LINENO"; then :
2754 eval "$3=yes"
2755 else
2756 eval "$3=no"
2758 rm -f conftest.err conftest.$ac_ext
2760 eval ac_res=\$$3
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2765 } # ac_fn_c_check_header_preproc
2767 # ac_fn_c_check_func LINENO FUNC VAR
2768 # ----------------------------------
2769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2770 ac_fn_c_check_func ()
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2782 #define $2 innocuous_$2
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $2 (); below.
2786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 <limits.h> exists even on freestanding compilers. */
2789 #ifdef __STDC__
2790 # include <limits.h>
2791 #else
2792 # include <assert.h>
2793 #endif
2795 #undef $2
2797 /* Override any GCC internal prototype to avoid an error.
2798 Use char because int might match the return type of a GCC
2799 builtin and then its argument prototype would still apply. */
2800 #ifdef __cplusplus
2801 extern "C"
2802 #endif
2803 char $2 ();
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined __stub_$2 || defined __stub___$2
2808 choke me
2809 #endif
2812 main ()
2814 return $2 ();
2816 return 0;
2818 _ACEOF
2819 if ac_fn_c_try_link "$LINENO"; then :
2820 eval "$3=yes"
2821 else
2822 eval "$3=no"
2824 rm -f core conftest.err conftest.$ac_objext \
2825 conftest$ac_exeext conftest.$ac_ext
2827 eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2832 } # ac_fn_c_check_func
2833 cat >config.log <<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.64. Invocation command line was
2840 $ $0 $@
2842 _ACEOF
2843 exec 5>>config.log
2845 cat <<_ASUNAME
2846 ## --------- ##
2847 ## Platform. ##
2848 ## --------- ##
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2867 _ASUNAME
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 $as_echo "PATH: $as_dir"
2875 done
2876 IFS=$as_save_IFS
2878 } >&5
2880 cat >&5 <<_ACEOF
2883 ## ----------- ##
2884 ## Core tests. ##
2885 ## ----------- ##
2887 _ACEOF
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2895 ac_configure_args=
2896 ac_configure_args0=
2897 ac_configure_args1=
2898 ac_must_keep_next=false
2899 for ac_pass in 1 2
2901 for ac_arg
2903 case $ac_arg in
2904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2906 | -silent | --silent | --silen | --sile | --sil)
2907 continue ;;
2908 *\'*)
2909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2910 esac
2911 case $ac_pass in
2912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2914 as_fn_append ac_configure_args1 " '$ac_arg'"
2915 if test $ac_must_keep_next = true; then
2916 ac_must_keep_next=false # Got value, back to normal.
2917 else
2918 case $ac_arg in
2919 *=* | --config-cache | -C | -disable-* | --disable-* \
2920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2922 | -with-* | --with-* | -without-* | --without-* | --x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2925 esac
2927 -* ) ac_must_keep_next=true ;;
2928 esac
2930 as_fn_append ac_configure_args " '$ac_arg'"
2932 esac
2933 done
2934 done
2935 { ac_configure_args0=; unset ac_configure_args0;}
2936 { ac_configure_args1=; unset ac_configure_args1;}
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2946 echo
2948 cat <<\_ASBOX
2949 ## ---------------- ##
2950 ## Cache variables. ##
2951 ## ---------------- ##
2952 _ASBOX
2953 echo
2954 # The following way of writing the cache mishandles newlines in values,
2956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2957 eval ac_val=\$$ac_var
2958 case $ac_val in #(
2959 *${as_nl}*)
2960 case $ac_var in #(
2961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2963 esac
2964 case $ac_var in #(
2965 _ | IFS | as_nl) ;; #(
2966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967 *) { eval $ac_var=; unset $ac_var;} ;;
2968 esac ;;
2969 esac
2970 done
2971 (set) 2>&1 |
2972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2973 *${as_nl}ac_space=\ *)
2974 sed -n \
2975 "s/'\''/'\''\\\\'\'''\''/g;
2976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2977 ;; #(
2979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2981 esac |
2982 sort
2984 echo
2986 cat <<\_ASBOX
2987 ## ----------------- ##
2988 ## Output variables. ##
2989 ## ----------------- ##
2990 _ASBOX
2991 echo
2992 for ac_var in $ac_subst_vars
2994 eval ac_val=\$$ac_var
2995 case $ac_val in
2996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2997 esac
2998 $as_echo "$ac_var='\''$ac_val'\''"
2999 done | sort
3000 echo
3002 if test -n "$ac_subst_files"; then
3003 cat <<\_ASBOX
3004 ## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##
3007 _ASBOX
3008 echo
3009 for ac_var in $ac_subst_files
3011 eval ac_val=\$$ac_var
3012 case $ac_val in
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 esac
3015 $as_echo "$ac_var='\''$ac_val'\''"
3016 done | sort
3017 echo
3020 if test -s confdefs.h; then
3021 cat <<\_ASBOX
3022 ## ----------- ##
3023 ## confdefs.h. ##
3024 ## ----------- ##
3025 _ASBOX
3026 echo
3027 cat confdefs.h
3028 echo
3030 test "$ac_signal" != 0 &&
3031 $as_echo "$as_me: caught signal $ac_signal"
3032 $as_echo "$as_me: exit $exit_status"
3033 } >&5
3034 rm -f core *.core core.conftest.* &&
3035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3036 exit $exit_status
3038 for ac_signal in 1 2 13 15; do
3039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3040 done
3041 ac_signal=0
3043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3044 rm -f -r conftest* confdefs.h
3046 $as_echo "/* confdefs.h */" > confdefs.h
3048 # Predefined preprocessor variables.
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_NAME "$PACKAGE_NAME"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_STRING "$PACKAGE_STRING"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3068 _ACEOF
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_URL "$PACKAGE_URL"
3072 _ACEOF
3075 # Let the site file select an alternate cache file if it wants to.
3076 # Prefer an explicitly selected file to automatically selected ones.
3077 ac_site_file1=NONE
3078 ac_site_file2=NONE
3079 if test -n "$CONFIG_SITE"; then
3080 ac_site_file1=$CONFIG_SITE
3081 elif test "x$prefix" != xNONE; then
3082 ac_site_file1=$prefix/share/config.site
3083 ac_site_file2=$prefix/etc/config.site
3084 else
3085 ac_site_file1=$ac_default_prefix/share/config.site
3086 ac_site_file2=$ac_default_prefix/etc/config.site
3088 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3090 test "x$ac_site_file" = xNONE && continue
3091 if test -r "$ac_site_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3094 sed 's/^/| /' "$ac_site_file" >&5
3095 . "$ac_site_file"
3097 done
3099 if test -r "$cache_file"; then
3100 # Some versions of bash will fail to source /dev/null (special
3101 # files actually), so we avoid doing that.
3102 if test -f "$cache_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3104 $as_echo "$as_me: loading cache $cache_file" >&6;}
3105 case $cache_file in
3106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3107 *) . "./$cache_file";;
3108 esac
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3112 $as_echo "$as_me: creating cache $cache_file" >&6;}
3113 >$cache_file
3116 # Check that the precious variables saved in the cache have kept the same
3117 # value.
3118 ac_cache_corrupted=false
3119 for ac_var in $ac_precious_vars; do
3120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3121 eval ac_new_set=\$ac_env_${ac_var}_set
3122 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3123 eval ac_new_val=\$ac_env_${ac_var}_value
3124 case $ac_old_set,$ac_new_set in
3125 set,)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,set)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3132 ac_cache_corrupted=: ;;
3133 ,);;
3135 if test "x$ac_old_val" != "x$ac_new_val"; then
3136 # differences in whitespace do not lead to failure.
3137 ac_old_val_w=`echo x $ac_old_val`
3138 ac_new_val_w=`echo x $ac_new_val`
3139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3142 ac_cache_corrupted=:
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3146 eval $ac_var=\$ac_old_val
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3152 fi;;
3153 esac
3154 # Pass precious variables to config.status.
3155 if test "$ac_new_set" = set; then
3156 case $ac_new_val in
3157 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 *) ac_arg=$ac_var=$ac_new_val ;;
3159 esac
3160 case " $ac_configure_args " in
3161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3162 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3163 esac
3165 done
3166 if $ac_cache_corrupted; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3171 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3173 ## -------------------- ##
3174 ## Main body of script. ##
3175 ## -------------------- ##
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3191 gcc_version=`cat $srcdir/BASE-VER`
3193 # Determine the host, build, and target systems
3194 ac_aux_dir=
3195 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3196 for ac_t in install-sh install.sh shtool; do
3197 if test -f "$ac_dir/$ac_t"; then
3198 ac_aux_dir=$ac_dir
3199 ac_install_sh="$ac_aux_dir/$ac_t -c"
3200 break 2
3202 done
3203 done
3204 if test -z "$ac_aux_dir"; then
3205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3208 # These three variables are undocumented and unsupported,
3209 # and are intended to be withdrawn in a future Autoconf release.
3210 # They can cause serious problems if a builder's source tree is in a directory
3211 # whose full name contains unusual characters.
3212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3217 # Make sure we can run config.sub.
3218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3222 $as_echo_n "checking build system type... " >&6; }
3223 if test "${ac_cv_build+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 ac_build_alias=$build_alias
3227 test "x$ac_build_alias" = x &&
3228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3229 test "x$ac_build_alias" = x &&
3230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3236 $as_echo "$ac_cv_build" >&6; }
3237 case $ac_cv_build in
3238 *-*-*) ;;
3239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3240 esac
3241 build=$ac_cv_build
3242 ac_save_IFS=$IFS; IFS='-'
3243 set x $ac_cv_build
3244 shift
3245 build_cpu=$1
3246 build_vendor=$2
3247 shift; shift
3248 # Remember, the first character of IFS is used to create $*,
3249 # except with old shells:
3250 build_os=$*
3251 IFS=$ac_save_IFS
3252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3256 $as_echo_n "checking host system type... " >&6; }
3257 if test "${ac_cv_host+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test "x$host_alias" = x; then
3261 ac_cv_host=$ac_cv_build
3262 else
3263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3264 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 $as_echo "$ac_cv_host" >&6; }
3270 case $ac_cv_host in
3271 *-*-*) ;;
3272 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3273 esac
3274 host=$ac_cv_host
3275 ac_save_IFS=$IFS; IFS='-'
3276 set x $ac_cv_host
3277 shift
3278 host_cpu=$1
3279 host_vendor=$2
3280 shift; shift
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3283 host_os=$*
3284 IFS=$ac_save_IFS
3285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3289 $as_echo_n "checking target system type... " >&6; }
3290 if test "${ac_cv_target+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test "x$target_alias" = x; then
3294 ac_cv_target=$ac_cv_host
3295 else
3296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3297 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3302 $as_echo "$ac_cv_target" >&6; }
3303 case $ac_cv_target in
3304 *-*-*) ;;
3305 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3306 esac
3307 target=$ac_cv_target
3308 ac_save_IFS=$IFS; IFS='-'
3309 set x $ac_cv_target
3310 shift
3311 target_cpu=$1
3312 target_vendor=$2
3313 shift; shift
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3316 target_os=$*
3317 IFS=$ac_save_IFS
3318 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3321 # The aliases save the names the user supplied, while $host etc.
3322 # will get canonicalized.
3323 test -n "$target_alias" &&
3324 test "$program_prefix$program_suffix$program_transform_name" = \
3325 NONENONEs,x,x, &&
3326 program_prefix=${target_alias}-
3328 # Determine the noncanonical host name, for Ada.
3329 case ${build_alias} in
3330 "") build_noncanonical=${build} ;;
3331 *) build_noncanonical=${build_alias} ;;
3332 esac
3334 case ${host_alias} in
3335 "") host_noncanonical=${build_noncanonical} ;;
3336 *) host_noncanonical=${host_alias} ;;
3337 esac
3342 # Determine the noncanonical target name, for directory use.
3343 case ${target_alias} in
3344 "") target_noncanonical=${host_noncanonical} ;;
3345 *) target_noncanonical=${target_alias} ;;
3346 esac
3351 # Used for constructing correct paths for offload compilers.
3352 real_target_noncanonical=${target_noncanonical}
3353 accel_dir_suffix=
3355 # Determine the target- and build-specific subdirectories
3357 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3358 # have matching libraries, they should use host libraries: Makefile.tpl
3359 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3360 # However, they still use the build modules, because the corresponding
3361 # host modules (e.g. bison) are only built for the host when bootstrap
3362 # finishes. So:
3363 # - build_subdir is where we find build modules, and never changes.
3364 # - build_libsubdir is where we find build libraries, and can be overridden.
3366 # Prefix 'build-' so this never conflicts with target_subdir.
3367 build_subdir="build-${build_noncanonical}"
3369 # Check whether --with-build-libsubdir was given.
3370 if test "${with_build_libsubdir+set}" = set; then :
3371 withval=$with_build_libsubdir; build_libsubdir="$withval"
3372 else
3373 build_libsubdir="$build_subdir"
3376 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3377 if ( test $srcdir = . && test -d gcc ) \
3378 || test -d $srcdir/../host-${host_noncanonical}; then
3379 host_subdir="host-${host_noncanonical}"
3380 else
3381 host_subdir=.
3383 # No prefix.
3384 target_subdir=${target_noncanonical}
3387 # Set program_transform_name
3388 test "$program_prefix" != NONE &&
3389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE &&
3392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3399 # Check for bogus environment variables.
3400 # Test if LIBRARY_PATH contains the notation for the current directory
3401 # since this would lead to problems installing/building glibc.
3402 # LIBRARY_PATH contains the current directory if one of the following
3403 # is true:
3404 # - one of the terminals (":" and ";") is the first or last sign
3405 # - two terminals occur directly after each other
3406 # - the path contains an element with a dot in it
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3408 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3409 case ${LIBRARY_PATH} in
3410 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3411 library_path_setting="contains current directory"
3414 library_path_setting="ok"
3416 esac
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3418 $as_echo "$library_path_setting" >&6; }
3419 if test "$library_path_setting" != "ok"; then
3420 as_fn_error "
3421 *** LIBRARY_PATH shouldn't contain the current directory when
3422 *** building gcc. Please change the environment variable
3423 *** and run configure again." "$LINENO" 5
3426 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # GCC_EXEC_PREFIX contains the current directory if one of the following
3429 # is true:
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3434 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3435 case ${GCC_EXEC_PREFIX} in
3436 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3437 gcc_exec_prefix_setting="contains current directory"
3440 gcc_exec_prefix_setting="ok"
3442 esac
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3444 $as_echo "$gcc_exec_prefix_setting" >&6; }
3445 if test "$gcc_exec_prefix_setting" != "ok"; then
3446 as_fn_error "
3447 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3452 # -----------
3453 # Directories
3454 # -----------
3456 # Specify the local prefix
3457 local_prefix=
3459 # Check whether --with-local-prefix was given.
3460 if test "${with_local_prefix+set}" = set; then :
3461 withval=$with_local_prefix; case "${withval}" in
3462 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3463 no) ;;
3464 *) local_prefix=$with_local_prefix ;;
3465 esac
3469 # Default local prefix if it is empty
3470 if test x$local_prefix = x; then
3471 local_prefix=/usr/local
3475 # Check whether --with-native-system-header-dir was given.
3476 if test "${with_native_system_header_dir+set}" = set; then :
3477 withval=$with_native_system_header_dir;
3478 case ${with_native_system_header_dir} in
3479 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3480 /* | [A-Za-z]:[\\/]*) ;;
3481 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3482 esac
3483 configured_native_system_header_dir="${withval}"
3485 else
3486 configured_native_system_header_dir=
3491 # Check whether --with-build-sysroot was given.
3492 if test "${with_build_sysroot+set}" = set; then :
3493 withval=$with_build_sysroot; if test x"$withval" != x ; then
3494 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3496 else
3497 SYSROOT_CFLAGS_FOR_TARGET=
3502 if test "x$prefix" = xNONE; then
3503 test_prefix=/usr/local
3504 else
3505 test_prefix=$prefix
3507 if test "x$exec_prefix" = xNONE; then
3508 test_exec_prefix=$test_prefix
3509 else
3510 test_exec_prefix=$exec_prefix
3514 # Check whether --with-sysroot was given.
3515 if test "${with_sysroot+set}" = set; then :
3516 withval=$with_sysroot;
3517 case ${with_sysroot} in
3518 /) ;;
3519 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3520 esac
3521 case ${with_sysroot} in
3522 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3523 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3524 esac
3526 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3527 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3529 case ${TARGET_SYSTEM_ROOT} in
3530 "${test_prefix}"|"${test_prefix}/"*|\
3531 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3532 '${prefix}'|'${prefix}/'*|\
3533 '${exec_prefix}'|'${exec_prefix}/'*)
3534 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3535 TARGET_SYSTEM_ROOT_DEFINE="$t"
3537 esac
3539 else
3541 TARGET_SYSTEM_ROOT=
3542 TARGET_SYSTEM_ROOT_DEFINE=
3543 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3551 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3552 # passed in by the toplevel make and thus we'd get different behavior
3553 # depending on where we built the sources.
3554 gcc_gxx_include_dir=
3555 # Specify the g++ header file directory
3557 # Check whether --with-gxx-include-dir was given.
3558 if test "${with_gxx_include_dir+set}" = set; then :
3559 withval=$with_gxx_include_dir; case "${withval}" in
3560 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3561 no) ;;
3562 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3563 esac
3567 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3568 if test x${gcc_gxx_include_dir} = x; then
3569 if test x${enable_version_specific_runtime_libs} = xyes; then
3570 gcc_gxx_include_dir='${libsubdir}/include/c++'
3571 else
3572 libstdcxx_incdir='include/c++/$(version)'
3573 if test x$host != x$target; then
3574 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3576 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3580 gcc_gxx_include_dir_add_sysroot=0
3581 if test "${with_sysroot+set}" = set; then
3582 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3583 if test "${gcc_gxx_without_sysroot}"; then
3584 if test x${with_sysroot} != x/; then
3585 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3587 gcc_gxx_include_dir_add_sysroot=1
3592 # Check whether --with-cpp_install_dir was given.
3593 if test "${with_cpp_install_dir+set}" = set; then :
3594 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3595 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3596 elif test x$withval != xno; then
3597 cpp_install_dir=$withval
3602 # We would like to our source tree to be readonly. However when releases or
3603 # pre-releases are generated, the flex/bison generated files as well as the
3604 # various formats of manuals need to be included along with the rest of the
3605 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3606 # just that.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3609 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3610 # Check whether --enable-generated-files-in-srcdir was given.
3611 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3612 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3613 else
3614 generated_files_in_srcdir=no
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3619 $as_echo "$generated_files_in_srcdir" >&6; }
3621 if test "$generated_files_in_srcdir" = "yes"; then
3622 GENINSRC=''
3623 else
3624 GENINSRC='#'
3628 # -------------------
3629 # Find default linker
3630 # -------------------
3632 # With GNU ld
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3637 else
3638 gnu_ld_flag=no
3642 case $target in
3643 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3644 *) ld64_flag=no;;
3645 esac
3647 # With pre-defined ld
3649 # Check whether --with-ld was given.
3650 if test "${with_ld+set}" = set; then :
3651 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3654 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3655 if test ! -x "$DEFAULT_LINKER"; then
3656 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3657 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3658 gnu_ld_flag=yes
3659 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3660 ld64_flag=yes
3663 cat >>confdefs.h <<_ACEOF
3664 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3665 _ACEOF
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3670 $as_echo_n "checking whether a default linker was specified... " >&6; }
3671 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3672 if test x"$gnu_ld_flag" = x"no"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3674 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3677 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3684 # With demangler in GNU ld
3686 # Check whether --with-demangler-in-ld was given.
3687 if test "${with_demangler_in_ld+set}" = set; then :
3688 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3689 else
3690 demangler_in_ld=yes
3694 # ----------------------
3695 # Find default assembler
3696 # ----------------------
3698 # With GNU as
3700 # Check whether --with-gnu-as was given.
3701 if test "${with_gnu_as+set}" = set; then :
3702 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3703 else
3704 gas_flag=no
3709 # Check whether --with-as was given.
3710 if test "${with_as+set}" = set; then :
3711 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3714 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3715 if test ! -x "$DEFAULT_ASSEMBLER"; then
3716 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3717 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3718 gas_flag=yes
3721 cat >>confdefs.h <<_ACEOF
3722 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3723 _ACEOF
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3728 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3729 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3730 if test x"$gas_flag" = x"no"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3732 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3735 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3742 # ---------------
3743 # Find C compiler
3744 # ---------------
3746 # If a non-executable a.out is present (e.g. created by GNU as above even if
3747 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3748 # file, even when creating an executable, so an execution test fails.
3749 # Remove possible default executable files to avoid this.
3751 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3752 # Autoconf includes it.
3753 rm -f a.out a.exe b.out
3755 # Find the native compiler
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if test "${ac_cv_prog_CC+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 if test -n "$CC"; then
3770 ac_cv_prog_CC="$CC" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3783 done
3784 done
3785 IFS=$as_save_IFS
3789 CC=$ac_cv_prog_CC
3790 if test -n "$CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3792 $as_echo "$CC" >&6; }
3793 else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3800 if test -z "$ac_cv_prog_CC"; then
3801 ac_ct_CC=$CC
3802 # Extract the first word of "gcc", so it can be a program name with args.
3803 set dummy gcc; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 if test -n "$ac_ct_CC"; then
3810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_ac_ct_CC="gcc"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3823 done
3824 done
3825 IFS=$as_save_IFS
3829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3830 if test -n "$ac_ct_CC"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3832 $as_echo "$ac_ct_CC" >&6; }
3833 else
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3838 if test "x$ac_ct_CC" = x; then
3839 CC=""
3840 else
3841 case $cross_compiling:$ac_tool_warned in
3842 yes:)
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3846 esac
3847 CC=$ac_ct_CC
3849 else
3850 CC="$ac_cv_prog_CC"
3853 if test -z "$CC"; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3856 set dummy ${ac_tool_prefix}cc; ac_word=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if test "${ac_cv_prog_CC+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3861 else
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC="$CC" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_prog_CC="${ac_tool_prefix}cc"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3876 done
3877 done
3878 IFS=$as_save_IFS
3882 CC=$ac_cv_prog_CC
3883 if test -n "$CC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3885 $as_echo "$CC" >&6; }
3886 else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3894 if test -z "$CC"; then
3895 # Extract the first word of "cc", so it can be a program name with args.
3896 set dummy cc; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if test "${ac_cv_prog_CC+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 else
3905 ac_prog_rejected=no
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3914 ac_prog_rejected=yes
3915 continue
3917 ac_cv_prog_CC="cc"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3921 done
3922 done
3923 IFS=$as_save_IFS
3925 if test $ac_prog_rejected = yes; then
3926 # We found a bogon in the path, so make sure we never use it.
3927 set dummy $ac_cv_prog_CC
3928 shift
3929 if test $# != 0; then
3930 # We chose a different compiler from the bogus one.
3931 # However, it has the same basename, so the bogon will be chosen
3932 # first if we set CC to just the basename; use the full file name.
3933 shift
3934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3939 CC=$ac_cv_prog_CC
3940 if test -n "$CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 $as_echo "$CC" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3950 if test -z "$CC"; then
3951 if test -n "$ac_tool_prefix"; then
3952 for ac_prog in cl.exe
3954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_CC+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 if test -n "$CC"; then
3962 ac_cv_prog_CC="$CC" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3975 done
3976 done
3977 IFS=$as_save_IFS
3981 CC=$ac_cv_prog_CC
3982 if test -n "$CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3984 $as_echo "$CC" >&6; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3991 test -n "$CC" && break
3992 done
3994 if test -z "$CC"; then
3995 ac_ct_CC=$CC
3996 for ac_prog in cl.exe
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999 set dummy $ac_prog; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -n "$ac_ct_CC"; then
4006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_ac_ct_CC="$ac_prog"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4019 done
4020 done
4021 IFS=$as_save_IFS
4025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4026 if test -n "$ac_ct_CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4028 $as_echo "$ac_ct_CC" >&6; }
4029 else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4035 test -n "$ac_ct_CC" && break
4036 done
4038 if test "x$ac_ct_CC" = x; then
4039 CC=""
4040 else
4041 case $cross_compiling:$ac_tool_warned in
4042 yes:)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned=yes ;;
4046 esac
4047 CC=$ac_ct_CC
4054 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "no acceptable C compiler found in \$PATH
4057 See \`config.log' for more details." "$LINENO" 5; }
4059 # Provide some information about the compiler.
4060 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4061 set X $ac_compile
4062 ac_compiler=$2
4063 for ac_option in --version -v -V -qversion; do
4064 { { ac_try="$ac_compiler $ac_option >&5"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070 $as_echo "$ac_try_echo"; } >&5
4071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4072 ac_status=$?
4073 if test -s conftest.err; then
4074 sed '10a\
4075 ... rest of stderr output deleted ...
4076 10q' conftest.err >conftest.er1
4077 cat conftest.er1 >&5
4078 rm -f conftest.er1 conftest.err
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }
4082 done
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 main ()
4092 return 0;
4094 _ACEOF
4095 ac_clean_files_save=$ac_clean_files
4096 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4097 # Try to create an executable without -o first, disregard a.out.
4098 # It will help us diagnose broken compilers, and finding out an intuition
4099 # of exeext.
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4101 $as_echo_n "checking for C compiler default output file name... " >&6; }
4102 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4104 # The possible output files:
4105 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4107 ac_rmfiles=
4108 for ac_file in $ac_files
4110 case $ac_file in
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4112 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4113 esac
4114 done
4115 rm -f $ac_rmfiles
4117 if { { ac_try="$ac_link_default"
4118 case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121 esac
4122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123 $as_echo "$ac_try_echo"; } >&5
4124 (eval "$ac_link_default") 2>&5
4125 ac_status=$?
4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127 test $ac_status = 0; }; then :
4128 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4129 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4130 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4131 # so that the user can short-circuit this test for compilers unknown to
4132 # Autoconf.
4133 for ac_file in $ac_files ''
4135 test -f "$ac_file" || continue
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4139 [ab].out )
4140 # We found the default executable, but exeext='' is most
4141 # certainly right.
4142 break;;
4143 *.* )
4144 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4145 then :; else
4146 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4148 # We set ac_cv_exeext here because the later test for it is not
4149 # safe: cross compilers may not add the suffix if given an `-o'
4150 # argument, so we may need to know it at that point already.
4151 # Even if this section looks crufty: it has the advantage of
4152 # actually working.
4153 break;;
4155 break;;
4156 esac
4157 done
4158 test "$ac_cv_exeext" = no && ac_cv_exeext=
4160 else
4161 ac_file=''
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4164 $as_echo "$ac_file" >&6; }
4165 if test -z "$ac_file"; then :
4166 $as_echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 { as_fn_set_status 77
4172 as_fn_error "C compiler cannot create executables
4173 See \`config.log' for more details." "$LINENO" 5; }; }
4175 ac_exeext=$ac_cv_exeext
4177 # Check that the compiler produces executables we can run. If not, either
4178 # the compiler is broken, or we cross compile.
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4180 $as_echo_n "checking whether the C compiler works... " >&6; }
4181 # If not cross compiling, check that we can run a simple program.
4182 if test "$cross_compiling" != yes; then
4183 if { ac_try='./$ac_file'
4184 { { case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 $as_echo "$ac_try_echo"; } >&5
4190 (eval "$ac_try") 2>&5
4191 ac_status=$?
4192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }; }; then
4194 cross_compiling=no
4195 else
4196 if test "$cross_compiling" = maybe; then
4197 cross_compiling=yes
4198 else
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error "cannot run C compiled programs.
4202 If you meant to cross compile, use \`--host'.
4203 See \`config.log' for more details." "$LINENO" 5; }
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4208 $as_echo "yes" >&6; }
4210 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4211 ac_clean_files=$ac_clean_files_save
4212 # Check that the compiler produces executables we can run. If not, either
4213 # the compiler is broken, or we cross compile.
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4215 $as_echo_n "checking whether we are cross compiling... " >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4217 $as_echo "$cross_compiling" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4220 $as_echo_n "checking for suffix of executables... " >&6; }
4221 if { { ac_try="$ac_link"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_link") 2>&5
4229 ac_status=$?
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }; then :
4232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4233 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4234 # work properly (i.e., refer to `conftest.exe'), while it won't with
4235 # `rm'.
4236 for ac_file in conftest.exe conftest conftest.*; do
4237 test -f "$ac_file" || continue
4238 case $ac_file in
4239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4241 break;;
4242 * ) break;;
4243 esac
4244 done
4245 else
4246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248 as_fn_error "cannot compute suffix of executables: cannot compile and link
4249 See \`config.log' for more details." "$LINENO" 5; }
4251 rm -f conftest$ac_cv_exeext
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4253 $as_echo "$ac_cv_exeext" >&6; }
4255 rm -f conftest.$ac_ext
4256 EXEEXT=$ac_cv_exeext
4257 ac_exeext=$EXEEXT
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4259 $as_echo_n "checking for suffix of object files... " >&6; }
4260 if test "${ac_cv_objext+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4267 main ()
4271 return 0;
4273 _ACEOF
4274 rm -f conftest.o conftest.obj
4275 if { { ac_try="$ac_compile"
4276 case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_compile") 2>&5
4283 ac_status=$?
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; }; then :
4286 for ac_file in conftest.o conftest.obj conftest.*; do
4287 test -f "$ac_file" || continue;
4288 case $ac_file in
4289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4291 break;;
4292 esac
4293 done
4294 else
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error "cannot compute suffix of object files: cannot compile
4301 See \`config.log' for more details." "$LINENO" 5; }
4303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4306 $as_echo "$ac_cv_objext" >&6; }
4307 OBJEXT=$ac_cv_objext
4308 ac_objext=$OBJEXT
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4311 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4318 main ()
4320 #ifndef __GNUC__
4321 choke me
4322 #endif
4325 return 0;
4327 _ACEOF
4328 if ac_fn_c_try_compile "$LINENO"; then :
4329 ac_compiler_gnu=yes
4330 else
4331 ac_compiler_gnu=no
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4339 if test $ac_compiler_gnu = yes; then
4340 GCC=yes
4341 else
4342 GCC=
4344 ac_test_CFLAGS=${CFLAGS+set}
4345 ac_save_CFLAGS=$CFLAGS
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4348 if test "${ac_cv_prog_cc_g+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 ac_save_c_werror_flag=$ac_c_werror_flag
4352 ac_c_werror_flag=yes
4353 ac_cv_prog_cc_g=no
4354 CFLAGS="-g"
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4359 main ()
4363 return 0;
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367 ac_cv_prog_cc_g=yes
4368 else
4369 CFLAGS=""
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4374 main ()
4378 return 0;
4380 _ACEOF
4381 if ac_fn_c_try_compile "$LINENO"; then :
4383 else
4384 ac_c_werror_flag=$ac_save_c_werror_flag
4385 CFLAGS="-g"
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4390 main ()
4394 return 0;
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398 ac_cv_prog_cc_g=yes
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_c_werror_flag=$ac_save_c_werror_flag
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4408 $as_echo "$ac_cv_prog_cc_g" >&6; }
4409 if test "$ac_test_CFLAGS" = set; then
4410 CFLAGS=$ac_save_CFLAGS
4411 elif test $ac_cv_prog_cc_g = yes; then
4412 if test "$GCC" = yes; then
4413 CFLAGS="-g -O2"
4414 else
4415 CFLAGS="-g"
4417 else
4418 if test "$GCC" = yes; then
4419 CFLAGS="-O2"
4420 else
4421 CFLAGS=
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4426 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 ac_cv_prog_cc_c89=no
4430 ac_save_CC=$CC
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #include <stdarg.h>
4434 #include <stdio.h>
4435 #include <sys/types.h>
4436 #include <sys/stat.h>
4437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4438 struct buf { int x; };
4439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4440 static char *e (p, i)
4441 char **p;
4442 int i;
4444 return p[i];
4446 static char *f (char * (*g) (char **, int), char **p, ...)
4448 char *s;
4449 va_list v;
4450 va_start (v,p);
4451 s = g (p, va_arg (v,int));
4452 va_end (v);
4453 return s;
4456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4457 function prototypes and stuff, but not '\xHH' hex character constants.
4458 These don't provoke an error unfortunately, instead are silently treated
4459 as 'x'. The following induces an error, until -std is added to get
4460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4461 array size at least. It's necessary to write '\x00'==0 to get something
4462 that's true only with -std. */
4463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4466 inside strings and character constants. */
4467 #define FOO(x) 'x'
4468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4470 int test (int i, double x);
4471 struct s1 {int (*f) (int a);};
4472 struct s2 {int (*f) (double a);};
4473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4474 int argc;
4475 char **argv;
4477 main ()
4479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4481 return 0;
4483 _ACEOF
4484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4487 CC="$ac_save_CC $ac_arg"
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_prog_cc_c89=$ac_arg
4491 rm -f core conftest.err conftest.$ac_objext
4492 test "x$ac_cv_prog_cc_c89" != "xno" && break
4493 done
4494 rm -f conftest.$ac_ext
4495 CC=$ac_save_CC
4498 # AC_CACHE_VAL
4499 case "x$ac_cv_prog_cc_c89" in
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4502 $as_echo "none needed" >&6; } ;;
4503 xno)
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4505 $as_echo "unsupported" >&6; } ;;
4507 CC="$CC $ac_cv_prog_cc_c89"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4510 esac
4511 if test "x$ac_cv_prog_cc_c89" != xno; then :
4515 ac_ext=c
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 ac_ext=cpp
4522 ac_cpp='$CXXCPP $CPPFLAGS'
4523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526 if test -z "$CXX"; then
4527 if test -n "$CCC"; then
4528 CXX=$CCC
4529 else
4530 if test -n "$ac_tool_prefix"; then
4531 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CXX+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 if test -n "$CXX"; then
4541 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4554 done
4555 done
4556 IFS=$as_save_IFS
4560 CXX=$ac_cv_prog_CXX
4561 if test -n "$CXX"; then
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4563 $as_echo "$CXX" >&6; }
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4570 test -n "$CXX" && break
4571 done
4573 if test -z "$CXX"; then
4574 ac_ct_CXX=$CXX
4575 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580 $as_echo_n "checking for $ac_word... " >&6; }
4581 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 if test -n "$ac_ct_CXX"; then
4585 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_ac_ct_CXX="$ac_prog"
4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4598 done
4599 done
4600 IFS=$as_save_IFS
4604 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4605 if test -n "$ac_ct_CXX"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4607 $as_echo "$ac_ct_CXX" >&6; }
4608 else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4614 test -n "$ac_ct_CXX" && break
4615 done
4617 if test "x$ac_ct_CXX" = x; then
4618 CXX="g++"
4619 else
4620 case $cross_compiling:$ac_tool_warned in
4621 yes:)
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624 ac_tool_warned=yes ;;
4625 esac
4626 CXX=$ac_ct_CXX
4632 # Provide some information about the compiler.
4633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4634 set X $ac_compile
4635 ac_compiler=$2
4636 for ac_option in --version -v -V -qversion; do
4637 { { ac_try="$ac_compiler $ac_option >&5"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4645 ac_status=$?
4646 if test -s conftest.err; then
4647 sed '10a\
4648 ... rest of stderr output deleted ...
4649 10q' conftest.err >conftest.er1
4650 cat conftest.er1 >&5
4651 rm -f conftest.er1 conftest.err
4653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }
4655 done
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4658 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4666 main ()
4668 #ifndef __GNUC__
4669 choke me
4670 #endif
4673 return 0;
4675 _ACEOF
4676 if ac_fn_cxx_try_compile "$LINENO"; then :
4677 ac_compiler_gnu=yes
4678 else
4679 ac_compiler_gnu=no
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4686 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4687 if test $ac_compiler_gnu = yes; then
4688 GXX=yes
4689 else
4690 GXX=
4692 ac_test_CXXFLAGS=${CXXFLAGS+set}
4693 ac_save_CXXFLAGS=$CXXFLAGS
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4695 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4696 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4700 ac_cxx_werror_flag=yes
4701 ac_cv_prog_cxx_g=no
4702 CXXFLAGS="-g"
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4707 main ()
4711 return 0;
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4715 ac_cv_prog_cxx_g=yes
4716 else
4717 CXXFLAGS=""
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4722 main ()
4726 return 0;
4728 _ACEOF
4729 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 else
4732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4733 CXXFLAGS="-g"
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4738 main ()
4742 return 0;
4744 _ACEOF
4745 if ac_fn_cxx_try_compile "$LINENO"; then :
4746 ac_cv_prog_cxx_g=yes
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4756 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4757 if test "$ac_test_CXXFLAGS" = set; then
4758 CXXFLAGS=$ac_save_CXXFLAGS
4759 elif test $ac_cv_prog_cxx_g = yes; then
4760 if test "$GXX" = yes; then
4761 CXXFLAGS="-g -O2"
4762 else
4763 CXXFLAGS="-g"
4765 else
4766 if test "$GXX" = yes; then
4767 CXXFLAGS="-O2"
4768 else
4769 CXXFLAGS=
4772 ac_ext=c
4773 ac_cpp='$CPP $CPPFLAGS'
4774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4783 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if test -n "$GNATBIND"; then
4790 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4803 done
4804 done
4805 IFS=$as_save_IFS
4809 GNATBIND=$ac_cv_prog_GNATBIND
4810 if test -n "$GNATBIND"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4812 $as_echo "$GNATBIND" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$ac_cv_prog_GNATBIND"; then
4821 ac_ct_GNATBIND=$GNATBIND
4822 # Extract the first word of "gnatbind", so it can be a program name with args.
4823 set dummy gnatbind; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 if test -n "$ac_ct_GNATBIND"; then
4830 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4843 done
4844 done
4845 IFS=$as_save_IFS
4849 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4850 if test -n "$ac_ct_GNATBIND"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4852 $as_echo "$ac_ct_GNATBIND" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4858 if test "x$ac_ct_GNATBIND" = x; then
4859 GNATBIND="no"
4860 else
4861 case $cross_compiling:$ac_tool_warned in
4862 yes:)
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4865 ac_tool_warned=yes ;;
4866 esac
4867 GNATBIND=$ac_ct_GNATBIND
4869 else
4870 GNATBIND="$ac_cv_prog_GNATBIND"
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4875 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$GNATMAKE"; then
4882 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4897 IFS=$as_save_IFS
4901 GNATMAKE=$ac_cv_prog_GNATMAKE
4902 if test -n "$GNATMAKE"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4904 $as_echo "$GNATMAKE" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4912 if test -z "$ac_cv_prog_GNATMAKE"; then
4913 ac_ct_GNATMAKE=$GNATMAKE
4914 # Extract the first word of "gnatmake", so it can be a program name with args.
4915 set dummy gnatmake; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$ac_ct_GNATMAKE"; then
4922 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4937 IFS=$as_save_IFS
4941 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4942 if test -n "$ac_ct_GNATMAKE"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4944 $as_echo "$ac_ct_GNATMAKE" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4950 if test "x$ac_ct_GNATMAKE" = x; then
4951 GNATMAKE="no"
4952 else
4953 case $cross_compiling:$ac_tool_warned in
4954 yes:)
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned=yes ;;
4958 esac
4959 GNATMAKE=$ac_ct_GNATMAKE
4961 else
4962 GNATMAKE="$ac_cv_prog_GNATMAKE"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4966 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4967 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 cat >conftest.adb <<EOF
4971 procedure conftest is begin null; end conftest;
4973 acx_cv_cc_gcc_supports_ada=no
4974 # There is a bug in old released versions of GCC which causes the
4975 # driver to exit successfully when the appropriate language module
4976 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4977 # Therefore we must check for the error message as well as an
4978 # unsuccessful exit.
4979 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4980 # given a .adb file, but produce no object file. So we must check
4981 # if an object file was really produced to guard against this.
4982 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4983 if test x"$errors" = x && test -f conftest.$ac_objext; then
4984 acx_cv_cc_gcc_supports_ada=yes
4986 rm -f conftest.*
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4989 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4991 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4992 have_gnat=yes
4993 else
4994 have_gnat=no
4998 # Do configure tests with the C++ compiler, since that's what we build with.
4999 ac_ext=cpp
5000 ac_cpp='$CXXCPP $CPPFLAGS'
5001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5006 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5007 # optimizations to be activated explicitly by the toplevel.
5008 case "$CC" in
5009 */prev-gcc/xgcc*) ;;
5010 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5011 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5012 esac
5016 # Determine PICFLAG for target gnatlib.
5021 case "${target}" in
5022 # PIC is the default on some targets or must not be used.
5023 *-*-darwin*)
5024 # For darwin, common symbols are not allowed in MH_DYLIB files
5025 case "${CFLAGS}" in
5026 # If we are using a compiler supporting mdynamic-no-pic
5027 # and the option has been tested as safe to add, then cancel
5028 # it here, since the code generated is incompatible with shared
5029 # libs.
5030 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5031 *) PICFLAG_FOR_TARGET=-fno-common ;;
5032 esac
5034 alpha*-dec-osf5*)
5035 # PIC is the default.
5037 hppa*64*-*-hpux*)
5038 # PIC is the default for 64-bit PA HP-UX.
5040 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5042 i[34567]86-*-mingw* | x86_64-*-mingw*)
5044 i[34567]86-*-nto-qnx*)
5045 # QNX uses GNU C++, but need to define -shared option too, otherwise
5046 # it will coredump.
5047 PICFLAG_FOR_TARGET='-fPIC -shared'
5049 i[34567]86-pc-msdosdjgpp*)
5050 # DJGPP does not support shared libraries at all.
5052 ia64*-*-hpux*)
5053 # On IA64 HP-UX, PIC is the default but the pic flag
5054 # sets the default TLS model and affects inlining.
5055 PICFLAG_FOR_TARGET=-fPIC
5057 mips-sgi-irix6*)
5058 # PIC is the default.
5060 rs6000-ibm-aix* | powerpc-ibm-aix*)
5061 # All AIX code is PIC.
5064 # Some targets support both -fPIC and -fpic, but prefer the latter.
5065 # FIXME: Why?
5066 i[34567]86-*-* | x86_64-*-*)
5067 PICFLAG_FOR_TARGET=-fpic
5069 # FIXME: Override -fPIC default in libgcc only?
5070 sh-*-linux* | sh[2346lbe]*-*-linux*)
5071 PICFLAG_FOR_TARGET=-fpic
5073 # FIXME: Simplify to sh*-*-netbsd*?
5074 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5075 PICFLAG_FOR_TARGET=-fpic
5077 # Default to -fPIC unless specified otherwise.
5079 PICFLAG_FOR_TARGET=-fPIC
5081 esac
5083 # If the user explicitly uses -fpic/-fPIC, keep that.
5084 case "${CFLAGS_FOR_TARGET}" in
5085 *-fpic*)
5086 PICFLAG_FOR_TARGET=-fpic
5088 *-fPIC*)
5089 PICFLAG_FOR_TARGET=-fPIC
5091 esac
5095 # -------------------------
5096 # Check C compiler features
5097 # -------------------------
5100 ac_ext=cpp
5101 ac_cpp='$CXXCPP $CPPFLAGS'
5102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5106 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5107 if test -z "$CXXCPP"; then
5108 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 # Double quotes because CXXCPP needs to be expanded
5112 for CXXCPP in "$CXX -E" "/lib/cpp"
5114 ac_preproc_ok=false
5115 for ac_cxx_preproc_warn_flag in '' yes
5117 # Use a header file that comes with gcc, so configuring glibc
5118 # with a fresh cross-compiler works.
5119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120 # <limits.h> exists even on freestanding compilers.
5121 # On the NeXT, cc -E runs the code through the compiler's parser,
5122 # not just through cpp. "Syntax error" is here to catch this case.
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125 #ifdef __STDC__
5126 # include <limits.h>
5127 #else
5128 # include <assert.h>
5129 #endif
5130 Syntax error
5131 _ACEOF
5132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5134 else
5135 # Broken: fails on valid input.
5136 continue
5138 rm -f conftest.err conftest.$ac_ext
5140 # OK, works on sane cases. Now check whether nonexistent headers
5141 # can be detected and how.
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <ac_nonexistent.h>
5145 _ACEOF
5146 if ac_fn_cxx_try_cpp "$LINENO"; then :
5147 # Broken: success on invalid input.
5148 continue
5149 else
5150 # Passes both tests.
5151 ac_preproc_ok=:
5152 break
5154 rm -f conftest.err conftest.$ac_ext
5156 done
5157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5158 rm -f conftest.err conftest.$ac_ext
5159 if $ac_preproc_ok; then :
5160 break
5163 done
5164 ac_cv_prog_CXXCPP=$CXXCPP
5167 CXXCPP=$ac_cv_prog_CXXCPP
5168 else
5169 ac_cv_prog_CXXCPP=$CXXCPP
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5172 $as_echo "$CXXCPP" >&6; }
5173 ac_preproc_ok=false
5174 for ac_cxx_preproc_warn_flag in '' yes
5176 # Use a header file that comes with gcc, so configuring glibc
5177 # with a fresh cross-compiler works.
5178 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5179 # <limits.h> exists even on freestanding compilers.
5180 # On the NeXT, cc -E runs the code through the compiler's parser,
5181 # not just through cpp. "Syntax error" is here to catch this case.
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 #ifdef __STDC__
5185 # include <limits.h>
5186 #else
5187 # include <assert.h>
5188 #endif
5189 Syntax error
5190 _ACEOF
5191 if ac_fn_cxx_try_cpp "$LINENO"; then :
5193 else
5194 # Broken: fails on valid input.
5195 continue
5197 rm -f conftest.err conftest.$ac_ext
5199 # OK, works on sane cases. Now check whether nonexistent headers
5200 # can be detected and how.
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 #include <ac_nonexistent.h>
5204 _ACEOF
5205 if ac_fn_cxx_try_cpp "$LINENO"; then :
5206 # Broken: success on invalid input.
5207 continue
5208 else
5209 # Passes both tests.
5210 ac_preproc_ok=:
5211 break
5213 rm -f conftest.err conftest.$ac_ext
5215 done
5216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217 rm -f conftest.err conftest.$ac_ext
5218 if $ac_preproc_ok; then :
5220 else
5221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5223 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5224 See \`config.log' for more details." "$LINENO" 5; }
5227 ac_ext=cpp
5228 ac_cpp='$CXXCPP $CPPFLAGS'
5229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5236 if test "${ac_cv_path_GREP+set}" = set; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -z "$GREP"; then
5240 ac_path_GREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in grep ggrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5250 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5251 # Check for GNU ac_path_GREP and select it if it is found.
5252 # Check for GNU $ac_path_GREP
5253 case `"$ac_path_GREP" --version 2>&1` in
5254 *GNU*)
5255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5257 ac_count=0
5258 $as_echo_n 0123456789 >"conftest.in"
5259 while :
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'GREP' >> "conftest.nl"
5265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_GREP="$ac_path_GREP"
5271 ac_path_GREP_max=$ac_count
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5279 $ac_path_GREP_found && break 3
5280 done
5281 done
5282 done
5283 IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_GREP"; then
5285 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5287 else
5288 ac_cv_path_GREP=$GREP
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5293 $as_echo "$ac_cv_path_GREP" >&6; }
5294 GREP="$ac_cv_path_GREP"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5298 $as_echo_n "checking for egrep... " >&6; }
5299 if test "${ac_cv_path_EGREP+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5303 then ac_cv_path_EGREP="$GREP -E"
5304 else
5305 if test -z "$EGREP"; then
5306 ac_path_EGREP_found=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_prog in egrep; do
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5317 # Check for GNU ac_path_EGREP and select it if it is found.
5318 # Check for GNU $ac_path_EGREP
5319 case `"$ac_path_EGREP" --version 2>&1` in
5320 *GNU*)
5321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5323 ac_count=0
5324 $as_echo_n 0123456789 >"conftest.in"
5325 while :
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 $as_echo 'EGREP' >> "conftest.nl"
5331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333 as_fn_arith $ac_count + 1 && ac_count=$as_val
5334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_EGREP="$ac_path_EGREP"
5337 ac_path_EGREP_max=$ac_count
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5341 done
5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 esac
5345 $ac_path_EGREP_found && break 3
5346 done
5347 done
5348 done
5349 IFS=$as_save_IFS
5350 if test -z "$ac_cv_path_EGREP"; then
5351 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5353 else
5354 ac_cv_path_EGREP=$EGREP
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5360 $as_echo "$ac_cv_path_EGREP" >&6; }
5361 EGREP="$ac_cv_path_EGREP"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5365 $as_echo_n "checking for ANSI C header files... " >&6; }
5366 if test "${ac_cv_header_stdc+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <stdlib.h>
5372 #include <stdarg.h>
5373 #include <string.h>
5374 #include <float.h>
5377 main ()
5381 return 0;
5383 _ACEOF
5384 if ac_fn_cxx_try_compile "$LINENO"; then :
5385 ac_cv_header_stdc=yes
5386 else
5387 ac_cv_header_stdc=no
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 if test $ac_cv_header_stdc = yes; then
5392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <string.h>
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "memchr" >/dev/null 2>&1; then :
5401 else
5402 ac_cv_header_stdc=no
5404 rm -f conftest*
5408 if test $ac_cv_header_stdc = yes; then
5409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <stdlib.h>
5414 _ACEOF
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "free" >/dev/null 2>&1; then :
5418 else
5419 ac_cv_header_stdc=no
5421 rm -f conftest*
5425 if test $ac_cv_header_stdc = yes; then
5426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427 if test "$cross_compiling" = yes; then :
5429 else
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432 #include <ctype.h>
5433 #include <stdlib.h>
5434 #if ((' ' & 0x0FF) == 0x020)
5435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5437 #else
5438 # define ISLOWER(c) \
5439 (('a' <= (c) && (c) <= 'i') \
5440 || ('j' <= (c) && (c) <= 'r') \
5441 || ('s' <= (c) && (c) <= 'z'))
5442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5443 #endif
5445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5447 main ()
5449 int i;
5450 for (i = 0; i < 256; i++)
5451 if (XOR (islower (i), ISLOWER (i))
5452 || toupper (i) != TOUPPER (i))
5453 return 2;
5454 return 0;
5456 _ACEOF
5457 if ac_fn_cxx_try_run "$LINENO"; then :
5459 else
5460 ac_cv_header_stdc=no
5462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5463 conftest.$ac_objext conftest.beam conftest.$ac_ext
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5469 $as_echo "$ac_cv_header_stdc" >&6; }
5470 if test $ac_cv_header_stdc = yes; then
5472 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5476 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5477 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5478 inttypes.h stdint.h unistd.h
5479 do :
5480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5481 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5483 eval as_val=\$$as_ac_Header
5484 if test "x$as_val" = x""yes; then :
5485 cat >>confdefs.h <<_ACEOF
5486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5487 _ACEOF
5491 done
5495 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5496 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5497 MINIX=yes
5498 else
5499 MINIX=
5503 if test "$MINIX" = yes; then
5505 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5508 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5511 $as_echo "#define _MINIX 1" >>confdefs.h
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5517 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5518 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5524 # define __EXTENSIONS__ 1
5525 $ac_includes_default
5527 main ()
5531 return 0;
5533 _ACEOF
5534 if ac_fn_cxx_try_compile "$LINENO"; then :
5535 ac_cv_safe_to_define___extensions__=yes
5536 else
5537 ac_cv_safe_to_define___extensions__=no
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5542 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5543 test $ac_cv_safe_to_define___extensions__ = yes &&
5544 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5546 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5548 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5550 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5552 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5555 ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5561 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5562 # On Suns, sometimes $CPP names a directory.
5563 if test -n "$CPP" && test -d "$CPP"; then
5564 CPP=
5566 if test -z "$CPP"; then
5567 if test "${ac_cv_prog_CPP+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 # Double quotes because CPP needs to be expanded
5571 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5573 ac_preproc_ok=false
5574 for ac_c_preproc_warn_flag in '' yes
5576 # Use a header file that comes with gcc, so configuring glibc
5577 # with a fresh cross-compiler works.
5578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5579 # <limits.h> exists even on freestanding compilers.
5580 # On the NeXT, cc -E runs the code through the compiler's parser,
5581 # not just through cpp. "Syntax error" is here to catch this case.
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #ifdef __STDC__
5585 # include <limits.h>
5586 #else
5587 # include <assert.h>
5588 #endif
5589 Syntax error
5590 _ACEOF
5591 if ac_fn_c_try_cpp "$LINENO"; then :
5593 else
5594 # Broken: fails on valid input.
5595 continue
5597 rm -f conftest.err conftest.$ac_ext
5599 # OK, works on sane cases. Now check whether nonexistent headers
5600 # can be detected and how.
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <ac_nonexistent.h>
5604 _ACEOF
5605 if ac_fn_c_try_cpp "$LINENO"; then :
5606 # Broken: success on invalid input.
5607 continue
5608 else
5609 # Passes both tests.
5610 ac_preproc_ok=:
5611 break
5613 rm -f conftest.err conftest.$ac_ext
5615 done
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.err conftest.$ac_ext
5618 if $ac_preproc_ok; then :
5619 break
5622 done
5623 ac_cv_prog_CPP=$CPP
5626 CPP=$ac_cv_prog_CPP
5627 else
5628 ac_cv_prog_CPP=$CPP
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5631 $as_echo "$CPP" >&6; }
5632 ac_preproc_ok=false
5633 for ac_c_preproc_warn_flag in '' yes
5635 # Use a header file that comes with gcc, so configuring glibc
5636 # with a fresh cross-compiler works.
5637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5638 # <limits.h> exists even on freestanding compilers.
5639 # On the NeXT, cc -E runs the code through the compiler's parser,
5640 # not just through cpp. "Syntax error" is here to catch this case.
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #ifdef __STDC__
5644 # include <limits.h>
5645 #else
5646 # include <assert.h>
5647 #endif
5648 Syntax error
5649 _ACEOF
5650 if ac_fn_c_try_cpp "$LINENO"; then :
5652 else
5653 # Broken: fails on valid input.
5654 continue
5656 rm -f conftest.err conftest.$ac_ext
5658 # OK, works on sane cases. Now check whether nonexistent headers
5659 # can be detected and how.
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <ac_nonexistent.h>
5663 _ACEOF
5664 if ac_fn_c_try_cpp "$LINENO"; then :
5665 # Broken: success on invalid input.
5666 continue
5667 else
5668 # Passes both tests.
5669 ac_preproc_ok=:
5670 break
5672 rm -f conftest.err conftest.$ac_ext
5674 done
5675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5676 rm -f conftest.err conftest.$ac_ext
5677 if $ac_preproc_ok; then :
5679 else
5680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5682 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5683 See \`config.log' for more details." "$LINENO" 5; }
5686 ac_ext=cpp
5687 ac_cpp='$CXXCPP $CPPFLAGS'
5688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5693 $as_echo_n "checking for inline... " >&6; }
5694 if test "${ac_cv_c_inline+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 ac_cv_c_inline=no
5698 for ac_kw in inline __inline__ __inline; do
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #ifndef __cplusplus
5702 typedef int foo_t;
5703 static $ac_kw foo_t static_foo () {return 0; }
5704 $ac_kw foo_t foo () {return 0; }
5705 #endif
5707 _ACEOF
5708 if ac_fn_cxx_try_compile "$LINENO"; then :
5709 ac_cv_c_inline=$ac_kw
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 test "$ac_cv_c_inline" != no && break
5713 done
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5717 $as_echo "$ac_cv_c_inline" >&6; }
5719 case $ac_cv_c_inline in
5720 inline | yes) ;;
5722 case $ac_cv_c_inline in
5723 no) ac_val=;;
5724 *) ac_val=$ac_cv_c_inline;;
5725 esac
5726 cat >>confdefs.h <<_ACEOF
5727 #ifndef __cplusplus
5728 #define inline $ac_val
5729 #endif
5730 _ACEOF
5732 esac
5735 # Check whether --enable-largefile was given.
5736 if test "${enable_largefile+set}" = set; then :
5737 enableval=$enable_largefile;
5740 if test "$enable_largefile" != no; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5743 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5744 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 ac_cv_sys_largefile_CC=no
5748 if test "$GCC" != yes; then
5749 ac_save_CC=$CC
5750 while :; do
5751 # IRIX 6.2 and later do not support large files by default,
5752 # so use the C compiler's -n32 option if that helps.
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 #include <sys/types.h>
5756 /* Check that off_t can represent 2**63 - 1 correctly.
5757 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5758 since some C++ compilers masquerading as C compilers
5759 incorrectly reject 9223372036854775807. */
5760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5762 && LARGE_OFF_T % 2147483647 == 1)
5763 ? 1 : -1];
5765 main ()
5769 return 0;
5771 _ACEOF
5772 if ac_fn_cxx_try_compile "$LINENO"; then :
5773 break
5775 rm -f core conftest.err conftest.$ac_objext
5776 CC="$CC -n32"
5777 if ac_fn_cxx_try_compile "$LINENO"; then :
5778 ac_cv_sys_largefile_CC=' -n32'; break
5780 rm -f core conftest.err conftest.$ac_objext
5781 break
5782 done
5783 CC=$ac_save_CC
5784 rm -f conftest.$ac_ext
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5788 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5789 if test "$ac_cv_sys_largefile_CC" != no; then
5790 CC=$CC$ac_cv_sys_largefile_CC
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5794 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5795 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 while :; do
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5809 ? 1 : -1];
5811 main ()
5815 return 0;
5817 _ACEOF
5818 if ac_fn_cxx_try_compile "$LINENO"; then :
5819 ac_cv_sys_file_offset_bits=no; break
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #define _FILE_OFFSET_BITS 64
5825 #include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5828 since some C++ compilers masquerading as C compilers
5829 incorrectly reject 9223372036854775807. */
5830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5832 && LARGE_OFF_T % 2147483647 == 1)
5833 ? 1 : -1];
5835 main ()
5839 return 0;
5841 _ACEOF
5842 if ac_fn_cxx_try_compile "$LINENO"; then :
5843 ac_cv_sys_file_offset_bits=64; break
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cv_sys_file_offset_bits=unknown
5847 break
5848 done
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5851 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5852 case $ac_cv_sys_file_offset_bits in #(
5853 no | unknown) ;;
5855 cat >>confdefs.h <<_ACEOF
5856 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5857 _ACEOF
5859 esac
5860 rm -rf conftest*
5861 if test $ac_cv_sys_file_offset_bits = unknown; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5863 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5864 if test "${ac_cv_sys_large_files+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 while :; do
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 #include <sys/types.h>
5871 /* Check that off_t can represent 2**63 - 1 correctly.
5872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5873 since some C++ compilers masquerading as C compilers
5874 incorrectly reject 9223372036854775807. */
5875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5877 && LARGE_OFF_T % 2147483647 == 1)
5878 ? 1 : -1];
5880 main ()
5884 return 0;
5886 _ACEOF
5887 if ac_fn_cxx_try_compile "$LINENO"; then :
5888 ac_cv_sys_large_files=no; break
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 #define _LARGE_FILES 1
5894 #include <sys/types.h>
5895 /* Check that off_t can represent 2**63 - 1 correctly.
5896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5897 since some C++ compilers masquerading as C compilers
5898 incorrectly reject 9223372036854775807. */
5899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5901 && LARGE_OFF_T % 2147483647 == 1)
5902 ? 1 : -1];
5904 main ()
5908 return 0;
5910 _ACEOF
5911 if ac_fn_cxx_try_compile "$LINENO"; then :
5912 ac_cv_sys_large_files=1; break
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 ac_cv_sys_large_files=unknown
5916 break
5917 done
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5920 $as_echo "$ac_cv_sys_large_files" >&6; }
5921 case $ac_cv_sys_large_files in #(
5922 no | unknown) ;;
5924 cat >>confdefs.h <<_ACEOF
5925 #define _LARGE_FILES $ac_cv_sys_large_files
5926 _ACEOF
5928 esac
5929 rm -rf conftest*
5934 # sizeof(char) is 1 by definition.
5935 # The cast to long int works around a bug in the HP C Compiler
5936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5938 # This bug is HP SR number 8606223364.
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5940 $as_echo_n "checking size of void *... " >&6; }
5941 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5946 else
5947 if test "$ac_cv_type_void_p" = yes; then
5948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { as_fn_set_status 77
5951 as_fn_error "cannot compute sizeof (void *)
5952 See \`config.log' for more details." "$LINENO" 5; }; }
5953 else
5954 ac_cv_sizeof_void_p=0
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5960 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5964 cat >>confdefs.h <<_ACEOF
5965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5966 _ACEOF
5969 # The cast to long int works around a bug in the HP C Compiler
5970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5972 # This bug is HP SR number 8606223364.
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5974 $as_echo_n "checking size of short... " >&6; }
5975 if test "${ac_cv_sizeof_short+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5980 else
5981 if test "$ac_cv_type_short" = yes; then
5982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5984 { as_fn_set_status 77
5985 as_fn_error "cannot compute sizeof (short)
5986 See \`config.log' for more details." "$LINENO" 5; }; }
5987 else
5988 ac_cv_sizeof_short=0
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5994 $as_echo "$ac_cv_sizeof_short" >&6; }
5998 cat >>confdefs.h <<_ACEOF
5999 #define SIZEOF_SHORT $ac_cv_sizeof_short
6000 _ACEOF
6003 # The cast to long int works around a bug in the HP C Compiler
6004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6006 # This bug is HP SR number 8606223364.
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6008 $as_echo_n "checking size of int... " >&6; }
6009 if test "${ac_cv_sizeof_int+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6014 else
6015 if test "$ac_cv_type_int" = yes; then
6016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6018 { as_fn_set_status 77
6019 as_fn_error "cannot compute sizeof (int)
6020 See \`config.log' for more details." "$LINENO" 5; }; }
6021 else
6022 ac_cv_sizeof_int=0
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6028 $as_echo "$ac_cv_sizeof_int" >&6; }
6032 cat >>confdefs.h <<_ACEOF
6033 #define SIZEOF_INT $ac_cv_sizeof_int
6034 _ACEOF
6037 # The cast to long int works around a bug in the HP C Compiler
6038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6040 # This bug is HP SR number 8606223364.
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6042 $as_echo_n "checking size of long... " >&6; }
6043 if test "${ac_cv_sizeof_long+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6048 else
6049 if test "$ac_cv_type_long" = yes; then
6050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6052 { as_fn_set_status 77
6053 as_fn_error "cannot compute sizeof (long)
6054 See \`config.log' for more details." "$LINENO" 5; }; }
6055 else
6056 ac_cv_sizeof_long=0
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6062 $as_echo "$ac_cv_sizeof_long" >&6; }
6066 cat >>confdefs.h <<_ACEOF
6067 #define SIZEOF_LONG $ac_cv_sizeof_long
6068 _ACEOF
6071 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6072 if test "x$ac_cv_type_long_long" = x""yes; then :
6074 cat >>confdefs.h <<_ACEOF
6075 #define HAVE_LONG_LONG 1
6076 _ACEOF
6078 # The cast to long int works around a bug in the HP C Compiler
6079 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6080 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6081 # This bug is HP SR number 8606223364.
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6083 $as_echo_n "checking size of long long... " >&6; }
6084 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6089 else
6090 if test "$ac_cv_type_long_long" = yes; then
6091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6093 { as_fn_set_status 77
6094 as_fn_error "cannot compute sizeof (long long)
6095 See \`config.log' for more details." "$LINENO" 5; }; }
6096 else
6097 ac_cv_sizeof_long_long=0
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6103 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6107 cat >>confdefs.h <<_ACEOF
6108 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6109 _ACEOF
6114 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6115 case $ac_cv_c_int8_t in #(
6116 no|yes) ;; #(
6119 cat >>confdefs.h <<_ACEOF
6120 #define int8_t $ac_cv_c_int8_t
6121 _ACEOF
6123 esac
6125 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6126 case $ac_cv_c_int16_t in #(
6127 no|yes) ;; #(
6130 cat >>confdefs.h <<_ACEOF
6131 #define int16_t $ac_cv_c_int16_t
6132 _ACEOF
6134 esac
6136 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6137 case $ac_cv_c_int32_t in #(
6138 no|yes) ;; #(
6141 cat >>confdefs.h <<_ACEOF
6142 #define int32_t $ac_cv_c_int32_t
6143 _ACEOF
6145 esac
6147 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6148 case $ac_cv_c_int64_t in #(
6149 no|yes) ;; #(
6152 cat >>confdefs.h <<_ACEOF
6153 #define int64_t $ac_cv_c_int64_t
6154 _ACEOF
6156 esac
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6160 $as_echo_n "checking for long long int... " >&6; }
6161 if test "${ac_cv_type_long_long_int+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6167 /* For now, do not test the preprocessor; as of 2007 there are too many
6168 implementations with broken preprocessors. Perhaps this can
6169 be revisited in 2012. In the meantime, code should not expect
6170 #if to work with literals wider than 32 bits. */
6171 /* Test literals. */
6172 long long int ll = 9223372036854775807ll;
6173 long long int nll = -9223372036854775807LL;
6174 unsigned long long int ull = 18446744073709551615ULL;
6175 /* Test constant expressions. */
6176 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6177 ? 1 : -1)];
6178 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6179 ? 1 : -1)];
6180 int i = 63;
6182 main ()
6184 /* Test availability of runtime routines for shift and division. */
6185 long long int llmax = 9223372036854775807ll;
6186 unsigned long long int ullmax = 18446744073709551615ull;
6187 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6188 | (llmax / ll) | (llmax % ll)
6189 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6190 | (ullmax / ull) | (ullmax % ull));
6192 return 0;
6195 _ACEOF
6196 if ac_fn_cxx_try_link "$LINENO"; then :
6197 if test "$cross_compiling" = yes; then :
6198 ac_cv_type_long_long_int=yes
6199 else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <limits.h>
6203 #ifndef LLONG_MAX
6204 # define HALF \
6205 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6206 # define LLONG_MAX (HALF - 1 + HALF)
6207 #endif
6209 main ()
6211 long long int n = 1;
6212 int i;
6213 for (i = 0; ; i++)
6215 long long int m = n << i;
6216 if (m >> i != n)
6217 return 1;
6218 if (LLONG_MAX / 2 < m)
6219 break;
6221 return 0;
6223 return 0;
6225 _ACEOF
6226 if ac_fn_cxx_try_run "$LINENO"; then :
6227 ac_cv_type_long_long_int=yes
6228 else
6229 ac_cv_type_long_long_int=no
6231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6232 conftest.$ac_objext conftest.beam conftest.$ac_ext
6235 else
6236 ac_cv_type_long_long_int=no
6238 rm -f core conftest.err conftest.$ac_objext \
6239 conftest$ac_exeext conftest.$ac_ext
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6242 $as_echo "$ac_cv_type_long_long_int" >&6; }
6243 if test $ac_cv_type_long_long_int = yes; then
6245 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6251 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6252 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6254 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6256 else
6257 test $ac_cv_type_long_long_int = yes \
6258 && ac_type='long long int' \
6259 || ac_type='long int'
6261 cat >>confdefs.h <<_ACEOF
6262 #define intmax_t $ac_type
6263 _ACEOF
6269 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6270 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6272 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6274 else
6275 for ac_type in 'int' 'long int' 'long long int'; do
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 $ac_includes_default
6280 main ()
6282 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6283 test_array [0] = 0
6286 return 0;
6288 _ACEOF
6289 if ac_fn_cxx_try_compile "$LINENO"; then :
6291 cat >>confdefs.h <<_ACEOF
6292 #define intptr_t $ac_type
6293 _ACEOF
6295 ac_type=
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 test -z "$ac_type" && break
6299 done
6303 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6304 case $ac_cv_c_uint8_t in #(
6305 no|yes) ;; #(
6308 $as_echo "#define _UINT8_T 1" >>confdefs.h
6311 cat >>confdefs.h <<_ACEOF
6312 #define uint8_t $ac_cv_c_uint8_t
6313 _ACEOF
6315 esac
6317 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6318 case $ac_cv_c_uint16_t in #(
6319 no|yes) ;; #(
6323 cat >>confdefs.h <<_ACEOF
6324 #define uint16_t $ac_cv_c_uint16_t
6325 _ACEOF
6327 esac
6329 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6330 case $ac_cv_c_uint32_t in #(
6331 no|yes) ;; #(
6334 $as_echo "#define _UINT32_T 1" >>confdefs.h
6337 cat >>confdefs.h <<_ACEOF
6338 #define uint32_t $ac_cv_c_uint32_t
6339 _ACEOF
6341 esac
6343 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6344 case $ac_cv_c_uint64_t in #(
6345 no|yes) ;; #(
6348 $as_echo "#define _UINT64_T 1" >>confdefs.h
6351 cat >>confdefs.h <<_ACEOF
6352 #define uint64_t $ac_cv_c_uint64_t
6353 _ACEOF
6355 esac
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6359 $as_echo_n "checking for unsigned long long int... " >&6; }
6360 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6366 /* For now, do not test the preprocessor; as of 2007 there are too many
6367 implementations with broken preprocessors. Perhaps this can
6368 be revisited in 2012. In the meantime, code should not expect
6369 #if to work with literals wider than 32 bits. */
6370 /* Test literals. */
6371 long long int ll = 9223372036854775807ll;
6372 long long int nll = -9223372036854775807LL;
6373 unsigned long long int ull = 18446744073709551615ULL;
6374 /* Test constant expressions. */
6375 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6376 ? 1 : -1)];
6377 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6378 ? 1 : -1)];
6379 int i = 63;
6381 main ()
6383 /* Test availability of runtime routines for shift and division. */
6384 long long int llmax = 9223372036854775807ll;
6385 unsigned long long int ullmax = 18446744073709551615ull;
6386 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6387 | (llmax / ll) | (llmax % ll)
6388 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6389 | (ullmax / ull) | (ullmax % ull));
6391 return 0;
6394 _ACEOF
6395 if ac_fn_cxx_try_link "$LINENO"; then :
6396 ac_cv_type_unsigned_long_long_int=yes
6397 else
6398 ac_cv_type_unsigned_long_long_int=no
6400 rm -f core conftest.err conftest.$ac_objext \
6401 conftest$ac_exeext conftest.$ac_ext
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6404 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6405 if test $ac_cv_type_unsigned_long_long_int = yes; then
6407 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6413 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6414 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6416 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6418 else
6419 test $ac_cv_type_unsigned_long_long_int = yes \
6420 && ac_type='unsigned long long int' \
6421 || ac_type='unsigned long int'
6423 cat >>confdefs.h <<_ACEOF
6424 #define uintmax_t $ac_type
6425 _ACEOF
6431 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6432 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6434 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6436 else
6437 for ac_type in 'unsigned int' 'unsigned long int' \
6438 'unsigned long long int'; do
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 $ac_includes_default
6443 main ()
6445 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6446 test_array [0] = 0
6449 return 0;
6451 _ACEOF
6452 if ac_fn_cxx_try_compile "$LINENO"; then :
6454 cat >>confdefs.h <<_ACEOF
6455 #define uintptr_t $ac_type
6456 _ACEOF
6458 ac_type=
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 test -z "$ac_type" && break
6462 done
6478 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6479 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6482 # check what underlying integer type int64_t uses
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6484 $as_echo_n "checking for int64_t underlying type... " >&6; }
6485 if test "${ac_cv_int64_t_type+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6492 #ifdef HAVE_STDINT_H
6493 #include <stdint.h>
6494 #endif
6495 template <typename T> struct X { };
6496 template <>
6497 struct X<long> { typedef long t; };
6500 main ()
6502 X<int64_t>::t x;
6504 return 0;
6506 _ACEOF
6507 if ac_fn_cxx_try_compile "$LINENO"; then :
6508 ac_cv_int64_t_type=long
6509 else
6510 ac_cv_int64_t_type="long long"
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6515 $as_echo "$ac_cv_int64_t_type" >&6; }
6516 if test "$ac_cv_int64_t_type" = "long"; then
6518 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6524 #ifdef HAVE_STDINT_H
6525 #include <stdint.h>
6526 #endif
6527 template <typename T> struct X { };
6528 template <>
6529 struct X<long long> { typedef long long t; };
6532 main ()
6534 X<int64_t>::t x;
6536 return 0;
6538 _ACEOF
6539 if ac_fn_cxx_try_compile "$LINENO"; then :
6541 else
6542 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6548 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6549 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 #include <utility>
6559 main ()
6561 int a, b; std::swap(a,b);
6563 return 0;
6565 _ACEOF
6566 if ac_fn_cxx_try_compile "$LINENO"; then :
6567 ac_cv_std_swap_in_utility=yes
6568 else
6569 ac_cv_std_swap_in_utility=no
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6574 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6575 if test $ac_cv_std_swap_in_utility = yes; then
6577 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6581 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6582 # If the host compiler is affected by the bug, and we build with optimization
6583 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6584 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6585 # Since there is no reliable feature check for the presence of this bug,
6586 # we simply use a GCC version number check. (This should never trigger for
6587 # stages 2 or 3 of a native bootstrap.)
6588 aliasing_flags=
6589 if test "$GCC" = yes; then
6590 saved_CXXFLAGS="$CXXFLAGS"
6592 # The following test compilation will succeed if and only if $CXX accepts
6593 # -fno-strict-aliasing *and* is older than GCC 4.3.
6594 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6596 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6600 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6601 #error compiler not affected by placement new aliasing bug
6602 #endif
6604 _ACEOF
6605 if ac_fn_cxx_try_compile "$LINENO"; then :
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6607 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 CXXFLAGS="$saved_CXXFLAGS"
6620 # ---------------------
6621 # Warnings and checking
6622 # ---------------------
6624 # Check $CC warning features (if it's GCC).
6625 # We want to use -pedantic, but we don't want warnings about
6626 # * 'long long'
6627 # * variadic macros
6628 # * overlong strings
6629 # * C++11 narrowing conversions in { }
6630 # So, we only use -pedantic if we can disable those warnings.
6632 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6633 # Check whether --enable-build-format-warnings was given.
6634 if test "${enable_build_format_warnings+set}" = set; then :
6635 enableval=$enable_build_format_warnings;
6636 else
6637 enable_build_format_warnings=yes
6640 if test $enable_build_format_warnings = no; then :
6641 wf_opt=-Wno-format
6642 else
6643 wf_opt=
6645 ac_ext=cpp
6646 ac_cpp='$CXXCPP $CPPFLAGS'
6647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6651 loose_warn=
6652 save_CXXFLAGS="$CXXFLAGS"
6653 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6654 # Do the check with the no- prefix removed since gcc silently
6655 # accepts any -Wno-* option on purpose
6656 case $real_option in
6657 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6658 *) option=$real_option ;;
6659 esac
6660 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6663 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6664 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 CXXFLAGS="$option"
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6672 main ()
6676 return 0;
6678 _ACEOF
6679 if ac_fn_cxx_try_compile "$LINENO"; then :
6680 eval "$as_acx_Woption=yes"
6681 else
6682 eval "$as_acx_Woption=no"
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 eval ac_res=\$$as_acx_Woption
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6691 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6693 done
6694 CXXFLAGS="$save_CXXFLAGS"
6695 ac_ext=cpp
6696 ac_cpp='$CXXCPP $CPPFLAGS'
6697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6703 ac_ext=c
6704 ac_cpp='$CPP $CPPFLAGS'
6705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6709 c_loose_warn=
6710 save_CFLAGS="$CFLAGS"
6711 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6712 # Do the check with the no- prefix removed since gcc silently
6713 # accepts any -Wno-* option on purpose
6714 case $real_option in
6715 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6716 *) option=$real_option ;;
6717 esac
6718 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6721 $as_echo_n "checking whether $CC supports $option... " >&6; }
6722 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 CFLAGS="$option"
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6730 main ()
6734 return 0;
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738 eval "$as_acx_Woption=yes"
6739 else
6740 eval "$as_acx_Woption=no"
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 eval ac_res=\$$as_acx_Woption
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6747 $as_echo "$ac_res" >&6; }
6748 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6749 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6751 done
6752 CFLAGS="$save_CFLAGS"
6753 ac_ext=cpp
6754 ac_cpp='$CXXCPP $CPPFLAGS'
6755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6760 ac_ext=cpp
6761 ac_cpp='$CXXCPP $CPPFLAGS'
6762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6766 strict_warn=
6767 save_CXXFLAGS="$CXXFLAGS"
6768 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6769 # Do the check with the no- prefix removed since gcc silently
6770 # accepts any -Wno-* option on purpose
6771 case $real_option in
6772 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6773 *) option=$real_option ;;
6774 esac
6775 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6778 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6779 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 CXXFLAGS="$option"
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6787 main ()
6791 return 0;
6793 _ACEOF
6794 if ac_fn_cxx_try_compile "$LINENO"; then :
6795 eval "$as_acx_Woption=yes"
6796 else
6797 eval "$as_acx_Woption=no"
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 eval ac_res=\$$as_acx_Woption
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6804 $as_echo "$ac_res" >&6; }
6805 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6806 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6808 done
6809 CXXFLAGS="$save_CXXFLAGS"
6810 ac_ext=cpp
6811 ac_cpp='$CXXCPP $CPPFLAGS'
6812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6817 ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6823 c_strict_warn=
6824 save_CFLAGS="$CFLAGS"
6825 for real_option in -Wold-style-definition -Wc++-compat; do
6826 # Do the check with the no- prefix removed since gcc silently
6827 # accepts any -Wno-* option on purpose
6828 case $real_option in
6829 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6830 *) option=$real_option ;;
6831 esac
6832 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6835 $as_echo_n "checking whether $CC supports $option... " >&6; }
6836 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6837 $as_echo_n "(cached) " >&6
6838 else
6839 CFLAGS="$option"
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6844 main ()
6848 return 0;
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852 eval "$as_acx_Woption=yes"
6853 else
6854 eval "$as_acx_Woption=no"
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 eval ac_res=\$$as_acx_Woption
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6861 $as_echo "$ac_res" >&6; }
6862 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6863 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6865 done
6866 CFLAGS="$save_CFLAGS"
6867 ac_ext=cpp
6868 ac_cpp='$CXXCPP $CPPFLAGS'
6869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6874 ac_ext=cpp
6875 ac_cpp='$CXXCPP $CPPFLAGS'
6876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6880 # Do the check with the no- prefix removed from the warning options
6881 # since gcc silently accepts any -Wno-* option on purpose
6882 if test "$GXX" = yes; then :
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6884 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6885 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 save_CXXFLAGS="$CXXFLAGS"
6889 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6894 main ()
6898 return 0;
6900 _ACEOF
6901 if ac_fn_cxx_try_compile "$LINENO"; then :
6902 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6903 else
6904 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 CXXFLAGS="$save_CXXFLAGS"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6910 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6911 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6912 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6916 ac_ext=cpp
6917 ac_cpp='$CXXCPP $CPPFLAGS'
6918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6923 ac_ext=cpp
6924 ac_cpp='$CXXCPP $CPPFLAGS'
6925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6929 # Check whether --enable-werror-always was given.
6930 if test "${enable_werror_always+set}" = set; then :
6931 enableval=$enable_werror_always;
6932 else
6933 enable_werror_always=no
6936 if test $enable_werror_always = yes; then :
6937 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6940 ac_ext=cpp
6941 ac_cpp='$CXXCPP $CPPFLAGS'
6942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6948 # The above macros do nothing if the compiler is not GCC. However, the
6949 # Makefile has more goo to add other flags, so these variables are used
6950 # to enable warnings only for GCC.
6951 warn_cflags=
6952 warn_cxxflags=
6953 if test "x$GCC" = "xyes"; then
6954 warn_cflags='$(GCC_WARN_CFLAGS)'
6955 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6960 # Disable exceptions and RTTI if building with g++
6961 ac_ext=c
6962 ac_cpp='$CPP $CPPFLAGS'
6963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6967 noexception_flags=
6968 save_CFLAGS="$CFLAGS"
6969 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6970 # Do the check with the no- prefix removed since gcc silently
6971 # accepts any -Wno-* option on purpose
6972 case $real_option in
6973 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6974 *) option=$real_option ;;
6975 esac
6976 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6979 $as_echo_n "checking whether $CC supports $option... " >&6; }
6980 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 CFLAGS="$option"
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6988 main ()
6992 return 0;
6994 _ACEOF
6995 if ac_fn_c_try_compile "$LINENO"; then :
6996 eval "$as_acx_Woption=yes"
6997 else
6998 eval "$as_acx_Woption=no"
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 eval ac_res=\$$as_acx_Woption
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7005 $as_echo "$ac_res" >&6; }
7006 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7007 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7009 done
7010 CFLAGS="$save_CFLAGS"
7011 ac_ext=cpp
7012 ac_cpp='$CXXCPP $CPPFLAGS'
7013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7019 # Enable expensive internal checks
7020 is_release=
7021 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7022 is_release=yes
7025 # Check whether --enable-checking was given.
7026 if test "${enable_checking+set}" = set; then :
7027 enableval=$enable_checking; ac_checking_flags="${enableval}"
7028 else
7030 # Determine the default checks.
7031 if test x$is_release = x ; then
7032 ac_checking_flags=yes,extra
7033 else
7034 ac_checking_flags=release
7038 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7039 for check in release $ac_checking_flags
7041 case $check in
7042 # these set all the flags to specific states
7043 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7044 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7045 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7046 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7047 ac_tree_checking=1 ; ac_valgrind_checking= ;
7048 ac_types_checking=1 ;;
7049 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7050 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7051 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7052 ac_rtlflag_checking= ; ac_runtime_checking= ;
7053 ac_tree_checking= ; ac_valgrind_checking= ;
7054 ac_types_checking= ;;
7055 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7056 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7057 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7058 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7059 ac_tree_checking=1 ; ac_valgrind_checking= ;
7060 ac_types_checking=1 ;;
7061 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7062 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7063 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7064 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7065 ac_tree_checking= ; ac_valgrind_checking= ;
7066 ac_types_checking= ;;
7067 # these enable particular checks
7068 assert) ac_assert_checking=1 ;;
7069 df) ac_df_checking=1 ;;
7070 extra) ac_extra_checking=1 ;;
7071 fold) ac_fold_checking=1 ;;
7072 gc) ac_gc_checking=1 ;;
7073 gcac) ac_gc_always_collect=1 ;;
7074 gimple) ac_gimple_checking=1 ;;
7075 misc) ac_checking=1 ;;
7076 rtl) ac_rtl_checking=1 ;;
7077 rtlflag) ac_rtlflag_checking=1 ;;
7078 runtime) ac_runtime_checking=1 ;;
7079 tree) ac_tree_checking=1 ;;
7080 types) ac_types_checking=1 ;;
7081 valgrind) ac_valgrind_checking=1 ;;
7082 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7083 esac
7084 done
7085 IFS="$ac_save_IFS"
7087 nocommon_flag=""
7088 if test x$ac_checking != x ; then
7090 $as_echo "#define CHECKING_P 1" >>confdefs.h
7092 nocommon_flag=-fno-common
7093 else
7094 $as_echo "#define CHECKING_P 0" >>confdefs.h
7098 if test x$ac_extra_checking != x ; then
7100 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7102 else
7103 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7106 if test x$ac_df_checking != x ; then
7108 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7111 if test x$ac_assert_checking != x ; then
7113 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7116 if test x$ac_gimple_checking != x ; then
7118 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7122 if test x$ac_runtime_checking != x ; then
7124 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7127 if test x$ac_tree_checking != x ; then
7129 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7131 TREECHECKING=yes
7133 if test x$ac_types_checking != x ; then
7135 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7139 if test x$ac_rtl_checking != x ; then
7141 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7144 if test x$ac_rtlflag_checking != x ; then
7146 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7149 if test x$ac_gc_checking != x ; then
7151 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7154 if test x$ac_gc_always_collect != x ; then
7156 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7159 if test x$ac_fold_checking != x ; then
7161 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7164 valgrind_path_defines=
7165 valgrind_command=
7167 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7168 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7169 have_valgrind_h=yes
7170 else
7171 have_valgrind_h=no
7176 # It is certainly possible that there's valgrind but no valgrind.h.
7177 # GCC relies on making annotations so we must have both.
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7179 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 #include <valgrind/memcheck.h>
7183 #ifndef VALGRIND_DISCARD
7184 #error VALGRIND_DISCARD not defined
7185 #endif
7186 _ACEOF
7187 if ac_fn_cxx_try_cpp "$LINENO"; then :
7188 gcc_cv_header_valgrind_memcheck_h=yes
7189 else
7190 gcc_cv_header_valgrind_memcheck_h=no
7192 rm -f conftest.err conftest.$ac_ext
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7194 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7196 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #include <memcheck.h>
7200 #ifndef VALGRIND_DISCARD
7201 #error VALGRIND_DISCARD not defined
7202 #endif
7203 _ACEOF
7204 if ac_fn_cxx_try_cpp "$LINENO"; then :
7205 gcc_cv_header_memcheck_h=yes
7206 else
7207 gcc_cv_header_memcheck_h=no
7209 rm -f conftest.err conftest.$ac_ext
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7211 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7212 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7214 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7217 if test $gcc_cv_header_memcheck_h = yes; then
7219 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7223 if test x$ac_valgrind_checking != x ; then
7225 # Prepare PATH_SEPARATOR.
7226 # The user is always right.
7227 if test "${PATH_SEPARATOR+set}" != set; then
7228 echo "#! /bin/sh" >conf$$.sh
7229 echo "exit 0" >>conf$$.sh
7230 chmod +x conf$$.sh
7231 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7232 PATH_SEPARATOR=';'
7233 else
7234 PATH_SEPARATOR=:
7236 rm -f conf$$.sh
7239 # Find out how to test for executable files. Don't use a zero-byte file,
7240 # as systems may use methods other than mode bits to determine executability.
7241 cat >conf$$.file <<_ASEOF
7242 #! /bin/sh
7243 exit 0
7244 _ASEOF
7245 chmod +x conf$$.file
7246 if test -x conf$$.file >/dev/null 2>&1; then
7247 ac_executable_p="test -x"
7248 else
7249 ac_executable_p="test -f"
7251 rm -f conf$$.file
7253 # Extract the first word of "valgrind", so it can be a program name with args.
7254 set dummy valgrind; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 case "$valgrind_path" in
7261 [\\/]* | ?:[\\/]*)
7262 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7265 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7266 for ac_dir in $PATH; do
7267 IFS="$ac_save_IFS"
7268 test -z "$ac_dir" && ac_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7271 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7272 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7273 break 2
7276 done
7277 done
7278 IFS="$ac_save_IFS"
7280 esac
7282 valgrind_path="$ac_cv_path_valgrind_path"
7283 if test -n "$valgrind_path"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7285 $as_echo "$valgrind_path" >&6; }
7286 else
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7291 if test "x$valgrind_path" = "x" \
7292 || (test $have_valgrind_h = no \
7293 && test $gcc_cv_header_memcheck_h = no \
7294 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7295 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7297 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7298 valgrind_command="$valgrind_path -q"
7300 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7306 # Enable code coverage collection
7307 # Check whether --enable-coverage was given.
7308 if test "${enable_coverage+set}" = set; then :
7309 enableval=$enable_coverage; case "${enableval}" in
7310 yes|noopt)
7311 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7313 opt)
7314 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7317 # a.k.a. --disable-coverage
7318 coverage_flags=""
7321 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7323 esac
7324 else
7325 coverage_flags=""
7330 # Check whether --enable-gather-detailed-mem-stats was given.
7331 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7332 enableval=$enable_gather_detailed_mem_stats;
7333 else
7334 enable_gather_detailed_mem_stats=no
7337 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7339 cat >>confdefs.h <<_ACEOF
7340 #define GATHER_STATISTICS $gather_stats
7341 _ACEOF
7344 # Check whether --enable-valgrind-annotations was given.
7345 if test "${enable_valgrind_annotations+set}" = set; then :
7346 enableval=$enable_valgrind_annotations;
7347 else
7348 enable_valgrind_annotations=no
7351 if test x$enable_valgrind_annotations != xno \
7352 || test x$ac_valgrind_checking != x; then
7353 if (test $have_valgrind_h = no \
7354 && test $gcc_cv_header_memcheck_h = no \
7355 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7356 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7359 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7363 # -------------------------------
7364 # Miscenalleous configure options
7365 # -------------------------------
7367 # With stabs
7369 # Check whether --with-stabs was given.
7370 if test "${with_stabs+set}" = set; then :
7371 withval=$with_stabs; stabs="$with_stabs"
7372 else
7373 stabs=no
7377 # Determine whether or not multilibs are enabled.
7378 # Check whether --enable-multilib was given.
7379 if test "${enable_multilib+set}" = set; then :
7380 enableval=$enable_multilib;
7381 else
7382 enable_multilib=yes
7387 # Determine whether or not multiarch is enabled.
7388 # Check whether --enable-multiarch was given.
7389 if test "${enable_multiarch+set}" = set; then :
7390 enableval=$enable_multiarch; case "${enableval}" in
7391 yes|no|auto) enable_multiarch=$enableval;;
7392 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7393 esac
7394 else
7395 enable_multiarch=auto
7398 if test x${enable_multiarch} = xauto; then
7399 if test x${with_native_system_header_dir} != x; then
7400 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7401 enable_multiarch=no
7403 if test x$host != x$target && test "x$with_sysroot" = x; then
7404 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7405 enable_multiarch=no
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7409 $as_echo_n "checking for multiarch configuration... " >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7412 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7414 # needed for setting the multiarch name for soft-float/hard-float ABIs
7418 # Enable __cxa_atexit for C++.
7419 # Check whether --enable-__cxa_atexit was given.
7420 if test "${enable___cxa_atexit+set}" = set; then :
7421 enableval=$enable___cxa_atexit;
7425 # Enable C extension for decimal float if target supports it.
7427 # Check whether --enable-decimal-float was given.
7428 if test "${enable_decimal_float+set}" = set; then :
7429 enableval=$enable_decimal_float;
7430 case $enable_decimal_float in
7431 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7432 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7433 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7434 esac
7436 else
7438 case $target in
7439 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7440 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7441 i?86*-*-mingw* | x86_64*-*-mingw* | \
7442 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7443 enable_decimal_float=yes
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7447 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7448 enable_decimal_float=no
7450 esac
7455 # x86's use BID format instead of DPD
7456 case x$enable_decimal_float in
7457 xyes)
7458 case $target in
7459 i?86*-*-* | x86_64*-*-*)
7460 enable_decimal_float=bid
7463 enable_decimal_float=dpd
7465 esac
7466 default_decimal_float=$enable_decimal_float
7468 xno)
7469 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7470 # dependency on libdecnumber.
7471 default_decimal_float=dpd
7473 esac
7478 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7480 cat >>confdefs.h <<_ACEOF
7481 #define ENABLE_DECIMAL_FLOAT $dfp
7482 _ACEOF
7485 # Use default_decimal_float for dependency.
7486 enable_decimal_float=$default_decimal_float
7488 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7490 cat >>confdefs.h <<_ACEOF
7491 #define ENABLE_DECIMAL_BID_FORMAT $bid
7492 _ACEOF
7495 # Enable C extension for fixed-point arithmetic.
7496 # Check whether --enable-fixed-point was given.
7497 if test "${enable_fixed_point+set}" = set; then :
7498 enableval=$enable_fixed_point;
7499 else
7501 case $target in
7502 arm*)
7503 enable_fixed_point=yes
7506 mips*-*-*)
7507 enable_fixed_point=yes
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7511 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7512 enable_fixed_point=no
7514 esac
7520 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7522 cat >>confdefs.h <<_ACEOF
7523 #define ENABLE_FIXED_POINT $fixedpoint
7524 _ACEOF
7527 # Enable threads
7528 # Pass with no value to take the default
7529 # Pass with a value to specify a thread package
7530 # Check whether --enable-threads was given.
7531 if test "${enable_threads+set}" = set; then :
7532 enableval=$enable_threads;
7533 else
7534 enable_threads=''
7538 # Check whether --enable-tls was given.
7539 if test "${enable_tls+set}" = set; then :
7540 enableval=$enable_tls;
7541 case $enable_tls in
7542 yes | no) ;;
7543 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7544 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7545 esac
7547 else
7548 enable_tls=''
7552 # Check whether --enable-vtable-verify was given.
7553 if test "${enable_vtable_verify+set}" = set; then :
7554 enableval=$enable_vtable_verify;
7555 else
7556 enable_vtable_verify=no
7559 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7561 cat >>confdefs.h <<_ACEOF
7562 #define ENABLE_VTABLE_VERIFY $vtable_verify
7563 _ACEOF
7566 # Check whether --enable-objc-gc was given.
7567 if test "${enable_objc_gc+set}" = set; then :
7568 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7569 objc_boehm_gc=''
7570 else
7571 objc_boehm_gc=1
7573 else
7574 objc_boehm_gc=''
7579 # Check whether --with-dwarf2 was given.
7580 if test "${with_dwarf2+set}" = set; then :
7581 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7582 else
7583 dwarf2=no
7587 # Check whether --enable-shared was given.
7588 if test "${enable_shared+set}" = set; then :
7589 enableval=$enable_shared;
7590 case $enable_shared in
7591 yes | no) ;;
7593 enable_shared=no
7594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7595 for pkg in $enableval; do
7596 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7597 enable_shared=yes
7599 done
7600 IFS="$ac_save_ifs"
7602 esac
7604 else
7605 enable_shared=yes
7611 # Check whether --with-specs was given.
7612 if test "${with_specs+set}" = set; then :
7613 withval=$with_specs; CONFIGURE_SPECS=$withval
7614 else
7615 CONFIGURE_SPECS=
7623 # Check whether --with-pkgversion was given.
7624 if test "${with_pkgversion+set}" = set; then :
7625 withval=$with_pkgversion; case "$withval" in
7626 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7627 no) PKGVERSION= ;;
7628 *) PKGVERSION="($withval) " ;;
7629 esac
7630 else
7631 PKGVERSION="(GCC) "
7639 # Check whether --with-bugurl was given.
7640 if test "${with_bugurl+set}" = set; then :
7641 withval=$with_bugurl; case "$withval" in
7642 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7643 no) BUGURL=
7645 *) BUGURL="$withval"
7647 esac
7648 else
7649 BUGURL="http://gcc.gnu.org/bugs.html"
7653 case ${BUGURL} in
7655 REPORT_BUGS_TO=
7656 REPORT_BUGS_TEXI=
7659 REPORT_BUGS_TO="<$BUGURL>"
7660 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7662 esac;
7667 # Sanity check enable_languages in case someone does not run the toplevel
7668 # configure # script.
7669 # Check whether --enable-languages was given.
7670 if test "${enable_languages+set}" = set; then :
7671 enableval=$enable_languages; case ,${enable_languages}, in
7672 ,,|,yes,)
7673 # go safe -- we cannot be much sure without the toplevel
7674 # configure's
7675 # analysis of which target libs are present and usable
7676 enable_languages=c
7678 *,all,*)
7679 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7681 *,c,*)
7684 enable_languages=c,${enable_languages}
7686 esac
7687 else
7688 enable_languages=c
7692 if test x"$enable_as_accelerator_for" != x; then
7694 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7696 enable_as_accelerator=yes
7697 case "${target}" in
7698 *-intelmicemul-*)
7699 # In this case we expect offload compiler to be built as native, so we
7700 # need to rename the driver to avoid clashes with host's drivers.
7701 program_transform_name="s&^&${target}-&" ;;
7702 esac
7703 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7704 program_transform_name=`echo $program_transform_name | sed $sedscript`
7705 accel_dir_suffix=/accel/${target_noncanonical}
7706 real_target_noncanonical=${enable_as_accelerator_for}
7712 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7713 tgt=`echo $tgt | sed 's/=.*//'`
7715 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7716 enable_hsa=1
7717 else
7718 enable_offloading=1
7721 if test x"$offload_targets" = x; then
7722 offload_targets=$tgt
7723 else
7724 offload_targets="$offload_targets,$tgt"
7726 done
7728 cat >>confdefs.h <<_ACEOF
7729 #define OFFLOAD_TARGETS "$offload_targets"
7730 _ACEOF
7732 if test x"$enable_offloading" != x; then
7734 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7736 else
7738 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7742 if test x"$enable_hsa" = x1 ; then
7744 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7749 # Check whether --with-multilib-list was given.
7750 if test "${with_multilib_list+set}" = set; then :
7751 withval=$with_multilib_list; :
7752 else
7753 with_multilib_list=default
7757 # -------------------------
7758 # Checks for other programs
7759 # -------------------------
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7762 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7763 set x ${MAKE-make}
7764 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7765 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 cat >conftest.make <<\_ACEOF
7769 SHELL = /bin/sh
7770 all:
7771 @echo '@@@%%%=$(MAKE)=@@@%%%'
7772 _ACEOF
7773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7774 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7775 *@@@%%%=?*=@@@%%%*)
7776 eval ac_cv_prog_make_${ac_make}_set=yes;;
7778 eval ac_cv_prog_make_${ac_make}_set=no;;
7779 esac
7780 rm -f conftest.make
7782 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7784 $as_echo "yes" >&6; }
7785 SET_MAKE=
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 SET_MAKE="MAKE=${MAKE-make}"
7793 # Find some useful tools
7794 for ac_prog in gawk mawk nawk awk
7796 # Extract the first word of "$ac_prog", so it can be a program name with args.
7797 set dummy $ac_prog; ac_word=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if test "${ac_cv_prog_AWK+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 if test -n "$AWK"; then
7804 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_AWK="$ac_prog"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7817 done
7818 done
7819 IFS=$as_save_IFS
7823 AWK=$ac_cv_prog_AWK
7824 if test -n "$AWK"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7826 $as_echo "$AWK" >&6; }
7827 else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7833 test -n "$AWK" && break
7834 done
7836 # We need awk to create options.c and options.h.
7837 # Bail out if it's missing.
7838 case ${AWK} in
7839 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7840 esac
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7843 $as_echo_n "checking whether ln -s works... " >&6; }
7844 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 rm -f conftestdata_t
7848 echo >conftestdata_f
7849 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7850 then
7851 gcc_cv_prog_LN_S="ln -s"
7852 else
7853 if ln conftestdata_f conftestdata_t 2>/dev/null
7854 then
7855 gcc_cv_prog_LN_S=ln
7856 else
7857 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7858 then
7859 gcc_cv_prog_LN_S="cp -p"
7860 else
7861 gcc_cv_prog_LN_S=cp
7865 rm -f conftestdata_f conftestdata_t
7868 LN_S="$gcc_cv_prog_LN_S"
7869 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7871 $as_echo "yes" >&6; }
7872 else
7873 if test "$gcc_cv_prog_LN_S" = "ln"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7875 $as_echo "no, using ln" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7878 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7883 $as_echo_n "checking whether ln works... " >&6; }
7884 if test "${acx_cv_prog_LN+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 rm -f conftestdata_t
7888 echo >conftestdata_f
7889 if ln conftestdata_f conftestdata_t 2>/dev/null
7890 then
7891 acx_cv_prog_LN=ln
7892 else
7893 acx_cv_prog_LN=no
7895 rm -f conftestdata_f conftestdata_t
7898 if test $acx_cv_prog_LN = no; then
7899 LN="$LN_S"
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7901 $as_echo "no, using $LN" >&6; }
7902 else
7903 LN="$acx_cv_prog_LN"
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7905 $as_echo "yes" >&6; }
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 $as_echo_n "checking for $ac_word... " >&6; }
7913 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 if test -n "$RANLIB"; then
7917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7918 else
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 for as_dir in $PATH
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 break 2
7930 done
7931 done
7932 IFS=$as_save_IFS
7936 RANLIB=$ac_cv_prog_RANLIB
7937 if test -n "$RANLIB"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7939 $as_echo "$RANLIB" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7947 if test -z "$ac_cv_prog_RANLIB"; then
7948 ac_ct_RANLIB=$RANLIB
7949 # Extract the first word of "ranlib", so it can be a program name with args.
7950 set dummy ranlib; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 $as_echo_n "checking for $ac_word... " >&6; }
7953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 if test -n "$ac_ct_RANLIB"; then
7957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7958 else
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7966 ac_cv_prog_ac_ct_RANLIB="ranlib"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7970 done
7971 done
7972 IFS=$as_save_IFS
7976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7977 if test -n "$ac_ct_RANLIB"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7979 $as_echo "$ac_ct_RANLIB" >&6; }
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7985 if test "x$ac_ct_RANLIB" = x; then
7986 RANLIB=":"
7987 else
7988 case $cross_compiling:$ac_tool_warned in
7989 yes:)
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7992 ac_tool_warned=yes ;;
7993 esac
7994 RANLIB=$ac_ct_RANLIB
7996 else
7997 RANLIB="$ac_cv_prog_RANLIB"
8000 ranlib_flags=""
8003 # Find a good install program. We prefer a C program (faster),
8004 # so one script is as good as another. But avoid the broken or
8005 # incompatible versions:
8006 # SysV /etc/install, /usr/sbin/install
8007 # SunOS /usr/etc/install
8008 # IRIX /sbin/install
8009 # AIX /bin/install
8010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8012 # ./install, which can be erroneously created by make from ./install.sh.
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8014 $as_echo_n "checking for a BSD compatible install... " >&6; }
8015 if test -z "$INSTALL"; then
8016 if test "${ac_cv_path_install+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8020 for ac_dir in $PATH; do
8021 # Account for people who put trailing slashes in PATH elements.
8022 case "$ac_dir/" in
8023 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8025 # OSF1 and SCO ODT 3.0 have their own names for install.
8026 for ac_prog in ginstall scoinst install; do
8027 if test -f $ac_dir/$ac_prog; then
8028 if test $ac_prog = install &&
8029 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8030 # AIX install. It has an incompatible calling convention.
8031 # OSF/1 installbsd also uses dspmsg, but is usable.
8033 else
8034 ac_cv_path_install="$ac_dir/$ac_prog -c"
8035 break 2
8038 done
8040 esac
8041 done
8042 IFS="$ac_save_IFS"
8045 if test "${ac_cv_path_install+set}" = set; then
8046 INSTALL="$ac_cv_path_install"
8047 else
8048 # As a last resort, use the slow shell script. We don't cache a
8049 # path for INSTALL within a source directory, because that will
8050 # break other packages using the cache if that directory is
8051 # removed, or if the path is relative.
8052 INSTALL="$ac_install_sh"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8056 $as_echo "$INSTALL" >&6; }
8058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8059 # It thinks the first close brace ends the variable substitution.
8060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8065 # See if cmp has --ignore-initial.
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8067 $as_echo_n "checking for cmp's capabilities... " >&6; }
8068 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 echo abfoo >t1
8072 echo cdfoo >t2
8073 gcc_cv_prog_cmp_skip=slowcompare
8074 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8075 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8077 else
8078 gcc_cv_prog_cmp_skip=gnucompare
8081 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8082 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8083 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8085 else
8086 gcc_cv_prog_cmp_skip=fastcompare
8090 rm t1 t2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8094 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8095 make_compare_target=$gcc_cv_prog_cmp_skip
8099 # See if we have the mktemp command.
8100 # Extract the first word of "mktemp", so it can be a program name with args.
8101 set dummy mktemp; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 if test -n "$have_mktemp_command"; then
8108 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_prog_have_mktemp_command="yes"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8121 done
8122 done
8123 IFS=$as_save_IFS
8125 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8128 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8129 if test -n "$have_mktemp_command"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8131 $as_echo "$have_mktemp_command" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8139 # See if makeinfo has been installed and is modern enough
8140 # that we can use it.
8142 # Extract the first word of "makeinfo", so it can be a program name with args.
8143 set dummy makeinfo; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 if test -n "$MAKEINFO"; then
8150 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8155 IFS=$as_save_IFS
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_prog_MAKEINFO="makeinfo"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 break 2
8163 done
8164 done
8165 IFS=$as_save_IFS
8169 MAKEINFO=$ac_cv_prog_MAKEINFO
8170 if test -n "$MAKEINFO"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8172 $as_echo "$MAKEINFO" >&6; }
8173 else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8179 if test -n "$MAKEINFO"; then
8180 # Found it, now check the version.
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8182 $as_echo_n "checking for modern makeinfo... " >&6; }
8183 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8187 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8189 case $ac_prog_version in
8190 '') gcc_cv_prog_makeinfo_modern=no;;
8191 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8192 *) gcc_cv_prog_makeinfo_modern=no;;
8193 esac
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8197 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8198 else
8199 gcc_cv_prog_makeinfo_modern=no
8201 if test $gcc_cv_prog_makeinfo_modern = no; then
8202 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8205 if test $gcc_cv_prog_makeinfo_modern = no; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8207 *** Makeinfo is missing or too old.
8208 *** Info documentation will not be built." >&5
8209 $as_echo "$as_me: WARNING:
8210 *** Makeinfo is missing or too old.
8211 *** Info documentation will not be built." >&2;}
8212 BUILD_INFO=
8213 else
8214 BUILD_INFO=info
8218 # Is pod2man recent enough to regenerate manpages?
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8220 $as_echo_n "checking for recent Pod::Man... " >&6; }
8221 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8223 $as_echo "yes" >&6; }
8224 GENERATED_MANPAGES=generated-manpages
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 GENERATED_MANPAGES=
8232 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8234 # How about lex?
8235 for ac_prog in flex
8237 # Extract the first word of "$ac_prog", so it can be a program name with args.
8238 set dummy $ac_prog; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if test "${ac_cv_prog_FLEX+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 if test -n "$FLEX"; then
8245 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_prog_FLEX="$ac_prog"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8258 done
8259 done
8260 IFS=$as_save_IFS
8264 FLEX=$ac_cv_prog_FLEX
8265 if test -n "$FLEX"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8267 $as_echo "$FLEX" >&6; }
8268 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8274 test -n "$FLEX" && break
8275 done
8276 test -n "$FLEX" || FLEX="$MISSING flex"
8279 # Bison?
8280 for ac_prog in bison
8282 # Extract the first word of "$ac_prog", so it can be a program name with args.
8283 set dummy $ac_prog; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if test "${ac_cv_prog_BISON+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$BISON"; then
8290 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_BISON="$ac_prog"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8303 done
8304 done
8305 IFS=$as_save_IFS
8309 BISON=$ac_cv_prog_BISON
8310 if test -n "$BISON"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8312 $as_echo "$BISON" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8319 test -n "$BISON" && break
8320 done
8321 test -n "$BISON" || BISON="$MISSING bison"
8324 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8325 # check for build == host before using them.
8327 # NM
8328 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8329 && test -d ../binutils ; then
8330 NM='${objdir}/../binutils/nm-new'
8331 else
8332 # Extract the first word of "nm", so it can be a program name with args.
8333 set dummy nm; ac_word=$2
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_prog_NM+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 if test -n "$NM"; then
8340 ac_cv_prog_NM="$NM" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_prog_NM="nm"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8353 done
8354 done
8355 IFS=$as_save_IFS
8357 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8360 NM=$ac_cv_prog_NM
8361 if test -n "$NM"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8363 $as_echo "$NM" >&6; }
8364 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8372 # AR
8373 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8374 && test -d ../binutils ; then
8375 AR='${objdir}/../binutils/ar'
8376 else
8377 # Extract the first word of "ar", so it can be a program name with args.
8378 set dummy ar; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if test "${ac_cv_prog_AR+set}" = set; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 if test -n "$AR"; then
8385 ac_cv_prog_AR="$AR" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8390 IFS=$as_save_IFS
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394 ac_cv_prog_AR="ar"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396 break 2
8398 done
8399 done
8400 IFS=$as_save_IFS
8402 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8405 AR=$ac_cv_prog_AR
8406 if test -n "$AR"; then
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8408 $as_echo "$AR" >&6; }
8409 else
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411 $as_echo "no" >&6; }
8417 # The jit documentation looks better if built with sphinx, but can be
8418 # built with texinfo if sphinx is not available.
8419 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8420 # Extract the first word of "sphinx-build", so it can be a program name with args.
8421 set dummy sphinx-build; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 if test -n "$doc_build_sys"; then
8428 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_prog_doc_build_sys="sphinx"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 break 2
8441 done
8442 done
8443 IFS=$as_save_IFS
8445 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8448 doc_build_sys=$ac_cv_prog_doc_build_sys
8449 if test -n "$doc_build_sys"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8451 $as_echo "$doc_build_sys" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8459 # --------------------
8460 # Checks for C headers
8461 # --------------------
8463 # Need to reject headers which give warnings, so that the -Werror bootstrap
8464 # works later. *sigh* This needs to come before all header checks.
8466 ac_c_preproc_warn_flag=yes
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8469 $as_echo_n "checking for ANSI C header files... " >&6; }
8470 if test "${ac_cv_header_stdc+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #include <stdlib.h>
8476 #include <stdarg.h>
8477 #include <string.h>
8478 #include <float.h>
8481 main ()
8485 return 0;
8487 _ACEOF
8488 if ac_fn_cxx_try_compile "$LINENO"; then :
8489 ac_cv_header_stdc=yes
8490 else
8491 ac_cv_header_stdc=no
8493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8495 if test $ac_cv_header_stdc = yes; then
8496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <string.h>
8501 _ACEOF
8502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8503 $EGREP "memchr" >/dev/null 2>&1; then :
8505 else
8506 ac_cv_header_stdc=no
8508 rm -f conftest*
8512 if test $ac_cv_header_stdc = yes; then
8513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 #include <stdlib.h>
8518 _ACEOF
8519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8520 $EGREP "free" >/dev/null 2>&1; then :
8522 else
8523 ac_cv_header_stdc=no
8525 rm -f conftest*
8529 if test $ac_cv_header_stdc = yes; then
8530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8531 if test "$cross_compiling" = yes; then :
8533 else
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536 #include <ctype.h>
8537 #include <stdlib.h>
8538 #if ((' ' & 0x0FF) == 0x020)
8539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8541 #else
8542 # define ISLOWER(c) \
8543 (('a' <= (c) && (c) <= 'i') \
8544 || ('j' <= (c) && (c) <= 'r') \
8545 || ('s' <= (c) && (c) <= 'z'))
8546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8547 #endif
8549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8551 main ()
8553 int i;
8554 for (i = 0; i < 256; i++)
8555 if (XOR (islower (i), ISLOWER (i))
8556 || toupper (i) != TOUPPER (i))
8557 return 2;
8558 return 0;
8560 _ACEOF
8561 if ac_fn_cxx_try_run "$LINENO"; then :
8563 else
8564 ac_cv_header_stdc=no
8566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8567 conftest.$ac_objext conftest.beam conftest.$ac_ext
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8573 $as_echo "$ac_cv_header_stdc" >&6; }
8574 if test $ac_cv_header_stdc = yes; then
8576 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8581 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8582 if test "${ac_cv_header_time+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <sys/types.h>
8588 #include <sys/time.h>
8589 #include <time.h>
8592 main ()
8594 if ((struct tm *) 0)
8595 return 0;
8597 return 0;
8599 _ACEOF
8600 if ac_fn_cxx_try_compile "$LINENO"; then :
8601 ac_cv_header_time=yes
8602 else
8603 ac_cv_header_time=no
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8608 $as_echo "$ac_cv_header_time" >&6; }
8609 if test $ac_cv_header_time = yes; then
8611 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8616 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8617 if test "${gcc_cv_header_string+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <string.h>
8623 #include <strings.h>
8625 main ()
8629 return 0;
8631 _ACEOF
8632 if ac_fn_cxx_try_compile "$LINENO"; then :
8633 gcc_cv_header_string=yes
8634 else
8635 gcc_cv_header_string=no
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8640 $as_echo "$gcc_cv_header_string" >&6; }
8641 if test $gcc_cv_header_string = yes; then
8643 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8648 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8649 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 #include <sys/types.h>
8655 #include <sys/wait.h>
8656 #ifndef WEXITSTATUS
8657 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8658 #endif
8659 #ifndef WIFEXITED
8660 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8661 #endif
8664 main ()
8666 int s;
8667 wait (&s);
8668 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8670 return 0;
8672 _ACEOF
8673 if ac_fn_cxx_try_compile "$LINENO"; then :
8674 ac_cv_header_sys_wait_h=yes
8675 else
8676 ac_cv_header_sys_wait_h=no
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8681 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8682 if test $ac_cv_header_sys_wait_h = yes; then
8684 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8689 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8690 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 #include <sys/types.h>
8696 #include <termios.h>
8697 #ifdef TIOCGWINSZ
8699 #endif
8701 _ACEOF
8702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8703 $EGREP "yes" >/dev/null 2>&1; then :
8704 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8705 else
8706 ac_cv_sys_tiocgwinsz_in_termios_h=no
8708 rm -f conftest*
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8712 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8714 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8716 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8717 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 #include <sys/types.h>
8723 #include <sys/ioctl.h>
8724 #ifdef TIOCGWINSZ
8726 #endif
8728 _ACEOF
8729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8730 $EGREP "yes" >/dev/null 2>&1; then :
8731 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8732 else
8733 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8735 rm -f conftest*
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8739 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8741 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8743 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8748 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8749 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8750 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8751 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8752 do :
8753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8754 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8755 eval as_val=\$$as_ac_Header
8756 if test "x$as_val" = x""yes; then :
8757 cat >>confdefs.h <<_ACEOF
8758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8759 _ACEOF
8762 done
8765 # Check for thread headers.
8766 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8767 if test "x$ac_cv_header_thread_h" = x""yes; then :
8768 have_thread_h=yes
8769 else
8770 have_thread_h=
8773 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8774 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8775 have_pthread_h=yes
8776 else
8777 have_pthread_h=
8781 # These tests can't be done till we know if we have limits.h.
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8783 $as_echo_n "checking for CHAR_BIT... " >&6; }
8784 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #ifdef HAVE_LIMITS_H
8790 #include <limits.h>
8791 #endif
8792 #ifdef CHAR_BIT
8793 found
8794 #endif
8795 _ACEOF
8796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8797 $EGREP "found" >/dev/null 2>&1; then :
8798 gcc_cv_decl_char_bit=yes
8799 else
8800 gcc_cv_decl_char_bit=no
8802 rm -f conftest*
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8807 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8808 if test $gcc_cv_decl_char_bit = no; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8810 $as_echo_n "checking number of bits in a byte... " >&6; }
8811 if test "${gcc_cv_c_nbby+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8815 gcc_cv_c_nbby=
8816 while test $i -lt 65; do
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8821 main ()
8823 switch(0) {
8824 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8825 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8828 return 0;
8830 _ACEOF
8831 if ac_fn_cxx_try_compile "$LINENO"; then :
8832 gcc_cv_c_nbby=$i; break
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 i=`expr $i + 1`
8836 done
8837 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8841 $as_echo "$gcc_cv_c_nbby" >&6; }
8842 if test $gcc_cv_c_nbby = failed; then
8843 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8844 else
8846 cat >>confdefs.h <<_ACEOF
8847 #define CHAR_BIT $gcc_cv_c_nbby
8848 _ACEOF
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8853 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8854 if test "${ac_cv_c_bigendian+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 ac_cv_c_bigendian=unknown
8858 # See if we're dealing with a universal compiler.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #ifndef __APPLE_CC__
8862 not a universal capable compiler
8863 #endif
8864 typedef int dummy;
8866 _ACEOF
8867 if ac_fn_cxx_try_compile "$LINENO"; then :
8869 # Check for potential -arch flags. It is not universal unless
8870 # there are at least two -arch flags with different values.
8871 ac_arch=
8872 ac_prev=
8873 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8874 if test -n "$ac_prev"; then
8875 case $ac_word in
8876 i?86 | x86_64 | ppc | ppc64)
8877 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8878 ac_arch=$ac_word
8879 else
8880 ac_cv_c_bigendian=universal
8881 break
8884 esac
8885 ac_prev=
8886 elif test "x$ac_word" = "x-arch"; then
8887 ac_prev=arch
8889 done
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892 if test $ac_cv_c_bigendian = unknown; then
8893 # See if sys/param.h defines the BYTE_ORDER macro.
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 #include <sys/types.h>
8897 #include <sys/param.h>
8900 main ()
8902 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8903 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8904 && LITTLE_ENDIAN)
8905 bogus endian macros
8906 #endif
8909 return 0;
8911 _ACEOF
8912 if ac_fn_cxx_try_compile "$LINENO"; then :
8913 # It does; now see whether it defined to BIG_ENDIAN or not.
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 #include <sys/types.h>
8917 #include <sys/param.h>
8920 main ()
8922 #if BYTE_ORDER != BIG_ENDIAN
8923 not big endian
8924 #endif
8927 return 0;
8929 _ACEOF
8930 if ac_fn_cxx_try_compile "$LINENO"; then :
8931 ac_cv_c_bigendian=yes
8932 else
8933 ac_cv_c_bigendian=no
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 if test $ac_cv_c_bigendian = unknown; then
8940 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 #include <limits.h>
8946 main ()
8948 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8949 bogus endian macros
8950 #endif
8953 return 0;
8955 _ACEOF
8956 if ac_fn_cxx_try_compile "$LINENO"; then :
8957 # It does; now see whether it defined to _BIG_ENDIAN or not.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 #include <limits.h>
8963 main ()
8965 #ifndef _BIG_ENDIAN
8966 not big endian
8967 #endif
8970 return 0;
8972 _ACEOF
8973 if ac_fn_cxx_try_compile "$LINENO"; then :
8974 ac_cv_c_bigendian=yes
8975 else
8976 ac_cv_c_bigendian=no
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 if test $ac_cv_c_bigendian = unknown; then
8983 # Compile a test program.
8984 if test "$cross_compiling" = yes; then :
8985 # Try to guess by grepping values from an object file.
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 short int ascii_mm[] =
8989 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8990 short int ascii_ii[] =
8991 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8992 int use_ascii (int i) {
8993 return ascii_mm[i] + ascii_ii[i];
8995 short int ebcdic_ii[] =
8996 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8997 short int ebcdic_mm[] =
8998 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8999 int use_ebcdic (int i) {
9000 return ebcdic_mm[i] + ebcdic_ii[i];
9002 extern int foo;
9005 main ()
9007 return use_ascii (foo) == use_ebcdic (foo);
9009 return 0;
9011 _ACEOF
9012 if ac_fn_cxx_try_compile "$LINENO"; then :
9013 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9014 ac_cv_c_bigendian=yes
9016 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9017 if test "$ac_cv_c_bigendian" = unknown; then
9018 ac_cv_c_bigendian=no
9019 else
9020 # finding both strings is unlikely to happen, but who knows?
9021 ac_cv_c_bigendian=unknown
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 else
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 $ac_includes_default
9031 main ()
9034 /* Are we little or big endian? From Harbison&Steele. */
9035 union
9037 long int l;
9038 char c[sizeof (long int)];
9039 } u;
9040 u.l = 1;
9041 return u.c[sizeof (long int) - 1] == 1;
9044 return 0;
9046 _ACEOF
9047 if ac_fn_cxx_try_run "$LINENO"; then :
9048 ac_cv_c_bigendian=no
9049 else
9050 ac_cv_c_bigendian=yes
9052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9053 conftest.$ac_objext conftest.beam conftest.$ac_ext
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9059 $as_echo "$ac_cv_c_bigendian" >&6; }
9060 case $ac_cv_c_bigendian in #(
9061 yes)
9062 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9063 ;; #(
9065 ;; #(
9066 universal)
9068 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9070 ;; #(
9072 as_fn_error "unknown endianness
9073 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9074 esac
9077 # ----------------------
9078 # Checks for C++ headers
9079 # ----------------------
9081 ac_ext=cpp
9082 ac_cpp='$CXXCPP $CPPFLAGS'
9083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9087 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9088 if test -z "$CXXCPP"; then
9089 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 # Double quotes because CXXCPP needs to be expanded
9093 for CXXCPP in "$CXX -E" "/lib/cpp"
9095 ac_preproc_ok=false
9096 for ac_cxx_preproc_warn_flag in '' yes
9098 # Use a header file that comes with gcc, so configuring glibc
9099 # with a fresh cross-compiler works.
9100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9101 # <limits.h> exists even on freestanding compilers.
9102 # On the NeXT, cc -E runs the code through the compiler's parser,
9103 # not just through cpp. "Syntax error" is here to catch this case.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 #ifdef __STDC__
9107 # include <limits.h>
9108 #else
9109 # include <assert.h>
9110 #endif
9111 Syntax error
9112 _ACEOF
9113 if ac_fn_cxx_try_cpp "$LINENO"; then :
9115 else
9116 # Broken: fails on valid input.
9117 continue
9119 rm -f conftest.err conftest.$ac_ext
9121 # OK, works on sane cases. Now check whether nonexistent headers
9122 # can be detected and how.
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #include <ac_nonexistent.h>
9126 _ACEOF
9127 if ac_fn_cxx_try_cpp "$LINENO"; then :
9128 # Broken: success on invalid input.
9129 continue
9130 else
9131 # Passes both tests.
9132 ac_preproc_ok=:
9133 break
9135 rm -f conftest.err conftest.$ac_ext
9137 done
9138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9139 rm -f conftest.err conftest.$ac_ext
9140 if $ac_preproc_ok; then :
9141 break
9144 done
9145 ac_cv_prog_CXXCPP=$CXXCPP
9148 CXXCPP=$ac_cv_prog_CXXCPP
9149 else
9150 ac_cv_prog_CXXCPP=$CXXCPP
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9153 $as_echo "$CXXCPP" >&6; }
9154 ac_preproc_ok=false
9155 for ac_cxx_preproc_warn_flag in '' yes
9157 # Use a header file that comes with gcc, so configuring glibc
9158 # with a fresh cross-compiler works.
9159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9160 # <limits.h> exists even on freestanding compilers.
9161 # On the NeXT, cc -E runs the code through the compiler's parser,
9162 # not just through cpp. "Syntax error" is here to catch this case.
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 #ifdef __STDC__
9166 # include <limits.h>
9167 #else
9168 # include <assert.h>
9169 #endif
9170 Syntax error
9171 _ACEOF
9172 if ac_fn_cxx_try_cpp "$LINENO"; then :
9174 else
9175 # Broken: fails on valid input.
9176 continue
9178 rm -f conftest.err conftest.$ac_ext
9180 # OK, works on sane cases. Now check whether nonexistent headers
9181 # can be detected and how.
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9184 #include <ac_nonexistent.h>
9185 _ACEOF
9186 if ac_fn_cxx_try_cpp "$LINENO"; then :
9187 # Broken: success on invalid input.
9188 continue
9189 else
9190 # Passes both tests.
9191 ac_preproc_ok=:
9192 break
9194 rm -f conftest.err conftest.$ac_ext
9196 done
9197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9198 rm -f conftest.err conftest.$ac_ext
9199 if $ac_preproc_ok; then :
9201 else
9202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9205 See \`config.log' for more details." >&5
9206 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9207 See \`config.log' for more details." >&2;}; }
9210 ac_ext=cpp
9211 ac_cpp='$CXXCPP $CPPFLAGS'
9212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9217 for ac_header in unordered_map
9218 do :
9219 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9220 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9221 cat >>confdefs.h <<_ACEOF
9222 #define HAVE_UNORDERED_MAP 1
9223 _ACEOF
9226 done
9228 for ac_header in tr1/unordered_map
9229 do :
9230 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9231 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9232 cat >>confdefs.h <<_ACEOF
9233 #define HAVE_TR1_UNORDERED_MAP 1
9234 _ACEOF
9237 done
9239 for ac_header in ext/hash_map
9240 do :
9241 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9242 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9243 cat >>confdefs.h <<_ACEOF
9244 #define HAVE_EXT_HASH_MAP 1
9245 _ACEOF
9248 done
9251 # --------
9252 # Dependency checking.
9253 # --------
9255 rm -rf .tst 2>/dev/null
9256 mkdir .tst 2>/dev/null
9257 if test -d .tst; then
9258 am__leading_dot=.
9259 else
9260 am__leading_dot=_
9262 rmdir .tst 2>/dev/null
9264 DEPDIR="${am__leading_dot}deps"
9266 ac_config_commands="$ac_config_commands depdir"
9269 ac_config_commands="$ac_config_commands gccdepdir"
9272 depcc="$CXX" am_compiler_list=
9274 am_depcomp=$ac_aux_dir/depcomp
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9276 $as_echo_n "checking dependency style of $depcc... " >&6; }
9277 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 if test -f "$am_depcomp"; then
9281 # We make a subdir and do the tests there. Otherwise we can end up
9282 # making bogus files that we don't know about and never remove. For
9283 # instance it was reported that on HP-UX the gcc test will end up
9284 # making a dummy file named `D' -- because `-MD' means `put the output
9285 # in D'.
9286 mkdir conftest.dir
9287 # Copy depcomp to subdir because otherwise we won't find it if we're
9288 # using a relative directory.
9289 cp "$am_depcomp" conftest.dir
9290 cd conftest.dir
9291 # We will build objects and dependencies in a subdirectory because
9292 # it helps to detect inapplicable dependency modes. For instance
9293 # both Tru64's cc and ICC support -MD to output dependencies as a
9294 # side effect of compilation, but ICC will put the dependencies in
9295 # the current directory while Tru64 will put them in the object
9296 # directory.
9297 mkdir sub
9299 am_cv_CXX_dependencies_compiler_type=none
9300 if test "$am_compiler_list" = ""; then
9301 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9303 for depmode in $am_compiler_list; do
9304 if test $depmode = none; then break; fi
9306 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9307 # Setup a source with many dependencies, because some compilers
9308 # like to wrap large dependency lists on column 80 (with \), and
9309 # we should not choose a depcomp mode which is confused by this.
9311 # We need to recreate these files for each test, as the compiler may
9312 # overwrite some of them when testing with obscure command lines.
9313 # This happens at least with the AIX C compiler.
9314 : > sub/conftest.c
9315 for i in 1 2 3 4 5 6; do
9316 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9317 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9318 # Solaris 8's {/usr,}/bin/sh.
9319 touch sub/conftst$i.h
9320 done
9321 echo "include sub/conftest.Po" > confmf
9323 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9324 # mode. It turns out that the SunPro C++ compiler does not properly
9325 # handle `-M -o', and we need to detect this.
9326 depcmd="depmode=$depmode \
9327 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9328 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9329 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9330 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9331 if env $depcmd > conftest.err 2>&1 &&
9332 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9333 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9334 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9335 # icc doesn't choke on unknown options, it will just issue warnings
9336 # or remarks (even with -Werror). So we grep stderr for any message
9337 # that says an option was ignored or not supported.
9338 # When given -MP, icc 7.0 and 7.1 complain thusly:
9339 # icc: Command line warning: ignoring option '-M'; no argument required
9340 # The diagnosis changed in icc 8.0:
9341 # icc: Command line remark: option '-MP' not supported
9342 if (grep 'ignoring option' conftest.err ||
9343 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9344 am_cv_CXX_dependencies_compiler_type=$depmode
9345 $as_echo "$as_me:$LINENO: success" >&5
9346 break
9349 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9350 sed -e 's/^/| /' < conftest.err >&5
9351 done
9353 cd ..
9354 rm -rf conftest.dir
9355 else
9356 am_cv_CXX_dependencies_compiler_type=none
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9361 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9362 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9363 then as_fn_error "no usable dependency style found" "$LINENO" 5
9364 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9369 # --------
9370 # UNSORTED
9371 # --------
9374 # These libraries may be used by collect2.
9375 # We may need a special search path to get them linked.
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9377 $as_echo_n "checking for collect2 libraries... " >&6; }
9378 if test "${gcc_cv_collect2_libs+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 save_LIBS="$LIBS"
9382 for libs in '' -lld -lmld \
9383 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9384 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9386 LIBS="$libs"
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9390 /* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
9393 #ifdef __cplusplus
9394 extern "C"
9395 #endif
9396 char ldopen ();
9398 main ()
9400 return ldopen ();
9402 return 0;
9404 _ACEOF
9405 if ac_fn_cxx_try_link "$LINENO"; then :
9406 gcc_cv_collect2_libs="$libs"; break
9408 rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 done
9411 LIBS="$save_LIBS"
9412 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9415 $as_echo "$gcc_cv_collect2_libs" >&6; }
9416 case $gcc_cv_collect2_libs in
9417 "none required") ;;
9418 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9419 esac
9422 # When building Ada code on Alpha, we need exc_resume which is usually in
9423 # -lexc. So test for it.
9424 save_LIBS="$LIBS"
9425 LIBS=
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9427 $as_echo_n "checking for library containing exc_resume... " >&6; }
9428 if test "${ac_cv_search_exc_resume+set}" = set; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 ac_func_search_save_LIBS=$LIBS
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9435 /* Override any GCC internal prototype to avoid an error.
9436 Use char because int might match the return type of a GCC
9437 builtin and then its argument prototype would still apply. */
9438 #ifdef __cplusplus
9439 extern "C"
9440 #endif
9441 char exc_resume ();
9443 main ()
9445 return exc_resume ();
9447 return 0;
9449 _ACEOF
9450 for ac_lib in '' exc; do
9451 if test -z "$ac_lib"; then
9452 ac_res="none required"
9453 else
9454 ac_res=-l$ac_lib
9455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9457 if ac_fn_cxx_try_link "$LINENO"; then :
9458 ac_cv_search_exc_resume=$ac_res
9460 rm -f core conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext
9462 if test "${ac_cv_search_exc_resume+set}" = set; then :
9463 break
9465 done
9466 if test "${ac_cv_search_exc_resume+set}" = set; then :
9468 else
9469 ac_cv_search_exc_resume=no
9471 rm conftest.$ac_ext
9472 LIBS=$ac_func_search_save_LIBS
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9475 $as_echo "$ac_cv_search_exc_resume" >&6; }
9476 ac_res=$ac_cv_search_exc_resume
9477 if test "$ac_res" != no; then :
9478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9482 GNAT_LIBEXC="$LIBS"
9483 LIBS="$save_LIBS"
9486 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9487 save_LIBS="$LIBS"
9488 LIBS=
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9490 $as_echo_n "checking for library containing kstat_open... " >&6; }
9491 if test "${ac_cv_search_kstat_open+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 ac_func_search_save_LIBS=$LIBS
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9498 /* Override any GCC internal prototype to avoid an error.
9499 Use char because int might match the return type of a GCC
9500 builtin and then its argument prototype would still apply. */
9501 #ifdef __cplusplus
9502 extern "C"
9503 #endif
9504 char kstat_open ();
9506 main ()
9508 return kstat_open ();
9510 return 0;
9512 _ACEOF
9513 for ac_lib in '' kstat; do
9514 if test -z "$ac_lib"; then
9515 ac_res="none required"
9516 else
9517 ac_res=-l$ac_lib
9518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9520 if ac_fn_cxx_try_link "$LINENO"; then :
9521 ac_cv_search_kstat_open=$ac_res
9523 rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext
9525 if test "${ac_cv_search_kstat_open+set}" = set; then :
9526 break
9528 done
9529 if test "${ac_cv_search_kstat_open+set}" = set; then :
9531 else
9532 ac_cv_search_kstat_open=no
9534 rm conftest.$ac_ext
9535 LIBS=$ac_func_search_save_LIBS
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9538 $as_echo "$ac_cv_search_kstat_open" >&6; }
9539 ac_res=$ac_cv_search_kstat_open
9540 if test "$ac_res" != no; then :
9541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9545 EXTRA_GCC_LIBS="$LIBS"
9546 LIBS="$save_LIBS"
9549 # Some systems put ldexp and frexp in libm instead of libc; assume
9550 # they're both in the same place. jcf-dump needs them.
9551 save_LIBS="$LIBS"
9552 LIBS=
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9554 $as_echo_n "checking for library containing ldexp... " >&6; }
9555 if test "${ac_cv_search_ldexp+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 ac_func_search_save_LIBS=$LIBS
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char ldexp ();
9570 main ()
9572 return ldexp ();
9574 return 0;
9576 _ACEOF
9577 for ac_lib in '' m; do
9578 if test -z "$ac_lib"; then
9579 ac_res="none required"
9580 else
9581 ac_res=-l$ac_lib
9582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9584 if ac_fn_cxx_try_link "$LINENO"; then :
9585 ac_cv_search_ldexp=$ac_res
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext
9589 if test "${ac_cv_search_ldexp+set}" = set; then :
9590 break
9592 done
9593 if test "${ac_cv_search_ldexp+set}" = set; then :
9595 else
9596 ac_cv_search_ldexp=no
9598 rm conftest.$ac_ext
9599 LIBS=$ac_func_search_save_LIBS
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9602 $as_echo "$ac_cv_search_ldexp" >&6; }
9603 ac_res=$ac_cv_search_ldexp
9604 if test "$ac_res" != no; then :
9605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9609 LDEXP_LIB="$LIBS"
9610 LIBS="$save_LIBS"
9613 # Use <inttypes.h> only if it exists,
9614 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9615 # PRId64
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9617 $as_echo_n "checking for inttypes.h... " >&6; }
9618 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9623 #define __STDC_FORMAT_MACROS
9624 #include <sys/types.h>
9625 #include <inttypes.h>
9627 main ()
9629 intmax_t i = -1;
9630 #ifndef PRId64
9631 choke me
9632 #endif
9634 return 0;
9636 _ACEOF
9637 if ac_fn_cxx_try_compile "$LINENO"; then :
9638 gcc_cv_header_inttypes_h=yes
9639 else
9640 gcc_cv_header_inttypes_h=no
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9646 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9647 if test $gcc_cv_header_inttypes_h = yes; then
9649 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9655 for ac_func in times clock kill getrlimit setrlimit atoq \
9656 popen sysconf strsignal getrusage nl_langinfo \
9657 gettimeofday mbstowcs wcswidth mmap setlocale \
9658 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
9659 do :
9660 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9661 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9662 eval as_val=\$$as_ac_var
9663 if test "x$as_val" = x""yes; then :
9664 cat >>confdefs.h <<_ACEOF
9665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9666 _ACEOF
9669 done
9672 if test x$ac_cv_func_mbstowcs = xyes; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9674 $as_echo_n "checking whether mbstowcs works... " >&6; }
9675 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test "$cross_compiling" = yes; then :
9679 gcc_cv_func_mbstowcs_works=yes
9680 else
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683 #include <stdlib.h>
9684 int main()
9686 mbstowcs(0, "", 0);
9687 return 0;
9689 _ACEOF
9690 if ac_fn_cxx_try_run "$LINENO"; then :
9691 gcc_cv_func_mbstowcs_works=yes
9692 else
9693 gcc_cv_func_mbstowcs_works=no
9695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9696 conftest.$ac_objext conftest.beam conftest.$ac_ext
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9701 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9702 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9704 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9709 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9710 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9712 else
9714 cat >>confdefs.h <<_ACEOF
9715 #define ssize_t int
9716 _ACEOF
9720 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9721 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9723 else
9725 cat >>confdefs.h <<_ACEOF
9726 #define caddr_t char *
9727 _ACEOF
9733 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9734 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9735 gcc_header_sys_mman_h=yes
9736 else
9737 gcc_header_sys_mman_h=no
9740 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9741 if test "x$ac_cv_func_mmap" = x""yes; then :
9742 gcc_func_mmap=yes
9743 else
9744 gcc_func_mmap=no
9747 if test "$gcc_header_sys_mman_h" != yes \
9748 || test "$gcc_func_mmap" != yes; then
9749 gcc_cv_func_mmap_file=no
9750 gcc_cv_func_mmap_dev_zero=no
9751 gcc_cv_func_mmap_anon=no
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9754 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9755 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 # Add a system to this blacklist if
9759 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9760 # memory area containing the same data that you'd get if you applied
9761 # read() to the same fd. The only system known to have a problem here
9762 # is VMS, where text files have record structure.
9763 case "$host_os" in
9764 *vms* | ultrix*)
9765 gcc_cv_func_mmap_file=no ;;
9767 gcc_cv_func_mmap_file=yes;;
9768 esac
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9771 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9773 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9774 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 # Add a system to this blacklist if it has mmap() but /dev/zero
9778 # does not exist, or if mmapping /dev/zero does not give anonymous
9779 # zeroed pages with both the following properties:
9780 # 1. If you map N consecutive pages in with one call, and then
9781 # unmap any subset of those pages, the pages that were not
9782 # explicitly unmapped remain accessible.
9783 # 2. If you map two adjacent blocks of memory and then unmap them
9784 # both at once, they must both go away.
9785 # Systems known to be in this category are Windows (all variants),
9786 # VMS, and Darwin.
9787 case "$host_os" in
9788 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9789 gcc_cv_func_mmap_dev_zero=no ;;
9791 gcc_cv_func_mmap_dev_zero=yes;;
9792 esac
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9795 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9797 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9799 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9800 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
9802 else
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805 #include <sys/types.h>
9806 #include <sys/mman.h>
9807 #include <unistd.h>
9809 #ifndef MAP_ANONYMOUS
9810 #define MAP_ANONYMOUS MAP_ANON
9811 #endif
9814 main ()
9816 int n = MAP_ANONYMOUS;
9818 return 0;
9820 _ACEOF
9821 if ac_fn_cxx_try_compile "$LINENO"; then :
9822 gcc_cv_decl_map_anon=yes
9823 else
9824 gcc_cv_decl_map_anon=no
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9829 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9831 if test $gcc_cv_decl_map_anon = no; then
9832 gcc_cv_func_mmap_anon=no
9833 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9835 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9836 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9840 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9841 # doesn't give anonymous zeroed pages with the same properties listed
9842 # above for use of /dev/zero.
9843 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9844 case "$host_os" in
9845 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9846 gcc_cv_func_mmap_anon=no ;;
9848 gcc_cv_func_mmap_anon=yes;;
9849 esac
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9852 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9856 if test $gcc_cv_func_mmap_file = yes; then
9858 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9861 if test $gcc_cv_func_mmap_dev_zero = yes; then
9863 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9866 if test $gcc_cv_func_mmap_anon = yes; then
9868 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9873 case "${host}" in
9874 *-*-*vms*)
9875 # Under VMS, vfork works very differently than on Unix. The standard test
9876 # won't work, and it isn't easily adaptable. It makes more sense to
9877 # just force it.
9878 ac_cv_func_vfork_works=yes
9880 esac
9881 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9882 if test "x$ac_cv_type_pid_t" = x""yes; then :
9884 else
9886 cat >>confdefs.h <<_ACEOF
9887 #define pid_t int
9888 _ACEOF
9892 for ac_header in vfork.h
9893 do :
9894 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9895 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9896 cat >>confdefs.h <<_ACEOF
9897 #define HAVE_VFORK_H 1
9898 _ACEOF
9901 done
9903 for ac_func in fork vfork
9904 do :
9905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9906 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9907 eval as_val=\$$as_ac_var
9908 if test "x$as_val" = x""yes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9911 _ACEOF
9914 done
9916 if test "x$ac_cv_func_fork" = xyes; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9918 $as_echo_n "checking for working fork... " >&6; }
9919 if test "${ac_cv_func_fork_works+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 if test "$cross_compiling" = yes; then :
9923 ac_cv_func_fork_works=cross
9924 else
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 $ac_includes_default
9929 main ()
9932 /* By Ruediger Kuhlmann. */
9933 return fork () < 0;
9936 return 0;
9938 _ACEOF
9939 if ac_fn_cxx_try_run "$LINENO"; then :
9940 ac_cv_func_fork_works=yes
9941 else
9942 ac_cv_func_fork_works=no
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9945 conftest.$ac_objext conftest.beam conftest.$ac_ext
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9950 $as_echo "$ac_cv_func_fork_works" >&6; }
9952 else
9953 ac_cv_func_fork_works=$ac_cv_func_fork
9955 if test "x$ac_cv_func_fork_works" = xcross; then
9956 case $host in
9957 *-*-amigaos* | *-*-msdosdjgpp*)
9958 # Override, as these systems have only a dummy fork() stub
9959 ac_cv_func_fork_works=no
9962 ac_cv_func_fork_works=yes
9964 esac
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9966 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9968 ac_cv_func_vfork_works=$ac_cv_func_vfork
9969 if test "x$ac_cv_func_vfork" = xyes; then
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9971 $as_echo_n "checking for working vfork... " >&6; }
9972 if test "${ac_cv_func_vfork_works+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 if test "$cross_compiling" = yes; then :
9976 ac_cv_func_vfork_works=cross
9977 else
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980 /* Thanks to Paul Eggert for this test. */
9981 $ac_includes_default
9982 #include <sys/wait.h>
9983 #ifdef HAVE_VFORK_H
9984 # include <vfork.h>
9985 #endif
9986 /* On some sparc systems, changes by the child to local and incoming
9987 argument registers are propagated back to the parent. The compiler
9988 is told about this with #include <vfork.h>, but some compilers
9989 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9990 static variable whose address is put into a register that is
9991 clobbered by the vfork. */
9992 static void
9993 #ifdef __cplusplus
9994 sparc_address_test (int arg)
9995 # else
9996 sparc_address_test (arg) int arg;
9997 #endif
9999 static pid_t child;
10000 if (!child) {
10001 child = vfork ();
10002 if (child < 0) {
10003 perror ("vfork");
10004 _exit(2);
10006 if (!child) {
10007 arg = getpid();
10008 write(-1, "", 0);
10009 _exit (arg);
10015 main ()
10017 pid_t parent = getpid ();
10018 pid_t child;
10020 sparc_address_test (0);
10022 child = vfork ();
10024 if (child == 0) {
10025 /* Here is another test for sparc vfork register problems. This
10026 test uses lots of local variables, at least as many local
10027 variables as main has allocated so far including compiler
10028 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10029 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10030 reuse the register of parent for one of the local variables,
10031 since it will think that parent can't possibly be used any more
10032 in this routine. Assigning to the local variable will thus
10033 munge parent in the parent process. */
10034 pid_t
10035 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10036 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10037 /* Convince the compiler that p..p7 are live; otherwise, it might
10038 use the same hardware register for all 8 local variables. */
10039 if (p != p1 || p != p2 || p != p3 || p != p4
10040 || p != p5 || p != p6 || p != p7)
10041 _exit(1);
10043 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10044 from child file descriptors. If the child closes a descriptor
10045 before it execs or exits, this munges the parent's descriptor
10046 as well. Test for this by closing stdout in the child. */
10047 _exit(close(fileno(stdout)) != 0);
10048 } else {
10049 int status;
10050 struct stat st;
10052 while (wait(&status) != child)
10054 return (
10055 /* Was there some problem with vforking? */
10056 child < 0
10058 /* Did the child fail? (This shouldn't happen.) */
10059 || status
10061 /* Did the vfork/compiler bug occur? */
10062 || parent != getpid()
10064 /* Did the file descriptor bug occur? */
10065 || fstat(fileno(stdout), &st) != 0
10069 _ACEOF
10070 if ac_fn_cxx_try_run "$LINENO"; then :
10071 ac_cv_func_vfork_works=yes
10072 else
10073 ac_cv_func_vfork_works=no
10075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10076 conftest.$ac_objext conftest.beam conftest.$ac_ext
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10081 $as_echo "$ac_cv_func_vfork_works" >&6; }
10084 if test "x$ac_cv_func_fork_works" = xcross; then
10085 ac_cv_func_vfork_works=$ac_cv_func_vfork
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10087 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10090 if test "x$ac_cv_func_vfork_works" = xyes; then
10092 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10094 else
10096 $as_echo "#define vfork fork" >>confdefs.h
10099 if test "x$ac_cv_func_fork_works" = xyes; then
10101 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10107 if test "X$prefix" = "XNONE"; then
10108 acl_final_prefix="$ac_default_prefix"
10109 else
10110 acl_final_prefix="$prefix"
10112 if test "X$exec_prefix" = "XNONE"; then
10113 acl_final_exec_prefix='${prefix}'
10114 else
10115 acl_final_exec_prefix="$exec_prefix"
10117 acl_save_prefix="$prefix"
10118 prefix="$acl_final_prefix"
10119 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10120 prefix="$acl_save_prefix"
10123 # Check whether --with-gnu-ld was given.
10124 if test "${with_gnu_ld+set}" = set; then :
10125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10126 else
10127 with_gnu_ld=no
10130 # Prepare PATH_SEPARATOR.
10131 # The user is always right.
10132 if test "${PATH_SEPARATOR+set}" != set; then
10133 echo "#! /bin/sh" >conf$$.sh
10134 echo "exit 0" >>conf$$.sh
10135 chmod +x conf$$.sh
10136 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10137 PATH_SEPARATOR=';'
10138 else
10139 PATH_SEPARATOR=:
10141 rm -f conf$$.sh
10143 ac_prog=ld
10144 if test "$GCC" = yes; then
10145 # Check if gcc -print-prog-name=ld gives a path.
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10147 $as_echo_n "checking for ld used by GCC... " >&6; }
10148 case $host in
10149 *-*-mingw*)
10150 # gcc leaves a trailing carriage return which upsets mingw
10151 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10153 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10154 esac
10155 case $ac_prog in
10156 # Accept absolute paths.
10157 [\\/]* | [A-Za-z]:[\\/]*)
10158 re_direlt='/[^/][^/]*/\.\./'
10159 # Canonicalize the path of ld
10160 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10161 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10162 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10163 done
10164 test -z "$LD" && LD="$ac_prog"
10167 # If it fails, then pretend we aren't using GCC.
10168 ac_prog=ld
10171 # If it is relative, then search for the first ld in PATH.
10172 with_gnu_ld=unknown
10174 esac
10175 elif test "$with_gnu_ld" = yes; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10177 $as_echo_n "checking for GNU ld... " >&6; }
10178 else
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10180 $as_echo_n "checking for non-GNU ld... " >&6; }
10182 if test "${acl_cv_path_LD+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 if test -z "$LD"; then
10186 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10187 for ac_dir in $PATH; do
10188 test -z "$ac_dir" && ac_dir=.
10189 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10190 acl_cv_path_LD="$ac_dir/$ac_prog"
10191 # Check to see if the program is GNU ld. I'd rather use --version,
10192 # but apparently some GNU ld's only accept -v.
10193 # Break only if it was the GNU/non-GNU ld that we prefer.
10194 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10195 test "$with_gnu_ld" != no && break
10196 else
10197 test "$with_gnu_ld" != yes && break
10200 done
10201 IFS="$ac_save_ifs"
10202 else
10203 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10207 LD="$acl_cv_path_LD"
10208 if test -n "$LD"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10210 $as_echo "$LD" >&6; }
10211 else
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10215 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10217 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10218 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10220 else
10221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10222 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10223 acl_cv_prog_gnu_ld=yes
10224 else
10225 acl_cv_prog_gnu_ld=no
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10229 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10230 with_gnu_ld=$acl_cv_prog_gnu_ld
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10235 $as_echo_n "checking for shared library run path origin... " >&6; }
10236 if test "${acl_cv_rpath+set}" = set; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10240 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10241 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10242 . ./conftest.sh
10243 rm -f ./conftest.sh
10244 acl_cv_rpath=done
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10248 $as_echo "$acl_cv_rpath" >&6; }
10249 wl="$acl_cv_wl"
10250 libext="$acl_cv_libext"
10251 shlibext="$acl_cv_shlibext"
10252 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10253 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10254 hardcode_direct="$acl_cv_hardcode_direct"
10255 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10256 # Check whether --enable-rpath was given.
10257 if test "${enable_rpath+set}" = set; then :
10258 enableval=$enable_rpath; :
10259 else
10260 enable_rpath=yes
10270 use_additional=yes
10272 acl_save_prefix="$prefix"
10273 prefix="$acl_final_prefix"
10274 acl_save_exec_prefix="$exec_prefix"
10275 exec_prefix="$acl_final_exec_prefix"
10277 eval additional_includedir=\"$includedir\"
10278 eval additional_libdir=\"$libdir\"
10280 exec_prefix="$acl_save_exec_prefix"
10281 prefix="$acl_save_prefix"
10284 # Check whether --with-libiconv-prefix was given.
10285 if test "${with_libiconv_prefix+set}" = set; then :
10286 withval=$with_libiconv_prefix;
10287 if test "X$withval" = "Xno"; then
10288 use_additional=no
10289 else
10290 if test "X$withval" = "X"; then
10292 acl_save_prefix="$prefix"
10293 prefix="$acl_final_prefix"
10294 acl_save_exec_prefix="$exec_prefix"
10295 exec_prefix="$acl_final_exec_prefix"
10297 eval additional_includedir=\"$includedir\"
10298 eval additional_libdir=\"$libdir\"
10300 exec_prefix="$acl_save_exec_prefix"
10301 prefix="$acl_save_prefix"
10303 else
10304 additional_includedir="$withval/include"
10305 additional_libdir="$withval/lib"
10311 LIBICONV=
10312 LTLIBICONV=
10313 INCICONV=
10314 rpathdirs=
10315 ltrpathdirs=
10316 names_already_handled=
10317 names_next_round='iconv '
10318 while test -n "$names_next_round"; do
10319 names_this_round="$names_next_round"
10320 names_next_round=
10321 for name in $names_this_round; do
10322 already_handled=
10323 for n in $names_already_handled; do
10324 if test "$n" = "$name"; then
10325 already_handled=yes
10326 break
10328 done
10329 if test -z "$already_handled"; then
10330 names_already_handled="$names_already_handled $name"
10331 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10332 eval value=\"\$HAVE_LIB$uppername\"
10333 if test -n "$value"; then
10334 if test "$value" = yes; then
10335 eval value=\"\$LIB$uppername\"
10336 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10337 eval value=\"\$LTLIB$uppername\"
10338 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10339 else
10342 else
10343 found_dir=
10344 found_la=
10345 found_so=
10346 found_a=
10347 if test $use_additional = yes; then
10348 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10349 found_dir="$additional_libdir"
10350 found_so="$additional_libdir/lib$name.$shlibext"
10351 if test -f "$additional_libdir/lib$name.la"; then
10352 found_la="$additional_libdir/lib$name.la"
10354 else
10355 if test -f "$additional_libdir/lib$name.$libext"; then
10356 found_dir="$additional_libdir"
10357 found_a="$additional_libdir/lib$name.$libext"
10358 if test -f "$additional_libdir/lib$name.la"; then
10359 found_la="$additional_libdir/lib$name.la"
10364 if test "X$found_dir" = "X"; then
10365 for x in $LDFLAGS $LTLIBICONV; do
10367 acl_save_prefix="$prefix"
10368 prefix="$acl_final_prefix"
10369 acl_save_exec_prefix="$exec_prefix"
10370 exec_prefix="$acl_final_exec_prefix"
10371 eval x=\"$x\"
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10375 case "$x" in
10376 -L*)
10377 dir=`echo "X$x" | sed -e 's/^X-L//'`
10378 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10379 found_dir="$dir"
10380 found_so="$dir/lib$name.$shlibext"
10381 if test -f "$dir/lib$name.la"; then
10382 found_la="$dir/lib$name.la"
10384 else
10385 if test -f "$dir/lib$name.$libext"; then
10386 found_dir="$dir"
10387 found_a="$dir/lib$name.$libext"
10388 if test -f "$dir/lib$name.la"; then
10389 found_la="$dir/lib$name.la"
10394 esac
10395 if test "X$found_dir" != "X"; then
10396 break
10398 done
10400 if test "X$found_dir" != "X"; then
10401 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10402 if test "X$found_so" != "X"; then
10403 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10404 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10405 else
10406 haveit=
10407 for x in $ltrpathdirs; do
10408 if test "X$x" = "X$found_dir"; then
10409 haveit=yes
10410 break
10412 done
10413 if test -z "$haveit"; then
10414 ltrpathdirs="$ltrpathdirs $found_dir"
10416 if test "$hardcode_direct" = yes; then
10417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10418 else
10419 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10420 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10421 haveit=
10422 for x in $rpathdirs; do
10423 if test "X$x" = "X$found_dir"; then
10424 haveit=yes
10425 break
10427 done
10428 if test -z "$haveit"; then
10429 rpathdirs="$rpathdirs $found_dir"
10431 else
10432 haveit=
10433 for x in $LDFLAGS $LIBICONV; do
10435 acl_save_prefix="$prefix"
10436 prefix="$acl_final_prefix"
10437 acl_save_exec_prefix="$exec_prefix"
10438 exec_prefix="$acl_final_exec_prefix"
10439 eval x=\"$x\"
10440 exec_prefix="$acl_save_exec_prefix"
10441 prefix="$acl_save_prefix"
10443 if test "X$x" = "X-L$found_dir"; then
10444 haveit=yes
10445 break
10447 done
10448 if test -z "$haveit"; then
10449 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10451 if test "$hardcode_minus_L" != no; then
10452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10453 else
10454 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10459 else
10460 if test "X$found_a" != "X"; then
10461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10462 else
10463 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10466 additional_includedir=
10467 case "$found_dir" in
10468 */lib | */lib/)
10469 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10470 additional_includedir="$basedir/include"
10472 esac
10473 if test "X$additional_includedir" != "X"; then
10474 if test "X$additional_includedir" != "X/usr/include"; then
10475 haveit=
10476 if test "X$additional_includedir" = "X/usr/local/include"; then
10477 if test -n "$GCC"; then
10478 case $host_os in
10479 linux*) haveit=yes;;
10480 esac
10483 if test -z "$haveit"; then
10484 for x in $CPPFLAGS $INCICONV; do
10486 acl_save_prefix="$prefix"
10487 prefix="$acl_final_prefix"
10488 acl_save_exec_prefix="$exec_prefix"
10489 exec_prefix="$acl_final_exec_prefix"
10490 eval x=\"$x\"
10491 exec_prefix="$acl_save_exec_prefix"
10492 prefix="$acl_save_prefix"
10494 if test "X$x" = "X-I$additional_includedir"; then
10495 haveit=yes
10496 break
10498 done
10499 if test -z "$haveit"; then
10500 if test -d "$additional_includedir"; then
10501 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10507 if test -n "$found_la"; then
10508 save_libdir="$libdir"
10509 case "$found_la" in
10510 */* | *\\*) . "$found_la" ;;
10511 *) . "./$found_la" ;;
10512 esac
10513 libdir="$save_libdir"
10514 for dep in $dependency_libs; do
10515 case "$dep" in
10516 -L*)
10517 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10518 if test "X$additional_libdir" != "X/usr/lib"; then
10519 haveit=
10520 if test "X$additional_libdir" = "X/usr/local/lib"; then
10521 if test -n "$GCC"; then
10522 case $host_os in
10523 linux*) haveit=yes;;
10524 esac
10527 if test -z "$haveit"; then
10528 haveit=
10529 for x in $LDFLAGS $LIBICONV; do
10531 acl_save_prefix="$prefix"
10532 prefix="$acl_final_prefix"
10533 acl_save_exec_prefix="$exec_prefix"
10534 exec_prefix="$acl_final_exec_prefix"
10535 eval x=\"$x\"
10536 exec_prefix="$acl_save_exec_prefix"
10537 prefix="$acl_save_prefix"
10539 if test "X$x" = "X-L$additional_libdir"; then
10540 haveit=yes
10541 break
10543 done
10544 if test -z "$haveit"; then
10545 if test -d "$additional_libdir"; then
10546 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10549 haveit=
10550 for x in $LDFLAGS $LTLIBICONV; do
10552 acl_save_prefix="$prefix"
10553 prefix="$acl_final_prefix"
10554 acl_save_exec_prefix="$exec_prefix"
10555 exec_prefix="$acl_final_exec_prefix"
10556 eval x=\"$x\"
10557 exec_prefix="$acl_save_exec_prefix"
10558 prefix="$acl_save_prefix"
10560 if test "X$x" = "X-L$additional_libdir"; then
10561 haveit=yes
10562 break
10564 done
10565 if test -z "$haveit"; then
10566 if test -d "$additional_libdir"; then
10567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10573 -R*)
10574 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10575 if test "$enable_rpath" != no; then
10576 haveit=
10577 for x in $rpathdirs; do
10578 if test "X$x" = "X$dir"; then
10579 haveit=yes
10580 break
10582 done
10583 if test -z "$haveit"; then
10584 rpathdirs="$rpathdirs $dir"
10586 haveit=
10587 for x in $ltrpathdirs; do
10588 if test "X$x" = "X$dir"; then
10589 haveit=yes
10590 break
10592 done
10593 if test -z "$haveit"; then
10594 ltrpathdirs="$ltrpathdirs $dir"
10598 -l*)
10599 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10601 *.la)
10602 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10605 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10606 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10608 esac
10609 done
10611 else
10612 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10617 done
10618 done
10619 if test "X$rpathdirs" != "X"; then
10620 if test -n "$hardcode_libdir_separator"; then
10621 alldirs=
10622 for found_dir in $rpathdirs; do
10623 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10624 done
10625 acl_save_libdir="$libdir"
10626 libdir="$alldirs"
10627 eval flag=\"$hardcode_libdir_flag_spec\"
10628 libdir="$acl_save_libdir"
10629 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10630 else
10631 for found_dir in $rpathdirs; do
10632 acl_save_libdir="$libdir"
10633 libdir="$found_dir"
10634 eval flag=\"$hardcode_libdir_flag_spec\"
10635 libdir="$acl_save_libdir"
10636 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10637 done
10640 if test "X$ltrpathdirs" != "X"; then
10641 for found_dir in $ltrpathdirs; do
10642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10643 done
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10653 $as_echo_n "checking for iconv... " >&6; }
10654 if test "${am_cv_func_iconv+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10658 am_cv_func_iconv="no, consider installing GNU libiconv"
10659 am_cv_lib_iconv=no
10660 am_save_CPPFLAGS="$CPPFLAGS"
10661 CPPFLAGS="$CPPFLAGS $INCICONV"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #include <stdlib.h>
10665 #include <iconv.h>
10667 main ()
10669 iconv_t cd = iconv_open("","");
10670 iconv(cd,NULL,NULL,NULL,NULL);
10671 iconv_close(cd);
10673 return 0;
10675 _ACEOF
10676 if ac_fn_cxx_try_link "$LINENO"; then :
10677 am_cv_func_iconv=yes
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 CPPFLAGS="$am_save_CPPFLAGS"
10683 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10684 for _libs in .libs _libs; do
10685 am_save_CPPFLAGS="$CPPFLAGS"
10686 am_save_LIBS="$LIBS"
10687 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10688 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 #include <stdlib.h>
10692 #include <iconv.h>
10694 main ()
10696 iconv_t cd = iconv_open("","");
10697 iconv(cd,NULL,NULL,NULL,NULL);
10698 iconv_close(cd);
10700 return 0;
10702 _ACEOF
10703 if ac_fn_cxx_try_link "$LINENO"; then :
10704 INCICONV="-I../libiconv/include"
10705 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10706 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10707 am_cv_lib_iconv=yes
10708 am_cv_func_iconv=yes
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 CPPFLAGS="$am_save_CPPFLAGS"
10713 LIBS="$am_save_LIBS"
10714 if test "$am_cv_func_iconv" = "yes"; then
10715 break
10717 done
10720 if test "$am_cv_func_iconv" != yes; then
10721 am_save_CPPFLAGS="$CPPFLAGS"
10722 am_save_LIBS="$LIBS"
10723 CPPFLAGS="$LIBS $INCICONV"
10724 LIBS="$LIBS $LIBICONV"
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10727 #include <stdlib.h>
10728 #include <iconv.h>
10730 main ()
10732 iconv_t cd = iconv_open("","");
10733 iconv(cd,NULL,NULL,NULL,NULL);
10734 iconv_close(cd);
10736 return 0;
10738 _ACEOF
10739 if ac_fn_cxx_try_link "$LINENO"; then :
10740 am_cv_lib_iconv=yes
10741 am_cv_func_iconv=yes
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10745 CPPFLAGS="$am_save_CPPFLAGS"
10746 LIBS="$am_save_LIBS"
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10751 $as_echo "$am_cv_func_iconv" >&6; }
10752 if test "$am_cv_func_iconv" = yes; then
10754 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10757 if test "$am_cv_lib_iconv" = yes; then
10759 for element in $INCICONV; do
10760 haveit=
10761 for x in $CPPFLAGS; do
10763 acl_save_prefix="$prefix"
10764 prefix="$acl_final_prefix"
10765 acl_save_exec_prefix="$exec_prefix"
10766 exec_prefix="$acl_final_exec_prefix"
10767 eval x=\"$x\"
10768 exec_prefix="$acl_save_exec_prefix"
10769 prefix="$acl_save_prefix"
10771 if test "X$x" = "X$element"; then
10772 haveit=yes
10773 break
10775 done
10776 if test -z "$haveit"; then
10777 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10779 done
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10782 $as_echo_n "checking how to link with libiconv... " >&6; }
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10784 $as_echo "$LIBICONV" >&6; }
10785 else
10786 LIBICONV=
10787 LTLIBICONV=
10792 if test "$am_cv_func_iconv" = yes; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10794 $as_echo_n "checking for iconv declaration... " >&6; }
10795 if test "${am_cv_proto_iconv+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 #include <stdlib.h>
10803 #include <iconv.h>
10804 extern
10805 #ifdef __cplusplus
10807 #endif
10808 #if defined(__STDC__) || defined(__cplusplus)
10809 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10810 #else
10811 size_t iconv();
10812 #endif
10815 main ()
10819 return 0;
10821 _ACEOF
10822 if ac_fn_cxx_try_compile "$LINENO"; then :
10823 am_cv_proto_iconv_arg1=""
10824 else
10825 am_cv_proto_iconv_arg1="const"
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 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);"
10831 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10833 }$am_cv_proto_iconv" >&5
10834 $as_echo "${ac_t:-
10835 }$am_cv_proto_iconv" >&6; }
10837 cat >>confdefs.h <<_ACEOF
10838 #define ICONV_CONST $am_cv_proto_iconv_arg1
10839 _ACEOF
10844 # Until we have in-tree GNU iconv:
10845 LIBICONV_DEP=
10846 if test -f "$LTLIBICONV"; then
10847 LIBICONV_DEP=$LTLIBICONV
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10853 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10854 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10856 else
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 #include <locale.h>
10861 main ()
10863 return LC_MESSAGES
10865 return 0;
10867 _ACEOF
10868 if ac_fn_cxx_try_link "$LINENO"; then :
10869 am_cv_val_LC_MESSAGES=yes
10870 else
10871 am_cv_val_LC_MESSAGES=no
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10877 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10878 if test $am_cv_val_LC_MESSAGES = yes; then
10880 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10887 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10888 if test "${am_cv_langinfo_codeset+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 #include <langinfo.h>
10895 main ()
10897 char* cs = nl_langinfo(CODESET);
10899 return 0;
10901 _ACEOF
10902 if ac_fn_cxx_try_link "$LINENO"; then :
10903 am_cv_langinfo_codeset=yes
10904 else
10905 am_cv_langinfo_codeset=no
10907 rm -f core conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10912 $as_echo "$am_cv_langinfo_codeset" >&6; }
10913 if test $am_cv_langinfo_codeset = yes; then
10915 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10920 # We will need to find libiberty.h and ansidecl.h
10921 saved_CFLAGS="$CFLAGS"
10922 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10923 saved_CXXFLAGS="$CXXFLAGS"
10924 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10926 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10927 # normal autoconf function for these. But force definition of
10928 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10929 # basename handling in libiberty.h.
10930 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10931 #undef HAVE_DECL_BASENAME
10932 #define HAVE_DECL_BASENAME 1
10933 #include \"ansidecl.h\"
10934 #include \"system.h\"
10936 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10937 ac_have_decl=1
10938 else
10939 ac_have_decl=0
10942 cat >>confdefs.h <<_ACEOF
10943 #define HAVE_DECL_BASENAME $ac_have_decl
10944 _ACEOF
10945 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10946 #undef HAVE_DECL_BASENAME
10947 #define HAVE_DECL_BASENAME 1
10948 #include \"ansidecl.h\"
10949 #include \"system.h\"
10951 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10952 ac_have_decl=1
10953 else
10954 ac_have_decl=0
10957 cat >>confdefs.h <<_ACEOF
10958 #define HAVE_DECL_STRSTR $ac_have_decl
10959 _ACEOF
10962 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10963 madvise stpcpy strnlen strsignal strverscmp \
10964 strtol strtoul strtoll strtoull setenv unsetenv \
10965 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10966 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
10968 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10970 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10971 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10972 $as_echo_n "(cached) " >&6
10973 else
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10976 #undef $ac_tr_decl
10977 #define $ac_tr_decl 1
10979 #include "ansidecl.h"
10980 #include "system.h"
10983 main ()
10985 #ifndef $ac_func
10986 char *(*pfn) = (char *(*)) $ac_func ;
10987 #endif
10989 return 0;
10991 _ACEOF
10992 if ac_fn_cxx_try_compile "$LINENO"; then :
10993 eval "gcc_cv_have_decl_$ac_func=yes"
10994 else
10995 eval "gcc_cv_have_decl_$ac_func=no"
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11002 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11003 #define $ac_tr_decl 1
11004 _ACEOF
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11009 #define $ac_tr_decl 0
11010 _ACEOF
11014 done
11017 for ac_func in getrlimit setrlimit getrusage
11019 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11021 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11022 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 #undef $ac_tr_decl
11028 #define $ac_tr_decl 1
11030 #include "ansidecl.h"
11031 #include "system.h"
11032 #ifdef HAVE_SYS_RESOURCE_H
11033 #include <sys/resource.h>
11034 #endif
11038 main ()
11040 #ifndef $ac_func
11041 char *(*pfn) = (char *(*)) $ac_func ;
11042 #endif
11044 return 0;
11046 _ACEOF
11047 if ac_fn_cxx_try_compile "$LINENO"; then :
11048 eval "gcc_cv_have_decl_$ac_func=yes"
11049 else
11050 eval "gcc_cv_have_decl_$ac_func=no"
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11057 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11058 #define $ac_tr_decl 1
11059 _ACEOF
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11064 #define $ac_tr_decl 0
11065 _ACEOF
11069 done
11072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 #include "ansidecl.h"
11076 #include "system.h"
11077 #ifdef HAVE_SYS_RESOURCE_H
11078 #include <sys/resource.h>
11079 #endif
11082 main ()
11084 rlim_t l = 0;
11086 return 0;
11088 _ACEOF
11089 if ac_fn_cxx_try_compile "$LINENO"; then :
11091 else
11093 $as_echo "#define rlim_t long" >>confdefs.h
11096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11099 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11100 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11101 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11102 for ac_func in ldgetname
11104 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11106 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11107 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112 #undef $ac_tr_decl
11113 #define $ac_tr_decl 1
11115 #include "ansidecl.h"
11116 #include "system.h"
11117 #ifdef HAVE_LDFCN_H
11118 #undef FREAD
11119 #undef FWRITE
11120 #include <ldfcn.h>
11121 #endif
11125 main ()
11127 #ifndef $ac_func
11128 char *(*pfn) = (char *(*)) $ac_func ;
11129 #endif
11131 return 0;
11133 _ACEOF
11134 if ac_fn_cxx_try_compile "$LINENO"; then :
11135 eval "gcc_cv_have_decl_$ac_func=yes"
11136 else
11137 eval "gcc_cv_have_decl_$ac_func=no"
11139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11145 #define $ac_tr_decl 1
11146 _ACEOF
11148 else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11151 #define $ac_tr_decl 0
11152 _ACEOF
11156 done
11159 for ac_func in times
11161 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11163 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11164 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11165 $as_echo_n "(cached) " >&6
11166 else
11167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h. */
11169 #undef $ac_tr_decl
11170 #define $ac_tr_decl 1
11172 #include "ansidecl.h"
11173 #include "system.h"
11174 #ifdef HAVE_SYS_TIMES_H
11175 #include <sys/times.h>
11176 #endif
11180 main ()
11182 #ifndef $ac_func
11183 char *(*pfn) = (char *(*)) $ac_func ;
11184 #endif
11186 return 0;
11188 _ACEOF
11189 if ac_fn_cxx_try_compile "$LINENO"; then :
11190 eval "gcc_cv_have_decl_$ac_func=yes"
11191 else
11192 eval "gcc_cv_have_decl_$ac_func=no"
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11199 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11200 #define $ac_tr_decl 1
11201 _ACEOF
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11206 #define $ac_tr_decl 0
11207 _ACEOF
11211 done
11214 for ac_func in sigaltstack
11216 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11218 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11219 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224 #undef $ac_tr_decl
11225 #define $ac_tr_decl 1
11227 #include "ansidecl.h"
11228 #include "system.h"
11229 #include <signal.h>
11233 main ()
11235 #ifndef $ac_func
11236 char *(*pfn) = (char *(*)) $ac_func ;
11237 #endif
11239 return 0;
11241 _ACEOF
11242 if ac_fn_cxx_try_compile "$LINENO"; then :
11243 eval "gcc_cv_have_decl_$ac_func=yes"
11244 else
11245 eval "gcc_cv_have_decl_$ac_func=no"
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11252 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11253 #define $ac_tr_decl 1
11254 _ACEOF
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11259 #define $ac_tr_decl 0
11260 _ACEOF
11264 done
11267 # More time-related stuff.
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11269 $as_echo_n "checking for struct tms... " >&6; }
11270 if test "${ac_cv_struct_tms+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 #include "ansidecl.h"
11278 #include "system.h"
11279 #ifdef HAVE_SYS_TIMES_H
11280 #include <sys/times.h>
11281 #endif
11284 main ()
11286 struct tms tms;
11288 return 0;
11290 _ACEOF
11291 if ac_fn_cxx_try_compile "$LINENO"; then :
11292 ac_cv_struct_tms=yes
11293 else
11294 ac_cv_struct_tms=no
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11299 $as_echo "$ac_cv_struct_tms" >&6; }
11300 if test $ac_cv_struct_tms = yes; then
11302 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11306 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11307 # revisit after autoconf 2.50.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11309 $as_echo_n "checking for clock_t... " >&6; }
11310 if test "${gcc_cv_type_clock_t+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 #include "ansidecl.h"
11318 #include "system.h"
11321 main ()
11323 clock_t x;
11325 return 0;
11327 _ACEOF
11328 if ac_fn_cxx_try_compile "$LINENO"; then :
11329 gcc_cv_type_clock_t=yes
11330 else
11331 gcc_cv_type_clock_t=no
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11336 $as_echo "$gcc_cv_type_clock_t" >&6; }
11337 if test $gcc_cv_type_clock_t = yes; then
11339 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11343 # Check if F_SETLKW is supported by fcntl.
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11345 $as_echo_n "checking for F_SETLKW... " >&6; }
11346 if test "${ac_cv_f_setlkw+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11353 #include <fcntl.h>
11355 main ()
11358 struct flock fl;
11359 fl.l_whence = 0;
11360 fl.l_start = 0;
11361 fl.l_len = 0;
11362 fl.l_pid = 0;
11363 return fcntl (1, F_SETLKW, &fl);
11365 return 0;
11367 _ACEOF
11368 if ac_fn_cxx_try_compile "$LINENO"; then :
11369 ac_cv_f_setlkw=yes
11370 else
11371 ac_cv_f_setlkw=no
11373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11376 $as_echo "$ac_cv_f_setlkw" >&6; }
11377 if test $ac_cv_f_setlkw = yes; then
11379 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11383 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11384 CFLAGS="$saved_CFLAGS"
11385 CXXFLAGS="$saved_CXXFLAGS"
11387 # mkdir takes a single argument on some systems.
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11389 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11390 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 #include <sys/types.h>
11397 #ifdef HAVE_SYS_STAT_H
11398 # include <sys/stat.h>
11399 #endif
11400 #ifdef HAVE_UNISTD_H
11401 # include <unistd.h>
11402 #endif
11403 #ifdef HAVE_DIRECT_H
11404 # include <direct.h>
11405 #endif
11407 main ()
11409 mkdir ("foo", 0);
11411 return 0;
11413 _ACEOF
11414 if ac_fn_cxx_try_compile "$LINENO"; then :
11415 gcc_cv_mkdir_takes_one_arg=no
11416 else
11417 gcc_cv_mkdir_takes_one_arg=yes
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11422 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11423 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11425 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11430 # File extensions
11431 manext='.1'
11432 objext='.o'
11436 # With Setjmp/Longjmp based exception handling.
11437 # Check whether --enable-sjlj-exceptions was given.
11438 if test "${enable_sjlj_exceptions+set}" = set; then :
11439 enableval=$enable_sjlj_exceptions; case $target in
11440 *-*-hpux10*)
11441 if test $enableval != yes; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11443 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11444 enableval=yes
11447 esac
11448 force_sjlj_exceptions=yes
11449 else
11450 case $target in
11451 *-*-hpux10*)
11452 force_sjlj_exceptions=yes
11453 enableval=yes
11455 lm32*-*-*)
11456 force_sjlj_exceptions=yes
11457 enableval=yes
11460 force_sjlj_exceptions=no
11462 esac
11465 if test $force_sjlj_exceptions = yes; then
11466 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11468 cat >>confdefs.h <<_ACEOF
11469 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11470 _ACEOF
11474 # --------------------------------------------------------
11475 # Build, host, and target specific configuration fragments
11476 # --------------------------------------------------------
11478 # Collect build-machine-specific information.
11479 . ${srcdir}/config.build
11481 # Collect host-machine-specific information.
11482 . ${srcdir}/config.host
11484 target_gtfiles=
11486 # Collect target-machine-specific information.
11487 . ${srcdir}/config.gcc
11489 extra_objs="${host_extra_objs} ${extra_objs}"
11490 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11492 # Default the target-machine variables that were not explicitly set.
11493 if test x"$tm_file" = x
11494 then tm_file=$cpu_type/$cpu_type.h; fi
11496 if test x"$extra_headers" = x
11497 then extra_headers=; fi
11499 if test x$md_file = x
11500 then md_file=$cpu_type/$cpu_type.md; fi
11502 if test x$out_file = x
11503 then out_file=$cpu_type/$cpu_type.c; fi
11505 if test x"$tmake_file" = x
11506 then tmake_file=$cpu_type/t-$cpu_type
11509 # Support --enable-initfini-array.
11510 if test x$enable_initfini_array != xno; then
11511 tm_file="${tm_file} initfini-array.h"
11514 if test x"$dwarf2" = xyes
11515 then tm_file="$tm_file tm-dwarf2.h"
11518 # Say what files are being used for the output code and MD file.
11519 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11520 echo "Using \`$srcdir/config/$md_file' as machine description file."
11522 # If any of the xm_file variables contain nonexistent files, warn
11523 # about them and drop them.
11526 for x in $build_xm_file; do
11527 if test -f $srcdir/config/$x
11528 then bx="$bx $x"
11529 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11530 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11532 done
11533 build_xm_file="$bx"
11536 for x in $host_xm_file; do
11537 if test -f $srcdir/config/$x
11538 then hx="$hx $x"
11539 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11540 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11542 done
11543 host_xm_file="$hx"
11546 for x in $xm_file; do
11547 if test -f $srcdir/config/$x
11548 then tx="$tx $x"
11549 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11550 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11552 done
11553 xm_file="$tx"
11555 count=a
11556 for f in $tm_file; do
11557 count=${count}x
11558 done
11559 if test $count = ax; then
11560 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11561 else
11562 echo "Using the following target machine macro files:"
11563 for f in $tm_file; do
11564 echo " $srcdir/config/$f"
11565 done
11568 if test x$use_long_long_for_widest_fast_int = xyes; then
11570 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11574 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_GNU_LD $gnu_ld_bool
11578 _ACEOF
11581 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11583 cat >>confdefs.h <<_ACEOF
11584 #define HAVE_GNU_AS $gnu_as_bool
11585 _ACEOF
11588 count=a
11589 for f in $host_xm_file; do
11590 count=${count}x
11591 done
11592 if test $count = a; then
11594 elif test $count = ax; then
11595 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11596 else
11597 echo "Using the following host machine macro files:"
11598 for f in $host_xm_file; do
11599 echo " $srcdir/config/$f"
11600 done
11602 echo "Using ${out_host_hook_obj} for host machine hooks."
11604 if test "$host_xm_file" != "$build_xm_file"; then
11605 count=a
11606 for f in $build_xm_file; do
11607 count=${count}x
11608 done
11609 if test $count = a; then
11611 elif test $count = ax; then
11612 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11613 else
11614 echo "Using the following build machine macro files:"
11615 for f in $build_xm_file; do
11616 echo " $srcdir/config/$f"
11617 done
11621 if test -n "$configured_native_system_header_dir"; then
11622 native_system_header_dir=$configured_native_system_header_dir
11624 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11627 case ${host} in
11628 powerpc*-*-darwin*)
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11630 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11631 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11637 #include <sys/cdefs.h>
11638 #include <sys/signal.h>
11639 #include <ucontext.h>
11640 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11642 _ACEOF
11643 if ac_fn_cxx_try_compile "$LINENO"; then :
11644 gcc_cv_mcontext_underscores=no
11645 else
11646 gcc_cv_mcontext_underscores=yes
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11651 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11652 if test $gcc_cv_mcontext_underscores = yes; then
11654 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11658 esac
11660 # ---------
11661 # Threading
11662 # ---------
11664 # Check if a valid thread package
11665 case ${enable_threads} in
11666 "" | no)
11667 # No threads
11668 target_thread_file='single'
11670 yes)
11671 # default
11672 target_thread_file='single'
11674 aix | dce | lynx | mipssde | posix | rtems | \
11675 single | tpf | vxworks | win32)
11676 target_thread_file=${enable_threads}
11679 echo "${enable_threads} is an unknown thread package" 1>&2
11680 exit 1
11682 esac
11684 if test x${thread_file} = x; then
11685 # No thread file set by target-specific clauses in config.gcc,
11686 # so use file chosen by default logic above
11687 thread_file=${target_thread_file}
11690 # --------
11691 # UNSORTED
11692 # --------
11694 use_cxa_atexit=no
11695 if test x$enable___cxa_atexit = xyes || \
11696 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11697 if test x$host = x$target; then
11698 case $host in
11699 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11700 # keyed to flag_use_cxa_atexit
11701 *-*-mingw32*)
11702 use_cxa_atexit=yes
11704 powerpc-ibm-aix*)
11705 use_cxa_atexit=yes
11708 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11709 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11710 use_cxa_atexit=yes
11711 else
11712 echo "__cxa_atexit can't be enabled on this target"
11716 esac
11717 else
11718 # We can't check for __cxa_atexit when building a cross, so assume
11719 # it is available
11720 use_cxa_atexit=yes
11722 if test x$use_cxa_atexit = xyes; then
11724 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11729 # Look for a file containing extra machine modes.
11730 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11731 extra_modes_file='$(srcdir)'/config/${extra_modes}
11734 cat >>confdefs.h <<_ACEOF
11735 #define EXTRA_MODES_FILE "config/$extra_modes"
11736 _ACEOF
11740 # Convert extra_options into a form suitable for Makefile use.
11741 extra_opt_files=
11742 all_opt_files=
11743 for f in $extra_options; do
11744 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11745 all_opt_files="$all_opt_files $srcdir/config/$f"
11746 done
11749 # auto-host.h is the file containing items generated by autoconf and is
11750 # the first file included by config.h.
11751 # If host=build, it is correct to have bconfig include auto-host.h
11752 # as well. If host!=build, we are in error and need to do more
11753 # work to find out the build config parameters.
11754 if test x$host = x$build
11755 then
11756 build_auto=auto-host.h
11757 else
11758 # We create a subdir, then run autoconf in the subdir.
11759 # To prevent recursion we set host and build for the new
11760 # invocation of configure to the build for this invocation
11761 # of configure.
11762 tempdir=build.$$
11763 rm -rf $tempdir
11764 mkdir $tempdir
11765 cd $tempdir
11766 case ${srcdir} in
11767 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11768 *) realsrcdir=../${srcdir};;
11769 esac
11770 # Clearing GMPINC is necessary to prevent host headers being
11771 # used by the build compiler. Defining GENERATOR_FILE stops
11772 # system.h from including gmp.h.
11773 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11774 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11775 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11776 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11777 ${realsrcdir}/configure \
11778 --enable-languages=${enable_languages-all} \
11779 --target=$target_alias --host=$build_alias --build=$build_alias
11781 # We just finished tests for the build machine, so rename
11782 # the file auto-build.h in the gcc directory.
11783 mv auto-host.h ../auto-build.h
11784 cd ..
11785 rm -rf $tempdir
11786 build_auto=auto-build.h
11790 tm_file="${tm_file} defaults.h"
11791 tm_p_file="${tm_p_file} tm-preds.h"
11792 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11793 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11794 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11795 # put this back in temporarily.
11796 xm_file="auto-host.h ansidecl.h ${xm_file}"
11798 # --------
11799 # UNSORTED
11800 # --------
11802 # Compile in configure arguments.
11803 if test -f configargs.h ; then
11804 # Being re-configured.
11805 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11806 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11807 else
11808 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11811 # Double all backslashes and backslash all quotes to turn
11812 # gcc_config_arguments into a C string.
11813 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11814 $gcc_config_arguments
11816 gcc_config_arguments_str=`cat conftest.out`
11817 rm -f conftest.out
11819 cat > configargs.h <<EOF
11820 /* Generated automatically. */
11821 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11822 static const char thread_model[] = "$thread_file";
11824 static const struct {
11825 const char *name, *value;
11826 } configure_default_options[] = $configure_default_options;
11829 gcc_BASEVER=`cat $srcdir/BASE-VER`
11830 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11831 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11832 if test -f $srcdir/REVISION ; then
11833 gcc_REVISION=`cat $srcdir/REVISION`
11834 else
11835 gcc_REVISION=""
11837 cat > plugin-version.h <<EOF
11838 #include "configargs.h"
11840 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11841 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11842 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11843 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11845 static char basever[] = "$gcc_BASEVER";
11846 static char datestamp[] = "$gcc_DATESTAMP";
11847 static char devphase[] = "$gcc_DEVPHASE";
11848 static char revision[] = "$gcc_REVISION";
11850 /* FIXME plugins: We should make the version information more precise.
11851 One way to do is to add a checksum. */
11853 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11854 devphase, revision,
11855 configuration_arguments};
11858 # Internationalization
11859 # If we haven't got the data from the intl directory,
11860 # assume NLS is disabled.
11861 USE_NLS=no
11862 LIBINTL=
11863 LIBINTL_DEP=
11864 INCINTL=
11865 XGETTEXT=
11866 GMSGFMT=
11867 POSUB=
11869 if test -f ../intl/config.intl; then
11870 . ../intl/config.intl
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11873 $as_echo_n "checking whether NLS is requested... " >&6; }
11874 if test x"$USE_NLS" != xyes; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11881 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11885 $as_echo_n "checking for catalogs to be installed... " >&6; }
11886 # Look for .po and .gmo files in the source directory.
11887 CATALOGS=
11888 XLINGUAS=
11889 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11890 # If there aren't any .gmo files the shell will give us the
11891 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11892 # weeded out.
11893 case "$cat" in *\**)
11894 continue;;
11895 esac
11896 # The quadruple backslash is collapsed to a double backslash
11897 # by the backticks, then collapsed again by the double quotes,
11898 # leaving us with one backslash in the sed expression (right
11899 # before the dot that mustn't act as a wildcard).
11900 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11901 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11902 # The user is allowed to set LINGUAS to a list of languages to
11903 # install catalogs for. If it's empty that means "all of them."
11904 if test "x$LINGUAS" = x; then
11905 CATALOGS="$CATALOGS $cat"
11906 XLINGUAS="$XLINGUAS $lang"
11907 else
11908 case "$LINGUAS" in *$lang*)
11909 CATALOGS="$CATALOGS $cat"
11910 XLINGUAS="$XLINGUAS $lang"
11912 esac
11914 done
11915 LINGUAS="$XLINGUAS"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11917 $as_echo "$LINGUAS" >&6; }
11920 DATADIRNAME=share
11922 INSTOBJEXT=.mo
11924 GENCAT=gencat
11926 CATOBJEXT=.gmo
11930 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11931 # -liconv on the link line twice.
11932 case "$LIBINTL" in *$LIBICONV*)
11933 LIBICONV= ;;
11934 esac
11936 # Check whether --enable-secureplt was given.
11937 if test "${enable_secureplt+set}" = set; then :
11938 enableval=$enable_secureplt;
11942 # Check whether --enable-leading-mingw64-underscores was given.
11943 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11944 enableval=$enable_leading_mingw64_underscores;
11947 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11949 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11953 # Check whether --enable-cld was given.
11954 if test "${enable_cld+set}" = set; then :
11955 enableval=$enable_cld;
11956 else
11957 enable_cld=no
11961 # Check whether --enable-frame-pointer was given.
11962 if test "${enable_frame_pointer+set}" = set; then :
11963 enableval=$enable_frame_pointer;
11964 else
11966 case $target_os in
11967 linux* | darwin[8912]*)
11968 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11969 # DWARF2.
11970 enable_frame_pointer=no
11973 enable_frame_pointer=yes
11975 esac
11980 # Windows32 Registry support for specifying GCC installation paths.
11981 # Check whether --enable-win32-registry was given.
11982 if test "${enable_win32_registry+set}" = set; then :
11983 enableval=$enable_win32_registry;
11987 case $host_os in
11988 win32 | pe | cygwin* | mingw32*)
11989 if test "x$enable_win32_registry" != xno; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11991 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11992 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 ac_func_search_save_LIBS=$LIBS
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char RegOpenKeyExA ();
12007 main ()
12009 return RegOpenKeyExA ();
12011 return 0;
12013 _ACEOF
12014 for ac_lib in '' advapi32; do
12015 if test -z "$ac_lib"; then
12016 ac_res="none required"
12017 else
12018 ac_res=-l$ac_lib
12019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12021 if ac_fn_cxx_try_link "$LINENO"; then :
12022 ac_cv_search_RegOpenKeyExA=$ac_res
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext
12026 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12027 break
12029 done
12030 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12032 else
12033 ac_cv_search_RegOpenKeyExA=no
12035 rm conftest.$ac_ext
12036 LIBS=$ac_func_search_save_LIBS
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12039 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12040 ac_res=$ac_cv_search_RegOpenKeyExA
12041 if test "$ac_res" != no; then :
12042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12044 else
12045 enable_win32_registry=no
12050 if test "x$enable_win32_registry" != xno; then
12052 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12055 if test "x$enable_win32_registry" != xyes \
12056 && test "x$enable_win32_registry" != x; then
12058 cat >>confdefs.h <<_ACEOF
12059 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12060 _ACEOF
12065 esac
12067 # Get an absolute path to the GCC top-level source directory
12068 holddir=`${PWDCMD-pwd}`
12069 cd $srcdir
12070 topdir=`${PWDCMD-pwd}`
12071 cd $holddir
12073 # Conditionalize the makefile for this host machine.
12074 xmake_file=
12075 for f in ${host_xmake_file}
12077 if test -f ${srcdir}/config/$f
12078 then
12079 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12081 done
12083 # Conditionalize the makefile for this target machine.
12084 tmake_file_=
12085 for f in ${tmake_file}
12087 if test -f ${srcdir}/config/$f
12088 then
12089 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12091 done
12092 tmake_file="${tmake_file_}"
12094 out_object_file=`basename $out_file .c`.o
12095 common_out_object_file=`basename $common_out_file .c`.o
12097 tm_file_list="options.h"
12098 tm_include_list="options.h insn-constants.h"
12099 for f in $tm_file; do
12100 case $f in
12101 ./* )
12102 f=`echo $f | sed 's/^..//'`
12103 tm_file_list="${tm_file_list} $f"
12104 tm_include_list="${tm_include_list} $f"
12106 defaults.h )
12107 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12108 tm_include_list="${tm_include_list} $f"
12111 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12112 tm_include_list="${tm_include_list} config/$f"
12114 esac
12115 done
12117 tm_p_file_list=
12118 tm_p_include_list=
12119 for f in $tm_p_file; do
12120 case $f in
12121 tm-preds.h )
12122 tm_p_file_list="${tm_p_file_list} $f"
12123 tm_p_include_list="${tm_p_include_list} $f"
12126 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12127 tm_p_include_list="${tm_p_include_list} config/$f"
12128 esac
12129 done
12131 xm_file_list=
12132 xm_include_list=
12133 for f in $xm_file; do
12134 case $f in
12135 ansidecl.h )
12136 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12137 xm_include_list="${xm_include_list} $f"
12139 auto-host.h )
12140 xm_file_list="${xm_file_list} $f"
12141 xm_include_list="${xm_include_list} $f"
12144 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12145 xm_include_list="${xm_include_list} config/$f"
12147 esac
12148 done
12150 host_xm_file_list=
12151 host_xm_include_list=
12152 for f in $host_xm_file; do
12153 case $f in
12154 ansidecl.h )
12155 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12156 host_xm_include_list="${host_xm_include_list} $f"
12158 auto-host.h )
12159 host_xm_file_list="${host_xm_file_list} $f"
12160 host_xm_include_list="${host_xm_include_list} $f"
12163 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12164 host_xm_include_list="${host_xm_include_list} config/$f"
12166 esac
12167 done
12169 build_xm_file_list=
12170 for f in $build_xm_file; do
12171 case $f in
12172 ansidecl.h )
12173 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12174 build_xm_include_list="${build_xm_include_list} $f"
12176 auto-build.h | auto-host.h )
12177 build_xm_file_list="${build_xm_file_list} $f"
12178 build_xm_include_list="${build_xm_include_list} $f"
12181 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12182 build_xm_include_list="${build_xm_include_list} config/$f"
12184 esac
12185 done
12187 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12188 # cross-compiler which does not use the native headers and libraries.
12189 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12190 CROSS=
12191 ALL=all.internal
12192 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12194 if test "x$with_build_sysroot" != x; then
12195 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12196 else
12197 # This value is used, even on a native system, because
12198 # CROSS_SYSTEM_HEADER_DIR is just
12199 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12200 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12203 if test x$host != x$target
12204 then
12205 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12206 ALL=all.cross
12207 SYSTEM_HEADER_DIR=$build_system_header_dir
12208 case "$host","$target" in
12209 # Darwin crosses can use the host system's libraries and headers,
12210 # because of the fat library support. Of course, it must be the
12211 # same version of Darwin on both sides. Allow the user to
12212 # just say --target=foo-darwin without a version number to mean
12213 # "the version on this system".
12214 *-*-darwin*,*-*-darwin*)
12215 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12216 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12217 if test $hostos = $targetos -o $targetos = darwin ; then
12218 CROSS=
12219 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12220 with_headers=yes
12224 i?86-*-*,x86_64-*-* \
12225 | powerpc*-*-*,powerpc64*-*-*)
12226 CROSS="$CROSS -DNATIVE_CROSS" ;;
12227 esac
12229 case $target in
12230 *-*-mingw*)
12231 if test "x$with_headers" = x; then
12232 with_headers=yes
12237 esac
12238 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12239 SYSTEM_HEADER_DIR=$build_system_header_dir
12242 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12243 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12244 target_header_dir=$with_headers
12245 elif test "x$with_sysroot" = x; then
12246 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12247 elif test "x$with_build_sysroot" != "x"; then
12248 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12249 elif test "x$with_sysroot" = xyes; then
12250 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12251 else
12252 target_header_dir="${with_sysroot}${native_system_header_dir}"
12254 else
12255 target_header_dir=${native_system_header_dir}
12258 # If this is a cross-compiler that does not
12259 # have its own set of headers then define
12260 # inhibit_libc
12262 # If this is using newlib, without having the headers available now,
12263 # then define inhibit_libc in LIBGCC2_CFLAGS.
12264 # This prevents libgcc2 from containing any code which requires libc
12265 # support.
12266 : ${inhibit_libc=false}
12267 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12268 test x$with_newlib = xyes ; } &&
12269 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12270 inhibit_libc=true
12274 # When building gcc with a cross-compiler, we need to adjust things so
12275 # that the generator programs are still built with the native compiler.
12276 # Also, we cannot run fixincludes.
12278 # These are the normal (build=host) settings:
12279 CC_FOR_BUILD='$(CC)'
12280 CXX_FOR_BUILD='$(CXX)'
12281 BUILD_CFLAGS='$(ALL_CFLAGS)'
12282 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12283 BUILD_LDFLAGS='$(LDFLAGS)'
12284 STMP_FIXINC=stmp-fixinc
12286 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12287 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12289 # And these apply if build != host, or we are generating coverage data
12290 if test x$build != x$host || test "x$coverage_flags" != x
12291 then
12292 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12293 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12294 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12296 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12297 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12298 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12299 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12304 # Expand extra_headers to include complete path.
12305 # This substitutes for lots of t-* files.
12306 extra_headers_list=
12307 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12308 for file in ${extra_headers} ; do
12309 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12310 done
12312 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12313 if test x"$use_gcc_tgmath" = xyes
12314 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12317 # Define collect2 in Makefile.
12318 case $host_can_use_collect2 in
12319 no) collect2= ;;
12320 *) collect2='collect2$(exeext)' ;;
12321 esac
12324 # Add a definition of USE_COLLECT2 if system wants one.
12325 case $use_collect2 in
12326 no) use_collect2= ;;
12327 "") ;;
12329 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12330 xm_defines="${xm_defines} USE_COLLECT2"
12331 case $host_can_use_collect2 in
12333 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12335 esac
12337 esac
12340 cat >>confdefs.h <<_ACEOF
12341 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12342 _ACEOF
12345 # ---------------------------
12346 # Assembler & linker features
12347 # ---------------------------
12349 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12350 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12351 # However when ld-new is first executed from the build tree, libtool will
12352 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12353 # to the build tree. While doing this we need to use the previous-stage
12354 # linker, or we have an infinite loop. The presence of a shell script as
12355 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12356 # the gcc/collect-ld script. So we need to know how libtool works, or
12357 # exec-tool will fail.
12360 case `pwd` in
12361 *\ * | *\ *)
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12363 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12364 esac
12368 macro_version='2.2.7a'
12369 macro_revision='1.3134'
12383 ltmain="$ac_aux_dir/ltmain.sh"
12385 # Backslashify metacharacters that are still active within
12386 # double-quoted strings.
12387 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12389 # Same as above, but do not quote variable references.
12390 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12392 # Sed substitution to delay expansion of an escaped shell variable in a
12393 # double_quote_subst'ed string.
12394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12396 # Sed substitution to delay expansion of an escaped single quote.
12397 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12399 # Sed substitution to avoid accidental globbing in evaled expressions
12400 no_glob_subst='s/\*/\\\*/g'
12402 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12403 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12404 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12407 $as_echo_n "checking how to print strings... " >&6; }
12408 # Test print first, because it will be a builtin if present.
12409 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12410 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12411 ECHO='print -r --'
12412 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12413 ECHO='printf %s\n'
12414 else
12415 # Use this function as a fallback that always works.
12416 func_fallback_echo ()
12418 eval 'cat <<_LTECHO_EOF
12420 _LTECHO_EOF'
12422 ECHO='func_fallback_echo'
12425 # func_echo_all arg...
12426 # Invoke $ECHO with all args, space-separated.
12427 func_echo_all ()
12429 $ECHO ""
12432 case "$ECHO" in
12433 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12434 $as_echo "printf" >&6; } ;;
12435 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12436 $as_echo "print -r" >&6; } ;;
12437 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12438 $as_echo "cat" >&6; } ;;
12439 esac
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12455 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12456 if test "${ac_cv_path_SED+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12460 for ac_i in 1 2 3 4 5 6 7; do
12461 ac_script="$ac_script$as_nl$ac_script"
12462 done
12463 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12464 { ac_script=; unset ac_script;}
12465 if test -z "$SED"; then
12466 ac_path_SED_found=false
12467 # Loop through the user's path and test for each of PROGNAME-LIST
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_prog in sed gsed; do
12474 for ac_exec_ext in '' $ac_executable_extensions; do
12475 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12476 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12477 # Check for GNU ac_path_SED and select it if it is found.
12478 # Check for GNU $ac_path_SED
12479 case `"$ac_path_SED" --version 2>&1` in
12480 *GNU*)
12481 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12483 ac_count=0
12484 $as_echo_n 0123456789 >"conftest.in"
12485 while :
12487 cat "conftest.in" "conftest.in" >"conftest.tmp"
12488 mv "conftest.tmp" "conftest.in"
12489 cp "conftest.in" "conftest.nl"
12490 $as_echo '' >> "conftest.nl"
12491 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12493 as_fn_arith $ac_count + 1 && ac_count=$as_val
12494 if test $ac_count -gt ${ac_path_SED_max-0}; then
12495 # Best one so far, save it but keep looking for a better one
12496 ac_cv_path_SED="$ac_path_SED"
12497 ac_path_SED_max=$ac_count
12499 # 10*(2^10) chars as input seems more than enough
12500 test $ac_count -gt 10 && break
12501 done
12502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12503 esac
12505 $ac_path_SED_found && break 3
12506 done
12507 done
12508 done
12509 IFS=$as_save_IFS
12510 if test -z "$ac_cv_path_SED"; then
12511 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12513 else
12514 ac_cv_path_SED=$SED
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12519 $as_echo "$ac_cv_path_SED" >&6; }
12520 SED="$ac_cv_path_SED"
12521 rm -f conftest.sed
12523 test -z "$SED" && SED=sed
12524 Xsed="$SED -e 1s/^X//"
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12537 $as_echo_n "checking for fgrep... " >&6; }
12538 if test "${ac_cv_path_FGREP+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12542 then ac_cv_path_FGREP="$GREP -F"
12543 else
12544 if test -z "$FGREP"; then
12545 ac_path_FGREP_found=false
12546 # Loop through the user's path and test for each of PROGNAME-LIST
12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12548 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12550 IFS=$as_save_IFS
12551 test -z "$as_dir" && as_dir=.
12552 for ac_prog in fgrep; do
12553 for ac_exec_ext in '' $ac_executable_extensions; do
12554 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12555 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12556 # Check for GNU ac_path_FGREP and select it if it is found.
12557 # Check for GNU $ac_path_FGREP
12558 case `"$ac_path_FGREP" --version 2>&1` in
12559 *GNU*)
12560 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12562 ac_count=0
12563 $as_echo_n 0123456789 >"conftest.in"
12564 while :
12566 cat "conftest.in" "conftest.in" >"conftest.tmp"
12567 mv "conftest.tmp" "conftest.in"
12568 cp "conftest.in" "conftest.nl"
12569 $as_echo 'FGREP' >> "conftest.nl"
12570 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12572 as_fn_arith $ac_count + 1 && ac_count=$as_val
12573 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12574 # Best one so far, save it but keep looking for a better one
12575 ac_cv_path_FGREP="$ac_path_FGREP"
12576 ac_path_FGREP_max=$ac_count
12578 # 10*(2^10) chars as input seems more than enough
12579 test $ac_count -gt 10 && break
12580 done
12581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12582 esac
12584 $ac_path_FGREP_found && break 3
12585 done
12586 done
12587 done
12588 IFS=$as_save_IFS
12589 if test -z "$ac_cv_path_FGREP"; then
12590 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12592 else
12593 ac_cv_path_FGREP=$FGREP
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12599 $as_echo "$ac_cv_path_FGREP" >&6; }
12600 FGREP="$ac_cv_path_FGREP"
12603 test -z "$GREP" && GREP=grep
12623 # Check whether --with-gnu-ld was given.
12624 if test "${with_gnu_ld+set}" = set; then :
12625 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12626 else
12627 with_gnu_ld=no
12630 ac_prog=ld
12631 if test "$GCC" = yes; then
12632 # Check if gcc -print-prog-name=ld gives a path.
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12634 $as_echo_n "checking for ld used by $CC... " >&6; }
12635 case $host in
12636 *-*-mingw*)
12637 # gcc leaves a trailing carriage return which upsets mingw
12638 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12640 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12641 esac
12642 case $ac_prog in
12643 # Accept absolute paths.
12644 [\\/]* | ?:[\\/]*)
12645 re_direlt='/[^/][^/]*/\.\./'
12646 # Canonicalize the pathname of ld
12647 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12648 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12649 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12650 done
12651 test -z "$LD" && LD="$ac_prog"
12654 # If it fails, then pretend we aren't using GCC.
12655 ac_prog=ld
12658 # If it is relative, then search for the first ld in PATH.
12659 with_gnu_ld=unknown
12661 esac
12662 elif test "$with_gnu_ld" = yes; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12664 $as_echo_n "checking for GNU ld... " >&6; }
12665 else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12667 $as_echo_n "checking for non-GNU ld... " >&6; }
12669 if test "${lt_cv_path_LD+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 if test -z "$LD"; then
12673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12674 for ac_dir in $PATH; do
12675 IFS="$lt_save_ifs"
12676 test -z "$ac_dir" && ac_dir=.
12677 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12678 lt_cv_path_LD="$ac_dir/$ac_prog"
12679 # Check to see if the program is GNU ld. I'd rather use --version,
12680 # but apparently some variants of GNU ld only accept -v.
12681 # Break only if it was the GNU/non-GNU ld that we prefer.
12682 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12683 *GNU* | *'with BFD'*)
12684 test "$with_gnu_ld" != no && break
12687 test "$with_gnu_ld" != yes && break
12689 esac
12691 done
12692 IFS="$lt_save_ifs"
12693 else
12694 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12698 LD="$lt_cv_path_LD"
12699 if test -n "$LD"; then
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12701 $as_echo "$LD" >&6; }
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12706 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12708 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12709 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12713 case `$LD -v 2>&1 </dev/null` in
12714 *GNU* | *'with BFD'*)
12715 lt_cv_prog_gnu_ld=yes
12718 lt_cv_prog_gnu_ld=no
12720 esac
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12723 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12724 with_gnu_ld=$lt_cv_prog_gnu_ld
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12735 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12736 if test "${lt_cv_path_NM+set}" = set; then :
12737 $as_echo_n "(cached) " >&6
12738 else
12739 if test -n "$NM"; then
12740 # Let the user override the test.
12741 lt_cv_path_NM="$NM"
12742 else
12743 lt_nm_to_check="${ac_tool_prefix}nm"
12744 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12745 lt_nm_to_check="$lt_nm_to_check nm"
12747 for lt_tmp_nm in $lt_nm_to_check; do
12748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12749 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12750 IFS="$lt_save_ifs"
12751 test -z "$ac_dir" && ac_dir=.
12752 tmp_nm="$ac_dir/$lt_tmp_nm"
12753 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12754 # Check to see if the nm accepts a BSD-compat flag.
12755 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12756 # nm: unknown option "B" ignored
12757 # Tru64's nm complains that /dev/null is an invalid object file
12758 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12759 */dev/null* | *'Invalid file or object type'*)
12760 lt_cv_path_NM="$tmp_nm -B"
12761 break
12764 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12765 */dev/null*)
12766 lt_cv_path_NM="$tmp_nm -p"
12767 break
12770 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12771 continue # so that we can try to find one that supports BSD flags
12773 esac
12775 esac
12777 done
12778 IFS="$lt_save_ifs"
12779 done
12780 : ${lt_cv_path_NM=no}
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12784 $as_echo "$lt_cv_path_NM" >&6; }
12785 if test "$lt_cv_path_NM" != "no"; then
12786 NM="$lt_cv_path_NM"
12787 else
12788 # Didn't find any BSD compatible name lister, look for dumpbin.
12789 if test -n "$DUMPBIN"; then :
12790 # Let the user override the test.
12791 else
12792 if test -n "$ac_tool_prefix"; then
12793 for ac_prog in dumpbin "link -dump"
12795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798 $as_echo_n "checking for $ac_word... " >&6; }
12799 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 if test -n "$DUMPBIN"; then
12803 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12804 else
12805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12806 for as_dir in $PATH
12808 IFS=$as_save_IFS
12809 test -z "$as_dir" && as_dir=.
12810 for ac_exec_ext in '' $ac_executable_extensions; do
12811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12812 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12814 break 2
12816 done
12817 done
12818 IFS=$as_save_IFS
12822 DUMPBIN=$ac_cv_prog_DUMPBIN
12823 if test -n "$DUMPBIN"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12825 $as_echo "$DUMPBIN" >&6; }
12826 else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12832 test -n "$DUMPBIN" && break
12833 done
12835 if test -z "$DUMPBIN"; then
12836 ac_ct_DUMPBIN=$DUMPBIN
12837 for ac_prog in dumpbin "link -dump"
12839 # Extract the first word of "$ac_prog", so it can be a program name with args.
12840 set dummy $ac_prog; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 if test -n "$ac_ct_DUMPBIN"; then
12847 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12848 else
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH
12852 IFS=$as_save_IFS
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12856 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 break 2
12860 done
12861 done
12862 IFS=$as_save_IFS
12866 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12867 if test -n "$ac_ct_DUMPBIN"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12869 $as_echo "$ac_ct_DUMPBIN" >&6; }
12870 else
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12876 test -n "$ac_ct_DUMPBIN" && break
12877 done
12879 if test "x$ac_ct_DUMPBIN" = x; then
12880 DUMPBIN=":"
12881 else
12882 case $cross_compiling:$ac_tool_warned in
12883 yes:)
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12886 ac_tool_warned=yes ;;
12887 esac
12888 DUMPBIN=$ac_ct_DUMPBIN
12892 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12893 *COFF*)
12894 DUMPBIN="$DUMPBIN -symbols"
12897 DUMPBIN=:
12899 esac
12902 if test "$DUMPBIN" != ":"; then
12903 NM="$DUMPBIN"
12906 test -z "$NM" && NM=nm
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12914 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12915 if test "${lt_cv_nm_interface+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 lt_cv_nm_interface="BSD nm"
12919 echo "int some_variable = 0;" > conftest.$ac_ext
12920 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12921 (eval "$ac_compile" 2>conftest.err)
12922 cat conftest.err >&5
12923 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12924 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12925 cat conftest.err >&5
12926 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12927 cat conftest.out >&5
12928 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12929 lt_cv_nm_interface="MS dumpbin"
12931 rm -f conftest*
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12934 $as_echo "$lt_cv_nm_interface" >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12937 $as_echo_n "checking whether ln -s works... " >&6; }
12938 LN_S=$as_ln_s
12939 if test "$LN_S" = "ln -s"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12941 $as_echo "yes" >&6; }
12942 else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12944 $as_echo "no, using $LN_S" >&6; }
12947 # find the maximum length of command line arguments
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12949 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12950 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12954 teststring="ABCD"
12956 case $build_os in
12957 msdosdjgpp*)
12958 # On DJGPP, this test can blow up pretty badly due to problems in libc
12959 # (any single argument exceeding 2000 bytes causes a buffer overrun
12960 # during glob expansion). Even if it were fixed, the result of this
12961 # check would be larger than it should be.
12962 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12965 gnu*)
12966 # Under GNU Hurd, this test is not required because there is
12967 # no limit to the length of command line arguments.
12968 # Libtool will interpret -1 as no limit whatsoever
12969 lt_cv_sys_max_cmd_len=-1;
12972 cygwin* | mingw* | cegcc*)
12973 # On Win9x/ME, this test blows up -- it succeeds, but takes
12974 # about 5 minutes as the teststring grows exponentially.
12975 # Worse, since 9x/ME are not pre-emptively multitasking,
12976 # you end up with a "frozen" computer, even though with patience
12977 # the test eventually succeeds (with a max line length of 256k).
12978 # Instead, let's just punt: use the minimum linelength reported by
12979 # all of the supported platforms: 8192 (on NT/2K/XP).
12980 lt_cv_sys_max_cmd_len=8192;
12983 mint*)
12984 # On MiNT this can take a long time and run out of memory.
12985 lt_cv_sys_max_cmd_len=8192;
12988 amigaos*)
12989 # On AmigaOS with pdksh, this test takes hours, literally.
12990 # So we just punt and use a minimum line length of 8192.
12991 lt_cv_sys_max_cmd_len=8192;
12994 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12995 # This has been around since 386BSD, at least. Likely further.
12996 if test -x /sbin/sysctl; then
12997 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12998 elif test -x /usr/sbin/sysctl; then
12999 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13000 else
13001 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13003 # And add a safety zone
13004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13008 interix*)
13009 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13010 lt_cv_sys_max_cmd_len=196608
13013 osf*)
13014 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13015 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13016 # nice to cause kernel panics so lets avoid the loop below.
13017 # First set a reasonable default.
13018 lt_cv_sys_max_cmd_len=16384
13020 if test -x /sbin/sysconfig; then
13021 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13022 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13023 esac
13026 sco3.2v5*)
13027 lt_cv_sys_max_cmd_len=102400
13029 sysv5* | sco5v6* | sysv4.2uw2*)
13030 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13031 if test -n "$kargmax"; then
13032 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13033 else
13034 lt_cv_sys_max_cmd_len=32768
13038 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13039 if test -n "$lt_cv_sys_max_cmd_len"; then
13040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13042 else
13043 # Make teststring a little bigger before we do anything with it.
13044 # a 1K string should be a reasonable start.
13045 for i in 1 2 3 4 5 6 7 8 ; do
13046 teststring=$teststring$teststring
13047 done
13048 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13049 # If test is not a shell built-in, we'll probably end up computing a
13050 # maximum length that is only half of the actual maximum length, but
13051 # we can't tell.
13052 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13053 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13054 test $i != 17 # 1/2 MB should be enough
13056 i=`expr $i + 1`
13057 teststring=$teststring$teststring
13058 done
13059 # Only check the string length outside the loop.
13060 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13061 teststring=
13062 # Add a significant safety factor because C++ compilers can tack on
13063 # massive amounts of additional arguments before passing them to the
13064 # linker. It appears as though 1/2 is a usable value.
13065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13068 esac
13072 if test -n $lt_cv_sys_max_cmd_len ; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13074 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13077 $as_echo "none" >&6; }
13079 max_cmd_len=$lt_cv_sys_max_cmd_len
13086 : ${CP="cp -f"}
13087 : ${MV="mv -f"}
13088 : ${RM="rm -f"}
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13091 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13092 # Try some XSI features
13093 xsi_shell=no
13094 ( _lt_dummy="a/b/c"
13095 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13096 = c,a/b,, \
13097 && eval 'test $(( 1 + 1 )) -eq 2 \
13098 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13099 && xsi_shell=yes
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13101 $as_echo "$xsi_shell" >&6; }
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13105 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13106 lt_shell_append=no
13107 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13108 >/dev/null 2>&1 \
13109 && lt_shell_append=yes
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13111 $as_echo "$lt_shell_append" >&6; }
13114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13115 lt_unset=unset
13116 else
13117 lt_unset=false
13124 # test EBCDIC or ASCII
13125 case `echo X|tr X '\101'` in
13126 A) # ASCII based system
13127 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13128 lt_SP2NL='tr \040 \012'
13129 lt_NL2SP='tr \015\012 \040\040'
13131 *) # EBCDIC based system
13132 lt_SP2NL='tr \100 \n'
13133 lt_NL2SP='tr \r\n \100\100'
13135 esac
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13146 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13147 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 lt_cv_ld_reload_flag='-r'
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13153 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13154 reload_flag=$lt_cv_ld_reload_flag
13155 case $reload_flag in
13156 "" | " "*) ;;
13157 *) reload_flag=" $reload_flag" ;;
13158 esac
13159 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13160 case $host_os in
13161 darwin*)
13162 if test "$GCC" = yes; then
13163 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13164 else
13165 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13168 esac
13178 if test -n "$ac_tool_prefix"; then
13179 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13180 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -n "$OBJDUMP"; then
13187 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13200 done
13201 done
13202 IFS=$as_save_IFS
13206 OBJDUMP=$ac_cv_prog_OBJDUMP
13207 if test -n "$OBJDUMP"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13209 $as_echo "$OBJDUMP" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13217 if test -z "$ac_cv_prog_OBJDUMP"; then
13218 ac_ct_OBJDUMP=$OBJDUMP
13219 # Extract the first word of "objdump", so it can be a program name with args.
13220 set dummy objdump; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 if test -n "$ac_ct_OBJDUMP"; then
13227 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13228 else
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13232 IFS=$as_save_IFS
13233 test -z "$as_dir" && as_dir=.
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13236 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 break 2
13240 done
13241 done
13242 IFS=$as_save_IFS
13246 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13247 if test -n "$ac_ct_OBJDUMP"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13249 $as_echo "$ac_ct_OBJDUMP" >&6; }
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13255 if test "x$ac_ct_OBJDUMP" = x; then
13256 OBJDUMP="false"
13257 else
13258 case $cross_compiling:$ac_tool_warned in
13259 yes:)
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13262 ac_tool_warned=yes ;;
13263 esac
13264 OBJDUMP=$ac_ct_OBJDUMP
13266 else
13267 OBJDUMP="$ac_cv_prog_OBJDUMP"
13270 test -z "$OBJDUMP" && OBJDUMP=objdump
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13281 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13282 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 lt_cv_file_magic_cmd='$MAGIC_CMD'
13286 lt_cv_file_magic_test_file=
13287 lt_cv_deplibs_check_method='unknown'
13288 # Need to set the preceding variable on all platforms that support
13289 # interlibrary dependencies.
13290 # 'none' -- dependencies not supported.
13291 # `unknown' -- same as none, but documents that we really don't know.
13292 # 'pass_all' -- all dependencies passed with no checks.
13293 # 'test_compile' -- check by making test program.
13294 # 'file_magic [[regex]]' -- check by looking for files in library path
13295 # which responds to the $file_magic_cmd with a given extended regex.
13296 # If you have `file' or equivalent on your system and you're not sure
13297 # whether `pass_all' will *always* work, you probably want this one.
13299 case $host_os in
13300 aix[4-9]*)
13301 lt_cv_deplibs_check_method=pass_all
13304 beos*)
13305 lt_cv_deplibs_check_method=pass_all
13308 bsdi[45]*)
13309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13310 lt_cv_file_magic_cmd='/usr/bin/file -L'
13311 lt_cv_file_magic_test_file=/shlib/libc.so
13314 cygwin*)
13315 # func_win32_libid is a shell function defined in ltmain.sh
13316 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13317 lt_cv_file_magic_cmd='func_win32_libid'
13320 mingw* | pw32*)
13321 # Base MSYS/MinGW do not provide the 'file' command needed by
13322 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13323 # unless we find 'file', for example because we are cross-compiling.
13324 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13325 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13327 lt_cv_file_magic_cmd='func_win32_libid'
13328 else
13329 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13330 lt_cv_file_magic_cmd='$OBJDUMP -f'
13334 cegcc*)
13335 # use the weaker test based on 'objdump'. See mingw*.
13336 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13337 lt_cv_file_magic_cmd='$OBJDUMP -f'
13340 darwin* | rhapsody*)
13341 lt_cv_deplibs_check_method=pass_all
13344 freebsd* | dragonfly*)
13345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13346 case $host_cpu in
13347 i*86 )
13348 # Not sure whether the presence of OpenBSD here was a mistake.
13349 # Let's accept both of them until this is cleared up.
13350 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13351 lt_cv_file_magic_cmd=/usr/bin/file
13352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13354 esac
13355 else
13356 lt_cv_deplibs_check_method=pass_all
13360 gnu*)
13361 lt_cv_deplibs_check_method=pass_all
13364 haiku*)
13365 lt_cv_deplibs_check_method=pass_all
13368 hpux10.20* | hpux11*)
13369 lt_cv_file_magic_cmd=/usr/bin/file
13370 case $host_cpu in
13371 ia64*)
13372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13375 hppa*64*)
13376 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]'
13377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13383 esac
13386 interix[3-9]*)
13387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13391 irix5* | irix6* | nonstopux*)
13392 case $LD in
13393 *-32|*"-32 ") libmagic=32-bit;;
13394 *-n32|*"-n32 ") libmagic=N32;;
13395 *-64|*"-64 ") libmagic=64-bit;;
13396 *) libmagic=never-match;;
13397 esac
13398 lt_cv_deplibs_check_method=pass_all
13401 # This must be Linux ELF.
13402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13403 lt_cv_deplibs_check_method=pass_all
13406 netbsd*)
13407 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13409 else
13410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13414 newos6*)
13415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13416 lt_cv_file_magic_cmd=/usr/bin/file
13417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13420 *nto* | *qnx*)
13421 lt_cv_deplibs_check_method=pass_all
13424 openbsd*)
13425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13427 else
13428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13432 osf3* | osf4* | osf5*)
13433 lt_cv_deplibs_check_method=pass_all
13436 rdos*)
13437 lt_cv_deplibs_check_method=pass_all
13440 solaris*)
13441 lt_cv_deplibs_check_method=pass_all
13444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13445 lt_cv_deplibs_check_method=pass_all
13448 sysv4 | sysv4.3*)
13449 case $host_vendor in
13450 motorola)
13451 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]'
13452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13454 ncr)
13455 lt_cv_deplibs_check_method=pass_all
13457 sequent)
13458 lt_cv_file_magic_cmd='/bin/file'
13459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13461 sni)
13462 lt_cv_file_magic_cmd='/bin/file'
13463 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13464 lt_cv_file_magic_test_file=/lib/libc.so
13466 siemens)
13467 lt_cv_deplibs_check_method=pass_all
13470 lt_cv_deplibs_check_method=pass_all
13472 esac
13475 tpf*)
13476 lt_cv_deplibs_check_method=pass_all
13478 esac
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13482 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13483 file_magic_cmd=$lt_cv_file_magic_cmd
13484 deplibs_check_method=$lt_cv_deplibs_check_method
13485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13498 if test -n "$ac_tool_prefix"; then
13499 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13500 set dummy ${ac_tool_prefix}ar; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if test "${ac_cv_prog_AR+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 if test -n "$AR"; then
13507 ac_cv_prog_AR="$AR" # Let the user override the test.
13508 else
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13512 IFS=$as_save_IFS
13513 test -z "$as_dir" && as_dir=.
13514 for ac_exec_ext in '' $ac_executable_extensions; do
13515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13516 ac_cv_prog_AR="${ac_tool_prefix}ar"
13517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13518 break 2
13520 done
13521 done
13522 IFS=$as_save_IFS
13526 AR=$ac_cv_prog_AR
13527 if test -n "$AR"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13529 $as_echo "$AR" >&6; }
13530 else
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532 $as_echo "no" >&6; }
13537 if test -z "$ac_cv_prog_AR"; then
13538 ac_ct_AR=$AR
13539 # Extract the first word of "ar", so it can be a program name with args.
13540 set dummy ar; ac_word=$2
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13542 $as_echo_n "checking for $ac_word... " >&6; }
13543 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 if test -n "$ac_ct_AR"; then
13547 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13548 else
13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $PATH
13552 IFS=$as_save_IFS
13553 test -z "$as_dir" && as_dir=.
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13556 ac_cv_prog_ac_ct_AR="ar"
13557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13558 break 2
13560 done
13561 done
13562 IFS=$as_save_IFS
13566 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13567 if test -n "$ac_ct_AR"; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13569 $as_echo "$ac_ct_AR" >&6; }
13570 else
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572 $as_echo "no" >&6; }
13575 if test "x$ac_ct_AR" = x; then
13576 AR="false"
13577 else
13578 case $cross_compiling:$ac_tool_warned in
13579 yes:)
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13582 ac_tool_warned=yes ;;
13583 esac
13584 AR=$ac_ct_AR
13586 else
13587 AR="$ac_cv_prog_AR"
13590 test -z "$AR" && AR=ar
13591 test -z "$AR_FLAGS" && AR_FLAGS=cru
13603 if test -n "$ac_tool_prefix"; then
13604 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13605 set dummy ${ac_tool_prefix}strip; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607 $as_echo_n "checking for $ac_word... " >&6; }
13608 if test "${ac_cv_prog_STRIP+set}" = set; then :
13609 $as_echo_n "(cached) " >&6
13610 else
13611 if test -n "$STRIP"; then
13612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13613 else
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13617 IFS=$as_save_IFS
13618 test -z "$as_dir" && as_dir=.
13619 for ac_exec_ext in '' $ac_executable_extensions; do
13620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13621 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13623 break 2
13625 done
13626 done
13627 IFS=$as_save_IFS
13631 STRIP=$ac_cv_prog_STRIP
13632 if test -n "$STRIP"; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13634 $as_echo "$STRIP" >&6; }
13635 else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13637 $as_echo "no" >&6; }
13642 if test -z "$ac_cv_prog_STRIP"; then
13643 ac_ct_STRIP=$STRIP
13644 # Extract the first word of "strip", so it can be a program name with args.
13645 set dummy strip; ac_word=$2
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647 $as_echo_n "checking for $ac_word... " >&6; }
13648 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
13650 else
13651 if test -n "$ac_ct_STRIP"; then
13652 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13653 else
13654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655 for as_dir in $PATH
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13661 ac_cv_prog_ac_ct_STRIP="strip"
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13663 break 2
13665 done
13666 done
13667 IFS=$as_save_IFS
13671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13672 if test -n "$ac_ct_STRIP"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13674 $as_echo "$ac_ct_STRIP" >&6; }
13675 else
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677 $as_echo "no" >&6; }
13680 if test "x$ac_ct_STRIP" = x; then
13681 STRIP=":"
13682 else
13683 case $cross_compiling:$ac_tool_warned in
13684 yes:)
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13687 ac_tool_warned=yes ;;
13688 esac
13689 STRIP=$ac_ct_STRIP
13691 else
13692 STRIP="$ac_cv_prog_STRIP"
13695 test -z "$STRIP" && STRIP=:
13702 if test -n "$ac_tool_prefix"; then
13703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706 $as_echo_n "checking for $ac_word... " >&6; }
13707 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 if test -n "$RANLIB"; then
13711 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13712 else
13713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714 for as_dir in $PATH
13716 IFS=$as_save_IFS
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13720 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 break 2
13724 done
13725 done
13726 IFS=$as_save_IFS
13730 RANLIB=$ac_cv_prog_RANLIB
13731 if test -n "$RANLIB"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13733 $as_echo "$RANLIB" >&6; }
13734 else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 $as_echo "no" >&6; }
13741 if test -z "$ac_cv_prog_RANLIB"; then
13742 ac_ct_RANLIB=$RANLIB
13743 # Extract the first word of "ranlib", so it can be a program name with args.
13744 set dummy ranlib; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; }
13747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 if test -n "$ac_ct_RANLIB"; then
13751 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13752 else
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_prog_ac_ct_RANLIB="ranlib"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13764 done
13765 done
13766 IFS=$as_save_IFS
13770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13771 if test -n "$ac_ct_RANLIB"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13773 $as_echo "$ac_ct_RANLIB" >&6; }
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13779 if test "x$ac_ct_RANLIB" = x; then
13780 RANLIB=":"
13781 else
13782 case $cross_compiling:$ac_tool_warned in
13783 yes:)
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13786 ac_tool_warned=yes ;;
13787 esac
13788 RANLIB=$ac_ct_RANLIB
13790 else
13791 RANLIB="$ac_cv_prog_RANLIB"
13794 test -z "$RANLIB" && RANLIB=:
13801 # Determine commands to create old-style static archives.
13802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13803 old_postinstall_cmds='chmod 644 $oldlib'
13804 old_postuninstall_cmds=
13806 if test -n "$RANLIB"; then
13807 case $host_os in
13808 openbsd*)
13809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13812 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13814 esac
13815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13818 case $host_os in
13819 darwin*)
13820 lock_old_archive_extraction=yes ;;
13822 lock_old_archive_extraction=no ;;
13823 esac
13863 # If no C compiler was specified, use CC.
13864 LTCC=${LTCC-"$CC"}
13866 # If no C compiler flags were specified, use CFLAGS.
13867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13869 # Allow CC to be a program name with arguments.
13870 compiler=$CC
13873 # Check for command to grab the raw symbol name followed by C symbol from nm.
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13875 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13876 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13880 # These are sane defaults that work on at least a few old systems.
13881 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13883 # Character class describing NM global symbol codes.
13884 symcode='[BCDEGRST]'
13886 # Regexp to match symbols that can be accessed directly from C.
13887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13889 # Define system-specific variables.
13890 case $host_os in
13891 aix*)
13892 symcode='[BCDT]'
13894 cygwin* | mingw* | pw32* | cegcc*)
13895 symcode='[ABCDGISTW]'
13897 hpux*)
13898 if test "$host_cpu" = ia64; then
13899 symcode='[ABCDEGRST]'
13902 irix* | nonstopux*)
13903 symcode='[BCDEGRST]'
13905 osf*)
13906 symcode='[BCDEGQRST]'
13908 solaris*)
13909 symcode='[BDRT]'
13911 sco3.2v5*)
13912 symcode='[DT]'
13914 sysv4.2uw2*)
13915 symcode='[DT]'
13917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13918 symcode='[ABDT]'
13920 sysv4)
13921 symcode='[DFNSTU]'
13923 esac
13925 # If we're using GNU nm, then use its standard symbol codes.
13926 case `$NM -V 2>&1` in
13927 *GNU* | *'with BFD'*)
13928 symcode='[ABCDGIRSTW]' ;;
13929 esac
13931 # Transform an extracted symbol line into a proper C declaration.
13932 # Some systems (esp. on ia64) link data and code symbols differently,
13933 # so use this general approach.
13934 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13936 # Transform an extracted symbol line into symbol name and symbol address
13937 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13938 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'"
13940 # Handle CRLF in mingw tool chain
13941 opt_cr=
13942 case $build_os in
13943 mingw*)
13944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13946 esac
13948 # Try without a prefix underscore, then with it.
13949 for ac_symprfx in "" "_"; do
13951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13952 symxfrm="\\1 $ac_symprfx\\2 \\2"
13954 # Write the raw and C identifiers.
13955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13956 # Fake it for dumpbin and say T for any non-static function
13957 # and D for any global variable.
13958 # Also find C++ and __fastcall symbols from MSVC++,
13959 # which start with @ or ?.
13960 lt_cv_sys_global_symbol_pipe="$AWK '"\
13961 " {last_section=section; section=\$ 3};"\
13962 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13963 " \$ 0!~/External *\|/{next};"\
13964 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13965 " {if(hide[section]) next};"\
13966 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13967 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13968 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13969 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13970 " ' prfx=^$ac_symprfx"
13971 else
13972 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13975 # Check to see that the pipe works correctly.
13976 pipe_works=no
13978 rm -f conftest*
13979 cat > conftest.$ac_ext <<_LT_EOF
13980 #ifdef __cplusplus
13981 extern "C" {
13982 #endif
13983 char nm_test_var;
13984 void nm_test_func(void);
13985 void nm_test_func(void){}
13986 #ifdef __cplusplus
13988 #endif
13989 int main(){nm_test_var='a';nm_test_func();return(0);}
13990 _LT_EOF
13992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13993 (eval $ac_compile) 2>&5
13994 ac_status=$?
13995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13996 test $ac_status = 0; }; then
13997 # Now try to grab the symbols.
13998 nlist=conftest.nm
13999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14000 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14001 ac_status=$?
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; } && test -s "$nlist"; then
14004 # Try sorting and uniquifying the output.
14005 if sort "$nlist" | uniq > "$nlist"T; then
14006 mv -f "$nlist"T "$nlist"
14007 else
14008 rm -f "$nlist"T
14011 # Make sure that we snagged all the symbols we need.
14012 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14013 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14014 cat <<_LT_EOF > conftest.$ac_ext
14015 #ifdef __cplusplus
14016 extern "C" {
14017 #endif
14019 _LT_EOF
14020 # Now generate the symbol file.
14021 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14023 cat <<_LT_EOF >> conftest.$ac_ext
14025 /* The mapping between symbol names and symbols. */
14026 const struct {
14027 const char *name;
14028 void *address;
14030 lt__PROGRAM__LTX_preloaded_symbols[] =
14032 { "@PROGRAM@", (void *) 0 },
14033 _LT_EOF
14034 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14035 cat <<\_LT_EOF >> conftest.$ac_ext
14036 {0, (void *) 0}
14039 /* This works around a problem in FreeBSD linker */
14040 #ifdef FREEBSD_WORKAROUND
14041 static const void *lt_preloaded_setup() {
14042 return lt__PROGRAM__LTX_preloaded_symbols;
14044 #endif
14046 #ifdef __cplusplus
14048 #endif
14049 _LT_EOF
14050 # Now try linking the two files.
14051 mv conftest.$ac_objext conftstm.$ac_objext
14052 lt_save_LIBS="$LIBS"
14053 lt_save_CFLAGS="$CFLAGS"
14054 LIBS="conftstm.$ac_objext"
14055 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14057 (eval $ac_link) 2>&5
14058 ac_status=$?
14059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14060 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14061 pipe_works=yes
14063 LIBS="$lt_save_LIBS"
14064 CFLAGS="$lt_save_CFLAGS"
14065 else
14066 echo "cannot find nm_test_func in $nlist" >&5
14068 else
14069 echo "cannot find nm_test_var in $nlist" >&5
14071 else
14072 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14074 else
14075 echo "$progname: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14078 rm -rf conftest* conftst*
14080 # Do not use the global_symbol_pipe unless it works.
14081 if test "$pipe_works" = yes; then
14082 break
14083 else
14084 lt_cv_sys_global_symbol_pipe=
14086 done
14090 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14091 lt_cv_sys_global_symbol_to_cdecl=
14093 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14095 $as_echo "failed" >&6; }
14096 else
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14098 $as_echo "ok" >&6; }
14122 # Check whether --enable-libtool-lock was given.
14123 if test "${enable_libtool_lock+set}" = set; then :
14124 enableval=$enable_libtool_lock;
14127 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14129 # Some flags need to be propagated to the compiler or linker for good
14130 # libtool support.
14131 case $host in
14132 ia64-*-hpux*)
14133 # Find out which ABI we are using.
14134 echo 'int i;' > conftest.$ac_ext
14135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14136 (eval $ac_compile) 2>&5
14137 ac_status=$?
14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139 test $ac_status = 0; }; then
14140 case `/usr/bin/file conftest.$ac_objext` in
14141 *ELF-32*)
14142 HPUX_IA64_MODE="32"
14144 *ELF-64*)
14145 HPUX_IA64_MODE="64"
14147 esac
14149 rm -rf conftest*
14151 *-*-irix6*)
14152 # Find out which ABI we are using.
14153 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14155 (eval $ac_compile) 2>&5
14156 ac_status=$?
14157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14158 test $ac_status = 0; }; then
14159 if test "$lt_cv_prog_gnu_ld" = yes; then
14160 case `/usr/bin/file conftest.$ac_objext` in
14161 *32-bit*)
14162 LD="${LD-ld} -melf32bsmip"
14164 *N32*)
14165 LD="${LD-ld} -melf32bmipn32"
14167 *64-bit*)
14168 LD="${LD-ld} -melf64bmip"
14170 esac
14171 else
14172 case `/usr/bin/file conftest.$ac_objext` in
14173 *32-bit*)
14174 LD="${LD-ld} -32"
14176 *N32*)
14177 LD="${LD-ld} -n32"
14179 *64-bit*)
14180 LD="${LD-ld} -64"
14182 esac
14185 rm -rf conftest*
14188 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14189 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14190 # Find out which ABI we are using.
14191 echo 'int i;' > conftest.$ac_ext
14192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14193 (eval $ac_compile) 2>&5
14194 ac_status=$?
14195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14196 test $ac_status = 0; }; then
14197 case `/usr/bin/file conftest.o` in
14198 *32-bit*)
14199 case $host in
14200 x86_64-*kfreebsd*-gnu)
14201 LD="${LD-ld} -m elf_i386_fbsd"
14203 x86_64-*linux*)
14204 case `/usr/bin/file conftest.o` in
14205 *x86-64*)
14206 LD="${LD-ld} -m elf32_x86_64"
14209 LD="${LD-ld} -m elf_i386"
14211 esac
14213 powerpc64le-*linux*)
14214 LD="${LD-ld} -m elf32lppclinux"
14216 powerpc64-*linux*)
14217 LD="${LD-ld} -m elf32ppclinux"
14219 s390x-*linux*)
14220 LD="${LD-ld} -m elf_s390"
14222 sparc64-*linux*)
14223 LD="${LD-ld} -m elf32_sparc"
14225 esac
14227 *64-bit*)
14228 case $host in
14229 x86_64-*kfreebsd*-gnu)
14230 LD="${LD-ld} -m elf_x86_64_fbsd"
14232 x86_64-*linux*)
14233 LD="${LD-ld} -m elf_x86_64"
14235 powerpcle-*linux*)
14236 LD="${LD-ld} -m elf64lppc"
14238 powerpc-*linux*)
14239 LD="${LD-ld} -m elf64ppc"
14241 s390*-*linux*|s390*-*tpf*)
14242 LD="${LD-ld} -m elf64_s390"
14244 sparc*-*linux*)
14245 LD="${LD-ld} -m elf64_sparc"
14247 esac
14249 esac
14251 rm -rf conftest*
14254 *-*-sco3.2v5*)
14255 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14256 SAVE_CFLAGS="$CFLAGS"
14257 CFLAGS="$CFLAGS -belf"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14259 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14260 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14262 else
14263 ac_ext=c
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14273 main ()
14277 return 0;
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 lt_cv_cc_needs_belf=yes
14282 else
14283 lt_cv_cc_needs_belf=no
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 ac_ext=c
14288 ac_cpp='$CPP $CPPFLAGS'
14289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14295 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14296 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14297 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14298 CFLAGS="$SAVE_CFLAGS"
14301 sparc*-*solaris*)
14302 # Find out which ABI we are using.
14303 echo 'int i;' > conftest.$ac_ext
14304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14305 (eval $ac_compile) 2>&5
14306 ac_status=$?
14307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14308 test $ac_status = 0; }; then
14309 case `/usr/bin/file conftest.o` in
14310 *64-bit*)
14311 case $lt_cv_prog_gnu_ld in
14312 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14314 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14315 LD="${LD-ld} -64"
14318 esac
14320 esac
14322 rm -rf conftest*
14324 esac
14326 need_locks="$enable_libtool_lock"
14329 case $host_os in
14330 rhapsody* | darwin*)
14331 if test -n "$ac_tool_prefix"; then
14332 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14333 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 if test -n "$DSYMUTIL"; then
14340 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14341 else
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 break 2
14353 done
14354 done
14355 IFS=$as_save_IFS
14359 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14360 if test -n "$DSYMUTIL"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14362 $as_echo "$DSYMUTIL" >&6; }
14363 else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14370 if test -z "$ac_cv_prog_DSYMUTIL"; then
14371 ac_ct_DSYMUTIL=$DSYMUTIL
14372 # Extract the first word of "dsymutil", so it can be a program name with args.
14373 set dummy dsymutil; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 if test -n "$ac_ct_DSYMUTIL"; then
14380 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14381 else
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14389 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14391 break 2
14393 done
14394 done
14395 IFS=$as_save_IFS
14399 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14400 if test -n "$ac_ct_DSYMUTIL"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14402 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14408 if test "x$ac_ct_DSYMUTIL" = x; then
14409 DSYMUTIL=":"
14410 else
14411 case $cross_compiling:$ac_tool_warned in
14412 yes:)
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14415 ac_tool_warned=yes ;;
14416 esac
14417 DSYMUTIL=$ac_ct_DSYMUTIL
14419 else
14420 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14423 if test -n "$ac_tool_prefix"; then
14424 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14425 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427 $as_echo_n "checking for $ac_word... " >&6; }
14428 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 if test -n "$NMEDIT"; then
14432 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14433 else
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14445 done
14446 done
14447 IFS=$as_save_IFS
14451 NMEDIT=$ac_cv_prog_NMEDIT
14452 if test -n "$NMEDIT"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14454 $as_echo "$NMEDIT" >&6; }
14455 else
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457 $as_echo "no" >&6; }
14462 if test -z "$ac_cv_prog_NMEDIT"; then
14463 ac_ct_NMEDIT=$NMEDIT
14464 # Extract the first word of "nmedit", so it can be a program name with args.
14465 set dummy nmedit; ac_word=$2
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14467 $as_echo_n "checking for $ac_word... " >&6; }
14468 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 if test -n "$ac_ct_NMEDIT"; then
14472 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14481 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14485 done
14486 done
14487 IFS=$as_save_IFS
14491 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14492 if test -n "$ac_ct_NMEDIT"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14494 $as_echo "$ac_ct_NMEDIT" >&6; }
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14500 if test "x$ac_ct_NMEDIT" = x; then
14501 NMEDIT=":"
14502 else
14503 case $cross_compiling:$ac_tool_warned in
14504 yes:)
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14507 ac_tool_warned=yes ;;
14508 esac
14509 NMEDIT=$ac_ct_NMEDIT
14511 else
14512 NMEDIT="$ac_cv_prog_NMEDIT"
14515 if test -n "$ac_tool_prefix"; then
14516 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14517 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519 $as_echo_n "checking for $ac_word... " >&6; }
14520 if test "${ac_cv_prog_LIPO+set}" = set; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 if test -n "$LIPO"; then
14524 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14525 else
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14529 IFS=$as_save_IFS
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14535 break 2
14537 done
14538 done
14539 IFS=$as_save_IFS
14543 LIPO=$ac_cv_prog_LIPO
14544 if test -n "$LIPO"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14546 $as_echo "$LIPO" >&6; }
14547 else
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549 $as_echo "no" >&6; }
14554 if test -z "$ac_cv_prog_LIPO"; then
14555 ac_ct_LIPO=$LIPO
14556 # Extract the first word of "lipo", so it can be a program name with args.
14557 set dummy lipo; ac_word=$2
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14559 $as_echo_n "checking for $ac_word... " >&6; }
14560 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14563 if test -n "$ac_ct_LIPO"; then
14564 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14565 else
14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567 for as_dir in $PATH
14569 IFS=$as_save_IFS
14570 test -z "$as_dir" && as_dir=.
14571 for ac_exec_ext in '' $ac_executable_extensions; do
14572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14573 ac_cv_prog_ac_ct_LIPO="lipo"
14574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14575 break 2
14577 done
14578 done
14579 IFS=$as_save_IFS
14583 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14584 if test -n "$ac_ct_LIPO"; then
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14586 $as_echo "$ac_ct_LIPO" >&6; }
14587 else
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 $as_echo "no" >&6; }
14592 if test "x$ac_ct_LIPO" = x; then
14593 LIPO=":"
14594 else
14595 case $cross_compiling:$ac_tool_warned in
14596 yes:)
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14599 ac_tool_warned=yes ;;
14600 esac
14601 LIPO=$ac_ct_LIPO
14603 else
14604 LIPO="$ac_cv_prog_LIPO"
14607 if test -n "$ac_tool_prefix"; then
14608 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14609 set dummy ${ac_tool_prefix}otool; ac_word=$2
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14611 $as_echo_n "checking for $ac_word... " >&6; }
14612 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 if test -n "$OTOOL"; then
14616 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14617 else
14618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14621 IFS=$as_save_IFS
14622 test -z "$as_dir" && as_dir=.
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14625 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14627 break 2
14629 done
14630 done
14631 IFS=$as_save_IFS
14635 OTOOL=$ac_cv_prog_OTOOL
14636 if test -n "$OTOOL"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14638 $as_echo "$OTOOL" >&6; }
14639 else
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14641 $as_echo "no" >&6; }
14646 if test -z "$ac_cv_prog_OTOOL"; then
14647 ac_ct_OTOOL=$OTOOL
14648 # Extract the first word of "otool", so it can be a program name with args.
14649 set dummy otool; ac_word=$2
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14651 $as_echo_n "checking for $ac_word... " >&6; }
14652 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 if test -n "$ac_ct_OTOOL"; then
14656 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14657 else
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14661 IFS=$as_save_IFS
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14665 ac_cv_prog_ac_ct_OTOOL="otool"
14666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14667 break 2
14669 done
14670 done
14671 IFS=$as_save_IFS
14675 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14676 if test -n "$ac_ct_OTOOL"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14678 $as_echo "$ac_ct_OTOOL" >&6; }
14679 else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14684 if test "x$ac_ct_OTOOL" = x; then
14685 OTOOL=":"
14686 else
14687 case $cross_compiling:$ac_tool_warned in
14688 yes:)
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14691 ac_tool_warned=yes ;;
14692 esac
14693 OTOOL=$ac_ct_OTOOL
14695 else
14696 OTOOL="$ac_cv_prog_OTOOL"
14699 if test -n "$ac_tool_prefix"; then
14700 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14701 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 $as_echo_n "checking for $ac_word... " >&6; }
14704 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 if test -n "$OTOOL64"; then
14708 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14709 else
14710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14711 for as_dir in $PATH
14713 IFS=$as_save_IFS
14714 test -z "$as_dir" && as_dir=.
14715 for ac_exec_ext in '' $ac_executable_extensions; do
14716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14717 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14719 break 2
14721 done
14722 done
14723 IFS=$as_save_IFS
14727 OTOOL64=$ac_cv_prog_OTOOL64
14728 if test -n "$OTOOL64"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14730 $as_echo "$OTOOL64" >&6; }
14731 else
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733 $as_echo "no" >&6; }
14738 if test -z "$ac_cv_prog_OTOOL64"; then
14739 ac_ct_OTOOL64=$OTOOL64
14740 # Extract the first word of "otool64", so it can be a program name with args.
14741 set dummy otool64; ac_word=$2
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14743 $as_echo_n "checking for $ac_word... " >&6; }
14744 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 if test -n "$ac_ct_OTOOL64"; then
14748 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14749 else
14750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14751 for as_dir in $PATH
14753 IFS=$as_save_IFS
14754 test -z "$as_dir" && as_dir=.
14755 for ac_exec_ext in '' $ac_executable_extensions; do
14756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14757 ac_cv_prog_ac_ct_OTOOL64="otool64"
14758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14759 break 2
14761 done
14762 done
14763 IFS=$as_save_IFS
14767 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14768 if test -n "$ac_ct_OTOOL64"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14770 $as_echo "$ac_ct_OTOOL64" >&6; }
14771 else
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14773 $as_echo "no" >&6; }
14776 if test "x$ac_ct_OTOOL64" = x; then
14777 OTOOL64=":"
14778 else
14779 case $cross_compiling:$ac_tool_warned in
14780 yes:)
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14783 ac_tool_warned=yes ;;
14784 esac
14785 OTOOL64=$ac_ct_OTOOL64
14787 else
14788 OTOOL64="$ac_cv_prog_OTOOL64"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14818 $as_echo_n "checking for -single_module linker flag... " >&6; }
14819 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 lt_cv_apple_cc_single_mod=no
14823 if test -z "${LT_MULTI_MODULE}"; then
14824 # By default we will add the -single_module flag. You can override
14825 # by either setting the environment variable LT_MULTI_MODULE
14826 # non-empty at configure time, or by adding -multi_module to the
14827 # link flags.
14828 rm -rf libconftest.dylib*
14829 echo "int foo(void){return 1;}" > conftest.c
14830 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14831 -dynamiclib -Wl,-single_module conftest.c" >&5
14832 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14833 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14834 _lt_result=$?
14835 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14836 lt_cv_apple_cc_single_mod=yes
14837 else
14838 cat conftest.err >&5
14840 rm -rf libconftest.dylib*
14841 rm -f conftest.*
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14845 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14847 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14848 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 lt_cv_ld_exported_symbols_list=no
14852 save_LDFLAGS=$LDFLAGS
14853 echo "_main" > conftest.sym
14854 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14859 main ()
14863 return 0;
14865 _ACEOF
14866 if ac_fn_c_try_link "$LINENO"; then :
14867 lt_cv_ld_exported_symbols_list=yes
14868 else
14869 lt_cv_ld_exported_symbols_list=no
14871 rm -f core conftest.err conftest.$ac_objext \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LDFLAGS="$save_LDFLAGS"
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14877 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14879 $as_echo_n "checking for -force_load linker flag... " >&6; }
14880 if test "${lt_cv_ld_force_load+set}" = set; then :
14881 $as_echo_n "(cached) " >&6
14882 else
14883 lt_cv_ld_force_load=no
14884 cat > conftest.c << _LT_EOF
14885 int forced_loaded() { return 2;}
14886 _LT_EOF
14887 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14888 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14889 echo "$AR cru libconftest.a conftest.o" >&5
14890 $AR cru libconftest.a conftest.o 2>&5
14891 cat > conftest.c << _LT_EOF
14892 int main() { return 0;}
14893 _LT_EOF
14894 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14895 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14896 _lt_result=$?
14897 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14898 lt_cv_ld_force_load=yes
14899 else
14900 cat conftest.err >&5
14902 rm -f conftest.err libconftest.a conftest conftest.c
14903 rm -rf conftest.dSYM
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14907 $as_echo "$lt_cv_ld_force_load" >&6; }
14908 case $host_os in
14909 rhapsody* | darwin1.[012])
14910 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14911 darwin1.*)
14912 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14913 darwin*) # darwin 5.x on
14914 # if running on 10.5 or later, the deployment target defaults
14915 # to the OS version, if on x86, and 10.4, the deployment
14916 # target defaults to 10.4. Don't you love it?
14917 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14918 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14919 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14920 10.[012][,.]*)
14921 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14922 10.*)
14923 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14924 esac
14926 esac
14927 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14928 _lt_dar_single_mod='$single_module'
14930 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14931 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14932 else
14933 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14935 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14936 _lt_dsymutil='~$DSYMUTIL $lib || :'
14937 else
14938 _lt_dsymutil=
14941 esac
14944 for ac_header in dlfcn.h
14945 do :
14946 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14947 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_DLFCN_H 1
14950 _ACEOF
14953 done
14959 # Set options
14963 enable_dlopen=no
14966 enable_win32_dll=no
14969 # Check whether --enable-shared was given.
14970 if test "${enable_shared+set}" = set; then :
14971 enableval=$enable_shared; p=${PACKAGE-default}
14972 case $enableval in
14973 yes) enable_shared=yes ;;
14974 no) enable_shared=no ;;
14976 enable_shared=no
14977 # Look at the argument we got. We use all the common list separators.
14978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14979 for pkg in $enableval; do
14980 IFS="$lt_save_ifs"
14981 if test "X$pkg" = "X$p"; then
14982 enable_shared=yes
14984 done
14985 IFS="$lt_save_ifs"
14987 esac
14988 else
14989 enable_shared=yes
15000 # Check whether --enable-static was given.
15001 if test "${enable_static+set}" = set; then :
15002 enableval=$enable_static; p=${PACKAGE-default}
15003 case $enableval in
15004 yes) enable_static=yes ;;
15005 no) enable_static=no ;;
15007 enable_static=no
15008 # Look at the argument we got. We use all the common list separators.
15009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15010 for pkg in $enableval; do
15011 IFS="$lt_save_ifs"
15012 if test "X$pkg" = "X$p"; then
15013 enable_static=yes
15015 done
15016 IFS="$lt_save_ifs"
15018 esac
15019 else
15020 enable_static=yes
15032 # Check whether --with-pic was given.
15033 if test "${with_pic+set}" = set; then :
15034 withval=$with_pic; pic_mode="$withval"
15035 else
15036 pic_mode=default
15040 test -z "$pic_mode" && pic_mode=default
15048 # Check whether --enable-fast-install was given.
15049 if test "${enable_fast_install+set}" = set; then :
15050 enableval=$enable_fast_install; p=${PACKAGE-default}
15051 case $enableval in
15052 yes) enable_fast_install=yes ;;
15053 no) enable_fast_install=no ;;
15055 enable_fast_install=no
15056 # Look at the argument we got. We use all the common list separators.
15057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15058 for pkg in $enableval; do
15059 IFS="$lt_save_ifs"
15060 if test "X$pkg" = "X$p"; then
15061 enable_fast_install=yes
15063 done
15064 IFS="$lt_save_ifs"
15066 esac
15067 else
15068 enable_fast_install=yes
15081 # This can be used to rebuild libtool when needed
15082 LIBTOOL_DEPS="$ltmain"
15084 # Always use our own libtool.
15085 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15112 test -z "$LN_S" && LN_S="ln -s"
15127 if test -n "${ZSH_VERSION+set}" ; then
15128 setopt NO_GLOB_SUBST
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15132 $as_echo_n "checking for objdir... " >&6; }
15133 if test "${lt_cv_objdir+set}" = set; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136 rm -f .libs 2>/dev/null
15137 mkdir .libs 2>/dev/null
15138 if test -d .libs; then
15139 lt_cv_objdir=.libs
15140 else
15141 # MS-DOS does not allow filenames that begin with a dot.
15142 lt_cv_objdir=_libs
15144 rmdir .libs 2>/dev/null
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15147 $as_echo "$lt_cv_objdir" >&6; }
15148 objdir=$lt_cv_objdir
15154 cat >>confdefs.h <<_ACEOF
15155 #define LT_OBJDIR "$lt_cv_objdir/"
15156 _ACEOF
15161 case $host_os in
15162 aix3*)
15163 # AIX sometimes has problems with the GCC collect2 program. For some
15164 # reason, if we set the COLLECT_NAMES environment variable, the problems
15165 # vanish in a puff of smoke.
15166 if test "X${COLLECT_NAMES+set}" != Xset; then
15167 COLLECT_NAMES=
15168 export COLLECT_NAMES
15171 esac
15173 # Global variables:
15174 ofile=libtool
15175 can_build_shared=yes
15177 # All known linkers require a `.a' archive for static linking (except MSVC,
15178 # which needs '.lib').
15179 libext=a
15181 with_gnu_ld="$lt_cv_prog_gnu_ld"
15183 old_CC="$CC"
15184 old_CFLAGS="$CFLAGS"
15186 # Set sane defaults for various variables
15187 test -z "$CC" && CC=cc
15188 test -z "$LTCC" && LTCC=$CC
15189 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15190 test -z "$LD" && LD=ld
15191 test -z "$ac_objext" && ac_objext=o
15193 for cc_temp in $compiler""; do
15194 case $cc_temp in
15195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15197 \-*) ;;
15198 *) break;;
15199 esac
15200 done
15201 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15204 # Only perform the check for file, if the check method requires it
15205 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15206 case $deplibs_check_method in
15207 file_magic*)
15208 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15210 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15211 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15212 $as_echo_n "(cached) " >&6
15213 else
15214 case $MAGIC_CMD in
15215 [\\/*] | ?:[\\/]*)
15216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15219 lt_save_MAGIC_CMD="$MAGIC_CMD"
15220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15222 for ac_dir in $ac_dummy; do
15223 IFS="$lt_save_ifs"
15224 test -z "$ac_dir" && ac_dir=.
15225 if test -f $ac_dir/${ac_tool_prefix}file; then
15226 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15227 if test -n "$file_magic_test_file"; then
15228 case $deplibs_check_method in
15229 "file_magic "*)
15230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15233 $EGREP "$file_magic_regex" > /dev/null; then
15235 else
15236 cat <<_LT_EOF 1>&2
15238 *** Warning: the command libtool uses to detect shared libraries,
15239 *** $file_magic_cmd, produces output that libtool cannot recognize.
15240 *** The result is that libtool may fail to recognize shared libraries
15241 *** as such. This will affect the creation of libtool libraries that
15242 *** depend on shared libraries, but programs linked with such libtool
15243 *** libraries will work regardless of this problem. Nevertheless, you
15244 *** may want to report the problem to your system manager and/or to
15245 *** bug-libtool@gnu.org
15247 _LT_EOF
15248 fi ;;
15249 esac
15251 break
15253 done
15254 IFS="$lt_save_ifs"
15255 MAGIC_CMD="$lt_save_MAGIC_CMD"
15257 esac
15260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15261 if test -n "$MAGIC_CMD"; then
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15263 $as_echo "$MAGIC_CMD" >&6; }
15264 else
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266 $as_echo "no" >&6; }
15273 if test -z "$lt_cv_path_MAGIC_CMD"; then
15274 if test -n "$ac_tool_prefix"; then
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15276 $as_echo_n "checking for file... " >&6; }
15277 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15278 $as_echo_n "(cached) " >&6
15279 else
15280 case $MAGIC_CMD in
15281 [\\/*] | ?:[\\/]*)
15282 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15285 lt_save_MAGIC_CMD="$MAGIC_CMD"
15286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15287 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15288 for ac_dir in $ac_dummy; do
15289 IFS="$lt_save_ifs"
15290 test -z "$ac_dir" && ac_dir=.
15291 if test -f $ac_dir/file; then
15292 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15293 if test -n "$file_magic_test_file"; then
15294 case $deplibs_check_method in
15295 "file_magic "*)
15296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15299 $EGREP "$file_magic_regex" > /dev/null; then
15301 else
15302 cat <<_LT_EOF 1>&2
15304 *** Warning: the command libtool uses to detect shared libraries,
15305 *** $file_magic_cmd, produces output that libtool cannot recognize.
15306 *** The result is that libtool may fail to recognize shared libraries
15307 *** as such. This will affect the creation of libtool libraries that
15308 *** depend on shared libraries, but programs linked with such libtool
15309 *** libraries will work regardless of this problem. Nevertheless, you
15310 *** may want to report the problem to your system manager and/or to
15311 *** bug-libtool@gnu.org
15313 _LT_EOF
15314 fi ;;
15315 esac
15317 break
15319 done
15320 IFS="$lt_save_ifs"
15321 MAGIC_CMD="$lt_save_MAGIC_CMD"
15323 esac
15326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15327 if test -n "$MAGIC_CMD"; then
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15329 $as_echo "$MAGIC_CMD" >&6; }
15330 else
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15332 $as_echo "no" >&6; }
15336 else
15337 MAGIC_CMD=:
15343 esac
15345 # Use C for the default configuration in the libtool script
15347 lt_save_CC="$CC"
15348 ac_ext=c
15349 ac_cpp='$CPP $CPPFLAGS'
15350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15355 # Source file extension for C test sources.
15356 ac_ext=c
15358 # Object file extension for compiled C test sources.
15359 objext=o
15360 objext=$objext
15362 # Code to be used in simple compile tests
15363 lt_simple_compile_test_code="int some_variable = 0;"
15365 # Code to be used in simple link tests
15366 lt_simple_link_test_code='int main(){return(0);}'
15374 # If no C compiler was specified, use CC.
15375 LTCC=${LTCC-"$CC"}
15377 # If no C compiler flags were specified, use CFLAGS.
15378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15380 # Allow CC to be a program name with arguments.
15381 compiler=$CC
15383 # Save the default compiler, since it gets overwritten when the other
15384 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15385 compiler_DEFAULT=$CC
15387 # save warnings/boilerplate of simple test code
15388 ac_outfile=conftest.$ac_objext
15389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15391 _lt_compiler_boilerplate=`cat conftest.err`
15392 $RM conftest*
15394 ac_outfile=conftest.$ac_objext
15395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15397 _lt_linker_boilerplate=`cat conftest.err`
15398 $RM -r conftest*
15401 ## CAVEAT EMPTOR:
15402 ## There is no encapsulation within the following macros, do not change
15403 ## the running order or otherwise move them around unless you know exactly
15404 ## what you are doing...
15405 if test -n "$compiler"; then
15407 lt_prog_compiler_no_builtin_flag=
15409 if test "$GCC" = yes; then
15410 case $cc_basename in
15411 nvcc*)
15412 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15414 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15415 esac
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15418 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15419 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422 lt_cv_prog_compiler_rtti_exceptions=no
15423 ac_outfile=conftest.$ac_objext
15424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15425 lt_compiler_flag="-fno-rtti -fno-exceptions"
15426 # Insert the option either (1) after the last *FLAGS variable, or
15427 # (2) before a word containing "conftest.", or (3) at the end.
15428 # Note that $ac_compile itself does not contain backslashes and begins
15429 # with a dollar sign (not a hyphen), so the echo should work correctly.
15430 # The option is referenced via a variable to avoid confusing sed.
15431 lt_compile=`echo "$ac_compile" | $SED \
15432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15434 -e 's:$: $lt_compiler_flag:'`
15435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15436 (eval "$lt_compile" 2>conftest.err)
15437 ac_status=$?
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 if (exit $ac_status) && test -s "$ac_outfile"; then
15441 # The compiler can only warn and ignore the option if not recognized
15442 # So say no if there are warnings other than the usual output.
15443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15446 lt_cv_prog_compiler_rtti_exceptions=yes
15449 $RM conftest*
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15453 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15455 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15457 else
15468 lt_prog_compiler_wl=
15469 lt_prog_compiler_pic=
15470 lt_prog_compiler_static=
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15473 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15475 if test "$GCC" = yes; then
15476 lt_prog_compiler_wl='-Wl,'
15477 lt_prog_compiler_static='-static'
15479 case $host_os in
15480 aix*)
15481 # All AIX code is PIC.
15482 if test "$host_cpu" = ia64; then
15483 # AIX 5 now supports IA64 processor
15484 lt_prog_compiler_static='-Bstatic'
15486 lt_prog_compiler_pic='-fPIC'
15489 amigaos*)
15490 case $host_cpu in
15491 powerpc)
15492 # see comment about AmigaOS4 .so support
15493 lt_prog_compiler_pic='-fPIC'
15495 m68k)
15496 # FIXME: we need at least 68020 code to build shared libraries, but
15497 # adding the `-m68020' flag to GCC prevents building anything better,
15498 # like `-m68040'.
15499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15501 esac
15504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15505 # PIC is the default for these OSes.
15508 mingw* | cygwin* | pw32* | os2* | cegcc*)
15509 # This hack is so that the source file can tell whether it is being
15510 # built for inclusion in a dll (and should export symbols for example).
15511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15512 # (--disable-auto-import) libraries
15513 lt_prog_compiler_pic='-DDLL_EXPORT'
15516 darwin* | rhapsody*)
15517 # PIC is the default on this platform
15518 # Common symbols not allowed in MH_DYLIB files
15519 lt_prog_compiler_pic='-fno-common'
15522 haiku*)
15523 # PIC is the default for Haiku.
15524 # The "-static" flag exists, but is broken.
15525 lt_prog_compiler_static=
15528 hpux*)
15529 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15530 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15531 # sets the default TLS model and affects inlining.
15532 case $host_cpu in
15533 hppa*64*)
15534 # +Z the default
15537 lt_prog_compiler_pic='-fPIC'
15539 esac
15542 interix[3-9]*)
15543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15544 # Instead, we relocate shared libraries at runtime.
15547 msdosdjgpp*)
15548 # Just because we use GCC doesn't mean we suddenly get shared libraries
15549 # on systems that don't support them.
15550 lt_prog_compiler_can_build_shared=no
15551 enable_shared=no
15554 *nto* | *qnx*)
15555 # QNX uses GNU C++, but need to define -shared option too, otherwise
15556 # it will coredump.
15557 lt_prog_compiler_pic='-fPIC -shared'
15560 sysv4*MP*)
15561 if test -d /usr/nec; then
15562 lt_prog_compiler_pic=-Kconform_pic
15567 lt_prog_compiler_pic='-fPIC'
15569 esac
15571 case $cc_basename in
15572 nvcc*) # Cuda Compiler Driver 2.2
15573 lt_prog_compiler_wl='-Xlinker '
15574 lt_prog_compiler_pic='-Xcompiler -fPIC'
15576 esac
15577 else
15578 # PORTME Check for flag to pass linker flags through the system compiler.
15579 case $host_os in
15580 aix*)
15581 lt_prog_compiler_wl='-Wl,'
15582 if test "$host_cpu" = ia64; then
15583 # AIX 5 now supports IA64 processor
15584 lt_prog_compiler_static='-Bstatic'
15585 else
15586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15590 mingw* | cygwin* | pw32* | os2* | cegcc*)
15591 # This hack is so that the source file can tell whether it is being
15592 # built for inclusion in a dll (and should export symbols for example).
15593 lt_prog_compiler_pic='-DDLL_EXPORT'
15596 hpux9* | hpux10* | hpux11*)
15597 lt_prog_compiler_wl='-Wl,'
15598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15599 # not for PA HP-UX.
15600 case $host_cpu in
15601 hppa*64*|ia64*)
15602 # +Z the default
15605 lt_prog_compiler_pic='+Z'
15607 esac
15608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15609 lt_prog_compiler_static='${wl}-a ${wl}archive'
15612 irix5* | irix6* | nonstopux*)
15613 lt_prog_compiler_wl='-Wl,'
15614 # PIC (with -KPIC) is the default.
15615 lt_prog_compiler_static='-non_shared'
15618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15619 case $cc_basename in
15620 # old Intel for x86_64 which still supported -KPIC.
15621 ecc*)
15622 lt_prog_compiler_wl='-Wl,'
15623 lt_prog_compiler_pic='-KPIC'
15624 lt_prog_compiler_static='-static'
15626 # icc used to be incompatible with GCC.
15627 # ICC 10 doesn't accept -KPIC any more.
15628 icc* | ifort*)
15629 lt_prog_compiler_wl='-Wl,'
15630 lt_prog_compiler_pic='-fPIC'
15631 lt_prog_compiler_static='-static'
15633 # Lahey Fortran 8.1.
15634 lf95*)
15635 lt_prog_compiler_wl='-Wl,'
15636 lt_prog_compiler_pic='--shared'
15637 lt_prog_compiler_static='--static'
15639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15640 # Portland Group compilers (*not* the Pentium gcc compiler,
15641 # which looks to be a dead project)
15642 lt_prog_compiler_wl='-Wl,'
15643 lt_prog_compiler_pic='-fpic'
15644 lt_prog_compiler_static='-Bstatic'
15646 ccc*)
15647 lt_prog_compiler_wl='-Wl,'
15648 # All Alpha code is PIC.
15649 lt_prog_compiler_static='-non_shared'
15651 xl* | bgxl* | bgf* | mpixl*)
15652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15653 lt_prog_compiler_wl='-Wl,'
15654 lt_prog_compiler_pic='-qpic'
15655 lt_prog_compiler_static='-qstaticlink'
15658 case `$CC -V 2>&1 | sed 5q` in
15659 *Sun\ F* | *Sun*Fortran*)
15660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15661 lt_prog_compiler_pic='-KPIC'
15662 lt_prog_compiler_static='-Bstatic'
15663 lt_prog_compiler_wl=''
15665 *Sun\ C*)
15666 # Sun C 5.9
15667 lt_prog_compiler_pic='-KPIC'
15668 lt_prog_compiler_static='-Bstatic'
15669 lt_prog_compiler_wl='-Wl,'
15671 esac
15673 esac
15676 newsos6)
15677 lt_prog_compiler_pic='-KPIC'
15678 lt_prog_compiler_static='-Bstatic'
15681 *nto* | *qnx*)
15682 # QNX uses GNU C++, but need to define -shared option too, otherwise
15683 # it will coredump.
15684 lt_prog_compiler_pic='-fPIC -shared'
15687 osf3* | osf4* | osf5*)
15688 lt_prog_compiler_wl='-Wl,'
15689 # All OSF/1 code is PIC.
15690 lt_prog_compiler_static='-non_shared'
15693 rdos*)
15694 lt_prog_compiler_static='-non_shared'
15697 solaris*)
15698 lt_prog_compiler_pic='-KPIC'
15699 lt_prog_compiler_static='-Bstatic'
15700 case $cc_basename in
15701 f77* | f90* | f95*)
15702 lt_prog_compiler_wl='-Qoption ld ';;
15704 lt_prog_compiler_wl='-Wl,';;
15705 esac
15708 sunos4*)
15709 lt_prog_compiler_wl='-Qoption ld '
15710 lt_prog_compiler_pic='-PIC'
15711 lt_prog_compiler_static='-Bstatic'
15714 sysv4 | sysv4.2uw2* | sysv4.3*)
15715 lt_prog_compiler_wl='-Wl,'
15716 lt_prog_compiler_pic='-KPIC'
15717 lt_prog_compiler_static='-Bstatic'
15720 sysv4*MP*)
15721 if test -d /usr/nec ;then
15722 lt_prog_compiler_pic='-Kconform_pic'
15723 lt_prog_compiler_static='-Bstatic'
15727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15728 lt_prog_compiler_wl='-Wl,'
15729 lt_prog_compiler_pic='-KPIC'
15730 lt_prog_compiler_static='-Bstatic'
15733 unicos*)
15734 lt_prog_compiler_wl='-Wl,'
15735 lt_prog_compiler_can_build_shared=no
15738 uts4*)
15739 lt_prog_compiler_pic='-pic'
15740 lt_prog_compiler_static='-Bstatic'
15744 lt_prog_compiler_can_build_shared=no
15746 esac
15749 case $host_os in
15750 # For platforms which do not support PIC, -DPIC is meaningless:
15751 *djgpp*)
15752 lt_prog_compiler_pic=
15755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15757 esac
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15759 $as_echo "$lt_prog_compiler_pic" >&6; }
15767 # Check to make sure the PIC flag actually works.
15769 if test -n "$lt_prog_compiler_pic"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15772 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 lt_cv_prog_compiler_pic_works=no
15776 ac_outfile=conftest.$ac_objext
15777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15779 # Insert the option either (1) after the last *FLAGS variable, or
15780 # (2) before a word containing "conftest.", or (3) at the end.
15781 # Note that $ac_compile itself does not contain backslashes and begins
15782 # with a dollar sign (not a hyphen), so the echo should work correctly.
15783 # The option is referenced via a variable to avoid confusing sed.
15784 lt_compile=`echo "$ac_compile" | $SED \
15785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15787 -e 's:$: $lt_compiler_flag:'`
15788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15789 (eval "$lt_compile" 2>conftest.err)
15790 ac_status=$?
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 if (exit $ac_status) && test -s "$ac_outfile"; then
15794 # The compiler can only warn and ignore the option if not recognized
15795 # So say no if there are warnings other than the usual output.
15796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15799 lt_cv_prog_compiler_pic_works=yes
15802 $RM conftest*
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15806 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15808 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15809 case $lt_prog_compiler_pic in
15810 "" | " "*) ;;
15811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15812 esac
15813 else
15814 lt_prog_compiler_pic=
15815 lt_prog_compiler_can_build_shared=no
15826 # Check to make sure the static flag actually works.
15828 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15830 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15831 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 lt_cv_prog_compiler_static_works=no
15835 save_LDFLAGS="$LDFLAGS"
15836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15839 # The linker can only warn and ignore the option if not recognized
15840 # So say no if there are warnings
15841 if test -s conftest.err; then
15842 # Append any errors to the config.log.
15843 cat conftest.err 1>&5
15844 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15846 if diff conftest.exp conftest.er2 >/dev/null; then
15847 lt_cv_prog_compiler_static_works=yes
15849 else
15850 lt_cv_prog_compiler_static_works=yes
15853 $RM -r conftest*
15854 LDFLAGS="$save_LDFLAGS"
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15858 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15860 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15862 else
15863 lt_prog_compiler_static=
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 lt_cv_prog_compiler_c_o=no
15878 $RM -r conftest 2>/dev/null
15879 mkdir conftest
15880 cd conftest
15881 mkdir out
15882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15884 lt_compiler_flag="-o out/conftest2.$ac_objext"
15885 # Insert the option either (1) after the last *FLAGS variable, or
15886 # (2) before a word containing "conftest.", or (3) at the end.
15887 # Note that $ac_compile itself does not contain backslashes and begins
15888 # with a dollar sign (not a hyphen), so the echo should work correctly.
15889 lt_compile=`echo "$ac_compile" | $SED \
15890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15892 -e 's:$: $lt_compiler_flag:'`
15893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15894 (eval "$lt_compile" 2>out/conftest.err)
15895 ac_status=$?
15896 cat out/conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15899 then
15900 # The compiler can only warn and ignore the option if not recognized
15901 # So say no if there are warnings
15902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15905 lt_cv_prog_compiler_c_o=yes
15908 chmod u+w . 2>&5
15909 $RM conftest*
15910 # SGI C++ compiler will create directory out/ii_files/ for
15911 # template instantiation
15912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15913 $RM out/* && rmdir out
15914 cd ..
15915 $RM -r conftest
15916 $RM conftest*
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15930 $as_echo_n "(cached) " >&6
15931 else
15932 lt_cv_prog_compiler_c_o=no
15933 $RM -r conftest 2>/dev/null
15934 mkdir conftest
15935 cd conftest
15936 mkdir out
15937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15939 lt_compiler_flag="-o out/conftest2.$ac_objext"
15940 # Insert the option either (1) after the last *FLAGS variable, or
15941 # (2) before a word containing "conftest.", or (3) at the end.
15942 # Note that $ac_compile itself does not contain backslashes and begins
15943 # with a dollar sign (not a hyphen), so the echo should work correctly.
15944 lt_compile=`echo "$ac_compile" | $SED \
15945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15947 -e 's:$: $lt_compiler_flag:'`
15948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15949 (eval "$lt_compile" 2>out/conftest.err)
15950 ac_status=$?
15951 cat out/conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15954 then
15955 # The compiler can only warn and ignore the option if not recognized
15956 # So say no if there are warnings
15957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15960 lt_cv_prog_compiler_c_o=yes
15963 chmod u+w . 2>&5
15964 $RM conftest*
15965 # SGI C++ compiler will create directory out/ii_files/ for
15966 # template instantiation
15967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15968 $RM out/* && rmdir out
15969 cd ..
15970 $RM -r conftest
15971 $RM conftest*
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15980 hard_links="nottested"
15981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15982 # do not overwrite the value of need_locks provided by the user
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15984 $as_echo_n "checking if we can lock with hard links... " >&6; }
15985 hard_links=yes
15986 $RM conftest*
15987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15988 touch conftest.a
15989 ln conftest.a conftest.b 2>&5 || hard_links=no
15990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15992 $as_echo "$hard_links" >&6; }
15993 if test "$hard_links" = no; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15996 need_locks=warn
15998 else
15999 need_locks=no
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16008 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16010 runpath_var=
16011 allow_undefined_flag=
16012 always_export_symbols=no
16013 archive_cmds=
16014 archive_expsym_cmds=
16015 compiler_needs_object=no
16016 enable_shared_with_static_runtimes=no
16017 export_dynamic_flag_spec=
16018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16019 hardcode_automatic=no
16020 hardcode_direct=no
16021 hardcode_direct_absolute=no
16022 hardcode_libdir_flag_spec=
16023 hardcode_libdir_flag_spec_ld=
16024 hardcode_libdir_separator=
16025 hardcode_minus_L=no
16026 hardcode_shlibpath_var=unsupported
16027 inherit_rpath=no
16028 link_all_deplibs=unknown
16029 module_cmds=
16030 module_expsym_cmds=
16031 old_archive_from_new_cmds=
16032 old_archive_from_expsyms_cmds=
16033 thread_safe_flag_spec=
16034 whole_archive_flag_spec=
16035 # include_expsyms should be a list of space-separated symbols to be *always*
16036 # included in the symbol list
16037 include_expsyms=
16038 # exclude_expsyms can be an extended regexp of symbols to exclude
16039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16041 # as well as any symbol that contains `d'.
16042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16044 # platforms (ab)use it in PIC code, but their linkers get confused if
16045 # the symbol is explicitly referenced. Since portable code cannot
16046 # rely on this symbol name, it's probably fine to never include it in
16047 # preloaded symbol tables.
16048 # Exclude shared library initialization/finalization symbols.
16049 extract_expsyms_cmds=
16051 case $host_os in
16052 cygwin* | mingw* | pw32* | cegcc*)
16053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16054 # When not using gcc, we currently assume that we are using
16055 # Microsoft Visual C++.
16056 if test "$GCC" != yes; then
16057 with_gnu_ld=no
16060 interix*)
16061 # we just hope/assume this is gcc and not c89 (= MSVC++)
16062 with_gnu_ld=yes
16064 openbsd*)
16065 with_gnu_ld=no
16067 esac
16069 ld_shlibs=yes
16071 # On some targets, GNU ld is compatible enough with the native linker
16072 # that we're better off using the native interface for both.
16073 lt_use_gnu_ld_interface=no
16074 if test "$with_gnu_ld" = yes; then
16075 case $host_os in
16076 aix*)
16077 # The AIX port of GNU ld has always aspired to compatibility
16078 # with the native linker. However, as the warning in the GNU ld
16079 # block says, versions before 2.19.5* couldn't really create working
16080 # shared libraries, regardless of the interface used.
16081 case `$LD -v 2>&1` in
16082 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16083 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16084 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16086 lt_use_gnu_ld_interface=yes
16088 esac
16091 lt_use_gnu_ld_interface=yes
16093 esac
16096 if test "$lt_use_gnu_ld_interface" = yes; then
16097 # If archive_cmds runs LD, not CC, wlarc should be empty
16098 wlarc='${wl}'
16100 # Set some defaults for GNU ld with shared library support. These
16101 # are reset later if shared libraries are not supported. Putting them
16102 # here allows them to be overridden if necessary.
16103 runpath_var=LD_RUN_PATH
16104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16105 export_dynamic_flag_spec='${wl}--export-dynamic'
16106 # ancient GNU ld didn't support --whole-archive et. al.
16107 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16109 else
16110 whole_archive_flag_spec=
16112 supports_anon_versioning=no
16113 case `$LD -v 2>&1` in
16114 *GNU\ gold*) supports_anon_versioning=yes ;;
16115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16118 *\ 2.11.*) ;; # other 2.11 versions
16119 *) supports_anon_versioning=yes ;;
16120 esac
16122 # See if GNU ld supports shared libraries.
16123 case $host_os in
16124 aix[3-9]*)
16125 # On AIX/PPC, the GNU linker is very broken
16126 if test "$host_cpu" != ia64; then
16127 ld_shlibs=no
16128 cat <<_LT_EOF 1>&2
16130 *** Warning: the GNU linker, at least up to release 2.19, is reported
16131 *** to be unable to reliably create shared libraries on AIX.
16132 *** Therefore, libtool is disabling shared libraries support. If you
16133 *** really care for shared libraries, you may want to install binutils
16134 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16135 *** You will then need to restart the configuration process.
16137 _LT_EOF
16141 amigaos*)
16142 case $host_cpu in
16143 powerpc)
16144 # see comment about AmigaOS4 .so support
16145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16146 archive_expsym_cmds=''
16148 m68k)
16149 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)'
16150 hardcode_libdir_flag_spec='-L$libdir'
16151 hardcode_minus_L=yes
16153 esac
16156 beos*)
16157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16158 allow_undefined_flag=unsupported
16159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16160 # support --undefined. This deserves some investigation. FIXME
16161 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16162 else
16163 ld_shlibs=no
16167 cygwin* | mingw* | pw32* | cegcc*)
16168 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16169 # as there is no search path for DLLs.
16170 hardcode_libdir_flag_spec='-L$libdir'
16171 export_dynamic_flag_spec='${wl}--export-all-symbols'
16172 allow_undefined_flag=unsupported
16173 always_export_symbols=no
16174 enable_shared_with_static_runtimes=yes
16175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16179 # If the export-symbols file already is a .def file (1st line
16180 # is EXPORTS), use it as is; otherwise, prepend...
16181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16182 cp $export_symbols $output_objdir/$soname.def;
16183 else
16184 echo EXPORTS > $output_objdir/$soname.def;
16185 cat $export_symbols >> $output_objdir/$soname.def;
16187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16188 else
16189 ld_shlibs=no
16193 haiku*)
16194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195 link_all_deplibs=yes
16198 interix[3-9]*)
16199 hardcode_direct=no
16200 hardcode_shlibpath_var=no
16201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16202 export_dynamic_flag_spec='${wl}-E'
16203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16204 # Instead, shared libraries are loaded at an image base (0x10000000 by
16205 # default) and relocated if they conflict, which is a slow very memory
16206 # consuming and fragmenting process. To avoid this, we pick a random,
16207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16208 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16210 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'
16213 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16214 tmp_diet=no
16215 if test "$host_os" = linux-dietlibc; then
16216 case $cc_basename in
16217 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16218 esac
16220 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16221 && test "$tmp_diet" = no
16222 then
16223 tmp_addflag=' $pic_flag'
16224 tmp_sharedflag='-shared'
16225 case $cc_basename,$host_cpu in
16226 pgcc*) # Portland Group C compiler
16227 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'
16228 tmp_addflag=' $pic_flag'
16230 pgf77* | pgf90* | pgf95* | pgfortran*)
16231 # Portland Group f77 and f90 compilers
16232 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'
16233 tmp_addflag=' $pic_flag -Mnomain' ;;
16234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16235 tmp_addflag=' -i_dynamic' ;;
16236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16237 tmp_addflag=' -i_dynamic -nofor_main' ;;
16238 ifc* | ifort*) # Intel Fortran compiler
16239 tmp_addflag=' -nofor_main' ;;
16240 lf95*) # Lahey Fortran 8.1
16241 whole_archive_flag_spec=
16242 tmp_sharedflag='--shared' ;;
16243 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16244 tmp_sharedflag='-qmkshrobj'
16245 tmp_addflag= ;;
16246 nvcc*) # Cuda Compiler Driver 2.2
16247 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'
16248 compiler_needs_object=yes
16250 esac
16251 case `$CC -V 2>&1 | sed 5q` in
16252 *Sun\ C*) # Sun C 5.9
16253 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'
16254 compiler_needs_object=yes
16255 tmp_sharedflag='-G' ;;
16256 *Sun\ F*) # Sun Fortran 8.3
16257 tmp_sharedflag='-G' ;;
16258 esac
16259 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16261 if test "x$supports_anon_versioning" = xyes; then
16262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16264 echo "local: *; };" >> $output_objdir/$libname.ver~
16265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16268 case $cc_basename in
16269 xlf* | bgf* | bgxlf* | mpixlf*)
16270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16272 hardcode_libdir_flag_spec=
16273 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16274 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16275 if test "x$supports_anon_versioning" = xyes; then
16276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16278 echo "local: *; };" >> $output_objdir/$libname.ver~
16279 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16282 esac
16283 else
16284 ld_shlibs=no
16288 netbsd*)
16289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16291 wlarc=
16292 else
16293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16298 solaris*)
16299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16300 ld_shlibs=no
16301 cat <<_LT_EOF 1>&2
16303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16304 *** create shared libraries on Solaris systems. Therefore, libtool
16305 *** is disabling shared libraries support. We urge you to upgrade GNU
16306 *** binutils to release 2.9.1 or newer. Another option is to modify
16307 *** your PATH or compiler configuration so that the native linker is
16308 *** used, and then restart.
16310 _LT_EOF
16311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16314 else
16315 ld_shlibs=no
16319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16320 case `$LD -v 2>&1` in
16321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16322 ld_shlibs=no
16323 cat <<_LT_EOF 1>&2
16325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16326 *** reliably create shared libraries on SCO systems. Therefore, libtool
16327 *** is disabling shared libraries support. We urge you to upgrade GNU
16328 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16329 *** your PATH or compiler configuration so that the native linker is
16330 *** used, and then restart.
16332 _LT_EOF
16335 # For security reasons, it is highly recommended that you always
16336 # use absolute paths for naming shared libraries, and exclude the
16337 # DT_RUNPATH tag from executables and libraries. But doing so
16338 # requires that you compile everything twice, which is a pain.
16339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16343 else
16344 ld_shlibs=no
16347 esac
16350 sunos4*)
16351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16352 wlarc=
16353 hardcode_direct=yes
16354 hardcode_shlibpath_var=no
16358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16361 else
16362 ld_shlibs=no
16365 esac
16367 if test "$ld_shlibs" = no; then
16368 runpath_var=
16369 hardcode_libdir_flag_spec=
16370 export_dynamic_flag_spec=
16371 whole_archive_flag_spec=
16373 else
16374 # PORTME fill in a description of your system's linker (not GNU ld)
16375 case $host_os in
16376 aix3*)
16377 allow_undefined_flag=unsupported
16378 always_export_symbols=yes
16379 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'
16380 # Note: this linker hardcodes the directories in LIBPATH if there
16381 # are no directories specified by -L.
16382 hardcode_minus_L=yes
16383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16384 # Neither direct hardcoding nor static linking is supported with a
16385 # broken collect2.
16386 hardcode_direct=unsupported
16390 aix[4-9]*)
16391 if test "$host_cpu" = ia64; then
16392 # On IA64, the linker does run time linking by default, so we don't
16393 # have to do anything special.
16394 aix_use_runtimelinking=no
16395 exp_sym_flag='-Bexport'
16396 no_entry_flag=""
16397 else
16398 # If we're using GNU nm, then we don't want the "-C" option.
16399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16400 # Also, AIX nm treats weak defined symbols like other global
16401 # defined symbols, whereas GNU nm marks them as "W".
16402 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16403 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'
16404 else
16405 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'
16407 aix_use_runtimelinking=no
16409 # Test if we are trying to use run time linking or normal
16410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16411 # need to do runtime linking.
16412 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16413 for ld_flag in $LDFLAGS; do
16414 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16415 aix_use_runtimelinking=yes
16416 break
16418 done
16420 esac
16422 exp_sym_flag='-bexport'
16423 no_entry_flag='-bnoentry'
16426 # When large executables or shared objects are built, AIX ld can
16427 # have problems creating the table of contents. If linking a library
16428 # or program results in "error TOC overflow" add -mminimal-toc to
16429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16432 archive_cmds=''
16433 hardcode_direct=yes
16434 hardcode_direct_absolute=yes
16435 hardcode_libdir_separator=':'
16436 link_all_deplibs=yes
16437 file_list_spec='${wl}-f,'
16439 if test "$GCC" = yes; then
16440 case $host_os in aix4.[012]|aix4.[012].*)
16441 # We only want to do this on AIX 4.2 and lower, the check
16442 # below for broken collect2 doesn't work under 4.3+
16443 collect2name=`${CC} -print-prog-name=collect2`
16444 if test -f "$collect2name" &&
16445 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16446 then
16447 # We have reworked collect2
16449 else
16450 # We have old collect2
16451 hardcode_direct=unsupported
16452 # It fails to find uninstalled libraries when the uninstalled
16453 # path is not listed in the libpath. Setting hardcode_minus_L
16454 # to unsupported forces relinking
16455 hardcode_minus_L=yes
16456 hardcode_libdir_flag_spec='-L$libdir'
16457 hardcode_libdir_separator=
16460 esac
16461 shared_flag='-shared'
16462 if test "$aix_use_runtimelinking" = yes; then
16463 shared_flag="$shared_flag "'${wl}-G'
16465 else
16466 # not using gcc
16467 if test "$host_cpu" = ia64; then
16468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16469 # chokes on -Wl,-G. The following line is correct:
16470 shared_flag='-G'
16471 else
16472 if test "$aix_use_runtimelinking" = yes; then
16473 shared_flag='${wl}-G'
16474 else
16475 shared_flag='${wl}-bM:SRE'
16480 export_dynamic_flag_spec='${wl}-bexpall'
16481 # It seems that -bexpall does not export symbols beginning with
16482 # underscore (_), so it is better to generate a list of symbols to export.
16483 always_export_symbols=yes
16484 if test "$aix_use_runtimelinking" = yes; then
16485 # Warning - without using the other runtime loading flags (-brtl),
16486 # -berok will link without error, but may produce a broken library.
16487 allow_undefined_flag='-berok'
16488 # Determine the default libpath from the value encoded in an
16489 # empty executable.
16490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h. */
16494 main ()
16498 return 0;
16500 _ACEOF
16501 if ac_fn_c_try_link "$LINENO"; then :
16503 lt_aix_libpath_sed='
16504 /Import File Strings/,/^$/ {
16505 /^0/ {
16506 s/^0 *\(.*\)$/\1/
16510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16511 # Check for a 64-bit object if we didn't find anything.
16512 if test -z "$aix_libpath"; then
16513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16516 rm -f core conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16521 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"
16522 else
16523 if test "$host_cpu" = ia64; then
16524 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16525 allow_undefined_flag="-z nodefs"
16526 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"
16527 else
16528 # Determine the default libpath from the value encoded in an
16529 # empty executable.
16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16531 /* end confdefs.h. */
16534 main ()
16538 return 0;
16540 _ACEOF
16541 if ac_fn_c_try_link "$LINENO"; then :
16543 lt_aix_libpath_sed='
16544 /Import File Strings/,/^$/ {
16545 /^0/ {
16546 s/^0 *\(.*\)$/\1/
16550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16551 # Check for a 64-bit object if we didn't find anything.
16552 if test -z "$aix_libpath"; then
16553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16556 rm -f core conftest.err conftest.$ac_objext \
16557 conftest$ac_exeext conftest.$ac_ext
16558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16561 # Warning - without using the other run time loading flags,
16562 # -berok will link without error, but may produce a broken library.
16563 no_undefined_flag=' ${wl}-bernotok'
16564 allow_undefined_flag=' ${wl}-berok'
16565 if test "$with_gnu_ld" = yes; then
16566 # We only use this code for GNU lds that support --whole-archive.
16567 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16568 else
16569 # Exported symbols can be pulled into shared objects from archives
16570 whole_archive_flag_spec='$convenience'
16572 archive_cmds_need_lc=yes
16573 # This is similar to how AIX traditionally builds its shared libraries.
16574 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'
16579 amigaos*)
16580 case $host_cpu in
16581 powerpc)
16582 # see comment about AmigaOS4 .so support
16583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16584 archive_expsym_cmds=''
16586 m68k)
16587 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)'
16588 hardcode_libdir_flag_spec='-L$libdir'
16589 hardcode_minus_L=yes
16591 esac
16594 bsdi[45]*)
16595 export_dynamic_flag_spec=-rdynamic
16598 cygwin* | mingw* | pw32* | cegcc*)
16599 # When not using gcc, we currently assume that we are using
16600 # Microsoft Visual C++.
16601 # hardcode_libdir_flag_spec is actually meaningless, as there is
16602 # no search path for DLLs.
16603 hardcode_libdir_flag_spec=' '
16604 allow_undefined_flag=unsupported
16605 # Tell ltmain to make .lib files, not .a files.
16606 libext=lib
16607 # Tell ltmain to make .dll files, not .so files.
16608 shrext_cmds=".dll"
16609 # FIXME: Setting linknames here is a bad hack.
16610 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16611 # The linker will automatically build a .lib file if we build a DLL.
16612 old_archive_from_new_cmds='true'
16613 # FIXME: Should let the user specify the lib program.
16614 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16615 fix_srcfile_path='`cygpath -w "$srcfile"`'
16616 enable_shared_with_static_runtimes=yes
16619 darwin* | rhapsody*)
16622 archive_cmds_need_lc=no
16623 hardcode_direct=no
16624 hardcode_automatic=yes
16625 hardcode_shlibpath_var=unsupported
16626 if test "$lt_cv_ld_force_load" = "yes"; then
16627 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\"`'
16628 else
16629 whole_archive_flag_spec=''
16631 link_all_deplibs=yes
16632 allow_undefined_flag="$_lt_dar_allow_undefined"
16633 case $cc_basename in
16634 ifort*) _lt_dar_can_shared=yes ;;
16635 *) _lt_dar_can_shared=$GCC ;;
16636 esac
16637 if test "$_lt_dar_can_shared" = "yes"; then
16638 output_verbose_link_cmd=func_echo_all
16639 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16640 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16641 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}"
16642 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}"
16644 else
16645 ld_shlibs=no
16650 dgux*)
16651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 hardcode_libdir_flag_spec='-L$libdir'
16653 hardcode_shlibpath_var=no
16656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16657 # support. Future versions do this automatically, but an explicit c++rt0.o
16658 # does not break anything, and helps significantly (at the cost of a little
16659 # extra space).
16660 freebsd2.2*)
16661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16662 hardcode_libdir_flag_spec='-R$libdir'
16663 hardcode_direct=yes
16664 hardcode_shlibpath_var=no
16667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16668 freebsd2.*)
16669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_direct=yes
16671 hardcode_minus_L=yes
16672 hardcode_shlibpath_var=no
16675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16676 freebsd* | dragonfly*)
16677 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16678 hardcode_libdir_flag_spec='-R$libdir'
16679 hardcode_direct=yes
16680 hardcode_shlibpath_var=no
16683 hpux9*)
16684 if test "$GCC" = yes; then
16685 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'
16686 else
16687 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'
16689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16690 hardcode_libdir_separator=:
16691 hardcode_direct=yes
16693 # hardcode_minus_L: Not really in the search PATH,
16694 # but as the default location of the library.
16695 hardcode_minus_L=yes
16696 export_dynamic_flag_spec='${wl}-E'
16699 hpux10*)
16700 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16702 else
16703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16705 if test "$with_gnu_ld" = no; then
16706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16707 hardcode_libdir_flag_spec_ld='+b $libdir'
16708 hardcode_libdir_separator=:
16709 hardcode_direct=yes
16710 hardcode_direct_absolute=yes
16711 export_dynamic_flag_spec='${wl}-E'
16712 # hardcode_minus_L: Not really in the search PATH,
16713 # but as the default location of the library.
16714 hardcode_minus_L=yes
16718 hpux11*)
16719 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16720 case $host_cpu in
16721 hppa*64*)
16722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16724 ia64*)
16725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16730 esac
16731 else
16732 case $host_cpu in
16733 hppa*64*)
16734 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16736 ia64*)
16737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16741 # Older versions of the 11.00 compiler do not understand -b yet
16742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16744 $as_echo_n "checking if $CC understands -b... " >&6; }
16745 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16746 $as_echo_n "(cached) " >&6
16747 else
16748 lt_cv_prog_compiler__b=no
16749 save_LDFLAGS="$LDFLAGS"
16750 LDFLAGS="$LDFLAGS -b"
16751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16753 # The linker can only warn and ignore the option if not recognized
16754 # So say no if there are warnings
16755 if test -s conftest.err; then
16756 # Append any errors to the config.log.
16757 cat conftest.err 1>&5
16758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16760 if diff conftest.exp conftest.er2 >/dev/null; then
16761 lt_cv_prog_compiler__b=yes
16763 else
16764 lt_cv_prog_compiler__b=yes
16767 $RM -r conftest*
16768 LDFLAGS="$save_LDFLAGS"
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16772 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16774 if test x"$lt_cv_prog_compiler__b" = xyes; then
16775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16776 else
16777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16781 esac
16783 if test "$with_gnu_ld" = no; then
16784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16785 hardcode_libdir_separator=:
16787 case $host_cpu in
16788 hppa*64*|ia64*)
16789 hardcode_direct=no
16790 hardcode_shlibpath_var=no
16793 hardcode_direct=yes
16794 hardcode_direct_absolute=yes
16795 export_dynamic_flag_spec='${wl}-E'
16797 # hardcode_minus_L: Not really in the search PATH,
16798 # but as the default location of the library.
16799 hardcode_minus_L=yes
16801 esac
16805 irix5* | irix6* | nonstopux*)
16806 if test "$GCC" = yes; then
16807 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'
16808 # Try to use the -exported_symbol ld option, if it does not
16809 # work, assume that -exports_file does not work either and
16810 # implicitly export all symbols.
16811 save_LDFLAGS="$LDFLAGS"
16812 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815 int foo(void) {}
16816 _ACEOF
16817 if ac_fn_c_try_link "$LINENO"; then :
16818 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'
16821 rm -f core conftest.err conftest.$ac_objext \
16822 conftest$ac_exeext conftest.$ac_ext
16823 LDFLAGS="$save_LDFLAGS"
16824 else
16825 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'
16826 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'
16828 archive_cmds_need_lc='no'
16829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16830 hardcode_libdir_separator=:
16831 inherit_rpath=yes
16832 link_all_deplibs=yes
16835 netbsd*)
16836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16838 else
16839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16841 hardcode_libdir_flag_spec='-R$libdir'
16842 hardcode_direct=yes
16843 hardcode_shlibpath_var=no
16846 newsos6)
16847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16848 hardcode_direct=yes
16849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16850 hardcode_libdir_separator=:
16851 hardcode_shlibpath_var=no
16854 *nto* | *qnx*)
16857 openbsd*)
16858 if test -f /usr/libexec/ld.so; then
16859 hardcode_direct=yes
16860 hardcode_shlibpath_var=no
16861 hardcode_direct_absolute=yes
16862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16866 export_dynamic_flag_spec='${wl}-E'
16867 else
16868 case $host_os in
16869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16871 hardcode_libdir_flag_spec='-R$libdir'
16874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16877 esac
16879 else
16880 ld_shlibs=no
16884 os2*)
16885 hardcode_libdir_flag_spec='-L$libdir'
16886 hardcode_minus_L=yes
16887 allow_undefined_flag=unsupported
16888 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'
16889 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16892 osf3*)
16893 if test "$GCC" = yes; then
16894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16895 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'
16896 else
16897 allow_undefined_flag=' -expect_unresolved \*'
16898 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'
16900 archive_cmds_need_lc='no'
16901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16902 hardcode_libdir_separator=:
16905 osf4* | osf5*) # as osf3* with the addition of -msym flag
16906 if test "$GCC" = yes; then
16907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16908 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'
16909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16910 else
16911 allow_undefined_flag=' -expect_unresolved \*'
16912 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'
16913 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~
16914 $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'
16916 # Both c and cxx compiler support -rpath directly
16917 hardcode_libdir_flag_spec='-rpath $libdir'
16919 archive_cmds_need_lc='no'
16920 hardcode_libdir_separator=:
16923 solaris*)
16924 no_undefined_flag=' -z defs'
16925 if test "$GCC" = yes; then
16926 wlarc='${wl}'
16927 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16929 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16930 else
16931 case `$CC -V 2>&1` in
16932 *"Compilers 5.0"*)
16933 wlarc=''
16934 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16939 wlarc='${wl}'
16940 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16942 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16944 esac
16946 hardcode_libdir_flag_spec='-R$libdir'
16947 hardcode_shlibpath_var=no
16948 case $host_os in
16949 solaris2.[0-5] | solaris2.[0-5].*) ;;
16951 # The compiler driver will combine and reorder linker options,
16952 # but understands `-z linker_flag'. GCC discards it without `$wl',
16953 # but is careful enough not to reorder.
16954 # Supported since Solaris 2.6 (maybe 2.5.1?)
16955 if test "$GCC" = yes; then
16956 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16957 else
16958 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16961 esac
16962 link_all_deplibs=yes
16965 sunos4*)
16966 if test "x$host_vendor" = xsequent; then
16967 # Use $CC to link under sequent, because it throws in some extra .o
16968 # files that make .init and .fini sections work.
16969 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16970 else
16971 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16973 hardcode_libdir_flag_spec='-L$libdir'
16974 hardcode_direct=yes
16975 hardcode_minus_L=yes
16976 hardcode_shlibpath_var=no
16979 sysv4)
16980 case $host_vendor in
16981 sni)
16982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16983 hardcode_direct=yes # is this really true???
16985 siemens)
16986 ## LD is ld it makes a PLAMLIB
16987 ## CC just makes a GrossModule.
16988 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16989 reload_cmds='$CC -r -o $output$reload_objs'
16990 hardcode_direct=no
16992 motorola)
16993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16994 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16996 esac
16997 runpath_var='LD_RUN_PATH'
16998 hardcode_shlibpath_var=no
17001 sysv4.3*)
17002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003 hardcode_shlibpath_var=no
17004 export_dynamic_flag_spec='-Bexport'
17007 sysv4*MP*)
17008 if test -d /usr/nec; then
17009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17010 hardcode_shlibpath_var=no
17011 runpath_var=LD_RUN_PATH
17012 hardcode_runpath_var=yes
17013 ld_shlibs=yes
17017 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17018 no_undefined_flag='${wl}-z,text'
17019 archive_cmds_need_lc=no
17020 hardcode_shlibpath_var=no
17021 runpath_var='LD_RUN_PATH'
17023 if test "$GCC" = yes; then
17024 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17025 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17026 else
17027 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17028 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17032 sysv5* | sco3.2v5* | sco5v6*)
17033 # Note: We can NOT use -z defs as we might desire, because we do not
17034 # link with -lc, and that would cause any symbols used from libc to
17035 # always be unresolved, which means just about no library would
17036 # ever link correctly. If we're not using GNU ld we use -z text
17037 # though, which does catch some bad symbols but isn't as heavy-handed
17038 # as -z defs.
17039 no_undefined_flag='${wl}-z,text'
17040 allow_undefined_flag='${wl}-z,nodefs'
17041 archive_cmds_need_lc=no
17042 hardcode_shlibpath_var=no
17043 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17044 hardcode_libdir_separator=':'
17045 link_all_deplibs=yes
17046 export_dynamic_flag_spec='${wl}-Bexport'
17047 runpath_var='LD_RUN_PATH'
17049 if test "$GCC" = yes; then
17050 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17052 else
17053 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17054 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 uts4*)
17059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17060 hardcode_libdir_flag_spec='-L$libdir'
17061 hardcode_shlibpath_var=no
17065 ld_shlibs=no
17067 esac
17069 if test x$host_vendor = xsni; then
17070 case $host in
17071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17072 export_dynamic_flag_spec='${wl}-Blargedynsym'
17074 esac
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17079 $as_echo "$ld_shlibs" >&6; }
17080 test "$ld_shlibs" = no && can_build_shared=no
17082 with_gnu_ld=$with_gnu_ld
17099 # Do we need to explicitly link libc?
17101 case "x$archive_cmds_need_lc" in
17102 x|xyes)
17103 # Assume -lc should be added
17104 archive_cmds_need_lc=yes
17106 if test "$enable_shared" = yes && test "$GCC" = yes; then
17107 case $archive_cmds in
17108 *'~'*)
17109 # FIXME: we may have to deal with multi-command sequences.
17111 '$CC '*)
17112 # Test whether the compiler implicitly links with -lc since on some
17113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17114 # to ld, don't add -lc before -lgcc.
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17116 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17117 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17118 $as_echo_n "(cached) " >&6
17119 else
17120 $RM conftest*
17121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17124 (eval $ac_compile) 2>&5
17125 ac_status=$?
17126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17127 test $ac_status = 0; } 2>conftest.err; then
17128 soname=conftest
17129 lib=conftest
17130 libobjs=conftest.$ac_objext
17131 deplibs=
17132 wl=$lt_prog_compiler_wl
17133 pic_flag=$lt_prog_compiler_pic
17134 compiler_flags=-v
17135 linker_flags=-v
17136 verstring=
17137 output_objdir=.
17138 libname=conftest
17139 lt_save_allow_undefined_flag=$allow_undefined_flag
17140 allow_undefined_flag=
17141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17142 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17143 ac_status=$?
17144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17145 test $ac_status = 0; }
17146 then
17147 lt_cv_archive_cmds_need_lc=no
17148 else
17149 lt_cv_archive_cmds_need_lc=yes
17151 allow_undefined_flag=$lt_save_allow_undefined_flag
17152 else
17153 cat conftest.err 1>&5
17155 $RM conftest*
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17159 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17160 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17162 esac
17165 esac
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17324 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17326 if test "$GCC" = yes; then
17327 case $host_os in
17328 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17329 *) lt_awk_arg="/^libraries:/" ;;
17330 esac
17331 case $host_os in
17332 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17333 *) lt_sed_strip_eq="s,=/,/,g" ;;
17334 esac
17335 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17336 case $lt_search_path_spec in
17337 *\;*)
17338 # if the path contains ";" then we assume it to be the separator
17339 # otherwise default to the standard path separator (i.e. ":") - it is
17340 # assumed that no part of a normal pathname contains ";" but that should
17341 # okay in the real world where ";" in dirpaths is itself problematic.
17342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17347 esac
17348 # Ok, now we have the path, separated by spaces, we can step through it
17349 # and add multilib dir if necessary.
17350 lt_tmp_lt_search_path_spec=
17351 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17352 for lt_sys_path in $lt_search_path_spec; do
17353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17355 else
17356 test -d "$lt_sys_path" && \
17357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17359 done
17360 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17361 BEGIN {RS=" "; FS="/|\n";} {
17362 lt_foo="";
17363 lt_count=0;
17364 for (lt_i = NF; lt_i > 0; lt_i--) {
17365 if ($lt_i != "" && $lt_i != ".") {
17366 if ($lt_i == "..") {
17367 lt_count++;
17368 } else {
17369 if (lt_count == 0) {
17370 lt_foo="/" $lt_i lt_foo;
17371 } else {
17372 lt_count--;
17377 if (lt_foo != "") { lt_freq[lt_foo]++; }
17378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17380 # AWK program above erroneously prepends '/' to C:/dos/paths
17381 # for these hosts.
17382 case $host_os in
17383 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17384 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17385 esac
17386 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17387 else
17388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17390 library_names_spec=
17391 libname_spec='lib$name'
17392 soname_spec=
17393 shrext_cmds=".so"
17394 postinstall_cmds=
17395 postuninstall_cmds=
17396 finish_cmds=
17397 finish_eval=
17398 shlibpath_var=
17399 shlibpath_overrides_runpath=unknown
17400 version_type=none
17401 dynamic_linker="$host_os ld.so"
17402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17403 need_lib_prefix=unknown
17404 hardcode_into_libs=no
17406 # when you set need_version to no, make sure it does not cause -set_version
17407 # flags to be left without arguments
17408 need_version=unknown
17410 case $host_os in
17411 aix3*)
17412 version_type=linux
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17414 shlibpath_var=LIBPATH
17416 # AIX 3 has no versioning support, so we append a major version to the name.
17417 soname_spec='${libname}${release}${shared_ext}$major'
17420 aix[4-9]*)
17421 version_type=linux
17422 need_lib_prefix=no
17423 need_version=no
17424 hardcode_into_libs=yes
17425 if test "$host_cpu" = ia64; then
17426 # AIX 5 supports IA64
17427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17428 shlibpath_var=LD_LIBRARY_PATH
17429 else
17430 # With GCC up to 2.95.x, collect2 would create an import file
17431 # for dependence libraries. The import file would start with
17432 # the line `#! .'. This would cause the generated library to
17433 # depend on `.', always an invalid library. This was fixed in
17434 # development snapshots of GCC prior to 3.0.
17435 case $host_os in
17436 aix4 | aix4.[01] | aix4.[01].*)
17437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17438 echo ' yes '
17439 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17441 else
17442 can_build_shared=no
17445 esac
17446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17447 # soname into executable. Probably we can add versioning support to
17448 # collect2, so additional links can be useful in future.
17449 if test "$aix_use_runtimelinking" = yes; then
17450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17451 # instead of lib<name>.a to let people know that these are not
17452 # typical AIX shared libraries.
17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454 else
17455 # We preserve .a as extension for shared libraries through AIX4.2
17456 # and later when we are not doing run time linking.
17457 library_names_spec='${libname}${release}.a $libname.a'
17458 soname_spec='${libname}${release}${shared_ext}$major'
17460 shlibpath_var=LIBPATH
17464 amigaos*)
17465 case $host_cpu in
17466 powerpc)
17467 # Since July 2007 AmigaOS4 officially supports .so libraries.
17468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 m68k)
17472 library_names_spec='$libname.ixlibrary $libname.a'
17473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17474 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'
17476 esac
17479 beos*)
17480 library_names_spec='${libname}${shared_ext}'
17481 dynamic_linker="$host_os ld.so"
17482 shlibpath_var=LIBRARY_PATH
17485 bsdi[45]*)
17486 version_type=linux
17487 need_version=no
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 soname_spec='${libname}${release}${shared_ext}$major'
17490 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17494 # the default ld.so.conf also contains /usr/contrib/lib and
17495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17496 # libtool to hard-code these into programs
17499 cygwin* | mingw* | pw32* | cegcc*)
17500 version_type=windows
17501 shrext_cmds=".dll"
17502 need_version=no
17503 need_lib_prefix=no
17505 case $GCC,$host_os in
17506 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17507 library_names_spec='$libname.dll.a'
17508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17509 postinstall_cmds='base_file=`basename \${file}`~
17510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17511 dldir=$destdir/`dirname \$dlpath`~
17512 test -d \$dldir || mkdir -p \$dldir~
17513 $install_prog $dir/$dlname \$dldir/$dlname~
17514 chmod a+x \$dldir/$dlname~
17515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17519 dlpath=$dir/\$dldll~
17520 $RM \$dlpath'
17521 shlibpath_overrides_runpath=yes
17523 case $host_os in
17524 cygwin*)
17525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17530 mingw* | cegcc*)
17531 # MinGW DLLs use traditional 'lib' prefix
17532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17534 pw32*)
17535 # pw32 DLLs use 'pw' prefix rather than 'lib'
17536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17538 esac
17542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17544 esac
17545 dynamic_linker='Win32 ld.exe'
17546 # FIXME: first we should search . and the directory the executable is in
17547 shlibpath_var=PATH
17550 darwin* | rhapsody*)
17551 dynamic_linker="$host_os dyld"
17552 version_type=darwin
17553 need_lib_prefix=no
17554 need_version=no
17555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17556 soname_spec='${libname}${release}${major}$shared_ext'
17557 shlibpath_overrides_runpath=yes
17558 shlibpath_var=DYLD_LIBRARY_PATH
17559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17565 dgux*)
17566 version_type=linux
17567 need_lib_prefix=no
17568 need_version=no
17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17570 soname_spec='${libname}${release}${shared_ext}$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17574 freebsd* | dragonfly*)
17575 # DragonFly does not have aout. When/if they implement a new
17576 # versioning mechanism, adjust this.
17577 if test -x /usr/bin/objformat; then
17578 objformat=`/usr/bin/objformat`
17579 else
17580 case $host_os in
17581 freebsd[23].*) objformat=aout ;;
17582 *) objformat=elf ;;
17583 esac
17585 version_type=freebsd-$objformat
17586 case $version_type in
17587 freebsd-elf*)
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17589 need_version=no
17590 need_lib_prefix=no
17592 freebsd-*)
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17594 need_version=yes
17596 esac
17597 shlibpath_var=LD_LIBRARY_PATH
17598 case $host_os in
17599 freebsd2.*)
17600 shlibpath_overrides_runpath=yes
17602 freebsd3.[01]* | freebsdelf3.[01]*)
17603 shlibpath_overrides_runpath=yes
17604 hardcode_into_libs=yes
17606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17608 shlibpath_overrides_runpath=no
17609 hardcode_into_libs=yes
17611 *) # from 4.6 on, and DragonFly
17612 shlibpath_overrides_runpath=yes
17613 hardcode_into_libs=yes
17615 esac
17618 gnu*)
17619 version_type=linux
17620 need_lib_prefix=no
17621 need_version=no
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 hardcode_into_libs=yes
17628 haiku*)
17629 version_type=linux
17630 need_lib_prefix=no
17631 need_version=no
17632 dynamic_linker="$host_os runtime_loader"
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 shlibpath_var=LIBRARY_PATH
17636 shlibpath_overrides_runpath=yes
17637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17638 hardcode_into_libs=yes
17641 hpux9* | hpux10* | hpux11*)
17642 # Give a soname corresponding to the major version so that dld.sl refuses to
17643 # link against other versions.
17644 version_type=sunos
17645 need_lib_prefix=no
17646 need_version=no
17647 case $host_cpu in
17648 ia64*)
17649 shrext_cmds='.so'
17650 hardcode_into_libs=yes
17651 dynamic_linker="$host_os dld.so"
17652 shlibpath_var=LD_LIBRARY_PATH
17653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 if test "X$HPUX_IA64_MODE" = X32; then
17657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17658 else
17659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17663 hppa*64*)
17664 shrext_cmds='.sl'
17665 hardcode_into_libs=yes
17666 dynamic_linker="$host_os dld.sl"
17667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17675 shrext_cmds='.sl'
17676 dynamic_linker="$host_os dld.sl"
17677 shlibpath_var=SHLIB_PATH
17678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
17682 esac
17683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17684 postinstall_cmds='chmod 555 $lib'
17685 # or fails outright, so override atomically:
17686 install_override_mode=555
17689 interix[3-9]*)
17690 version_type=linux
17691 need_lib_prefix=no
17692 need_version=no
17693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17694 soname_spec='${libname}${release}${shared_ext}$major'
17695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=no
17698 hardcode_into_libs=yes
17701 irix5* | irix6* | nonstopux*)
17702 case $host_os in
17703 nonstopux*) version_type=nonstopux ;;
17705 if test "$lt_cv_prog_gnu_ld" = yes; then
17706 version_type=linux
17707 else
17708 version_type=irix
17709 fi ;;
17710 esac
17711 need_lib_prefix=no
17712 need_version=no
17713 soname_spec='${libname}${release}${shared_ext}$major'
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17715 case $host_os in
17716 irix5* | nonstopux*)
17717 libsuff= shlibsuff=
17720 case $LD in # libtool.m4 will add one of these switches to LD
17721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17722 libsuff= shlibsuff= libmagic=32-bit;;
17723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17724 libsuff=32 shlibsuff=N32 libmagic=N32;;
17725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17727 *) libsuff= shlibsuff= libmagic=never-match;;
17728 esac
17730 esac
17731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17732 shlibpath_overrides_runpath=no
17733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17735 hardcode_into_libs=yes
17738 # No shared lib support for Linux oldld, aout, or coff.
17739 linux*oldld* | linux*aout* | linux*coff*)
17740 dynamic_linker=no
17743 # This must be Linux ELF.
17744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17745 version_type=linux
17746 need_lib_prefix=no
17747 need_version=no
17748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec='${libname}${release}${shared_ext}$major'
17750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17751 shlibpath_var=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath=no
17754 # Some binutils ld are patched to set DT_RUNPATH
17755 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17756 $as_echo_n "(cached) " >&6
17757 else
17758 lt_cv_shlibpath_overrides_runpath=no
17759 save_LDFLAGS=$LDFLAGS
17760 save_libdir=$libdir
17761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h. */
17767 main ()
17771 return 0;
17773 _ACEOF
17774 if ac_fn_c_try_link "$LINENO"; then :
17775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17776 lt_cv_shlibpath_overrides_runpath=yes
17779 rm -f core conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781 LDFLAGS=$save_LDFLAGS
17782 libdir=$save_libdir
17786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17788 # This implies no fast_install, which is unacceptable.
17789 # Some rework will be needed to allow for fast_install
17790 # before this can be enabled.
17791 hardcode_into_libs=yes
17793 # Append ld.so.conf contents to the search path
17794 if test -f /etc/ld.so.conf; then
17795 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' ' '`
17796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17799 # We used to test for /lib/ld.so.1 and disable shared libraries on
17800 # powerpc, because MkLinux only supported shared libraries with the
17801 # GNU dynamic linker. Since this was broken with cross compilers,
17802 # most powerpc-linux boxes support dynamic linking these days and
17803 # people can always --disable-shared, the test was removed, and we
17804 # assume the GNU/Linux dynamic linker is in use.
17805 dynamic_linker='GNU/Linux ld.so'
17808 netbsd*)
17809 version_type=sunos
17810 need_lib_prefix=no
17811 need_version=no
17812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17815 dynamic_linker='NetBSD (a.out) ld.so'
17816 else
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17818 soname_spec='${libname}${release}${shared_ext}$major'
17819 dynamic_linker='NetBSD ld.elf_so'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 shlibpath_overrides_runpath=yes
17823 hardcode_into_libs=yes
17826 newsos6)
17827 version_type=linux
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17829 shlibpath_var=LD_LIBRARY_PATH
17830 shlibpath_overrides_runpath=yes
17833 *nto* | *qnx*)
17834 version_type=qnx
17835 need_lib_prefix=no
17836 need_version=no
17837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17838 soname_spec='${libname}${release}${shared_ext}$major'
17839 shlibpath_var=LD_LIBRARY_PATH
17840 shlibpath_overrides_runpath=no
17841 hardcode_into_libs=yes
17842 dynamic_linker='ldqnx.so'
17845 openbsd*)
17846 version_type=sunos
17847 sys_lib_dlsearch_path_spec="/usr/lib"
17848 need_lib_prefix=no
17849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17850 case $host_os in
17851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17852 *) need_version=no ;;
17853 esac
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17858 case $host_os in
17859 openbsd2.[89] | openbsd2.[89].*)
17860 shlibpath_overrides_runpath=no
17863 shlibpath_overrides_runpath=yes
17865 esac
17866 else
17867 shlibpath_overrides_runpath=yes
17871 os2*)
17872 libname_spec='$name'
17873 shrext_cmds=".dll"
17874 need_lib_prefix=no
17875 library_names_spec='$libname${shared_ext} $libname.a'
17876 dynamic_linker='OS/2 ld.exe'
17877 shlibpath_var=LIBPATH
17880 osf3* | osf4* | osf5*)
17881 version_type=osf
17882 need_lib_prefix=no
17883 need_version=no
17884 soname_spec='${libname}${release}${shared_ext}$major'
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17891 rdos*)
17892 dynamic_linker=no
17895 solaris*)
17896 version_type=linux
17897 need_lib_prefix=no
17898 need_version=no
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900 soname_spec='${libname}${release}${shared_ext}$major'
17901 shlibpath_var=LD_LIBRARY_PATH
17902 shlibpath_overrides_runpath=yes
17903 hardcode_into_libs=yes
17904 # ldd complains unless libraries are executable
17905 postinstall_cmds='chmod +x $lib'
17908 sunos4*)
17909 version_type=sunos
17910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 shlibpath_overrides_runpath=yes
17914 if test "$with_gnu_ld" = yes; then
17915 need_lib_prefix=no
17917 need_version=yes
17920 sysv4 | sysv4.3*)
17921 version_type=linux
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17923 soname_spec='${libname}${release}${shared_ext}$major'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 case $host_vendor in
17926 sni)
17927 shlibpath_overrides_runpath=no
17928 need_lib_prefix=no
17929 runpath_var=LD_RUN_PATH
17931 siemens)
17932 need_lib_prefix=no
17934 motorola)
17935 need_lib_prefix=no
17936 need_version=no
17937 shlibpath_overrides_runpath=no
17938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17940 esac
17943 sysv4*MP*)
17944 if test -d /usr/nec ;then
17945 version_type=linux
17946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17947 soname_spec='$libname${shared_ext}.$major'
17948 shlibpath_var=LD_LIBRARY_PATH
17952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17953 version_type=freebsd-elf
17954 need_lib_prefix=no
17955 need_version=no
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath=yes
17960 hardcode_into_libs=yes
17961 if test "$with_gnu_ld" = yes; then
17962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17963 else
17964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17965 case $host_os in
17966 sco3.2v5*)
17967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17969 esac
17971 sys_lib_dlsearch_path_spec='/usr/lib'
17974 tpf*)
17975 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17976 version_type=linux
17977 need_lib_prefix=no
17978 need_version=no
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 shlibpath_var=LD_LIBRARY_PATH
17981 shlibpath_overrides_runpath=no
17982 hardcode_into_libs=yes
17985 uts4*)
17986 version_type=linux
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17988 soname_spec='${libname}${release}${shared_ext}$major'
17989 shlibpath_var=LD_LIBRARY_PATH
17993 dynamic_linker=no
17995 esac
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17997 $as_echo "$dynamic_linker" >&6; }
17998 test "$dynamic_linker" = no && can_build_shared=no
18000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18001 if test "$GCC" = yes; then
18002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18005 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18006 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18008 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18009 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18104 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18105 hardcode_action=
18106 if test -n "$hardcode_libdir_flag_spec" ||
18107 test -n "$runpath_var" ||
18108 test "X$hardcode_automatic" = "Xyes" ; then
18110 # We can hardcode non-existent directories.
18111 if test "$hardcode_direct" != no &&
18112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18113 # have to relink, otherwise we might link with an installed library
18114 # when we should be linking with a yet-to-be-installed one
18115 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18116 test "$hardcode_minus_L" != no; then
18117 # Linking always hardcodes the temporary library directory.
18118 hardcode_action=relink
18119 else
18120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18121 hardcode_action=immediate
18123 else
18124 # We cannot hardcode anything, or else we can only hardcode existing
18125 # directories.
18126 hardcode_action=unsupported
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18129 $as_echo "$hardcode_action" >&6; }
18131 if test "$hardcode_action" = relink ||
18132 test "$inherit_rpath" = yes; then
18133 # Fast installation is not supported
18134 enable_fast_install=no
18135 elif test "$shlibpath_overrides_runpath" = yes ||
18136 test "$enable_shared" = no; then
18137 # Fast installation is not necessary
18138 enable_fast_install=needless
18146 if test "x$enable_dlopen" != xyes; then
18147 enable_dlopen=unknown
18148 enable_dlopen_self=unknown
18149 enable_dlopen_self_static=unknown
18150 else
18151 lt_cv_dlopen=no
18152 lt_cv_dlopen_libs=
18154 case $host_os in
18155 beos*)
18156 lt_cv_dlopen="load_add_on"
18157 lt_cv_dlopen_libs=
18158 lt_cv_dlopen_self=yes
18161 mingw* | pw32* | cegcc*)
18162 lt_cv_dlopen="LoadLibrary"
18163 lt_cv_dlopen_libs=
18166 cygwin*)
18167 lt_cv_dlopen="dlopen"
18168 lt_cv_dlopen_libs=
18171 darwin*)
18172 # if libdl is installed we need to link against it
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18174 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18176 $as_echo_n "(cached) " >&6
18177 else
18178 ac_check_lib_save_LIBS=$LIBS
18179 LIBS="-ldl $LIBS"
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18183 /* Override any GCC internal prototype to avoid an error.
18184 Use char because int might match the return type of a GCC
18185 builtin and then its argument prototype would still apply. */
18186 #ifdef __cplusplus
18187 extern "C"
18188 #endif
18189 char dlopen ();
18191 main ()
18193 return dlopen ();
18195 return 0;
18197 _ACEOF
18198 if ac_fn_c_try_link "$LINENO"; then :
18199 ac_cv_lib_dl_dlopen=yes
18200 else
18201 ac_cv_lib_dl_dlopen=no
18203 rm -f core conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18205 LIBS=$ac_check_lib_save_LIBS
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18208 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18209 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18211 else
18213 lt_cv_dlopen="dyld"
18214 lt_cv_dlopen_libs=
18215 lt_cv_dlopen_self=yes
18222 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18223 if test "x$ac_cv_func_shl_load" = x""yes; then :
18224 lt_cv_dlopen="shl_load"
18225 else
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18227 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18228 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18229 $as_echo_n "(cached) " >&6
18230 else
18231 ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-ldld $LIBS"
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234 /* end confdefs.h. */
18236 /* Override any GCC internal prototype to avoid an error.
18237 Use char because int might match the return type of a GCC
18238 builtin and then its argument prototype would still apply. */
18239 #ifdef __cplusplus
18240 extern "C"
18241 #endif
18242 char shl_load ();
18244 main ()
18246 return shl_load ();
18248 return 0;
18250 _ACEOF
18251 if ac_fn_c_try_link "$LINENO"; then :
18252 ac_cv_lib_dld_shl_load=yes
18253 else
18254 ac_cv_lib_dld_shl_load=no
18256 rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258 LIBS=$ac_check_lib_save_LIBS
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18261 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18262 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18263 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18264 else
18265 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18266 if test "x$ac_cv_func_dlopen" = x""yes; then :
18267 lt_cv_dlopen="dlopen"
18268 else
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18272 $as_echo_n "(cached) " >&6
18273 else
18274 ac_check_lib_save_LIBS=$LIBS
18275 LIBS="-ldl $LIBS"
18276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18277 /* end confdefs.h. */
18279 /* Override any GCC internal prototype to avoid an error.
18280 Use char because int might match the return type of a GCC
18281 builtin and then its argument prototype would still apply. */
18282 #ifdef __cplusplus
18283 extern "C"
18284 #endif
18285 char dlopen ();
18287 main ()
18289 return dlopen ();
18291 return 0;
18293 _ACEOF
18294 if ac_fn_c_try_link "$LINENO"; then :
18295 ac_cv_lib_dl_dlopen=yes
18296 else
18297 ac_cv_lib_dl_dlopen=no
18299 rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18304 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18305 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18307 else
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18309 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18310 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18311 $as_echo_n "(cached) " >&6
18312 else
18313 ac_check_lib_save_LIBS=$LIBS
18314 LIBS="-lsvld $LIBS"
18315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18316 /* end confdefs.h. */
18318 /* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
18321 #ifdef __cplusplus
18322 extern "C"
18323 #endif
18324 char dlopen ();
18326 main ()
18328 return dlopen ();
18330 return 0;
18332 _ACEOF
18333 if ac_fn_c_try_link "$LINENO"; then :
18334 ac_cv_lib_svld_dlopen=yes
18335 else
18336 ac_cv_lib_svld_dlopen=no
18338 rm -f core conftest.err conftest.$ac_objext \
18339 conftest$ac_exeext conftest.$ac_ext
18340 LIBS=$ac_check_lib_save_LIBS
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18343 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18344 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18346 else
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18348 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18349 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18350 $as_echo_n "(cached) " >&6
18351 else
18352 ac_check_lib_save_LIBS=$LIBS
18353 LIBS="-ldld $LIBS"
18354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355 /* end confdefs.h. */
18357 /* Override any GCC internal prototype to avoid an error.
18358 Use char because int might match the return type of a GCC
18359 builtin and then its argument prototype would still apply. */
18360 #ifdef __cplusplus
18361 extern "C"
18362 #endif
18363 char dld_link ();
18365 main ()
18367 return dld_link ();
18369 return 0;
18371 _ACEOF
18372 if ac_fn_c_try_link "$LINENO"; then :
18373 ac_cv_lib_dld_dld_link=yes
18374 else
18375 ac_cv_lib_dld_dld_link=no
18377 rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18382 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18383 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18384 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18403 esac
18405 if test "x$lt_cv_dlopen" != xno; then
18406 enable_dlopen=yes
18407 else
18408 enable_dlopen=no
18411 case $lt_cv_dlopen in
18412 dlopen)
18413 save_CPPFLAGS="$CPPFLAGS"
18414 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18416 save_LDFLAGS="$LDFLAGS"
18417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18419 save_LIBS="$LIBS"
18420 LIBS="$lt_cv_dlopen_libs $LIBS"
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18423 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18424 if test "${lt_cv_dlopen_self+set}" = set; then :
18425 $as_echo_n "(cached) " >&6
18426 else
18427 if test "$cross_compiling" = yes; then :
18428 lt_cv_dlopen_self=cross
18429 else
18430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18431 lt_status=$lt_dlunknown
18432 cat > conftest.$ac_ext <<_LT_EOF
18433 #line 18433 "configure"
18434 #include "confdefs.h"
18436 #if HAVE_DLFCN_H
18437 #include <dlfcn.h>
18438 #endif
18440 #include <stdio.h>
18442 #ifdef RTLD_GLOBAL
18443 # define LT_DLGLOBAL RTLD_GLOBAL
18444 #else
18445 # ifdef DL_GLOBAL
18446 # define LT_DLGLOBAL DL_GLOBAL
18447 # else
18448 # define LT_DLGLOBAL 0
18449 # endif
18450 #endif
18452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18453 find out it does not work in some platform. */
18454 #ifndef LT_DLLAZY_OR_NOW
18455 # ifdef RTLD_LAZY
18456 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18457 # else
18458 # ifdef DL_LAZY
18459 # define LT_DLLAZY_OR_NOW DL_LAZY
18460 # else
18461 # ifdef RTLD_NOW
18462 # define LT_DLLAZY_OR_NOW RTLD_NOW
18463 # else
18464 # ifdef DL_NOW
18465 # define LT_DLLAZY_OR_NOW DL_NOW
18466 # else
18467 # define LT_DLLAZY_OR_NOW 0
18468 # endif
18469 # endif
18470 # endif
18471 # endif
18472 #endif
18474 /* When -fvisbility=hidden is used, assume the code has been annotated
18475 correspondingly for the symbols needed. */
18476 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18477 void fnord () __attribute__((visibility("default")));
18478 #endif
18480 void fnord () { int i=42; }
18481 int main ()
18483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18484 int status = $lt_dlunknown;
18486 if (self)
18488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18489 else
18491 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18492 else puts (dlerror ());
18494 /* dlclose (self); */
18496 else
18497 puts (dlerror ());
18499 return status;
18501 _LT_EOF
18502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18503 (eval $ac_link) 2>&5
18504 ac_status=$?
18505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18506 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18507 (./conftest; exit; ) >&5 2>/dev/null
18508 lt_status=$?
18509 case x$lt_status in
18510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18513 esac
18514 else :
18515 # compilation failed
18516 lt_cv_dlopen_self=no
18519 rm -fr conftest*
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18524 $as_echo "$lt_cv_dlopen_self" >&6; }
18526 if test "x$lt_cv_dlopen_self" = xyes; then
18527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18529 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18530 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18531 $as_echo_n "(cached) " >&6
18532 else
18533 if test "$cross_compiling" = yes; then :
18534 lt_cv_dlopen_self_static=cross
18535 else
18536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18537 lt_status=$lt_dlunknown
18538 cat > conftest.$ac_ext <<_LT_EOF
18539 #line 18539 "configure"
18540 #include "confdefs.h"
18542 #if HAVE_DLFCN_H
18543 #include <dlfcn.h>
18544 #endif
18546 #include <stdio.h>
18548 #ifdef RTLD_GLOBAL
18549 # define LT_DLGLOBAL RTLD_GLOBAL
18550 #else
18551 # ifdef DL_GLOBAL
18552 # define LT_DLGLOBAL DL_GLOBAL
18553 # else
18554 # define LT_DLGLOBAL 0
18555 # endif
18556 #endif
18558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18559 find out it does not work in some platform. */
18560 #ifndef LT_DLLAZY_OR_NOW
18561 # ifdef RTLD_LAZY
18562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18563 # else
18564 # ifdef DL_LAZY
18565 # define LT_DLLAZY_OR_NOW DL_LAZY
18566 # else
18567 # ifdef RTLD_NOW
18568 # define LT_DLLAZY_OR_NOW RTLD_NOW
18569 # else
18570 # ifdef DL_NOW
18571 # define LT_DLLAZY_OR_NOW DL_NOW
18572 # else
18573 # define LT_DLLAZY_OR_NOW 0
18574 # endif
18575 # endif
18576 # endif
18577 # endif
18578 #endif
18580 /* When -fvisbility=hidden is used, assume the code has been annotated
18581 correspondingly for the symbols needed. */
18582 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18583 void fnord () __attribute__((visibility("default")));
18584 #endif
18586 void fnord () { int i=42; }
18587 int main ()
18589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18590 int status = $lt_dlunknown;
18592 if (self)
18594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18595 else
18597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18598 else puts (dlerror ());
18600 /* dlclose (self); */
18602 else
18603 puts (dlerror ());
18605 return status;
18607 _LT_EOF
18608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18609 (eval $ac_link) 2>&5
18610 ac_status=$?
18611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18613 (./conftest; exit; ) >&5 2>/dev/null
18614 lt_status=$?
18615 case x$lt_status in
18616 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18617 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18618 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18619 esac
18620 else :
18621 # compilation failed
18622 lt_cv_dlopen_self_static=no
18625 rm -fr conftest*
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18630 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18633 CPPFLAGS="$save_CPPFLAGS"
18634 LDFLAGS="$save_LDFLAGS"
18635 LIBS="$save_LIBS"
18637 esac
18639 case $lt_cv_dlopen_self in
18640 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18641 *) enable_dlopen_self=unknown ;;
18642 esac
18644 case $lt_cv_dlopen_self_static in
18645 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18646 *) enable_dlopen_self_static=unknown ;;
18647 esac
18666 striplib=
18667 old_striplib=
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18669 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18670 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18674 $as_echo "yes" >&6; }
18675 else
18676 # FIXME - insert some real tests, host_os isn't really good enough
18677 case $host_os in
18678 darwin*)
18679 if test -n "$STRIP" ; then
18680 striplib="$STRIP -x"
18681 old_striplib="$STRIP -S"
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18683 $as_echo "yes" >&6; }
18684 else
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18686 $as_echo "no" >&6; }
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18691 $as_echo "no" >&6; }
18693 esac
18707 # Report which library types will actually be built
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18709 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18711 $as_echo "$can_build_shared" >&6; }
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18714 $as_echo_n "checking whether to build shared libraries... " >&6; }
18715 test "$can_build_shared" = "no" && enable_shared=no
18717 # On AIX, shared libraries and static libraries use the same namespace, and
18718 # are all built from PIC.
18719 case $host_os in
18720 aix3*)
18721 test "$enable_shared" = yes && enable_static=no
18722 if test -n "$RANLIB"; then
18723 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18724 postinstall_cmds='$RANLIB $lib'
18728 aix[4-9]*)
18729 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18730 test "$enable_shared" = yes && enable_static=no
18733 esac
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18735 $as_echo "$enable_shared" >&6; }
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18738 $as_echo_n "checking whether to build static libraries... " >&6; }
18739 # Make sure either enable_shared or enable_static is yes.
18740 test "$enable_shared" = yes || enable_static=yes
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18742 $as_echo "$enable_static" >&6; }
18748 ac_ext=cpp
18749 ac_cpp='$CXXCPP $CPPFLAGS'
18750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18754 CC="$lt_save_CC"
18756 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18757 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18758 (test "X$CXX" != "Xg++"))) ; then
18759 ac_ext=cpp
18760 ac_cpp='$CXXCPP $CPPFLAGS'
18761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18765 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18766 if test -z "$CXXCPP"; then
18767 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18768 $as_echo_n "(cached) " >&6
18769 else
18770 # Double quotes because CXXCPP needs to be expanded
18771 for CXXCPP in "$CXX -E" "/lib/cpp"
18773 ac_preproc_ok=false
18774 for ac_cxx_preproc_warn_flag in '' yes
18776 # Use a header file that comes with gcc, so configuring glibc
18777 # with a fresh cross-compiler works.
18778 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18779 # <limits.h> exists even on freestanding compilers.
18780 # On the NeXT, cc -E runs the code through the compiler's parser,
18781 # not just through cpp. "Syntax error" is here to catch this case.
18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18783 /* end confdefs.h. */
18784 #ifdef __STDC__
18785 # include <limits.h>
18786 #else
18787 # include <assert.h>
18788 #endif
18789 Syntax error
18790 _ACEOF
18791 if ac_fn_cxx_try_cpp "$LINENO"; then :
18793 else
18794 # Broken: fails on valid input.
18795 continue
18797 rm -f conftest.err conftest.$ac_ext
18799 # OK, works on sane cases. Now check whether nonexistent headers
18800 # can be detected and how.
18801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18802 /* end confdefs.h. */
18803 #include <ac_nonexistent.h>
18804 _ACEOF
18805 if ac_fn_cxx_try_cpp "$LINENO"; then :
18806 # Broken: success on invalid input.
18807 continue
18808 else
18809 # Passes both tests.
18810 ac_preproc_ok=:
18811 break
18813 rm -f conftest.err conftest.$ac_ext
18815 done
18816 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18817 rm -f conftest.err conftest.$ac_ext
18818 if $ac_preproc_ok; then :
18819 break
18822 done
18823 ac_cv_prog_CXXCPP=$CXXCPP
18826 CXXCPP=$ac_cv_prog_CXXCPP
18827 else
18828 ac_cv_prog_CXXCPP=$CXXCPP
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18831 $as_echo "$CXXCPP" >&6; }
18832 ac_preproc_ok=false
18833 for ac_cxx_preproc_warn_flag in '' yes
18835 # Use a header file that comes with gcc, so configuring glibc
18836 # with a fresh cross-compiler works.
18837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18838 # <limits.h> exists even on freestanding compilers.
18839 # On the NeXT, cc -E runs the code through the compiler's parser,
18840 # not just through cpp. "Syntax error" is here to catch this case.
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842 /* end confdefs.h. */
18843 #ifdef __STDC__
18844 # include <limits.h>
18845 #else
18846 # include <assert.h>
18847 #endif
18848 Syntax error
18849 _ACEOF
18850 if ac_fn_cxx_try_cpp "$LINENO"; then :
18852 else
18853 # Broken: fails on valid input.
18854 continue
18856 rm -f conftest.err conftest.$ac_ext
18858 # OK, works on sane cases. Now check whether nonexistent headers
18859 # can be detected and how.
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h. */
18862 #include <ac_nonexistent.h>
18863 _ACEOF
18864 if ac_fn_cxx_try_cpp "$LINENO"; then :
18865 # Broken: success on invalid input.
18866 continue
18867 else
18868 # Passes both tests.
18869 ac_preproc_ok=:
18870 break
18872 rm -f conftest.err conftest.$ac_ext
18874 done
18875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18876 rm -f conftest.err conftest.$ac_ext
18877 if $ac_preproc_ok; then :
18879 else
18880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18882 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18883 See \`config.log' for more details." "$LINENO" 5; }
18886 ac_ext=cpp
18887 ac_cpp='$CXXCPP $CPPFLAGS'
18888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18892 else
18893 _lt_caught_CXX_error=yes
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 archive_cmds_need_lc_CXX=no
18903 allow_undefined_flag_CXX=
18904 always_export_symbols_CXX=no
18905 archive_expsym_cmds_CXX=
18906 compiler_needs_object_CXX=no
18907 export_dynamic_flag_spec_CXX=
18908 hardcode_direct_CXX=no
18909 hardcode_direct_absolute_CXX=no
18910 hardcode_libdir_flag_spec_CXX=
18911 hardcode_libdir_flag_spec_ld_CXX=
18912 hardcode_libdir_separator_CXX=
18913 hardcode_minus_L_CXX=no
18914 hardcode_shlibpath_var_CXX=unsupported
18915 hardcode_automatic_CXX=no
18916 inherit_rpath_CXX=no
18917 module_cmds_CXX=
18918 module_expsym_cmds_CXX=
18919 link_all_deplibs_CXX=unknown
18920 old_archive_cmds_CXX=$old_archive_cmds
18921 reload_flag_CXX=$reload_flag
18922 reload_cmds_CXX=$reload_cmds
18923 no_undefined_flag_CXX=
18924 whole_archive_flag_spec_CXX=
18925 enable_shared_with_static_runtimes_CXX=no
18927 # Source file extension for C++ test sources.
18928 ac_ext=cpp
18930 # Object file extension for compiled C++ test sources.
18931 objext=o
18932 objext_CXX=$objext
18934 # No sense in running all these tests if we already determined that
18935 # the CXX compiler isn't working. Some variables (like enable_shared)
18936 # are currently assumed to apply to all compilers on this platform,
18937 # and will be corrupted by setting them based on a non-working compiler.
18938 if test "$_lt_caught_CXX_error" != yes; then
18939 # Code to be used in simple compile tests
18940 lt_simple_compile_test_code="int some_variable = 0;"
18942 # Code to be used in simple link tests
18943 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18945 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18952 # If no C compiler was specified, use CC.
18953 LTCC=${LTCC-"$CC"}
18955 # If no C compiler flags were specified, use CFLAGS.
18956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18958 # Allow CC to be a program name with arguments.
18959 compiler=$CC
18962 # save warnings/boilerplate of simple test code
18963 ac_outfile=conftest.$ac_objext
18964 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18965 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18966 _lt_compiler_boilerplate=`cat conftest.err`
18967 $RM conftest*
18969 ac_outfile=conftest.$ac_objext
18970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18972 _lt_linker_boilerplate=`cat conftest.err`
18973 $RM -r conftest*
18976 # Allow CC to be a program name with arguments.
18977 lt_save_CC=$CC
18978 lt_save_LD=$LD
18979 lt_save_GCC=$GCC
18980 GCC=$GXX
18981 lt_save_with_gnu_ld=$with_gnu_ld
18982 lt_save_path_LD=$lt_cv_path_LD
18983 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18984 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18985 else
18986 $as_unset lt_cv_prog_gnu_ld
18988 if test -n "${lt_cv_path_LDCXX+set}"; then
18989 lt_cv_path_LD=$lt_cv_path_LDCXX
18990 else
18991 $as_unset lt_cv_path_LD
18993 test -z "${LDCXX+set}" || LD=$LDCXX
18994 CC=${CXX-"c++"}
18995 compiler=$CC
18996 compiler_CXX=$CC
18997 for cc_temp in $compiler""; do
18998 case $cc_temp in
18999 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19000 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19001 \-*) ;;
19002 *) break;;
19003 esac
19004 done
19005 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19008 if test -n "$compiler"; then
19009 # We don't want -fno-exception when compiling C++ code, so set the
19010 # no_builtin_flag separately
19011 if test "$GXX" = yes; then
19012 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19013 else
19014 lt_prog_compiler_no_builtin_flag_CXX=
19017 if test "$GXX" = yes; then
19018 # Set up default GNU C++ configuration
19022 # Check whether --with-gnu-ld was given.
19023 if test "${with_gnu_ld+set}" = set; then :
19024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19025 else
19026 with_gnu_ld=no
19029 ac_prog=ld
19030 if test "$GCC" = yes; then
19031 # Check if gcc -print-prog-name=ld gives a path.
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19033 $as_echo_n "checking for ld used by $CC... " >&6; }
19034 case $host in
19035 *-*-mingw*)
19036 # gcc leaves a trailing carriage return which upsets mingw
19037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19040 esac
19041 case $ac_prog in
19042 # Accept absolute paths.
19043 [\\/]* | ?:[\\/]*)
19044 re_direlt='/[^/][^/]*/\.\./'
19045 # Canonicalize the pathname of ld
19046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19049 done
19050 test -z "$LD" && LD="$ac_prog"
19053 # If it fails, then pretend we aren't using GCC.
19054 ac_prog=ld
19057 # If it is relative, then search for the first ld in PATH.
19058 with_gnu_ld=unknown
19060 esac
19061 elif test "$with_gnu_ld" = yes; then
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19063 $as_echo_n "checking for GNU ld... " >&6; }
19064 else
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19066 $as_echo_n "checking for non-GNU ld... " >&6; }
19068 if test "${lt_cv_path_LD+set}" = set; then :
19069 $as_echo_n "(cached) " >&6
19070 else
19071 if test -z "$LD"; then
19072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19073 for ac_dir in $PATH; do
19074 IFS="$lt_save_ifs"
19075 test -z "$ac_dir" && ac_dir=.
19076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19077 lt_cv_path_LD="$ac_dir/$ac_prog"
19078 # Check to see if the program is GNU ld. I'd rather use --version,
19079 # but apparently some variants of GNU ld only accept -v.
19080 # Break only if it was the GNU/non-GNU ld that we prefer.
19081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19082 *GNU* | *'with BFD'*)
19083 test "$with_gnu_ld" != no && break
19086 test "$with_gnu_ld" != yes && break
19088 esac
19090 done
19091 IFS="$lt_save_ifs"
19092 else
19093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19097 LD="$lt_cv_path_LD"
19098 if test -n "$LD"; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19100 $as_echo "$LD" >&6; }
19101 else
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19105 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19108 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19109 $as_echo_n "(cached) " >&6
19110 else
19111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19112 case `$LD -v 2>&1 </dev/null` in
19113 *GNU* | *'with BFD'*)
19114 lt_cv_prog_gnu_ld=yes
19117 lt_cv_prog_gnu_ld=no
19119 esac
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19123 with_gnu_ld=$lt_cv_prog_gnu_ld
19131 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19132 # archiving commands below assume that GNU ld is being used.
19133 if test "$with_gnu_ld" = yes; then
19134 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19135 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'
19137 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19138 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19140 # If archive_cmds runs LD, not CC, wlarc should be empty
19141 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19142 # investigate it a little bit more. (MM)
19143 wlarc='${wl}'
19145 # ancient GNU ld didn't support --whole-archive et. al.
19146 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19147 $GREP 'no-whole-archive' > /dev/null; then
19148 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19149 else
19150 whole_archive_flag_spec_CXX=
19152 else
19153 with_gnu_ld=no
19154 wlarc=
19156 # A generic and very simple default shared library creation
19157 # command for GNU C++ for the case where it uses the native
19158 # linker, instead of GNU ld. If possible, this setting should
19159 # overridden to take advantage of the native linker features on
19160 # the platform it is being used on.
19161 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
19167 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19169 else
19170 GXX=no
19171 with_gnu_ld=no
19172 wlarc=
19175 # PORTME: fill in a description of your system's C++ link characteristics
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19178 ld_shlibs_CXX=yes
19179 case $host_os in
19180 aix3*)
19181 # FIXME: insert proper C++ library support
19182 ld_shlibs_CXX=no
19184 aix[4-9]*)
19185 if test "$host_cpu" = ia64; then
19186 # On IA64, the linker does run time linking by default, so we don't
19187 # have to do anything special.
19188 aix_use_runtimelinking=no
19189 exp_sym_flag='-Bexport'
19190 no_entry_flag=""
19191 else
19192 aix_use_runtimelinking=no
19194 # Test if we are trying to use run time linking or normal
19195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19196 # need to do runtime linking.
19197 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19198 for ld_flag in $LDFLAGS; do
19199 case $ld_flag in
19200 *-brtl*)
19201 aix_use_runtimelinking=yes
19202 break
19204 esac
19205 done
19207 esac
19209 exp_sym_flag='-bexport'
19210 no_entry_flag='-bnoentry'
19213 # When large executables or shared objects are built, AIX ld can
19214 # have problems creating the table of contents. If linking a library
19215 # or program results in "error TOC overflow" add -mminimal-toc to
19216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19219 archive_cmds_CXX=''
19220 hardcode_direct_CXX=yes
19221 hardcode_direct_absolute_CXX=yes
19222 hardcode_libdir_separator_CXX=':'
19223 link_all_deplibs_CXX=yes
19224 file_list_spec_CXX='${wl}-f,'
19226 if test "$GXX" = yes; then
19227 case $host_os in aix4.[012]|aix4.[012].*)
19228 # We only want to do this on AIX 4.2 and lower, the check
19229 # below for broken collect2 doesn't work under 4.3+
19230 collect2name=`${CC} -print-prog-name=collect2`
19231 if test -f "$collect2name" &&
19232 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19233 then
19234 # We have reworked collect2
19236 else
19237 # We have old collect2
19238 hardcode_direct_CXX=unsupported
19239 # It fails to find uninstalled libraries when the uninstalled
19240 # path is not listed in the libpath. Setting hardcode_minus_L
19241 # to unsupported forces relinking
19242 hardcode_minus_L_CXX=yes
19243 hardcode_libdir_flag_spec_CXX='-L$libdir'
19244 hardcode_libdir_separator_CXX=
19246 esac
19247 shared_flag='-shared'
19248 if test "$aix_use_runtimelinking" = yes; then
19249 shared_flag="$shared_flag "'${wl}-G'
19251 else
19252 # not using gcc
19253 if test "$host_cpu" = ia64; then
19254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19255 # chokes on -Wl,-G. The following line is correct:
19256 shared_flag='-G'
19257 else
19258 if test "$aix_use_runtimelinking" = yes; then
19259 shared_flag='${wl}-G'
19260 else
19261 shared_flag='${wl}-bM:SRE'
19266 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19267 # It seems that -bexpall does not export symbols beginning with
19268 # underscore (_), so it is better to generate a list of symbols to
19269 # export.
19270 always_export_symbols_CXX=yes
19271 if test "$aix_use_runtimelinking" = yes; then
19272 # Warning - without using the other runtime loading flags (-brtl),
19273 # -berok will link without error, but may produce a broken library.
19274 allow_undefined_flag_CXX='-berok'
19275 # Determine the default libpath from the value encoded in an empty
19276 # executable.
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19281 main ()
19285 return 0;
19287 _ACEOF
19288 if ac_fn_cxx_try_link "$LINENO"; then :
19290 lt_aix_libpath_sed='
19291 /Import File Strings/,/^$/ {
19292 /^0/ {
19293 s/^0 *\(.*\)$/\1/
19297 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19298 # Check for a 64-bit object if we didn't find anything.
19299 if test -z "$aix_libpath"; then
19300 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19303 rm -f core conftest.err conftest.$ac_objext \
19304 conftest$ac_exeext conftest.$ac_ext
19305 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19307 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19309 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"
19310 else
19311 if test "$host_cpu" = ia64; then
19312 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19313 allow_undefined_flag_CXX="-z nodefs"
19314 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"
19315 else
19316 # Determine the default libpath from the value encoded in an
19317 # empty executable.
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19322 main ()
19326 return 0;
19328 _ACEOF
19329 if ac_fn_cxx_try_link "$LINENO"; then :
19331 lt_aix_libpath_sed='
19332 /Import File Strings/,/^$/ {
19333 /^0/ {
19334 s/^0 *\(.*\)$/\1/
19338 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19339 # Check for a 64-bit object if we didn't find anything.
19340 if test -z "$aix_libpath"; then
19341 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19344 rm -f core conftest.err conftest.$ac_objext \
19345 conftest$ac_exeext conftest.$ac_ext
19346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19348 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19349 # Warning - without using the other run time loading flags,
19350 # -berok will link without error, but may produce a broken library.
19351 no_undefined_flag_CXX=' ${wl}-bernotok'
19352 allow_undefined_flag_CXX=' ${wl}-berok'
19353 if test "$with_gnu_ld" = yes; then
19354 # We only use this code for GNU lds that support --whole-archive.
19355 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19356 else
19357 # Exported symbols can be pulled into shared objects from archives
19358 whole_archive_flag_spec_CXX='$convenience'
19360 archive_cmds_need_lc_CXX=yes
19361 # This is similar to how AIX traditionally builds its shared
19362 # libraries.
19363 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'
19368 beos*)
19369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19370 allow_undefined_flag_CXX=unsupported
19371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19372 # support --undefined. This deserves some investigation. FIXME
19373 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19374 else
19375 ld_shlibs_CXX=no
19379 chorus*)
19380 case $cc_basename in
19382 # FIXME: insert proper C++ library support
19383 ld_shlibs_CXX=no
19385 esac
19388 cygwin* | mingw* | pw32* | cegcc*)
19389 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19390 # as there is no search path for DLLs.
19391 hardcode_libdir_flag_spec_CXX='-L$libdir'
19392 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19393 allow_undefined_flag_CXX=unsupported
19394 always_export_symbols_CXX=no
19395 enable_shared_with_static_runtimes_CXX=yes
19397 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19398 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'
19399 # If the export-symbols file already is a .def file (1st line
19400 # is EXPORTS), use it as is; otherwise, prepend...
19401 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19402 cp $export_symbols $output_objdir/$soname.def;
19403 else
19404 echo EXPORTS > $output_objdir/$soname.def;
19405 cat $export_symbols >> $output_objdir/$soname.def;
19407 $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'
19408 else
19409 ld_shlibs_CXX=no
19412 darwin* | rhapsody*)
19415 archive_cmds_need_lc_CXX=no
19416 hardcode_direct_CXX=no
19417 hardcode_automatic_CXX=yes
19418 hardcode_shlibpath_var_CXX=unsupported
19419 if test "$lt_cv_ld_force_load" = "yes"; then
19420 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\"`'
19421 else
19422 whole_archive_flag_spec_CXX=''
19424 link_all_deplibs_CXX=yes
19425 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19426 case $cc_basename in
19427 ifort*) _lt_dar_can_shared=yes ;;
19428 *) _lt_dar_can_shared=$GCC ;;
19429 esac
19430 if test "$_lt_dar_can_shared" = "yes"; then
19431 output_verbose_link_cmd=func_echo_all
19432 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}"
19433 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19434 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}"
19435 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}"
19436 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19437 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}"
19438 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}"
19441 else
19442 ld_shlibs_CXX=no
19447 dgux*)
19448 case $cc_basename in
19449 ec++*)
19450 # FIXME: insert proper C++ library support
19451 ld_shlibs_CXX=no
19453 ghcx*)
19454 # Green Hills C++ Compiler
19455 # FIXME: insert proper C++ library support
19456 ld_shlibs_CXX=no
19459 # FIXME: insert proper C++ library support
19460 ld_shlibs_CXX=no
19462 esac
19465 freebsd2.*)
19466 # C++ shared libraries reported to be fairly broken before
19467 # switch to ELF
19468 ld_shlibs_CXX=no
19471 freebsd-elf*)
19472 archive_cmds_need_lc_CXX=no
19475 freebsd* | dragonfly*)
19476 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19477 # conventions
19478 ld_shlibs_CXX=yes
19481 gnu*)
19484 haiku*)
19485 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19486 link_all_deplibs_CXX=yes
19489 hpux9*)
19490 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19491 hardcode_libdir_separator_CXX=:
19492 export_dynamic_flag_spec_CXX='${wl}-E'
19493 hardcode_direct_CXX=yes
19494 hardcode_minus_L_CXX=yes # Not in the search PATH,
19495 # but as the default
19496 # location of the library.
19498 case $cc_basename in
19499 CC*)
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19503 aCC*)
19504 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'
19505 # Commands to make compiler produce verbose output that lists
19506 # what "hidden" libraries, object files and flags are used when
19507 # linking a shared library.
19509 # There doesn't appear to be a way to prevent this compiler from
19510 # explicitly linking system object files so we need to strip them
19511 # from the output so that they don't get included in the library
19512 # dependencies.
19513 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"'
19516 if test "$GXX" = yes; then
19517 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'
19518 else
19519 # FIXME: insert proper C++ library support
19520 ld_shlibs_CXX=no
19523 esac
19526 hpux10*|hpux11*)
19527 if test $with_gnu_ld = no; then
19528 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19529 hardcode_libdir_separator_CXX=:
19531 case $host_cpu in
19532 hppa*64*|ia64*)
19535 export_dynamic_flag_spec_CXX='${wl}-E'
19537 esac
19539 case $host_cpu in
19540 hppa*64*|ia64*)
19541 hardcode_direct_CXX=no
19542 hardcode_shlibpath_var_CXX=no
19545 hardcode_direct_CXX=yes
19546 hardcode_direct_absolute_CXX=yes
19547 hardcode_minus_L_CXX=yes # Not in the search PATH,
19548 # but as the default
19549 # location of the library.
19551 esac
19553 case $cc_basename in
19554 CC*)
19555 # FIXME: insert proper C++ library support
19556 ld_shlibs_CXX=no
19558 aCC*)
19559 case $host_cpu in
19560 hppa*64*)
19561 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19563 ia64*)
19564 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19567 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19569 esac
19570 # Commands to make compiler produce verbose output that lists
19571 # what "hidden" libraries, object files and flags are used when
19572 # linking a shared library.
19574 # There doesn't appear to be a way to prevent this compiler from
19575 # explicitly linking system object files so we need to strip them
19576 # from the output so that they don't get included in the library
19577 # dependencies.
19578 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"'
19581 if test "$GXX" = yes; then
19582 if test $with_gnu_ld = no; then
19583 case $host_cpu in
19584 hppa*64*)
19585 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19587 ia64*)
19588 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19591 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'
19593 esac
19595 else
19596 # FIXME: insert proper C++ library support
19597 ld_shlibs_CXX=no
19600 esac
19603 interix[3-9]*)
19604 hardcode_direct_CXX=no
19605 hardcode_shlibpath_var_CXX=no
19606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19607 export_dynamic_flag_spec_CXX='${wl}-E'
19608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19609 # Instead, shared libraries are loaded at an image base (0x10000000 by
19610 # default) and relocated if they conflict, which is a slow very memory
19611 # consuming and fragmenting process. To avoid this, we pick a random,
19612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19614 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'
19615 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'
19617 irix5* | irix6*)
19618 case $cc_basename in
19619 CC*)
19620 # SGI C++
19621 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'
19623 # Archives containing C++ object files must be created using
19624 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19625 # necessary to make sure instantiated templates are included
19626 # in the archive.
19627 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19630 if test "$GXX" = yes; then
19631 if test "$with_gnu_ld" = no; then
19632 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'
19633 else
19634 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'
19637 link_all_deplibs_CXX=yes
19639 esac
19640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19641 hardcode_libdir_separator_CXX=:
19642 inherit_rpath_CXX=yes
19645 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19646 case $cc_basename in
19647 KCC*)
19648 # Kuck and Associates, Inc. (KAI) C++ Compiler
19650 # KCC will only create a shared library if the output file
19651 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19652 # to its proper name (with version) after linking.
19653 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'
19654 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'
19655 # Commands to make compiler produce verbose output that lists
19656 # what "hidden" libraries, object files and flags are used when
19657 # linking a shared library.
19659 # There doesn't appear to be a way to prevent this compiler from
19660 # explicitly linking system object files so we need to strip them
19661 # from the output so that they don't get included in the library
19662 # dependencies.
19663 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"'
19665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19668 # Archives containing C++ object files must be created using
19669 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19670 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19672 icpc* | ecpc* )
19673 # Intel C++
19674 with_gnu_ld=yes
19675 # version 8.0 and above of icpc choke on multiply defined symbols
19676 # if we add $predep_objects and $postdep_objects, however 7.1 and
19677 # earlier do not add the objects themselves.
19678 case `$CC -V 2>&1` in
19679 *"Version 7."*)
19680 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19681 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'
19683 *) # Version 8.0 or newer
19684 tmp_idyn=
19685 case $host_cpu in
19686 ia64*) tmp_idyn=' -i_dynamic';;
19687 esac
19688 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19689 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'
19691 esac
19692 archive_cmds_need_lc_CXX=no
19693 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19695 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19697 pgCC* | pgcpp*)
19698 # Portland Group C++ compiler
19699 case `$CC -V` in
19700 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19701 prelink_cmds_CXX='tpldir=Template.dir~
19702 rm -rf $tpldir~
19703 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19704 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19705 old_archive_cmds_CXX='tpldir=Template.dir~
19706 rm -rf $tpldir~
19707 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19708 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19709 $RANLIB $oldlib'
19710 archive_cmds_CXX='tpldir=Template.dir~
19711 rm -rf $tpldir~
19712 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19713 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19714 archive_expsym_cmds_CXX='tpldir=Template.dir~
19715 rm -rf $tpldir~
19716 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19717 $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'
19719 *) # Version 6 and above use weak symbols
19720 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19721 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'
19723 esac
19725 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19726 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19727 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'
19729 cxx*)
19730 # Compaq C++
19731 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19732 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'
19734 runpath_var=LD_RUN_PATH
19735 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19736 hardcode_libdir_separator_CXX=:
19738 # Commands to make compiler produce verbose output that lists
19739 # what "hidden" libraries, object files and flags are used when
19740 # linking a shared library.
19742 # There doesn't appear to be a way to prevent this compiler from
19743 # explicitly linking system object files so we need to strip them
19744 # from the output so that they don't get included in the library
19745 # dependencies.
19746 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'
19748 xl* | mpixl* | bgxl*)
19749 # IBM XL 8.0 on PPC, with GNU ld
19750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19752 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19753 if test "x$supports_anon_versioning" = xyes; then
19754 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19756 echo "local: *; };" >> $output_objdir/$libname.ver~
19757 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19761 case `$CC -V 2>&1 | sed 5q` in
19762 *Sun\ C*)
19763 # Sun C++ 5.9
19764 no_undefined_flag_CXX=' -zdefs'
19765 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19766 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'
19767 hardcode_libdir_flag_spec_CXX='-R$libdir'
19768 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'
19769 compiler_needs_object_CXX=yes
19771 # Not sure whether something based on
19772 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19773 # would be better.
19774 output_verbose_link_cmd='func_echo_all'
19776 # Archives containing C++ object files must be created using
19777 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19778 # necessary to make sure instantiated templates are included
19779 # in the archive.
19780 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19782 esac
19784 esac
19787 lynxos*)
19788 # FIXME: insert proper C++ library support
19789 ld_shlibs_CXX=no
19792 m88k*)
19793 # FIXME: insert proper C++ library support
19794 ld_shlibs_CXX=no
19797 mvs*)
19798 case $cc_basename in
19799 cxx*)
19800 # FIXME: insert proper C++ library support
19801 ld_shlibs_CXX=no
19804 # FIXME: insert proper C++ library support
19805 ld_shlibs_CXX=no
19807 esac
19810 netbsd*)
19811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19812 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19813 wlarc=
19814 hardcode_libdir_flag_spec_CXX='-R$libdir'
19815 hardcode_direct_CXX=yes
19816 hardcode_shlibpath_var_CXX=no
19818 # Workaround some broken pre-1.5 toolchains
19819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19822 *nto* | *qnx*)
19823 ld_shlibs_CXX=yes
19826 openbsd2*)
19827 # C++ shared libraries are fairly broken
19828 ld_shlibs_CXX=no
19831 openbsd*)
19832 if test -f /usr/libexec/ld.so; then
19833 hardcode_direct_CXX=yes
19834 hardcode_shlibpath_var_CXX=no
19835 hardcode_direct_absolute_CXX=yes
19836 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19837 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19838 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19839 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19840 export_dynamic_flag_spec_CXX='${wl}-E'
19841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19843 output_verbose_link_cmd=func_echo_all
19844 else
19845 ld_shlibs_CXX=no
19849 osf3* | osf4* | osf5*)
19850 case $cc_basename in
19851 KCC*)
19852 # Kuck and Associates, Inc. (KAI) C++ Compiler
19854 # KCC will only create a shared library if the output file
19855 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19856 # to its proper name (with version) after linking.
19857 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'
19859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19860 hardcode_libdir_separator_CXX=:
19862 # Archives containing C++ object files must be created using
19863 # the KAI C++ compiler.
19864 case $host in
19865 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19866 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19867 esac
19869 RCC*)
19870 # Rational C++ 2.4.1
19871 # FIXME: insert proper C++ library support
19872 ld_shlibs_CXX=no
19874 cxx*)
19875 case $host in
19876 osf3*)
19877 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19878 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'
19879 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19882 allow_undefined_flag_CXX=' -expect_unresolved \*'
19883 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'
19884 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19885 echo "-hidden">> $lib.exp~
19886 $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~
19887 $RM $lib.exp'
19888 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19890 esac
19892 hardcode_libdir_separator_CXX=:
19894 # Commands to make compiler produce verbose output that lists
19895 # what "hidden" libraries, object files and flags are used when
19896 # linking a shared library.
19898 # There doesn't appear to be a way to prevent this compiler from
19899 # explicitly linking system object files so we need to strip them
19900 # from the output so that they don't get included in the library
19901 # dependencies.
19902 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"'
19905 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19907 case $host in
19908 osf3*)
19909 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'
19912 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'
19914 esac
19916 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19917 hardcode_libdir_separator_CXX=:
19919 # Commands to make compiler produce verbose output that lists
19920 # what "hidden" libraries, object files and flags are used when
19921 # linking a shared library.
19922 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19924 else
19925 # FIXME: insert proper C++ library support
19926 ld_shlibs_CXX=no
19929 esac
19932 psos*)
19933 # FIXME: insert proper C++ library support
19934 ld_shlibs_CXX=no
19937 sunos4*)
19938 case $cc_basename in
19939 CC*)
19940 # Sun C++ 4.x
19941 # FIXME: insert proper C++ library support
19942 ld_shlibs_CXX=no
19944 lcc*)
19945 # Lucid
19946 # FIXME: insert proper C++ library support
19947 ld_shlibs_CXX=no
19950 # FIXME: insert proper C++ library support
19951 ld_shlibs_CXX=no
19953 esac
19956 solaris*)
19957 case $cc_basename in
19958 CC*)
19959 # Sun C++ 4.2, 5.x and Centerline C++
19960 archive_cmds_need_lc_CXX=yes
19961 no_undefined_flag_CXX=' -zdefs'
19962 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19963 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19964 $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'
19966 hardcode_libdir_flag_spec_CXX='-R$libdir'
19967 hardcode_shlibpath_var_CXX=no
19968 case $host_os in
19969 solaris2.[0-5] | solaris2.[0-5].*) ;;
19971 # The compiler driver will combine and reorder linker options,
19972 # but understands `-z linker_flag'.
19973 # Supported since Solaris 2.6 (maybe 2.5.1?)
19974 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19976 esac
19977 link_all_deplibs_CXX=yes
19979 output_verbose_link_cmd='func_echo_all'
19981 # Archives containing C++ object files must be created using
19982 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19983 # necessary to make sure instantiated templates are included
19984 # in the archive.
19985 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19987 gcx*)
19988 # Green Hills C++ Compiler
19989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19991 # The C++ compiler must be used to create the archive.
19992 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19995 # GNU C++ compiler with Solaris linker
19996 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19997 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19998 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19999 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20000 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20001 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20003 # Commands to make compiler produce verbose output that lists
20004 # what "hidden" libraries, object files and flags are used when
20005 # linking a shared library.
20006 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20007 else
20008 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20009 # platform.
20010 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20011 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20012 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20014 # Commands to make compiler produce verbose output that lists
20015 # what "hidden" libraries, object files and flags are used when
20016 # linking a shared library.
20017 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20020 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20021 case $host_os in
20022 solaris2.[0-5] | solaris2.[0-5].*) ;;
20024 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20026 esac
20029 esac
20032 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20033 no_undefined_flag_CXX='${wl}-z,text'
20034 archive_cmds_need_lc_CXX=no
20035 hardcode_shlibpath_var_CXX=no
20036 runpath_var='LD_RUN_PATH'
20038 case $cc_basename in
20039 CC*)
20040 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20041 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20044 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20045 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20047 esac
20050 sysv5* | sco3.2v5* | sco5v6*)
20051 # Note: We can NOT use -z defs as we might desire, because we do not
20052 # link with -lc, and that would cause any symbols used from libc to
20053 # always be unresolved, which means just about no library would
20054 # ever link correctly. If we're not using GNU ld we use -z text
20055 # though, which does catch some bad symbols but isn't as heavy-handed
20056 # as -z defs.
20057 no_undefined_flag_CXX='${wl}-z,text'
20058 allow_undefined_flag_CXX='${wl}-z,nodefs'
20059 archive_cmds_need_lc_CXX=no
20060 hardcode_shlibpath_var_CXX=no
20061 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20062 hardcode_libdir_separator_CXX=':'
20063 link_all_deplibs_CXX=yes
20064 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20065 runpath_var='LD_RUN_PATH'
20067 case $cc_basename in
20068 CC*)
20069 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20070 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20071 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20072 '"$old_archive_cmds_CXX"
20073 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20074 '"$reload_cmds_CXX"
20077 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20078 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20080 esac
20083 tandem*)
20084 case $cc_basename in
20085 NCC*)
20086 # NonStop-UX NCC 3.20
20087 # FIXME: insert proper C++ library support
20088 ld_shlibs_CXX=no
20091 # FIXME: insert proper C++ library support
20092 ld_shlibs_CXX=no
20094 esac
20097 vxworks*)
20098 # FIXME: insert proper C++ library support
20099 ld_shlibs_CXX=no
20103 # FIXME: insert proper C++ library support
20104 ld_shlibs_CXX=no
20106 esac
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20109 $as_echo "$ld_shlibs_CXX" >&6; }
20110 test "$ld_shlibs_CXX" = no && can_build_shared=no
20112 GCC_CXX="$GXX"
20113 LD_CXX="$LD"
20115 ## CAVEAT EMPTOR:
20116 ## There is no encapsulation within the following macros, do not change
20117 ## the running order or otherwise move them around unless you know exactly
20118 ## what you are doing...
20119 # Dependencies to place before and after the object being linked:
20120 predep_objects_CXX=
20121 postdep_objects_CXX=
20122 predeps_CXX=
20123 postdeps_CXX=
20124 compiler_lib_search_path_CXX=
20126 cat > conftest.$ac_ext <<_LT_EOF
20127 class Foo
20129 public:
20130 Foo (void) { a = 0; }
20131 private:
20132 int a;
20134 _LT_EOF
20136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20137 (eval $ac_compile) 2>&5
20138 ac_status=$?
20139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20140 test $ac_status = 0; }; then
20141 # Parse the compiler output and extract the necessary
20142 # objects, libraries and library flags.
20144 # Sentinel used to keep track of whether or not we are before
20145 # the conftest object file.
20146 pre_test_object_deps_done=no
20148 for p in `eval "$output_verbose_link_cmd"`; do
20149 case $p in
20151 -L* | -R* | -l*)
20152 # Some compilers place space between "-{L,R}" and the path.
20153 # Remove the space.
20154 if test $p = "-L" ||
20155 test $p = "-R"; then
20156 prev=$p
20157 continue
20158 else
20159 prev=
20162 if test "$pre_test_object_deps_done" = no; then
20163 case $p in
20164 -L* | -R*)
20165 # Internal compiler library paths should come after those
20166 # provided the user. The postdeps already come after the
20167 # user supplied libs so there is no need to process them.
20168 if test -z "$compiler_lib_search_path_CXX"; then
20169 compiler_lib_search_path_CXX="${prev}${p}"
20170 else
20171 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20174 # The "-l" case would never come before the object being
20175 # linked, so don't bother handling this case.
20176 esac
20177 else
20178 if test -z "$postdeps_CXX"; then
20179 postdeps_CXX="${prev}${p}"
20180 else
20181 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20186 *.$objext)
20187 # This assumes that the test object file only shows up
20188 # once in the compiler output.
20189 if test "$p" = "conftest.$objext"; then
20190 pre_test_object_deps_done=yes
20191 continue
20194 if test "$pre_test_object_deps_done" = no; then
20195 if test -z "$predep_objects_CXX"; then
20196 predep_objects_CXX="$p"
20197 else
20198 predep_objects_CXX="$predep_objects_CXX $p"
20200 else
20201 if test -z "$postdep_objects_CXX"; then
20202 postdep_objects_CXX="$p"
20203 else
20204 postdep_objects_CXX="$postdep_objects_CXX $p"
20209 *) ;; # Ignore the rest.
20211 esac
20212 done
20214 # Clean up.
20215 rm -f a.out a.exe
20216 else
20217 echo "libtool.m4: error: problem compiling CXX test program"
20220 $RM -f confest.$objext
20222 # PORTME: override above test on systems where it is broken
20223 case $host_os in
20224 interix[3-9]*)
20225 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20226 # hack all around it, let's just trust "g++" to DTRT.
20227 predep_objects_CXX=
20228 postdep_objects_CXX=
20229 postdeps_CXX=
20232 linux*)
20233 case `$CC -V 2>&1 | sed 5q` in
20234 *Sun\ C*)
20235 # Sun C++ 5.9
20237 # The more standards-conforming stlport4 library is
20238 # incompatible with the Cstd library. Avoid specifying
20239 # it if it's in CXXFLAGS. Ignore libCrun as
20240 # -library=stlport4 depends on it.
20241 case " $CXX $CXXFLAGS " in
20242 *" -library=stlport4 "*)
20243 solaris_use_stlport4=yes
20245 esac
20247 if test "$solaris_use_stlport4" != yes; then
20248 postdeps_CXX='-library=Cstd -library=Crun'
20251 esac
20254 solaris*)
20255 case $cc_basename in
20256 CC*)
20257 # The more standards-conforming stlport4 library is
20258 # incompatible with the Cstd library. Avoid specifying
20259 # it if it's in CXXFLAGS. Ignore libCrun as
20260 # -library=stlport4 depends on it.
20261 case " $CXX $CXXFLAGS " in
20262 *" -library=stlport4 "*)
20263 solaris_use_stlport4=yes
20265 esac
20267 # Adding this requires a known-good setup of shared libraries for
20268 # Sun compiler versions before 5.6, else PIC objects from an old
20269 # archive will be linked into the output, leading to subtle bugs.
20270 if test "$solaris_use_stlport4" != yes; then
20271 postdeps_CXX='-library=Cstd -library=Crun'
20274 esac
20276 esac
20279 case " $postdeps_CXX " in
20280 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20281 esac
20282 compiler_lib_search_dirs_CXX=
20283 if test -n "${compiler_lib_search_path_CXX}"; then
20284 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20317 lt_prog_compiler_wl_CXX=
20318 lt_prog_compiler_pic_CXX=
20319 lt_prog_compiler_static_CXX=
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20322 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20324 # C++ specific cases for pic, static, wl, etc.
20325 if test "$GXX" = yes; then
20326 lt_prog_compiler_wl_CXX='-Wl,'
20327 lt_prog_compiler_static_CXX='-static'
20329 case $host_os in
20330 aix*)
20331 # All AIX code is PIC.
20332 if test "$host_cpu" = ia64; then
20333 # AIX 5 now supports IA64 processor
20334 lt_prog_compiler_static_CXX='-Bstatic'
20336 lt_prog_compiler_pic_CXX='-fPIC'
20339 amigaos*)
20340 case $host_cpu in
20341 powerpc)
20342 # see comment about AmigaOS4 .so support
20343 lt_prog_compiler_pic_CXX='-fPIC'
20345 m68k)
20346 # FIXME: we need at least 68020 code to build shared libraries, but
20347 # adding the `-m68020' flag to GCC prevents building anything better,
20348 # like `-m68040'.
20349 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20351 esac
20354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20355 # PIC is the default for these OSes.
20357 mingw* | cygwin* | os2* | pw32* | cegcc*)
20358 # This hack is so that the source file can tell whether it is being
20359 # built for inclusion in a dll (and should export symbols for example).
20360 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20361 # (--disable-auto-import) libraries
20362 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20364 darwin* | rhapsody*)
20365 # PIC is the default on this platform
20366 # Common symbols not allowed in MH_DYLIB files
20367 lt_prog_compiler_pic_CXX='-fno-common'
20369 *djgpp*)
20370 # DJGPP does not support shared libraries at all
20371 lt_prog_compiler_pic_CXX=
20373 haiku*)
20374 # PIC is the default for Haiku.
20375 # The "-static" flag exists, but is broken.
20376 lt_prog_compiler_static_CXX=
20378 interix[3-9]*)
20379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20380 # Instead, we relocate shared libraries at runtime.
20382 sysv4*MP*)
20383 if test -d /usr/nec; then
20384 lt_prog_compiler_pic_CXX=-Kconform_pic
20387 hpux*)
20388 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20389 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20390 # sets the default TLS model and affects inlining.
20391 case $host_cpu in
20392 hppa*64*)
20395 lt_prog_compiler_pic_CXX='-fPIC'
20397 esac
20399 *qnx* | *nto*)
20400 # QNX uses GNU C++, but need to define -shared option too, otherwise
20401 # it will coredump.
20402 lt_prog_compiler_pic_CXX='-fPIC -shared'
20405 lt_prog_compiler_pic_CXX='-fPIC'
20407 esac
20408 else
20409 case $host_os in
20410 aix[4-9]*)
20411 # All AIX code is PIC.
20412 if test "$host_cpu" = ia64; then
20413 # AIX 5 now supports IA64 processor
20414 lt_prog_compiler_static_CXX='-Bstatic'
20415 else
20416 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20419 chorus*)
20420 case $cc_basename in
20421 cxch68*)
20422 # Green Hills C++ Compiler
20423 # _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"
20425 esac
20427 dgux*)
20428 case $cc_basename in
20429 ec++*)
20430 lt_prog_compiler_pic_CXX='-KPIC'
20432 ghcx*)
20433 # Green Hills C++ Compiler
20434 lt_prog_compiler_pic_CXX='-pic'
20438 esac
20440 freebsd* | dragonfly*)
20441 # FreeBSD uses GNU C++
20443 hpux9* | hpux10* | hpux11*)
20444 case $cc_basename in
20445 CC*)
20446 lt_prog_compiler_wl_CXX='-Wl,'
20447 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20448 if test "$host_cpu" != ia64; then
20449 lt_prog_compiler_pic_CXX='+Z'
20452 aCC*)
20453 lt_prog_compiler_wl_CXX='-Wl,'
20454 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20455 case $host_cpu in
20456 hppa*64*|ia64*)
20457 # +Z the default
20460 lt_prog_compiler_pic_CXX='+Z'
20462 esac
20466 esac
20468 interix*)
20469 # This is c89, which is MS Visual C++ (no shared libs)
20470 # Anyone wants to do a port?
20472 irix5* | irix6* | nonstopux*)
20473 case $cc_basename in
20474 CC*)
20475 lt_prog_compiler_wl_CXX='-Wl,'
20476 lt_prog_compiler_static_CXX='-non_shared'
20477 # CC pic flag -KPIC is the default.
20481 esac
20483 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20484 case $cc_basename in
20485 KCC*)
20486 # KAI C++ Compiler
20487 lt_prog_compiler_wl_CXX='--backend -Wl,'
20488 lt_prog_compiler_pic_CXX='-fPIC'
20490 ecpc* )
20491 # old Intel C++ for x86_64 which still supported -KPIC.
20492 lt_prog_compiler_wl_CXX='-Wl,'
20493 lt_prog_compiler_pic_CXX='-KPIC'
20494 lt_prog_compiler_static_CXX='-static'
20496 icpc* )
20497 # Intel C++, used to be incompatible with GCC.
20498 # ICC 10 doesn't accept -KPIC any more.
20499 lt_prog_compiler_wl_CXX='-Wl,'
20500 lt_prog_compiler_pic_CXX='-fPIC'
20501 lt_prog_compiler_static_CXX='-static'
20503 pgCC* | pgcpp*)
20504 # Portland Group C++ compiler
20505 lt_prog_compiler_wl_CXX='-Wl,'
20506 lt_prog_compiler_pic_CXX='-fpic'
20507 lt_prog_compiler_static_CXX='-Bstatic'
20509 cxx*)
20510 # Compaq C++
20511 # Make sure the PIC flag is empty. It appears that all Alpha
20512 # Linux and Compaq Tru64 Unix objects are PIC.
20513 lt_prog_compiler_pic_CXX=
20514 lt_prog_compiler_static_CXX='-non_shared'
20516 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20517 # IBM XL 8.0, 9.0 on PPC and BlueGene
20518 lt_prog_compiler_wl_CXX='-Wl,'
20519 lt_prog_compiler_pic_CXX='-qpic'
20520 lt_prog_compiler_static_CXX='-qstaticlink'
20523 case `$CC -V 2>&1 | sed 5q` in
20524 *Sun\ C*)
20525 # Sun C++ 5.9
20526 lt_prog_compiler_pic_CXX='-KPIC'
20527 lt_prog_compiler_static_CXX='-Bstatic'
20528 lt_prog_compiler_wl_CXX='-Qoption ld '
20530 esac
20532 esac
20534 lynxos*)
20536 m88k*)
20538 mvs*)
20539 case $cc_basename in
20540 cxx*)
20541 lt_prog_compiler_pic_CXX='-W c,exportall'
20545 esac
20547 netbsd*)
20549 *qnx* | *nto*)
20550 # QNX uses GNU C++, but need to define -shared option too, otherwise
20551 # it will coredump.
20552 lt_prog_compiler_pic_CXX='-fPIC -shared'
20554 osf3* | osf4* | osf5*)
20555 case $cc_basename in
20556 KCC*)
20557 lt_prog_compiler_wl_CXX='--backend -Wl,'
20559 RCC*)
20560 # Rational C++ 2.4.1
20561 lt_prog_compiler_pic_CXX='-pic'
20563 cxx*)
20564 # Digital/Compaq C++
20565 lt_prog_compiler_wl_CXX='-Wl,'
20566 # Make sure the PIC flag is empty. It appears that all Alpha
20567 # Linux and Compaq Tru64 Unix objects are PIC.
20568 lt_prog_compiler_pic_CXX=
20569 lt_prog_compiler_static_CXX='-non_shared'
20573 esac
20575 psos*)
20577 solaris*)
20578 case $cc_basename in
20579 CC*)
20580 # Sun C++ 4.2, 5.x and Centerline C++
20581 lt_prog_compiler_pic_CXX='-KPIC'
20582 lt_prog_compiler_static_CXX='-Bstatic'
20583 lt_prog_compiler_wl_CXX='-Qoption ld '
20585 gcx*)
20586 # Green Hills C++ Compiler
20587 lt_prog_compiler_pic_CXX='-PIC'
20591 esac
20593 sunos4*)
20594 case $cc_basename in
20595 CC*)
20596 # Sun C++ 4.x
20597 lt_prog_compiler_pic_CXX='-pic'
20598 lt_prog_compiler_static_CXX='-Bstatic'
20600 lcc*)
20601 # Lucid
20602 lt_prog_compiler_pic_CXX='-pic'
20606 esac
20608 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20609 case $cc_basename in
20610 CC*)
20611 lt_prog_compiler_wl_CXX='-Wl,'
20612 lt_prog_compiler_pic_CXX='-KPIC'
20613 lt_prog_compiler_static_CXX='-Bstatic'
20615 esac
20617 tandem*)
20618 case $cc_basename in
20619 NCC*)
20620 # NonStop-UX NCC 3.20
20621 lt_prog_compiler_pic_CXX='-KPIC'
20625 esac
20627 vxworks*)
20630 lt_prog_compiler_can_build_shared_CXX=no
20632 esac
20635 case $host_os in
20636 # For platforms which do not support PIC, -DPIC is meaningless:
20637 *djgpp*)
20638 lt_prog_compiler_pic_CXX=
20641 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20643 esac
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20645 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20650 # Check to make sure the PIC flag actually works.
20652 if test -n "$lt_prog_compiler_pic_CXX"; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20654 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20655 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20656 $as_echo_n "(cached) " >&6
20657 else
20658 lt_cv_prog_compiler_pic_works_CXX=no
20659 ac_outfile=conftest.$ac_objext
20660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20661 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20662 # Insert the option either (1) after the last *FLAGS variable, or
20663 # (2) before a word containing "conftest.", or (3) at the end.
20664 # Note that $ac_compile itself does not contain backslashes and begins
20665 # with a dollar sign (not a hyphen), so the echo should work correctly.
20666 # The option is referenced via a variable to avoid confusing sed.
20667 lt_compile=`echo "$ac_compile" | $SED \
20668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20670 -e 's:$: $lt_compiler_flag:'`
20671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20672 (eval "$lt_compile" 2>conftest.err)
20673 ac_status=$?
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 if (exit $ac_status) && test -s "$ac_outfile"; then
20677 # The compiler can only warn and ignore the option if not recognized
20678 # So say no if there are warnings other than the usual output.
20679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20681 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20682 lt_cv_prog_compiler_pic_works_CXX=yes
20685 $RM conftest*
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20689 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20691 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20692 case $lt_prog_compiler_pic_CXX in
20693 "" | " "*) ;;
20694 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20695 esac
20696 else
20697 lt_prog_compiler_pic_CXX=
20698 lt_prog_compiler_can_build_shared_CXX=no
20706 # Check to make sure the static flag actually works.
20708 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20710 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20711 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20712 $as_echo_n "(cached) " >&6
20713 else
20714 lt_cv_prog_compiler_static_works_CXX=no
20715 save_LDFLAGS="$LDFLAGS"
20716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20719 # The linker can only warn and ignore the option if not recognized
20720 # So say no if there are warnings
20721 if test -s conftest.err; then
20722 # Append any errors to the config.log.
20723 cat conftest.err 1>&5
20724 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20726 if diff conftest.exp conftest.er2 >/dev/null; then
20727 lt_cv_prog_compiler_static_works_CXX=yes
20729 else
20730 lt_cv_prog_compiler_static_works_CXX=yes
20733 $RM -r conftest*
20734 LDFLAGS="$save_LDFLAGS"
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20738 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20740 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20742 else
20743 lt_prog_compiler_static_CXX=
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20750 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20751 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20752 $as_echo_n "(cached) " >&6
20753 else
20754 lt_cv_prog_compiler_c_o_CXX=no
20755 $RM -r conftest 2>/dev/null
20756 mkdir conftest
20757 cd conftest
20758 mkdir out
20759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20761 lt_compiler_flag="-o out/conftest2.$ac_objext"
20762 # Insert the option either (1) after the last *FLAGS variable, or
20763 # (2) before a word containing "conftest.", or (3) at the end.
20764 # Note that $ac_compile itself does not contain backslashes and begins
20765 # with a dollar sign (not a hyphen), so the echo should work correctly.
20766 lt_compile=`echo "$ac_compile" | $SED \
20767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20769 -e 's:$: $lt_compiler_flag:'`
20770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20771 (eval "$lt_compile" 2>out/conftest.err)
20772 ac_status=$?
20773 cat out/conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20776 then
20777 # The compiler can only warn and ignore the option if not recognized
20778 # So say no if there are warnings
20779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20782 lt_cv_prog_compiler_c_o_CXX=yes
20785 chmod u+w . 2>&5
20786 $RM conftest*
20787 # SGI C++ compiler will create directory out/ii_files/ for
20788 # template instantiation
20789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20790 $RM out/* && rmdir out
20791 cd ..
20792 $RM -r conftest
20793 $RM conftest*
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20797 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20803 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20804 $as_echo_n "(cached) " >&6
20805 else
20806 lt_cv_prog_compiler_c_o_CXX=no
20807 $RM -r conftest 2>/dev/null
20808 mkdir conftest
20809 cd conftest
20810 mkdir out
20811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20813 lt_compiler_flag="-o out/conftest2.$ac_objext"
20814 # Insert the option either (1) after the last *FLAGS variable, or
20815 # (2) before a word containing "conftest.", or (3) at the end.
20816 # Note that $ac_compile itself does not contain backslashes and begins
20817 # with a dollar sign (not a hyphen), so the echo should work correctly.
20818 lt_compile=`echo "$ac_compile" | $SED \
20819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20821 -e 's:$: $lt_compiler_flag:'`
20822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20823 (eval "$lt_compile" 2>out/conftest.err)
20824 ac_status=$?
20825 cat out/conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20828 then
20829 # The compiler can only warn and ignore the option if not recognized
20830 # So say no if there are warnings
20831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20834 lt_cv_prog_compiler_c_o_CXX=yes
20837 chmod u+w . 2>&5
20838 $RM conftest*
20839 # SGI C++ compiler will create directory out/ii_files/ for
20840 # template instantiation
20841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20842 $RM out/* && rmdir out
20843 cd ..
20844 $RM -r conftest
20845 $RM conftest*
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20849 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20854 hard_links="nottested"
20855 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20856 # do not overwrite the value of need_locks provided by the user
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20858 $as_echo_n "checking if we can lock with hard links... " >&6; }
20859 hard_links=yes
20860 $RM conftest*
20861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20862 touch conftest.a
20863 ln conftest.a conftest.b 2>&5 || hard_links=no
20864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20866 $as_echo "$hard_links" >&6; }
20867 if test "$hard_links" = no; then
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20870 need_locks=warn
20872 else
20873 need_locks=no
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20879 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20881 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20882 case $host_os in
20883 aix[4-9]*)
20884 # If we're using GNU nm, then we don't want the "-C" option.
20885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20886 # Also, AIX nm treats weak defined symbols like other global defined
20887 # symbols, whereas GNU nm marks them as "W".
20888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20889 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'
20890 else
20891 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'
20894 pw32*)
20895 export_symbols_cmds_CXX="$ltdll_cmds"
20897 cygwin* | mingw* | cegcc*)
20898 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'
20901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20903 esac
20904 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20907 $as_echo "$ld_shlibs_CXX" >&6; }
20908 test "$ld_shlibs_CXX" = no && can_build_shared=no
20910 with_gnu_ld_CXX=$with_gnu_ld
20918 # Do we need to explicitly link libc?
20920 case "x$archive_cmds_need_lc_CXX" in
20921 x|xyes)
20922 # Assume -lc should be added
20923 archive_cmds_need_lc_CXX=yes
20925 if test "$enable_shared" = yes && test "$GCC" = yes; then
20926 case $archive_cmds_CXX in
20927 *'~'*)
20928 # FIXME: we may have to deal with multi-command sequences.
20930 '$CC '*)
20931 # Test whether the compiler implicitly links with -lc since on some
20932 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20933 # to ld, don't add -lc before -lgcc.
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20935 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20936 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20937 $as_echo_n "(cached) " >&6
20938 else
20939 $RM conftest*
20940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20943 (eval $ac_compile) 2>&5
20944 ac_status=$?
20945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20946 test $ac_status = 0; } 2>conftest.err; then
20947 soname=conftest
20948 lib=conftest
20949 libobjs=conftest.$ac_objext
20950 deplibs=
20951 wl=$lt_prog_compiler_wl_CXX
20952 pic_flag=$lt_prog_compiler_pic_CXX
20953 compiler_flags=-v
20954 linker_flags=-v
20955 verstring=
20956 output_objdir=.
20957 libname=conftest
20958 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20959 allow_undefined_flag_CXX=
20960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20961 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20962 ac_status=$?
20963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20964 test $ac_status = 0; }
20965 then
20966 lt_cv_archive_cmds_need_lc_CXX=no
20967 else
20968 lt_cv_archive_cmds_need_lc_CXX=yes
20970 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20971 else
20972 cat conftest.err 1>&5
20974 $RM conftest*
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20978 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20979 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20981 esac
20984 esac
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21050 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21052 library_names_spec=
21053 libname_spec='lib$name'
21054 soname_spec=
21055 shrext_cmds=".so"
21056 postinstall_cmds=
21057 postuninstall_cmds=
21058 finish_cmds=
21059 finish_eval=
21060 shlibpath_var=
21061 shlibpath_overrides_runpath=unknown
21062 version_type=none
21063 dynamic_linker="$host_os ld.so"
21064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21065 need_lib_prefix=unknown
21066 hardcode_into_libs=no
21068 # when you set need_version to no, make sure it does not cause -set_version
21069 # flags to be left without arguments
21070 need_version=unknown
21072 case $host_os in
21073 aix3*)
21074 version_type=linux
21075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21076 shlibpath_var=LIBPATH
21078 # AIX 3 has no versioning support, so we append a major version to the name.
21079 soname_spec='${libname}${release}${shared_ext}$major'
21082 aix[4-9]*)
21083 version_type=linux
21084 need_lib_prefix=no
21085 need_version=no
21086 hardcode_into_libs=yes
21087 if test "$host_cpu" = ia64; then
21088 # AIX 5 supports IA64
21089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21090 shlibpath_var=LD_LIBRARY_PATH
21091 else
21092 # With GCC up to 2.95.x, collect2 would create an import file
21093 # for dependence libraries. The import file would start with
21094 # the line `#! .'. This would cause the generated library to
21095 # depend on `.', always an invalid library. This was fixed in
21096 # development snapshots of GCC prior to 3.0.
21097 case $host_os in
21098 aix4 | aix4.[01] | aix4.[01].*)
21099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21100 echo ' yes '
21101 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21103 else
21104 can_build_shared=no
21107 esac
21108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21109 # soname into executable. Probably we can add versioning support to
21110 # collect2, so additional links can be useful in future.
21111 if test "$aix_use_runtimelinking" = yes; then
21112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21113 # instead of lib<name>.a to let people know that these are not
21114 # typical AIX shared libraries.
21115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21116 else
21117 # We preserve .a as extension for shared libraries through AIX4.2
21118 # and later when we are not doing run time linking.
21119 library_names_spec='${libname}${release}.a $libname.a'
21120 soname_spec='${libname}${release}${shared_ext}$major'
21122 shlibpath_var=LIBPATH
21126 amigaos*)
21127 case $host_cpu in
21128 powerpc)
21129 # Since July 2007 AmigaOS4 officially supports .so libraries.
21130 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21133 m68k)
21134 library_names_spec='$libname.ixlibrary $libname.a'
21135 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21136 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'
21138 esac
21141 beos*)
21142 library_names_spec='${libname}${shared_ext}'
21143 dynamic_linker="$host_os ld.so"
21144 shlibpath_var=LIBRARY_PATH
21147 bsdi[45]*)
21148 version_type=linux
21149 need_version=no
21150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21151 soname_spec='${libname}${release}${shared_ext}$major'
21152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21153 shlibpath_var=LD_LIBRARY_PATH
21154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21156 # the default ld.so.conf also contains /usr/contrib/lib and
21157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21158 # libtool to hard-code these into programs
21161 cygwin* | mingw* | pw32* | cegcc*)
21162 version_type=windows
21163 shrext_cmds=".dll"
21164 need_version=no
21165 need_lib_prefix=no
21167 case $GCC,$host_os in
21168 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21169 library_names_spec='$libname.dll.a'
21170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21171 postinstall_cmds='base_file=`basename \${file}`~
21172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21173 dldir=$destdir/`dirname \$dlpath`~
21174 test -d \$dldir || mkdir -p \$dldir~
21175 $install_prog $dir/$dlname \$dldir/$dlname~
21176 chmod a+x \$dldir/$dlname~
21177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21181 dlpath=$dir/\$dldll~
21182 $RM \$dlpath'
21183 shlibpath_overrides_runpath=yes
21185 case $host_os in
21186 cygwin*)
21187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21191 mingw* | cegcc*)
21192 # MinGW DLLs use traditional 'lib' prefix
21193 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21195 pw32*)
21196 # pw32 DLLs use 'pw' prefix rather than 'lib'
21197 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21199 esac
21203 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21205 esac
21206 dynamic_linker='Win32 ld.exe'
21207 # FIXME: first we should search . and the directory the executable is in
21208 shlibpath_var=PATH
21211 darwin* | rhapsody*)
21212 dynamic_linker="$host_os dyld"
21213 version_type=darwin
21214 need_lib_prefix=no
21215 need_version=no
21216 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21217 soname_spec='${libname}${release}${major}$shared_ext'
21218 shlibpath_overrides_runpath=yes
21219 shlibpath_var=DYLD_LIBRARY_PATH
21220 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21222 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21225 dgux*)
21226 version_type=linux
21227 need_lib_prefix=no
21228 need_version=no
21229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21230 soname_spec='${libname}${release}${shared_ext}$major'
21231 shlibpath_var=LD_LIBRARY_PATH
21234 freebsd* | dragonfly*)
21235 # DragonFly does not have aout. When/if they implement a new
21236 # versioning mechanism, adjust this.
21237 if test -x /usr/bin/objformat; then
21238 objformat=`/usr/bin/objformat`
21239 else
21240 case $host_os in
21241 freebsd[23].*) objformat=aout ;;
21242 *) objformat=elf ;;
21243 esac
21245 version_type=freebsd-$objformat
21246 case $version_type in
21247 freebsd-elf*)
21248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21249 need_version=no
21250 need_lib_prefix=no
21252 freebsd-*)
21253 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21254 need_version=yes
21256 esac
21257 shlibpath_var=LD_LIBRARY_PATH
21258 case $host_os in
21259 freebsd2.*)
21260 shlibpath_overrides_runpath=yes
21262 freebsd3.[01]* | freebsdelf3.[01]*)
21263 shlibpath_overrides_runpath=yes
21264 hardcode_into_libs=yes
21266 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21267 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21268 shlibpath_overrides_runpath=no
21269 hardcode_into_libs=yes
21271 *) # from 4.6 on, and DragonFly
21272 shlibpath_overrides_runpath=yes
21273 hardcode_into_libs=yes
21275 esac
21278 gnu*)
21279 version_type=linux
21280 need_lib_prefix=no
21281 need_version=no
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21283 soname_spec='${libname}${release}${shared_ext}$major'
21284 shlibpath_var=LD_LIBRARY_PATH
21285 hardcode_into_libs=yes
21288 haiku*)
21289 version_type=linux
21290 need_lib_prefix=no
21291 need_version=no
21292 dynamic_linker="$host_os runtime_loader"
21293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21294 soname_spec='${libname}${release}${shared_ext}$major'
21295 shlibpath_var=LIBRARY_PATH
21296 shlibpath_overrides_runpath=yes
21297 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21298 hardcode_into_libs=yes
21301 hpux9* | hpux10* | hpux11*)
21302 # Give a soname corresponding to the major version so that dld.sl refuses to
21303 # link against other versions.
21304 version_type=sunos
21305 need_lib_prefix=no
21306 need_version=no
21307 case $host_cpu in
21308 ia64*)
21309 shrext_cmds='.so'
21310 hardcode_into_libs=yes
21311 dynamic_linker="$host_os dld.so"
21312 shlibpath_var=LD_LIBRARY_PATH
21313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21315 soname_spec='${libname}${release}${shared_ext}$major'
21316 if test "X$HPUX_IA64_MODE" = X32; then
21317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21318 else
21319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21323 hppa*64*)
21324 shrext_cmds='.sl'
21325 hardcode_into_libs=yes
21326 dynamic_linker="$host_os dld.sl"
21327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21330 soname_spec='${libname}${release}${shared_ext}$major'
21331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21335 shrext_cmds='.sl'
21336 dynamic_linker="$host_os dld.sl"
21337 shlibpath_var=SHLIB_PATH
21338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
21342 esac
21343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21344 postinstall_cmds='chmod 555 $lib'
21345 # or fails outright, so override atomically:
21346 install_override_mode=555
21349 interix[3-9]*)
21350 version_type=linux
21351 need_lib_prefix=no
21352 need_version=no
21353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21354 soname_spec='${libname}${release}${shared_ext}$major'
21355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21356 shlibpath_var=LD_LIBRARY_PATH
21357 shlibpath_overrides_runpath=no
21358 hardcode_into_libs=yes
21361 irix5* | irix6* | nonstopux*)
21362 case $host_os in
21363 nonstopux*) version_type=nonstopux ;;
21365 if test "$lt_cv_prog_gnu_ld" = yes; then
21366 version_type=linux
21367 else
21368 version_type=irix
21369 fi ;;
21370 esac
21371 need_lib_prefix=no
21372 need_version=no
21373 soname_spec='${libname}${release}${shared_ext}$major'
21374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21375 case $host_os in
21376 irix5* | nonstopux*)
21377 libsuff= shlibsuff=
21380 case $LD in # libtool.m4 will add one of these switches to LD
21381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21382 libsuff= shlibsuff= libmagic=32-bit;;
21383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21384 libsuff=32 shlibsuff=N32 libmagic=N32;;
21385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21387 *) libsuff= shlibsuff= libmagic=never-match;;
21388 esac
21390 esac
21391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21392 shlibpath_overrides_runpath=no
21393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21395 hardcode_into_libs=yes
21398 # No shared lib support for Linux oldld, aout, or coff.
21399 linux*oldld* | linux*aout* | linux*coff*)
21400 dynamic_linker=no
21403 # This must be Linux ELF.
21404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21405 version_type=linux
21406 need_lib_prefix=no
21407 need_version=no
21408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21409 soname_spec='${libname}${release}${shared_ext}$major'
21410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21411 shlibpath_var=LD_LIBRARY_PATH
21412 shlibpath_overrides_runpath=no
21414 # Some binutils ld are patched to set DT_RUNPATH
21415 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21416 $as_echo_n "(cached) " >&6
21417 else
21418 lt_cv_shlibpath_overrides_runpath=no
21419 save_LDFLAGS=$LDFLAGS
21420 save_libdir=$libdir
21421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21427 main ()
21431 return 0;
21433 _ACEOF
21434 if ac_fn_cxx_try_link "$LINENO"; then :
21435 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21436 lt_cv_shlibpath_overrides_runpath=yes
21439 rm -f core conftest.err conftest.$ac_objext \
21440 conftest$ac_exeext conftest.$ac_ext
21441 LDFLAGS=$save_LDFLAGS
21442 libdir=$save_libdir
21446 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21448 # This implies no fast_install, which is unacceptable.
21449 # Some rework will be needed to allow for fast_install
21450 # before this can be enabled.
21451 hardcode_into_libs=yes
21453 # Append ld.so.conf contents to the search path
21454 if test -f /etc/ld.so.conf; then
21455 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' ' '`
21456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21459 # We used to test for /lib/ld.so.1 and disable shared libraries on
21460 # powerpc, because MkLinux only supported shared libraries with the
21461 # GNU dynamic linker. Since this was broken with cross compilers,
21462 # most powerpc-linux boxes support dynamic linking these days and
21463 # people can always --disable-shared, the test was removed, and we
21464 # assume the GNU/Linux dynamic linker is in use.
21465 dynamic_linker='GNU/Linux ld.so'
21468 netbsd*)
21469 version_type=sunos
21470 need_lib_prefix=no
21471 need_version=no
21472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21475 dynamic_linker='NetBSD (a.out) ld.so'
21476 else
21477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21478 soname_spec='${libname}${release}${shared_ext}$major'
21479 dynamic_linker='NetBSD ld.elf_so'
21481 shlibpath_var=LD_LIBRARY_PATH
21482 shlibpath_overrides_runpath=yes
21483 hardcode_into_libs=yes
21486 newsos6)
21487 version_type=linux
21488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21489 shlibpath_var=LD_LIBRARY_PATH
21490 shlibpath_overrides_runpath=yes
21493 *nto* | *qnx*)
21494 version_type=qnx
21495 need_lib_prefix=no
21496 need_version=no
21497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21498 soname_spec='${libname}${release}${shared_ext}$major'
21499 shlibpath_var=LD_LIBRARY_PATH
21500 shlibpath_overrides_runpath=no
21501 hardcode_into_libs=yes
21502 dynamic_linker='ldqnx.so'
21505 openbsd*)
21506 version_type=sunos
21507 sys_lib_dlsearch_path_spec="/usr/lib"
21508 need_lib_prefix=no
21509 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21510 case $host_os in
21511 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21512 *) need_version=no ;;
21513 esac
21514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21516 shlibpath_var=LD_LIBRARY_PATH
21517 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21518 case $host_os in
21519 openbsd2.[89] | openbsd2.[89].*)
21520 shlibpath_overrides_runpath=no
21523 shlibpath_overrides_runpath=yes
21525 esac
21526 else
21527 shlibpath_overrides_runpath=yes
21531 os2*)
21532 libname_spec='$name'
21533 shrext_cmds=".dll"
21534 need_lib_prefix=no
21535 library_names_spec='$libname${shared_ext} $libname.a'
21536 dynamic_linker='OS/2 ld.exe'
21537 shlibpath_var=LIBPATH
21540 osf3* | osf4* | osf5*)
21541 version_type=osf
21542 need_lib_prefix=no
21543 need_version=no
21544 soname_spec='${libname}${release}${shared_ext}$major'
21545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21546 shlibpath_var=LD_LIBRARY_PATH
21547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21551 rdos*)
21552 dynamic_linker=no
21555 solaris*)
21556 version_type=linux
21557 need_lib_prefix=no
21558 need_version=no
21559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21560 soname_spec='${libname}${release}${shared_ext}$major'
21561 shlibpath_var=LD_LIBRARY_PATH
21562 shlibpath_overrides_runpath=yes
21563 hardcode_into_libs=yes
21564 # ldd complains unless libraries are executable
21565 postinstall_cmds='chmod +x $lib'
21568 sunos4*)
21569 version_type=sunos
21570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21571 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21572 shlibpath_var=LD_LIBRARY_PATH
21573 shlibpath_overrides_runpath=yes
21574 if test "$with_gnu_ld" = yes; then
21575 need_lib_prefix=no
21577 need_version=yes
21580 sysv4 | sysv4.3*)
21581 version_type=linux
21582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21583 soname_spec='${libname}${release}${shared_ext}$major'
21584 shlibpath_var=LD_LIBRARY_PATH
21585 case $host_vendor in
21586 sni)
21587 shlibpath_overrides_runpath=no
21588 need_lib_prefix=no
21589 runpath_var=LD_RUN_PATH
21591 siemens)
21592 need_lib_prefix=no
21594 motorola)
21595 need_lib_prefix=no
21596 need_version=no
21597 shlibpath_overrides_runpath=no
21598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21600 esac
21603 sysv4*MP*)
21604 if test -d /usr/nec ;then
21605 version_type=linux
21606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21607 soname_spec='$libname${shared_ext}.$major'
21608 shlibpath_var=LD_LIBRARY_PATH
21612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21613 version_type=freebsd-elf
21614 need_lib_prefix=no
21615 need_version=no
21616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21617 soname_spec='${libname}${release}${shared_ext}$major'
21618 shlibpath_var=LD_LIBRARY_PATH
21619 shlibpath_overrides_runpath=yes
21620 hardcode_into_libs=yes
21621 if test "$with_gnu_ld" = yes; then
21622 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21623 else
21624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21625 case $host_os in
21626 sco3.2v5*)
21627 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21629 esac
21631 sys_lib_dlsearch_path_spec='/usr/lib'
21634 tpf*)
21635 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21636 version_type=linux
21637 need_lib_prefix=no
21638 need_version=no
21639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640 shlibpath_var=LD_LIBRARY_PATH
21641 shlibpath_overrides_runpath=no
21642 hardcode_into_libs=yes
21645 uts4*)
21646 version_type=linux
21647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21648 soname_spec='${libname}${release}${shared_ext}$major'
21649 shlibpath_var=LD_LIBRARY_PATH
21653 dynamic_linker=no
21655 esac
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21657 $as_echo "$dynamic_linker" >&6; }
21658 test "$dynamic_linker" = no && can_build_shared=no
21660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21661 if test "$GCC" = yes; then
21662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21665 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21666 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21668 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21669 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21710 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21711 hardcode_action_CXX=
21712 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21713 test -n "$runpath_var_CXX" ||
21714 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21716 # We can hardcode non-existent directories.
21717 if test "$hardcode_direct_CXX" != no &&
21718 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21719 # have to relink, otherwise we might link with an installed library
21720 # when we should be linking with a yet-to-be-installed one
21721 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21722 test "$hardcode_minus_L_CXX" != no; then
21723 # Linking always hardcodes the temporary library directory.
21724 hardcode_action_CXX=relink
21725 else
21726 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21727 hardcode_action_CXX=immediate
21729 else
21730 # We cannot hardcode anything, or else we can only hardcode existing
21731 # directories.
21732 hardcode_action_CXX=unsupported
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21735 $as_echo "$hardcode_action_CXX" >&6; }
21737 if test "$hardcode_action_CXX" = relink ||
21738 test "$inherit_rpath_CXX" = yes; then
21739 # Fast installation is not supported
21740 enable_fast_install=no
21741 elif test "$shlibpath_overrides_runpath" = yes ||
21742 test "$enable_shared" = no; then
21743 # Fast installation is not necessary
21744 enable_fast_install=needless
21753 fi # test -n "$compiler"
21755 CC=$lt_save_CC
21756 LDCXX=$LD
21757 LD=$lt_save_LD
21758 GCC=$lt_save_GCC
21759 with_gnu_ld=$lt_save_with_gnu_ld
21760 lt_cv_path_LDCXX=$lt_cv_path_LD
21761 lt_cv_path_LD=$lt_save_path_LD
21762 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21763 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21764 fi # test "$_lt_caught_CXX_error" != yes
21766 ac_ext=cpp
21767 ac_cpp='$CXXCPP $CPPFLAGS'
21768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21787 # Only expand once:
21793 # Identify the assembler which will work hand-in-glove with the newly
21794 # built GCC, so that we can examine its features. This is the assembler
21795 # which will be driven by the driver program.
21797 # If build != host, and we aren't building gas in-tree, we identify a
21798 # build->target assembler and hope that it will have the same features
21799 # as the host->target assembler we'll be using.
21800 gcc_cv_gas_major_version=
21801 gcc_cv_gas_minor_version=
21802 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21804 if test "${gcc_cv_as+set}" = set; then :
21806 else
21808 if test -x "$DEFAULT_ASSEMBLER"; then
21809 gcc_cv_as="$DEFAULT_ASSEMBLER"
21810 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21811 && test -f ../gas/Makefile \
21812 && test x$build = x$host; then
21813 gcc_cv_as=../gas/as-new$build_exeext
21814 elif test -x as$build_exeext; then
21815 # Build using assembler in the current directory.
21816 gcc_cv_as=./as$build_exeext
21817 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21818 gcc_cv_as="$AS_FOR_TARGET"
21819 else
21820 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21821 set dummy $AS_FOR_TARGET; ac_word=$2
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21823 $as_echo_n "checking for $ac_word... " >&6; }
21824 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21826 else
21827 case $gcc_cv_as in
21828 [\\/]* | ?:[\\/]*)
21829 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21833 for as_dir in $PATH
21835 IFS=$as_save_IFS
21836 test -z "$as_dir" && as_dir=.
21837 for ac_exec_ext in '' $ac_executable_extensions; do
21838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21839 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21841 break 2
21843 done
21844 done
21845 IFS=$as_save_IFS
21848 esac
21850 gcc_cv_as=$ac_cv_path_gcc_cv_as
21851 if test -n "$gcc_cv_as"; then
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21853 $as_echo "$gcc_cv_as" >&6; }
21854 else
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21856 $as_echo "no" >&6; }
21863 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21865 case "$ORIGINAL_AS_FOR_TARGET" in
21866 ./as | ./as$build_exeext) ;;
21867 *) ac_config_files="$ac_config_files as:exec-tool.in"
21869 esac
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21872 $as_echo_n "checking what assembler to use... " >&6; }
21873 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21874 # Single tree build which includes gas. We want to prefer it
21875 # over whatever linker top-level may have detected, since
21876 # we'll use what we're building after installation anyway.
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21878 $as_echo "newly built gas" >&6; }
21879 in_tree_gas=yes
21880 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21881 for f in $gcc_cv_as_bfd_srcdir/configure \
21882 $gcc_cv_as_gas_srcdir/configure \
21883 $gcc_cv_as_gas_srcdir/configure.ac \
21884 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21885 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21886 if test x$gcc_cv_gas_version != x; then
21887 break
21889 done
21890 case $gcc_cv_gas_version in
21891 VERSION=[0-9]*) ;;
21892 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21893 esac
21894 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21895 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21896 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21897 case $gcc_cv_gas_patch_version in
21898 "") gcc_cv_gas_patch_version="0" ;;
21899 esac
21900 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21901 + $gcc_cv_gas_minor_version \) \* 1000 \
21902 + $gcc_cv_gas_patch_version`
21904 in_tree_gas_is_elf=no
21905 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21906 || (grep 'obj_format = multi' ../gas/Makefile \
21907 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21908 then
21909 in_tree_gas_is_elf=yes
21911 else
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21913 $as_echo "$gcc_cv_as" >&6; }
21914 in_tree_gas=no
21917 default_ld=
21918 # Check whether --enable-ld was given.
21919 if test "${enable_ld+set}" = set; then :
21920 enableval=$enable_ld; case "${enableval}" in
21922 default_ld=ld.gold
21924 esac
21928 install_gold_as_default=no
21929 # Check whether --enable-gold was given.
21930 if test "${enable_gold+set}" = set; then :
21931 enableval=$enable_gold; case "${enableval}" in
21932 default)
21933 install_gold_as_default=yes
21935 yes)
21936 if test x${default_ld} != x; then
21937 install_gold_as_default=yes
21943 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21945 esac
21949 # Identify the linker which will work hand-in-glove with the newly
21950 # built GCC, so that we can examine its features. This is the linker
21951 # which will be driven by the driver program.
21953 # If build != host, and we aren't building gas in-tree, we identify a
21954 # build->target linker and hope that it will have the same features
21955 # as the host->target linker we'll be using.
21956 gcc_cv_gld_major_version=
21957 gcc_cv_gld_minor_version=
21958 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21959 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21960 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21962 if test "${gcc_cv_ld+set}" = set; then :
21964 else
21966 if test -x "$DEFAULT_LINKER"; then
21967 gcc_cv_ld="$DEFAULT_LINKER"
21968 elif test $install_gold_as_default = yes \
21969 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21970 && test -f ../gold/Makefile \
21971 && test x$build = x$host; then
21972 gcc_cv_ld=../gold/ld-new$build_exeext
21973 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21974 && test -f ../ld/Makefile \
21975 && test x$build = x$host; then
21976 gcc_cv_ld=../ld/ld-new$build_exeext
21977 elif test -x collect-ld$build_exeext; then
21978 # Build using linker in the current directory.
21979 gcc_cv_ld=./collect-ld$build_exeext
21980 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21981 gcc_cv_ld="$LD_FOR_TARGET"
21982 else
21983 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21984 set dummy $LD_FOR_TARGET; ac_word=$2
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21986 $as_echo_n "checking for $ac_word... " >&6; }
21987 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21988 $as_echo_n "(cached) " >&6
21989 else
21990 case $gcc_cv_ld in
21991 [\\/]* | ?:[\\/]*)
21992 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21996 for as_dir in $PATH
21998 IFS=$as_save_IFS
21999 test -z "$as_dir" && as_dir=.
22000 for ac_exec_ext in '' $ac_executable_extensions; do
22001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22002 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22004 break 2
22006 done
22007 done
22008 IFS=$as_save_IFS
22011 esac
22013 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22014 if test -n "$gcc_cv_ld"; then
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22016 $as_echo "$gcc_cv_ld" >&6; }
22017 else
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22019 $as_echo "no" >&6; }
22026 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22027 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22028 # if the PLUGIN_LD is set ld-new, just have it as ld
22029 # as that is the installed named.
22030 if test x$PLUGIN_LD_SUFFIX = xld-new \
22031 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22032 PLUGIN_LD_SUFFIX=ld
22035 # Check whether --with-plugin-ld was given.
22036 if test "${with_plugin_ld+set}" = set; then :
22037 withval=$with_plugin_ld; if test x"$withval" != x; then
22038 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22039 PLUGIN_LD_SUFFIX="$withval"
22045 cat >>confdefs.h <<_ACEOF
22046 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22047 _ACEOF
22050 # Check to see if we are using gold instead of ld
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22052 $as_echo_n "checking whether we are using gold... " >&6; }
22053 ld_is_gold=no
22054 if test x$gcc_cv_ld != x; then
22055 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22056 | grep "GNU gold" > /dev/null; then
22057 ld_is_gold=yes
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22061 $as_echo "$ld_is_gold" >&6; }
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22064 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22065 # Check to see if default ld is not gold, but gold is
22066 # available and has support for split stack. If gcc was configured
22067 # with gold then no checking is done.
22069 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22071 # For platforms other than powerpc64*, enable as appropriate.
22073 gold_non_default=no
22074 ld_gold=`which ${gcc_cv_ld}.gold`
22075 # Make sure this gold has minimal split stack support
22076 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22077 ld_vers=`$ld_gold --version | sed 1q`
22078 gold_vers=`echo $ld_vers | sed -n \
22079 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22080 case $target in
22081 # check that the gold version contains the complete split stack support
22082 # on powerpc64 big and little endian
22083 powerpc64*-*-*)
22084 case "$gold_vers" in
22085 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22087 *) gold_non_default=no
22089 esac
22091 esac
22093 if test $gold_non_default = yes; then
22095 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22100 $as_echo "$gold_non_default" >&6; }
22102 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22104 case "$ORIGINAL_LD_FOR_TARGET" in
22105 ./collect-ld | ./collect-ld$build_exeext) ;;
22106 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22108 esac
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22111 $as_echo_n "checking what linker to use... " >&6; }
22112 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22113 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22114 # Single tree build which includes ld. We want to prefer it
22115 # over whatever linker top-level may have detected, since
22116 # we'll use what we're building after installation anyway.
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22118 $as_echo "newly built ld" >&6; }
22119 in_tree_ld=yes
22120 in_tree_ld_is_elf=no
22121 if (grep 'EMUL = .*elf' ../ld/Makefile \
22122 || grep 'EMUL = .*linux' ../ld/Makefile \
22123 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22124 in_tree_ld_is_elf=yes
22125 elif test "$ld_is_gold" = yes; then
22126 in_tree_ld_is_elf=yes
22128 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
22130 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22131 if test x$gcc_cv_gld_version != x; then
22132 break
22134 done
22135 case $gcc_cv_gld_version in
22136 VERSION=[0-9]*) ;;
22137 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22138 esac
22139 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22140 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22141 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22142 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22143 else
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22145 $as_echo "$gcc_cv_ld" >&6; }
22146 in_tree_ld=no
22147 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22148 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22149 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22155 # Figure out what nm we will be using.
22156 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22157 if test "${gcc_cv_nm+set}" = set; then :
22159 else
22161 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22162 && test -f ../binutils/Makefile \
22163 && test x$build = x$host; then
22164 gcc_cv_nm=../binutils/nm-new$build_exeext
22165 elif test -x nm$build_exeext; then
22166 gcc_cv_nm=./nm$build_exeext
22167 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22168 gcc_cv_nm="$NM_FOR_TARGET"
22169 else
22170 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22171 set dummy $NM_FOR_TARGET; ac_word=$2
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22173 $as_echo_n "checking for $ac_word... " >&6; }
22174 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22175 $as_echo_n "(cached) " >&6
22176 else
22177 case $gcc_cv_nm in
22178 [\\/]* | ?:[\\/]*)
22179 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22183 for as_dir in $PATH
22185 IFS=$as_save_IFS
22186 test -z "$as_dir" && as_dir=.
22187 for ac_exec_ext in '' $ac_executable_extensions; do
22188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22189 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22191 break 2
22193 done
22194 done
22195 IFS=$as_save_IFS
22198 esac
22200 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22201 if test -n "$gcc_cv_nm"; then
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22203 $as_echo "$gcc_cv_nm" >&6; }
22204 else
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22206 $as_echo "no" >&6; }
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22214 $as_echo_n "checking what nm to use... " >&6; }
22215 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22216 # Single tree build which includes binutils.
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22218 $as_echo "newly built nm" >&6; }
22219 in_tree_nm=yes
22220 else
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22222 $as_echo "$gcc_cv_nm" >&6; }
22223 in_tree_nm=no
22226 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22228 case "$ORIGINAL_NM_FOR_TARGET" in
22229 ./nm | ./nm$build_exeext) ;;
22230 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22232 esac
22235 # Figure out what objdump we will be using.
22236 if test "${gcc_cv_objdump+set}" = set; then :
22238 else
22240 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22241 && test -f ../binutils/Makefile \
22242 && test x$build = x$host; then
22243 # Single tree build which includes binutils.
22244 gcc_cv_objdump=../binutils/objdump$build_exeext
22245 elif test -x objdump$build_exeext; then
22246 gcc_cv_objdump=./objdump$build_exeext
22247 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22248 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22249 else
22250 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22251 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22253 $as_echo_n "checking for $ac_word... " >&6; }
22254 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22256 else
22257 case $gcc_cv_objdump in
22258 [\\/]* | ?:[\\/]*)
22259 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22263 for as_dir in $PATH
22265 IFS=$as_save_IFS
22266 test -z "$as_dir" && as_dir=.
22267 for ac_exec_ext in '' $ac_executable_extensions; do
22268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22269 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22271 break 2
22273 done
22274 done
22275 IFS=$as_save_IFS
22278 esac
22280 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22281 if test -n "$gcc_cv_objdump"; then
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22283 $as_echo "$gcc_cv_objdump" >&6; }
22284 else
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22286 $as_echo "no" >&6; }
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22294 $as_echo_n "checking what objdump to use... " >&6; }
22295 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22296 # Single tree build which includes binutils.
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22298 $as_echo "newly built objdump" >&6; }
22299 elif test x$gcc_cv_objdump = x; then
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22301 $as_echo "not found" >&6; }
22302 else
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22304 $as_echo "$gcc_cv_objdump" >&6; }
22307 # Figure out what readelf we will be using.
22308 if test "${gcc_cv_readelf+set}" = set; then :
22310 else
22312 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22313 && test -f ../binutils/Makefile \
22314 && test x$build = x$host; then
22315 # Single tree build which includes binutils.
22316 gcc_cv_readelf=../binutils/readelf$build_exeext
22317 elif test -x readelf$build_exeext; then
22318 gcc_cv_readelf=./readelf$build_exeext
22319 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22320 gcc_cv_readelf="$READELF_FOR_TARGET"
22321 else
22322 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22323 set dummy $READELF_FOR_TARGET; ac_word=$2
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22325 $as_echo_n "checking for $ac_word... " >&6; }
22326 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22327 $as_echo_n "(cached) " >&6
22328 else
22329 case $gcc_cv_readelf in
22330 [\\/]* | ?:[\\/]*)
22331 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22335 for as_dir in $PATH
22337 IFS=$as_save_IFS
22338 test -z "$as_dir" && as_dir=.
22339 for ac_exec_ext in '' $ac_executable_extensions; do
22340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22341 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22343 break 2
22345 done
22346 done
22347 IFS=$as_save_IFS
22350 esac
22352 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22353 if test -n "$gcc_cv_readelf"; then
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22355 $as_echo "$gcc_cv_readelf" >&6; }
22356 else
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22358 $as_echo "no" >&6; }
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22366 $as_echo_n "checking what readelf to use... " >&6; }
22367 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22368 # Single tree build which includes binutils.
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22370 $as_echo "newly built readelf" >&6; }
22371 elif test x$gcc_cv_readelf = x; then
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22373 $as_echo "not found" >&6; }
22374 else
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22376 $as_echo "$gcc_cv_readelf" >&6; }
22379 # Figure out what assembler alignment features are present.
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22381 $as_echo_n "checking assembler flags... " >&6; }
22382 if test "${gcc_cv_as_flags+set}" = set; then :
22383 $as_echo_n "(cached) " >&6
22384 else
22385 case "$target" in
22386 i[34567]86-*-linux*)
22387 gcc_cv_as_flags=--32
22389 x86_64-*-linux-gnux32)
22390 gcc_cv_as_flags=--x32
22392 x86_64-*-linux*)
22393 gcc_cv_as_flags=--64
22395 powerpc*-*-darwin*)
22396 gcc_cv_as_flags="-arch ppc"
22399 gcc_cv_as_flags=" "
22401 esac
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22404 $as_echo "$gcc_cv_as_flags" >&6; }
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22407 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22408 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22409 $as_echo_n "(cached) " >&6
22410 else
22411 gcc_cv_as_balign_and_p2align=no
22412 if test $in_tree_gas = yes; then
22413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22414 then gcc_cv_as_balign_and_p2align=yes
22416 elif test x$gcc_cv_as != x; then
22417 $as_echo '.balign 4
22418 .p2align 2' > conftest.s
22419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22424 test $ac_status = 0; }; }
22425 then
22426 gcc_cv_as_balign_and_p2align=yes
22427 else
22428 echo "configure: failed program was" >&5
22429 cat conftest.s >&5
22431 rm -f conftest.o conftest.s
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22435 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22436 if test $gcc_cv_as_balign_and_p2align = yes; then
22438 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22444 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22445 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22446 $as_echo_n "(cached) " >&6
22447 else
22448 gcc_cv_as_max_skip_p2align=no
22449 if test $in_tree_gas = yes; then
22450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22451 then gcc_cv_as_max_skip_p2align=yes
22453 elif test x$gcc_cv_as != x; then
22454 $as_echo '.p2align 4,,7' > conftest.s
22455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22457 (eval $ac_try) 2>&5
22458 ac_status=$?
22459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22460 test $ac_status = 0; }; }
22461 then
22462 gcc_cv_as_max_skip_p2align=yes
22463 else
22464 echo "configure: failed program was" >&5
22465 cat conftest.s >&5
22467 rm -f conftest.o conftest.s
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22471 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22472 if test $gcc_cv_as_max_skip_p2align = yes; then
22474 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22480 $as_echo_n "checking assembler for .literal16... " >&6; }
22481 if test "${gcc_cv_as_literal16+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
22483 else
22484 gcc_cv_as_literal16=no
22485 if test $in_tree_gas = yes; then
22486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22487 then gcc_cv_as_literal16=yes
22489 elif test x$gcc_cv_as != x; then
22490 $as_echo '.literal16' > conftest.s
22491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22496 test $ac_status = 0; }; }
22497 then
22498 gcc_cv_as_literal16=yes
22499 else
22500 echo "configure: failed program was" >&5
22501 cat conftest.s >&5
22503 rm -f conftest.o conftest.s
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22507 $as_echo "$gcc_cv_as_literal16" >&6; }
22508 if test $gcc_cv_as_literal16 = yes; then
22510 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22516 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22517 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
22519 else
22520 gcc_cv_as_subsection_m1=no
22521 if test $in_tree_gas = yes; then
22522 if test $in_tree_gas_is_elf = yes \
22523 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22524 then gcc_cv_as_subsection_m1=yes
22526 elif test x$gcc_cv_as != x; then
22527 $as_echo 'conftest_label1: .word 0
22528 .subsection -1
22529 conftest_label2: .word 0
22530 .previous' > conftest.s
22531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22536 test $ac_status = 0; }; }
22537 then
22538 if test x$gcc_cv_nm != x; then
22539 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22540 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22541 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22542 then :
22543 else gcc_cv_as_subsection_m1=yes
22545 rm -f conftest.nm1 conftest.nm2
22547 else
22548 echo "configure: failed program was" >&5
22549 cat conftest.s >&5
22551 rm -f conftest.o conftest.s
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22555 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22556 if test $gcc_cv_as_subsection_m1 = yes; then
22558 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22564 $as_echo_n "checking assembler for .weak... " >&6; }
22565 if test "${gcc_cv_as_weak+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22567 else
22568 gcc_cv_as_weak=no
22569 if test $in_tree_gas = yes; then
22570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22571 then gcc_cv_as_weak=yes
22573 elif test x$gcc_cv_as != x; then
22574 $as_echo ' .weak foobar' > conftest.s
22575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22580 test $ac_status = 0; }; }
22581 then
22582 gcc_cv_as_weak=yes
22583 else
22584 echo "configure: failed program was" >&5
22585 cat conftest.s >&5
22587 rm -f conftest.o conftest.s
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22591 $as_echo "$gcc_cv_as_weak" >&6; }
22592 if test $gcc_cv_as_weak = yes; then
22594 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22600 $as_echo_n "checking assembler for .weakref... " >&6; }
22601 if test "${gcc_cv_as_weakref+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22603 else
22604 gcc_cv_as_weakref=no
22605 if test $in_tree_gas = yes; then
22606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22607 then gcc_cv_as_weakref=yes
22609 elif test x$gcc_cv_as != x; then
22610 $as_echo ' .weakref foobar, barfnot' > conftest.s
22611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22616 test $ac_status = 0; }; }
22617 then
22618 gcc_cv_as_weakref=yes
22619 else
22620 echo "configure: failed program was" >&5
22621 cat conftest.s >&5
22623 rm -f conftest.o conftest.s
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22627 $as_echo "$gcc_cv_as_weakref" >&6; }
22628 if test $gcc_cv_as_weakref = yes; then
22630 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22636 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22637 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22638 $as_echo_n "(cached) " >&6
22639 else
22640 gcc_cv_as_nsubspa_comdat=no
22641 if test $in_tree_gas = yes; then
22642 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22643 then gcc_cv_as_nsubspa_comdat=yes
22645 elif test x$gcc_cv_as != x; then
22646 $as_echo ' .SPACE $TEXT$
22647 .NSUBSPA $CODE$,COMDAT' > conftest.s
22648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22650 (eval $ac_try) 2>&5
22651 ac_status=$?
22652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22653 test $ac_status = 0; }; }
22654 then
22655 gcc_cv_as_nsubspa_comdat=yes
22656 else
22657 echo "configure: failed program was" >&5
22658 cat conftest.s >&5
22660 rm -f conftest.o conftest.s
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22664 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22665 if test $gcc_cv_as_nsubspa_comdat = yes; then
22667 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22672 # .hidden needs to be supported in both the assembler and the linker,
22673 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22674 # This is irritatingly difficult to feature test for; we have to check the
22675 # date string after the version number. If we've got an in-tree
22676 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22677 # to be safe.
22678 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22679 case "${target}" in
22680 *-*-aix*)
22681 conftest_s=' .globl foobar,hidden'
22684 conftest_s=' .hidden foobar
22685 foobar:'
22687 esac
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22689 $as_echo_n "checking assembler for .hidden... " >&6; }
22690 if test "${gcc_cv_as_hidden+set}" = set; then :
22691 $as_echo_n "(cached) " >&6
22692 else
22693 gcc_cv_as_hidden=no
22694 if test $in_tree_gas = yes; then
22695 if test $in_tree_gas_is_elf = yes \
22696 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22697 then gcc_cv_as_hidden=yes
22699 elif test x$gcc_cv_as != x; then
22700 $as_echo "$conftest_s" > conftest.s
22701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22703 (eval $ac_try) 2>&5
22704 ac_status=$?
22705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22706 test $ac_status = 0; }; }
22707 then
22708 gcc_cv_as_hidden=yes
22709 else
22710 echo "configure: failed program was" >&5
22711 cat conftest.s >&5
22713 rm -f conftest.o conftest.s
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22717 $as_echo "$gcc_cv_as_hidden" >&6; }
22720 case "${target}" in
22721 *-*-darwin*)
22722 # Darwin as has some visibility support, though with a different syntax.
22723 gcc_cv_as_hidden=yes
22725 esac
22727 # gnu_indirect_function type is an extension proposed at
22728 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22729 # selection of function implementation
22730 # Check whether --enable-gnu-indirect-function was given.
22731 if test "${enable_gnu_indirect_function+set}" = set; then :
22732 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22733 yes | no) ;;
22734 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22735 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22736 esac
22737 else
22738 enable_gnu_indirect_function="$default_gnu_indirect_function"
22742 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22744 cat >>confdefs.h <<_ACEOF
22745 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22746 _ACEOF
22750 if test $in_tree_ld != yes ; then
22751 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22752 if echo "$ld_ver" | grep GNU > /dev/null; then
22753 if test x"$ld_is_gold" = xyes; then
22754 # GNU gold --version looks like this:
22756 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22758 # We extract the binutils version which is more familiar and specific
22759 # than the gold version.
22760 ld_vers=`echo $ld_ver | sed -n \
22761 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22762 else
22763 # GNU ld --version looks like this:
22765 # GNU ld (GNU Binutils) 2.21.51.20110225
22766 ld_vers=`echo $ld_ver | sed -n \
22767 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22769 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'`
22770 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22771 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22772 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22773 else
22774 case "${target}" in
22775 *-*-solaris2*)
22776 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22777 # format.
22779 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22780 # /usr/ccs/bin/ld has been configured.
22781 ld_ver=`$gcc_cv_ld -V 2>&1`
22782 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22783 ld_vers=`echo $ld_ver | sed -n \
22784 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22785 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22786 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22789 esac
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22794 $as_echo_n "checking linker for .hidden support... " >&6; }
22795 if test "${gcc_cv_ld_hidden+set}" = set; then :
22796 $as_echo_n "(cached) " >&6
22797 else
22798 if test $in_tree_ld = yes ; then
22799 gcc_cv_ld_hidden=no
22800 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 \
22801 && test $in_tree_ld_is_elf = yes; then
22802 gcc_cv_ld_hidden=yes
22804 else
22805 gcc_cv_ld_hidden=yes
22806 if test x"$ld_is_gold" = xyes; then
22808 elif echo "$ld_ver" | grep GNU > /dev/null; then
22809 case "${target}" in
22810 mmix-knuth-mmixware)
22811 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22812 gcc_cv_ld_hidden=no
22814 esac
22815 if test 0"$ld_date" -lt 20020404; then
22816 if test -n "$ld_date"; then
22817 # If there was date string, but was earlier than 2002-04-04, fail
22818 gcc_cv_ld_hidden=no
22819 elif test -z "$ld_vers"; then
22820 # If there was no date string nor ld version number, something is wrong
22821 gcc_cv_ld_hidden=no
22822 else
22823 test -z "$ld_vers_patch" && ld_vers_patch=0
22824 if test "$ld_vers_major" -lt 2; then
22825 gcc_cv_ld_hidden=no
22826 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22827 gcc_cv_ld_hidden="no"
22828 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22829 gcc_cv_ld_hidden=no
22833 else
22834 case "${target}" in
22835 *-*-aix[789]*)
22836 gcc_cv_ld_hidden=yes
22838 *-*-darwin*)
22839 # Darwin ld has some visibility support.
22840 gcc_cv_ld_hidden=yes
22842 hppa64*-*-hpux* | ia64*-*-hpux*)
22843 gcc_cv_ld_hidden=yes
22845 *-*-solaris2.1[0-9]*)
22846 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22847 # .symbolic was only added in Solaris 9 12/02.
22848 gcc_cv_ld_hidden=yes
22851 gcc_cv_ld_hidden=no
22853 esac
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22858 $as_echo "$gcc_cv_ld_hidden" >&6; }
22859 libgcc_visibility=no
22862 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22863 libgcc_visibility=yes
22865 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22870 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22871 gcc_cv_ld_ro_rw_mix=unknown
22872 if test $in_tree_ld = yes ; then
22873 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 \
22874 && test $in_tree_ld_is_elf = yes; then
22875 gcc_cv_ld_ro_rw_mix=read-write
22877 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22878 echo '.section myfoosect, "a"' > conftest1.s
22879 echo '.section myfoosect, "aw"' > conftest2.s
22880 echo '.byte 1' >> conftest2.s
22881 echo '.section myfoosect, "a"' > conftest3.s
22882 echo '.byte 0' >> conftest3.s
22883 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22884 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22885 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22886 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22887 conftest2.o conftest3.o > /dev/null 2>&1; then
22888 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22889 | sed -e '/myfoosect/!d' -e N`
22890 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22891 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22892 gcc_cv_ld_ro_rw_mix=read-only
22893 else
22894 gcc_cv_ld_ro_rw_mix=read-write
22898 rm -f conftest.* conftest[123].*
22900 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22902 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22906 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22908 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22909 case "${target}" in
22910 *-*-solaris2*)
22912 # Solaris 2 ld -V output looks like this for a regular version:
22914 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22916 # but test versions add stuff at the end:
22918 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22920 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22921 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22922 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22923 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22924 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22925 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22928 esac
22931 # Check whether --enable-initfini-array was given.
22932 if test "${enable_initfini_array+set}" = set; then :
22933 enableval=$enable_initfini_array;
22934 else
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22937 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22938 if test "${gcc_cv_initfini_array+set}" = set; then :
22939 $as_echo_n "(cached) " >&6
22940 else
22941 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22942 case "${target}" in
22943 ia64-*)
22944 if test "$cross_compiling" = yes; then :
22945 gcc_cv_initfini_array=no
22946 else
22947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22948 /* end confdefs.h. */
22950 #ifndef __ELF__
22951 #error Not an ELF OS
22952 #endif
22953 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22954 if it can be used. */
22955 static int x = -1;
22956 int main (void) { return x; }
22957 int foo (void) { x = 0; }
22958 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22960 _ACEOF
22961 if ac_fn_cxx_try_run "$LINENO"; then :
22962 gcc_cv_initfini_array=yes
22963 else
22964 gcc_cv_initfini_array=no
22966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22967 conftest.$ac_objext conftest.beam conftest.$ac_ext
22971 gcc_cv_initfini_array=no
22972 if test $in_tree_ld = yes ; then
22973 if test "$gcc_cv_gld_major_version" -eq 2 \
22974 -a "$gcc_cv_gld_minor_version" -ge 22 \
22975 -o "$gcc_cv_gld_major_version" -gt 2 \
22976 && test $in_tree_ld_is_elf = yes; then
22977 gcc_cv_initfini_array=yes
22979 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22980 case $target:$gas in
22981 *:yes)
22982 sh_flags='"a"'
22983 sh_type='%progbits'
22985 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22986 sh_flags='"a"'
22987 sh_type='@progbits'
22989 sparc*-*-solaris2*:no)
22990 sh_flags='#alloc'
22991 sh_type='#progbits'
22992 sh_quote='"'
22994 esac
22995 case "$target:$gnu_ld" in
22996 *:yes)
22997 cat > conftest.s <<EOF
22998 .section .dtors,$sh_flags,$sh_type
22999 .balign 4
23000 .byte 'A', 'A', 'A', 'A'
23001 .section .ctors,$sh_flags,$sh_type
23002 .balign 4
23003 .byte 'B', 'B', 'B', 'B'
23004 .section .fini_array.65530,$sh_flags,$sh_type
23005 .balign 4
23006 .byte 'C', 'C', 'C', 'C'
23007 .section .init_array.65530,$sh_flags,$sh_type
23008 .balign 4
23009 .byte 'D', 'D', 'D', 'D'
23010 .section .dtors.64528,$sh_flags,$sh_type
23011 .balign 4
23012 .byte 'E', 'E', 'E', 'E'
23013 .section .ctors.64528,$sh_flags,$sh_type
23014 .balign 4
23015 .byte 'F', 'F', 'F', 'F'
23016 .section .fini_array.01005,$sh_flags,$sh_type
23017 .balign 4
23018 .byte 'G', 'G', 'G', 'G'
23019 .section .init_array.01005,$sh_flags,$sh_type
23020 .balign 4
23021 .byte 'H', 'H', 'H', 'H'
23022 .text
23023 .globl _start
23024 _start:
23026 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23027 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23028 && $gcc_cv_objdump -s -j .init_array conftest \
23029 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23030 && $gcc_cv_objdump -s -j .fini_array conftest \
23031 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23032 gcc_cv_initfini_array=yes
23035 *-*-solaris2*:no)
23036 # When Solaris ld added constructor priority support, it was
23037 # decided to only handle .init_array.N/.fini_array.N since
23038 # there was no need for backwards compatibility with
23039 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23040 # sections with correct execution order resp. to
23041 # .init_array/.fini_array, while gld merges them into
23042 # .init_array/.fini_array.
23043 cat > conftest.s <<EOF
23044 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23045 .align 4
23046 .byte 'C', 'C', 'C', 'C'
23047 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23048 .align 4
23049 .byte 'D', 'D', 'D', 'D'
23050 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23051 .align 4
23052 .byte 'G', 'G', 'G', 'G'
23053 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23054 .align 4
23055 .byte 'H', 'H', 'H', 'H'
23056 .text
23057 .globl _start
23058 _start:
23060 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23061 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23062 && $gcc_cv_objdump -s -j .init_array conftest \
23063 | grep HHHHDDDD > /dev/null 2>&1 \
23064 && $gcc_cv_objdump -s -j .fini_array conftest \
23065 | grep GGGGCCCC > /dev/null 2>&1; then
23066 gcc_cv_initfini_array=yes
23069 esac
23070 rm -f conftest conftest.*
23072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23073 /* end confdefs.h. */
23075 #ifndef __ELF__
23076 # error Not an ELF OS
23077 #endif
23078 #include <stdlib.h>
23079 #if defined __GLIBC_PREREQ
23080 # if __GLIBC_PREREQ (2, 4)
23081 # else
23082 # error GLIBC 2.4 required
23083 # endif
23084 #else
23085 # if defined __sun__ && defined __svr4__
23086 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23087 # else
23088 # error The C library not known to support .init_array/.fini_array
23089 # endif
23090 #endif
23092 _ACEOF
23093 if ac_fn_cxx_try_cpp "$LINENO"; then :
23095 else
23096 gcc_cv_initfini_array=no
23098 rm -f conftest.err conftest.$ac_ext;;
23099 esac
23100 else
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23102 $as_echo_n "checking cross compile... guessing... " >&6; }
23103 gcc_cv_initfini_array=no
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23107 $as_echo "$gcc_cv_initfini_array" >&6; }
23108 enable_initfini_array=$gcc_cv_initfini_array
23113 cat >>confdefs.h <<_ACEOF
23114 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23115 _ACEOF
23119 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23121 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23122 if test "${gcc_cv_as_leb128+set}" = set; then :
23123 $as_echo_n "(cached) " >&6
23124 else
23125 gcc_cv_as_leb128=no
23126 if test $in_tree_gas = yes; then
23127 if test $in_tree_gas_is_elf = yes \
23128 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23129 then gcc_cv_as_leb128=yes
23131 elif test x$gcc_cv_as != x; then
23132 $as_echo ' .data
23133 .uleb128 L2 - L1
23135 .uleb128 1280
23136 .sleb128 -1010
23137 L2:' > conftest.s
23138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23143 test $ac_status = 0; }; }
23144 then
23145 # GAS versions before 2.11 do not support uleb128,
23146 # despite appearing to.
23147 # ??? There exists an elf-specific test that will crash
23148 # the assembler. Perhaps it's better to figure out whether
23149 # arbitrary sections are supported and try the test.
23150 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23151 if echo "$as_ver" | grep GNU > /dev/null; then
23152 as_vers=`echo $as_ver | sed -n \
23153 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23154 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23155 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23156 if test $as_major -eq 2 && test $as_minor -lt 11
23157 then :
23158 else gcc_cv_as_leb128=yes
23161 else
23162 echo "configure: failed program was" >&5
23163 cat conftest.s >&5
23165 rm -f conftest.o conftest.s
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23169 $as_echo "$gcc_cv_as_leb128" >&6; }
23170 if test $gcc_cv_as_leb128 = yes; then
23172 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23175 if test $gcc_cv_as_leb128 != yes; then
23177 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23181 # Check if we have assembler support for unwind directives.
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23183 $as_echo_n "checking assembler for cfi directives... " >&6; }
23184 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23185 $as_echo_n "(cached) " >&6
23186 else
23187 gcc_cv_as_cfi_directive=no
23188 if test x$gcc_cv_as != x; then
23189 $as_echo ' .text
23190 .cfi_startproc
23191 .cfi_offset 0, 0
23192 .cfi_same_value 1
23193 .cfi_def_cfa 1, 2
23194 .cfi_escape 1, 2, 3, 4, 5
23195 .cfi_endproc' > conftest.s
23196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23198 (eval $ac_try) 2>&5
23199 ac_status=$?
23200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23201 test $ac_status = 0; }; }
23202 then
23203 case "$target" in
23204 *-*-solaris*)
23205 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23206 # read-only and read-write sections, we need to make sure that the
23207 # assembler used emits read-write .eh_frame sections.
23208 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23209 if test "x$gcc_cv_objdump" != x; then
23210 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23211 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23212 gcc_cv_as_cfi_directive=no
23213 else
23214 case "$target" in
23215 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23216 # On Solaris/x86, make sure that GCC and assembler agree on using
23217 # read-only .eh_frame sections for 64-bit.
23218 if test x$gas = xyes; then
23219 as_ix86_64_opt="--64"
23220 else
23221 as_ix86_64_opt="-xarch=amd64"
23223 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23224 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23225 sed -e /.eh_frame/!d -e N | \
23226 grep READONLY > /dev/null; then
23227 gcc_cv_as_cfi_directive=yes
23228 else
23229 gcc_cv_as_cfi_directive=no
23233 gcc_cv_as_cfi_directive=yes
23235 esac
23237 else
23238 # no objdump, err on the side of caution
23239 gcc_cv_as_cfi_directive=no
23241 else
23242 gcc_cv_as_cfi_directive=yes
23245 *-*-*)
23246 gcc_cv_as_cfi_directive=yes
23248 esac
23249 else
23250 echo "configure: failed program was" >&5
23251 cat conftest.s >&5
23253 rm -f conftest.o conftest.s
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23257 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23260 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23262 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23263 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23264 $as_echo_n "(cached) " >&6
23265 else
23266 gcc_cv_as_cfi_advance_working=no
23267 if test x$gcc_cv_as != x; then
23268 $as_echo ' .text
23269 .cfi_startproc
23270 .cfi_adjust_cfa_offset 64
23271 .skip 75040, 0
23272 .cfi_adjust_cfa_offset 128
23273 .cfi_endproc' > conftest.s
23274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23276 (eval $ac_try) 2>&5
23277 ac_status=$?
23278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23279 test $ac_status = 0; }; }
23280 then
23282 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23283 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23284 gcc_cv_as_cfi_advance_working=yes
23287 else
23288 echo "configure: failed program was" >&5
23289 cat conftest.s >&5
23291 rm -f conftest.o conftest.s
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23295 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23298 else
23299 # no objdump, err on the side of caution
23300 gcc_cv_as_cfi_advance_working=no
23304 cat >>confdefs.h <<_ACEOF
23305 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23306 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23307 _ACEOF
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23312 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23313 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23314 $as_echo_n "(cached) " >&6
23315 else
23316 gcc_cv_as_cfi_personality_directive=no
23317 if test x$gcc_cv_as != x; then
23318 $as_echo ' .text
23319 .cfi_startproc
23320 .cfi_personality 0, symbol
23321 .cfi_endproc' > conftest.s
23322 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23327 test $ac_status = 0; }; }
23328 then
23329 gcc_cv_as_cfi_personality_directive=yes
23330 else
23331 echo "configure: failed program was" >&5
23332 cat conftest.s >&5
23334 rm -f conftest.o conftest.s
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23338 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23342 cat >>confdefs.h <<_ACEOF
23343 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23344 then echo 1; else echo 0; fi`
23345 _ACEOF
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23349 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23350 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23351 $as_echo_n "(cached) " >&6
23352 else
23353 gcc_cv_as_cfi_sections_directive=no
23354 if test x$gcc_cv_as != x; then
23355 $as_echo ' .text
23356 .cfi_sections .debug_frame, .eh_frame
23357 .cfi_startproc
23358 .cfi_endproc' > conftest.s
23359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23361 (eval $ac_try) 2>&5
23362 ac_status=$?
23363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23364 test $ac_status = 0; }; }
23365 then
23366 case $target_os in
23367 win32 | pe | cygwin* | mingw32*)
23368 # Need to check that we generated the correct relocation for the
23369 # .debug_frame section. This was fixed for binutils 2.21.
23370 gcc_cv_as_cfi_sections_directive=no
23371 if test "x$gcc_cv_objdump" != x; then
23372 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23373 grep secrel > /dev/null; then
23374 gcc_cv_as_cfi_sections_directive=yes
23379 gcc_cv_as_cfi_sections_directive=yes
23381 esac
23382 else
23383 echo "configure: failed program was" >&5
23384 cat conftest.s >&5
23386 rm -f conftest.o conftest.s
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23390 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23395 cat >>confdefs.h <<_ACEOF
23396 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23397 then echo 1; else echo 0; fi`
23398 _ACEOF
23401 # GAS versions up to and including 2.11.0 may mis-optimize
23402 # .eh_frame data.
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23404 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23405 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23406 $as_echo_n "(cached) " >&6
23407 else
23408 gcc_cv_as_eh_frame=no
23409 if test $in_tree_gas = yes; then
23410 if test $in_tree_gas_is_elf = yes \
23411 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23412 then gcc_cv_as_eh_frame=yes
23414 elif test x$gcc_cv_as != x; then
23415 $as_echo ' .text
23416 .LFB1:
23417 .4byte 0
23418 .L1:
23419 .4byte 0
23420 .LFE1:
23421 .section .eh_frame,"aw",@progbits
23422 __FRAME_BEGIN__:
23423 .4byte .LECIE1-.LSCIE1
23424 .LSCIE1:
23425 .4byte 0x0
23426 .byte 0x1
23427 .ascii "z\0"
23428 .byte 0x1
23429 .byte 0x78
23430 .byte 0x1a
23431 .byte 0x0
23432 .byte 0x4
23433 .4byte 1
23434 .p2align 1
23435 .LECIE1:
23436 .LSFDE1:
23437 .4byte .LEFDE1-.LASFDE1
23438 .LASFDE1:
23439 .4byte .LASFDE1-__FRAME_BEGIN__
23440 .4byte .LFB1
23441 .4byte .LFE1-.LFB1
23442 .byte 0x4
23443 .4byte .LFE1-.LFB1
23444 .byte 0x4
23445 .4byte .L1-.LFB1
23446 .LEFDE1:' > conftest.s
23447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23452 test $ac_status = 0; }; }
23453 then
23454 cat > conftest.lit <<EOF
23455 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23456 0010 01000000 12000000 18000000 00000000 ................
23457 0020 08000000 04080000 0044 .........D
23459 cat > conftest.big <<EOF
23460 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23461 0010 00000001 00000012 00000018 00000000 ................
23462 0020 00000008 04000000 0844 .........D
23464 # If the assembler didn't choke, and we can objdump,
23465 # and we got the correct data, then succeed.
23466 # The text in the here-document typically retains its unix-style line
23467 # endings, while the output of objdump will use host line endings.
23468 # Therefore, use diff -b for the comparisons.
23469 if test x$gcc_cv_objdump != x \
23470 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23471 | tail -3 > conftest.got \
23472 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23473 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23474 then
23475 gcc_cv_as_eh_frame=yes
23476 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23481 test $ac_status = 0; }; }; then
23482 gcc_cv_as_eh_frame=buggy
23483 else
23484 # Uh oh, what do we do now?
23485 gcc_cv_as_eh_frame=no
23487 else
23488 echo "configure: failed program was" >&5
23489 cat conftest.s >&5
23491 rm -f conftest.o conftest.s
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23495 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23499 if test $gcc_cv_as_eh_frame = buggy; then
23501 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23506 $as_echo_n "checking assembler for section merging support... " >&6; }
23507 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23508 $as_echo_n "(cached) " >&6
23509 else
23510 gcc_cv_as_shf_merge=no
23511 if test $in_tree_gas = yes; then
23512 if test $in_tree_gas_is_elf = yes \
23513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23514 then gcc_cv_as_shf_merge=yes
23516 elif test x$gcc_cv_as != x; then
23517 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23523 test $ac_status = 0; }; }
23524 then
23525 gcc_cv_as_shf_merge=yes
23526 else
23527 echo "configure: failed program was" >&5
23528 cat conftest.s >&5
23530 rm -f conftest.o conftest.s
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23534 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23537 if test $gcc_cv_as_shf_merge = no; then
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23539 $as_echo_n "checking assembler for section merging support... " >&6; }
23540 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23541 $as_echo_n "(cached) " >&6
23542 else
23543 gcc_cv_as_shf_merge=no
23544 if test $in_tree_gas = yes; then
23545 if test $in_tree_gas_is_elf = yes \
23546 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23547 then gcc_cv_as_shf_merge=yes
23549 elif test x$gcc_cv_as != x; then
23550 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23551 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23553 (eval $ac_try) 2>&5
23554 ac_status=$?
23555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23556 test $ac_status = 0; }; }
23557 then
23558 gcc_cv_as_shf_merge=yes
23559 else
23560 echo "configure: failed program was" >&5
23561 cat conftest.s >&5
23563 rm -f conftest.o conftest.s
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23567 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23572 cat >>confdefs.h <<_ACEOF
23573 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23574 _ACEOF
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23578 $as_echo_n "checking assembler for stabs directive... " >&6; }
23579 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23581 else
23582 gcc_cv_as_stabs_directive=no
23583 if test x$gcc_cv_as != x; then
23584 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23587 (eval $ac_try) 2>&5
23588 ac_status=$?
23589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23590 test $ac_status = 0; }; }
23591 then
23592 gcc_cv_as_stabs_directive=yes
23593 else
23594 echo "configure: failed program was" >&5
23595 cat conftest.s >&5
23597 rm -f conftest.o conftest.s
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23601 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23602 if test $gcc_cv_as_stabs_directive = yes; then
23604 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23610 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23611 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23612 $as_echo_n "(cached) " >&6
23613 else
23614 gcc_cv_as_comdat_group=no
23615 if test $in_tree_gas = yes; then
23616 if test $in_tree_gas_is_elf = yes \
23617 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23618 then gcc_cv_as_comdat_group=yes
23620 elif test x$gcc_cv_as != x; then
23621 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23627 test $ac_status = 0; }; }
23628 then
23629 gcc_cv_as_comdat_group=yes
23630 else
23631 echo "configure: failed program was" >&5
23632 cat conftest.s >&5
23634 rm -f conftest.o conftest.s
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23638 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23641 if test $gcc_cv_as_comdat_group = yes; then
23642 gcc_cv_as_comdat_group_percent=no
23643 gcc_cv_as_comdat_group_group=no
23644 else
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23646 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23647 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23648 $as_echo_n "(cached) " >&6
23649 else
23650 gcc_cv_as_comdat_group_percent=no
23651 if test $in_tree_gas = yes; then
23652 if test $in_tree_gas_is_elf = yes \
23653 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23654 then gcc_cv_as_comdat_group_percent=yes
23656 elif test x$gcc_cv_as != x; then
23657 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23663 test $ac_status = 0; }; }
23664 then
23665 gcc_cv_as_comdat_group_percent=yes
23666 else
23667 echo "configure: failed program was" >&5
23668 cat conftest.s >&5
23670 rm -f conftest.o conftest.s
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23674 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23677 if test $gcc_cv_as_comdat_group_percent = yes; then
23678 gcc_cv_as_comdat_group_group=no
23679 else
23680 case "${target}" in
23681 # Sun as uses a completely different syntax.
23682 *-*-solaris2*)
23683 case "${target}" in
23684 sparc*-*-solaris2*)
23685 conftest_s='
23686 .group foo,".text%foo",#comdat
23687 .section ".text%foo", #alloc,#execinstr,#progbits
23688 .globl foo
23689 foo:
23692 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23693 conftest_s='
23694 .group foo,.text%foo,#comdat
23695 .section .text%foo, "ax", @progbits
23696 .globl foo
23697 foo:
23700 esac
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23702 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23703 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23704 $as_echo_n "(cached) " >&6
23705 else
23706 gcc_cv_as_comdat_group_group=no
23707 if test x$gcc_cv_as != x; then
23708 $as_echo "$conftest_s" > conftest.s
23709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23711 (eval $ac_try) 2>&5
23712 ac_status=$?
23713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23714 test $ac_status = 0; }; }
23715 then
23716 gcc_cv_as_comdat_group_group=yes
23717 else
23718 echo "configure: failed program was" >&5
23719 cat conftest.s >&5
23721 rm -f conftest.o conftest.s
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23725 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23729 esac
23730 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23731 gcc_cv_as_comdat_group_group=no
23735 if test x"$ld_is_gold" = xyes; then
23736 comdat_group=yes
23737 elif test $in_tree_ld = yes ; then
23738 comdat_group=no
23739 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 \
23740 && test $in_tree_ld_is_elf = yes; then
23741 comdat_group=yes
23743 elif echo "$ld_ver" | grep GNU > /dev/null; then
23744 comdat_group=yes
23745 if test 0"$ld_date" -lt 20050308; then
23746 if test -n "$ld_date"; then
23747 # If there was date string, but was earlier than 2005-03-08, fail
23748 comdat_group=no
23749 elif test "$ld_vers_major" -lt 2; then
23750 comdat_group=no
23751 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23752 comdat_group=no
23755 else
23756 case "${target}" in
23757 *-*-solaris2.1[1-9]*)
23758 comdat_group=no
23759 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23760 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23761 # version 1.688.
23763 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23764 # least ld version 1.2267.
23765 if test "$ld_vers_major" -gt 1; then
23766 comdat_group=yes
23767 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23768 comdat_group=yes
23769 elif test "$ld_vers_minor" -ge 2267; then
23770 comdat_group=yes
23774 # Assume linkers other than GNU ld don't support COMDAT group.
23775 comdat_group=no
23777 esac
23779 # Allow overriding the automatic COMDAT group tests above.
23780 # Check whether --enable-comdat was given.
23781 if test "${enable_comdat+set}" = set; then :
23782 enableval=$enable_comdat; comdat_group="$enable_comdat"
23785 if test $comdat_group = no; then
23786 gcc_cv_as_comdat_group=no
23787 gcc_cv_as_comdat_group_percent=no
23788 gcc_cv_as_comdat_group_group=no
23791 cat >>confdefs.h <<_ACEOF
23792 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23793 || test $gcc_cv_as_comdat_group_percent = yes \
23794 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23795 _ACEOF
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23799 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23800 if test "${gcc_cv_as_discriminator+set}" = set; then :
23801 $as_echo_n "(cached) " >&6
23802 else
23803 gcc_cv_as_discriminator=no
23804 if test $in_tree_gas = yes; then
23805 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23806 then gcc_cv_as_discriminator=yes
23808 elif test x$gcc_cv_as != x; then
23809 $as_echo ' .text
23810 .file 1 "conf.c"
23811 .loc 1 1 0 discriminator 1' > conftest.s
23812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23818 then
23819 gcc_cv_as_discriminator=yes
23820 else
23821 echo "configure: failed program was" >&5
23822 cat conftest.s >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23828 $as_echo "$gcc_cv_as_discriminator" >&6; }
23829 if test $gcc_cv_as_discriminator = yes; then
23831 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23836 # Thread-local storage - the check is heavily parameterized.
23837 conftest_s=
23838 tls_first_major=
23839 tls_first_minor=
23840 tls_as_opt=
23841 case "$target" in
23842 alpha*-*-*)
23843 conftest_s='
23844 .section ".tdata","awT",@progbits
23845 foo: .long 25
23846 .text
23847 ldq $27,__tls_get_addr($29) !literal!1
23848 lda $16,foo($29) !tlsgd!1
23849 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23850 ldq $27,__tls_get_addr($29) !literal!2
23851 lda $16,foo($29) !tlsldm!2
23852 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23853 ldq $1,foo($29) !gotdtprel
23854 ldah $2,foo($29) !dtprelhi
23855 lda $3,foo($2) !dtprello
23856 lda $4,foo($29) !dtprel
23857 ldq $1,foo($29) !gottprel
23858 ldah $2,foo($29) !tprelhi
23859 lda $3,foo($2) !tprello
23860 lda $4,foo($29) !tprel'
23861 tls_first_major=2
23862 tls_first_minor=13
23863 tls_as_opt=--fatal-warnings
23865 arc*-*-*)
23866 conftest_s='
23867 add_s r0,r0, @foo@tpoff'
23868 tls_first_major=2
23869 tls_first_minor=23
23871 cris-*-*|crisv32-*-*)
23872 conftest_s='
23873 .section ".tdata","awT",@progbits
23874 x: .long 25
23875 .text
23876 move.d x:IE,$r10
23877 nop'
23878 tls_first_major=2
23879 tls_first_minor=20
23880 tls_as_opt=--fatal-warnings
23882 frv*-*-*)
23883 conftest_s='
23884 .section ".tdata","awT",@progbits
23885 x: .long 25
23886 .text
23887 call #gettlsoff(x)'
23888 tls_first_major=2
23889 tls_first_minor=14
23891 hppa*-*-linux*)
23892 conftest_s='
23893 t1: .reg %r20
23894 t2: .reg %r21
23895 gp: .reg %r19
23896 .section ".tdata","awT",@progbits
23897 foo: .long 25
23898 .text
23899 .align 4
23900 addil LT%foo-$tls_gdidx$,gp
23901 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23902 b __tls_get_addr
23904 addil LT%foo-$tls_ldidx$,gp
23905 b __tls_get_addr
23906 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23907 addil LR%foo-$tls_dtpoff$,%ret0
23908 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23909 mfctl %cr27,%t1
23910 addil LT%foo-$tls_ieoff$,gp
23911 ldw RT%foo-$tls_ieoff$(%r1),%t2
23912 add %t1,%t2,%t3
23913 mfctl %cr27,%t1
23914 addil LR%foo-$tls_leoff$,%t1
23915 ldo RR%foo-$tls_leoff$(%r1),%t2'
23916 tls_first_major=2
23917 tls_first_minor=15
23918 tls_as_opt=--fatal-warnings
23920 arm*-*-*)
23921 conftest_s='
23922 .section ".tdata","awT",%progbits
23923 foo: .long 25
23924 .text
23925 .word foo(gottpoff)
23926 .word foo(tpoff)
23927 .word foo(tlsgd)
23928 .word foo(tlsldm)
23929 .word foo(tlsldo)'
23930 tls_first_major=2
23931 tls_first_minor=17
23933 i[34567]86-*-* | x86_64-*-*)
23934 case "$target" in
23935 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23936 on_solaris=yes
23939 on_solaris=no
23941 esac
23942 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23943 conftest_s='
23944 .section .tdata,"awt",@progbits'
23945 tls_first_major=0
23946 tls_first_minor=0
23947 tls_section_flag=t
23949 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23951 else
23952 conftest_s='
23953 .section ".tdata","awT",@progbits'
23954 tls_first_major=2
23955 tls_first_minor=14
23956 tls_section_flag=T
23957 tls_as_opt="--fatal-warnings"
23959 case "$target" in
23960 i[34567]86-*-*)
23961 conftest_s="$conftest_s
23962 foo: .long 25
23963 .text
23964 movl %gs:0, %eax
23965 leal foo@tlsgd(,%ebx,1), %eax
23966 leal foo@tlsldm(%ebx), %eax
23967 leal foo@dtpoff(%eax), %edx
23968 movl foo@gottpoff(%ebx), %eax
23969 subl foo@gottpoff(%ebx), %eax
23970 addl foo@gotntpoff(%ebx), %eax
23971 movl foo@indntpoff, %eax
23972 movl \$foo@tpoff, %eax
23973 subl \$foo@tpoff, %eax
23974 leal foo@ntpoff(%ecx), %eax"
23976 x86_64-*-*)
23977 if test x$on_solaris = xyes; then
23978 case $gas_flag in
23979 yes) tls_as_opt="$tls_as_opt --64" ;;
23980 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23981 esac
23983 conftest_s="$conftest_s
23984 foo: .long 25
23985 .text
23986 movq %fs:0, %rax
23987 leaq foo@tlsgd(%rip), %rdi
23988 leaq foo@tlsld(%rip), %rdi
23989 leaq foo@dtpoff(%rax), %rdx
23990 movq foo@gottpoff(%rip), %rax
23991 movq \$foo@tpoff, %rax"
23993 esac
23995 ia64-*-*)
23996 conftest_s='
23997 .section ".tdata","awT",@progbits
23998 foo: data8 25
23999 .text
24000 addl r16 = @ltoff(@dtpmod(foo#)), gp
24001 addl r17 = @ltoff(@dtprel(foo#)), gp
24002 addl r18 = @ltoff(@tprel(foo#)), gp
24003 addl r19 = @dtprel(foo#), gp
24004 adds r21 = @dtprel(foo#), r13
24005 movl r23 = @dtprel(foo#)
24006 addl r20 = @tprel(foo#), gp
24007 adds r22 = @tprel(foo#), r13
24008 movl r24 = @tprel(foo#)'
24009 tls_first_major=2
24010 tls_first_minor=13
24011 tls_as_opt=--fatal-warnings
24013 microblaze*-*-*)
24014 conftest_s='
24015 .section .tdata,"awT",@progbits
24017 .word 2
24018 .text
24019 addik r5,r20,x@TLSGD
24020 addik r5,r20,x@TLSLDM'
24021 tls_first_major=2
24022 tls_first_minor=20
24023 tls_as_opt='--fatal-warnings'
24025 mips*-*-*)
24026 conftest_s='
24027 .section .tdata,"awT",@progbits
24029 .word 2
24030 .text
24031 addiu $4, $28, %tlsgd(x)
24032 addiu $4, $28, %tlsldm(x)
24033 lui $4, %dtprel_hi(x)
24034 addiu $4, $4, %dtprel_lo(x)
24035 lw $4, %gottprel(x)($28)
24036 lui $4, %tprel_hi(x)
24037 addiu $4, $4, %tprel_lo(x)'
24038 tls_first_major=2
24039 tls_first_minor=16
24040 tls_as_opt='-32 --fatal-warnings'
24042 m68k-*-*)
24043 conftest_s='
24044 .section .tdata,"awT",@progbits
24046 .word 2
24047 .text
24048 foo:
24049 move.l x@TLSGD(%a5),%a0
24050 move.l x@TLSLDM(%a5),%a0
24051 move.l x@TLSLDO(%a5),%a0
24052 move.l x@TLSIE(%a5),%a0
24053 move.l x@TLSLE(%a5),%a0'
24054 tls_first_major=2
24055 tls_first_minor=19
24056 tls_as_opt='--fatal-warnings'
24058 nios2-*-*)
24059 conftest_s='
24060 .section ".tdata","awT",@progbits'
24061 tls_first_major=2
24062 tls_first_minor=23
24063 tls_as_opt="--fatal-warnings"
24065 aarch64*-*-*)
24066 conftest_s='
24067 .section ".tdata","awT",%progbits
24068 foo: .long 25
24069 .text
24070 adrp x0, :tlsgd:x
24071 add x0, x0, #:tlsgd_lo12:x
24072 bl __tls_get_addr
24073 nop'
24074 tls_first_major=2
24075 tls_first_minor=20
24076 tls_as_opt='--fatal-warnings'
24078 powerpc-ibm-aix*)
24079 conftest_s='
24080 .extern __get_tpointer
24081 .toc
24082 LC..1:
24083 .tc a[TC],a[TL]@le
24084 .csect .text[PR]
24085 .tlstest:
24086 lwz 9,LC..1(2)
24087 bla __get_tpointer
24088 lwzx 3,9,3
24089 .globl a
24090 .csect a[TL],4
24092 .space 4'
24093 tls_first_major=0
24094 tls_first_minor=0
24096 powerpc64*-*-*)
24097 conftest_s='
24098 .section ".tdata","awT",@progbits
24099 .align 3
24100 ld0: .space 8
24101 ld1: .space 8
24102 x1: .space 8
24103 x2: .space 8
24104 x3: .space 8
24105 .text
24106 addi 3,2,ld0@got@tlsgd
24107 bl .__tls_get_addr
24109 addi 3,2,ld1@toc
24110 bl .__tls_get_addr
24112 addi 3,2,x1@got@tlsld
24113 bl .__tls_get_addr
24115 addi 9,3,x1@dtprel
24116 bl .__tls_get_addr
24118 addis 9,3,x2@dtprel@ha
24119 addi 9,9,x2@dtprel@l
24120 bl .__tls_get_addr
24122 ld 9,x3@got@dtprel(2)
24123 add 9,9,3
24124 bl .__tls_get_addr
24125 nop'
24126 tls_first_major=2
24127 tls_first_minor=14
24128 tls_as_opt="-a64 --fatal-warnings"
24130 powerpc*-*-*)
24131 conftest_s='
24132 .section ".tdata","awT",@progbits
24133 .align 2
24134 ld0: .space 4
24135 ld1: .space 4
24136 x1: .space 4
24137 x2: .space 4
24138 x3: .space 4
24139 .text
24140 addi 3,31,ld0@got@tlsgd
24141 bl __tls_get_addr
24142 addi 3,31,x1@got@tlsld
24143 bl __tls_get_addr
24144 addi 9,3,x1@dtprel
24145 addis 9,3,x2@dtprel@ha
24146 addi 9,9,x2@dtprel@l
24147 lwz 9,x3@got@tprel(31)
24148 add 9,9,x@tls
24149 addi 9,2,x1@tprel
24150 addis 9,2,x2@tprel@ha
24151 addi 9,9,x2@tprel@l'
24152 tls_first_major=2
24153 tls_first_minor=14
24154 tls_as_opt="-a32 --fatal-warnings"
24156 s390-*-*)
24157 conftest_s='
24158 .section ".tdata","awT",@progbits
24159 foo: .long 25
24160 .text
24161 .long foo@TLSGD
24162 .long foo@TLSLDM
24163 .long foo@DTPOFF
24164 .long foo@NTPOFF
24165 .long foo@GOTNTPOFF
24166 .long foo@INDNTPOFF
24167 l %r1,foo@GOTNTPOFF(%r12)
24168 l %r1,0(%r1):tls_load:foo
24169 bas %r14,0(%r1,%r13):tls_gdcall:foo
24170 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24171 tls_first_major=2
24172 tls_first_minor=14
24173 tls_as_opt="-m31 --fatal-warnings"
24175 s390x-*-*)
24176 conftest_s='
24177 .section ".tdata","awT",@progbits
24178 foo: .long 25
24179 .text
24180 .quad foo@TLSGD
24181 .quad foo@TLSLDM
24182 .quad foo@DTPOFF
24183 .quad foo@NTPOFF
24184 .quad foo@GOTNTPOFF
24185 lg %r1,foo@GOTNTPOFF(%r12)
24186 larl %r1,foo@INDNTPOFF
24187 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24188 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24189 tls_first_major=2
24190 tls_first_minor=14
24191 tls_as_opt="-m64 -Aesame --fatal-warnings"
24193 sh-*-* | sh[123456789lbe]*-*-*)
24194 conftest_s='
24195 .section ".tdata","awT",@progbits
24196 foo: .long 25
24197 .text
24198 .long foo@TLSGD
24199 .long foo@TLSLDM
24200 .long foo@DTPOFF
24201 .long foo@GOTTPOFF
24202 .long foo@TPOFF'
24203 tls_first_major=2
24204 tls_first_minor=13
24205 tls_as_opt=--fatal-warnings
24207 sparc*-*-*)
24208 case "$target" in
24209 sparc*-sun-solaris2.*)
24210 on_solaris=yes
24213 on_solaris=no
24215 esac
24216 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24217 conftest_s='
24218 .section ".tdata",#alloc,#write,#tls'
24219 tls_first_major=0
24220 tls_first_minor=0
24221 else
24222 conftest_s='
24223 .section ".tdata","awT",@progbits'
24224 tls_first_major=2
24225 tls_first_minor=14
24226 tls_as_opt="-32 --fatal-warnings"
24228 conftest_s="$conftest_s
24229 foo: .long 25
24230 .text
24231 sethi %tgd_hi22(foo), %o0
24232 add %o0, %tgd_lo10(foo), %o1
24233 add %l7, %o1, %o0, %tgd_add(foo)
24234 call __tls_get_addr, %tgd_call(foo)
24235 sethi %tldm_hi22(foo), %l1
24236 add %l1, %tldm_lo10(foo), %l2
24237 add %l7, %l2, %o0, %tldm_add(foo)
24238 call __tls_get_addr, %tldm_call(foo)
24239 sethi %tldo_hix22(foo), %l3
24240 xor %l3, %tldo_lox10(foo), %l4
24241 add %o0, %l4, %l5, %tldo_add(foo)
24242 sethi %tie_hi22(foo), %o3
24243 add %o3, %tie_lo10(foo), %o3
24244 ld [%l7 + %o3], %o2, %tie_ld(foo)
24245 add %g7, %o2, %o4, %tie_add(foo)
24246 sethi %tle_hix22(foo), %l1
24247 xor %l1, %tle_lox10(foo), %o5
24248 ld [%g7 + %o5], %o1"
24250 tilepro*-*-*)
24251 conftest_s='
24252 .section ".tdata","awT",@progbits
24253 foo: .long 25
24254 .text
24255 addli r0, zero, tls_gd(foo)
24256 auli r0, zero, tls_gd_ha16(foo)
24257 addli r0, r0, tls_gd_lo16(foo)
24258 jal __tls_get_addr
24259 addli r0, zero, tls_ie(foo)
24260 auli r0, r0, tls_ie_ha16(foo)
24261 addli r0, r0, tls_ie_lo16(foo)'
24262 tls_first_major=2
24263 tls_first_minor=22
24264 tls_as_opt="--fatal-warnings"
24266 tilegx*-*-*)
24267 conftest_s='
24268 .section ".tdata","awT",@progbits
24269 foo: .long 25
24270 .text
24271 shl16insli r0, zero, hw0_last_tls_gd(foo)
24272 shl16insli r0, zero, hw1_last_tls_gd(foo)
24273 shl16insli r0, r0, hw0_tls_gd(foo)
24274 jal __tls_get_addr
24275 shl16insli r0, zero, hw1_last_tls_ie(foo)
24276 shl16insli r0, r0, hw0_tls_ie(foo)'
24277 tls_first_major=2
24278 tls_first_minor=22
24279 tls_as_opt="--fatal-warnings"
24281 xtensa*-*-*)
24282 conftest_s='
24283 .section ".tdata","awT",@progbits
24284 foo: .long 25
24285 .text
24286 movi a8, foo@TLSFUNC
24287 movi a10, foo@TLSARG
24288 callx8.tls a8, foo@TLSCALL'
24289 tls_first_major=2
24290 tls_first_minor=19
24292 esac
24293 set_have_as_tls=no
24294 if test "x$enable_tls" = xno ; then
24295 : # TLS explicitly disabled.
24296 elif test "x$enable_tls" = xyes ; then
24297 set_have_as_tls=yes # TLS explicitly enabled.
24298 elif test -z "$tls_first_major"; then
24299 : # If we don't have a check, assume no support.
24300 else
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24302 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24303 if test "${gcc_cv_as_tls+set}" = set; then :
24304 $as_echo_n "(cached) " >&6
24305 else
24306 gcc_cv_as_tls=no
24307 if test $in_tree_gas = yes; then
24308 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24309 then gcc_cv_as_tls=yes
24311 elif test x$gcc_cv_as != x; then
24312 $as_echo "$conftest_s" > conftest.s
24313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315 (eval $ac_try) 2>&5
24316 ac_status=$?
24317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318 test $ac_status = 0; }; }
24319 then
24320 gcc_cv_as_tls=yes
24321 else
24322 echo "configure: failed program was" >&5
24323 cat conftest.s >&5
24325 rm -f conftest.o conftest.s
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24329 $as_echo "$gcc_cv_as_tls" >&6; }
24330 if test $gcc_cv_as_tls = yes; then
24331 set_have_as_tls=yes
24335 if test $set_have_as_tls = yes ; then
24337 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24341 # Target-specific assembler checks.
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24344 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24345 gcc_cv_ld_static_dynamic=no
24346 gcc_cv_ld_static_option='-Bstatic'
24347 gcc_cv_ld_dynamic_option='-Bdynamic'
24348 if test $in_tree_ld = yes ; then
24349 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
24350 gcc_cv_ld_static_dynamic=yes
24352 elif test x$gcc_cv_ld != x; then
24353 # Check if linker supports -Bstatic/-Bdynamic option
24354 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24355 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24356 gcc_cv_ld_static_dynamic=yes
24357 else
24358 case "$target" in
24359 # AIX ld uses -b flags
24360 *-*-aix4.[23]* | *-*-aix[5-9]*)
24361 gcc_cv_ld_static_dynamic=yes
24362 gcc_cv_ld_static_option="-bstatic"
24363 gcc_cv_ld_dynamic_option="-bdynamic"
24365 # HP-UX ld uses -a flags to select between shared and archive.
24366 *-*-hpux*)
24367 if test x"$gnu_ld" = xno; then
24368 gcc_cv_ld_static_dynamic=yes
24369 gcc_cv_ld_static_option="-aarchive_shared"
24370 gcc_cv_ld_dynamic_option="-adefault"
24373 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24374 *-*-solaris2*)
24375 gcc_cv_ld_static_dynamic=yes
24377 esac
24380 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24382 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24385 cat >>confdefs.h <<_ACEOF
24386 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24387 _ACEOF
24390 cat >>confdefs.h <<_ACEOF
24391 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24392 _ACEOF
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24396 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24398 if test x"$demangler_in_ld" = xyes; then
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24400 $as_echo_n "checking linker --demangle support... " >&6; }
24401 gcc_cv_ld_demangle=no
24402 if test $in_tree_ld = yes; then
24403 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 \
24404 gcc_cv_ld_demangle=yes
24406 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24407 # Check if the GNU linker supports --demangle option
24408 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24409 gcc_cv_ld_demangle=yes
24412 if test x"$gcc_cv_ld_demangle" = xyes; then
24414 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24418 $as_echo "$gcc_cv_ld_demangle" >&6; }
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24422 $as_echo_n "checking linker plugin support... " >&6; }
24423 gcc_cv_lto_plugin=0
24424 if test -f liblto_plugin.la; then
24425 save_ld_ver="$ld_ver"
24426 save_ld_vers_major="$ld_vers_major"
24427 save_ld_vers_minor="$ld_vers_minor"
24428 save_ld_is_gold="$ld_is_gold"
24430 ld_is_gold=no
24432 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24433 ld_ver="GNU ld"
24434 # FIXME: ld_is_gold?
24435 ld_vers_major="$gcc_cv_gld_major_version"
24436 ld_vers_minor="$gcc_cv_gld_minor_version"
24437 else
24438 # Determine plugin linker version.
24439 # FIXME: Partial duplicate from above, generalize.
24440 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24441 if echo "$ld_ver" | grep GNU > /dev/null; then
24442 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24443 ld_is_gold=yes
24444 ld_vers=`echo $ld_ver | sed -n \
24445 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24446 else
24447 ld_vers=`echo $ld_ver | sed -n \
24448 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24450 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24451 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24455 # Determine plugin support.
24456 if echo "$ld_ver" | grep GNU > /dev/null; then
24457 # Require GNU ld or gold 2.21+ for plugin support by default.
24458 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24459 gcc_cv_lto_plugin=2
24460 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24461 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24462 gcc_cv_lto_plugin=1
24466 ld_ver="$save_ld_ver"
24467 ld_vers_major="$save_ld_vers_major"
24468 ld_vers_minor="$save_ld_vers_minor"
24469 ld_is_gold="$save_ld_is_gold"
24472 cat >>confdefs.h <<_ACEOF
24473 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24474 _ACEOF
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24477 $as_echo "$gcc_cv_lto_plugin" >&6; }
24479 # Target OS-specific assembler checks.
24481 case "$target_os" in
24482 darwin*)
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24484 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24485 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24486 $as_echo_n "(cached) " >&6
24487 else
24488 gcc_cv_as_mmacosx_version_min=no
24489 if test x$gcc_cv_as != x; then
24490 $as_echo '.text' > conftest.s
24491 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24493 (eval $ac_try) 2>&5
24494 ac_status=$?
24495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24496 test $ac_status = 0; }; }
24497 then
24498 gcc_cv_as_mmacosx_version_min=yes
24499 else
24500 echo "configure: failed program was" >&5
24501 cat conftest.s >&5
24503 rm -f conftest.o conftest.s
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24507 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24508 if test $gcc_cv_as_mmacosx_version_min = yes; then
24510 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24515 esac
24517 # Target CPU-specific assembler checks.
24519 case "$target" in
24520 aarch64*-*-*)
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24522 $as_echo_n "checking assembler for -mabi option... " >&6; }
24523 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24525 else
24526 gcc_cv_as_aarch64_mabi=no
24527 if test x$gcc_cv_as != x; then
24528 $as_echo '.text' > conftest.s
24529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24531 (eval $ac_try) 2>&5
24532 ac_status=$?
24533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24534 test $ac_status = 0; }; }
24535 then
24536 gcc_cv_as_aarch64_mabi=yes
24537 else
24538 echo "configure: failed program was" >&5
24539 cat conftest.s >&5
24541 rm -f conftest.o conftest.s
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24545 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24548 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24550 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24552 else
24553 if test x$with_abi = xilp32; then
24554 as_fn_error "Assembler does not support -mabi=ilp32.\
24555 Upgrade the Assembler." "$LINENO" 5
24557 if test x"$with_multilib_list" = xdefault; then
24558 TM_MULTILIB_CONFIG=lp64
24559 else
24560 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24561 for aarch64_multilib in ${aarch64_multilibs}; do
24562 case ${aarch64_multilib} in
24563 ilp32)
24564 as_fn_error "Assembler does not support -mabi=ilp32.\
24565 Upgrade the Assembler." "$LINENO" 5
24569 esac
24570 done
24573 # Check if we have binutils support for relocations types needed by -fpic
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24575 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24576 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24577 $as_echo_n "(cached) " >&6
24578 else
24579 gcc_cv_as_aarch64_picreloc=no
24580 if test x$gcc_cv_as != x; then
24581 $as_echo '
24582 .text
24583 ldr x0, [x2, #:gotpage_lo15:globalsym]
24584 ' > conftest.s
24585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24588 ac_status=$?
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24591 then
24592 gcc_cv_as_aarch64_picreloc=yes
24593 else
24594 echo "configure: failed program was" >&5
24595 cat conftest.s >&5
24597 rm -f conftest.o conftest.s
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24601 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24602 if test $gcc_cv_as_aarch64_picreloc = yes; then
24604 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24608 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24609 # Check whether --enable-fix-cortex-a53-835769 was given.
24610 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24611 enableval=$enable_fix_cortex_a53_835769;
24612 case $enableval in
24613 yes)
24614 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24619 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24620 Valid choices are 'yes' and 'no'." "$LINENO" 5
24623 esac
24627 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24628 # Check whether --enable-fix-cortex-a53-843419 was given.
24629 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24630 enableval=$enable_fix_cortex_a53_843419;
24631 case $enableval in
24632 yes)
24633 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24638 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24639 Valid choices are 'yes' and 'no'." "$LINENO" 5
24642 esac
24648 # All TARGET_ABI_OSF targets.
24649 alpha*-*-linux* | alpha*-*-*bsd*)
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24651 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24652 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24653 $as_echo_n "(cached) " >&6
24654 else
24655 gcc_cv_as_alpha_explicit_relocs=no
24656 if test $in_tree_gas = yes; then
24657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24658 then gcc_cv_as_alpha_explicit_relocs=yes
24660 elif test x$gcc_cv_as != x; then
24661 $as_echo ' .set nomacro
24662 .text
24663 extbl $3, $2, $3 !lituse_bytoff!1
24664 ldq $2, a($29) !literal!1
24665 ldq $4, b($29) !literal!2
24666 ldq_u $3, 0($2) !lituse_base!1
24667 ldq $27, f($29) !literal!5
24668 jsr $26, ($27), f !lituse_jsr!5
24669 ldah $29, 0($26) !gpdisp!3
24670 lda $0, c($29) !gprel
24671 ldah $1, d($29) !gprelhigh
24672 lda $1, d($1) !gprellow
24673 lda $29, 0($29) !gpdisp!3' > conftest.s
24674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24676 (eval $ac_try) 2>&5
24677 ac_status=$?
24678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24679 test $ac_status = 0; }; }
24680 then
24681 gcc_cv_as_alpha_explicit_relocs=yes
24682 else
24683 echo "configure: failed program was" >&5
24684 cat conftest.s >&5
24686 rm -f conftest.o conftest.s
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24690 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24691 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24693 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24698 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24699 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24700 $as_echo_n "(cached) " >&6
24701 else
24702 gcc_cv_as_alpha_jsrdirect_relocs=no
24703 if test $in_tree_gas = yes; then
24704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24705 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24707 elif test x$gcc_cv_as != x; then
24708 $as_echo ' .set nomacro
24709 .text
24710 ldq $27, a($29) !literal!1
24711 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24714 (eval $ac_try) 2>&5
24715 ac_status=$?
24716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24717 test $ac_status = 0; }; }
24718 then
24719 gcc_cv_as_alpha_jsrdirect_relocs=yes
24720 else
24721 echo "configure: failed program was" >&5
24722 cat conftest.s >&5
24724 rm -f conftest.o conftest.s
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24728 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24729 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24731 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24737 avr-*-*)
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24739 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24740 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24742 else
24743 gcc_cv_as_avr_mlink_relax=no
24744 if test x$gcc_cv_as != x; then
24745 $as_echo '.text' > conftest.s
24746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751 test $ac_status = 0; }; }
24752 then
24753 gcc_cv_as_avr_mlink_relax=yes
24754 else
24755 echo "configure: failed program was" >&5
24756 cat conftest.s >&5
24758 rm -f conftest.o conftest.s
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24762 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24763 if test $gcc_cv_as_avr_mlink_relax = yes; then
24765 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24771 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24772 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 gcc_cv_as_avr_mrmw=no
24776 if test x$gcc_cv_as != x; then
24777 $as_echo '.text' > conftest.s
24778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24780 (eval $ac_try) 2>&5
24781 ac_status=$?
24782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24783 test $ac_status = 0; }; }
24784 then
24785 gcc_cv_as_avr_mrmw=yes
24786 else
24787 echo "configure: failed program was" >&5
24788 cat conftest.s >&5
24790 rm -f conftest.o conftest.s
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24794 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24795 if test $gcc_cv_as_avr_mrmw = yes; then
24797 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24803 cris-*-*)
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24805 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24806 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24808 else
24809 gcc_cv_as_cris_no_mul_bug=no
24810 if test $in_tree_gas = yes; then
24811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24812 then gcc_cv_as_cris_no_mul_bug=yes
24814 elif test x$gcc_cv_as != x; then
24815 $as_echo '.text' > conftest.s
24816 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24821 test $ac_status = 0; }; }
24822 then
24823 gcc_cv_as_cris_no_mul_bug=yes
24824 else
24825 echo "configure: failed program was" >&5
24826 cat conftest.s >&5
24828 rm -f conftest.o conftest.s
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24832 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24833 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24835 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24841 sparc*-*-*)
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24843 $as_echo_n "checking assembler for .register... " >&6; }
24844 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24845 $as_echo_n "(cached) " >&6
24846 else
24847 gcc_cv_as_sparc_register_op=no
24848 if test x$gcc_cv_as != x; then
24849 $as_echo '.register %g2, #scratch' > conftest.s
24850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24852 (eval $ac_try) 2>&5
24853 ac_status=$?
24854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24855 test $ac_status = 0; }; }
24856 then
24857 gcc_cv_as_sparc_register_op=yes
24858 else
24859 echo "configure: failed program was" >&5
24860 cat conftest.s >&5
24862 rm -f conftest.o conftest.s
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24866 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24867 if test $gcc_cv_as_sparc_register_op = yes; then
24869 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24875 $as_echo_n "checking assembler for -relax option... " >&6; }
24876 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24877 $as_echo_n "(cached) " >&6
24878 else
24879 gcc_cv_as_sparc_relax=no
24880 if test x$gcc_cv_as != x; then
24881 $as_echo '.text' > conftest.s
24882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24884 (eval $ac_try) 2>&5
24885 ac_status=$?
24886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24887 test $ac_status = 0; }; }
24888 then
24889 gcc_cv_as_sparc_relax=yes
24890 else
24891 echo "configure: failed program was" >&5
24892 cat conftest.s >&5
24894 rm -f conftest.o conftest.s
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24898 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24899 if test $gcc_cv_as_sparc_relax = yes; then
24901 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24907 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24908 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24909 $as_echo_n "(cached) " >&6
24910 else
24911 gcc_cv_as_sparc_gotdata_op=no
24912 if test x$gcc_cv_as != x; then
24913 $as_echo '.text
24914 .align 4
24915 foo:
24917 bar:
24918 sethi %gdop_hix22(foo), %g1
24919 xor %g1, %gdop_lox10(foo), %g1
24920 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }
24927 then
24928 if test x$gcc_cv_ld != x \
24929 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24930 if test x$gcc_cv_objdump != x; then
24931 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24932 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24933 gcc_cv_as_sparc_gotdata_op=no
24934 else
24935 gcc_cv_as_sparc_gotdata_op=yes
24939 rm -f conftest
24940 else
24941 echo "configure: failed program was" >&5
24942 cat conftest.s >&5
24944 rm -f conftest.o conftest.s
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24948 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24949 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24951 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24957 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24958 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24960 else
24961 gcc_cv_as_sparc_ua_pcrel=no
24962 if test x$gcc_cv_as != x; then
24963 $as_echo '.text
24964 foo:
24966 .data
24967 .align 4
24968 .byte 0
24969 .uaword %r_disp32(foo)' > conftest.s
24970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24972 (eval $ac_try) 2>&5
24973 ac_status=$?
24974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24975 test $ac_status = 0; }; }
24976 then
24977 if test x$gcc_cv_ld != x \
24978 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24979 gcc_cv_as_sparc_ua_pcrel=yes
24981 rm -f conftest
24982 else
24983 echo "configure: failed program was" >&5
24984 cat conftest.s >&5
24986 rm -f conftest.o conftest.s
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24990 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24991 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24993 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24997 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24998 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25000 else
25001 gcc_cv_as_sparc_ua_pcrel_hidden=no
25002 if test x$gcc_cv_as != x; then
25003 $as_echo '.data
25004 .align 4
25005 .byte 0x31
25006 .uaword %r_disp32(foo)
25007 .byte 0x32, 0x33, 0x34
25008 .global foo
25009 .hidden foo
25010 foo:
25011 .skip 4' > conftest.s
25012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25017 test $ac_status = 0; }; }
25018 then
25019 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25020 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25021 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25022 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25023 if $gcc_cv_objdump -R conftest 2> /dev/null \
25024 | grep 'DISP32' > /dev/null 2>&1; then
25026 else
25027 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25030 rm -f conftest
25031 else
25032 echo "configure: failed program was" >&5
25033 cat conftest.s >&5
25035 rm -f conftest.o conftest.s
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25039 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25040 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25042 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25048 # unaligned pcrel relocs
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25051 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25052 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25053 $as_echo_n "(cached) " >&6
25054 else
25055 gcc_cv_as_sparc_offsetable_lo10=no
25056 if test x$gcc_cv_as != x; then
25057 $as_echo '.text
25058 or %g1, %lo(ab) + 12, %g1
25059 or %g1, %lo(ab + 12), %g1' > conftest.s
25060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062 (eval $ac_try) 2>&5
25063 ac_status=$?
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }; }
25066 then
25067 if test x$gcc_cv_objdump != x \
25068 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25069 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25070 gcc_cv_as_sparc_offsetable_lo10=yes
25072 else
25073 echo "configure: failed program was" >&5
25074 cat conftest.s >&5
25076 rm -f conftest.o conftest.s
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25080 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25081 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25083 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25089 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25090 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25091 $as_echo_n "(cached) " >&6
25092 else
25093 gcc_cv_as_sparc_fmaf=no
25094 if test x$gcc_cv_as != x; then
25095 $as_echo '.text
25096 .register %g2, #scratch
25097 .register %g3, #scratch
25098 .align 4
25099 fmaddd %f0, %f2, %f4, %f6
25100 addxccc %g1, %g2, %g3
25101 fsrl32 %f2, %f4, %f8
25102 fnaddd %f10, %f12, %f14' > conftest.s
25103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }
25109 then
25110 gcc_cv_as_sparc_fmaf=yes
25111 else
25112 echo "configure: failed program was" >&5
25113 cat conftest.s >&5
25115 rm -f conftest.o conftest.s
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25119 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25120 if test $gcc_cv_as_sparc_fmaf = yes; then
25122 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25128 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25129 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_sparc_sparc4=no
25133 if test x$gcc_cv_as != x; then
25134 $as_echo '.text
25135 .register %g2, #scratch
25136 .register %g3, #scratch
25137 .align 4
25138 cxbe %g2, %g3, 1f
25139 1: cwbneg %g2, %g3, 1f
25140 1: sha1
25142 aes_kexpand0 %f4, %f6, %f8
25143 des_round %f38, %f40, %f42, %f44
25144 camellia_f %f54, %f56, %f58, %f60
25145 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25151 test $ac_status = 0; }; }
25152 then
25153 gcc_cv_as_sparc_sparc4=yes
25154 else
25155 echo "configure: failed program was" >&5
25156 cat conftest.s >&5
25158 rm -f conftest.o conftest.s
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25162 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25163 if test $gcc_cv_as_sparc_sparc4 = yes; then
25165 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25171 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25172 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25173 $as_echo_n "(cached) " >&6
25174 else
25175 gcc_cv_as_sparc_sparc5=no
25176 if test x$gcc_cv_as != x; then
25177 $as_echo '.text
25178 .register %g2, #scratch
25179 .register %g3, #scratch
25180 .align 4
25181 subxc %g1, %g2, %g3
25182 fpadd8 %f0, %f2, %f4' > conftest.s
25183 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25188 test $ac_status = 0; }; }
25189 then
25190 gcc_cv_as_sparc_sparc5=yes
25191 else
25192 echo "configure: failed program was" >&5
25193 cat conftest.s >&5
25195 rm -f conftest.o conftest.s
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25199 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25200 if test $gcc_cv_as_sparc_sparc5 = yes; then
25202 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25208 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25209 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25210 $as_echo_n "(cached) " >&6
25211 else
25212 gcc_cv_as_sparc_leon=no
25213 if test x$gcc_cv_as != x; then
25214 $as_echo '.text
25215 .register %g2, #scratch
25216 .register %g3, #scratch
25217 .align 4
25218 smac %g2, %g3, %g1
25219 umac %g2, %g3, %g1
25220 casa [%g2] 0xb, %g3, %g1' > conftest.s
25221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25227 then
25228 gcc_cv_as_sparc_leon=yes
25229 else
25230 echo "configure: failed program was" >&5
25231 cat conftest.s >&5
25233 rm -f conftest.o conftest.s
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25237 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25238 if test $gcc_cv_as_sparc_leon = yes; then
25240 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25246 i[34567]86-*-* | x86_64-*-*)
25247 case $target_os in
25248 cygwin*)
25249 # Full C++ conformance when using a shared libstdc++-v3 requires some
25250 # support from the Cygwin DLL, which in more recent versions exports
25251 # wrappers to aid in interposing and redirecting operators new, delete,
25252 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25253 # are configuring for a version of Cygwin that exports the wrappers.
25254 if test x$host = x$target && test x$host_cpu = xi686; then
25255 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25256 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25257 gcc_ac_cygwin_dll_wrappers=yes
25258 else
25259 gcc_ac_cygwin_dll_wrappers=no
25262 else
25263 # Can't check presence of libc functions during cross-compile, so
25264 # we just have to assume we're building for an up-to-date target.
25265 gcc_ac_cygwin_dll_wrappers=yes
25268 cat >>confdefs.h <<_ACEOF
25269 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25270 _ACEOF
25272 esac
25273 case $target_os in
25274 cygwin* | pe | mingw32*)
25275 # Recent binutils allows the three-operand form of ".comm" on PE. This
25276 # definition is used unconditionally to initialise the default state of
25277 # the target option variable that governs usage of the feature.
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25279 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25280 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25281 $as_echo_n "(cached) " >&6
25282 else
25283 gcc_cv_as_comm_has_align=no
25284 if test $in_tree_gas = yes; then
25285 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25286 then gcc_cv_as_comm_has_align=yes
25288 elif test x$gcc_cv_as != x; then
25289 $as_echo '.comm foo,1,32' > conftest.s
25290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25292 (eval $ac_try) 2>&5
25293 ac_status=$?
25294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25295 test $ac_status = 0; }; }
25296 then
25297 gcc_cv_as_comm_has_align=yes
25298 else
25299 echo "configure: failed program was" >&5
25300 cat conftest.s >&5
25302 rm -f conftest.o conftest.s
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25306 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25310 cat >>confdefs.h <<_ACEOF
25311 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25312 _ACEOF
25314 # Used for DWARF 2 in PE
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25316 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25317 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25318 $as_echo_n "(cached) " >&6
25319 else
25320 gcc_cv_as_ix86_pe_secrel32=no
25321 if test $in_tree_gas = yes; then
25322 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25323 then gcc_cv_as_ix86_pe_secrel32=yes
25325 elif test x$gcc_cv_as != x; then
25326 $as_echo '.text
25327 foo: nop
25328 .data
25329 .secrel32 foo' > conftest.s
25330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25335 test $ac_status = 0; }; }
25336 then
25337 if test x$gcc_cv_ld != x \
25338 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25339 gcc_cv_as_ix86_pe_secrel32=yes
25341 rm -f conftest
25342 else
25343 echo "configure: failed program was" >&5
25344 cat conftest.s >&5
25346 rm -f conftest.o conftest.s
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25350 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25351 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25353 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25357 # Test if the assembler supports the extended form of the .section
25358 # directive that specifies section alignment. LTO support uses this,
25359 # but normally only after installation, so we warn but don't fail the
25360 # configure if LTO is enabled but the assembler does not support it.
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25362 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25363 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25365 else
25366 gcc_cv_as_section_has_align=no
25367 if test $in_tree_gas = yes; then
25368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25369 then gcc_cv_as_section_has_align=yes
25371 elif test x$gcc_cv_as != x; then
25372 $as_echo '.section lto_test,"dr0"' > conftest.s
25373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -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_section_has_align=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_section_has_align" >&5
25389 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25392 if test x$gcc_cv_as_section_has_align != xyes; then
25393 case ",$enable_languages," in
25394 *,lto,*)
25395 { $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
25396 $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;}
25398 esac
25401 esac
25403 # Test if the assembler supports the section flag 'e' for specifying
25404 # an excluded section.
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25406 $as_echo_n "checking assembler for .section with e... " >&6; }
25407 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25409 else
25410 gcc_cv_as_section_has_e=no
25411 if test $in_tree_gas = yes; then
25412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25413 then gcc_cv_as_section_has_e=yes
25415 elif test x$gcc_cv_as != x; then
25416 $as_echo '.section foo1,"e"
25417 .byte 0,0,0,0' > conftest.s
25418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25420 (eval $ac_try) 2>&5
25421 ac_status=$?
25422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25423 test $ac_status = 0; }; }
25424 then
25425 gcc_cv_as_section_has_e=yes
25426 else
25427 echo "configure: failed program was" >&5
25428 cat conftest.s >&5
25430 rm -f conftest.o conftest.s
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25434 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25438 cat >>confdefs.h <<_ACEOF
25439 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25440 _ACEOF
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25444 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25445 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25446 $as_echo_n "(cached) " >&6
25447 else
25448 gcc_cv_as_ix86_filds=no
25449 if test x$gcc_cv_as != x; then
25450 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25451 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25456 test $ac_status = 0; }; }
25457 then
25458 gcc_cv_as_ix86_filds=yes
25459 else
25460 echo "configure: failed program was" >&5
25461 cat conftest.s >&5
25463 rm -f conftest.o conftest.s
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25467 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25468 if test $gcc_cv_as_ix86_filds = yes; then
25470 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25476 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25477 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25478 $as_echo_n "(cached) " >&6
25479 else
25480 gcc_cv_as_ix86_fildq=no
25481 if test x$gcc_cv_as != x; then
25482 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25488 test $ac_status = 0; }; }
25489 then
25490 gcc_cv_as_ix86_fildq=yes
25491 else
25492 echo "configure: failed program was" >&5
25493 cat conftest.s >&5
25495 rm -f conftest.o conftest.s
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25499 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25500 if test $gcc_cv_as_ix86_fildq = yes; then
25502 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25508 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25509 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25510 $as_echo_n "(cached) " >&6
25511 else
25512 gcc_cv_as_ix86_cmov_sun_syntax=no
25513 if test x$gcc_cv_as != x; then
25514 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25517 (eval $ac_try) 2>&5
25518 ac_status=$?
25519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25520 test $ac_status = 0; }; }
25521 then
25522 gcc_cv_as_ix86_cmov_sun_syntax=yes
25523 else
25524 echo "configure: failed program was" >&5
25525 cat conftest.s >&5
25527 rm -f conftest.o conftest.s
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25531 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25532 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25534 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25540 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25541 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25542 $as_echo_n "(cached) " >&6
25543 else
25544 gcc_cv_as_ix86_ffreep=no
25545 if test x$gcc_cv_as != x; then
25546 $as_echo 'ffreep %st(1)' > conftest.s
25547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25549 (eval $ac_try) 2>&5
25550 ac_status=$?
25551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25552 test $ac_status = 0; }; }
25553 then
25554 gcc_cv_as_ix86_ffreep=yes
25555 else
25556 echo "configure: failed program was" >&5
25557 cat conftest.s >&5
25559 rm -f conftest.o conftest.s
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25563 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25564 if test $gcc_cv_as_ix86_ffreep = yes; then
25566 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25572 $as_echo_n "checking assembler for .quad directive... " >&6; }
25573 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25574 $as_echo_n "(cached) " >&6
25575 else
25576 gcc_cv_as_ix86_quad=no
25577 if test x$gcc_cv_as != x; then
25578 $as_echo '.quad 0' > conftest.s
25579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25585 then
25586 gcc_cv_as_ix86_quad=yes
25587 else
25588 echo "configure: failed program was" >&5
25589 cat conftest.s >&5
25591 rm -f conftest.o conftest.s
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25595 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25596 if test $gcc_cv_as_ix86_quad = yes; then
25598 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25604 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25605 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25606 $as_echo_n "(cached) " >&6
25607 else
25608 gcc_cv_as_ix86_sahf=no
25609 if test x$gcc_cv_as != x; then
25610 $as_echo '.code64
25611 sahf' > conftest.s
25612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25614 (eval $ac_try) 2>&5
25615 ac_status=$?
25616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }; }
25618 then
25619 gcc_cv_as_ix86_sahf=yes
25620 else
25621 echo "configure: failed program was" >&5
25622 cat conftest.s >&5
25624 rm -f conftest.o conftest.s
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25628 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25629 if test $gcc_cv_as_ix86_sahf = yes; then
25631 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25637 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25638 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25639 $as_echo_n "(cached) " >&6
25640 else
25641 gcc_cv_as_ix86_interunit_movq=no
25642 if test x$gcc_cv_as != x; then
25643 $as_echo '.code64
25644 movq %mm0, %rax
25645 movq %rax, %xmm0' > conftest.s
25646 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25648 (eval $ac_try) 2>&5
25649 ac_status=$?
25650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25651 test $ac_status = 0; }; }
25652 then
25653 gcc_cv_as_ix86_interunit_movq=yes
25654 else
25655 echo "configure: failed program was" >&5
25656 cat conftest.s >&5
25658 rm -f conftest.o conftest.s
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25662 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25666 cat >>confdefs.h <<_ACEOF
25667 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25668 _ACEOF
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25672 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25673 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25674 $as_echo_n "(cached) " >&6
25675 else
25676 gcc_cv_as_ix86_hle=no
25677 if test x$gcc_cv_as != x; then
25678 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25681 (eval $ac_try) 2>&5
25682 ac_status=$?
25683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25684 test $ac_status = 0; }; }
25685 then
25686 gcc_cv_as_ix86_hle=yes
25687 else
25688 echo "configure: failed program was" >&5
25689 cat conftest.s >&5
25691 rm -f conftest.o conftest.s
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25695 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25696 if test $gcc_cv_as_ix86_hle = yes; then
25698 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25704 $as_echo_n "checking assembler for swap suffix... " >&6; }
25705 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25706 $as_echo_n "(cached) " >&6
25707 else
25708 gcc_cv_as_ix86_swap=no
25709 if test x$gcc_cv_as != x; then
25710 $as_echo 'movl.s %esp, %ebp' > conftest.s
25711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25713 (eval $ac_try) 2>&5
25714 ac_status=$?
25715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25716 test $ac_status = 0; }; }
25717 then
25718 gcc_cv_as_ix86_swap=yes
25719 else
25720 echo "configure: failed program was" >&5
25721 cat conftest.s >&5
25723 rm -f conftest.o conftest.s
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25727 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25728 if test $gcc_cv_as_ix86_swap = yes; then
25730 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25736 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25737 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25739 else
25740 gcc_cv_as_ix86_diff_sect_delta=no
25741 if test x$gcc_cv_as != x; then
25742 $as_echo '.section .rodata
25743 .L1:
25744 .long .L2-.L1
25745 .long .L3-.L1
25746 .text
25747 .L3: nop
25748 .L2: nop' > conftest.s
25749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; }
25755 then
25756 gcc_cv_as_ix86_diff_sect_delta=yes
25757 else
25758 echo "configure: failed program was" >&5
25759 cat conftest.s >&5
25761 rm -f conftest.o conftest.s
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25765 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25766 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25768 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25774 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25775 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25776 $as_echo_n "(cached) " >&6
25777 else
25778 gcc_cv_as_ix86_rep_lock_prefix=no
25779 if test x$gcc_cv_as != x; then
25780 $as_echo 'rep movsl
25781 rep ret
25782 rep nop
25783 rep bsf %ecx, %eax
25784 rep bsr %ecx, %eax
25785 lock addl %edi, (%eax,%esi)
25786 lock orl $0, (%esp)' > conftest.s
25787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25789 (eval $ac_try) 2>&5
25790 ac_status=$?
25791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25792 test $ac_status = 0; }; }
25793 then
25794 gcc_cv_as_ix86_rep_lock_prefix=yes
25795 else
25796 echo "configure: failed program was" >&5
25797 cat conftest.s >&5
25799 rm -f conftest.o conftest.s
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25803 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25804 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25806 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25812 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25813 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25814 $as_echo_n "(cached) " >&6
25815 else
25816 gcc_cv_as_ix86_ud2=no
25817 if test x$gcc_cv_as != x; then
25818 $as_echo 'ud2' > conftest.s
25819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25822 ac_status=$?
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25825 then
25826 gcc_cv_as_ix86_ud2=yes
25827 else
25828 echo "configure: failed program was" >&5
25829 cat conftest.s >&5
25831 rm -f conftest.o conftest.s
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25835 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25836 if test $gcc_cv_as_ix86_ud2 = yes; then
25838 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25843 # Enforce 32-bit output with gas and gld.
25844 if test x$gas = xyes; then
25845 as_ix86_gas_32_opt="--32"
25847 if echo "$ld_ver" | grep GNU > /dev/null; then
25848 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25849 ld_ix86_gld_32_opt="-melf_i386_sol2"
25850 else
25851 ld_ix86_gld_32_opt="-melf_i386"
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25856 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25857 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25858 $as_echo_n "(cached) " >&6
25859 else
25860 gcc_cv_as_ix86_tlsgdplt=no
25861 if test x$gcc_cv_as != x; then
25862 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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 if test x$gcc_cv_ld != x \
25871 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25872 gcc_cv_as_ix86_tlsgdplt=yes
25874 rm -f conftest
25875 else
25876 echo "configure: failed program was" >&5
25877 cat conftest.s >&5
25879 rm -f conftest.o conftest.s
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25883 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25884 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25886 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25891 conftest_s='
25892 .section .tdata,"aw'$tls_section_flag'",@progbits
25893 tls_ld:
25894 .section .text,"ax",@progbits
25895 call tls_ld@tlsldmplt'
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25898 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25899 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25900 $as_echo_n "(cached) " >&6
25901 else
25902 gcc_cv_as_ix86_tlsldmplt=no
25903 if test x$gcc_cv_as != x; then
25904 $as_echo "$conftest_s" > conftest.s
25905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25907 (eval $ac_try) 2>&5
25908 ac_status=$?
25909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25910 test $ac_status = 0; }; }
25911 then
25912 if test x$gcc_cv_ld != x \
25913 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25914 gcc_cv_as_ix86_tlsldmplt=yes
25916 rm -f conftest
25917 else
25918 echo "configure: failed program was" >&5
25919 cat conftest.s >&5
25921 rm -f conftest.o conftest.s
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25925 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25929 cat >>confdefs.h <<_ACEOF
25930 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25931 _ACEOF
25934 conftest_s='
25935 .section .text,"ax",@progbits
25936 .globl _start
25937 .type _start, @function
25938 _start:
25939 leal value@tlsldm(%ebx), %eax
25940 call ___tls_get_addr@plt
25942 .section .tdata,"aw'$tls_section_flag'",@progbits
25943 .type value, @object
25944 value:'
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25946 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25947 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25948 $as_echo_n "(cached) " >&6
25949 else
25950 gcc_cv_as_ix86_tlsldm=no
25951 if test x$gcc_cv_as != x; then
25952 $as_echo "$conftest_s" > conftest.s
25953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25955 (eval $ac_try) 2>&5
25956 ac_status=$?
25957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25958 test $ac_status = 0; }; }
25959 then
25960 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25961 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25962 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25963 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25964 gcc_cv_as_ix86_tlsldm=yes
25967 rm -f conftest
25968 else
25969 echo "configure: failed program was" >&5
25970 cat conftest.s >&5
25972 rm -f conftest.o conftest.s
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25976 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25980 cat >>confdefs.h <<_ACEOF
25981 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25982 _ACEOF
25985 conftest_s='
25986 .data
25987 bar:
25988 .byte 1
25989 .text
25990 .global _start
25991 _start:
25992 cmpl $0, bar@GOT
25993 jmp *_start@GOT'
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25995 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25996 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25997 $as_echo_n "(cached) " >&6
25998 else
25999 gcc_cv_as_ix86_got32x=no
26000 if test x$gcc_cv_as != x; then
26001 $as_echo "$conftest_s" > conftest.s
26002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26007 test $ac_status = 0; }; }
26008 then
26009 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26010 && test x$gcc_cv_readelf != x \
26011 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26012 | grep R_386_GOT32X > /dev/null 2>&1 \
26013 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26014 if $gcc_cv_objdump -dw conftest 2>&1 \
26015 | grep 0xffffff > /dev/null 2>&1; then
26016 gcc_cv_as_ix86_got32x=no
26017 else
26018 gcc_cv_as_ix86_got32x=yes
26021 rm -f conftest
26022 else
26023 echo "configure: failed program was" >&5
26024 cat conftest.s >&5
26026 rm -f conftest.o conftest.s
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26030 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26034 cat >>confdefs.h <<_ACEOF
26035 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26036 _ACEOF
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26040 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26041 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26042 $as_echo_n "(cached) " >&6
26043 else
26044 gcc_cv_as_ix86_gotoff_in_data=no
26045 if test $in_tree_gas = yes; then
26046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26047 then gcc_cv_as_ix86_gotoff_in_data=yes
26049 elif test x$gcc_cv_as != x; then
26050 $as_echo ' .text
26051 .L0:
26053 .data
26054 .long .L0@GOTOFF' > conftest.s
26055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26057 (eval $ac_try) 2>&5
26058 ac_status=$?
26059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26060 test $ac_status = 0; }; }
26061 then
26062 gcc_cv_as_ix86_gotoff_in_data=yes
26063 else
26064 echo "configure: failed program was" >&5
26065 cat conftest.s >&5
26067 rm -f conftest.o conftest.s
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26071 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26075 cat >>confdefs.h <<_ACEOF
26076 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26077 _ACEOF
26080 conftest_s='
26081 .section .text,"ax",@progbits
26082 .globl _start
26083 .type _start, @function
26084 _start:
26085 leal ld@tlsldm(%ecx), %eax
26086 call *___tls_get_addr@GOT(%ecx)
26087 leal gd@tlsgd(%ecx), %eax
26088 call *___tls_get_addr@GOT(%ecx)
26090 .section .tdata,"aw'$tls_section_flag'",@progbits
26091 .type ld, @object
26093 .byte 0
26094 .globl gd
26095 .type gd, @object
26097 .byte 0'
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26099 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26100 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26101 $as_echo_n "(cached) " >&6
26102 else
26103 gcc_cv_as_ix86_tls_get_addr_via_got=no
26104 if test x$gcc_cv_as != x; then
26105 $as_echo "$conftest_s" > conftest.s
26106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26111 test $ac_status = 0; }; }
26112 then
26113 if test x$gcc_cv_ld != x \
26114 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26115 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26117 rm -f conftest
26118 else
26119 echo "configure: failed program was" >&5
26120 cat conftest.s >&5
26122 rm -f conftest.o conftest.s
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26126 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26130 cat >>confdefs.h <<_ACEOF
26131 #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`
26132 _ACEOF
26136 ia64*-*-*)
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26138 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26139 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26141 else
26142 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26143 if test $in_tree_gas = yes; then
26144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26145 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26147 elif test x$gcc_cv_as != x; then
26148 $as_echo ' .text
26149 addl r15 = @ltoffx(x#), gp
26151 ld8.mov r16 = [r15], x#' > conftest.s
26152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26157 test $ac_status = 0; }; }
26158 then
26159 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26160 else
26161 echo "configure: failed program was" >&5
26162 cat conftest.s >&5
26164 rm -f conftest.o conftest.s
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26168 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26169 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26171 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26178 powerpc*-*-*)
26180 case $target in
26181 *-*-darwin*)
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26183 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26184 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26185 $as_echo_n "(cached) " >&6
26186 else
26187 gcc_cv_as_machine_directive=no
26188 if test x$gcc_cv_as != x; then
26189 $as_echo ' .machine ppc7400' > conftest.s
26190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26195 test $ac_status = 0; }; }
26196 then
26197 gcc_cv_as_machine_directive=yes
26198 else
26199 echo "configure: failed program was" >&5
26200 cat conftest.s >&5
26202 rm -f conftest.o conftest.s
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26206 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26209 if test x$gcc_cv_as_machine_directive != xyes; then
26210 echo "*** This target requires an assembler supporting \".machine\"" >&2
26211 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26212 test x$build = x$target && exit 1
26215 esac
26217 case $target in
26218 *-*-aix*) conftest_s=' .machine "pwr5"
26219 .csect .text[PR]
26220 mfcr 3,128';;
26221 *-*-darwin*) conftest_s=' .text
26222 mfcr r3,128';;
26223 *) conftest_s=' .machine power4
26224 .text
26225 mfcr 3,128';;
26226 esac
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26229 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26230 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26231 $as_echo_n "(cached) " >&6
26232 else
26233 gcc_cv_as_powerpc_mfcrf=no
26234 if test $in_tree_gas = yes; then
26235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26236 then gcc_cv_as_powerpc_mfcrf=yes
26238 elif test x$gcc_cv_as != x; then
26239 $as_echo "$conftest_s" > conftest.s
26240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26245 test $ac_status = 0; }; }
26246 then
26247 gcc_cv_as_powerpc_mfcrf=yes
26248 else
26249 echo "configure: failed program was" >&5
26250 cat conftest.s >&5
26252 rm -f conftest.o conftest.s
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26256 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26257 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26259 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26264 case $target in
26265 *-*-aix*) conftest_s=' .machine "pwr5"
26266 .csect .text[PR]
26267 popcntb 3,3';;
26268 *) conftest_s=' .machine power5
26269 .text
26270 popcntb 3,3';;
26271 esac
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26274 $as_echo_n "checking assembler for popcntb support... " >&6; }
26275 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26276 $as_echo_n "(cached) " >&6
26277 else
26278 gcc_cv_as_powerpc_popcntb=no
26279 if test $in_tree_gas = yes; then
26280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26281 then gcc_cv_as_powerpc_popcntb=yes
26283 elif test x$gcc_cv_as != x; then
26284 $as_echo "$conftest_s" > conftest.s
26285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26288 ac_status=$?
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; }
26291 then
26292 gcc_cv_as_powerpc_popcntb=yes
26293 else
26294 echo "configure: failed program was" >&5
26295 cat conftest.s >&5
26297 rm -f conftest.o conftest.s
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26301 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26302 if test $gcc_cv_as_powerpc_popcntb = yes; then
26304 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26309 case $target in
26310 *-*-aix*) conftest_s=' .machine "pwr5x"
26311 .csect .text[PR]
26312 frin 1,1';;
26313 *) conftest_s=' .machine power5
26314 .text
26315 frin 1,1';;
26316 esac
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26319 $as_echo_n "checking assembler for fp round support... " >&6; }
26320 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26321 $as_echo_n "(cached) " >&6
26322 else
26323 gcc_cv_as_powerpc_fprnd=no
26324 if test $in_tree_gas = yes; then
26325 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26326 then gcc_cv_as_powerpc_fprnd=yes
26328 elif test x$gcc_cv_as != x; then
26329 $as_echo "$conftest_s" > conftest.s
26330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26336 then
26337 gcc_cv_as_powerpc_fprnd=yes
26338 else
26339 echo "configure: failed program was" >&5
26340 cat conftest.s >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26346 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26347 if test $gcc_cv_as_powerpc_fprnd = yes; then
26349 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26354 case $target in
26355 *-*-aix*) conftest_s=' .machine "pwr6"
26356 .csect .text[PR]
26357 mffgpr 1,3';;
26358 *) conftest_s=' .machine power6
26359 .text
26360 mffgpr 1,3';;
26361 esac
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26364 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26365 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26366 $as_echo_n "(cached) " >&6
26367 else
26368 gcc_cv_as_powerpc_mfpgpr=no
26369 if test $in_tree_gas = yes; then
26370 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26371 then gcc_cv_as_powerpc_mfpgpr=yes
26373 elif test x$gcc_cv_as != x; then
26374 $as_echo "$conftest_s" > conftest.s
26375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26377 (eval $ac_try) 2>&5
26378 ac_status=$?
26379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26380 test $ac_status = 0; }; }
26381 then
26382 gcc_cv_as_powerpc_mfpgpr=yes
26383 else
26384 echo "configure: failed program was" >&5
26385 cat conftest.s >&5
26387 rm -f conftest.o conftest.s
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26391 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26392 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26394 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26399 case $target in
26400 *-*-aix*) conftest_s=' .csect .text[PR]
26401 LCF..0:
26402 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26403 *-*-darwin*)
26404 conftest_s=' .text
26405 LCF0:
26406 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26407 *) conftest_s=' .text
26408 .LCF0:
26409 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26410 esac
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26413 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26414 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26415 $as_echo_n "(cached) " >&6
26416 else
26417 gcc_cv_as_powerpc_rel16=no
26418 if test $in_tree_gas = yes; then
26419 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26420 then gcc_cv_as_powerpc_rel16=yes
26422 elif test x$gcc_cv_as != x; then
26423 $as_echo "$conftest_s" > conftest.s
26424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26426 (eval $ac_try) 2>&5
26427 ac_status=$?
26428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26429 test $ac_status = 0; }; }
26430 then
26431 gcc_cv_as_powerpc_rel16=yes
26432 else
26433 echo "configure: failed program was" >&5
26434 cat conftest.s >&5
26436 rm -f conftest.o conftest.s
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26440 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26441 if test $gcc_cv_as_powerpc_rel16 = yes; then
26443 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26448 case $target in
26449 *-*-aix*) conftest_s=' .machine "pwr6"
26450 .csect .text[PR]
26451 cmpb 3,4,5';;
26452 *) conftest_s=' .machine power6
26453 .text
26454 cmpb 3,4,5';;
26455 esac
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26458 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26459 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26460 $as_echo_n "(cached) " >&6
26461 else
26462 gcc_cv_as_powerpc_cmpb=no
26463 if test $in_tree_gas = yes; then
26464 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26465 then gcc_cv_as_powerpc_cmpb=yes
26467 elif test x$gcc_cv_as != x; then
26468 $as_echo "$conftest_s" > conftest.s
26469 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }
26475 then
26476 gcc_cv_as_powerpc_cmpb=yes
26477 else
26478 echo "configure: failed program was" >&5
26479 cat conftest.s >&5
26481 rm -f conftest.o conftest.s
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26485 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26486 if test $gcc_cv_as_powerpc_cmpb = yes; then
26488 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26493 case $target in
26494 *-*-aix*) conftest_s=' .machine "pwr6"
26495 .csect .text[PR]
26496 dadd 1,2,3';;
26497 *) conftest_s=' .machine power6
26498 .text
26499 dadd 1,2,3';;
26500 esac
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26503 $as_echo_n "checking assembler for decimal float support... " >&6; }
26504 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26505 $as_echo_n "(cached) " >&6
26506 else
26507 gcc_cv_as_powerpc_dfp=no
26508 if test $in_tree_gas = yes; then
26509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26510 then gcc_cv_as_powerpc_dfp=yes
26512 elif test x$gcc_cv_as != x; then
26513 $as_echo "$conftest_s" > conftest.s
26514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }
26520 then
26521 gcc_cv_as_powerpc_dfp=yes
26522 else
26523 echo "configure: failed program was" >&5
26524 cat conftest.s >&5
26526 rm -f conftest.o conftest.s
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26530 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26531 if test $gcc_cv_as_powerpc_dfp = yes; then
26533 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26538 case $target in
26539 *-*-aix*) conftest_s=' .machine "pwr7"
26540 .csect .text[PR]
26541 lxvd2x 1,2,3';;
26542 *) conftest_s=' .machine power7
26543 .text
26544 lxvd2x 1,2,3';;
26545 esac
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26548 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26549 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26550 $as_echo_n "(cached) " >&6
26551 else
26552 gcc_cv_as_powerpc_vsx=no
26553 if test $in_tree_gas = yes; then
26554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26555 then gcc_cv_as_powerpc_vsx=yes
26557 elif test x$gcc_cv_as != x; then
26558 $as_echo "$conftest_s" > conftest.s
26559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26561 (eval $ac_try) 2>&5
26562 ac_status=$?
26563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26564 test $ac_status = 0; }; }
26565 then
26566 gcc_cv_as_powerpc_vsx=yes
26567 else
26568 echo "configure: failed program was" >&5
26569 cat conftest.s >&5
26571 rm -f conftest.o conftest.s
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26575 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26576 if test $gcc_cv_as_powerpc_vsx = yes; then
26578 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26583 case $target in
26584 *-*-aix*) conftest_s=' .machine "pwr7"
26585 .csect .text[PR]
26586 popcntd 3,3';;
26587 *) conftest_s=' .machine power7
26588 .text
26589 popcntd 3,3';;
26590 esac
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26593 $as_echo_n "checking assembler for popcntd support... " >&6; }
26594 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26595 $as_echo_n "(cached) " >&6
26596 else
26597 gcc_cv_as_powerpc_popcntd=no
26598 if test $in_tree_gas = yes; then
26599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26600 then gcc_cv_as_powerpc_popcntd=yes
26602 elif test x$gcc_cv_as != x; then
26603 $as_echo "$conftest_s" > conftest.s
26604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26606 (eval $ac_try) 2>&5
26607 ac_status=$?
26608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26609 test $ac_status = 0; }; }
26610 then
26611 gcc_cv_as_powerpc_popcntd=yes
26612 else
26613 echo "configure: failed program was" >&5
26614 cat conftest.s >&5
26616 rm -f conftest.o conftest.s
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26620 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26621 if test $gcc_cv_as_powerpc_popcntd = yes; then
26623 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26628 case $target in
26629 *-*-aix*) conftest_s=' .machine "pwr8"
26630 .csect .text[PR]';;
26631 *) conftest_s=' .machine power8
26632 .text';;
26633 esac
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26636 $as_echo_n "checking assembler for power8 support... " >&6; }
26637 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26638 $as_echo_n "(cached) " >&6
26639 else
26640 gcc_cv_as_powerpc_power8=no
26641 if test $in_tree_gas = yes; then
26642 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26643 then gcc_cv_as_powerpc_power8=yes
26645 elif test x$gcc_cv_as != x; then
26646 $as_echo "$conftest_s" > conftest.s
26647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26649 (eval $ac_try) 2>&5
26650 ac_status=$?
26651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; }
26653 then
26654 gcc_cv_as_powerpc_power8=yes
26655 else
26656 echo "configure: failed program was" >&5
26657 cat conftest.s >&5
26659 rm -f conftest.o conftest.s
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26663 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26664 if test $gcc_cv_as_powerpc_power8 = yes; then
26666 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26671 case $target in
26672 *-*-aix*) conftest_s=' .machine "pwr9"
26673 .csect .text[PR]';;
26674 *) conftest_s=' .machine power9
26675 .text';;
26676 esac
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26679 $as_echo_n "checking assembler for power9 support... " >&6; }
26680 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26681 $as_echo_n "(cached) " >&6
26682 else
26683 gcc_cv_as_powerpc_power9=no
26684 if test $in_tree_gas = yes; then
26685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26686 then gcc_cv_as_powerpc_power9=yes
26688 elif test x$gcc_cv_as != x; then
26689 $as_echo "$conftest_s" > conftest.s
26690 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26695 test $ac_status = 0; }; }
26696 then
26697 gcc_cv_as_powerpc_power9=yes
26698 else
26699 echo "configure: failed program was" >&5
26700 cat conftest.s >&5
26702 rm -f conftest.o conftest.s
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26706 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26707 if test $gcc_cv_as_powerpc_power9 = yes; then
26709 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26714 case $target in
26715 *-*-aix*) conftest_s=' .csect .text[PR]
26716 lwsync';;
26717 *) conftest_s=' .text
26718 lwsync';;
26719 esac
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26722 $as_echo_n "checking assembler for lwsync support... " >&6; }
26723 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26724 $as_echo_n "(cached) " >&6
26725 else
26726 gcc_cv_as_powerpc_lwsync=no
26727 if test $in_tree_gas = yes; then
26728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26729 then gcc_cv_as_powerpc_lwsync=yes
26731 elif test x$gcc_cv_as != x; then
26732 $as_echo "$conftest_s" > conftest.s
26733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; }
26739 then
26740 gcc_cv_as_powerpc_lwsync=yes
26741 else
26742 echo "configure: failed program was" >&5
26743 cat conftest.s >&5
26745 rm -f conftest.o conftest.s
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26749 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26750 if test $gcc_cv_as_powerpc_lwsync = yes; then
26752 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26757 case $target in
26758 *-*-aix*) conftest_s=' .machine "476"
26759 .csect .text[PR]
26760 dci 0';;
26761 *) conftest_s=' .machine "476"
26762 .text
26763 dci 0';;
26764 esac
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26767 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26768 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26769 $as_echo_n "(cached) " >&6
26770 else
26771 gcc_cv_as_powerpc_dci=no
26772 if test $in_tree_gas = yes; then
26773 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26774 then gcc_cv_as_powerpc_dci=yes
26776 elif test x$gcc_cv_as != x; then
26777 $as_echo "$conftest_s" > conftest.s
26778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26780 (eval $ac_try) 2>&5
26781 ac_status=$?
26782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26783 test $ac_status = 0; }; }
26784 then
26785 gcc_cv_as_powerpc_dci=yes
26786 else
26787 echo "configure: failed program was" >&5
26788 cat conftest.s >&5
26790 rm -f conftest.o conftest.s
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26794 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26795 if test $gcc_cv_as_powerpc_dci = yes; then
26797 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26803 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26804 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26805 $as_echo_n "(cached) " >&6
26806 else
26807 gcc_cv_as_powerpc_gnu_attribute=no
26808 if test $in_tree_gas = yes; then
26809 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26810 then gcc_cv_as_powerpc_gnu_attribute=yes
26812 elif test x$gcc_cv_as != x; then
26813 $as_echo '.gnu_attribute 4,1' > conftest.s
26814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26816 (eval $ac_try) 2>&5
26817 ac_status=$?
26818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26819 test $ac_status = 0; }; }
26820 then
26821 gcc_cv_as_powerpc_gnu_attribute=yes
26822 else
26823 echo "configure: failed program was" >&5
26824 cat conftest.s >&5
26826 rm -f conftest.o conftest.s
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26830 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26831 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26833 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26839 $as_echo_n "checking assembler for tls marker support... " >&6; }
26840 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26841 $as_echo_n "(cached) " >&6
26842 else
26843 gcc_cv_as_powerpc_tls_markers=no
26844 if test $in_tree_gas = yes; then
26845 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26846 then gcc_cv_as_powerpc_tls_markers=yes
26848 elif test x$gcc_cv_as != x; then
26849 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26855 test $ac_status = 0; }; }
26856 then
26857 gcc_cv_as_powerpc_tls_markers=yes
26858 else
26859 echo "configure: failed program was" >&5
26860 cat conftest.s >&5
26862 rm -f conftest.o conftest.s
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26866 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26867 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26869 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26875 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26876 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26877 $as_echo_n "(cached) " >&6
26878 else
26879 gcc_cv_as_powerpc_entry_markers=no
26880 if test $in_tree_gas = yes; then
26881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26882 then gcc_cv_as_powerpc_entry_markers=yes
26884 elif test x$gcc_cv_as != x; then
26885 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26891 test $ac_status = 0; }; }
26892 then
26893 gcc_cv_as_powerpc_entry_markers=yes
26894 else
26895 echo "configure: failed program was" >&5
26896 cat conftest.s >&5
26898 rm -f conftest.o conftest.s
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26902 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26903 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26905 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26910 case $target in
26911 *-*-aix*)
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26913 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26914 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26915 $as_echo_n "(cached) " >&6
26916 else
26917 gcc_cv_as_aix_ref=no
26918 if test $in_tree_gas = yes; then
26919 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26920 then gcc_cv_as_aix_ref=yes
26922 elif test x$gcc_cv_as != x; then
26923 $as_echo ' .csect stuff[rw]
26924 stuff:
26925 .long 1
26926 .extern sym
26927 .ref sym
26928 ' > conftest.s
26929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26931 (eval $ac_try) 2>&5
26932 ac_status=$?
26933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26934 test $ac_status = 0; }; }
26935 then
26936 gcc_cv_as_aix_ref=yes
26937 else
26938 echo "configure: failed program was" >&5
26939 cat conftest.s >&5
26941 rm -f conftest.o conftest.s
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26945 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26946 if test $gcc_cv_as_aix_ref = yes; then
26948 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26954 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26955 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26956 $as_echo_n "(cached) " >&6
26957 else
26958 gcc_cv_as_aix_dwloc=no
26959 if test $in_tree_gas = yes; then
26960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26961 then gcc_cv_as_aix_dwloc=yes
26963 elif test x$gcc_cv_as != x; then
26964 $as_echo ' .dwsect 0xA0000
26965 Lframe..0:
26966 .vbyte 4,Lframe..0
26967 ' > conftest.s
26968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26970 (eval $ac_try) 2>&5
26971 ac_status=$?
26972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26973 test $ac_status = 0; }; }
26974 then
26975 gcc_cv_as_aix_dwloc=yes
26976 else
26977 echo "configure: failed program was" >&5
26978 cat conftest.s >&5
26980 rm -f conftest.o conftest.s
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26984 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26985 if test $gcc_cv_as_aix_dwloc = yes; then
26987 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26992 esac
26995 mips*-*-*)
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26997 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26998 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26999 $as_echo_n "(cached) " >&6
27000 else
27001 gcc_cv_as_mips_explicit_relocs=no
27002 if test $in_tree_gas = yes; then
27003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27004 then gcc_cv_as_mips_explicit_relocs=yes
27006 elif test x$gcc_cv_as != x; then
27007 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27010 (eval $ac_try) 2>&5
27011 ac_status=$?
27012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27013 test $ac_status = 0; }; }
27014 then
27015 gcc_cv_as_mips_explicit_relocs=yes
27016 else
27017 echo "configure: failed program was" >&5
27018 cat conftest.s >&5
27020 rm -f conftest.o conftest.s
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27024 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27025 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27026 if test x$target_cpu_default = x
27027 then target_cpu_default=MASK_EXPLICIT_RELOCS
27028 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27034 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27035 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27036 $as_echo_n "(cached) " >&6
27037 else
27038 gcc_cv_as_mips_no_shared=no
27039 if test $in_tree_gas = yes; then
27040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27041 then gcc_cv_as_mips_no_shared=yes
27043 elif test x$gcc_cv_as != x; then
27044 $as_echo 'nop' > conftest.s
27045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27047 (eval $ac_try) 2>&5
27048 ac_status=$?
27049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27050 test $ac_status = 0; }; }
27051 then
27052 gcc_cv_as_mips_no_shared=yes
27053 else
27054 echo "configure: failed program was" >&5
27055 cat conftest.s >&5
27057 rm -f conftest.o conftest.s
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27061 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27062 if test $gcc_cv_as_mips_no_shared = yes; then
27064 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27070 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27071 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27072 $as_echo_n "(cached) " >&6
27073 else
27074 gcc_cv_as_mips_gnu_attribute=no
27075 if test $in_tree_gas = yes; then
27076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27077 then gcc_cv_as_mips_gnu_attribute=yes
27079 elif test x$gcc_cv_as != x; then
27080 $as_echo '.gnu_attribute 4,1' > 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_mips_gnu_attribute=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_mips_gnu_attribute" >&5
27097 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27098 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27100 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27106 $as_echo_n "checking assembler for .module support... " >&6; }
27107 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27108 $as_echo_n "(cached) " >&6
27109 else
27110 gcc_cv_as_mips_dot_module=no
27111 if test x$gcc_cv_as != x; then
27112 $as_echo '.module mips2
27113 .module fp=xx' > conftest.s
27114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27116 (eval $ac_try) 2>&5
27117 ac_status=$?
27118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119 test $ac_status = 0; }; }
27120 then
27121 gcc_cv_as_mips_dot_module=yes
27122 else
27123 echo "configure: failed program was" >&5
27124 cat conftest.s >&5
27126 rm -f conftest.o conftest.s
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27130 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27131 if test $gcc_cv_as_mips_dot_module = yes; then
27133 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27137 if test x$gcc_cv_as_mips_dot_module = xno \
27138 && test x$with_fp_32 != x; then
27139 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27143 $as_echo_n "checking assembler for .micromips support... " >&6; }
27144 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27145 $as_echo_n "(cached) " >&6
27146 else
27147 gcc_cv_as_micromips_support=no
27148 if test x$gcc_cv_as != x; then
27149 $as_echo '.set micromips' > conftest.s
27150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27155 test $ac_status = 0; }; }
27156 then
27157 gcc_cv_as_micromips_support=yes
27158 else
27159 echo "configure: failed program was" >&5
27160 cat conftest.s >&5
27162 rm -f conftest.o conftest.s
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27166 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27167 if test $gcc_cv_as_micromips_support = yes; then
27169 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27175 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27176 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27177 $as_echo_n "(cached) " >&6
27178 else
27179 gcc_cv_as_mips_dtprelword=no
27180 if test $in_tree_gas = yes; then
27181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27182 then gcc_cv_as_mips_dtprelword=yes
27184 elif test x$gcc_cv_as != x; then
27185 $as_echo '.section .tdata,"awT",@progbits
27187 .word 2
27188 .text
27189 .dtprelword x+0x8000' > conftest.s
27190 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27192 (eval $ac_try) 2>&5
27193 ac_status=$?
27194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27195 test $ac_status = 0; }; }
27196 then
27197 gcc_cv_as_mips_dtprelword=yes
27198 else
27199 echo "configure: failed program was" >&5
27200 cat conftest.s >&5
27202 rm -f conftest.o conftest.s
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27206 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27207 if test $gcc_cv_as_mips_dtprelword = yes; then
27209 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27215 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27216 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27217 $as_echo_n "(cached) " >&6
27218 else
27219 gcc_cv_as_mips_dspr1_mult=no
27220 if test x$gcc_cv_as != x; then
27221 $as_echo ' .set mips32r2
27222 .set nodspr2
27223 .set dsp
27224 madd $ac3,$4,$5
27225 maddu $ac3,$4,$5
27226 msub $ac3,$4,$5
27227 msubu $ac3,$4,$5
27228 mult $ac3,$4,$5
27229 multu $ac3,$4,$5' > conftest.s
27230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27232 (eval $ac_try) 2>&5
27233 ac_status=$?
27234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27235 test $ac_status = 0; }; }
27236 then
27237 gcc_cv_as_mips_dspr1_mult=yes
27238 else
27239 echo "configure: failed program was" >&5
27240 cat conftest.s >&5
27242 rm -f conftest.o conftest.s
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27246 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27247 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27249 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27255 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27256 gcc_cv_as_ld_jalr_reloc=no
27257 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27258 if test $in_tree_ld = yes ; then
27259 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 \
27260 && test $in_tree_ld_is_elf = yes; then
27261 gcc_cv_as_ld_jalr_reloc=yes
27263 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27264 echo ' .ent x' > conftest.s
27265 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27266 echo ' lw $25,%call16(y)($28)' >> conftest.s
27267 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27268 echo '1: jalr $25' >> conftest.s
27269 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27270 echo '1: jalr $25' >> conftest.s
27271 echo ' .end x' >> conftest.s
27272 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27273 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27274 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27275 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27276 gcc_cv_as_ld_jalr_reloc=yes
27279 rm -f conftest.*
27282 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27283 if test x$target_cpu_default = x; then
27284 target_cpu_default=MASK_RELAX_PIC_CALLS
27285 else
27286 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27290 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27293 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27294 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27295 $as_echo_n "(cached) " >&6
27296 else
27297 gcc_cv_ld_mips_personality_relaxation=no
27298 if test $in_tree_ld = yes ; then
27299 if test "$gcc_cv_gld_major_version" -eq 2 \
27300 -a "$gcc_cv_gld_minor_version" -ge 21 \
27301 -o "$gcc_cv_gld_major_version" -gt 2; then
27302 gcc_cv_ld_mips_personality_relaxation=yes
27304 elif test x$gcc_cv_as != x \
27305 -a x$gcc_cv_ld != x \
27306 -a x$gcc_cv_readelf != x ; then
27307 cat > conftest.s <<EOF
27308 .cfi_startproc
27309 .cfi_personality 0x80,indirect_ptr
27310 .ent test
27311 test:
27313 .end test
27314 .cfi_endproc
27316 .section .data,"aw",@progbits
27317 indirect_ptr:
27318 .dc.a personality
27320 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27321 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27322 if $gcc_cv_readelf -d conftest 2>&1 \
27323 | grep TEXTREL > /dev/null 2>&1; then
27325 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27326 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27328 else
27329 gcc_cv_ld_mips_personality_relaxation=yes
27333 rm -f conftest.s conftest.o conftest
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27336 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27337 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27339 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27344 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27345 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27346 $as_echo_n "(cached) " >&6
27347 else
27348 gcc_cv_as_mips_nan=no
27349 if test x$gcc_cv_as != x; then
27350 $as_echo '' > conftest.s
27351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27353 (eval $ac_try) 2>&5
27354 ac_status=$?
27355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27356 test $ac_status = 0; }; }
27357 then
27358 gcc_cv_as_mips_nan=yes
27359 else
27360 echo "configure: failed program was" >&5
27361 cat conftest.s >&5
27363 rm -f conftest.o conftest.s
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27367 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27368 if test $gcc_cv_as_mips_nan = yes; then
27370 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27374 if test x$gcc_cv_as_mips_nan = xno \
27375 && test x$with_nan != x; then
27376 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27379 s390*-*-*)
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27381 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27382 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27383 $as_echo_n "(cached) " >&6
27384 else
27385 gcc_cv_as_s390_gnu_attribute=no
27386 if test $in_tree_gas = yes; then
27387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27388 then gcc_cv_as_s390_gnu_attribute=yes
27390 elif test x$gcc_cv_as != x; then
27391 $as_echo '.gnu_attribute 8,1' > conftest.s
27392 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27394 (eval $ac_try) 2>&5
27395 ac_status=$?
27396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27397 test $ac_status = 0; }; }
27398 then
27399 gcc_cv_as_s390_gnu_attribute=yes
27400 else
27401 echo "configure: failed program was" >&5
27402 cat conftest.s >&5
27404 rm -f conftest.o conftest.s
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27408 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27409 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27411 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27416 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27417 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27418 $as_echo_n "(cached) " >&6
27419 else
27420 gcc_cv_as_s390_machine_machinemode=no
27421 if test $in_tree_gas = yes; then
27422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27423 then gcc_cv_as_s390_machine_machinemode=yes
27425 elif test x$gcc_cv_as != x; then
27426 $as_echo ' .machinemode push
27427 .machinemode pop
27428 .machine push
27429 .machine pop' > conftest.s
27430 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27432 (eval $ac_try) 2>&5
27433 ac_status=$?
27434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27435 test $ac_status = 0; }; }
27436 then
27437 gcc_cv_as_s390_machine_machinemode=yes
27438 else
27439 echo "configure: failed program was" >&5
27440 cat conftest.s >&5
27442 rm -f conftest.o conftest.s
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27446 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27447 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27449 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27454 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27455 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27456 $as_echo_n "(cached) " >&6
27457 else
27458 gcc_cv_as_s390_architecture_modifiers=no
27459 if test $in_tree_gas = yes; then
27460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27461 then gcc_cv_as_s390_architecture_modifiers=yes
27463 elif test x$gcc_cv_as != x; then
27464 $as_echo ' .machine z13+vx ' > conftest.s
27465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27467 (eval $ac_try) 2>&5
27468 ac_status=$?
27469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27470 test $ac_status = 0; }; }
27471 then
27472 gcc_cv_as_s390_architecture_modifiers=yes
27473 else
27474 echo "configure: failed program was" >&5
27475 cat conftest.s >&5
27477 rm -f conftest.o conftest.s
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27481 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27482 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27484 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27489 esac
27491 # Mips and HP-UX need the GNU assembler.
27492 # Linux on IA64 might be able to use the Intel assembler.
27494 case "$target" in
27495 mips*-*-* | *-*-hpux* )
27496 if test x$gas_flag = xyes \
27497 || test x"$host" != x"$build" \
27498 || test ! -x "$gcc_cv_as" \
27499 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27501 else
27502 echo "*** This configuration requires the GNU assembler" >&2
27503 exit 1
27506 esac
27508 # ??? Not all targets support dwarf2 debug_line, even within a version
27509 # of gas. Moreover, we need to emit a valid instruction to trigger any
27510 # info to the output file. So, as supported targets are added to gas 2.11,
27511 # add some instruction here to (also) show we expect this might work.
27512 # ??? Once 2.11 is released, probably need to add first known working
27513 # version to the per-target configury.
27514 case "$cpu_type" in
27515 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27516 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27517 | visium | xstormy16 | xtensa)
27518 insn="nop"
27520 ia64 | s390)
27521 insn="nop 0"
27523 mmix)
27524 insn="swym 0"
27526 esac
27527 if test x"$insn" != x; then
27528 conftest_s="\
27529 .file 1 \"conftest.s\"
27530 .loc 1 3 0
27531 $insn"
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27533 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27534 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27535 $as_echo_n "(cached) " >&6
27536 else
27537 gcc_cv_as_dwarf2_debug_line=no
27538 if test $in_tree_gas = yes; then
27539 if test $in_tree_gas_is_elf = yes \
27540 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27541 then gcc_cv_as_dwarf2_debug_line=yes
27543 elif test x$gcc_cv_as != x; then
27544 $as_echo "$conftest_s" > conftest.s
27545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27550 test $ac_status = 0; }; }
27551 then
27552 if test x$gcc_cv_objdump != x \
27553 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27554 | grep debug_line > /dev/null 2>&1; then
27555 gcc_cv_as_dwarf2_debug_line=yes
27557 else
27558 echo "configure: failed program was" >&5
27559 cat conftest.s >&5
27561 rm -f conftest.o conftest.s
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27565 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27569 # The .debug_line file table must be in the exact order that
27570 # we specified the files, since these indices are also used
27571 # by DW_AT_decl_file. Approximate this test by testing if
27572 # the assembler bitches if the same index is assigned twice.
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27574 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27575 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27576 $as_echo_n "(cached) " >&6
27577 else
27578 gcc_cv_as_dwarf2_file_buggy=no
27579 if test x$gcc_cv_as != x; then
27580 $as_echo ' .file 1 "foo.s"
27581 .file 1 "bar.s"' > 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_dwarf2_file_buggy=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_dwarf2_file_buggy" >&5
27598 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27602 if test $gcc_cv_as_dwarf2_debug_line = yes \
27603 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27605 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27610 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27611 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27612 $as_echo_n "(cached) " >&6
27613 else
27614 gcc_cv_as_gdwarf2_flag=no
27615 if test $in_tree_gas = yes; then
27616 if test $in_tree_gas_is_elf = yes \
27617 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27618 then gcc_cv_as_gdwarf2_flag=yes
27620 elif test x$gcc_cv_as != x; then
27621 $as_echo "$insn" > conftest.s
27622 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27625 ac_status=$?
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; }
27628 then
27629 gcc_cv_as_gdwarf2_flag=yes
27630 else
27631 echo "configure: failed program was" >&5
27632 cat conftest.s >&5
27634 rm -f conftest.o conftest.s
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27638 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27639 if test $gcc_cv_as_gdwarf2_flag = yes; then
27641 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27647 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27648 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27649 $as_echo_n "(cached) " >&6
27650 else
27651 gcc_cv_as_gstabs_flag=no
27652 if test $in_tree_gas = yes; then
27653 if test $in_tree_gas_is_elf = yes \
27654 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27655 then gcc_cv_as_gstabs_flag=yes
27657 elif test x$gcc_cv_as != x; then
27658 $as_echo "$insn" > conftest.s
27659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27661 (eval $ac_try) 2>&5
27662 ac_status=$?
27663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27664 test $ac_status = 0; }; }
27665 then
27666 gcc_cv_as_gstabs_flag=yes
27667 else
27668 echo "configure: failed program was" >&5
27669 cat conftest.s >&5
27671 rm -f conftest.o conftest.s
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27675 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27676 if test $gcc_cv_as_gstabs_flag = yes; then
27678 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27684 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27685 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27686 $as_echo_n "(cached) " >&6
27687 else
27688 gcc_cv_as_debug_prefix_map_flag=no
27689 if test $in_tree_gas = yes; then
27690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27691 then gcc_cv_as_debug_prefix_map_flag=yes
27693 elif test x$gcc_cv_as != x; then
27694 $as_echo "$insn" > conftest.s
27695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27697 (eval $ac_try) 2>&5
27698 ac_status=$?
27699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27700 test $ac_status = 0; }; }
27701 then
27702 gcc_cv_as_debug_prefix_map_flag=yes
27703 else
27704 echo "configure: failed program was" >&5
27705 cat conftest.s >&5
27707 rm -f conftest.o conftest.s
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27711 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27712 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27714 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27721 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27722 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27723 $as_echo_n "(cached) " >&6
27724 else
27725 gcc_cv_as_compress_debug=no
27726 if test x$gcc_cv_as != x; then
27727 $as_echo '' > conftest.s
27728 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27730 (eval $ac_try) 2>&5
27731 ac_status=$?
27732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27733 test $ac_status = 0; }; }
27734 then
27735 # gas compiled without zlib cannot compress debug sections and warns
27736 # about it, but still exits successfully. So check for this, too.
27737 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27738 then
27739 gcc_cv_as_compress_debug=0
27740 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27741 # defaulting to the ELF gABI format.
27742 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27743 then
27744 gcc_cv_as_compress_debug=2
27745 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27746 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27747 # Before binutils 2.26, gas only supported --compress-debug-options and
27748 # emitted the traditional GNU format.
27749 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27750 then
27751 gcc_cv_as_compress_debug=1
27752 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27753 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27754 else
27755 gcc_cv_as_compress_debug=0
27757 else
27758 echo "configure: failed program was" >&5
27759 cat conftest.s >&5
27761 rm -f conftest.o conftest.s
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27765 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27769 cat >>confdefs.h <<_ACEOF
27770 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27771 _ACEOF
27774 cat >>confdefs.h <<_ACEOF
27775 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27776 _ACEOF
27779 cat >>confdefs.h <<_ACEOF
27780 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27781 _ACEOF
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27785 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27786 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27787 $as_echo_n "(cached) " >&6
27788 else
27789 gcc_cv_as_lcomm_with_alignment=no
27790 if test x$gcc_cv_as != x; then
27791 $as_echo '.lcomm bar,4,16' > conftest.s
27792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27794 (eval $ac_try) 2>&5
27795 ac_status=$?
27796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27797 test $ac_status = 0; }; }
27798 then
27799 gcc_cv_as_lcomm_with_alignment=yes
27800 else
27801 echo "configure: failed program was" >&5
27802 cat conftest.s >&5
27804 rm -f conftest.o conftest.s
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27808 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27809 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27811 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27816 if test x$with_sysroot = x && test x$host = x$target \
27817 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27818 && test "$prefix" != "NONE"; then
27820 cat >>confdefs.h <<_ACEOF
27821 #define PREFIX_INCLUDE_DIR "$prefix/include"
27822 _ACEOF
27826 # Determine the version of glibc, if any, used on the target.
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27828 $as_echo_n "checking for target glibc version... " >&6; }
27830 # Check whether --with-glibc-version was given.
27831 if test "${with_glibc_version+set}" = set; then :
27832 withval=$with_glibc_version;
27833 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27834 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27835 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27836 else
27837 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27839 else
27841 glibc_version_major=0
27842 glibc_version_minor=0
27843 if test -f $target_header_dir/features.h \
27844 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27845 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27846 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27847 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27852 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27854 cat >>confdefs.h <<_ACEOF
27855 #define TARGET_GLIBC_MAJOR $glibc_version_major
27856 _ACEOF
27859 cat >>confdefs.h <<_ACEOF
27860 #define TARGET_GLIBC_MINOR $glibc_version_minor
27861 _ACEOF
27864 # Check whether --enable-gnu-unique-object was given.
27865 if test "${enable_gnu_unique_object+set}" = set; then :
27866 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27867 yes | no) ;;
27868 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27869 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27870 esac
27871 else
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27873 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27874 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27875 $as_echo_n "(cached) " >&6
27876 else
27877 gcc_cv_as_gnu_unique_object=no
27878 if test $in_tree_gas = yes; then
27879 if test $in_tree_gas_is_elf = yes \
27880 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27881 then gcc_cv_as_gnu_unique_object=yes
27883 elif test x$gcc_cv_as != x; then
27884 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27887 (eval $ac_try) 2>&5
27888 ac_status=$?
27889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27890 test $ac_status = 0; }; }
27891 then
27892 gcc_cv_as_gnu_unique_object=yes
27893 else
27894 echo "configure: failed program was" >&5
27895 cat conftest.s >&5
27897 rm -f conftest.o conftest.s
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27901 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27902 if test $gcc_cv_as_gnu_unique_object = yes; then
27903 # We need to unquote above to to use the definition from config.gcc.
27904 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27906 if test $glibc_version_major -gt 2 \
27907 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27908 enable_gnu_unique_object=yes
27915 if test x$enable_gnu_unique_object = xyes; then
27917 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27922 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27923 if test "${gcc_cv_as_line_zero+set}" = set; then :
27924 $as_echo_n "(cached) " >&6
27925 else
27926 gcc_cv_as_line_zero=no
27927 if test $in_tree_gas = yes; then
27928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27929 then gcc_cv_as_line_zero=yes
27931 elif test "x$gcc_cv_as" != x; then
27932 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27933 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27935 (eval $ac_try) 2>&5
27936 ac_status=$?
27937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27938 test $ac_status = 0; }; } &&
27939 test "x`cat conftest.out`" = x
27940 then
27941 gcc_cv_as_line_zero=yes
27942 else
27943 echo "configure: failed program was" >&5
27944 cat conftest.s >&5
27945 echo "configure: error output was" >&5
27946 cat conftest.out >&5
27948 rm -f conftest.o conftest.s conftest.out
27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27952 $as_echo "$gcc_cv_as_line_zero" >&6; }
27953 if test "x$gcc_cv_as_line_zero" = xyes; then
27955 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27960 $as_echo_n "checking support for thin archives... " >&6; }
27961 thin_archive_support=no
27962 echo 'int main (void) { return 0; }' > conftest.c
27963 if ($AR --version | sed 1q | grep "GNU ar" \
27964 && $CC $CFLAGS -c conftest.c \
27965 && $AR rcT conftest.a conftest.o \
27966 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27967 thin_archive_support=yes
27969 rm -f conftest.c conftest.o conftest.a conftest
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27971 $as_echo "$thin_archive_support" >&6; }
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27975 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27976 gcc_cv_ld_eh_frame_hdr=no
27977 if test $in_tree_ld = yes ; then
27978 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 \
27979 && test $in_tree_ld_is_elf = yes; then
27980 gcc_cv_ld_eh_frame_hdr=yes
27982 elif test x$gcc_cv_ld != x; then
27983 if echo "$ld_ver" | grep GNU > /dev/null; then
27984 # Check if linker supports --eh-frame-hdr option
27985 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27986 gcc_cv_ld_eh_frame_hdr=yes
27988 else
27989 case "$target" in
27990 *-*-solaris2*)
27991 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27992 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27993 gcc_cv_ld_eh_frame_hdr=yes
27996 esac
28000 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28002 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28006 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28009 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28010 gcc_cv_ld_eh_frame_ciev3=no
28011 if test $in_tree_ld = yes ; then
28012 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 \
28013 && test $in_tree_ld_is_elf = yes; then
28014 gcc_cv_ld_eh_frame_ciev3=yes
28016 elif test x$gcc_cv_ld != x; then
28017 if echo "$ld_ver" | grep GNU > /dev/null; then
28018 gcc_cv_ld_eh_frame_ciev3=yes
28019 if test 0"$ld_date" -lt 20040513; then
28020 if test -n "$ld_date"; then
28021 # If there was date string, but was earlier than 2004-05-13, fail
28022 gcc_cv_ld_eh_frame_ciev3=no
28023 elif test "$ld_vers_major" -lt 2; then
28024 gcc_cv_ld_eh_frame_ciev3=no
28025 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28026 gcc_cv_ld_eh_frame_ciev3=no
28029 else
28030 case "$target" in
28031 *-*-solaris2*)
28032 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28033 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28034 gcc_cv_ld_eh_frame_ciev3=yes
28037 esac
28041 cat >>confdefs.h <<_ACEOF
28042 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28043 _ACEOF
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28046 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28049 $as_echo_n "checking linker position independent executable support... " >&6; }
28050 gcc_cv_ld_pie=no
28051 if test $in_tree_ld = yes ; then
28052 case "$target" in
28053 # Full PIE support on Solaris was only introduced in gld 2.26.
28054 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28055 *) gcc_gld_pie_min_version=15 ;;
28056 esac
28057 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 \
28058 && test $in_tree_ld_is_elf = yes; then
28059 gcc_cv_ld_pie=yes
28061 elif test x$gcc_cv_ld != x; then
28062 # Check if linker supports -pie option
28063 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
28064 gcc_cv_ld_pie=yes
28065 case "$target" in
28066 *-*-solaris2*)
28067 if echo "$ld_ver" | grep GNU > /dev/null \
28068 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28069 gcc_cv_ld_pie=no
28072 esac
28073 else
28074 case "$target" in
28075 *-*-solaris2.1[1-9]*)
28076 # Solaris 11.x and Solaris 12 added PIE support.
28077 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28078 gcc_cv_ld_pie=yes
28081 esac
28084 if test x"$gcc_cv_ld_pie" = xyes; then
28086 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28090 $as_echo "$gcc_cv_ld_pie" >&6; }
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28093 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28094 gcc_cv_ld_pie_copyreloc=no
28095 if test $gcc_cv_ld_pie = yes ; then
28096 if test $in_tree_ld = yes ; then
28097 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
28098 gcc_cv_ld_pie_copyreloc=yes
28100 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28101 # Check if linker supports -pie option with copy reloc
28102 case "$target" in
28103 i?86-*-linux* | x86_64-*-linux*)
28104 cat > conftest1.s <<EOF
28105 .globl a_glob
28106 .data
28107 .type a_glob, @object
28108 .size a_glob, 4
28109 a_glob:
28110 .long 2
28112 cat > conftest2.s <<EOF
28113 .text
28114 .globl main
28115 .type main, @function
28116 main:
28117 movl %eax, a_glob(%rip)
28118 .size main, .-main
28119 .globl ptr
28120 .section .data.rel,"aw",@progbits
28121 .type ptr, @object
28122 ptr:
28123 .quad a_glob
28125 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28126 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28127 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28128 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28129 gcc_cv_ld_pie_copyreloc=yes
28131 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28133 esac
28137 cat >>confdefs.h <<_ACEOF
28138 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28139 _ACEOF
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28142 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28145 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28146 gcc_cv_ld_eh_gc_sections=no
28147 if test $in_tree_ld = yes ; then
28148 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 \
28149 && test $in_tree_ld_is_elf = yes; then
28150 gcc_cv_ld_eh_gc_sections=yes
28152 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28153 cat > conftest.s <<EOF
28154 .section .text
28155 .globl _start
28156 .type _start, @function
28157 _start:
28158 .long foo
28159 .size _start, .-_start
28160 .section .text.foo,"ax",@progbits
28161 .type foo, @function
28162 foo:
28163 .long 0
28164 .size foo, .-foo
28165 .section .gcc_except_table.foo,"a",@progbits
28166 .L0:
28167 .long 0
28168 .section .eh_frame,"a",@progbits
28169 .long .L0
28171 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28172 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28173 | grep "gc-sections option ignored" > /dev/null; then
28174 gcc_cv_ld_eh_gc_sections=no
28175 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28176 | grep gcc_except_table > /dev/null; then
28177 gcc_cv_ld_eh_gc_sections=yes
28178 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28179 if test x$gcc_cv_as_comdat_group != xyes; then
28180 gcc_cv_ld_eh_gc_sections=no
28181 cat > conftest.s <<EOF
28182 .section .text
28183 .globl _start
28184 .type _start, @function
28185 _start:
28186 .long foo
28187 .size _start, .-_start
28188 .section .gnu.linkonce.t.foo,"ax",@progbits
28189 .type foo, @function
28190 foo:
28191 .long 0
28192 .size foo, .-foo
28193 .section .gcc_except_table.foo,"a",@progbits
28194 .L0:
28195 .long 0
28196 .section .eh_frame,"a",@progbits
28197 .long .L0
28199 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28200 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28201 | grep "gc-sections option ignored" > /dev/null; then
28202 gcc_cv_ld_eh_gc_sections=no
28203 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28204 | grep gcc_except_table > /dev/null; then
28205 gcc_cv_ld_eh_gc_sections=yes
28211 rm -f conftest.s conftest.o conftest
28213 case "$target" in
28214 hppa*-*-linux*)
28215 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28216 gcc_cv_ld_eh_gc_sections=no
28218 esac
28219 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28221 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28225 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28228 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28229 gcc_cv_ld_eh_gc_sections_bug=no
28230 if test $in_tree_ld = yes ; then
28231 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 \
28232 && test $in_tree_ld_is_elf = yes; then
28233 gcc_cv_ld_eh_gc_sections_bug=yes
28235 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
28236 gcc_cv_ld_eh_gc_sections_bug=yes
28237 cat > conftest.s <<EOF
28238 .section .text
28239 .globl _start
28240 .type _start, @function
28241 _start:
28242 .long foo
28243 .size _start, .-_start
28244 .section .text.startup.foo,"ax",@progbits
28245 .type foo, @function
28246 foo:
28247 .long 0
28248 .size foo, .-foo
28249 .section .gcc_except_table.foo,"a",@progbits
28250 .L0:
28251 .long 0
28252 .section .eh_frame,"a",@progbits
28253 .long .L0
28255 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28256 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28257 | grep "gc-sections option ignored" > /dev/null; then
28259 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28260 | grep gcc_except_table > /dev/null; then
28261 gcc_cv_ld_eh_gc_sections_bug=no
28264 rm -f conftest.s conftest.o conftest
28266 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28268 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28272 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28275 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28276 # gold/gld support compressed debug sections since binutils 2.19/2.21
28277 # In binutils 2.26, gld gained support for the ELF gABI format.
28278 if test $in_tree_ld = yes ; then
28279 gcc_cv_ld_compress_debug=0
28280 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 \
28281 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28282 gcc_cv_ld_compress_debug=2
28283 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28284 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 \
28285 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28286 gcc_cv_ld_compress_debug=3
28287 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28288 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 \
28289 && test $in_tree_ld_is_elf = yes; then
28290 gcc_cv_ld_compress_debug=1
28292 elif echo "$ld_ver" | grep GNU > /dev/null; then
28293 if test "$ld_vers_major" -lt 2 \
28294 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28295 gcc_cv_ld_compress_debug=0
28296 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28297 gcc_cv_ld_compress_debug=1
28298 else
28299 gcc_cv_ld_compress_debug=3
28300 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28302 if test $ld_is_gold = yes; then
28303 gcc_cv_ld_compress_debug=2
28304 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28306 else
28307 case "${target}" in
28308 *-*-solaris2*)
28309 # Introduced in Solaris 11.2.
28310 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28311 gcc_cv_ld_compress_debug=3
28312 gcc_cv_ld_compress_debug_option="-z compress-sections"
28313 else
28314 gcc_cv_ld_compress_debug=0
28318 # Assume linkers other than GNU ld don't support compessed debug
28319 # sections.
28320 gcc_cv_ld_compress_debug=0
28322 esac
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28327 _ACEOF
28330 cat >>confdefs.h <<_ACEOF
28331 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28332 _ACEOF
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28335 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28337 if test x"$ld64_flag" = x"yes"; then
28339 # Set defaults for possibly untestable items.
28340 gcc_cv_ld64_export_dynamic=0
28342 if test "$build" = "$host"; then
28343 darwin_try_test=1
28344 else
28345 darwin_try_test=0
28348 # On Darwin, because of FAT library support, it is often possible to execute
28349 # exes from compatible archs even when the host differs from the build system.
28350 case "$build","$host" in
28351 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28352 darwin_try_test=1;;
28353 *) ;;
28354 esac
28356 # If the configurer specified a minimum ld64 version to be supported, then use
28357 # that to determine feature support.
28358 if test x"${gcc_cv_ld64_version}" != x; then
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28360 $as_echo_n "checking ld64 specified version... " >&6; }
28361 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28363 $as_echo "$gcc_cv_ld64_major" >&6; }
28364 if test "$gcc_cv_ld64_major" -ge 236; then
28365 gcc_cv_ld64_export_dynamic=1
28367 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28368 # If the version was not specified, try to find it.
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28370 $as_echo_n "checking linker version... " >&6; }
28371 if test x"${gcc_cv_ld64_version}" = x; then
28372 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28375 $as_echo "$gcc_cv_ld64_version" >&6; }
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28378 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28379 gcc_cv_ld64_export_dynamic=1
28380 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28381 gcc_cv_ld64_export_dynamic=0
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28384 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28387 if test x"${gcc_cv_ld64_version}" != x; then
28389 cat >>confdefs.h <<_ACEOF
28390 #define LD64_VERSION "${gcc_cv_ld64_version}"
28391 _ACEOF
28396 cat >>confdefs.h <<_ACEOF
28397 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28398 _ACEOF
28402 # --------
28403 # UNSORTED
28404 # --------
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28407 $as_echo_n "checking linker --as-needed support... " >&6; }
28408 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28409 $as_echo_n "(cached) " >&6
28410 else
28411 gcc_cv_ld_as_needed=no
28412 gcc_cv_ld_as_needed_option='--as-needed'
28413 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28414 if test $in_tree_ld = yes ; then
28415 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 \
28416 && test $in_tree_ld_is_elf = yes; then
28417 gcc_cv_ld_as_needed=yes
28419 elif test x$gcc_cv_ld != x; then
28420 # Check if linker supports --as-needed and --no-as-needed options
28421 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28422 gcc_cv_ld_as_needed=yes
28423 else
28424 case "$target" in
28425 # Solaris 2 ld always supports -z ignore/-z record.
28426 *-*-solaris2*)
28427 gcc_cv_ld_as_needed=yes
28428 gcc_cv_ld_as_needed_option="-z ignore"
28429 gcc_cv_ld_no_as_needed_option="-z record"
28431 esac
28434 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28435 # dl_iterate_phdr, i.e. since Solaris 11.
28436 case "$target" in
28437 *-*-solaris2.1[1-9]*)
28438 case "$target" in
28439 i?86-*-* | x86_64-*-*)
28440 if echo "$ld_ver" | grep GNU > /dev/null; then
28441 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28442 gcc_cv_ld_as_needed=no
28445 esac
28447 *-*-solaris2*)
28448 gcc_cv_ld_as_needed=no
28450 esac
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28454 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28455 if test x"$gcc_cv_ld_as_needed" = xyes; then
28457 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28460 cat >>confdefs.h <<_ACEOF
28461 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28462 _ACEOF
28465 cat >>confdefs.h <<_ACEOF
28466 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28467 _ACEOF
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28472 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28473 saved_LDFLAGS="$LDFLAGS"
28474 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28475 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28477 /* end confdefs.h. */
28478 int main(void) {return 0;}
28479 _ACEOF
28480 if ac_fn_cxx_try_link "$LINENO"; then :
28481 gcc_cv_ld_clearcap=yes; break
28482 else
28483 gcc_cv_ld_clearcap=no
28485 rm -f core conftest.err conftest.$ac_objext \
28486 conftest$ac_exeext conftest.$ac_ext
28487 done
28488 LDFLAGS="$saved_LDFLAGS"
28489 if test "x$gcc_cv_ld_clearcap" = xyes; then
28491 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28493 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28497 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28499 case "$target" in
28500 powerpc*-*-*)
28501 case "$target" in
28502 *le-*-linux*)
28503 emul_name="-melf32lppc"
28506 emul_name="-melf32ppc"
28508 esac
28509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28510 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28511 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28512 $as_echo_n "(cached) " >&6
28513 else
28514 gcc_cv_ld_ppc_attr=no
28515 if test x"$ld_is_gold" = xyes; then
28516 gcc_cv_ld_ppc_attr=yes
28517 elif test $in_tree_ld = yes ; then
28518 if test "$gcc_cv_gld_major_version" -eq 2 \
28519 -a "$gcc_cv_gld_minor_version" -ge 28 \
28520 -o "$gcc_cv_gld_major_version" -gt 2; then
28521 gcc_cv_ld_ppc_attr=yes
28523 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28524 # check that merging the long double .gnu_attribute doesn't warn
28525 cat > conftest1.s <<EOF
28526 .gnu_attribute 4,1
28528 cat > conftest2.s <<EOF
28529 .gnu_attribute 4,9
28531 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28532 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28533 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28534 && test ! -s conftest.err; then
28535 gcc_cv_ld_ppc_attr=yes
28537 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28542 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28543 if test x$gcc_cv_ld_ppc_attr = xyes; then
28545 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28549 esac
28551 case "$target:$tm_file" in
28552 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28553 case "$target" in
28554 *le-*-linux*)
28555 emul_name="-melf64lppc"
28557 *-*-linux*)
28558 emul_name="-melf64ppc"
28560 *-*-freebsd*)
28561 emul_name="-melf64ppc_fbsd"
28563 esac
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28565 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28566 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28567 $as_echo_n "(cached) " >&6
28568 else
28569 gcc_cv_ld_no_dot_syms=no
28570 if test x"$ld_is_gold" = xyes; then
28571 gcc_cv_ld_no_dot_syms=yes
28572 elif test $in_tree_ld = yes ; then
28573 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
28574 gcc_cv_ld_no_dot_syms=yes
28576 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28577 cat > conftest1.s <<EOF
28578 .text
28579 bl .foo
28581 cat > conftest2.s <<EOF
28582 .section ".opd","aw"
28583 .align 3
28584 .globl foo
28585 .type foo,@function
28586 foo:
28587 .quad .LEfoo,.TOC.@tocbase,0
28588 .text
28589 .LEfoo:
28591 .size foo,.-.LEfoo
28593 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28594 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28595 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28596 gcc_cv_ld_no_dot_syms=yes
28598 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28603 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28604 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28606 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28611 $as_echo_n "checking linker large toc support... " >&6; }
28612 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28613 $as_echo_n "(cached) " >&6
28614 else
28615 gcc_cv_ld_large_toc=no
28616 if test x"$ld_is_gold" = xyes; then
28617 gcc_cv_ld_large_toc=yes
28618 elif test $in_tree_ld = yes ; then
28619 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
28620 gcc_cv_ld_large_toc=yes
28622 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28623 cat > conftest.s <<EOF
28624 .section ".tbss","awT",@nobits
28625 .align 3
28626 ie0: .space 8
28627 .global _start
28628 .text
28629 _start:
28630 addis 9,13,ie0@got@tprel@ha
28631 ld 9,ie0@got@tprel@l(9)
28633 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28634 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28635 gcc_cv_ld_large_toc=yes
28637 rm -f conftest conftest.o conftest.s
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28642 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28643 if test x"$gcc_cv_ld_large_toc" = xyes; then
28645 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28650 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28651 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28652 $as_echo_n "(cached) " >&6
28653 else
28654 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28655 cat > conftest.s <<EOF
28656 .global _start
28657 .text
28658 _start:
28659 addis 9,2,x@got@ha
28660 .section .data.rel.ro,"aw",@progbits
28661 .p2align 16
28662 .space 32768
28663 x: .quad .TOC.
28665 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28666 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28667 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)) }'`
28669 rm -f conftest conftest.o conftest.s
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28674 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28675 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28677 cat >>confdefs.h <<_ACEOF
28678 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28679 _ACEOF
28683 esac
28685 case "$target" in
28686 *-*-aix*)
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28688 $as_echo_n "checking linker large toc support... " >&6; }
28689 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28690 $as_echo_n "(cached) " >&6
28691 else
28692 gcc_cv_ld_large_toc=no
28693 if test x$gcc_cv_as != x ; then
28694 cat > conftest.s <<EOF
28695 .toc
28696 LC..1:
28697 .tc a[TC],a[RW]
28698 .extern a[RW]
28699 .csect .text[PR]
28700 .largetoctest:
28701 addis 9,LC..1@u(2)
28702 ld 3,LC..1@l(9)
28704 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28705 gcc_cv_ld_large_toc=yes
28707 rm -f conftest conftest.o conftest.s
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28712 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28713 if test x"$gcc_cv_ld_large_toc" = xyes; then
28715 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28719 esac
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28722 $as_echo_n "checking linker --build-id support... " >&6; }
28723 if test "${gcc_cv_ld_buildid+set}" = set; then :
28724 $as_echo_n "(cached) " >&6
28725 else
28726 gcc_cv_ld_buildid=no
28727 if test $in_tree_ld = yes ; then
28728 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28729 "$gcc_cv_gld_minor_version" -ge 18 -o \
28730 "$gcc_cv_gld_major_version" -gt 2 \
28731 && test $in_tree_ld_is_elf = yes; then
28732 gcc_cv_ld_buildid=yes
28734 elif test x$gcc_cv_ld != x; then
28735 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28736 gcc_cv_ld_buildid=yes
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28741 $as_echo "$gcc_cv_ld_buildid" >&6; }
28742 if test x"$gcc_cv_ld_buildid" = xyes; then
28744 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28748 # Check whether --enable-linker-build-id was given.
28749 if test "${enable_linker_build_id+set}" = set; then :
28750 enableval=$enable_linker_build_id;
28751 else
28752 enable_linker_build_id=no
28756 if test x"$enable_linker_build_id" = xyes; then
28757 if test x"$gcc_cv_ld_buildid" = xyes; then
28759 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28761 else
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28763 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28767 # In binutils 2.21, GNU ld gained support for new emulations fully
28768 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28770 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28771 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28772 $as_echo_n "(cached) " >&6
28773 else
28774 gcc_cv_ld_sol2_emulation=no
28775 if test $in_tree_ld = yes ; then
28776 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28777 "$gcc_cv_gld_minor_version" -ge 21 -o \
28778 "$gcc_cv_gld_major_version" -gt 2 \
28779 && test $in_tree_ld_is_elf = yes; then
28780 gcc_cv_ld_sol2_emulation=yes
28782 elif test x$gcc_cv_ld != x; then
28783 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28784 grep _sol2 > /dev/null; then
28785 gcc_cv_ld_sol2_emulation=yes
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28790 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28791 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28793 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28798 $as_echo_n "checking linker --sysroot support... " >&6; }
28799 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28800 $as_echo_n "(cached) " >&6
28801 else
28802 gcc_cv_ld_sysroot=no
28803 if test $in_tree_ld = yes ; then
28804 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
28805 gcc_cv_ld_sysroot=yes
28807 elif test x$gcc_cv_ld != x; then
28808 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28809 gcc_cv_ld_sysroot=yes
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28814 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28815 if test x"$gcc_cv_ld_sysroot" = xyes; then
28817 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28821 case $target in
28822 *-*-solaris2*)
28823 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28825 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28826 if test "${gcc_cv_solaris_crts+set}" = set; then :
28827 $as_echo_n "(cached) " >&6
28828 else
28829 gcc_cv_solaris_crts=no
28830 if test x$host != x$target; then
28831 if test "x$with_sysroot" = xyes; then
28832 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28833 else
28834 target_sysroot="${with_sysroot}"
28837 target_libdir="$target_sysroot/usr/lib"
28838 # At the time they were added, gcrt1.o became a symlink for backwards
28839 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28840 case $target in
28841 i?86-*-solaris2* | x86_64-*-solaris2*)
28842 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28844 sparc*-*-solaris2*)
28845 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28847 esac
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28850 $as_echo "$gcc_cv_solaris_crts" >&6; }
28852 esac
28853 if test x$gcc_cv_solaris_crts = xyes; then
28855 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28859 # Test for stack protector support in target C library.
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28861 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28862 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28863 $as_echo_n "(cached) " >&6
28864 else
28865 gcc_cv_libc_provides_ssp=no
28866 case "$target" in
28867 *-*-musl*)
28868 # All versions of musl provide stack protector
28869 gcc_cv_libc_provides_ssp=yes;;
28870 *-*-linux* | *-*-kfreebsd*-gnu)
28871 # glibc 2.4 and later provides __stack_chk_fail and
28872 # either __stack_chk_guard, or TLS access to stack guard canary.
28874 if test $glibc_version_major -gt 2 \
28875 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28876 gcc_cv_libc_provides_ssp=yes
28877 else
28879 if test -f $target_header_dir/features.h \
28880 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28881 $target_header_dir/features.h > /dev/null; then
28882 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28883 $target_header_dir/features.h > /dev/null && \
28884 test -f $target_header_dir/bits/uClibc_config.h && \
28885 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28886 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28887 gcc_cv_libc_provides_ssp=yes
28889 # all versions of Bionic support stack protector
28890 elif test -f $target_header_dir/sys/cdefs.h \
28891 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28892 $target_header_dir/sys/cdefs.h > /dev/null; then
28893 gcc_cv_libc_provides_ssp=yes
28897 *-*-gnu*)
28898 # Avoid complicated tests (see
28899 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28900 # simply assert that glibc does provide this, which is true for all
28901 # realistically usable GNU/Hurd configurations.
28902 # All supported versions of musl provide it as well
28903 gcc_cv_libc_provides_ssp=yes;;
28904 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28905 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28906 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28907 gcc_cv_libc_provides_ssp=yes
28908 else
28909 echo "no __stack_chk_fail on this target"
28913 *) gcc_cv_libc_provides_ssp=no ;;
28914 esac
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28917 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28919 if test x$gcc_cv_libc_provides_ssp = xyes; then
28921 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28925 # Check whether --enable-default-ssp was given.
28926 # Check whether --enable-default-ssp was given.
28927 if test "${enable_default_ssp+set}" = set; then :
28928 enableval=$enable_default_ssp;
28929 if test x$gcc_cv_libc_provides_ssp = xyes; then
28930 case "$target" in
28931 ia64*-*-*) enable_default_ssp=no ;;
28932 *) enable_default_ssp=$enableval ;;
28933 esac
28934 else
28935 enable_default_ssp=no
28937 else
28938 enable_default_ssp=no
28941 if test x$enable_default_ssp = xyes ; then
28943 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28948 # Test for <sys/sdt.h> on the target.
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28951 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28952 have_sys_sdt_h=no
28953 if test -f $target_header_dir/sys/sdt.h; then
28954 have_sys_sdt_h=yes
28956 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28960 $as_echo "$have_sys_sdt_h" >&6; }
28962 # Check if TFmode long double should be used by default or not.
28963 # Some glibc targets used DFmode long double, but with glibc 2.4
28964 # and later they can use TFmode.
28965 case "$target" in
28966 powerpc*-*-linux* | \
28967 sparc*-*-linux* | \
28968 s390*-*-linux* | \
28969 alpha*-*-linux*)
28971 # Check whether --with-long-double-128 was given.
28972 if test "${with_long_double_128+set}" = set; then :
28973 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28974 else
28976 if test $glibc_version_major -gt 2 \
28977 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28978 gcc_cv_target_ldbl128=yes
28979 else
28981 gcc_cv_target_ldbl128=no
28982 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28983 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28984 && gcc_cv_target_ldbl128=yes
28990 esac
28991 if test x$gcc_cv_target_ldbl128 = xyes; then
28993 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28997 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28998 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28999 gcc_cv_libc_provides_hwcap_in_tcb=no
29000 case "$target" in
29001 powerpc*-*-linux*)
29003 if test $glibc_version_major -gt 2 \
29004 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29005 gcc_cv_libc_provides_hwcap_in_tcb=yes
29008 esac
29009 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29011 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29016 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29017 gcc_cv_target_dl_iterate_phdr=unknown
29018 case "$target" in
29019 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29020 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29021 # libdl there, both complicating its use and breaking compatibility
29022 # between Solaris 10 updates.
29023 *-*-solaris2.1[1-9]*)
29024 # <link.h> needs both a dl_iterate_phdr declaration and support for
29025 # compilation with largefile support.
29026 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29027 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29028 gcc_cv_target_dl_iterate_phdr=yes
29029 else
29030 gcc_cv_target_dl_iterate_phdr=no
29033 *-*-dragonfly* | *-*-freebsd*)
29034 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29035 gcc_cv_target_dl_iterate_phdr=yes
29036 else
29037 gcc_cv_target_dl_iterate_phdr=no
29040 *-linux-musl*)
29041 gcc_cv_target_dl_iterate_phdr=yes
29043 esac
29045 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29047 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29051 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29053 # We no longer support different GC mechanisms. Emit an error if
29054 # the user configures with --with-gc.
29056 # Check whether --with-gc was given.
29057 if test "${with_gc+set}" = set; then :
29058 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29062 # Libraries to use on the host. This will normally be set by the top
29063 # level Makefile. Here we simply capture the value for our Makefile.
29064 if test -z "${HOST_LIBS+set}"; then
29065 HOST_LIBS=
29069 # Use the system's zlib library.
29071 # Use the system's zlib library.
29072 zlibdir="-L\$(top_builddir)/../zlib"
29073 zlibinc="-I\$(top_srcdir)/../zlib"
29075 # Check whether --with-system-zlib was given.
29076 if test "${with_system_zlib+set}" = set; then :
29077 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29078 zlibdir=
29079 zlibinc=
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29090 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29091 # Check whether --enable-maintainer-mode was given.
29092 if test "${enable_maintainer_mode+set}" = set; then :
29093 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29094 else
29095 maintainer_mode=no
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29100 $as_echo "$maintainer_mode" >&6; }
29102 if test "$maintainer_mode" = "yes"; then
29103 MAINT=''
29104 else
29105 MAINT='#'
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29110 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29111 # Check whether --enable-link-mutex was given.
29112 if test "${enable_link_mutex+set}" = set; then :
29113 enableval=$enable_link_mutex; do_link_mutex=$enableval
29114 else
29115 do_link_mutex=no
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29119 $as_echo "$do_link_mutex" >&6; }
29121 if test "$do_link_mutex" = "yes"; then
29122 DO_LINK_MUTEX=true
29123 else
29124 DO_LINK_MUTEX=false
29128 # --------------
29129 # Language hooks
29130 # --------------
29132 # Make empty files to contain the specs and options for each language.
29133 # Then add #include lines to for a compiler that has specs and/or options.
29135 subdirs=
29136 lang_opt_files=
29137 lang_specs_files=
29138 lang_tree_files=
29139 # These (without "all_") are set in each config-lang.in.
29140 # `language' must be a single word so is spelled singularly.
29141 all_languages=
29142 all_compilers=
29143 all_outputs='Makefile'
29144 # List of language makefile fragments.
29145 all_lang_makefrags=
29146 # Additional files for gengtype
29147 all_gtfiles="$target_gtfiles"
29149 # These are the languages that are set in --enable-languages,
29150 # and are available in the GCC tree.
29151 all_selected_languages=
29153 # Add the language fragments.
29154 # Languages are added via two mechanisms. Some information must be
29155 # recorded in makefile variables, these are defined in config-lang.in.
29156 # We accumulate them and plug them into the main Makefile.
29157 # The other mechanism is a set of hooks for each of the main targets
29158 # like `clean', `install', etc.
29160 language_hooks="Make-hooks"
29162 for lang in ${srcdir}/*/config-lang.in
29164 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29166 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29167 if test "x$lang_alias" = x
29168 then
29169 echo "$lang doesn't set \$language." 1>&2
29170 exit 1
29172 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29173 subdirs="$subdirs $subdir"
29175 # $gcc_subdir is where the gcc integration files are to be found
29176 # for a language, both for internal compiler purposes (compiler
29177 # sources implementing front-end to GCC tree converters), and for
29178 # build infrastructure purposes (Make-lang.in, etc.)
29180 # This will be <subdir> (relative to $srcdir) if a line like
29181 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29182 # is found in <langdir>/config-lang.in, and will remain <langdir>
29183 # otherwise.
29185 # Except for the language alias (fetched above), the regular
29186 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29187 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29188 # only this and the language alias.
29190 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29191 if [ "$gcc_subdir" = "" ]; then
29192 gcc_subdir="$subdir"
29195 case ",$enable_languages," in
29196 *,$lang_alias,*)
29197 all_selected_languages="$all_selected_languages $lang_alias"
29198 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29199 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29202 esac
29204 language=
29205 boot_language=
29206 compilers=
29207 outputs=
29208 gtfiles=
29209 subdir_requires=
29210 . ${srcdir}/$gcc_subdir/config-lang.in
29211 if test "x$language" = x
29212 then
29213 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29214 exit 1
29217 ok=:
29218 case ",$enable_languages," in
29219 *,$lang_alias,*) ;;
29221 for i in $subdir_requires; do
29222 test -f "${srcdir}/$i/config-lang.in" && continue
29223 ok=false
29224 break
29225 done
29227 esac
29228 $ok || continue
29230 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29231 if test -f $srcdir/$gcc_subdir/lang.opt; then
29232 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29233 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29235 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29236 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29238 all_languages="$all_languages $language"
29239 all_compilers="$all_compilers $compilers"
29240 all_outputs="$all_outputs $outputs"
29241 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29242 case ",$enable_languages," in
29243 *,lto,*)
29245 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29247 enable_lto=yes
29250 *) ;;
29251 esac
29252 done
29254 check_languages=
29255 for language in $all_selected_languages
29257 check_languages="$check_languages check-$language"
29258 done
29260 # We link each language in with a set of hooks, reached indirectly via
29261 # lang.${target}. Only do so for selected languages.
29263 rm -f Make-hooks
29264 touch Make-hooks
29265 target_list="all.cross start.encap rest.encap tags \
29266 install-common install-man install-info install-pdf install-html dvi \
29267 pdf html uninstall info man srcextra srcman srcinfo \
29268 mostlyclean clean distclean maintainer-clean install-plugin"
29270 for t in $target_list
29273 for lang in $all_selected_languages
29275 x="$x $lang.$t"
29276 done
29277 echo "lang.$t: $x" >> Make-hooks
29278 done
29280 # --------
29281 # Option include files
29282 # --------
29284 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29285 option_includes="option-includes.mk"
29288 # --------
29289 # UNSORTED
29290 # --------
29292 # Create .gdbinit.
29294 echo "dir ." > .gdbinit
29295 echo "dir ${srcdir}" >> .gdbinit
29296 if test x$gdb_needs_out_file_path = xyes
29297 then
29298 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29300 if test "x$subdirs" != x; then
29301 for s in $subdirs
29303 echo "dir ${srcdir}/$s" >> .gdbinit
29304 done
29306 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29307 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29309 # Put a breakpoint on __asan_report_error to help with debugging buffer
29310 # overflow.
29311 case "$CFLAGS" in
29312 *-fsanitize=address*)
29313 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29315 esac
29317 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29321 # Find a directory in which to install a shared libgcc.
29323 # Check whether --enable-version-specific-runtime-libs was given.
29324 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29325 enableval=$enable_version_specific_runtime_libs;
29329 # Substitute configuration variables
29392 # Echo link setup.
29393 if test x${build} = x${host} ; then
29394 if test x${host} = x${target} ; then
29395 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29396 else
29397 echo "Links are now set up to build a cross-compiler" 1>&2
29398 echo " from ${host} to ${target}." 1>&2
29400 else
29401 if test x${host} = x${target} ; then
29402 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29403 echo " for ${target}." 1>&2
29404 else
29405 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29406 echo " from ${host} to ${target}." 1>&2
29415 if test "x${ISLLIBS}" != "x" ; then
29417 $as_echo "#define HAVE_isl 1" >>confdefs.h
29421 # Check whether isl_options_set_schedule_serialize_sccs is available;
29422 # it's new in isl 0.15.
29423 if test "x${ISLLIBS}" != "x" ; then
29424 saved_CXXFLAGS="$CXXFLAGS"
29425 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29426 saved_LIBS="$LIBS"
29427 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29430 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29432 /* end confdefs.h. */
29433 #include <isl/schedule.h>
29435 main ()
29437 isl_options_set_schedule_serialize_sccs (NULL, 0);
29439 return 0;
29441 _ACEOF
29442 if ac_fn_cxx_try_link "$LINENO"; then :
29443 ac_has_isl_options_set_schedule_serialize_sccs=yes
29444 else
29445 ac_has_isl_options_set_schedule_serialize_sccs=no
29447 rm -f core conftest.err conftest.$ac_objext \
29448 conftest$ac_exeext conftest.$ac_ext
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29450 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29452 LIBS="$saved_LIBS"
29453 CXXFLAGS="$saved_CXXFLAGS"
29455 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29457 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29462 # Check for plugin support
29463 # Check whether --enable-plugin was given.
29464 if test "${enable_plugin+set}" = set; then :
29465 enableval=$enable_plugin; enable_plugin=$enableval
29466 else
29467 enable_plugin=yes; default_plugin=yes
29471 pluginlibs=
29473 case "${host}" in
29474 *-*-darwin*)
29475 if test x$build = x$host; then
29476 export_sym_check="nm${exeext} -g"
29477 elif test x$host = x$target; then
29478 export_sym_check="$gcc_cv_nm -g"
29479 else
29480 export_sym_check=
29484 if test x$build = x$host; then
29485 export_sym_check="objdump${exeext} -T"
29486 elif test x$host = x$target; then
29487 export_sym_check="$gcc_cv_objdump -T"
29488 else
29489 export_sym_check=
29492 esac
29494 if test x"$enable_plugin" = x"yes"; then
29496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29497 $as_echo_n "checking for exported symbols... " >&6; }
29498 if test "x$export_sym_check" != x; then
29499 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29500 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29501 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29502 : # No need to use a flag
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29504 $as_echo "yes" >&6; }
29505 else
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29507 $as_echo "yes" >&6; }
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29509 $as_echo_n "checking for -rdynamic... " >&6; }
29510 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29511 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29512 plugin_rdynamic=yes
29513 pluginlibs="-rdynamic"
29514 else
29515 plugin_rdynamic=no
29516 enable_plugin=no
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29519 $as_echo "$plugin_rdynamic" >&6; }
29521 else
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29523 $as_echo "unable to check" >&6; }
29526 # Check -ldl
29527 saved_LIBS="$LIBS"
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29529 $as_echo_n "checking for library containing dlopen... " >&6; }
29530 if test "${ac_cv_search_dlopen+set}" = set; then :
29531 $as_echo_n "(cached) " >&6
29532 else
29533 ac_func_search_save_LIBS=$LIBS
29534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29535 /* end confdefs.h. */
29537 /* Override any GCC internal prototype to avoid an error.
29538 Use char because int might match the return type of a GCC
29539 builtin and then its argument prototype would still apply. */
29540 #ifdef __cplusplus
29541 extern "C"
29542 #endif
29543 char dlopen ();
29545 main ()
29547 return dlopen ();
29549 return 0;
29551 _ACEOF
29552 for ac_lib in '' dl; do
29553 if test -z "$ac_lib"; then
29554 ac_res="none required"
29555 else
29556 ac_res=-l$ac_lib
29557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29559 if ac_fn_cxx_try_link "$LINENO"; then :
29560 ac_cv_search_dlopen=$ac_res
29562 rm -f core conftest.err conftest.$ac_objext \
29563 conftest$ac_exeext
29564 if test "${ac_cv_search_dlopen+set}" = set; then :
29565 break
29567 done
29568 if test "${ac_cv_search_dlopen+set}" = set; then :
29570 else
29571 ac_cv_search_dlopen=no
29573 rm conftest.$ac_ext
29574 LIBS=$ac_func_search_save_LIBS
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29577 $as_echo "$ac_cv_search_dlopen" >&6; }
29578 ac_res=$ac_cv_search_dlopen
29579 if test "$ac_res" != no; then :
29580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29584 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29585 pluginlibs="$pluginlibs -ldl"
29587 LIBS="$saved_LIBS"
29589 # Check that we can build shared objects with -fPIC -shared
29590 saved_LDFLAGS="$LDFLAGS"
29591 saved_CFLAGS="$CFLAGS"
29592 case "${host}" in
29593 *-*-darwin*)
29594 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29595 CFLAGS="$CFLAGS -fPIC"
29596 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29599 CFLAGS="$CFLAGS -fPIC"
29600 LDFLAGS="$LDFLAGS -fPIC -shared"
29602 esac
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29604 $as_echo_n "checking for -fPIC -shared... " >&6; }
29605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29606 /* end confdefs.h. */
29607 extern int X;
29609 main ()
29611 return X == 0;
29613 return 0;
29615 _ACEOF
29616 if ac_fn_cxx_try_link "$LINENO"; then :
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29618 $as_echo "yes" >&6; }; have_pic_shared=yes
29619 else
29620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29621 $as_echo "no" >&6; }; have_pic_shared=no
29623 rm -f core conftest.err conftest.$ac_objext \
29624 conftest$ac_exeext conftest.$ac_ext
29625 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29626 pluginlibs=
29627 enable_plugin=no
29629 LDFLAGS="$saved_LDFLAGS"
29630 CFLAGS="$saved_CFLAGS"
29632 # If plugin support had been requested but not available, fail.
29633 if test x"$enable_plugin" = x"no" ; then
29634 if test x"$default_plugin" != x"yes"; then
29635 as_fn_error "
29636 Building GCC with plugin support requires a host that supports
29637 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29644 if test x"$enable_plugin" = x"yes"; then
29646 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29651 # Enable --enable-host-shared
29652 # Check whether --enable-host-shared was given.
29653 if test "${enable_host_shared+set}" = set; then :
29654 enableval=$enable_host_shared; PICFLAG=-fPIC
29655 else
29656 PICFLAG=
29663 # Check whether --enable-libquadmath-support was given.
29664 if test "${enable_libquadmath_support+set}" = set; then :
29665 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29666 else
29667 ENABLE_LIBQUADMATH_SUPPORT=yes
29670 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29672 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29677 # Specify what hash style to use by default.
29679 # Check whether --with-linker-hash-style was given.
29680 if test "${with_linker_hash_style+set}" = set; then :
29681 withval=$with_linker_hash_style; case x"$withval" in
29682 xsysv)
29683 LINKER_HASH_STYLE=sysv
29685 xgnu)
29686 LINKER_HASH_STYLE=gnu
29688 xboth)
29689 LINKER_HASH_STYLE=both
29692 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29694 esac
29695 else
29696 LINKER_HASH_STYLE=''
29699 if test x"${LINKER_HASH_STYLE}" != x; then
29701 cat >>confdefs.h <<_ACEOF
29702 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29703 _ACEOF
29707 # Specify what should be the default of -fdiagnostics-color option.
29709 # Check whether --with-diagnostics-color was given.
29710 if test "${with_diagnostics_color+set}" = set; then :
29711 withval=$with_diagnostics_color; case x"$withval" in
29712 xnever)
29713 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29715 xauto)
29716 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29718 xauto-if-env)
29719 DIAGNOSTICS_COLOR_DEFAULT=-1
29721 xalways)
29722 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29725 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29727 esac
29728 else
29729 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29733 cat >>confdefs.h <<_ACEOF
29734 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29735 _ACEOF
29738 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29739 # of jit/jit-playback.c.
29740 cat > gcc-driver-name.h <<EOF
29741 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29744 # Check whether --enable-default-pie was given.
29745 # Check whether --enable-default-pie was given.
29746 if test "${enable_default_pie+set}" = set; then :
29747 enableval=$enable_default_pie; enable_default_pie=$enableval
29748 else
29749 enable_default_pie=no
29752 if test x$enable_default_pie = xyes ; then
29754 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29759 # Check if -fno-PIE works.
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29761 $as_echo_n "checking for -fno-PIE option... " >&6; }
29762 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29763 $as_echo_n "(cached) " >&6
29764 else
29765 saved_CXXFLAGS="$CXXFLAGS"
29766 CXXFLAGS="$CXXFLAGS -fno-PIE"
29767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29768 /* end confdefs.h. */
29769 int main(void) {return 0;}
29770 _ACEOF
29771 if ac_fn_cxx_try_compile "$LINENO"; then :
29772 gcc_cv_c_no_fpie=yes
29773 else
29774 gcc_cv_c_no_fpie=no
29776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29777 CXXFLAGS="$saved_CXXFLAGS"
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29780 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29781 if test "$gcc_cv_c_no_fpie" = "yes"; then
29782 NO_PIE_CFLAGS="-fno-PIE"
29786 # Check if -no-pie works.
29787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29788 $as_echo_n "checking for -no-pie option... " >&6; }
29789 if test "${gcc_cv_no_pie+set}" = set; then :
29790 $as_echo_n "(cached) " >&6
29791 else
29792 saved_LDFLAGS="$LDFLAGS"
29793 LDFLAGS="$LDFLAGS -no-pie"
29794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29795 /* end confdefs.h. */
29796 int main(void) {return 0;}
29797 _ACEOF
29798 if ac_fn_cxx_try_link "$LINENO"; then :
29799 gcc_cv_no_pie=yes
29800 else
29801 gcc_cv_no_pie=no
29803 rm -f core conftest.err conftest.$ac_objext \
29804 conftest$ac_exeext conftest.$ac_ext
29805 LDFLAGS="$saved_LDFLAGS"
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29808 $as_echo "$gcc_cv_no_pie" >&6; }
29809 if test "$gcc_cv_no_pie" = "yes"; then
29810 NO_PIE_FLAG="-no-pie"
29814 # Check linker supports '-z bndplt'
29815 ld_bndplt_support=no
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29817 $as_echo_n "checking linker -z bndplt option... " >&6; }
29818 if test x"$ld_is_gold" = xno; then
29819 if test $in_tree_ld = yes ; then
29820 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
29821 ld_bndplt_support=yes
29823 elif test x$gcc_cv_ld != x; then
29824 # Check if linker supports -a bndplt option
29825 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29826 ld_bndplt_support=yes
29830 if test x"$ld_bndplt_support" = xyes; then
29832 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29836 $as_echo "$ld_bndplt_support" >&6; }
29838 # Check linker supports '--push-state'/'--pop-state'
29839 ld_pushpopstate_support=no
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29841 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29842 if test x"$ld_is_gold" = xno; then
29843 if test $in_tree_ld = yes ; then
29844 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
29845 ld_pushpopstate_support=yes
29847 elif test x$gcc_cv_ld != x; then
29848 # Check if linker supports --push-state/--pop-state options
29849 if $gcc_cv_ld --help 2>/dev/null | grep -- '--push-state' > /dev/null; then
29850 ld_pushpopstate_support=yes
29854 if test x"$ld_pushpopstate_support" = xyes; then
29856 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29860 $as_echo "$ld_pushpopstate_support" >&6; }
29862 # Configure the subdirectories
29863 # AC_CONFIG_SUBDIRS($subdirs)
29865 # Create the Makefile
29866 # and configure language subdirectories
29867 ac_config_files="$ac_config_files $all_outputs"
29870 ac_config_commands="$ac_config_commands default"
29872 cat >confcache <<\_ACEOF
29873 # This file is a shell script that caches the results of configure
29874 # tests run on this system so they can be shared between configure
29875 # scripts and configure runs, see configure's option --config-cache.
29876 # It is not useful on other systems. If it contains results you don't
29877 # want to keep, you may remove or edit it.
29879 # config.status only pays attention to the cache file if you give it
29880 # the --recheck option to rerun configure.
29882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29884 # following values.
29886 _ACEOF
29888 # The following way of writing the cache mishandles newlines in values,
29889 # but we know of no workaround that is simple, portable, and efficient.
29890 # So, we kill variables containing newlines.
29891 # Ultrix sh set writes to stderr and can't be redirected directly,
29892 # and sets the high bit in the cache file unless we assign to the vars.
29894 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29895 eval ac_val=\$$ac_var
29896 case $ac_val in #(
29897 *${as_nl}*)
29898 case $ac_var in #(
29899 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29901 esac
29902 case $ac_var in #(
29903 _ | IFS | as_nl) ;; #(
29904 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29905 *) { eval $ac_var=; unset $ac_var;} ;;
29906 esac ;;
29907 esac
29908 done
29910 (set) 2>&1 |
29911 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29912 *${as_nl}ac_space=\ *)
29913 # `set' does not quote correctly, so add quotes: double-quote
29914 # substitution turns \\\\ into \\, and sed turns \\ into \.
29915 sed -n \
29916 "s/'/'\\\\''/g;
29917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29918 ;; #(
29920 # `set' quotes correctly as required by POSIX, so do not add quotes.
29921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29923 esac |
29924 sort
29926 sed '
29927 /^ac_cv_env_/b end
29928 t clear
29929 :clear
29930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29931 t end
29932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29933 :end' >>confcache
29934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29935 if test -w "$cache_file"; then
29936 test "x$cache_file" != "x/dev/null" &&
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29938 $as_echo "$as_me: updating cache $cache_file" >&6;}
29939 cat confcache >$cache_file
29940 else
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29942 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29945 rm -f confcache
29947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29948 # Let make expand exec_prefix.
29949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29951 DEFS=-DHAVE_CONFIG_H
29953 ac_libobjs=
29954 ac_ltlibobjs=
29955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29956 # 1. Remove the extension, and $U if already installed.
29957 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29958 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29960 # will be set to the directory where LIBOBJS objects are built.
29961 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29962 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29963 done
29964 LIBOBJS=$ac_libobjs
29966 LTLIBOBJS=$ac_ltlibobjs
29971 : ${CONFIG_STATUS=./config.status}
29972 ac_write_fail=0
29973 ac_clean_files_save=$ac_clean_files
29974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29976 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29977 as_write_fail=0
29978 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29979 #! $SHELL
29980 # Generated by $as_me.
29981 # Run this file to recreate the current configuration.
29982 # Compiler output produced by configure, useful for debugging
29983 # configure, is in config.log if it exists.
29985 debug=false
29986 ac_cs_recheck=false
29987 ac_cs_silent=false
29989 SHELL=\${CONFIG_SHELL-$SHELL}
29990 export SHELL
29991 _ASEOF
29992 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29993 ## -------------------- ##
29994 ## M4sh Initialization. ##
29995 ## -------------------- ##
29997 # Be more Bourne compatible
29998 DUALCASE=1; export DUALCASE # for MKS sh
29999 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30000 emulate sh
30001 NULLCMD=:
30002 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30003 # is contrary to our usage. Disable this feature.
30004 alias -g '${1+"$@"}'='"$@"'
30005 setopt NO_GLOB_SUBST
30006 else
30007 case `(set -o) 2>/dev/null` in #(
30008 *posix*) :
30009 set -o posix ;; #(
30010 *) :
30012 esac
30016 as_nl='
30018 export as_nl
30019 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30020 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30023 # Prefer a ksh shell builtin over an external printf program on Solaris,
30024 # but without wasting forks for bash or zsh.
30025 if test -z "$BASH_VERSION$ZSH_VERSION" \
30026 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30027 as_echo='print -r --'
30028 as_echo_n='print -rn --'
30029 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30030 as_echo='printf %s\n'
30031 as_echo_n='printf %s'
30032 else
30033 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30034 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30035 as_echo_n='/usr/ucb/echo -n'
30036 else
30037 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30038 as_echo_n_body='eval
30039 arg=$1;
30040 case $arg in #(
30041 *"$as_nl"*)
30042 expr "X$arg" : "X\\(.*\\)$as_nl";
30043 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30044 esac;
30045 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30047 export as_echo_n_body
30048 as_echo_n='sh -c $as_echo_n_body as_echo'
30050 export as_echo_body
30051 as_echo='sh -c $as_echo_body as_echo'
30054 # The user is always right.
30055 if test "${PATH_SEPARATOR+set}" != set; then
30056 PATH_SEPARATOR=:
30057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30059 PATH_SEPARATOR=';'
30064 # IFS
30065 # We need space, tab and new line, in precisely that order. Quoting is
30066 # there to prevent editors from complaining about space-tab.
30067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30068 # splitting by setting IFS to empty value.)
30069 IFS=" "" $as_nl"
30071 # Find who we are. Look in the path if we contain no directory separator.
30072 case $0 in #((
30073 *[\\/]* ) as_myself=$0 ;;
30074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30075 for as_dir in $PATH
30077 IFS=$as_save_IFS
30078 test -z "$as_dir" && as_dir=.
30079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30080 done
30081 IFS=$as_save_IFS
30084 esac
30085 # We did not find ourselves, most probably we were run as `sh COMMAND'
30086 # in which case we are not to be found in the path.
30087 if test "x$as_myself" = x; then
30088 as_myself=$0
30090 if test ! -f "$as_myself"; then
30091 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30092 exit 1
30095 # Unset variables that we do not need and which cause bugs (e.g. in
30096 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30097 # suppresses any "Segmentation fault" message there. '((' could
30098 # trigger a bug in pdksh 5.2.14.
30099 for as_var in BASH_ENV ENV MAIL MAILPATH
30100 do eval test x\${$as_var+set} = xset \
30101 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30102 done
30103 PS1='$ '
30104 PS2='> '
30105 PS4='+ '
30107 # NLS nuisances.
30108 LC_ALL=C
30109 export LC_ALL
30110 LANGUAGE=C
30111 export LANGUAGE
30113 # CDPATH.
30114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30117 # as_fn_error ERROR [LINENO LOG_FD]
30118 # ---------------------------------
30119 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30120 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30121 # script with status $?, using 1 if that was 0.
30122 as_fn_error ()
30124 as_status=$?; test $as_status -eq 0 && as_status=1
30125 if test "$3"; then
30126 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30127 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30129 $as_echo "$as_me: error: $1" >&2
30130 as_fn_exit $as_status
30131 } # as_fn_error
30134 # as_fn_set_status STATUS
30135 # -----------------------
30136 # Set $? to STATUS, without forking.
30137 as_fn_set_status ()
30139 return $1
30140 } # as_fn_set_status
30142 # as_fn_exit STATUS
30143 # -----------------
30144 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30145 as_fn_exit ()
30147 set +e
30148 as_fn_set_status $1
30149 exit $1
30150 } # as_fn_exit
30152 # as_fn_unset VAR
30153 # ---------------
30154 # Portably unset VAR.
30155 as_fn_unset ()
30157 { eval $1=; unset $1;}
30159 as_unset=as_fn_unset
30160 # as_fn_append VAR VALUE
30161 # ----------------------
30162 # Append the text in VALUE to the end of the definition contained in VAR. Take
30163 # advantage of any shell optimizations that allow amortized linear growth over
30164 # repeated appends, instead of the typical quadratic growth present in naive
30165 # implementations.
30166 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30167 eval 'as_fn_append ()
30169 eval $1+=\$2
30171 else
30172 as_fn_append ()
30174 eval $1=\$$1\$2
30176 fi # as_fn_append
30178 # as_fn_arith ARG...
30179 # ------------------
30180 # Perform arithmetic evaluation on the ARGs, and store the result in the
30181 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30182 # must be portable across $(()) and expr.
30183 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30184 eval 'as_fn_arith ()
30186 as_val=$(( $* ))
30188 else
30189 as_fn_arith ()
30191 as_val=`expr "$@" || test $? -eq 1`
30193 fi # as_fn_arith
30196 if expr a : '\(a\)' >/dev/null 2>&1 &&
30197 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30198 as_expr=expr
30199 else
30200 as_expr=false
30203 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30204 as_basename=basename
30205 else
30206 as_basename=false
30209 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30210 as_dirname=dirname
30211 else
30212 as_dirname=false
30215 as_me=`$as_basename -- "$0" ||
30216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30217 X"$0" : 'X\(//\)$' \| \
30218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30219 $as_echo X/"$0" |
30220 sed '/^.*\/\([^/][^/]*\)\/*$/{
30221 s//\1/
30224 /^X\/\(\/\/\)$/{
30225 s//\1/
30228 /^X\/\(\/\).*/{
30229 s//\1/
30232 s/.*/./; q'`
30234 # Avoid depending upon Character Ranges.
30235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30238 as_cr_digits='0123456789'
30239 as_cr_alnum=$as_cr_Letters$as_cr_digits
30241 ECHO_C= ECHO_N= ECHO_T=
30242 case `echo -n x` in #(((((
30243 -n*)
30244 case `echo 'xy\c'` in
30245 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30246 xy) ECHO_C='\c';;
30247 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30248 ECHO_T=' ';;
30249 esac;;
30251 ECHO_N='-n';;
30252 esac
30254 rm -f conf$$ conf$$.exe conf$$.file
30255 if test -d conf$$.dir; then
30256 rm -f conf$$.dir/conf$$.file
30257 else
30258 rm -f conf$$.dir
30259 mkdir conf$$.dir 2>/dev/null
30261 if (echo >conf$$.file) 2>/dev/null; then
30262 if ln -s conf$$.file conf$$ 2>/dev/null; then
30263 as_ln_s='ln -s'
30264 # ... but there are two gotchas:
30265 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30266 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30267 # In both cases, we have to default to `cp -p'.
30268 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30269 as_ln_s='cp -p'
30270 elif ln conf$$.file conf$$ 2>/dev/null; then
30271 as_ln_s=ln
30272 else
30273 as_ln_s='cp -p'
30275 else
30276 as_ln_s='cp -p'
30278 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30279 rmdir conf$$.dir 2>/dev/null
30282 # as_fn_mkdir_p
30283 # -------------
30284 # Create "$as_dir" as a directory, including parents if necessary.
30285 as_fn_mkdir_p ()
30288 case $as_dir in #(
30289 -*) as_dir=./$as_dir;;
30290 esac
30291 test -d "$as_dir" || eval $as_mkdir_p || {
30292 as_dirs=
30293 while :; do
30294 case $as_dir in #(
30295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30296 *) as_qdir=$as_dir;;
30297 esac
30298 as_dirs="'$as_qdir' $as_dirs"
30299 as_dir=`$as_dirname -- "$as_dir" ||
30300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30301 X"$as_dir" : 'X\(//\)[^/]' \| \
30302 X"$as_dir" : 'X\(//\)$' \| \
30303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30304 $as_echo X"$as_dir" |
30305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30306 s//\1/
30309 /^X\(\/\/\)[^/].*/{
30310 s//\1/
30313 /^X\(\/\/\)$/{
30314 s//\1/
30317 /^X\(\/\).*/{
30318 s//\1/
30321 s/.*/./; q'`
30322 test -d "$as_dir" && break
30323 done
30324 test -z "$as_dirs" || eval "mkdir $as_dirs"
30325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30328 } # as_fn_mkdir_p
30329 if mkdir -p . 2>/dev/null; then
30330 as_mkdir_p='mkdir -p "$as_dir"'
30331 else
30332 test -d ./-p && rmdir ./-p
30333 as_mkdir_p=false
30336 if test -x / >/dev/null 2>&1; then
30337 as_test_x='test -x'
30338 else
30339 if ls -dL / >/dev/null 2>&1; then
30340 as_ls_L_option=L
30341 else
30342 as_ls_L_option=
30344 as_test_x='
30345 eval sh -c '\''
30346 if test -d "$1"; then
30347 test -d "$1/.";
30348 else
30349 case $1 in #(
30350 -*)set "./$1";;
30351 esac;
30352 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30353 ???[sx]*):;;*)false;;esac;fi
30354 '\'' sh
30357 as_executable_p=$as_test_x
30359 # Sed expression to map a string onto a valid CPP name.
30360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30362 # Sed expression to map a string onto a valid variable name.
30363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30366 exec 6>&1
30367 ## ----------------------------------- ##
30368 ## Main body of $CONFIG_STATUS script. ##
30369 ## ----------------------------------- ##
30370 _ASEOF
30371 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30374 # Save the log message, to keep $0 and so on meaningful, and to
30375 # report actual input values of CONFIG_FILES etc. instead of their
30376 # values after options handling.
30377 ac_log="
30378 This file was extended by $as_me, which was
30379 generated by GNU Autoconf 2.64. Invocation command line was
30381 CONFIG_FILES = $CONFIG_FILES
30382 CONFIG_HEADERS = $CONFIG_HEADERS
30383 CONFIG_LINKS = $CONFIG_LINKS
30384 CONFIG_COMMANDS = $CONFIG_COMMANDS
30385 $ $0 $@
30387 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30390 _ACEOF
30392 case $ac_config_files in *"
30393 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30394 esac
30396 case $ac_config_headers in *"
30397 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30398 esac
30401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30402 # Files that config.status was made for.
30403 config_files="$ac_config_files"
30404 config_headers="$ac_config_headers"
30405 config_links="$ac_config_links"
30406 config_commands="$ac_config_commands"
30408 _ACEOF
30410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30411 ac_cs_usage="\
30412 \`$as_me' instantiates files and other configuration actions
30413 from templates according to the current configuration. Unless the files
30414 and actions are specified as TAGs, all are instantiated by default.
30416 Usage: $0 [OPTION]... [TAG]...
30418 -h, --help print this help, then exit
30419 -V, --version print version number and configuration settings, then exit
30420 -q, --quiet, --silent
30421 do not print progress messages
30422 -d, --debug don't remove temporary files
30423 --recheck update $as_me by reconfiguring in the same conditions
30424 --file=FILE[:TEMPLATE]
30425 instantiate the configuration file FILE
30426 --header=FILE[:TEMPLATE]
30427 instantiate the configuration header FILE
30429 Configuration files:
30430 $config_files
30432 Configuration headers:
30433 $config_headers
30435 Configuration links:
30436 $config_links
30438 Configuration commands:
30439 $config_commands
30441 Report bugs to the package provider."
30443 _ACEOF
30444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30445 ac_cs_version="\\
30446 config.status
30447 configured by $0, generated by GNU Autoconf 2.64,
30448 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30450 Copyright (C) 2009 Free Software Foundation, Inc.
30451 This config.status script is free software; the Free Software Foundation
30452 gives unlimited permission to copy, distribute and modify it."
30454 ac_pwd='$ac_pwd'
30455 srcdir='$srcdir'
30456 AWK='$AWK'
30457 test -n "\$AWK" || AWK=awk
30458 _ACEOF
30460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30461 # The default lists apply if the user does not specify any file.
30462 ac_need_defaults=:
30463 while test $# != 0
30465 case $1 in
30466 --*=*)
30467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30469 ac_shift=:
30472 ac_option=$1
30473 ac_optarg=$2
30474 ac_shift=shift
30476 esac
30478 case $ac_option in
30479 # Handling of the options.
30480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30481 ac_cs_recheck=: ;;
30482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30483 $as_echo "$ac_cs_version"; exit ;;
30484 --debug | --debu | --deb | --de | --d | -d )
30485 debug=: ;;
30486 --file | --fil | --fi | --f )
30487 $ac_shift
30488 case $ac_optarg in
30489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30490 esac
30491 as_fn_append CONFIG_FILES " '$ac_optarg'"
30492 ac_need_defaults=false;;
30493 --header | --heade | --head | --hea )
30494 $ac_shift
30495 case $ac_optarg in
30496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30497 esac
30498 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30499 ac_need_defaults=false;;
30500 --he | --h)
30501 # Conflict between --help and --header
30502 as_fn_error "ambiguous option: \`$1'
30503 Try \`$0 --help' for more information.";;
30504 --help | --hel | -h )
30505 $as_echo "$ac_cs_usage"; exit ;;
30506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30507 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30508 ac_cs_silent=: ;;
30510 # This is an error.
30511 -*) as_fn_error "unrecognized option: \`$1'
30512 Try \`$0 --help' for more information." ;;
30514 *) as_fn_append ac_config_targets " $1"
30515 ac_need_defaults=false ;;
30517 esac
30518 shift
30519 done
30521 ac_configure_extra_args=
30523 if $ac_cs_silent; then
30524 exec 6>/dev/null
30525 ac_configure_extra_args="$ac_configure_extra_args --silent"
30528 _ACEOF
30529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30530 if \$ac_cs_recheck; then
30531 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30532 shift
30533 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30534 CONFIG_SHELL='$SHELL'
30535 export CONFIG_SHELL
30536 exec "\$@"
30539 _ACEOF
30540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30541 exec 5>>config.log
30543 echo
30544 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30545 ## Running $as_me. ##
30546 _ASBOX
30547 $as_echo "$ac_log"
30548 } >&5
30550 _ACEOF
30551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30553 # INIT-COMMANDS
30555 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30556 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30557 subdirs='$subdirs'
30559 _ACEOF
30561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30563 # Handling of arguments.
30564 for ac_config_target in $ac_config_targets
30566 case $ac_config_target in
30567 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30568 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30569 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30570 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30571 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30572 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30573 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30574 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30575 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30577 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30578 esac
30579 done
30582 # If the user did not use the arguments to specify the items to instantiate,
30583 # then the envvar interface is used. Set only those that are not.
30584 # We use the long form for the default assignment because of an extremely
30585 # bizarre bug on SunOS 4.1.3.
30586 if $ac_need_defaults; then
30587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30589 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30593 # Have a temporary directory for convenience. Make it in the build tree
30594 # simply because there is no reason against having it here, and in addition,
30595 # creating and moving files from /tmp can sometimes cause problems.
30596 # Hook for its removal unless debugging.
30597 # Note that there is a small window in which the directory will not be cleaned:
30598 # after its creation but before its name has been assigned to `$tmp'.
30599 $debug ||
30601 tmp=
30602 trap 'exit_status=$?
30603 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30605 trap 'as_fn_exit 1' 1 2 13 15
30607 # Create a (secure) tmp directory for tmp files.
30610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30611 test -n "$tmp" && test -d "$tmp"
30612 } ||
30614 tmp=./conf$$-$RANDOM
30615 (umask 077 && mkdir "$tmp")
30616 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30618 # Set up the scripts for CONFIG_FILES section.
30619 # No need to generate them if there are no CONFIG_FILES.
30620 # This happens for instance with `./config.status config.h'.
30621 if test -n "$CONFIG_FILES"; then
30623 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30624 ac_cs_awk_getline=:
30625 ac_cs_awk_pipe_init=
30626 ac_cs_awk_read_file='
30627 while ((getline aline < (F[key])) > 0)
30628 print(aline)
30629 close(F[key])'
30630 ac_cs_awk_pipe_fini=
30631 else
30632 ac_cs_awk_getline=false
30633 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30634 ac_cs_awk_read_file='
30635 print "|#_!!_#|"
30636 print "cat " F[key] " &&"
30637 '$ac_cs_awk_pipe_init
30638 # The final `:' finishes the AND list.
30639 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30641 ac_cr=`echo X | tr X '\015'`
30642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30643 # But we know of no other shell where ac_cr would be empty at this
30644 # point, so we can use a bashism as a fallback.
30645 if test "x$ac_cr" = x; then
30646 eval ac_cr=\$\'\\r\'
30648 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30650 ac_cs_awk_cr='\r'
30651 else
30652 ac_cs_awk_cr=$ac_cr
30655 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30656 _ACEOF
30658 # Create commands to substitute file output variables.
30660 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30661 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30662 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30663 echo "_ACAWK" &&
30664 echo "_ACEOF"
30665 } >conf$$files.sh &&
30666 . ./conf$$files.sh ||
30667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30668 rm -f conf$$files.sh
30671 echo "cat >conf$$subs.awk <<_ACEOF" &&
30672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30673 echo "_ACEOF"
30674 } >conf$$subs.sh ||
30675 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30676 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30677 ac_delim='%!_!# '
30678 for ac_last_try in false false false false false :; do
30679 . ./conf$$subs.sh ||
30680 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30683 if test $ac_delim_n = $ac_delim_num; then
30684 break
30685 elif $ac_last_try; then
30686 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30687 else
30688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30690 done
30691 rm -f conf$$subs.sh
30693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30694 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30695 _ACEOF
30696 sed -n '
30698 s/^/S["/; s/!.*/"]=/
30701 s/^[^!]*!//
30702 :repl
30703 t repl
30704 s/'"$ac_delim"'$//
30705 t delim
30708 s/\(.\{148\}\).*/\1/
30709 t more1
30710 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30713 b repl
30714 :more1
30715 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30718 s/.\{148\}//
30719 t nl
30720 :delim
30722 s/\(.\{148\}\).*/\1/
30723 t more2
30724 s/["\\]/\\&/g; s/^/"/; s/$/"/
30727 :more2
30728 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30731 s/.\{148\}//
30732 t delim
30733 ' <conf$$subs.awk | sed '
30734 /^[^""]/{
30736 s/\n//
30738 ' >>$CONFIG_STATUS || ac_write_fail=1
30739 rm -f conf$$subs.awk
30740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30741 _ACAWK
30742 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30743 for (key in S) S_is_set[key] = 1
30744 FS = "\a"
30745 \$ac_cs_awk_pipe_init
30748 line = $ 0
30749 nfields = split(line, field, "@")
30750 substed = 0
30751 len = length(field[1])
30752 for (i = 2; i < nfields; i++) {
30753 key = field[i]
30754 keylen = length(key)
30755 if (S_is_set[key]) {
30756 value = S[key]
30757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30758 len += length(value) + length(field[++i])
30759 substed = 1
30760 } else
30761 len += 1 + keylen
30763 if (nfields == 3 && !substed) {
30764 key = field[2]
30765 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30766 \$ac_cs_awk_read_file
30767 next
30770 print line
30772 \$ac_cs_awk_pipe_fini
30773 _ACAWK
30774 _ACEOF
30775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30776 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30777 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30778 else
30780 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30781 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30782 _ACEOF
30784 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30785 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30786 # trailing colons and then remove the whole line if VPATH becomes empty
30787 # (actually we leave an empty line to preserve line numbers).
30788 if test "x$srcdir" = x.; then
30789 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30790 s/:*\$(srcdir):*/:/
30791 s/:*\${srcdir}:*/:/
30792 s/:*@srcdir@:*/:/
30793 s/^\([^=]*=[ ]*\):*/\1/
30794 s/:*$//
30795 s/^[^=]*=[ ]*$//
30799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30800 fi # test -n "$CONFIG_FILES"
30802 # Set up the scripts for CONFIG_HEADERS section.
30803 # No need to generate them if there are no CONFIG_HEADERS.
30804 # This happens for instance with `./config.status Makefile'.
30805 if test -n "$CONFIG_HEADERS"; then
30806 cat >"$tmp/defines.awk" <<\_ACAWK ||
30807 BEGIN {
30808 _ACEOF
30810 # Transform confdefs.h into an awk script `defines.awk', embedded as
30811 # here-document in config.status, that substitutes the proper values into
30812 # config.h.in to produce config.h.
30814 # Create a delimiter string that does not exist in confdefs.h, to ease
30815 # handling of long lines.
30816 ac_delim='%!_!# '
30817 for ac_last_try in false false :; do
30818 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30819 if test -z "$ac_t"; then
30820 break
30821 elif $ac_last_try; then
30822 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30823 else
30824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30826 done
30828 # For the awk script, D is an array of macro values keyed by name,
30829 # likewise P contains macro parameters if any. Preserve backslash
30830 # newline sequences.
30832 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30833 sed -n '
30834 s/.\{148\}/&'"$ac_delim"'/g
30835 t rset
30836 :rset
30837 s/^[ ]*#[ ]*define[ ][ ]*/ /
30838 t def
30840 :def
30841 s/\\$//
30842 t bsnl
30843 s/["\\]/\\&/g
30844 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30845 D["\1"]=" \3"/p
30846 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30848 :bsnl
30849 s/["\\]/\\&/g
30850 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30851 D["\1"]=" \3\\\\\\n"\\/p
30852 t cont
30853 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30854 t cont
30856 :cont
30858 s/.\{148\}/&'"$ac_delim"'/g
30859 t clear
30860 :clear
30861 s/\\$//
30862 t bsnlc
30863 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30865 :bsnlc
30866 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30867 b cont
30868 ' <confdefs.h | sed '
30869 s/'"$ac_delim"'/"\\\
30870 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30873 for (key in D) D_is_set[key] = 1
30874 FS = "\a"
30876 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30877 line = \$ 0
30878 split(line, arg, " ")
30879 if (arg[1] == "#") {
30880 defundef = arg[2]
30881 mac1 = arg[3]
30882 } else {
30883 defundef = substr(arg[1], 2)
30884 mac1 = arg[2]
30886 split(mac1, mac2, "(") #)
30887 macro = mac2[1]
30888 prefix = substr(line, 1, index(line, defundef) - 1)
30889 if (D_is_set[macro]) {
30890 # Preserve the white space surrounding the "#".
30891 print prefix "define", macro P[macro] D[macro]
30892 next
30893 } else {
30894 # Replace #undef with comments. This is necessary, for example,
30895 # in the case of _POSIX_SOURCE, which is predefined and required
30896 # on some systems where configure will not decide to define it.
30897 if (defundef == "undef") {
30898 print "/*", prefix defundef, macro, "*/"
30899 next
30903 { print }
30904 _ACAWK
30905 _ACEOF
30906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30907 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30908 fi # test -n "$CONFIG_HEADERS"
30911 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30912 shift
30913 for ac_tag
30915 case $ac_tag in
30916 :[FHLC]) ac_mode=$ac_tag; continue;;
30917 esac
30918 case $ac_mode$ac_tag in
30919 :[FHL]*:*);;
30920 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30921 :[FH]-) ac_tag=-:-;;
30922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30923 esac
30924 ac_save_IFS=$IFS
30925 IFS=:
30926 set x $ac_tag
30927 IFS=$ac_save_IFS
30928 shift
30929 ac_file=$1
30930 shift
30932 case $ac_mode in
30933 :L) ac_source=$1;;
30934 :[FH])
30935 ac_file_inputs=
30936 for ac_f
30938 case $ac_f in
30939 -) ac_f="$tmp/stdin";;
30940 *) # Look for the file first in the build tree, then in the source tree
30941 # (if the path is not absolute). The absolute path cannot be DOS-style,
30942 # because $ac_f cannot contain `:'.
30943 test -f "$ac_f" ||
30944 case $ac_f in
30945 [\\/$]*) false;;
30946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30947 esac ||
30948 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30949 esac
30950 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30951 as_fn_append ac_file_inputs " '$ac_f'"
30952 done
30954 # Let's still pretend it is `configure' which instantiates (i.e., don't
30955 # use $as_me), people would be surprised to read:
30956 # /* config.h. Generated by config.status. */
30957 configure_input='Generated from '`
30958 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30959 `' by configure.'
30960 if test x"$ac_file" != x-; then
30961 configure_input="$ac_file. $configure_input"
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30963 $as_echo "$as_me: creating $ac_file" >&6;}
30965 # Neutralize special characters interpreted by sed in replacement strings.
30966 case $configure_input in #(
30967 *\&* | *\|* | *\\* )
30968 ac_sed_conf_input=`$as_echo "$configure_input" |
30969 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30970 *) ac_sed_conf_input=$configure_input;;
30971 esac
30973 case $ac_tag in
30974 *:-:* | *:-) cat >"$tmp/stdin" \
30975 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30976 esac
30978 esac
30980 ac_dir=`$as_dirname -- "$ac_file" ||
30981 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30982 X"$ac_file" : 'X\(//\)[^/]' \| \
30983 X"$ac_file" : 'X\(//\)$' \| \
30984 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30985 $as_echo X"$ac_file" |
30986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30987 s//\1/
30990 /^X\(\/\/\)[^/].*/{
30991 s//\1/
30994 /^X\(\/\/\)$/{
30995 s//\1/
30998 /^X\(\/\).*/{
30999 s//\1/
31002 s/.*/./; q'`
31003 as_dir="$ac_dir"; as_fn_mkdir_p
31004 ac_builddir=.
31006 case "$ac_dir" in
31007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31009 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31010 # A ".." for each directory in $ac_dir_suffix.
31011 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31012 case $ac_top_builddir_sub in
31013 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31014 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31015 esac ;;
31016 esac
31017 ac_abs_top_builddir=$ac_pwd
31018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31019 # for backward compatibility:
31020 ac_top_builddir=$ac_top_build_prefix
31022 case $srcdir in
31023 .) # We are building in place.
31024 ac_srcdir=.
31025 ac_top_srcdir=$ac_top_builddir_sub
31026 ac_abs_top_srcdir=$ac_pwd ;;
31027 [\\/]* | ?:[\\/]* ) # Absolute name.
31028 ac_srcdir=$srcdir$ac_dir_suffix;
31029 ac_top_srcdir=$srcdir
31030 ac_abs_top_srcdir=$srcdir ;;
31031 *) # Relative name.
31032 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31033 ac_top_srcdir=$ac_top_build_prefix$srcdir
31034 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31035 esac
31036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31039 case $ac_mode in
31042 # CONFIG_FILE
31045 _ACEOF
31047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31048 # If the template does not know about datarootdir, expand it.
31049 # FIXME: This hack should be removed a few years after 2.60.
31050 ac_datarootdir_hack=; ac_datarootdir_seen=
31051 ac_sed_dataroot='
31052 /datarootdir/ {
31056 /@datadir@/p
31057 /@docdir@/p
31058 /@infodir@/p
31059 /@localedir@/p
31060 /@mandir@/p'
31061 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31062 *datarootdir*) ac_datarootdir_seen=yes;;
31063 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31065 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31066 _ACEOF
31067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31068 ac_datarootdir_hack='
31069 s&@datadir@&$datadir&g
31070 s&@docdir@&$docdir&g
31071 s&@infodir@&$infodir&g
31072 s&@localedir@&$localedir&g
31073 s&@mandir@&$mandir&g
31074 s&\\\${datarootdir}&$datarootdir&g' ;;
31075 esac
31076 _ACEOF
31078 # Neutralize VPATH when `$srcdir' = `.'.
31079 # Shell code in configure.ac might set extrasub.
31080 # FIXME: do we really want to maintain this feature?
31081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31082 ac_sed_extra="$ac_vpsub
31083 $extrasub
31084 _ACEOF
31085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31088 s|@configure_input@|$ac_sed_conf_input|;t t
31089 s&@top_builddir@&$ac_top_builddir_sub&;t t
31090 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31091 s&@srcdir@&$ac_srcdir&;t t
31092 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31093 s&@top_srcdir@&$ac_top_srcdir&;t t
31094 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31095 s&@builddir@&$ac_builddir&;t t
31096 s&@abs_builddir@&$ac_abs_builddir&;t t
31097 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31098 $ac_datarootdir_hack
31100 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31101 if $ac_cs_awk_getline; then
31102 $AWK -f "$tmp/subs.awk"
31103 else
31104 $AWK -f "$tmp/subs.awk" | $SHELL
31105 fi >$tmp/out \
31106 || as_fn_error "could not create $ac_file" "$LINENO" 5
31108 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31109 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31110 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31112 which seems to be undefined. Please make sure it is defined." >&5
31113 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31114 which seems to be undefined. Please make sure it is defined." >&2;}
31116 rm -f "$tmp/stdin"
31117 case $ac_file in
31118 -) cat "$tmp/out" && rm -f "$tmp/out";;
31119 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31120 esac \
31121 || as_fn_error "could not create $ac_file" "$LINENO" 5
31125 # CONFIG_HEADER
31127 if test x"$ac_file" != x-; then
31129 $as_echo "/* $configure_input */" \
31130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31131 } >"$tmp/config.h" \
31132 || as_fn_error "could not create $ac_file" "$LINENO" 5
31133 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31135 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31136 else
31137 rm -f "$ac_file"
31138 mv "$tmp/config.h" "$ac_file" \
31139 || as_fn_error "could not create $ac_file" "$LINENO" 5
31141 else
31142 $as_echo "/* $configure_input */" \
31143 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31144 || as_fn_error "could not create -" "$LINENO" 5
31149 # CONFIG_LINK
31152 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31154 else
31155 # Prefer the file from the source tree if names are identical.
31156 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31157 ac_source=$srcdir/$ac_source
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31161 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31163 if test ! -r "$ac_source"; then
31164 as_fn_error "$ac_source: file not found" "$LINENO" 5
31166 rm -f "$ac_file"
31168 # Try a relative symlink, then a hard link, then a copy.
31169 case $srcdir in
31170 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31171 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31172 esac
31173 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31174 ln "$ac_source" "$ac_file" 2>/dev/null ||
31175 cp -p "$ac_source" "$ac_file" ||
31176 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31179 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31180 $as_echo "$as_me: executing $ac_file commands" >&6;}
31182 esac
31185 case $ac_file$ac_mode in
31186 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31187 "gccdepdir":C)
31188 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31189 for lang in $subdirs c-family common
31191 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31192 done ;;
31193 "as":F) chmod +x as ;;
31194 "collect-ld":F) chmod +x collect-ld ;;
31195 "nm":F) chmod +x nm ;;
31196 "default":C)
31197 case ${CONFIG_HEADERS} in
31198 *auto-host.h:config.in*)
31199 echo > cstamp-h ;;
31200 esac
31201 # Make sure all the subdirs exist.
31202 for d in $subdirs doc build common c-family
31204 test -d $d || mkdir $d
31205 done
31208 esac
31209 done # for ac_tag
31212 as_fn_exit 0
31213 _ACEOF
31214 ac_clean_files=$ac_clean_files_save
31216 test $ac_write_fail = 0 ||
31217 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31220 # configure is writing to config.log, and then calls config.status.
31221 # config.status does its own redirection, appending to config.log.
31222 # Unfortunately, on DOS this fails, as config.log is still kept open
31223 # by configure, so config.status won't be able to write to it; its
31224 # output is simply discarded. So we exec the FD to /dev/null,
31225 # effectively closing config.log, so it can be properly (re)opened and
31226 # appended to by config.status. When coming back to configure, we
31227 # need to make the FD available again.
31228 if test "$no_create" != yes; then
31229 ac_cs_success=:
31230 ac_config_status_args=
31231 test "$silent" = yes &&
31232 ac_config_status_args="$ac_config_status_args --quiet"
31233 exec 5>/dev/null
31234 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31235 exec 5>>config.log
31236 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31237 # would make configure fail if this is the last instruction.
31238 $ac_cs_success || as_fn_exit $?
31240 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31242 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}