2015-08-12 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git] / gcc / configure
blob8e89dd9c6ebb39b56915e9133d243efbbc179eb2
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 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_GOLD_FOR_TARGET
687 ORIGINAL_LD_BFD_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
705 FGREP
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CXXFLAGS
712 BUILD_CFLAGS
713 CXX_FOR_BUILD
714 CC_FOR_BUILD
715 inhibit_libc
716 SYSTEM_HEADER_DIR
718 CROSS
719 CATOBJEXT
720 GENCAT
721 INSTOBJEXT
722 DATADIRNAME
723 CATALOGS
724 POSUB
725 GMSGFMT
726 XGETTEXT
727 INCINTL
728 LIBINTL_DEP
729 LIBINTL
730 USE_NLS
731 extra_opt_files
732 extra_modes_file
733 NATIVE_SYSTEM_HEADER_DIR
734 objext
735 manext
736 LIBICONV_DEP
737 LTLIBICONV
738 LIBICONV
739 LDEXP_LIB
740 EXTRA_GCC_LIBS
741 GNAT_LIBEXC
742 COLLECT2_LIBS
743 CXXDEPMODE
744 DEPDIR
745 am__leading_dot
746 doc_build_sys
749 BISON
750 FLEX
751 GENERATED_MANPAGES
752 BUILD_INFO
753 MAKEINFO
754 have_mktemp_command
755 make_compare_target
756 INSTALL_DATA
757 INSTALL_PROGRAM
758 INSTALL
759 ranlib_flags
760 RANLIB
762 LN_S
764 SET_MAKE
765 accel_dir_suffix
766 real_target_noncanonical
767 enable_as_accelerator
768 REPORT_BUGS_TEXI
769 REPORT_BUGS_TO
770 PKGVERSION
771 CONFIGURE_SPECS
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 nocommon_flag
785 noexception_flags
786 warn_cxxflags
787 warn_cflags
788 c_strict_warn
789 strict_warn
790 c_loose_warn
791 loose_warn
792 aliasing_flags
794 EGREP
795 GREP
796 CXXCPP
797 PICFLAG_FOR_TARGET
798 GNATMAKE
799 GNATBIND
800 ac_ct_CXX
801 CXXFLAGS
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
810 GENINSRC
811 CROSS_SYSTEM_HEADER_DIR
812 TARGET_SYSTEM_ROOT_DEFINE
813 TARGET_SYSTEM_ROOT
814 SYSROOT_CFLAGS_FOR_TARGET
815 target_subdir
816 host_subdir
817 build_subdir
818 build_libsubdir
819 target_noncanonical
820 target_os
821 target_vendor
822 target_cpu
823 target
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files='option_includes
871 language_hooks'
872 ac_user_opts='
873 enable_option_checking
874 with_build_libsubdir
875 with_local_prefix
876 with_native_system_header_dir
877 with_build_sysroot
878 with_sysroot
879 with_gxx_include_dir
880 with_cpp_install_dir
881 enable_generated_files_in_srcdir
882 with_gnu_ld
883 with_ld
884 with_demangler_in_ld
885 with_gnu_as
886 with_as
887 enable_largefile
888 enable_build_format_warnings
889 enable_werror_always
890 enable_checking
891 enable_coverage
892 enable_gather_detailed_mem_stats
893 enable_valgrind_annotations
894 with_stabs
895 enable_multilib
896 enable_multiarch
897 enable___cxa_atexit
898 enable_decimal_float
899 enable_fixed_point
900 enable_threads
901 enable_tls
902 enable_objc_gc
903 with_dwarf2
904 enable_shared
905 with_specs
906 with_pkgversion
907 with_bugurl
908 enable_languages
909 with_multilib_list
910 enable_rpath
911 with_libiconv_prefix
912 enable_sjlj_exceptions
913 enable_secureplt
914 enable_leading_mingw64_underscores
915 enable_cld
916 enable_frame_pointer
917 enable_win32_registry
918 enable_static
919 with_pic
920 enable_fast_install
921 enable_libtool_lock
922 enable_ld
923 enable_gold
924 with_plugin_ld
925 enable_gnu_indirect_function
926 enable_initfini_array
927 enable_comdat
928 enable_fix_cortex_a53_835769
929 enable_fix_cortex_a53_843419
930 with_glibc_version
931 enable_gnu_unique_object
932 enable_linker_build_id
933 with_long_double_128
934 with_gc
935 with_system_zlib
936 enable_maintainer_mode
937 enable_link_mutex
938 enable_version_specific_runtime_libs
939 enable_plugin
940 enable_host_shared
941 enable_libquadmath_support
942 with_linker_hash_style
943 with_diagnostics_color
944 enable_default_pie
946 ac_precious_vars='build_alias
947 host_alias
948 target_alias
950 CFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
955 CXXFLAGS
957 CXXCPP
959 GMPLIBS
960 GMPINC
961 ISLLIBS
962 ISLINC'
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1033 ac_dashdash=yes ;;
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 ac_prev=sbindir ;;
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 | --sbi=* | --sb=*)
1256 sbindir=$ac_optarg ;;
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1261 | --sha | --sh)
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 | --sha=* | --sh=*)
1267 sharedstatedir=$ac_optarg ;;
1269 -site | --site | --sit)
1270 ac_prev=site ;;
1271 -site=* | --site=* | --sit=*)
1272 site=$ac_optarg ;;
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 ac_prev=srcdir ;;
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 verbose=yes ;;
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1297 -with-* | --with-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1347 -*) as_fn_error "unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information."
1351 *=*)
1352 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353 # Reject names that are not valid shell variable names.
1354 case $ac_envvar in #(
1355 '' | [0-9]* | *[!_$as_cr_alnum]* )
1356 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1357 esac
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 esac
1370 done
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 as_fn_error "missing argument to $ac_option"
1377 if test -n "$ac_unrecognized_opts"; then
1378 case $enable_option_checking in
1379 no) ;;
1380 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1404 done
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427 test "$silent" = yes && exec 6>/dev/null
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error "working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error "pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1456 /^X\(\/\/\)$/{
1457 s//\1/
1460 /^X\(\/\).*/{
1461 s//\1/
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1469 else
1470 ac_srcdir_defaulted=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 ac_abs_confdir=`(
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1559 cat <<\_ACEOF
1561 Program names:
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1566 System types:
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1569 --target=TARGET configure for building compilers for TARGET [HOST]
1570 _ACEOF
1573 if test -n "$ac_init_help"; then
1575 cat <<\_ACEOF
1577 Optional Features:
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-generated-files-in-srcdir
1582 put copies of generated files in source dir intended
1583 for creating source tarballs for users without
1584 texinfo bison or flex
1585 --disable-largefile omit support for large files
1586 --disable-build-format-warnings
1587 don't use -Wformat while building GCC
1588 --enable-werror-always enable -Werror despite compiler version
1589 --enable-checking[=LIST]
1590 enable expensive run-time checks. With LIST, enable
1591 only specific categories of checks. Categories are:
1592 yes,no,all,none,release. Flags are:
1593 assert,df,fold,gc,gcac,gimple,misc,
1594 rtlflag,rtl,runtime,tree,valgrind,types
1595 --enable-coverage[=LEVEL]
1596 enable compiler's code coverage collection. Use to
1597 measure compiler performance and locate unused parts
1598 of the compiler. With LEVEL, specify optimization.
1599 Values are opt, noopt, default is noopt
1600 --enable-gather-detailed-mem-stats
1601 enable detailed memory allocation stats gathering
1602 --enable-valgrind-annotations
1603 enable valgrind runtime interaction
1604 --enable-multilib enable library support for multiple ABIs
1605 --enable-multiarch enable support for multiarch paths
1606 --enable-__cxa_atexit enable __cxa_atexit for C++
1607 --enable-decimal-float={no,yes,bid,dpd}
1608 enable decimal float extension to C. Selecting 'bid'
1609 or 'dpd' choses which decimal floating point format
1610 to use
1611 --enable-fixed-point enable fixed-point arithmetic extension to C
1612 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1613 package
1614 --enable-tls enable or disable generation of tls code overriding
1615 the assembler check for tls support
1616 --enable-objc-gc enable the use of Boehm's garbage collector with the
1617 GNU Objective-C runtime
1618 --disable-shared don't provide a shared libgcc
1619 --enable-languages=LIST specify which front-ends to build
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on 64 bit mingw targets
1626 --enable-cld enable -mcld by default for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths in the Registry
1631 on Windows hosts
1632 --enable-win32-registry enable registry lookup (default)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1635 of the registry key
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1642 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1645 glibc systems
1646 --enable-initfini-array use .init_array/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1649 --enable-fix-cortex-a53-835769
1650 enable workaround for AArch64 Cortex-A53 erratum
1651 835769 by default
1652 --disable-fix-cortex-a53-835769
1653 disable workaround for AArch64 Cortex-A53 erratum
1654 835769 by default
1657 --enable-fix-cortex-a53-843419
1658 enable workaround for AArch64 Cortex-A53 erratum
1659 843419 by default
1660 --disable-fix-cortex-a53-843419
1661 disable workaround for AArch64 Cortex-A53 erratum
1662 843419 by default
1664 --enable-gnu-unique-object
1665 enable the use of the @gnu_unique_object ELF
1666 extension on glibc systems
1667 --enable-linker-build-id
1668 compiler will always pass --build-id to linker
1669 --enable-maintainer-mode
1670 enable make rules and dependencies not useful (and
1671 sometimes confusing) to the casual installer
1672 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1673 thrashing on the build machine
1674 --enable-version-specific-runtime-libs
1675 specify that runtime libraries should be installed
1676 in a compiler-specific directory
1677 --enable-plugin enable plugin support
1678 --enable-host-shared build host code as shared libraries
1679 --disable-libquadmath-support
1680 disable libquadmath support for Fortran
1681 --enable-default-pie enable Position Independent Executable as default
1683 Optional Packages:
1684 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1685 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1686 --with-build-libsubdir=DIR Directory where to find libraries for build system
1687 --with-local-prefix=DIR specifies directory to put local include
1688 --with-native-system-header-dir=dir
1689 use dir as the directory to look for standard
1690 system header files in. Defaults to /usr/include.
1691 --with-build-sysroot=sysroot
1692 use sysroot as the system root during the build
1693 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1694 --with-gxx-include-dir=DIR
1695 specifies directory to put g++ header files
1696 --with-cpp-install-dir=DIR
1697 install the user visible C preprocessor in DIR
1698 (relative to PREFIX) as well as PREFIX/bin
1699 --with-gnu-ld arrange to work with GNU ld
1700 --with-ld arrange to use the specified ld (full pathname)
1701 --with-demangler-in-ld try to use demangler in GNU ld
1702 --with-gnu-as arrange to work with GNU as
1703 --with-as arrange to use the specified as (full pathname)
1704 --with-stabs arrange to use stabs instead of host debug format
1705 --with-dwarf2 force the default debug format to be DWARF 2
1706 --with-specs=SPECS add SPECS to driver command-line processing
1707 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1708 --with-bugurl=URL Direct users to URL to report a bug
1709 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1710 --with-gnu-ld assume the C compiler uses GNU ld default=no
1711 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1712 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1713 --with-pic try to use only PIC/non-PIC objects [default=use
1714 both]
1715 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1716 --with-plugin-ld=[ARG] specify the plugin linker
1717 --with-glibc-version=M.N
1718 assume GCC used with glibc version M.N or later
1719 --with-long-double-128 use 128-bit long double by default
1720 --with-gc={page,zone} this option is not supported anymore. It used to
1721 choose the garbage collection mechanism to use with
1722 the compiler
1723 --with-system-zlib use installed libz
1724 --with-linker-hash-style={sysv,gnu,both}
1725 specify the linker hash style
1726 --with-diagnostics-color={never,auto,auto-if-env,always}
1727 specify the default of -fdiagnostics-color option
1728 auto-if-env stands for -fdiagnostics-color=auto if
1729 GCC_COLOR environment variable is present and
1730 -fdiagnostics-color=never otherwise
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1740 CXX C++ compiler command
1741 CXXFLAGS C++ compiler flags
1742 CXXCPP C++ preprocessor
1743 CPP C preprocessor
1744 GMPLIBS How to link GMP
1745 GMPINC How to find GMP include files
1746 ISLLIBS How to link ISL
1747 ISLINC How to find ISL include files
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1752 Report bugs to the package provider.
1753 _ACEOF
1754 ac_status=$?
1757 if test "$ac_init_help" = "recursive"; then
1758 # If there are subdirs, report their specific --help.
1759 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760 test -d "$ac_dir" ||
1761 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762 continue
1763 ac_builddir=.
1765 case "$ac_dir" in
1766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769 # A ".." for each directory in $ac_dir_suffix.
1770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771 case $ac_top_builddir_sub in
1772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1774 esac ;;
1775 esac
1776 ac_abs_top_builddir=$ac_pwd
1777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1778 # for backward compatibility:
1779 ac_top_builddir=$ac_top_build_prefix
1781 case $srcdir in
1782 .) # We are building in place.
1783 ac_srcdir=.
1784 ac_top_srcdir=$ac_top_builddir_sub
1785 ac_abs_top_srcdir=$ac_pwd ;;
1786 [\\/]* | ?:[\\/]* ) # Absolute name.
1787 ac_srcdir=$srcdir$ac_dir_suffix;
1788 ac_top_srcdir=$srcdir
1789 ac_abs_top_srcdir=$srcdir ;;
1790 *) # Relative name.
1791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792 ac_top_srcdir=$ac_top_build_prefix$srcdir
1793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1794 esac
1795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1797 cd "$ac_dir" || { ac_status=$?; continue; }
1798 # Check for guested configure.
1799 if test -f "$ac_srcdir/configure.gnu"; then
1800 echo &&
1801 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802 elif test -f "$ac_srcdir/configure"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure" --help=recursive
1805 else
1806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807 fi || ac_status=$?
1808 cd "$ac_pwd" || { ac_status=$?; break; }
1809 done
1812 test -n "$ac_init_help" && exit $ac_status
1813 if $ac_init_version; then
1814 cat <<\_ACEOF
1815 configure
1816 generated by GNU Autoconf 2.64
1818 Copyright (C) 2009 Free Software Foundation, Inc.
1819 This configure script is free software; the Free Software Foundation
1820 gives unlimited permission to copy, distribute and modify it.
1821 _ACEOF
1822 exit
1825 ## ------------------------ ##
1826 ## Autoconf initialization. ##
1827 ## ------------------------ ##
1829 # ac_fn_c_try_compile LINENO
1830 # --------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1865 } # ac_fn_c_try_compile
1867 # ac_fn_cxx_try_compile LINENO
1868 # ----------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.$ac_objext; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=1
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 return $ac_retval
1903 } # ac_fn_cxx_try_compile
1905 # ac_fn_cxx_try_cpp LINENO
1906 # ------------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_cpp ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_cpp conftest.$ac_ext"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } >/dev/null && {
1927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1929 }; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=1
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 return $ac_retval
1940 } # ac_fn_cxx_try_cpp
1942 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # ---------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_cxx_check_header_mongrel ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_cxx_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970 else
1971 ac_header_compiler=no
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_cxx_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986 else
1987 ac_header_preproc=no
1989 rm -f conftest.err conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 esac
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=\$ac_header_compiler"
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 } # ac_fn_cxx_check_header_mongrel
2029 # ac_fn_cxx_try_run LINENO
2030 # ------------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2032 # that executables *can* be run.
2033 ac_fn_cxx_try_run ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_link"
2037 case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>&5
2044 ac_status=$?
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2047 { { case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_try") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; }; }; then :
2057 ac_retval=0
2058 else
2059 $as_echo "$as_me: program exited with status $ac_status" >&5
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 ac_retval=$ac_status
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 return $ac_retval
2069 } # ac_fn_cxx_try_run
2071 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2072 # ---------------------------------------------------------
2073 # Tests whether HEADER exists and can be compiled using the include files in
2074 # INCLUDES, setting the cache variable VAR accordingly.
2075 ac_fn_cxx_check_header_compile ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_cxx_try_compile "$LINENO"; then :
2089 eval "$3=yes"
2090 else
2091 eval "$3=no"
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 } # ac_fn_cxx_check_header_compile
2102 # ac_fn_c_try_cpp LINENO
2103 # ----------------------
2104 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_c_try_cpp ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 if { { ac_try="$ac_cpp conftest.$ac_ext"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2116 ac_status=$?
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } >/dev/null && {
2124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2125 test ! -s conftest.err
2126 }; then :
2127 ac_retval=0
2128 else
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 ac_retval=1
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135 return $ac_retval
2137 } # ac_fn_c_try_cpp
2139 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2140 # ----------------------------------------------
2141 # Tries to find the compile-time value of EXPR in a program that includes
2142 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2143 # computed
2144 ac_fn_cxx_compute_int ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if test "$cross_compiling" = yes; then
2148 # Depending upon the size, compute the lo and hi bounds.
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 static int test_array [1 - 2 * !(($2) >= 0)];
2156 test_array [0] = 0
2159 return 0;
2161 _ACEOF
2162 if ac_fn_cxx_try_compile "$LINENO"; then :
2163 ac_lo=0 ac_mid=0
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 test_array [0] = 0
2175 return 0;
2177 _ACEOF
2178 if ac_fn_cxx_try_compile "$LINENO"; then :
2179 ac_hi=$ac_mid; break
2180 else
2181 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2182 if test $ac_lo -le $ac_mid; then
2183 ac_lo= ac_hi=
2184 break
2186 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 else
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2195 main ()
2197 static int test_array [1 - 2 * !(($2) < 0)];
2198 test_array [0] = 0
2201 return 0;
2203 _ACEOF
2204 if ac_fn_cxx_try_compile "$LINENO"; then :
2205 ac_hi=-1 ac_mid=-1
2206 while :; do
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2214 test_array [0] = 0
2217 return 0;
2219 _ACEOF
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221 ac_lo=$ac_mid; break
2222 else
2223 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2224 if test $ac_mid -le $ac_hi; then
2225 ac_lo= ac_hi=
2226 break
2228 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 done
2232 else
2233 ac_lo= ac_hi=
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 # Binary search between lo and hi bounds.
2239 while test "x$ac_lo" != "x$ac_hi"; do
2240 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2248 test_array [0] = 0
2251 return 0;
2253 _ACEOF
2254 if ac_fn_cxx_try_compile "$LINENO"; then :
2255 ac_hi=$ac_mid
2256 else
2257 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 done
2261 case $ac_lo in #((
2262 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2263 '') ac_retval=1 ;;
2264 esac
2265 else
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2269 static long int longval () { return $2; }
2270 static unsigned long int ulongval () { return $2; }
2271 #include <stdio.h>
2272 #include <stdlib.h>
2274 main ()
2277 FILE *f = fopen ("conftest.val", "w");
2278 if (! f)
2279 return 1;
2280 if (($2) < 0)
2282 long int i = longval ();
2283 if (i != ($2))
2284 return 1;
2285 fprintf (f, "%ld", i);
2287 else
2289 unsigned long int i = ulongval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%lu", i);
2294 /* Do not output a trailing newline, as this causes \r\n confusion
2295 on some platforms. */
2296 return ferror (f) || fclose (f) != 0;
2299 return 0;
2301 _ACEOF
2302 if ac_fn_cxx_try_run "$LINENO"; then :
2303 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2304 else
2305 ac_retval=1
2307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2308 conftest.$ac_objext conftest.beam conftest.$ac_ext
2309 rm -f conftest.val
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313 return $ac_retval
2315 } # ac_fn_cxx_compute_int
2317 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2318 # ---------------------------------------------
2319 # Tests whether TYPE exists after having included INCLUDES, setting cache
2320 # variable VAR accordingly.
2321 ac_fn_cxx_check_type ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 eval "$3=no"
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2334 main ()
2336 if (sizeof ($2))
2337 return 0;
2339 return 0;
2341 _ACEOF
2342 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2347 main ()
2349 if (sizeof (($2)))
2350 return 0;
2352 return 0;
2354 _ACEOF
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2357 else
2358 eval "$3=yes"
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 } # ac_fn_cxx_check_type
2371 # ac_fn_c_find_intX_t LINENO BITS VAR
2372 # -----------------------------------
2373 # Finds a signed integer type with width BITS, setting cache variable VAR
2374 # accordingly.
2375 ac_fn_c_find_intX_t ()
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2379 $as_echo_n "checking for int$2_t... " >&6; }
2380 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 eval "$3=no"
2384 for ac_type in int$2_t 'int' 'long int' \
2385 'long long int' 'short int' 'signed char'; do
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2388 $ac_includes_default
2390 main ()
2392 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2393 test_array [0] = 0
2396 return 0;
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $ac_includes_default
2404 main ()
2406 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2407 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2408 test_array [0] = 0
2411 return 0;
2413 _ACEOF
2414 if ac_fn_cxx_try_compile "$LINENO"; then :
2416 else
2417 case $ac_type in #(
2418 int$2_t) :
2419 eval "$3=yes" ;; #(
2420 *) :
2421 eval "$3=\$ac_type" ;;
2422 esac
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 eval as_val=\$$3
2428 if test "x$as_val" = x""no; then :
2430 else
2431 break
2433 done
2435 eval ac_res=\$$3
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2440 } # ac_fn_c_find_intX_t
2442 # ac_fn_cxx_try_link LINENO
2443 # -------------------------
2444 # Try to link conftest.$ac_ext, and return whether this succeeded.
2445 ac_fn_cxx_try_link ()
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { { ac_try="$ac_link"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2455 $as_echo "$ac_try_echo"; } >&5
2456 (eval "$ac_link") 2>conftest.err
2457 ac_status=$?
2458 if test -s conftest.err; then
2459 grep -v '^ *+' conftest.err >conftest.er1
2460 cat conftest.er1 >&5
2461 mv -f conftest.er1 conftest.err
2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464 test $ac_status = 0; } && {
2465 test -z "$ac_cxx_werror_flag" ||
2466 test ! -s conftest.err
2467 } && test -s conftest$ac_exeext && {
2468 test "$cross_compiling" = yes ||
2469 $as_test_x conftest$ac_exeext
2470 }; then :
2471 ac_retval=0
2472 else
2473 $as_echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2476 ac_retval=1
2478 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2479 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2480 # interfere with the next link command; also delete a directory that is
2481 # left behind by Apple's compiler. We do this before executing the actions.
2482 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 return $ac_retval
2486 } # ac_fn_cxx_try_link
2488 # ac_fn_c_find_uintX_t LINENO BITS VAR
2489 # ------------------------------------
2490 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2491 # accordingly.
2492 ac_fn_c_find_uintX_t ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2496 $as_echo_n "checking for uint$2_t... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 eval "$3=no"
2501 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2502 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2505 $ac_includes_default
2507 main ()
2509 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2510 test_array [0] = 0
2513 return 0;
2515 _ACEOF
2516 if ac_fn_cxx_try_compile "$LINENO"; then :
2517 case $ac_type in #(
2518 uint$2_t) :
2519 eval "$3=yes" ;; #(
2520 *) :
2521 eval "$3=\$ac_type" ;;
2522 esac
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 eval as_val=\$$3
2526 if test "x$as_val" = x""no; then :
2528 else
2529 break
2531 done
2533 eval ac_res=\$$3
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_find_uintX_t
2540 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2541 # ------------------------------------------------
2542 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2543 ac_fn_cxx_check_header_preproc ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_cxx_try_cpp "$LINENO"; then :
2556 eval "$3=yes"
2557 else
2558 eval "$3=no"
2560 rm -f conftest.err conftest.$ac_ext
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_cxx_check_header_preproc
2569 # ac_fn_cxx_check_func LINENO FUNC VAR
2570 # ------------------------------------
2571 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2572 ac_fn_cxx_check_func ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2582 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2584 #define $2 innocuous_$2
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $2 (); below.
2588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2589 <limits.h> exists even on freestanding compilers. */
2591 #ifdef __STDC__
2592 # include <limits.h>
2593 #else
2594 # include <assert.h>
2595 #endif
2597 #undef $2
2599 /* Override any GCC internal prototype to avoid an error.
2600 Use char because int might match the return type of a GCC
2601 builtin and then its argument prototype would still apply. */
2602 #ifdef __cplusplus
2603 extern "C"
2604 #endif
2605 char $2 ();
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined __stub_$2 || defined __stub___$2
2610 choke me
2611 #endif
2614 main ()
2616 return $2 ();
2618 return 0;
2620 _ACEOF
2621 if ac_fn_cxx_try_link "$LINENO"; then :
2622 eval "$3=yes"
2623 else
2624 eval "$3=no"
2626 rm -f core conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2629 eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631 $as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2634 } # ac_fn_cxx_check_func
2636 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2637 # --------------------------------------
2638 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2639 ac_fn_cxx_check_decl ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 as_decl_name=`echo $2|sed 's/ *(.*//'`
2643 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2645 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2653 main ()
2655 #ifndef $as_decl_name
2656 #ifdef __cplusplus
2657 (void) $as_decl_use;
2658 #else
2659 (void) $as_decl_name;
2660 #endif
2661 #endif
2664 return 0;
2666 _ACEOF
2667 if ac_fn_cxx_try_compile "$LINENO"; then :
2668 eval "$3=yes"
2669 else
2670 eval "$3=no"
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 eval ac_res=\$$3
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2679 } # ac_fn_cxx_check_decl
2681 # ac_fn_c_try_link LINENO
2682 # -----------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded.
2684 ac_fn_c_try_link ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 rm -f conftest.$ac_objext conftest$ac_exeext
2688 if { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link") 2>conftest.err
2696 ac_status=$?
2697 if test -s conftest.err; then
2698 grep -v '^ *+' conftest.err >conftest.er1
2699 cat conftest.er1 >&5
2700 mv -f conftest.er1 conftest.err
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest$ac_exeext && {
2707 test "$cross_compiling" = yes ||
2708 $as_test_x conftest$ac_exeext
2709 }; then :
2710 ac_retval=0
2711 else
2712 $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 ac_retval=1
2717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2719 # interfere with the next link command; also delete a directory that is
2720 # left behind by Apple's compiler. We do this before executing the actions.
2721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2723 return $ac_retval
2725 } # ac_fn_c_try_link
2727 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2728 # ----------------------------------------------
2729 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2730 ac_fn_c_check_header_preproc ()
2732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740 #include <$2>
2741 _ACEOF
2742 if ac_fn_c_try_cpp "$LINENO"; then :
2743 eval "$3=yes"
2744 else
2745 eval "$3=no"
2747 rm -f conftest.err conftest.$ac_ext
2749 eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2754 } # ac_fn_c_check_header_preproc
2756 # ac_fn_c_check_func LINENO FUNC VAR
2757 # ----------------------------------
2758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2759 ac_fn_c_check_func ()
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2763 $as_echo_n "checking for $2... " >&6; }
2764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2771 #define $2 innocuous_$2
2773 /* System header to define __stub macros and hopefully few prototypes,
2774 which can conflict with char $2 (); below.
2775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2776 <limits.h> exists even on freestanding compilers. */
2778 #ifdef __STDC__
2779 # include <limits.h>
2780 #else
2781 # include <assert.h>
2782 #endif
2784 #undef $2
2786 /* Override any GCC internal prototype to avoid an error.
2787 Use char because int might match the return type of a GCC
2788 builtin and then its argument prototype would still apply. */
2789 #ifdef __cplusplus
2790 extern "C"
2791 #endif
2792 char $2 ();
2793 /* The GNU C library defines this for functions which it implements
2794 to always fail with ENOSYS. Some functions are actually named
2795 something starting with __ and the normal name is an alias. */
2796 #if defined __stub_$2 || defined __stub___$2
2797 choke me
2798 #endif
2801 main ()
2803 return $2 ();
2805 return 0;
2807 _ACEOF
2808 if ac_fn_c_try_link "$LINENO"; then :
2809 eval "$3=yes"
2810 else
2811 eval "$3=no"
2813 rm -f core conftest.err conftest.$ac_objext \
2814 conftest$ac_exeext conftest.$ac_ext
2816 eval ac_res=\$$3
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818 $as_echo "$ac_res" >&6; }
2819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2821 } # ac_fn_c_check_func
2822 cat >config.log <<_ACEOF
2823 This file contains any messages produced by compilers while
2824 running configure, to aid debugging if configure makes a mistake.
2826 It was created by $as_me, which was
2827 generated by GNU Autoconf 2.64. Invocation command line was
2829 $ $0 $@
2831 _ACEOF
2832 exec 5>>config.log
2834 cat <<_ASUNAME
2835 ## --------- ##
2836 ## Platform. ##
2837 ## --------- ##
2839 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2840 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2841 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2842 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2843 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2845 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2846 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2848 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2849 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2850 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2851 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2852 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2853 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2854 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2856 _ASUNAME
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 $as_echo "PATH: $as_dir"
2864 done
2865 IFS=$as_save_IFS
2867 } >&5
2869 cat >&5 <<_ACEOF
2872 ## ----------- ##
2873 ## Core tests. ##
2874 ## ----------- ##
2876 _ACEOF
2879 # Keep a trace of the command line.
2880 # Strip out --no-create and --no-recursion so they do not pile up.
2881 # Strip out --silent because we don't want to record it for future runs.
2882 # Also quote any args containing shell meta-characters.
2883 # Make two passes to allow for proper duplicate-argument suppression.
2884 ac_configure_args=
2885 ac_configure_args0=
2886 ac_configure_args1=
2887 ac_must_keep_next=false
2888 for ac_pass in 1 2
2890 for ac_arg
2892 case $ac_arg in
2893 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2895 | -silent | --silent | --silen | --sile | --sil)
2896 continue ;;
2897 *\'*)
2898 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2899 esac
2900 case $ac_pass in
2901 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2903 as_fn_append ac_configure_args1 " '$ac_arg'"
2904 if test $ac_must_keep_next = true; then
2905 ac_must_keep_next=false # Got value, back to normal.
2906 else
2907 case $ac_arg in
2908 *=* | --config-cache | -C | -disable-* | --disable-* \
2909 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2910 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2911 | -with-* | --with-* | -without-* | --without-* | --x)
2912 case "$ac_configure_args0 " in
2913 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2914 esac
2916 -* ) ac_must_keep_next=true ;;
2917 esac
2919 as_fn_append ac_configure_args " '$ac_arg'"
2921 esac
2922 done
2923 done
2924 { ac_configure_args0=; unset ac_configure_args0;}
2925 { ac_configure_args1=; unset ac_configure_args1;}
2927 # When interrupted or exit'd, cleanup temporary files, and complete
2928 # config.log. We remove comments because anyway the quotes in there
2929 # would cause problems or look ugly.
2930 # WARNING: Use '\'' to represent an apostrophe within the trap.
2931 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2932 trap 'exit_status=$?
2933 # Save into config.log some information that might help in debugging.
2935 echo
2937 cat <<\_ASBOX
2938 ## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##
2941 _ASBOX
2942 echo
2943 # The following way of writing the cache mishandles newlines in values,
2945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2946 eval ac_val=\$$ac_var
2947 case $ac_val in #(
2948 *${as_nl}*)
2949 case $ac_var in #(
2950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2952 esac
2953 case $ac_var in #(
2954 _ | IFS | as_nl) ;; #(
2955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2956 *) { eval $ac_var=; unset $ac_var;} ;;
2957 esac ;;
2958 esac
2959 done
2960 (set) 2>&1 |
2961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2962 *${as_nl}ac_space=\ *)
2963 sed -n \
2964 "s/'\''/'\''\\\\'\'''\''/g;
2965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2966 ;; #(
2968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2970 esac |
2971 sort
2973 echo
2975 cat <<\_ASBOX
2976 ## ----------------- ##
2977 ## Output variables. ##
2978 ## ----------------- ##
2979 _ASBOX
2980 echo
2981 for ac_var in $ac_subst_vars
2983 eval ac_val=\$$ac_var
2984 case $ac_val in
2985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986 esac
2987 $as_echo "$ac_var='\''$ac_val'\''"
2988 done | sort
2989 echo
2991 if test -n "$ac_subst_files"; then
2992 cat <<\_ASBOX
2993 ## ------------------- ##
2994 ## File substitutions. ##
2995 ## ------------------- ##
2996 _ASBOX
2997 echo
2998 for ac_var in $ac_subst_files
3000 eval ac_val=\$$ac_var
3001 case $ac_val in
3002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3003 esac
3004 $as_echo "$ac_var='\''$ac_val'\''"
3005 done | sort
3006 echo
3009 if test -s confdefs.h; then
3010 cat <<\_ASBOX
3011 ## ----------- ##
3012 ## confdefs.h. ##
3013 ## ----------- ##
3014 _ASBOX
3015 echo
3016 cat confdefs.h
3017 echo
3019 test "$ac_signal" != 0 &&
3020 $as_echo "$as_me: caught signal $ac_signal"
3021 $as_echo "$as_me: exit $exit_status"
3022 } >&5
3023 rm -f core *.core core.conftest.* &&
3024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3025 exit $exit_status
3027 for ac_signal in 1 2 13 15; do
3028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3029 done
3030 ac_signal=0
3032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3033 rm -f -r conftest* confdefs.h
3035 $as_echo "/* confdefs.h */" > confdefs.h
3037 # Predefined preprocessor variables.
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_NAME "$PACKAGE_NAME"
3041 _ACEOF
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3045 _ACEOF
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3049 _ACEOF
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_STRING "$PACKAGE_STRING"
3053 _ACEOF
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3057 _ACEOF
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_URL "$PACKAGE_URL"
3061 _ACEOF
3064 # Let the site file select an alternate cache file if it wants to.
3065 # Prefer an explicitly selected file to automatically selected ones.
3066 ac_site_file1=NONE
3067 ac_site_file2=NONE
3068 if test -n "$CONFIG_SITE"; then
3069 ac_site_file1=$CONFIG_SITE
3070 elif test "x$prefix" != xNONE; then
3071 ac_site_file1=$prefix/share/config.site
3072 ac_site_file2=$prefix/etc/config.site
3073 else
3074 ac_site_file1=$ac_default_prefix/share/config.site
3075 ac_site_file2=$ac_default_prefix/etc/config.site
3077 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3079 test "x$ac_site_file" = xNONE && continue
3080 if test -r "$ac_site_file"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3083 sed 's/^/| /' "$ac_site_file" >&5
3084 . "$ac_site_file"
3086 done
3088 if test -r "$cache_file"; then
3089 # Some versions of bash will fail to source /dev/null (special
3090 # files actually), so we avoid doing that.
3091 if test -f "$cache_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3093 $as_echo "$as_me: loading cache $cache_file" >&6;}
3094 case $cache_file in
3095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3096 *) . "./$cache_file";;
3097 esac
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3101 $as_echo "$as_me: creating cache $cache_file" >&6;}
3102 >$cache_file
3105 # Check that the precious variables saved in the cache have kept the same
3106 # value.
3107 ac_cache_corrupted=false
3108 for ac_var in $ac_precious_vars; do
3109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3110 eval ac_new_set=\$ac_env_${ac_var}_set
3111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3112 eval ac_new_val=\$ac_env_${ac_var}_value
3113 case $ac_old_set,$ac_new_set in
3114 set,)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,set)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3121 ac_cache_corrupted=: ;;
3122 ,);;
3124 if test "x$ac_old_val" != "x$ac_new_val"; then
3125 # differences in whitespace do not lead to failure.
3126 ac_old_val_w=`echo x $ac_old_val`
3127 ac_new_val_w=`echo x $ac_new_val`
3128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3131 ac_cache_corrupted=:
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3135 eval $ac_var=\$ac_old_val
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 fi;;
3142 esac
3143 # Pass precious variables to config.status.
3144 if test "$ac_new_set" = set; then
3145 case $ac_new_val in
3146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 *) ac_arg=$ac_var=$ac_new_val ;;
3148 esac
3149 case " $ac_configure_args " in
3150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3152 esac
3154 done
3155 if $ac_cache_corrupted; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3160 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3180 gcc_version=`cat $srcdir/BASE-VER`
3182 # Determine the host, build, and target systems
3183 ac_aux_dir=
3184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3185 for ac_t in install-sh install.sh shtool; do
3186 if test -f "$ac_dir/$ac_t"; then
3187 ac_aux_dir=$ac_dir
3188 ac_install_sh="$ac_aux_dir/$ac_t -c"
3189 break 2
3191 done
3192 done
3193 if test -z "$ac_aux_dir"; then
3194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3197 # These three variables are undocumented and unsupported,
3198 # and are intended to be withdrawn in a future Autoconf release.
3199 # They can cause serious problems if a builder's source tree is in a directory
3200 # whose full name contains unusual characters.
3201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3206 # Make sure we can run config.sub.
3207 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3211 $as_echo_n "checking build system type... " >&6; }
3212 if test "${ac_cv_build+set}" = set; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 ac_build_alias=$build_alias
3216 test "x$ac_build_alias" = x &&
3217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3218 test "x$ac_build_alias" = x &&
3219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3220 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3225 $as_echo "$ac_cv_build" >&6; }
3226 case $ac_cv_build in
3227 *-*-*) ;;
3228 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3229 esac
3230 build=$ac_cv_build
3231 ac_save_IFS=$IFS; IFS='-'
3232 set x $ac_cv_build
3233 shift
3234 build_cpu=$1
3235 build_vendor=$2
3236 shift; shift
3237 # Remember, the first character of IFS is used to create $*,
3238 # except with old shells:
3239 build_os=$*
3240 IFS=$ac_save_IFS
3241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3245 $as_echo_n "checking host system type... " >&6; }
3246 if test "${ac_cv_host+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test "x$host_alias" = x; then
3250 ac_cv_host=$ac_cv_build
3251 else
3252 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3253 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3258 $as_echo "$ac_cv_host" >&6; }
3259 case $ac_cv_host in
3260 *-*-*) ;;
3261 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3262 esac
3263 host=$ac_cv_host
3264 ac_save_IFS=$IFS; IFS='-'
3265 set x $ac_cv_host
3266 shift
3267 host_cpu=$1
3268 host_vendor=$2
3269 shift; shift
3270 # Remember, the first character of IFS is used to create $*,
3271 # except with old shells:
3272 host_os=$*
3273 IFS=$ac_save_IFS
3274 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3278 $as_echo_n "checking target system type... " >&6; }
3279 if test "${ac_cv_target+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test "x$target_alias" = x; then
3283 ac_cv_target=$ac_cv_host
3284 else
3285 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3286 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3291 $as_echo "$ac_cv_target" >&6; }
3292 case $ac_cv_target in
3293 *-*-*) ;;
3294 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3295 esac
3296 target=$ac_cv_target
3297 ac_save_IFS=$IFS; IFS='-'
3298 set x $ac_cv_target
3299 shift
3300 target_cpu=$1
3301 target_vendor=$2
3302 shift; shift
3303 # Remember, the first character of IFS is used to create $*,
3304 # except with old shells:
3305 target_os=$*
3306 IFS=$ac_save_IFS
3307 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3310 # The aliases save the names the user supplied, while $host etc.
3311 # will get canonicalized.
3312 test -n "$target_alias" &&
3313 test "$program_prefix$program_suffix$program_transform_name" = \
3314 NONENONEs,x,x, &&
3315 program_prefix=${target_alias}-
3317 # Determine the noncanonical target name, for directory use.
3318 case ${build_alias} in
3319 "") build_noncanonical=${build} ;;
3320 *) build_noncanonical=${build_alias} ;;
3321 esac
3323 case ${host_alias} in
3324 "") host_noncanonical=${build_noncanonical} ;;
3325 *) host_noncanonical=${host_alias} ;;
3326 esac
3328 case ${target_alias} in
3329 "") target_noncanonical=${host_noncanonical} ;;
3330 *) target_noncanonical=${target_alias} ;;
3331 esac
3336 # Used for constructing correct paths for offload compilers.
3337 real_target_noncanonical=${target_noncanonical}
3338 accel_dir_suffix=
3340 # Determine the target- and build-specific subdirectories
3342 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3343 # have matching libraries, they should use host libraries: Makefile.tpl
3344 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3345 # However, they still use the build modules, because the corresponding
3346 # host modules (e.g. bison) are only built for the host when bootstrap
3347 # finishes. So:
3348 # - build_subdir is where we find build modules, and never changes.
3349 # - build_libsubdir is where we find build libraries, and can be overridden.
3351 # Prefix 'build-' so this never conflicts with target_subdir.
3352 build_subdir="build-${build_noncanonical}"
3354 # Check whether --with-build-libsubdir was given.
3355 if test "${with_build_libsubdir+set}" = set; then :
3356 withval=$with_build_libsubdir; build_libsubdir="$withval"
3357 else
3358 build_libsubdir="$build_subdir"
3361 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3362 if ( test $srcdir = . && test -d gcc ) \
3363 || test -d $srcdir/../host-${host_noncanonical}; then
3364 host_subdir="host-${host_noncanonical}"
3365 else
3366 host_subdir=.
3368 # No prefix.
3369 target_subdir=${target_noncanonical}
3372 # Set program_transform_name
3373 test "$program_prefix" != NONE &&
3374 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3375 # Use a double $ so make ignores it.
3376 test "$program_suffix" != NONE &&
3377 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3378 # Double any \ or $.
3379 # By default was `s,x,x', remove it if useless.
3380 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3381 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3384 # Check for bogus environment variables.
3385 # Test if LIBRARY_PATH contains the notation for the current directory
3386 # since this would lead to problems installing/building glibc.
3387 # LIBRARY_PATH contains the current directory if one of the following
3388 # is true:
3389 # - one of the terminals (":" and ";") is the first or last sign
3390 # - two terminals occur directly after each other
3391 # - the path contains an element with a dot in it
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3393 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3394 case ${LIBRARY_PATH} in
3395 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3396 library_path_setting="contains current directory"
3399 library_path_setting="ok"
3401 esac
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3403 $as_echo "$library_path_setting" >&6; }
3404 if test "$library_path_setting" != "ok"; then
3405 as_fn_error "
3406 *** LIBRARY_PATH shouldn't contain the current directory when
3407 *** building gcc. Please change the environment variable
3408 *** and run configure again." "$LINENO" 5
3411 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3412 # since this would lead to problems installing/building glibc.
3413 # GCC_EXEC_PREFIX contains the current directory if one of the following
3414 # is true:
3415 # - one of the terminals (":" and ";") is the first or last sign
3416 # - two terminals occur directly after each other
3417 # - the path contains an element with a dot in it
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3419 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3420 case ${GCC_EXEC_PREFIX} in
3421 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3422 gcc_exec_prefix_setting="contains current directory"
3425 gcc_exec_prefix_setting="ok"
3427 esac
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3429 $as_echo "$gcc_exec_prefix_setting" >&6; }
3430 if test "$gcc_exec_prefix_setting" != "ok"; then
3431 as_fn_error "
3432 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3433 *** building gcc. Please change the environment variable
3434 *** and run configure again." "$LINENO" 5
3437 # -----------
3438 # Directories
3439 # -----------
3441 # Specify the local prefix
3442 local_prefix=
3444 # Check whether --with-local-prefix was given.
3445 if test "${with_local_prefix+set}" = set; then :
3446 withval=$with_local_prefix; case "${withval}" in
3447 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3448 no) ;;
3449 *) local_prefix=$with_local_prefix ;;
3450 esac
3454 # Default local prefix if it is empty
3455 if test x$local_prefix = x; then
3456 local_prefix=/usr/local
3460 # Check whether --with-native-system-header-dir was given.
3461 if test "${with_native_system_header_dir+set}" = set; then :
3462 withval=$with_native_system_header_dir;
3463 case ${with_native_system_header_dir} in
3464 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3465 /* | [A-Za-z]:[\\/]*) ;;
3466 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3467 esac
3468 configured_native_system_header_dir="${withval}"
3470 else
3471 configured_native_system_header_dir=
3476 # Check whether --with-build-sysroot was given.
3477 if test "${with_build_sysroot+set}" = set; then :
3478 withval=$with_build_sysroot; if test x"$withval" != x ; then
3479 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3481 else
3482 SYSROOT_CFLAGS_FOR_TARGET=
3487 if test "x$prefix" = xNONE; then
3488 test_prefix=/usr/local
3489 else
3490 test_prefix=$prefix
3492 if test "x$exec_prefix" = xNONE; then
3493 test_exec_prefix=$test_prefix
3494 else
3495 test_exec_prefix=$exec_prefix
3499 # Check whether --with-sysroot was given.
3500 if test "${with_sysroot+set}" = set; then :
3501 withval=$with_sysroot;
3502 case ${with_sysroot} in
3503 /) ;;
3504 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3505 esac
3506 case ${with_sysroot} in
3507 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3508 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3509 esac
3511 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3512 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3514 case ${TARGET_SYSTEM_ROOT} in
3515 "${test_prefix}"|"${test_prefix}/"*|\
3516 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3517 '${prefix}'|'${prefix}/'*|\
3518 '${exec_prefix}'|'${exec_prefix}/'*)
3519 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3520 TARGET_SYSTEM_ROOT_DEFINE="$t"
3522 esac
3524 else
3526 TARGET_SYSTEM_ROOT=
3527 TARGET_SYSTEM_ROOT_DEFINE=
3528 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3536 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3537 # passed in by the toplevel make and thus we'd get different behavior
3538 # depending on where we built the sources.
3539 gcc_gxx_include_dir=
3540 # Specify the g++ header file directory
3542 # Check whether --with-gxx-include-dir was given.
3543 if test "${with_gxx_include_dir+set}" = set; then :
3544 withval=$with_gxx_include_dir; case "${withval}" in
3545 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3546 no) ;;
3547 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3548 esac
3552 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3553 if test x${gcc_gxx_include_dir} = x; then
3554 if test x${enable_version_specific_runtime_libs} = xyes; then
3555 gcc_gxx_include_dir='${libsubdir}/include/c++'
3556 else
3557 libstdcxx_incdir='include/c++/$(version)'
3558 if test x$host != x$target; then
3559 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3561 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3565 gcc_gxx_include_dir_add_sysroot=0
3566 if test "${with_sysroot+set}" = set; then
3567 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3568 if test "${gcc_gxx_without_sysroot}"; then
3569 if test x${with_sysroot} != x/; then
3570 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3572 gcc_gxx_include_dir_add_sysroot=1
3577 # Check whether --with-cpp_install_dir was given.
3578 if test "${with_cpp_install_dir+set}" = set; then :
3579 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3580 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3581 elif test x$withval != xno; then
3582 cpp_install_dir=$withval
3587 # We would like to our source tree to be readonly. However when releases or
3588 # pre-releases are generated, the flex/bison generated files as well as the
3589 # various formats of manuals need to be included along with the rest of the
3590 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3591 # just that.
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3594 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3595 # Check whether --enable-generated-files-in-srcdir was given.
3596 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3597 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3598 else
3599 generated_files_in_srcdir=no
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3604 $as_echo "$generated_files_in_srcdir" >&6; }
3606 if test "$generated_files_in_srcdir" = "yes"; then
3607 GENINSRC=''
3608 else
3609 GENINSRC='#'
3613 # -------------------
3614 # Find default linker
3615 # -------------------
3617 # With GNU ld
3619 # Check whether --with-gnu-ld was given.
3620 if test "${with_gnu_ld+set}" = set; then :
3621 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3622 else
3623 gnu_ld_flag=no
3627 # With pre-defined ld
3629 # Check whether --with-ld was given.
3630 if test "${with_ld+set}" = set; then :
3631 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3634 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3635 if test ! -x "$DEFAULT_LINKER"; then
3636 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3637 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3638 gnu_ld_flag=yes
3641 cat >>confdefs.h <<_ACEOF
3642 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3643 _ACEOF
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3648 $as_echo_n "checking whether a default linker was specified... " >&6; }
3649 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3650 if test x"$gnu_ld_flag" = x"no"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3652 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3662 # With demangler in GNU ld
3664 # Check whether --with-demangler-in-ld was given.
3665 if test "${with_demangler_in_ld+set}" = set; then :
3666 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3667 else
3668 demangler_in_ld=yes
3672 # ----------------------
3673 # Find default assembler
3674 # ----------------------
3676 # With GNU as
3678 # Check whether --with-gnu-as was given.
3679 if test "${with_gnu_as+set}" = set; then :
3680 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3681 else
3682 gas_flag=no
3687 # Check whether --with-as was given.
3688 if test "${with_as+set}" = set; then :
3689 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3692 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3693 if test ! -x "$DEFAULT_ASSEMBLER"; then
3694 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3695 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3696 gas_flag=yes
3699 cat >>confdefs.h <<_ACEOF
3700 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3701 _ACEOF
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3706 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3708 if test x"$gas_flag" = x"no"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3710 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3720 # ---------------
3721 # Find C compiler
3722 # ---------------
3724 # If a non-executable a.out is present (e.g. created by GNU as above even if
3725 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3726 # file, even when creating an executable, so an execution test fails.
3727 # Remove possible default executable files to avoid this.
3729 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3730 # Autoconf includes it.
3731 rm -f a.out a.exe b.out
3733 # Find the native compiler
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_CC+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3763 IFS=$as_save_IFS
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3778 if test -z "$ac_cv_prog_CC"; then
3779 ac_ct_CC=$CC
3780 # Extract the first word of "gcc", so it can be a program name with args.
3781 set dummy gcc; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_ac_ct_CC="gcc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3803 IFS=$as_save_IFS
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3827 else
3828 CC="$ac_cv_prog_CC"
3831 if test -z "$CC"; then
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if test "${ac_cv_prog_CC+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_CC="${ac_tool_prefix}cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3854 done
3855 done
3856 IFS=$as_save_IFS
3860 CC=$ac_cv_prog_CC
3861 if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 $as_echo "$CC" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3872 if test -z "$CC"; then
3873 # Extract the first word of "cc", so it can be a program name with args.
3874 set dummy cc; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_prog_CC+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3882 else
3883 ac_prog_rejected=no
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892 ac_prog_rejected=yes
3893 continue
3895 ac_cv_prog_CC="cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3899 done
3900 done
3901 IFS=$as_save_IFS
3903 if test $ac_prog_rejected = yes; then
3904 # We found a bogon in the path, so make sure we never use it.
3905 set dummy $ac_cv_prog_CC
3906 shift
3907 if test $# != 0; then
3908 # We chose a different compiler from the bogus one.
3909 # However, it has the same basename, so the bogon will be chosen
3910 # first if we set CC to just the basename; use the full file name.
3911 shift
3912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in cl.exe
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if test "${ac_cv_prog_CC+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3953 done
3954 done
3955 IFS=$as_save_IFS
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3969 test -n "$CC" && break
3970 done
3972 if test -z "$CC"; then
3973 ac_ct_CC=$CC
3974 for ac_prog in cl.exe
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$ac_ct_CC"; then
3984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_ac_ct_CC="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
3999 IFS=$as_save_IFS
4003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4004 if test -n "$ac_ct_CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006 $as_echo "$ac_ct_CC" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 test -n "$ac_ct_CC" && break
4014 done
4016 if test "x$ac_ct_CC" = x; then
4017 CC=""
4018 else
4019 case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025 CC=$ac_ct_CC
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error "no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details." "$LINENO" 5; }
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4039 set X $ac_compile
4040 ac_compiler=$2
4041 for ac_option in --version -v -V -qversion; do
4042 { { ac_try="$ac_compiler $ac_option >&5"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050 ac_status=$?
4051 if test -s conftest.err; then
4052 sed '10a\
4053 ... rest of stderr output deleted ...
4054 10q' conftest.err >conftest.er1
4055 cat conftest.er1 >&5
4056 rm -f conftest.er1 conftest.err
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4060 done
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 main ()
4070 return 0;
4072 _ACEOF
4073 ac_clean_files_save=$ac_clean_files
4074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4075 # Try to create an executable without -o first, disregard a.out.
4076 # It will help us diagnose broken compilers, and finding out an intuition
4077 # of exeext.
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079 $as_echo_n "checking for C compiler default output file name... " >&6; }
4080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4082 # The possible output files:
4083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4085 ac_rmfiles=
4086 for ac_file in $ac_files
4088 case $ac_file in
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4091 esac
4092 done
4093 rm -f $ac_rmfiles
4095 if { { ac_try="$ac_link_default"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_link_default") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4109 # so that the user can short-circuit this test for compilers unknown to
4110 # Autoconf.
4111 for ac_file in $ac_files ''
4113 test -f "$ac_file" || continue
4114 case $ac_file in
4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4117 [ab].out )
4118 # We found the default executable, but exeext='' is most
4119 # certainly right.
4120 break;;
4121 *.* )
4122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4123 then :; else
4124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4126 # We set ac_cv_exeext here because the later test for it is not
4127 # safe: cross compilers may not add the suffix if given an `-o'
4128 # argument, so we may need to know it at that point already.
4129 # Even if this section looks crufty: it has the advantage of
4130 # actually working.
4131 break;;
4133 break;;
4134 esac
4135 done
4136 test "$ac_cv_exeext" = no && ac_cv_exeext=
4138 else
4139 ac_file=''
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4142 $as_echo "$ac_file" >&6; }
4143 if test -z "$ac_file"; then :
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 { as_fn_set_status 77
4150 as_fn_error "C compiler cannot create executables
4151 See \`config.log' for more details." "$LINENO" 5; }; }
4153 ac_exeext=$ac_cv_exeext
4155 # Check that the compiler produces executables we can run. If not, either
4156 # the compiler is broken, or we cross compile.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4158 $as_echo_n "checking whether the C compiler works... " >&6; }
4159 # If not cross compiling, check that we can run a simple program.
4160 if test "$cross_compiling" != yes; then
4161 if { ac_try='./$ac_file'
4162 { { case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165 esac
4166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167 $as_echo "$ac_try_echo"; } >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }; }; then
4172 cross_compiling=no
4173 else
4174 if test "$cross_compiling" = maybe; then
4175 cross_compiling=yes
4176 else
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error "cannot run C compiled programs.
4180 If you meant to cross compile, use \`--host'.
4181 See \`config.log' for more details." "$LINENO" 5; }
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4186 $as_echo "yes" >&6; }
4188 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4189 ac_clean_files=$ac_clean_files_save
4190 # Check that the compiler produces executables we can run. If not, either
4191 # the compiler is broken, or we cross compile.
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4193 $as_echo_n "checking whether we are cross compiling... " >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4195 $as_echo "$cross_compiling" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4198 $as_echo_n "checking for suffix of executables... " >&6; }
4199 if { { ac_try="$ac_link"
4200 case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_link") 2>&5
4207 ac_status=$?
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; then :
4210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4212 # work properly (i.e., refer to `conftest.exe'), while it won't with
4213 # `rm'.
4214 for ac_file in conftest.exe conftest conftest.*; do
4215 test -f "$ac_file" || continue
4216 case $ac_file in
4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4219 break;;
4220 * ) break;;
4221 esac
4222 done
4223 else
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error "cannot compute suffix of executables: cannot compile and link
4227 See \`config.log' for more details." "$LINENO" 5; }
4229 rm -f conftest$ac_cv_exeext
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4231 $as_echo "$ac_cv_exeext" >&6; }
4233 rm -f conftest.$ac_ext
4234 EXEEXT=$ac_cv_exeext
4235 ac_exeext=$EXEEXT
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4237 $as_echo_n "checking for suffix of object files... " >&6; }
4238 if test "${ac_cv_objext+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4245 main ()
4249 return 0;
4251 _ACEOF
4252 rm -f conftest.o conftest.obj
4253 if { { ac_try="$ac_compile"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 $as_echo "$ac_try_echo"; } >&5
4260 (eval "$ac_compile") 2>&5
4261 ac_status=$?
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }; then :
4264 for ac_file in conftest.o conftest.obj conftest.*; do
4265 test -f "$ac_file" || continue;
4266 case $ac_file in
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4269 break;;
4270 esac
4271 done
4272 else
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error "cannot compute suffix of object files: cannot compile
4279 See \`config.log' for more details." "$LINENO" 5; }
4281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4284 $as_echo "$ac_cv_objext" >&6; }
4285 OBJEXT=$ac_cv_objext
4286 ac_objext=$OBJEXT
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4289 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4296 main ()
4298 #ifndef __GNUC__
4299 choke me
4300 #endif
4303 return 0;
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_compiler_gnu=yes
4308 else
4309 ac_compiler_gnu=no
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4316 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4318 GCC=yes
4319 else
4320 GCC=
4322 ac_test_CFLAGS=${CFLAGS+set}
4323 ac_save_CFLAGS=$CFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4325 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4326 if test "${ac_cv_prog_cc_g+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 ac_save_c_werror_flag=$ac_c_werror_flag
4330 ac_c_werror_flag=yes
4331 ac_cv_prog_cc_g=no
4332 CFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4337 main ()
4341 return 0;
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_cv_prog_cc_g=yes
4346 else
4347 CFLAGS=""
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4352 main ()
4356 return 0;
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4361 else
4362 ac_c_werror_flag=$ac_save_c_werror_flag
4363 CFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4368 main ()
4372 return 0;
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_prog_cc_g=yes
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_c_werror_flag=$ac_save_c_werror_flag
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4386 $as_echo "$ac_cv_prog_cc_g" >&6; }
4387 if test "$ac_test_CFLAGS" = set; then
4388 CFLAGS=$ac_save_CFLAGS
4389 elif test $ac_cv_prog_cc_g = yes; then
4390 if test "$GCC" = yes; then
4391 CFLAGS="-g -O2"
4392 else
4393 CFLAGS="-g"
4395 else
4396 if test "$GCC" = yes; then
4397 CFLAGS="-O2"
4398 else
4399 CFLAGS=
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4403 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4404 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 ac_cv_prog_cc_c89=no
4408 ac_save_CC=$CC
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <stdarg.h>
4412 #include <stdio.h>
4413 #include <sys/types.h>
4414 #include <sys/stat.h>
4415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4416 struct buf { int x; };
4417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4418 static char *e (p, i)
4419 char **p;
4420 int i;
4422 return p[i];
4424 static char *f (char * (*g) (char **, int), char **p, ...)
4426 char *s;
4427 va_list v;
4428 va_start (v,p);
4429 s = g (p, va_arg (v,int));
4430 va_end (v);
4431 return s;
4434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4435 function prototypes and stuff, but not '\xHH' hex character constants.
4436 These don't provoke an error unfortunately, instead are silently treated
4437 as 'x'. The following induces an error, until -std is added to get
4438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4439 array size at least. It's necessary to write '\x00'==0 to get something
4440 that's true only with -std. */
4441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4444 inside strings and character constants. */
4445 #define FOO(x) 'x'
4446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448 int test (int i, double x);
4449 struct s1 {int (*f) (int a);};
4450 struct s2 {int (*f) (double a);};
4451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4452 int argc;
4453 char **argv;
4455 main ()
4457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4459 return 0;
4461 _ACEOF
4462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_cv_prog_cc_c89=$ac_arg
4469 rm -f core conftest.err conftest.$ac_objext
4470 test "x$ac_cv_prog_cc_c89" != "xno" && break
4471 done
4472 rm -f conftest.$ac_ext
4473 CC=$ac_save_CC
4476 # AC_CACHE_VAL
4477 case "x$ac_cv_prog_cc_c89" in
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4481 xno)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4485 CC="$CC $ac_cv_prog_cc_c89"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4488 esac
4489 if test "x$ac_cv_prog_cc_c89" != xno; then :
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499 ac_ext=cpp
4500 ac_cpp='$CXXCPP $CPPFLAGS'
4501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4504 if test -z "$CXX"; then
4505 if test -n "$CCC"; then
4506 CXX=$CCC
4507 else
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_CXX+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$CXX"; then
4519 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 CXX=$ac_cv_prog_CXX
4539 if test -n "$CXX"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4541 $as_echo "$CXX" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$CXX" && break
4549 done
4551 if test -z "$CXX"; then
4552 ac_ct_CXX=$CXX
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$ac_ct_CXX"; then
4563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_ac_ct_CXX="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583 if test -n "$ac_ct_CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4585 $as_echo "$ac_ct_CXX" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$ac_ct_CXX" && break
4593 done
4595 if test "x$ac_ct_CXX" = x; then
4596 CXX="g++"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 CXX=$ac_ct_CXX
4610 # Provide some information about the compiler.
4611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4612 set X $ac_compile
4613 ac_compiler=$2
4614 for ac_option in --version -v -V -qversion; do
4615 { { ac_try="$ac_compiler $ac_option >&5"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 ac_status=$?
4624 if test -s conftest.err; then
4625 sed '10a\
4626 ... rest of stderr output deleted ...
4627 10q' conftest.err >conftest.er1
4628 cat conftest.er1 >&5
4629 rm -f conftest.er1 conftest.err
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 done
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4636 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4637 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4644 main ()
4646 #ifndef __GNUC__
4647 choke me
4648 #endif
4651 return 0;
4653 _ACEOF
4654 if ac_fn_cxx_try_compile "$LINENO"; then :
4655 ac_compiler_gnu=yes
4656 else
4657 ac_compiler_gnu=no
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4666 GXX=yes
4667 else
4668 GXX=
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag=yes
4679 ac_cv_prog_cxx_g=no
4680 CXXFLAGS="-g"
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4685 main ()
4689 return 0;
4691 _ACEOF
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4693 ac_cv_prog_cxx_g=yes
4694 else
4695 CXXFLAGS=""
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4709 else
4710 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4711 CXXFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4716 main ()
4720 return 0;
4722 _ACEOF
4723 if ac_fn_cxx_try_compile "$LINENO"; then :
4724 ac_cv_prog_cxx_g=yes
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4734 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4735 if test "$ac_test_CXXFLAGS" = set; then
4736 CXXFLAGS=$ac_save_CXXFLAGS
4737 elif test $ac_cv_prog_cxx_g = yes; then
4738 if test "$GXX" = yes; then
4739 CXXFLAGS="-g -O2"
4740 else
4741 CXXFLAGS="-g"
4743 else
4744 if test "$GXX" = yes; then
4745 CXXFLAGS="-O2"
4746 else
4747 CXXFLAGS=
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759 if test -n "$ac_tool_prefix"; then
4760 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4761 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$GNATBIND"; then
4768 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4781 done
4782 done
4783 IFS=$as_save_IFS
4787 GNATBIND=$ac_cv_prog_GNATBIND
4788 if test -n "$GNATBIND"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4790 $as_echo "$GNATBIND" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4798 if test -z "$ac_cv_prog_GNATBIND"; then
4799 ac_ct_GNATBIND=$GNATBIND
4800 # Extract the first word of "gnatbind", so it can be a program name with args.
4801 set dummy gnatbind; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if test -n "$ac_ct_GNATBIND"; then
4808 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4821 done
4822 done
4823 IFS=$as_save_IFS
4827 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4828 if test -n "$ac_ct_GNATBIND"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4830 $as_echo "$ac_ct_GNATBIND" >&6; }
4831 else
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4836 if test "x$ac_ct_GNATBIND" = x; then
4837 GNATBIND="no"
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840 yes:)
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843 ac_tool_warned=yes ;;
4844 esac
4845 GNATBIND=$ac_ct_GNATBIND
4847 else
4848 GNATBIND="$ac_cv_prog_GNATBIND"
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$GNATMAKE"; then
4860 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 GNATMAKE=$ac_cv_prog_GNATMAKE
4880 if test -n "$GNATMAKE"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4882 $as_echo "$GNATMAKE" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4890 if test -z "$ac_cv_prog_GNATMAKE"; then
4891 ac_ct_GNATMAKE=$GNATMAKE
4892 # Extract the first word of "gnatmake", so it can be a program name with args.
4893 set dummy gnatmake; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_GNATMAKE"; then
4900 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4920 if test -n "$ac_ct_GNATMAKE"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4922 $as_echo "$ac_ct_GNATMAKE" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4928 if test "x$ac_ct_GNATMAKE" = x; then
4929 GNATMAKE="no"
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937 GNATMAKE=$ac_ct_GNATMAKE
4939 else
4940 GNATMAKE="$ac_cv_prog_GNATMAKE"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4944 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4945 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 cat >conftest.adb <<EOF
4949 procedure conftest is begin null; end conftest;
4951 acx_cv_cc_gcc_supports_ada=no
4952 # There is a bug in old released versions of GCC which causes the
4953 # driver to exit successfully when the appropriate language module
4954 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4955 # Therefore we must check for the error message as well as an
4956 # unsuccessful exit.
4957 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4958 # given a .adb file, but produce no object file. So we must check
4959 # if an object file was really produced to guard against this.
4960 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4961 if test x"$errors" = x && test -f conftest.$ac_objext; then
4962 acx_cv_cc_gcc_supports_ada=yes
4964 rm -f conftest.*
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4967 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4969 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4970 have_gnat=yes
4971 else
4972 have_gnat=no
4976 # Do configure tests with the C++ compiler, since that's what we build with.
4977 ac_ext=cpp
4978 ac_cpp='$CXXCPP $CPPFLAGS'
4979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4984 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4985 # optimizations to be activated explicitly by the toplevel.
4986 case "$CC" in
4987 */prev-gcc/xgcc*) ;;
4988 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4989 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4990 esac
4994 # Determine PICFLAG for target gnatlib.
4999 case "${target}" in
5000 # PIC is the default on some targets or must not be used.
5001 *-*-darwin*)
5002 # For darwin, common symbols are not allowed in MH_DYLIB files
5003 case "${CFLAGS}" in
5004 # If we are using a compiler supporting mdynamic-no-pic
5005 # and the option has been tested as safe to add, then cancel
5006 # it here, since the code generated is incompatible with shared
5007 # libs.
5008 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5009 *) PICFLAG_FOR_TARGET=-fno-common ;;
5010 esac
5012 alpha*-dec-osf5*)
5013 # PIC is the default.
5015 hppa*64*-*-hpux*)
5016 # PIC is the default for 64-bit PA HP-UX.
5018 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5020 i[34567]86-*-mingw* | x86_64-*-mingw*)
5022 i[34567]86-*-interix[3-9]*)
5023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5024 # Instead, we relocate shared libraries at runtime.
5026 i[34567]86-*-nto-qnx*)
5027 # QNX uses GNU C++, but need to define -shared option too, otherwise
5028 # it will coredump.
5029 PICFLAG_FOR_TARGET='-fPIC -shared'
5031 i[34567]86-pc-msdosdjgpp*)
5032 # DJGPP does not support shared libraries at all.
5034 ia64*-*-hpux*)
5035 # On IA64 HP-UX, PIC is the default but the pic flag
5036 # sets the default TLS model and affects inlining.
5037 PICFLAG_FOR_TARGET=-fPIC
5039 mips-sgi-irix6*)
5040 # PIC is the default.
5042 rs6000-ibm-aix* | powerpc-ibm-aix*)
5043 # All AIX code is PIC.
5046 # Some targets support both -fPIC and -fpic, but prefer the latter.
5047 # FIXME: Why?
5048 i[34567]86-*-* | x86_64-*-*)
5049 PICFLAG_FOR_TARGET=-fpic
5051 # FIXME: Override -fPIC default in libgcc only?
5052 sh-*-linux* | sh[2346lbe]*-*-linux*)
5053 PICFLAG_FOR_TARGET=-fpic
5055 # FIXME: Simplify to sh*-*-netbsd*?
5056 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5057 sh64-*-netbsd* | sh64l*-*-netbsd*)
5058 PICFLAG_FOR_TARGET=-fpic
5060 # Default to -fPIC unless specified otherwise.
5062 PICFLAG_FOR_TARGET=-fPIC
5064 esac
5066 # If the user explicitly uses -fpic/-fPIC, keep that.
5067 case "${CFLAGS_FOR_TARGET}" in
5068 *-fpic*)
5069 PICFLAG_FOR_TARGET=-fpic
5071 *-fPIC*)
5072 PICFLAG_FOR_TARGET=-fPIC
5074 esac
5078 # -------------------------
5079 # Check C compiler features
5080 # -------------------------
5083 ac_ext=cpp
5084 ac_cpp='$CXXCPP $CPPFLAGS'
5085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5089 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5090 if test -z "$CXXCPP"; then
5091 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 # Double quotes because CXXCPP needs to be expanded
5095 for CXXCPP in "$CXX -E" "/lib/cpp"
5097 ac_preproc_ok=false
5098 for ac_cxx_preproc_warn_flag in '' yes
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5113 Syntax error
5114 _ACEOF
5115 if ac_fn_cxx_try_cpp "$LINENO"; then :
5117 else
5118 # Broken: fails on valid input.
5119 continue
5121 rm -f conftest.err conftest.$ac_ext
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if ac_fn_cxx_try_cpp "$LINENO"; then :
5130 # Broken: success on invalid input.
5131 continue
5132 else
5133 # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5137 rm -f conftest.err conftest.$ac_ext
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then :
5143 break
5146 done
5147 ac_cv_prog_CXXCPP=$CXXCPP
5150 CXXCPP=$ac_cv_prog_CXXCPP
5151 else
5152 ac_cv_prog_CXXCPP=$CXXCPP
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5155 $as_echo "$CXXCPP" >&6; }
5156 ac_preproc_ok=false
5157 for ac_cxx_preproc_warn_flag in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #ifdef __STDC__
5168 # include <limits.h>
5169 #else
5170 # include <assert.h>
5171 #endif
5172 Syntax error
5173 _ACEOF
5174 if ac_fn_cxx_try_cpp "$LINENO"; then :
5176 else
5177 # Broken: fails on valid input.
5178 continue
5180 rm -f conftest.err conftest.$ac_ext
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5187 _ACEOF
5188 if ac_fn_cxx_try_cpp "$LINENO"; then :
5189 # Broken: success on invalid input.
5190 continue
5191 else
5192 # Passes both tests.
5193 ac_preproc_ok=:
5194 break
5196 rm -f conftest.err conftest.$ac_ext
5198 done
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then :
5203 else
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5207 See \`config.log' for more details." "$LINENO" 5; }
5210 ac_ext=cpp
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5219 if test "${ac_cv_path_GREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -z "$GREP"; then
5223 ac_path_GREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in grep ggrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5234 # Check for GNU ac_path_GREP and select it if it is found.
5235 # Check for GNU $ac_path_GREP
5236 case `"$ac_path_GREP" --version 2>&1` in
5237 *GNU*)
5238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5240 ac_count=0
5241 $as_echo_n 0123456789 >"conftest.in"
5242 while :
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'GREP' >> "conftest.nl"
5248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_GREP="$ac_path_GREP"
5254 ac_path_GREP_max=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5258 done
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260 esac
5262 $ac_path_GREP_found && break 3
5263 done
5264 done
5265 done
5266 IFS=$as_save_IFS
5267 if test -z "$ac_cv_path_GREP"; then
5268 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 else
5271 ac_cv_path_GREP=$GREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5276 $as_echo "$ac_cv_path_GREP" >&6; }
5277 GREP="$ac_cv_path_GREP"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5281 $as_echo_n "checking for egrep... " >&6; }
5282 if test "${ac_cv_path_EGREP+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286 then ac_cv_path_EGREP="$GREP -E"
5287 else
5288 if test -z "$EGREP"; then
5289 ac_path_EGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_prog in egrep; do
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5303 *GNU*)
5304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5306 ac_count=0
5307 $as_echo_n 0123456789 >"conftest.in"
5308 while :
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 $as_echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5316 as_fn_arith $ac_count + 1 && ac_count=$as_val
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP="$ac_path_EGREP"
5320 ac_path_EGREP_max=$ac_count
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5324 done
5325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5326 esac
5328 $ac_path_EGREP_found && break 3
5329 done
5330 done
5331 done
5332 IFS=$as_save_IFS
5333 if test -z "$ac_cv_path_EGREP"; then
5334 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5336 else
5337 ac_cv_path_EGREP=$EGREP
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5343 $as_echo "$ac_cv_path_EGREP" >&6; }
5344 EGREP="$ac_cv_path_EGREP"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5348 $as_echo_n "checking for ANSI C header files... " >&6; }
5349 if test "${ac_cv_header_stdc+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <stdlib.h>
5355 #include <stdarg.h>
5356 #include <string.h>
5357 #include <float.h>
5360 main ()
5364 return 0;
5366 _ACEOF
5367 if ac_fn_cxx_try_compile "$LINENO"; then :
5368 ac_cv_header_stdc=yes
5369 else
5370 ac_cv_header_stdc=no
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 if test $ac_cv_header_stdc = yes; then
5375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #include <string.h>
5380 _ACEOF
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 $EGREP "memchr" >/dev/null 2>&1; then :
5384 else
5385 ac_cv_header_stdc=no
5387 rm -f conftest*
5391 if test $ac_cv_header_stdc = yes; then
5392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <stdlib.h>
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5410 if test "$cross_compiling" = yes; then :
5412 else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 #include <ctype.h>
5416 #include <stdlib.h>
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420 #else
5421 # define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5426 #endif
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5430 main ()
5432 int i;
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5436 return 2;
5437 return 0;
5439 _ACEOF
5440 if ac_fn_cxx_try_run "$LINENO"; then :
5442 else
5443 ac_cv_header_stdc=no
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5446 conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5452 $as_echo "$ac_cv_header_stdc" >&6; }
5453 if test $ac_cv_header_stdc = yes; then
5455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461 inttypes.h stdint.h unistd.h
5462 do :
5463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5466 eval as_val=\$$as_ac_Header
5467 if test "x$as_val" = x""yes; then :
5468 cat >>confdefs.h <<_ACEOF
5469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 _ACEOF
5474 done
5478 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5479 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5480 MINIX=yes
5481 else
5482 MINIX=
5486 if test "$MINIX" = yes; then
5488 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5491 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5494 $as_echo "#define _MINIX 1" >>confdefs.h
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5500 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5501 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5507 # define __EXTENSIONS__ 1
5508 $ac_includes_default
5510 main ()
5514 return 0;
5516 _ACEOF
5517 if ac_fn_cxx_try_compile "$LINENO"; then :
5518 ac_cv_safe_to_define___extensions__=yes
5519 else
5520 ac_cv_safe_to_define___extensions__=no
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5525 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5526 test $ac_cv_safe_to_define___extensions__ = yes &&
5527 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5529 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5531 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5533 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5535 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5547 CPP=
5549 if test -z "$CPP"; then
5550 if test "${ac_cv_prog_CPP+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 # Double quotes because CPP needs to be expanded
5554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5556 ac_preproc_ok=false
5557 for ac_c_preproc_warn_flag in '' yes
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #ifdef __STDC__
5568 # include <limits.h>
5569 #else
5570 # include <assert.h>
5571 #endif
5572 Syntax error
5573 _ACEOF
5574 if ac_fn_c_try_cpp "$LINENO"; then :
5576 else
5577 # Broken: fails on valid input.
5578 continue
5580 rm -f conftest.err conftest.$ac_ext
5582 # OK, works on sane cases. Now check whether nonexistent headers
5583 # can be detected and how.
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <ac_nonexistent.h>
5587 _ACEOF
5588 if ac_fn_c_try_cpp "$LINENO"; then :
5589 # Broken: success on invalid input.
5590 continue
5591 else
5592 # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5596 rm -f conftest.err conftest.$ac_ext
5598 done
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.err conftest.$ac_ext
5601 if $ac_preproc_ok; then :
5602 break
5605 done
5606 ac_cv_prog_CPP=$CPP
5609 CPP=$ac_cv_prog_CPP
5610 else
5611 ac_cv_prog_CPP=$CPP
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5614 $as_echo "$CPP" >&6; }
5615 ac_preproc_ok=false
5616 for ac_c_preproc_warn_flag in '' yes
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 #ifdef __STDC__
5627 # include <limits.h>
5628 #else
5629 # include <assert.h>
5630 #endif
5631 Syntax error
5632 _ACEOF
5633 if ac_fn_c_try_cpp "$LINENO"; then :
5635 else
5636 # Broken: fails on valid input.
5637 continue
5639 rm -f conftest.err conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <ac_nonexistent.h>
5646 _ACEOF
5647 if ac_fn_c_try_cpp "$LINENO"; then :
5648 # Broken: success on invalid input.
5649 continue
5650 else
5651 # Passes both tests.
5652 ac_preproc_ok=:
5653 break
5655 rm -f conftest.err conftest.$ac_ext
5657 done
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.err conftest.$ac_ext
5660 if $ac_preproc_ok; then :
5662 else
5663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5665 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details." "$LINENO" 5; }
5669 ac_ext=cpp
5670 ac_cpp='$CXXCPP $CPPFLAGS'
5671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5676 $as_echo_n "checking for inline... " >&6; }
5677 if test "${ac_cv_c_inline+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 ac_cv_c_inline=no
5681 for ac_kw in inline __inline__ __inline; do
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 #ifndef __cplusplus
5685 typedef int foo_t;
5686 static $ac_kw foo_t static_foo () {return 0; }
5687 $ac_kw foo_t foo () {return 0; }
5688 #endif
5690 _ACEOF
5691 if ac_fn_cxx_try_compile "$LINENO"; then :
5692 ac_cv_c_inline=$ac_kw
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 test "$ac_cv_c_inline" != no && break
5696 done
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5700 $as_echo "$ac_cv_c_inline" >&6; }
5702 case $ac_cv_c_inline in
5703 inline | yes) ;;
5705 case $ac_cv_c_inline in
5706 no) ac_val=;;
5707 *) ac_val=$ac_cv_c_inline;;
5708 esac
5709 cat >>confdefs.h <<_ACEOF
5710 #ifndef __cplusplus
5711 #define inline $ac_val
5712 #endif
5713 _ACEOF
5715 esac
5718 # Check whether --enable-largefile was given.
5719 if test "${enable_largefile+set}" = set; then :
5720 enableval=$enable_largefile;
5723 if test "$enable_largefile" != no; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5726 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5727 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 ac_cv_sys_largefile_CC=no
5731 if test "$GCC" != yes; then
5732 ac_save_CC=$CC
5733 while :; do
5734 # IRIX 6.2 and later do not support large files by default,
5735 # so use the C compiler's -n32 option if that helps.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5746 ? 1 : -1];
5748 main ()
5752 return 0;
5754 _ACEOF
5755 if ac_fn_cxx_try_compile "$LINENO"; then :
5756 break
5758 rm -f core conftest.err conftest.$ac_objext
5759 CC="$CC -n32"
5760 if ac_fn_cxx_try_compile "$LINENO"; then :
5761 ac_cv_sys_largefile_CC=' -n32'; break
5763 rm -f core conftest.err conftest.$ac_objext
5764 break
5765 done
5766 CC=$ac_save_CC
5767 rm -f conftest.$ac_ext
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5771 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5772 if test "$ac_cv_sys_largefile_CC" != no; then
5773 CC=$CC$ac_cv_sys_largefile_CC
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5777 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 while :; do
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 #include <sys/types.h>
5785 /* Check that off_t can represent 2**63 - 1 correctly.
5786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5787 since some C++ compilers masquerading as C compilers
5788 incorrectly reject 9223372036854775807. */
5789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5791 && LARGE_OFF_T % 2147483647 == 1)
5792 ? 1 : -1];
5794 main ()
5798 return 0;
5800 _ACEOF
5801 if ac_fn_cxx_try_compile "$LINENO"; then :
5802 ac_cv_sys_file_offset_bits=no; break
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #define _FILE_OFFSET_BITS 64
5808 #include <sys/types.h>
5809 /* Check that off_t can represent 2**63 - 1 correctly.
5810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5811 since some C++ compilers masquerading as C compilers
5812 incorrectly reject 9223372036854775807. */
5813 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5815 && LARGE_OFF_T % 2147483647 == 1)
5816 ? 1 : -1];
5818 main ()
5822 return 0;
5824 _ACEOF
5825 if ac_fn_cxx_try_compile "$LINENO"; then :
5826 ac_cv_sys_file_offset_bits=64; break
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 ac_cv_sys_file_offset_bits=unknown
5830 break
5831 done
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5834 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5835 case $ac_cv_sys_file_offset_bits in #(
5836 no | unknown) ;;
5838 cat >>confdefs.h <<_ACEOF
5839 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5840 _ACEOF
5842 esac
5843 rm -rf conftest*
5844 if test $ac_cv_sys_file_offset_bits = unknown; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5846 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5847 if test "${ac_cv_sys_large_files+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 while :; do
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5861 ? 1 : -1];
5863 main ()
5867 return 0;
5869 _ACEOF
5870 if ac_fn_cxx_try_compile "$LINENO"; then :
5871 ac_cv_sys_large_files=no; break
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #define _LARGE_FILES 1
5877 #include <sys/types.h>
5878 /* Check that off_t can represent 2**63 - 1 correctly.
5879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5880 since some C++ compilers masquerading as C compilers
5881 incorrectly reject 9223372036854775807. */
5882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5884 && LARGE_OFF_T % 2147483647 == 1)
5885 ? 1 : -1];
5887 main ()
5891 return 0;
5893 _ACEOF
5894 if ac_fn_cxx_try_compile "$LINENO"; then :
5895 ac_cv_sys_large_files=1; break
5897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 ac_cv_sys_large_files=unknown
5899 break
5900 done
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5903 $as_echo "$ac_cv_sys_large_files" >&6; }
5904 case $ac_cv_sys_large_files in #(
5905 no | unknown) ;;
5907 cat >>confdefs.h <<_ACEOF
5908 #define _LARGE_FILES $ac_cv_sys_large_files
5909 _ACEOF
5911 esac
5912 rm -rf conftest*
5917 # sizeof(char) is 1 by definition.
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5923 $as_echo_n "checking size of void *... " >&6; }
5924 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5929 else
5930 if test "$ac_cv_type_void_p" = yes; then
5931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 { as_fn_set_status 77
5934 as_fn_error "cannot compute sizeof (void *)
5935 See \`config.log' for more details." "$LINENO" 5; }; }
5936 else
5937 ac_cv_sizeof_void_p=0
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5943 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5947 cat >>confdefs.h <<_ACEOF
5948 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5949 _ACEOF
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5957 $as_echo_n "checking size of short... " >&6; }
5958 if test "${ac_cv_sizeof_short+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5963 else
5964 if test "$ac_cv_type_short" = yes; then
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status 77
5968 as_fn_error "cannot compute sizeof (short)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5970 else
5971 ac_cv_sizeof_short=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5977 $as_echo "$ac_cv_sizeof_short" >&6; }
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_SHORT $ac_cv_sizeof_short
5983 _ACEOF
5986 # The cast to long int works around a bug in the HP C Compiler
5987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5989 # This bug is HP SR number 8606223364.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5991 $as_echo_n "checking size of int... " >&6; }
5992 if test "${ac_cv_sizeof_int+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5997 else
5998 if test "$ac_cv_type_int" = yes; then
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 { as_fn_set_status 77
6002 as_fn_error "cannot compute sizeof (int)
6003 See \`config.log' for more details." "$LINENO" 5; }; }
6004 else
6005 ac_cv_sizeof_int=0
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6011 $as_echo "$ac_cv_sizeof_int" >&6; }
6015 cat >>confdefs.h <<_ACEOF
6016 #define SIZEOF_INT $ac_cv_sizeof_int
6017 _ACEOF
6020 # The cast to long int works around a bug in the HP C Compiler
6021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6023 # This bug is HP SR number 8606223364.
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6025 $as_echo_n "checking size of long... " >&6; }
6026 if test "${ac_cv_sizeof_long+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6031 else
6032 if test "$ac_cv_type_long" = yes; then
6033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035 { as_fn_set_status 77
6036 as_fn_error "cannot compute sizeof (long)
6037 See \`config.log' for more details." "$LINENO" 5; }; }
6038 else
6039 ac_cv_sizeof_long=0
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6045 $as_echo "$ac_cv_sizeof_long" >&6; }
6049 cat >>confdefs.h <<_ACEOF
6050 #define SIZEOF_LONG $ac_cv_sizeof_long
6051 _ACEOF
6054 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6055 if test "x$ac_cv_type_long_long" = x""yes; then :
6057 cat >>confdefs.h <<_ACEOF
6058 #define HAVE_LONG_LONG 1
6059 _ACEOF
6061 # The cast to long int works around a bug in the HP C Compiler
6062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6064 # This bug is HP SR number 8606223364.
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6066 $as_echo_n "checking size of long long... " >&6; }
6067 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6072 else
6073 if test "$ac_cv_type_long_long" = yes; then
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 { as_fn_set_status 77
6077 as_fn_error "cannot compute sizeof (long long)
6078 See \`config.log' for more details." "$LINENO" 5; }; }
6079 else
6080 ac_cv_sizeof_long_long=0
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6086 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6092 _ACEOF
6097 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6098 case $ac_cv_c_int8_t in #(
6099 no|yes) ;; #(
6102 cat >>confdefs.h <<_ACEOF
6103 #define int8_t $ac_cv_c_int8_t
6104 _ACEOF
6106 esac
6108 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6109 case $ac_cv_c_int16_t in #(
6110 no|yes) ;; #(
6113 cat >>confdefs.h <<_ACEOF
6114 #define int16_t $ac_cv_c_int16_t
6115 _ACEOF
6117 esac
6119 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6120 case $ac_cv_c_int32_t in #(
6121 no|yes) ;; #(
6124 cat >>confdefs.h <<_ACEOF
6125 #define int32_t $ac_cv_c_int32_t
6126 _ACEOF
6128 esac
6130 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6131 case $ac_cv_c_int64_t in #(
6132 no|yes) ;; #(
6135 cat >>confdefs.h <<_ACEOF
6136 #define int64_t $ac_cv_c_int64_t
6137 _ACEOF
6139 esac
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6143 $as_echo_n "checking for long long int... " >&6; }
6144 if test "${ac_cv_type_long_long_int+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6150 /* For now, do not test the preprocessor; as of 2007 there are too many
6151 implementations with broken preprocessors. Perhaps this can
6152 be revisited in 2012. In the meantime, code should not expect
6153 #if to work with literals wider than 32 bits. */
6154 /* Test literals. */
6155 long long int ll = 9223372036854775807ll;
6156 long long int nll = -9223372036854775807LL;
6157 unsigned long long int ull = 18446744073709551615ULL;
6158 /* Test constant expressions. */
6159 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6160 ? 1 : -1)];
6161 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6162 ? 1 : -1)];
6163 int i = 63;
6165 main ()
6167 /* Test availability of runtime routines for shift and division. */
6168 long long int llmax = 9223372036854775807ll;
6169 unsigned long long int ullmax = 18446744073709551615ull;
6170 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6171 | (llmax / ll) | (llmax % ll)
6172 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6173 | (ullmax / ull) | (ullmax % ull));
6175 return 0;
6178 _ACEOF
6179 if ac_fn_cxx_try_link "$LINENO"; then :
6180 if test "$cross_compiling" = yes; then :
6181 ac_cv_type_long_long_int=yes
6182 else
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <limits.h>
6186 #ifndef LLONG_MAX
6187 # define HALF \
6188 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6189 # define LLONG_MAX (HALF - 1 + HALF)
6190 #endif
6192 main ()
6194 long long int n = 1;
6195 int i;
6196 for (i = 0; ; i++)
6198 long long int m = n << i;
6199 if (m >> i != n)
6200 return 1;
6201 if (LLONG_MAX / 2 < m)
6202 break;
6204 return 0;
6206 return 0;
6208 _ACEOF
6209 if ac_fn_cxx_try_run "$LINENO"; then :
6210 ac_cv_type_long_long_int=yes
6211 else
6212 ac_cv_type_long_long_int=no
6214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6215 conftest.$ac_objext conftest.beam conftest.$ac_ext
6218 else
6219 ac_cv_type_long_long_int=no
6221 rm -f core conftest.err conftest.$ac_objext \
6222 conftest$ac_exeext conftest.$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6225 $as_echo "$ac_cv_type_long_long_int" >&6; }
6226 if test $ac_cv_type_long_long_int = yes; then
6228 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6234 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6235 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6237 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6239 else
6240 test $ac_cv_type_long_long_int = yes \
6241 && ac_type='long long int' \
6242 || ac_type='long int'
6244 cat >>confdefs.h <<_ACEOF
6245 #define intmax_t $ac_type
6246 _ACEOF
6252 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6253 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6255 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6257 else
6258 for ac_type in 'int' 'long int' 'long long int'; do
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 $ac_includes_default
6263 main ()
6265 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6266 test_array [0] = 0
6269 return 0;
6271 _ACEOF
6272 if ac_fn_cxx_try_compile "$LINENO"; then :
6274 cat >>confdefs.h <<_ACEOF
6275 #define intptr_t $ac_type
6276 _ACEOF
6278 ac_type=
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 test -z "$ac_type" && break
6282 done
6286 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6287 case $ac_cv_c_uint8_t in #(
6288 no|yes) ;; #(
6291 $as_echo "#define _UINT8_T 1" >>confdefs.h
6294 cat >>confdefs.h <<_ACEOF
6295 #define uint8_t $ac_cv_c_uint8_t
6296 _ACEOF
6298 esac
6300 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6301 case $ac_cv_c_uint16_t in #(
6302 no|yes) ;; #(
6306 cat >>confdefs.h <<_ACEOF
6307 #define uint16_t $ac_cv_c_uint16_t
6308 _ACEOF
6310 esac
6312 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6313 case $ac_cv_c_uint32_t in #(
6314 no|yes) ;; #(
6317 $as_echo "#define _UINT32_T 1" >>confdefs.h
6320 cat >>confdefs.h <<_ACEOF
6321 #define uint32_t $ac_cv_c_uint32_t
6322 _ACEOF
6324 esac
6326 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6327 case $ac_cv_c_uint64_t in #(
6328 no|yes) ;; #(
6331 $as_echo "#define _UINT64_T 1" >>confdefs.h
6334 cat >>confdefs.h <<_ACEOF
6335 #define uint64_t $ac_cv_c_uint64_t
6336 _ACEOF
6338 esac
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6342 $as_echo_n "checking for unsigned long long int... " >&6; }
6343 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6349 /* For now, do not test the preprocessor; as of 2007 there are too many
6350 implementations with broken preprocessors. Perhaps this can
6351 be revisited in 2012. In the meantime, code should not expect
6352 #if to work with literals wider than 32 bits. */
6353 /* Test literals. */
6354 long long int ll = 9223372036854775807ll;
6355 long long int nll = -9223372036854775807LL;
6356 unsigned long long int ull = 18446744073709551615ULL;
6357 /* Test constant expressions. */
6358 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6359 ? 1 : -1)];
6360 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6361 ? 1 : -1)];
6362 int i = 63;
6364 main ()
6366 /* Test availability of runtime routines for shift and division. */
6367 long long int llmax = 9223372036854775807ll;
6368 unsigned long long int ullmax = 18446744073709551615ull;
6369 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6370 | (llmax / ll) | (llmax % ll)
6371 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6372 | (ullmax / ull) | (ullmax % ull));
6374 return 0;
6377 _ACEOF
6378 if ac_fn_cxx_try_link "$LINENO"; then :
6379 ac_cv_type_unsigned_long_long_int=yes
6380 else
6381 ac_cv_type_unsigned_long_long_int=no
6383 rm -f core conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6387 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6388 if test $ac_cv_type_unsigned_long_long_int = yes; then
6390 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6396 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6397 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6399 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6401 else
6402 test $ac_cv_type_unsigned_long_long_int = yes \
6403 && ac_type='unsigned long long int' \
6404 || ac_type='unsigned long int'
6406 cat >>confdefs.h <<_ACEOF
6407 #define uintmax_t $ac_type
6408 _ACEOF
6414 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6415 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6417 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6419 else
6420 for ac_type in 'unsigned int' 'unsigned long int' \
6421 'unsigned long long int'; do
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 $ac_includes_default
6426 main ()
6428 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6429 test_array [0] = 0
6432 return 0;
6434 _ACEOF
6435 if ac_fn_cxx_try_compile "$LINENO"; then :
6437 cat >>confdefs.h <<_ACEOF
6438 #define uintptr_t $ac_type
6439 _ACEOF
6441 ac_type=
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 test -z "$ac_type" && break
6445 done
6461 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6462 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6465 # check what underlying integer type int64_t uses
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6467 $as_echo_n "checking for int64_t underlying type... " >&6; }
6468 if test "${ac_cv_int64_t_type+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6475 #ifdef HAVE_STDINT_H
6476 #include <stdint.h>
6477 #endif
6478 template <typename T> struct X { };
6479 template <>
6480 struct X<long> { typedef long t; };
6483 main ()
6485 X<int64_t>::t x;
6487 return 0;
6489 _ACEOF
6490 if ac_fn_cxx_try_compile "$LINENO"; then :
6491 ac_cv_int64_t_type=long
6492 else
6493 ac_cv_int64_t_type="long long"
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6498 $as_echo "$ac_cv_int64_t_type" >&6; }
6499 if test "$ac_cv_int64_t_type" = "long"; then
6501 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6503 else
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 #ifdef HAVE_STDINT_H
6508 #include <stdint.h>
6509 #endif
6510 template <typename T> struct X { };
6511 template <>
6512 struct X<long long> { typedef long long t; };
6515 main ()
6517 X<int64_t>::t x;
6519 return 0;
6521 _ACEOF
6522 if ac_fn_cxx_try_compile "$LINENO"; then :
6524 else
6525 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6531 # If the host compiler is affected by the bug, and we build with optimization
6532 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6533 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6534 # Since there is no reliable feature check for the presence of this bug,
6535 # we simply use a GCC version number check. (This should never trigger for
6536 # stages 2 or 3 of a native bootstrap.)
6537 aliasing_flags=
6538 if test "$GCC" = yes; then
6539 saved_CXXFLAGS="$CXXFLAGS"
6541 # The following test compilation will succeed if and only if $CXX accepts
6542 # -fno-strict-aliasing *and* is older than GCC 4.3.
6543 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6545 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6549 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6550 #error compiler not affected by placement new aliasing bug
6551 #endif
6553 _ACEOF
6554 if ac_fn_cxx_try_compile "$LINENO"; then :
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 CXXFLAGS="$saved_CXXFLAGS"
6569 # ---------------------
6570 # Warnings and checking
6571 # ---------------------
6573 # Check $CC warning features (if it's GCC).
6574 # We want to use -pedantic, but we don't want warnings about
6575 # * 'long long'
6576 # * variadic macros
6577 # * overlong strings
6578 # * C++11 narrowing conversions in { }
6579 # So, we only use -pedantic if we can disable those warnings.
6581 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6582 # Check whether --enable-build-format-warnings was given.
6583 if test "${enable_build_format_warnings+set}" = set; then :
6584 enableval=$enable_build_format_warnings;
6585 else
6586 enable_build_format_warnings=yes
6589 if test $enable_build_format_warnings = no; then :
6590 wf_opt=-Wno-format
6591 else
6592 wf_opt=
6594 ac_ext=cpp
6595 ac_cpp='$CXXCPP $CPPFLAGS'
6596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6600 loose_warn=
6601 save_CXXFLAGS="$CXXFLAGS"
6602 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6603 # Do the check with the no- prefix removed since gcc silently
6604 # accepts any -Wno-* option on purpose
6605 case $real_option in
6606 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6607 *) option=$real_option ;;
6608 esac
6609 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6612 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6613 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 CXXFLAGS="$option"
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6621 main ()
6625 return 0;
6627 _ACEOF
6628 if ac_fn_cxx_try_compile "$LINENO"; then :
6629 eval "$as_acx_Woption=yes"
6630 else
6631 eval "$as_acx_Woption=no"
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 eval ac_res=\$$as_acx_Woption
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6638 $as_echo "$ac_res" >&6; }
6639 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6640 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6642 done
6643 CXXFLAGS="$save_CXXFLAGS"
6644 ac_ext=cpp
6645 ac_cpp='$CXXCPP $CPPFLAGS'
6646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6652 ac_ext=c
6653 ac_cpp='$CPP $CPPFLAGS'
6654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6658 c_loose_warn=
6659 save_CFLAGS="$CFLAGS"
6660 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6661 # Do the check with the no- prefix removed since gcc silently
6662 # accepts any -Wno-* option on purpose
6663 case $real_option in
6664 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6665 *) option=$real_option ;;
6666 esac
6667 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6670 $as_echo_n "checking whether $CC supports $option... " >&6; }
6671 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 CFLAGS="$option"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6679 main ()
6683 return 0;
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 eval "$as_acx_Woption=yes"
6688 else
6689 eval "$as_acx_Woption=no"
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 eval ac_res=\$$as_acx_Woption
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6698 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6700 done
6701 CFLAGS="$save_CFLAGS"
6702 ac_ext=cpp
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6709 ac_ext=cpp
6710 ac_cpp='$CXXCPP $CPPFLAGS'
6711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6715 strict_warn=
6716 save_CXXFLAGS="$CXXFLAGS"
6717 for real_option in -Wmissing-format-attribute; do
6718 # Do the check with the no- prefix removed since gcc silently
6719 # accepts any -Wno-* option on purpose
6720 case $real_option in
6721 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6722 *) option=$real_option ;;
6723 esac
6724 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6727 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6728 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 CXXFLAGS="$option"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6736 main ()
6740 return 0;
6742 _ACEOF
6743 if ac_fn_cxx_try_compile "$LINENO"; then :
6744 eval "$as_acx_Woption=yes"
6745 else
6746 eval "$as_acx_Woption=no"
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 eval ac_res=\$$as_acx_Woption
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6753 $as_echo "$ac_res" >&6; }
6754 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6755 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6757 done
6758 CXXFLAGS="$save_CXXFLAGS"
6759 ac_ext=cpp
6760 ac_cpp='$CXXCPP $CPPFLAGS'
6761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6766 ac_ext=cpp
6767 ac_cpp='$CXXCPP $CPPFLAGS'
6768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6772 save_CXXFLAGS="$CXXFLAGS"
6773 for real_option in -Woverloaded-virtual; do
6774 # Do the check with the no- prefix removed since gcc silently
6775 # accepts any -Wno-* option on purpose
6776 case $real_option in
6777 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6778 *) option=$real_option ;;
6779 esac
6780 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6783 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6784 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 CXXFLAGS="$option"
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6792 main ()
6796 return 0;
6798 _ACEOF
6799 if ac_fn_cxx_try_compile "$LINENO"; then :
6800 eval "$as_acx_Woption=yes"
6801 else
6802 eval "$as_acx_Woption=no"
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 eval ac_res=\$$as_acx_Woption
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6809 $as_echo "$ac_res" >&6; }
6810 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6811 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6813 done
6814 CXXFLAGS="$save_CXXFLAGS"
6815 ac_ext=cpp
6816 ac_cpp='$CXXCPP $CPPFLAGS'
6817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6822 ac_ext=c
6823 ac_cpp='$CPP $CPPFLAGS'
6824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828 c_strict_warn=
6829 save_CFLAGS="$CFLAGS"
6830 for real_option in -Wold-style-definition -Wc++-compat; do
6831 # Do the check with the no- prefix removed since gcc silently
6832 # accepts any -Wno-* option on purpose
6833 case $real_option in
6834 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6835 *) option=$real_option ;;
6836 esac
6837 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6840 $as_echo_n "checking whether $CC supports $option... " >&6; }
6841 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 CFLAGS="$option"
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6849 main ()
6853 return 0;
6855 _ACEOF
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 eval "$as_acx_Woption=yes"
6858 else
6859 eval "$as_acx_Woption=no"
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 eval ac_res=\$$as_acx_Woption
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6866 $as_echo "$ac_res" >&6; }
6867 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6868 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6870 done
6871 CFLAGS="$save_CFLAGS"
6872 ac_ext=cpp
6873 ac_cpp='$CXXCPP $CPPFLAGS'
6874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6879 ac_ext=cpp
6880 ac_cpp='$CXXCPP $CPPFLAGS'
6881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6885 # Do the check with the no- prefix removed from the warning options
6886 # since gcc silently accepts any -Wno-* option on purpose
6887 if test "$GXX" = yes; then :
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6889 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6890 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 save_CXXFLAGS="$CXXFLAGS"
6894 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6899 main ()
6903 return 0;
6905 _ACEOF
6906 if ac_fn_cxx_try_compile "$LINENO"; then :
6907 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6908 else
6909 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 CXXFLAGS="$save_CXXFLAGS"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6915 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6916 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6917 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6921 ac_ext=cpp
6922 ac_cpp='$CXXCPP $CPPFLAGS'
6923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6928 ac_ext=cpp
6929 ac_cpp='$CXXCPP $CPPFLAGS'
6930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6934 # Check whether --enable-werror-always was given.
6935 if test "${enable_werror_always+set}" = set; then :
6936 enableval=$enable_werror_always;
6937 else
6938 enable_werror_always=no
6941 if test $enable_werror_always = yes; then :
6942 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6945 ac_ext=cpp
6946 ac_cpp='$CXXCPP $CPPFLAGS'
6947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953 # The above macros do nothing if the compiler is not GCC. However, the
6954 # Makefile has more goo to add other flags, so these variables are used
6955 # to enable warnings only for GCC.
6956 warn_cflags=
6957 warn_cxxflags=
6958 if test "x$GCC" = "xyes"; then
6959 warn_cflags='$(GCC_WARN_CFLAGS)'
6960 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6965 # Disable exceptions and RTTI if building with g++
6966 ac_ext=c
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 noexception_flags=
6973 save_CFLAGS="$CFLAGS"
6974 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6975 # Do the check with the no- prefix removed since gcc silently
6976 # accepts any -Wno-* option on purpose
6977 case $real_option in
6978 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6979 *) option=$real_option ;;
6980 esac
6981 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6984 $as_echo_n "checking whether $CC supports $option... " >&6; }
6985 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 CFLAGS="$option"
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6993 main ()
6997 return 0;
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 eval "$as_acx_Woption=yes"
7002 else
7003 eval "$as_acx_Woption=no"
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 eval ac_res=\$$as_acx_Woption
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7010 $as_echo "$ac_res" >&6; }
7011 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7012 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7014 done
7015 CFLAGS="$save_CFLAGS"
7016 ac_ext=cpp
7017 ac_cpp='$CXXCPP $CPPFLAGS'
7018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7024 # Enable expensive internal checks
7025 is_release=
7026 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7027 is_release=yes
7030 # Check whether --enable-checking was given.
7031 if test "${enable_checking+set}" = set; then :
7032 enableval=$enable_checking; ac_checking_flags="${enableval}"
7033 else
7035 # Determine the default checks.
7036 if test x$is_release = x ; then
7037 ac_checking_flags=yes
7038 else
7039 ac_checking_flags=release
7043 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7044 for check in release $ac_checking_flags
7046 case $check in
7047 # these set all the flags to specific states
7048 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7049 ac_fold_checking= ; ac_gc_checking=1 ;
7050 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7051 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7052 ac_tree_checking=1 ; ac_valgrind_checking= ;
7053 ac_types_checking=1 ;;
7054 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7055 ac_fold_checking= ; ac_gc_checking= ;
7056 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7057 ac_rtlflag_checking= ; ac_runtime_checking= ;
7058 ac_tree_checking= ; ac_valgrind_checking= ;
7059 ac_types_checking= ;;
7060 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7061 ac_fold_checking=1 ; ac_gc_checking=1 ;
7062 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7063 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7064 ac_tree_checking=1 ; ac_valgrind_checking= ;
7065 ac_types_checking=1 ;;
7066 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7067 ac_fold_checking= ; ac_gc_checking= ;
7068 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7069 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7070 ac_tree_checking= ; ac_valgrind_checking= ;
7071 ac_types_checking= ;;
7072 # these enable particular checks
7073 assert) ac_assert_checking=1 ;;
7074 df) ac_df_checking=1 ;;
7075 fold) ac_fold_checking=1 ;;
7076 gc) ac_gc_checking=1 ;;
7077 gcac) ac_gc_always_collect=1 ;;
7078 gimple) ac_gimple_checking=1 ;;
7079 misc) ac_checking=1 ;;
7080 rtl) ac_rtl_checking=1 ;;
7081 rtlflag) ac_rtlflag_checking=1 ;;
7082 runtime) ac_runtime_checking=1 ;;
7083 tree) ac_tree_checking=1 ;;
7084 types) ac_types_checking=1 ;;
7085 valgrind) ac_valgrind_checking=1 ;;
7086 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7087 esac
7088 done
7089 IFS="$ac_save_IFS"
7091 nocommon_flag=""
7092 if test x$ac_checking != x ; then
7094 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7096 nocommon_flag=-fno-common
7099 if test x$ac_df_checking != x ; then
7101 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7104 if test x$ac_assert_checking != x ; then
7106 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7109 if test x$ac_gimple_checking != x ; then
7111 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7115 if test x$ac_runtime_checking != x ; then
7117 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7120 if test x$ac_tree_checking != x ; then
7122 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7124 TREECHECKING=yes
7126 if test x$ac_types_checking != x ; then
7128 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7132 if test x$ac_rtl_checking != x ; then
7134 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7137 if test x$ac_rtlflag_checking != x ; then
7139 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7142 if test x$ac_gc_checking != x ; then
7144 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7147 if test x$ac_gc_always_collect != x ; then
7149 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7152 if test x$ac_fold_checking != x ; then
7154 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7157 valgrind_path_defines=
7158 valgrind_command=
7160 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7161 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7162 have_valgrind_h=yes
7163 else
7164 have_valgrind_h=no
7169 # It is certainly possible that there's valgrind but no valgrind.h.
7170 # GCC relies on making annotations so we must have both.
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7172 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #include <valgrind/memcheck.h>
7176 #ifndef VALGRIND_DISCARD
7177 #error VALGRIND_DISCARD not defined
7178 #endif
7179 _ACEOF
7180 if ac_fn_cxx_try_cpp "$LINENO"; then :
7181 gcc_cv_header_valgrind_memcheck_h=yes
7182 else
7183 gcc_cv_header_valgrind_memcheck_h=no
7185 rm -f conftest.err conftest.$ac_ext
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7187 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7189 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <memcheck.h>
7193 #ifndef VALGRIND_DISCARD
7194 #error VALGRIND_DISCARD not defined
7195 #endif
7196 _ACEOF
7197 if ac_fn_cxx_try_cpp "$LINENO"; then :
7198 gcc_cv_header_memcheck_h=yes
7199 else
7200 gcc_cv_header_memcheck_h=no
7202 rm -f conftest.err conftest.$ac_ext
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7204 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7205 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7207 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7210 if test $gcc_cv_header_memcheck_h = yes; then
7212 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7216 if test x$ac_valgrind_checking != x ; then
7218 # Prepare PATH_SEPARATOR.
7219 # The user is always right.
7220 if test "${PATH_SEPARATOR+set}" != set; then
7221 echo "#! /bin/sh" >conf$$.sh
7222 echo "exit 0" >>conf$$.sh
7223 chmod +x conf$$.sh
7224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7225 PATH_SEPARATOR=';'
7226 else
7227 PATH_SEPARATOR=:
7229 rm -f conf$$.sh
7232 # Find out how to test for executable files. Don't use a zero-byte file,
7233 # as systems may use methods other than mode bits to determine executability.
7234 cat >conf$$.file <<_ASEOF
7235 #! /bin/sh
7236 exit 0
7237 _ASEOF
7238 chmod +x conf$$.file
7239 if test -x conf$$.file >/dev/null 2>&1; then
7240 ac_executable_p="test -x"
7241 else
7242 ac_executable_p="test -f"
7244 rm -f conf$$.file
7246 # Extract the first word of "valgrind", so it can be a program name with args.
7247 set dummy valgrind; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 case "$valgrind_path" in
7254 [\\/]* | ?:[\\/]*)
7255 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7258 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7259 for ac_dir in $PATH; do
7260 IFS="$ac_save_IFS"
7261 test -z "$ac_dir" && ac_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7264 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7265 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7266 break 2
7269 done
7270 done
7271 IFS="$ac_save_IFS"
7273 esac
7275 valgrind_path="$ac_cv_path_valgrind_path"
7276 if test -n "$valgrind_path"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7278 $as_echo "$valgrind_path" >&6; }
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7284 if test "x$valgrind_path" = "x" \
7285 || (test $have_valgrind_h = no \
7286 && test $gcc_cv_header_memcheck_h = no \
7287 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7288 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7290 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7291 valgrind_command="$valgrind_path -q"
7293 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7299 # Enable code coverage collection
7300 # Check whether --enable-coverage was given.
7301 if test "${enable_coverage+set}" = set; then :
7302 enableval=$enable_coverage; case "${enableval}" in
7303 yes|noopt)
7304 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7306 opt)
7307 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7310 # a.k.a. --disable-coverage
7311 coverage_flags=""
7314 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7316 esac
7317 else
7318 coverage_flags=""
7323 # Check whether --enable-gather-detailed-mem-stats was given.
7324 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7325 enableval=$enable_gather_detailed_mem_stats;
7326 else
7327 enable_gather_detailed_mem_stats=no
7330 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7332 cat >>confdefs.h <<_ACEOF
7333 #define GATHER_STATISTICS $gather_stats
7334 _ACEOF
7337 # Check whether --enable-valgrind-annotations was given.
7338 if test "${enable_valgrind_annotations+set}" = set; then :
7339 enableval=$enable_valgrind_annotations;
7340 else
7341 enable_valgrind_annotations=no
7344 if test x$enable_valgrind_annotations != xno \
7345 || test x$ac_valgrind_checking != x; then
7346 if (test $have_valgrind_h = no \
7347 && test $gcc_cv_header_memcheck_h = no \
7348 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7349 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7352 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7356 # -------------------------------
7357 # Miscenalleous configure options
7358 # -------------------------------
7360 # With stabs
7362 # Check whether --with-stabs was given.
7363 if test "${with_stabs+set}" = set; then :
7364 withval=$with_stabs; stabs="$with_stabs"
7365 else
7366 stabs=no
7370 # Determine whether or not multilibs are enabled.
7371 # Check whether --enable-multilib was given.
7372 if test "${enable_multilib+set}" = set; then :
7373 enableval=$enable_multilib;
7374 else
7375 enable_multilib=yes
7380 # Determine whether or not multiarch is enabled.
7381 # Check whether --enable-multiarch was given.
7382 if test "${enable_multiarch+set}" = set; then :
7383 enableval=$enable_multiarch; case "${enableval}" in
7384 yes|no|auto) enable_multiarch=$enableval;;
7385 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7386 esac
7387 else
7388 enable_multiarch=auto
7391 if test x${enable_multiarch} = xauto; then
7392 if test x${with_native_system_header_dir} != x; then
7393 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7394 enable_multiarch=no
7396 if test x$host != x$target && test "x$with_sysroot" = x; then
7397 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7398 enable_multiarch=no
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7402 $as_echo_n "checking for multiarch configuration... " >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7405 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7407 # needed for setting the multiarch name for soft-float/hard-float ABIs
7411 # Enable __cxa_atexit for C++.
7412 # Check whether --enable-__cxa_atexit was given.
7413 if test "${enable___cxa_atexit+set}" = set; then :
7414 enableval=$enable___cxa_atexit;
7418 # Enable C extension for decimal float if target supports it.
7420 # Check whether --enable-decimal-float was given.
7421 if test "${enable_decimal_float+set}" = set; then :
7422 enableval=$enable_decimal_float;
7423 case $enable_decimal_float in
7424 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7425 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7426 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7427 esac
7429 else
7431 case $target in
7432 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7433 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7434 i?86*-*-mingw* | x86_64*-*-mingw* | \
7435 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7436 enable_decimal_float=yes
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7440 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7441 enable_decimal_float=no
7443 esac
7448 # x86's use BID format instead of DPD
7449 case x$enable_decimal_float in
7450 xyes)
7451 case $target in
7452 i?86*-*-* | x86_64*-*-*)
7453 enable_decimal_float=bid
7456 enable_decimal_float=dpd
7458 esac
7459 default_decimal_float=$enable_decimal_float
7461 xno)
7462 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7463 # dependency on libdecnumber.
7464 default_decimal_float=dpd
7466 esac
7471 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7473 cat >>confdefs.h <<_ACEOF
7474 #define ENABLE_DECIMAL_FLOAT $dfp
7475 _ACEOF
7478 # Use default_decimal_float for dependency.
7479 enable_decimal_float=$default_decimal_float
7481 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7483 cat >>confdefs.h <<_ACEOF
7484 #define ENABLE_DECIMAL_BID_FORMAT $bid
7485 _ACEOF
7488 # Enable C extension for fixed-point arithmetic.
7489 # Check whether --enable-fixed-point was given.
7490 if test "${enable_fixed_point+set}" = set; then :
7491 enableval=$enable_fixed_point;
7492 else
7494 case $target in
7495 arm*)
7496 enable_fixed_point=yes
7499 mips*-*-*)
7500 enable_fixed_point=yes
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7504 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7505 enable_fixed_point=no
7507 esac
7513 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7515 cat >>confdefs.h <<_ACEOF
7516 #define ENABLE_FIXED_POINT $fixedpoint
7517 _ACEOF
7520 # Enable threads
7521 # Pass with no value to take the default
7522 # Pass with a value to specify a thread package
7523 # Check whether --enable-threads was given.
7524 if test "${enable_threads+set}" = set; then :
7525 enableval=$enable_threads;
7526 else
7527 enable_threads=''
7531 # Check whether --enable-tls was given.
7532 if test "${enable_tls+set}" = set; then :
7533 enableval=$enable_tls;
7534 case $enable_tls in
7535 yes | no) ;;
7536 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7537 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7538 esac
7540 else
7541 enable_tls=''
7545 # Check whether --enable-objc-gc was given.
7546 if test "${enable_objc_gc+set}" = set; then :
7547 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7548 objc_boehm_gc=''
7549 else
7550 objc_boehm_gc=1
7552 else
7553 objc_boehm_gc=''
7558 # Check whether --with-dwarf2 was given.
7559 if test "${with_dwarf2+set}" = set; then :
7560 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7561 else
7562 dwarf2=no
7566 # Check whether --enable-shared was given.
7567 if test "${enable_shared+set}" = set; then :
7568 enableval=$enable_shared;
7569 case $enable_shared in
7570 yes | no) ;;
7572 enable_shared=no
7573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7574 for pkg in $enableval; do
7575 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7576 enable_shared=yes
7578 done
7579 IFS="$ac_save_ifs"
7581 esac
7583 else
7584 enable_shared=yes
7590 # Check whether --with-specs was given.
7591 if test "${with_specs+set}" = set; then :
7592 withval=$with_specs; CONFIGURE_SPECS=$withval
7593 else
7594 CONFIGURE_SPECS=
7602 # Check whether --with-pkgversion was given.
7603 if test "${with_pkgversion+set}" = set; then :
7604 withval=$with_pkgversion; case "$withval" in
7605 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7606 no) PKGVERSION= ;;
7607 *) PKGVERSION="($withval) " ;;
7608 esac
7609 else
7610 PKGVERSION="(GCC) "
7618 # Check whether --with-bugurl was given.
7619 if test "${with_bugurl+set}" = set; then :
7620 withval=$with_bugurl; case "$withval" in
7621 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7622 no) BUGURL=
7624 *) BUGURL="$withval"
7626 esac
7627 else
7628 BUGURL="http://gcc.gnu.org/bugs.html"
7632 case ${BUGURL} in
7634 REPORT_BUGS_TO=
7635 REPORT_BUGS_TEXI=
7638 REPORT_BUGS_TO="<$BUGURL>"
7639 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7641 esac;
7646 # Sanity check enable_languages in case someone does not run the toplevel
7647 # configure # script.
7648 # Check whether --enable-languages was given.
7649 if test "${enable_languages+set}" = set; then :
7650 enableval=$enable_languages; case ,${enable_languages}, in
7651 ,,|,yes,)
7652 # go safe -- we cannot be much sure without the toplevel
7653 # configure's
7654 # analysis of which target libs are present and usable
7655 enable_languages=c
7657 *,all,*)
7658 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7660 *,c,*)
7663 enable_languages=c,${enable_languages}
7665 esac
7666 else
7667 enable_languages=c
7671 if test x"$enable_as_accelerator_for" != x; then
7673 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7675 enable_as_accelerator=yes
7676 case "${target}" in
7677 *-intelmicemul-*)
7678 # In this case we expect offload compiler to be built as native, so we
7679 # need to rename the driver to avoid clashes with host's drivers.
7680 program_transform_name="s&^&${target}-&" ;;
7681 esac
7682 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7683 program_transform_name=`echo $program_transform_name | sed $sedscript`
7684 accel_dir_suffix=/accel/${target_noncanonical}
7685 real_target_noncanonical=${enable_as_accelerator_for}
7691 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7692 tgt=`echo $tgt | sed 's/=.*//'`
7693 if test x"$offload_targets" = x; then
7694 offload_targets=$tgt
7695 else
7696 offload_targets="$offload_targets:$tgt"
7698 done
7700 cat >>confdefs.h <<_ACEOF
7701 #define OFFLOAD_TARGETS "$offload_targets"
7702 _ACEOF
7704 if test x"$offload_targets" != x; then
7706 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7711 # Check whether --with-multilib-list was given.
7712 if test "${with_multilib_list+set}" = set; then :
7713 withval=$with_multilib_list; :
7714 else
7715 with_multilib_list=default
7719 # -------------------------
7720 # Checks for other programs
7721 # -------------------------
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7724 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7725 set x ${MAKE-make}
7726 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7727 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 cat >conftest.make <<\_ACEOF
7731 SHELL = /bin/sh
7732 all:
7733 @echo '@@@%%%=$(MAKE)=@@@%%%'
7734 _ACEOF
7735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7736 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7737 *@@@%%%=?*=@@@%%%*)
7738 eval ac_cv_prog_make_${ac_make}_set=yes;;
7740 eval ac_cv_prog_make_${ac_make}_set=no;;
7741 esac
7742 rm -f conftest.make
7744 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 $as_echo "yes" >&6; }
7747 SET_MAKE=
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 SET_MAKE="MAKE=${MAKE-make}"
7755 # Find some useful tools
7756 for ac_prog in gawk mawk nawk awk
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_AWK+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 if test -n "$AWK"; then
7766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_AWK="$ac_prog"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7779 done
7780 done
7781 IFS=$as_save_IFS
7785 AWK=$ac_cv_prog_AWK
7786 if test -n "$AWK"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7788 $as_echo "$AWK" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7795 test -n "$AWK" && break
7796 done
7798 # We need awk to create options.c and options.h.
7799 # Bail out if it's missing.
7800 case ${AWK} in
7801 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7802 esac
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7805 $as_echo_n "checking whether ln -s works... " >&6; }
7806 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 rm -f conftestdata_t
7810 echo >conftestdata_f
7811 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7812 then
7813 gcc_cv_prog_LN_S="ln -s"
7814 else
7815 if ln conftestdata_f conftestdata_t 2>/dev/null
7816 then
7817 gcc_cv_prog_LN_S=ln
7818 else
7819 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7820 then
7821 gcc_cv_prog_LN_S="cp -p"
7822 else
7823 gcc_cv_prog_LN_S=cp
7827 rm -f conftestdata_f conftestdata_t
7830 LN_S="$gcc_cv_prog_LN_S"
7831 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 else
7835 if test "$gcc_cv_prog_LN_S" = "ln"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7837 $as_echo "no, using ln" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7840 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7845 $as_echo_n "checking whether ln works... " >&6; }
7846 if test "${acx_cv_prog_LN+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 rm -f conftestdata_t
7850 echo >conftestdata_f
7851 if ln conftestdata_f conftestdata_t 2>/dev/null
7852 then
7853 acx_cv_prog_LN=ln
7854 else
7855 acx_cv_prog_LN=no
7857 rm -f conftestdata_f conftestdata_t
7860 if test $acx_cv_prog_LN = no; then
7861 LN="$LN_S"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7863 $as_echo "no, using $LN" >&6; }
7864 else
7865 LN="$acx_cv_prog_LN"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7867 $as_echo "yes" >&6; }
7870 if test -n "$ac_tool_prefix"; then
7871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 if test -n "$RANLIB"; then
7879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7892 done
7893 done
7894 IFS=$as_save_IFS
7898 RANLIB=$ac_cv_prog_RANLIB
7899 if test -n "$RANLIB"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7901 $as_echo "$RANLIB" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7909 if test -z "$ac_cv_prog_RANLIB"; then
7910 ac_ct_RANLIB=$RANLIB
7911 # Extract the first word of "ranlib", so it can be a program name with args.
7912 set dummy ranlib; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 if test -n "$ac_ct_RANLIB"; then
7919 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_ac_ct_RANLIB="ranlib"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7932 done
7933 done
7934 IFS=$as_save_IFS
7938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7939 if test -n "$ac_ct_RANLIB"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7941 $as_echo "$ac_ct_RANLIB" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7947 if test "x$ac_ct_RANLIB" = x; then
7948 RANLIB=":"
7949 else
7950 case $cross_compiling:$ac_tool_warned in
7951 yes:)
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7955 esac
7956 RANLIB=$ac_ct_RANLIB
7958 else
7959 RANLIB="$ac_cv_prog_RANLIB"
7962 ranlib_flags=""
7965 # Find a good install program. We prefer a C program (faster),
7966 # so one script is as good as another. But avoid the broken or
7967 # incompatible versions:
7968 # SysV /etc/install, /usr/sbin/install
7969 # SunOS /usr/etc/install
7970 # IRIX /sbin/install
7971 # AIX /bin/install
7972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7974 # ./install, which can be erroneously created by make from ./install.sh.
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7976 $as_echo_n "checking for a BSD compatible install... " >&6; }
7977 if test -z "$INSTALL"; then
7978 if test "${ac_cv_path_install+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7982 for ac_dir in $PATH; do
7983 # Account for people who put trailing slashes in PATH elements.
7984 case "$ac_dir/" in
7985 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7987 # OSF1 and SCO ODT 3.0 have their own names for install.
7988 for ac_prog in ginstall scoinst install; do
7989 if test -f $ac_dir/$ac_prog; then
7990 if test $ac_prog = install &&
7991 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7992 # AIX install. It has an incompatible calling convention.
7993 # OSF/1 installbsd also uses dspmsg, but is usable.
7995 else
7996 ac_cv_path_install="$ac_dir/$ac_prog -c"
7997 break 2
8000 done
8002 esac
8003 done
8004 IFS="$ac_save_IFS"
8007 if test "${ac_cv_path_install+set}" = set; then
8008 INSTALL="$ac_cv_path_install"
8009 else
8010 # As a last resort, use the slow shell script. We don't cache a
8011 # path for INSTALL within a source directory, because that will
8012 # break other packages using the cache if that directory is
8013 # removed, or if the path is relative.
8014 INSTALL="$ac_install_sh"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8018 $as_echo "$INSTALL" >&6; }
8020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8021 # It thinks the first close brace ends the variable substitution.
8022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8027 # See if cmp has --ignore-initial.
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8029 $as_echo_n "checking for cmp's capabilities... " >&6; }
8030 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 echo abfoo >t1
8034 echo cdfoo >t2
8035 gcc_cv_prog_cmp_skip=slowcompare
8036 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8037 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8039 else
8040 gcc_cv_prog_cmp_skip=gnucompare
8043 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8044 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8045 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8047 else
8048 gcc_cv_prog_cmp_skip=fastcompare
8052 rm t1 t2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8056 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8057 make_compare_target=$gcc_cv_prog_cmp_skip
8061 # See if we have the mktemp command.
8062 # Extract the first word of "mktemp", so it can be a program name with args.
8063 set dummy mktemp; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 if test -n "$have_mktemp_command"; then
8070 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_have_mktemp_command="yes"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8085 IFS=$as_save_IFS
8087 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8090 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8091 if test -n "$have_mktemp_command"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8093 $as_echo "$have_mktemp_command" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 # See if makeinfo has been installed and is modern enough
8102 # that we can use it.
8104 # Extract the first word of "makeinfo", so it can be a program name with args.
8105 set dummy makeinfo; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 if test -n "$MAKEINFO"; then
8112 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_MAKEINFO="makeinfo"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8125 done
8126 done
8127 IFS=$as_save_IFS
8131 MAKEINFO=$ac_cv_prog_MAKEINFO
8132 if test -n "$MAKEINFO"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8134 $as_echo "$MAKEINFO" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8141 if test -n "$MAKEINFO"; then
8142 # Found it, now check the version.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8144 $as_echo_n "checking for modern makeinfo... " >&6; }
8145 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8149 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8151 case $ac_prog_version in
8152 '') gcc_cv_prog_makeinfo_modern=no;;
8153 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8154 *) gcc_cv_prog_makeinfo_modern=no;;
8155 esac
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8159 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8160 else
8161 gcc_cv_prog_makeinfo_modern=no
8163 if test $gcc_cv_prog_makeinfo_modern = no; then
8164 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8167 if test $gcc_cv_prog_makeinfo_modern = no; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8169 *** Makeinfo is missing or too old.
8170 *** Info documentation will not be built." >&5
8171 $as_echo "$as_me: WARNING:
8172 *** Makeinfo is missing or too old.
8173 *** Info documentation will not be built." >&2;}
8174 BUILD_INFO=
8175 else
8176 BUILD_INFO=info
8180 # Is pod2man recent enough to regenerate manpages?
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8182 $as_echo_n "checking for recent Pod::Man... " >&6; }
8183 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8186 GENERATED_MANPAGES=generated-manpages
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8190 GENERATED_MANPAGES=
8194 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8196 # How about lex?
8197 for ac_prog in flex
8199 # Extract the first word of "$ac_prog", so it can be a program name with args.
8200 set dummy $ac_prog; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_FLEX+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$FLEX"; then
8207 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_FLEX="$ac_prog"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8220 done
8221 done
8222 IFS=$as_save_IFS
8226 FLEX=$ac_cv_prog_FLEX
8227 if test -n "$FLEX"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8229 $as_echo "$FLEX" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8236 test -n "$FLEX" && break
8237 done
8238 test -n "$FLEX" || FLEX="$MISSING flex"
8241 # Bison?
8242 for ac_prog in bison
8244 # Extract the first word of "$ac_prog", so it can be a program name with args.
8245 set dummy $ac_prog; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_BISON+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test -n "$BISON"; then
8252 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_BISON="$ac_prog"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8265 done
8266 done
8267 IFS=$as_save_IFS
8271 BISON=$ac_cv_prog_BISON
8272 if test -n "$BISON"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8274 $as_echo "$BISON" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8281 test -n "$BISON" && break
8282 done
8283 test -n "$BISON" || BISON="$MISSING bison"
8286 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8287 # check for build == host before using them.
8289 # NM
8290 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8291 && test -d ../binutils ; then
8292 NM='${objdir}/../binutils/nm-new'
8293 else
8294 # Extract the first word of "nm", so it can be a program name with args.
8295 set dummy nm; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_NM+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 if test -n "$NM"; then
8302 ac_cv_prog_NM="$NM" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_NM="nm"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8315 done
8316 done
8317 IFS=$as_save_IFS
8319 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8322 NM=$ac_cv_prog_NM
8323 if test -n "$NM"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8325 $as_echo "$NM" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8334 # AR
8335 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8336 && test -d ../binutils ; then
8337 AR='${objdir}/../binutils/ar'
8338 else
8339 # Extract the first word of "ar", so it can be a program name with args.
8340 set dummy ar; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_AR+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 if test -n "$AR"; then
8347 ac_cv_prog_AR="$AR" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_AR="ar"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8360 done
8361 done
8362 IFS=$as_save_IFS
8364 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8367 AR=$ac_cv_prog_AR
8368 if test -n "$AR"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8370 $as_echo "$AR" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8379 # The jit documentation looks better if built with sphinx, but can be
8380 # built with texinfo if sphinx is not available.
8381 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8382 # Extract the first word of "sphinx-build", so it can be a program name with args.
8383 set dummy sphinx-build; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 if test -n "$doc_build_sys"; then
8390 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_prog_doc_build_sys="sphinx"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8403 done
8404 done
8405 IFS=$as_save_IFS
8407 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8410 doc_build_sys=$ac_cv_prog_doc_build_sys
8411 if test -n "$doc_build_sys"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8413 $as_echo "$doc_build_sys" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8421 # --------------------
8422 # Checks for C headers
8423 # --------------------
8425 # Need to reject headers which give warnings, so that the -Werror bootstrap
8426 # works later. *sigh* This needs to come before all header checks.
8428 ac_c_preproc_warn_flag=yes
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8431 $as_echo_n "checking for ANSI C header files... " >&6; }
8432 if test "${ac_cv_header_stdc+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <stdlib.h>
8438 #include <stdarg.h>
8439 #include <string.h>
8440 #include <float.h>
8443 main ()
8447 return 0;
8449 _ACEOF
8450 if ac_fn_cxx_try_compile "$LINENO"; then :
8451 ac_cv_header_stdc=yes
8452 else
8453 ac_cv_header_stdc=no
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 if test $ac_cv_header_stdc = yes; then
8458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <string.h>
8463 _ACEOF
8464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465 $EGREP "memchr" >/dev/null 2>&1; then :
8467 else
8468 ac_cv_header_stdc=no
8470 rm -f conftest*
8474 if test $ac_cv_header_stdc = yes; then
8475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 #include <stdlib.h>
8480 _ACEOF
8481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8482 $EGREP "free" >/dev/null 2>&1; then :
8484 else
8485 ac_cv_header_stdc=no
8487 rm -f conftest*
8491 if test $ac_cv_header_stdc = yes; then
8492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8493 if test "$cross_compiling" = yes; then :
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <ctype.h>
8499 #include <stdlib.h>
8500 #if ((' ' & 0x0FF) == 0x020)
8501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8503 #else
8504 # define ISLOWER(c) \
8505 (('a' <= (c) && (c) <= 'i') \
8506 || ('j' <= (c) && (c) <= 'r') \
8507 || ('s' <= (c) && (c) <= 'z'))
8508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8509 #endif
8511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8513 main ()
8515 int i;
8516 for (i = 0; i < 256; i++)
8517 if (XOR (islower (i), ISLOWER (i))
8518 || toupper (i) != TOUPPER (i))
8519 return 2;
8520 return 0;
8522 _ACEOF
8523 if ac_fn_cxx_try_run "$LINENO"; then :
8525 else
8526 ac_cv_header_stdc=no
8528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8529 conftest.$ac_objext conftest.beam conftest.$ac_ext
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8535 $as_echo "$ac_cv_header_stdc" >&6; }
8536 if test $ac_cv_header_stdc = yes; then
8538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8543 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8544 if test "${ac_cv_header_time+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <sys/types.h>
8550 #include <sys/time.h>
8551 #include <time.h>
8554 main ()
8556 if ((struct tm *) 0)
8557 return 0;
8559 return 0;
8561 _ACEOF
8562 if ac_fn_cxx_try_compile "$LINENO"; then :
8563 ac_cv_header_time=yes
8564 else
8565 ac_cv_header_time=no
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8570 $as_echo "$ac_cv_header_time" >&6; }
8571 if test $ac_cv_header_time = yes; then
8573 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8578 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8579 if test "${gcc_cv_header_string+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 #include <string.h>
8585 #include <strings.h>
8587 main ()
8591 return 0;
8593 _ACEOF
8594 if ac_fn_cxx_try_compile "$LINENO"; then :
8595 gcc_cv_header_string=yes
8596 else
8597 gcc_cv_header_string=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8602 $as_echo "$gcc_cv_header_string" >&6; }
8603 if test $gcc_cv_header_string = yes; then
8605 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8610 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8611 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/wait.h>
8618 #ifndef WEXITSTATUS
8619 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8620 #endif
8621 #ifndef WIFEXITED
8622 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8623 #endif
8626 main ()
8628 int s;
8629 wait (&s);
8630 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8632 return 0;
8634 _ACEOF
8635 if ac_fn_cxx_try_compile "$LINENO"; then :
8636 ac_cv_header_sys_wait_h=yes
8637 else
8638 ac_cv_header_sys_wait_h=no
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8643 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8644 if test $ac_cv_header_sys_wait_h = yes; then
8646 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8651 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8652 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 #include <sys/types.h>
8658 #include <termios.h>
8659 #ifdef TIOCGWINSZ
8661 #endif
8663 _ACEOF
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665 $EGREP "yes" >/dev/null 2>&1; then :
8666 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8667 else
8668 ac_cv_sys_tiocgwinsz_in_termios_h=no
8670 rm -f conftest*
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8674 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8676 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8678 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8679 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <sys/types.h>
8685 #include <sys/ioctl.h>
8686 #ifdef TIOCGWINSZ
8688 #endif
8690 _ACEOF
8691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692 $EGREP "yes" >/dev/null 2>&1; then :
8693 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8694 else
8695 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8697 rm -f conftest*
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8701 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8703 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8705 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8710 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8711 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8712 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8713 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8714 do :
8715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8716 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8717 eval as_val=\$$as_ac_Header
8718 if test "x$as_val" = x""yes; then :
8719 cat >>confdefs.h <<_ACEOF
8720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8721 _ACEOF
8724 done
8727 # Check for thread headers.
8728 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8729 if test "x$ac_cv_header_thread_h" = x""yes; then :
8730 have_thread_h=yes
8731 else
8732 have_thread_h=
8735 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8736 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8737 have_pthread_h=yes
8738 else
8739 have_pthread_h=
8743 # These tests can't be done till we know if we have limits.h.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8745 $as_echo_n "checking for CHAR_BIT... " >&6; }
8746 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 #ifdef HAVE_LIMITS_H
8752 #include <limits.h>
8753 #endif
8754 #ifdef CHAR_BIT
8755 found
8756 #endif
8757 _ACEOF
8758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8759 $EGREP "found" >/dev/null 2>&1; then :
8760 gcc_cv_decl_char_bit=yes
8761 else
8762 gcc_cv_decl_char_bit=no
8764 rm -f conftest*
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8769 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8770 if test $gcc_cv_decl_char_bit = no; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8772 $as_echo_n "checking number of bits in a byte... " >&6; }
8773 if test "${gcc_cv_c_nbby+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8777 gcc_cv_c_nbby=
8778 while test $i -lt 65; do
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8783 main ()
8785 switch(0) {
8786 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8787 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8790 return 0;
8792 _ACEOF
8793 if ac_fn_cxx_try_compile "$LINENO"; then :
8794 gcc_cv_c_nbby=$i; break
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 i=`expr $i + 1`
8798 done
8799 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8803 $as_echo "$gcc_cv_c_nbby" >&6; }
8804 if test $gcc_cv_c_nbby = failed; then
8805 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8806 else
8808 cat >>confdefs.h <<_ACEOF
8809 #define CHAR_BIT $gcc_cv_c_nbby
8810 _ACEOF
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8815 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8816 if test "${ac_cv_c_bigendian+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 ac_cv_c_bigendian=unknown
8820 # See if we're dealing with a universal compiler.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 #ifndef __APPLE_CC__
8824 not a universal capable compiler
8825 #endif
8826 typedef int dummy;
8828 _ACEOF
8829 if ac_fn_cxx_try_compile "$LINENO"; then :
8831 # Check for potential -arch flags. It is not universal unless
8832 # there are at least two -arch flags with different values.
8833 ac_arch=
8834 ac_prev=
8835 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8836 if test -n "$ac_prev"; then
8837 case $ac_word in
8838 i?86 | x86_64 | ppc | ppc64)
8839 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8840 ac_arch=$ac_word
8841 else
8842 ac_cv_c_bigendian=universal
8843 break
8846 esac
8847 ac_prev=
8848 elif test "x$ac_word" = "x-arch"; then
8849 ac_prev=arch
8851 done
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 if test $ac_cv_c_bigendian = unknown; then
8855 # See if sys/param.h defines the BYTE_ORDER macro.
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <sys/types.h>
8859 #include <sys/param.h>
8862 main ()
8864 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8865 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8866 && LITTLE_ENDIAN)
8867 bogus endian macros
8868 #endif
8871 return 0;
8873 _ACEOF
8874 if ac_fn_cxx_try_compile "$LINENO"; then :
8875 # It does; now see whether it defined to BIG_ENDIAN or not.
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 #include <sys/types.h>
8879 #include <sys/param.h>
8882 main ()
8884 #if BYTE_ORDER != BIG_ENDIAN
8885 not big endian
8886 #endif
8889 return 0;
8891 _ACEOF
8892 if ac_fn_cxx_try_compile "$LINENO"; then :
8893 ac_cv_c_bigendian=yes
8894 else
8895 ac_cv_c_bigendian=no
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 if test $ac_cv_c_bigendian = unknown; then
8902 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #include <limits.h>
8908 main ()
8910 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8911 bogus endian macros
8912 #endif
8915 return 0;
8917 _ACEOF
8918 if ac_fn_cxx_try_compile "$LINENO"; then :
8919 # It does; now see whether it defined to _BIG_ENDIAN or not.
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 #include <limits.h>
8925 main ()
8927 #ifndef _BIG_ENDIAN
8928 not big endian
8929 #endif
8932 return 0;
8934 _ACEOF
8935 if ac_fn_cxx_try_compile "$LINENO"; then :
8936 ac_cv_c_bigendian=yes
8937 else
8938 ac_cv_c_bigendian=no
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 if test $ac_cv_c_bigendian = unknown; then
8945 # Compile a test program.
8946 if test "$cross_compiling" = yes; then :
8947 # Try to guess by grepping values from an object file.
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 short int ascii_mm[] =
8951 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8952 short int ascii_ii[] =
8953 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8954 int use_ascii (int i) {
8955 return ascii_mm[i] + ascii_ii[i];
8957 short int ebcdic_ii[] =
8958 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8959 short int ebcdic_mm[] =
8960 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8961 int use_ebcdic (int i) {
8962 return ebcdic_mm[i] + ebcdic_ii[i];
8964 extern int foo;
8967 main ()
8969 return use_ascii (foo) == use_ebcdic (foo);
8971 return 0;
8973 _ACEOF
8974 if ac_fn_cxx_try_compile "$LINENO"; then :
8975 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8976 ac_cv_c_bigendian=yes
8978 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8979 if test "$ac_cv_c_bigendian" = unknown; then
8980 ac_cv_c_bigendian=no
8981 else
8982 # finding both strings is unlikely to happen, but who knows?
8983 ac_cv_c_bigendian=unknown
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 else
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 $ac_includes_default
8993 main ()
8996 /* Are we little or big endian? From Harbison&Steele. */
8997 union
8999 long int l;
9000 char c[sizeof (long int)];
9001 } u;
9002 u.l = 1;
9003 return u.c[sizeof (long int) - 1] == 1;
9006 return 0;
9008 _ACEOF
9009 if ac_fn_cxx_try_run "$LINENO"; then :
9010 ac_cv_c_bigendian=no
9011 else
9012 ac_cv_c_bigendian=yes
9014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9015 conftest.$ac_objext conftest.beam conftest.$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9021 $as_echo "$ac_cv_c_bigendian" >&6; }
9022 case $ac_cv_c_bigendian in #(
9023 yes)
9024 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9025 ;; #(
9027 ;; #(
9028 universal)
9030 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9032 ;; #(
9034 as_fn_error "unknown endianness
9035 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9036 esac
9039 # ----------------------
9040 # Checks for C++ headers
9041 # ----------------------
9043 ac_ext=cpp
9044 ac_cpp='$CXXCPP $CPPFLAGS'
9045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9049 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9050 if test -z "$CXXCPP"; then
9051 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 # Double quotes because CXXCPP needs to be expanded
9055 for CXXCPP in "$CXX -E" "/lib/cpp"
9057 ac_preproc_ok=false
9058 for ac_cxx_preproc_warn_flag in '' yes
9060 # Use a header file that comes with gcc, so configuring glibc
9061 # with a fresh cross-compiler works.
9062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9063 # <limits.h> exists even on freestanding compilers.
9064 # On the NeXT, cc -E runs the code through the compiler's parser,
9065 # not just through cpp. "Syntax error" is here to catch this case.
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 #ifdef __STDC__
9069 # include <limits.h>
9070 #else
9071 # include <assert.h>
9072 #endif
9073 Syntax error
9074 _ACEOF
9075 if ac_fn_cxx_try_cpp "$LINENO"; then :
9077 else
9078 # Broken: fails on valid input.
9079 continue
9081 rm -f conftest.err conftest.$ac_ext
9083 # OK, works on sane cases. Now check whether nonexistent headers
9084 # can be detected and how.
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <ac_nonexistent.h>
9088 _ACEOF
9089 if ac_fn_cxx_try_cpp "$LINENO"; then :
9090 # Broken: success on invalid input.
9091 continue
9092 else
9093 # Passes both tests.
9094 ac_preproc_ok=:
9095 break
9097 rm -f conftest.err conftest.$ac_ext
9099 done
9100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9101 rm -f conftest.err conftest.$ac_ext
9102 if $ac_preproc_ok; then :
9103 break
9106 done
9107 ac_cv_prog_CXXCPP=$CXXCPP
9110 CXXCPP=$ac_cv_prog_CXXCPP
9111 else
9112 ac_cv_prog_CXXCPP=$CXXCPP
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9115 $as_echo "$CXXCPP" >&6; }
9116 ac_preproc_ok=false
9117 for ac_cxx_preproc_warn_flag in '' yes
9119 # Use a header file that comes with gcc, so configuring glibc
9120 # with a fresh cross-compiler works.
9121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 # <limits.h> exists even on freestanding compilers.
9123 # On the NeXT, cc -E runs the code through the compiler's parser,
9124 # not just through cpp. "Syntax error" is here to catch this case.
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 #ifdef __STDC__
9128 # include <limits.h>
9129 #else
9130 # include <assert.h>
9131 #endif
9132 Syntax error
9133 _ACEOF
9134 if ac_fn_cxx_try_cpp "$LINENO"; then :
9136 else
9137 # Broken: fails on valid input.
9138 continue
9140 rm -f conftest.err conftest.$ac_ext
9142 # OK, works on sane cases. Now check whether nonexistent headers
9143 # can be detected and how.
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <ac_nonexistent.h>
9147 _ACEOF
9148 if ac_fn_cxx_try_cpp "$LINENO"; then :
9149 # Broken: success on invalid input.
9150 continue
9151 else
9152 # Passes both tests.
9153 ac_preproc_ok=:
9154 break
9156 rm -f conftest.err conftest.$ac_ext
9158 done
9159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9160 rm -f conftest.err conftest.$ac_ext
9161 if $ac_preproc_ok; then :
9163 else
9164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9167 See \`config.log' for more details." >&5
9168 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9169 See \`config.log' for more details." >&2;}; }
9172 ac_ext=cpp
9173 ac_cpp='$CXXCPP $CPPFLAGS'
9174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9179 for ac_header in unordered_map
9180 do :
9181 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9182 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9183 cat >>confdefs.h <<_ACEOF
9184 #define HAVE_UNORDERED_MAP 1
9185 _ACEOF
9188 done
9190 for ac_header in tr1/unordered_map
9191 do :
9192 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9193 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9194 cat >>confdefs.h <<_ACEOF
9195 #define HAVE_TR1_UNORDERED_MAP 1
9196 _ACEOF
9199 done
9201 for ac_header in ext/hash_map
9202 do :
9203 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9204 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9205 cat >>confdefs.h <<_ACEOF
9206 #define HAVE_EXT_HASH_MAP 1
9207 _ACEOF
9210 done
9213 # --------
9214 # Dependency checking.
9215 # --------
9217 rm -rf .tst 2>/dev/null
9218 mkdir .tst 2>/dev/null
9219 if test -d .tst; then
9220 am__leading_dot=.
9221 else
9222 am__leading_dot=_
9224 rmdir .tst 2>/dev/null
9226 DEPDIR="${am__leading_dot}deps"
9228 ac_config_commands="$ac_config_commands depdir"
9231 ac_config_commands="$ac_config_commands gccdepdir"
9234 depcc="$CXX" am_compiler_list=
9236 am_depcomp=$ac_aux_dir/depcomp
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9238 $as_echo_n "checking dependency style of $depcc... " >&6; }
9239 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 if test -f "$am_depcomp"; then
9243 # We make a subdir and do the tests there. Otherwise we can end up
9244 # making bogus files that we don't know about and never remove. For
9245 # instance it was reported that on HP-UX the gcc test will end up
9246 # making a dummy file named `D' -- because `-MD' means `put the output
9247 # in D'.
9248 mkdir conftest.dir
9249 # Copy depcomp to subdir because otherwise we won't find it if we're
9250 # using a relative directory.
9251 cp "$am_depcomp" conftest.dir
9252 cd conftest.dir
9253 # We will build objects and dependencies in a subdirectory because
9254 # it helps to detect inapplicable dependency modes. For instance
9255 # both Tru64's cc and ICC support -MD to output dependencies as a
9256 # side effect of compilation, but ICC will put the dependencies in
9257 # the current directory while Tru64 will put them in the object
9258 # directory.
9259 mkdir sub
9261 am_cv_CXX_dependencies_compiler_type=none
9262 if test "$am_compiler_list" = ""; then
9263 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9265 for depmode in $am_compiler_list; do
9266 if test $depmode = none; then break; fi
9268 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9269 # Setup a source with many dependencies, because some compilers
9270 # like to wrap large dependency lists on column 80 (with \), and
9271 # we should not choose a depcomp mode which is confused by this.
9273 # We need to recreate these files for each test, as the compiler may
9274 # overwrite some of them when testing with obscure command lines.
9275 # This happens at least with the AIX C compiler.
9276 : > sub/conftest.c
9277 for i in 1 2 3 4 5 6; do
9278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9279 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9280 # Solaris 8's {/usr,}/bin/sh.
9281 touch sub/conftst$i.h
9282 done
9283 echo "include sub/conftest.Po" > confmf
9285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9286 # mode. It turns out that the SunPro C++ compiler does not properly
9287 # handle `-M -o', and we need to detect this.
9288 depcmd="depmode=$depmode \
9289 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9291 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9292 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9293 if env $depcmd > conftest.err 2>&1 &&
9294 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9295 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9296 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9297 # icc doesn't choke on unknown options, it will just issue warnings
9298 # or remarks (even with -Werror). So we grep stderr for any message
9299 # that says an option was ignored or not supported.
9300 # When given -MP, icc 7.0 and 7.1 complain thusly:
9301 # icc: Command line warning: ignoring option '-M'; no argument required
9302 # The diagnosis changed in icc 8.0:
9303 # icc: Command line remark: option '-MP' not supported
9304 if (grep 'ignoring option' conftest.err ||
9305 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9306 am_cv_CXX_dependencies_compiler_type=$depmode
9307 $as_echo "$as_me:$LINENO: success" >&5
9308 break
9311 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9312 sed -e 's/^/| /' < conftest.err >&5
9313 done
9315 cd ..
9316 rm -rf conftest.dir
9317 else
9318 am_cv_CXX_dependencies_compiler_type=none
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9323 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9324 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9325 then as_fn_error "no usable dependency style found" "$LINENO" 5
9326 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9331 # --------
9332 # UNSORTED
9333 # --------
9336 # These libraries may be used by collect2.
9337 # We may need a special search path to get them linked.
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9339 $as_echo_n "checking for collect2 libraries... " >&6; }
9340 if test "${gcc_cv_collect2_libs+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 save_LIBS="$LIBS"
9344 for libs in '' -lld -lmld \
9345 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9346 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9348 LIBS="$libs"
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 char ldopen ();
9360 main ()
9362 return ldopen ();
9364 return 0;
9366 _ACEOF
9367 if ac_fn_cxx_try_link "$LINENO"; then :
9368 gcc_cv_collect2_libs="$libs"; break
9370 rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 done
9373 LIBS="$save_LIBS"
9374 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9377 $as_echo "$gcc_cv_collect2_libs" >&6; }
9378 case $gcc_cv_collect2_libs in
9379 "none required") ;;
9380 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9381 esac
9384 # When building Ada code on Alpha, we need exc_resume which is usually in
9385 # -lexc. So test for it.
9386 save_LIBS="$LIBS"
9387 LIBS=
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9389 $as_echo_n "checking for library containing exc_resume... " >&6; }
9390 if test "${ac_cv_search_exc_resume+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 ac_func_search_save_LIBS=$LIBS
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char exc_resume ();
9405 main ()
9407 return exc_resume ();
9409 return 0;
9411 _ACEOF
9412 for ac_lib in '' exc; do
9413 if test -z "$ac_lib"; then
9414 ac_res="none required"
9415 else
9416 ac_res=-l$ac_lib
9417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 if ac_fn_cxx_try_link "$LINENO"; then :
9420 ac_cv_search_exc_resume=$ac_res
9422 rm -f core conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext
9424 if test "${ac_cv_search_exc_resume+set}" = set; then :
9425 break
9427 done
9428 if test "${ac_cv_search_exc_resume+set}" = set; then :
9430 else
9431 ac_cv_search_exc_resume=no
9433 rm conftest.$ac_ext
9434 LIBS=$ac_func_search_save_LIBS
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9437 $as_echo "$ac_cv_search_exc_resume" >&6; }
9438 ac_res=$ac_cv_search_exc_resume
9439 if test "$ac_res" != no; then :
9440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9444 GNAT_LIBEXC="$LIBS"
9445 LIBS="$save_LIBS"
9448 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9449 save_LIBS="$LIBS"
9450 LIBS=
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9452 $as_echo_n "checking for library containing kstat_open... " >&6; }
9453 if test "${ac_cv_search_kstat_open+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 ac_func_search_save_LIBS=$LIBS
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9460 /* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 char kstat_open ();
9468 main ()
9470 return kstat_open ();
9472 return 0;
9474 _ACEOF
9475 for ac_lib in '' kstat; do
9476 if test -z "$ac_lib"; then
9477 ac_res="none required"
9478 else
9479 ac_res=-l$ac_lib
9480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9482 if ac_fn_cxx_try_link "$LINENO"; then :
9483 ac_cv_search_kstat_open=$ac_res
9485 rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext
9487 if test "${ac_cv_search_kstat_open+set}" = set; then :
9488 break
9490 done
9491 if test "${ac_cv_search_kstat_open+set}" = set; then :
9493 else
9494 ac_cv_search_kstat_open=no
9496 rm conftest.$ac_ext
9497 LIBS=$ac_func_search_save_LIBS
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9500 $as_echo "$ac_cv_search_kstat_open" >&6; }
9501 ac_res=$ac_cv_search_kstat_open
9502 if test "$ac_res" != no; then :
9503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9507 EXTRA_GCC_LIBS="$LIBS"
9508 LIBS="$save_LIBS"
9511 # Some systems put ldexp and frexp in libm instead of libc; assume
9512 # they're both in the same place. jcf-dump needs them.
9513 save_LIBS="$LIBS"
9514 LIBS=
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9516 $as_echo_n "checking for library containing ldexp... " >&6; }
9517 if test "${ac_cv_search_ldexp+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 ac_func_search_save_LIBS=$LIBS
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char ldexp ();
9532 main ()
9534 return ldexp ();
9536 return 0;
9538 _ACEOF
9539 for ac_lib in '' m; do
9540 if test -z "$ac_lib"; then
9541 ac_res="none required"
9542 else
9543 ac_res=-l$ac_lib
9544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9546 if ac_fn_cxx_try_link "$LINENO"; then :
9547 ac_cv_search_ldexp=$ac_res
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext
9551 if test "${ac_cv_search_ldexp+set}" = set; then :
9552 break
9554 done
9555 if test "${ac_cv_search_ldexp+set}" = set; then :
9557 else
9558 ac_cv_search_ldexp=no
9560 rm conftest.$ac_ext
9561 LIBS=$ac_func_search_save_LIBS
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9564 $as_echo "$ac_cv_search_ldexp" >&6; }
9565 ac_res=$ac_cv_search_ldexp
9566 if test "$ac_res" != no; then :
9567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9571 LDEXP_LIB="$LIBS"
9572 LIBS="$save_LIBS"
9575 # Use <inttypes.h> only if it exists,
9576 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9577 # PRId64
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9579 $as_echo_n "checking for inttypes.h... " >&6; }
9580 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 #define __STDC_FORMAT_MACROS
9586 #include <sys/types.h>
9587 #include <inttypes.h>
9589 main ()
9591 intmax_t i = -1;
9592 #ifndef PRId64
9593 choke me
9594 #endif
9596 return 0;
9598 _ACEOF
9599 if ac_fn_cxx_try_compile "$LINENO"; then :
9600 gcc_cv_header_inttypes_h=yes
9601 else
9602 gcc_cv_header_inttypes_h=no
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9608 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9609 if test $gcc_cv_header_inttypes_h = yes; then
9611 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9617 for ac_func in times clock kill getrlimit setrlimit atoq \
9618 popen sysconf strsignal getrusage nl_langinfo \
9619 gettimeofday mbstowcs wcswidth mmap setlocale \
9620 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
9621 do :
9622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9623 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9624 eval as_val=\$$as_ac_var
9625 if test "x$as_val" = x""yes; then :
9626 cat >>confdefs.h <<_ACEOF
9627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9628 _ACEOF
9631 done
9634 if test x$ac_cv_func_mbstowcs = xyes; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9636 $as_echo_n "checking whether mbstowcs works... " >&6; }
9637 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 if test "$cross_compiling" = yes; then :
9641 gcc_cv_func_mbstowcs_works=yes
9642 else
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 #include <stdlib.h>
9646 int main()
9648 mbstowcs(0, "", 0);
9649 return 0;
9651 _ACEOF
9652 if ac_fn_cxx_try_run "$LINENO"; then :
9653 gcc_cv_func_mbstowcs_works=yes
9654 else
9655 gcc_cv_func_mbstowcs_works=no
9657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9658 conftest.$ac_objext conftest.beam conftest.$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9663 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9664 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9666 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9671 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9672 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9674 else
9676 cat >>confdefs.h <<_ACEOF
9677 #define ssize_t int
9678 _ACEOF
9682 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9683 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9685 else
9687 cat >>confdefs.h <<_ACEOF
9688 #define caddr_t char *
9689 _ACEOF
9695 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9696 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9697 gcc_header_sys_mman_h=yes
9698 else
9699 gcc_header_sys_mman_h=no
9702 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9703 if test "x$ac_cv_func_mmap" = x""yes; then :
9704 gcc_func_mmap=yes
9705 else
9706 gcc_func_mmap=no
9709 if test "$gcc_header_sys_mman_h" != yes \
9710 || test "$gcc_func_mmap" != yes; then
9711 gcc_cv_func_mmap_file=no
9712 gcc_cv_func_mmap_dev_zero=no
9713 gcc_cv_func_mmap_anon=no
9714 else
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9716 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9717 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 # Add a system to this blacklist if
9721 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9722 # memory area containing the same data that you'd get if you applied
9723 # read() to the same fd. The only system known to have a problem here
9724 # is VMS, where text files have record structure.
9725 case "$host_os" in
9726 *vms* | ultrix*)
9727 gcc_cv_func_mmap_file=no ;;
9729 gcc_cv_func_mmap_file=yes;;
9730 esac
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9733 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9735 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9736 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 # Add a system to this blacklist if it has mmap() but /dev/zero
9740 # does not exist, or if mmapping /dev/zero does not give anonymous
9741 # zeroed pages with both the following properties:
9742 # 1. If you map N consecutive pages in with one call, and then
9743 # unmap any subset of those pages, the pages that were not
9744 # explicitly unmapped remain accessible.
9745 # 2. If you map two adjacent blocks of memory and then unmap them
9746 # both at once, they must both go away.
9747 # Systems known to be in this category are Windows (all variants),
9748 # VMS, and Darwin.
9749 case "$host_os" in
9750 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9751 gcc_cv_func_mmap_dev_zero=no ;;
9753 gcc_cv_func_mmap_dev_zero=yes;;
9754 esac
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9757 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9759 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9761 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9762 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 #include <sys/types.h>
9768 #include <sys/mman.h>
9769 #include <unistd.h>
9771 #ifndef MAP_ANONYMOUS
9772 #define MAP_ANONYMOUS MAP_ANON
9773 #endif
9776 main ()
9778 int n = MAP_ANONYMOUS;
9780 return 0;
9782 _ACEOF
9783 if ac_fn_cxx_try_compile "$LINENO"; then :
9784 gcc_cv_decl_map_anon=yes
9785 else
9786 gcc_cv_decl_map_anon=no
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9791 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9793 if test $gcc_cv_decl_map_anon = no; then
9794 gcc_cv_func_mmap_anon=no
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9797 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9798 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9802 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9803 # doesn't give anonymous zeroed pages with the same properties listed
9804 # above for use of /dev/zero.
9805 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9806 case "$host_os" in
9807 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9808 gcc_cv_func_mmap_anon=no ;;
9810 gcc_cv_func_mmap_anon=yes;;
9811 esac
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9814 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9818 if test $gcc_cv_func_mmap_file = yes; then
9820 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9823 if test $gcc_cv_func_mmap_dev_zero = yes; then
9825 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9828 if test $gcc_cv_func_mmap_anon = yes; then
9830 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9835 case "${host}" in
9836 *-*-*vms*)
9837 # Under VMS, vfork works very differently than on Unix. The standard test
9838 # won't work, and it isn't easily adaptable. It makes more sense to
9839 # just force it.
9840 ac_cv_func_vfork_works=yes
9842 esac
9843 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9844 if test "x$ac_cv_type_pid_t" = x""yes; then :
9846 else
9848 cat >>confdefs.h <<_ACEOF
9849 #define pid_t int
9850 _ACEOF
9854 for ac_header in vfork.h
9855 do :
9856 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9857 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9858 cat >>confdefs.h <<_ACEOF
9859 #define HAVE_VFORK_H 1
9860 _ACEOF
9863 done
9865 for ac_func in fork vfork
9866 do :
9867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9869 eval as_val=\$$as_ac_var
9870 if test "x$as_val" = x""yes; then :
9871 cat >>confdefs.h <<_ACEOF
9872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9873 _ACEOF
9876 done
9878 if test "x$ac_cv_func_fork" = xyes; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9880 $as_echo_n "checking for working fork... " >&6; }
9881 if test "${ac_cv_func_fork_works+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 if test "$cross_compiling" = yes; then :
9885 ac_cv_func_fork_works=cross
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 $ac_includes_default
9891 main ()
9894 /* By Ruediger Kuhlmann. */
9895 return fork () < 0;
9898 return 0;
9900 _ACEOF
9901 if ac_fn_cxx_try_run "$LINENO"; then :
9902 ac_cv_func_fork_works=yes
9903 else
9904 ac_cv_func_fork_works=no
9906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9907 conftest.$ac_objext conftest.beam conftest.$ac_ext
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9912 $as_echo "$ac_cv_func_fork_works" >&6; }
9914 else
9915 ac_cv_func_fork_works=$ac_cv_func_fork
9917 if test "x$ac_cv_func_fork_works" = xcross; then
9918 case $host in
9919 *-*-amigaos* | *-*-msdosdjgpp*)
9920 # Override, as these systems have only a dummy fork() stub
9921 ac_cv_func_fork_works=no
9924 ac_cv_func_fork_works=yes
9926 esac
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9928 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9930 ac_cv_func_vfork_works=$ac_cv_func_vfork
9931 if test "x$ac_cv_func_vfork" = xyes; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9933 $as_echo_n "checking for working vfork... " >&6; }
9934 if test "${ac_cv_func_vfork_works+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test "$cross_compiling" = yes; then :
9938 ac_cv_func_vfork_works=cross
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 /* Thanks to Paul Eggert for this test. */
9943 $ac_includes_default
9944 #include <sys/wait.h>
9945 #ifdef HAVE_VFORK_H
9946 # include <vfork.h>
9947 #endif
9948 /* On some sparc systems, changes by the child to local and incoming
9949 argument registers are propagated back to the parent. The compiler
9950 is told about this with #include <vfork.h>, but some compilers
9951 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9952 static variable whose address is put into a register that is
9953 clobbered by the vfork. */
9954 static void
9955 #ifdef __cplusplus
9956 sparc_address_test (int arg)
9957 # else
9958 sparc_address_test (arg) int arg;
9959 #endif
9961 static pid_t child;
9962 if (!child) {
9963 child = vfork ();
9964 if (child < 0) {
9965 perror ("vfork");
9966 _exit(2);
9968 if (!child) {
9969 arg = getpid();
9970 write(-1, "", 0);
9971 _exit (arg);
9977 main ()
9979 pid_t parent = getpid ();
9980 pid_t child;
9982 sparc_address_test (0);
9984 child = vfork ();
9986 if (child == 0) {
9987 /* Here is another test for sparc vfork register problems. This
9988 test uses lots of local variables, at least as many local
9989 variables as main has allocated so far including compiler
9990 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9991 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9992 reuse the register of parent for one of the local variables,
9993 since it will think that parent can't possibly be used any more
9994 in this routine. Assigning to the local variable will thus
9995 munge parent in the parent process. */
9996 pid_t
9997 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9998 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9999 /* Convince the compiler that p..p7 are live; otherwise, it might
10000 use the same hardware register for all 8 local variables. */
10001 if (p != p1 || p != p2 || p != p3 || p != p4
10002 || p != p5 || p != p6 || p != p7)
10003 _exit(1);
10005 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10006 from child file descriptors. If the child closes a descriptor
10007 before it execs or exits, this munges the parent's descriptor
10008 as well. Test for this by closing stdout in the child. */
10009 _exit(close(fileno(stdout)) != 0);
10010 } else {
10011 int status;
10012 struct stat st;
10014 while (wait(&status) != child)
10016 return (
10017 /* Was there some problem with vforking? */
10018 child < 0
10020 /* Did the child fail? (This shouldn't happen.) */
10021 || status
10023 /* Did the vfork/compiler bug occur? */
10024 || parent != getpid()
10026 /* Did the file descriptor bug occur? */
10027 || fstat(fileno(stdout), &st) != 0
10031 _ACEOF
10032 if ac_fn_cxx_try_run "$LINENO"; then :
10033 ac_cv_func_vfork_works=yes
10034 else
10035 ac_cv_func_vfork_works=no
10037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10038 conftest.$ac_objext conftest.beam conftest.$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10043 $as_echo "$ac_cv_func_vfork_works" >&6; }
10046 if test "x$ac_cv_func_fork_works" = xcross; then
10047 ac_cv_func_vfork_works=$ac_cv_func_vfork
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10049 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10052 if test "x$ac_cv_func_vfork_works" = xyes; then
10054 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10056 else
10058 $as_echo "#define vfork fork" >>confdefs.h
10061 if test "x$ac_cv_func_fork_works" = xyes; then
10063 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10069 if test "X$prefix" = "XNONE"; then
10070 acl_final_prefix="$ac_default_prefix"
10071 else
10072 acl_final_prefix="$prefix"
10074 if test "X$exec_prefix" = "XNONE"; then
10075 acl_final_exec_prefix='${prefix}'
10076 else
10077 acl_final_exec_prefix="$exec_prefix"
10079 acl_save_prefix="$prefix"
10080 prefix="$acl_final_prefix"
10081 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10082 prefix="$acl_save_prefix"
10085 # Check whether --with-gnu-ld was given.
10086 if test "${with_gnu_ld+set}" = set; then :
10087 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10088 else
10089 with_gnu_ld=no
10092 # Prepare PATH_SEPARATOR.
10093 # The user is always right.
10094 if test "${PATH_SEPARATOR+set}" != set; then
10095 echo "#! /bin/sh" >conf$$.sh
10096 echo "exit 0" >>conf$$.sh
10097 chmod +x conf$$.sh
10098 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10099 PATH_SEPARATOR=';'
10100 else
10101 PATH_SEPARATOR=:
10103 rm -f conf$$.sh
10105 ac_prog=ld
10106 if test "$GCC" = yes; then
10107 # Check if gcc -print-prog-name=ld gives a path.
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10109 $as_echo_n "checking for ld used by GCC... " >&6; }
10110 case $host in
10111 *-*-mingw*)
10112 # gcc leaves a trailing carriage return which upsets mingw
10113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10116 esac
10117 case $ac_prog in
10118 # Accept absolute paths.
10119 [\\/]* | [A-Za-z]:[\\/]*)
10120 re_direlt='/[^/][^/]*/\.\./'
10121 # Canonicalize the path of ld
10122 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10123 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10124 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10125 done
10126 test -z "$LD" && LD="$ac_prog"
10129 # If it fails, then pretend we aren't using GCC.
10130 ac_prog=ld
10133 # If it is relative, then search for the first ld in PATH.
10134 with_gnu_ld=unknown
10136 esac
10137 elif test "$with_gnu_ld" = yes; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10139 $as_echo_n "checking for GNU ld... " >&6; }
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10142 $as_echo_n "checking for non-GNU ld... " >&6; }
10144 if test "${acl_cv_path_LD+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 if test -z "$LD"; then
10148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10149 for ac_dir in $PATH; do
10150 test -z "$ac_dir" && ac_dir=.
10151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10152 acl_cv_path_LD="$ac_dir/$ac_prog"
10153 # Check to see if the program is GNU ld. I'd rather use --version,
10154 # but apparently some GNU ld's only accept -v.
10155 # Break only if it was the GNU/non-GNU ld that we prefer.
10156 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10157 test "$with_gnu_ld" != no && break
10158 else
10159 test "$with_gnu_ld" != yes && break
10162 done
10163 IFS="$ac_save_ifs"
10164 else
10165 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10169 LD="$acl_cv_path_LD"
10170 if test -n "$LD"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10172 $as_echo "$LD" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10177 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10179 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10180 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10184 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10185 acl_cv_prog_gnu_ld=yes
10186 else
10187 acl_cv_prog_gnu_ld=no
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10191 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10192 with_gnu_ld=$acl_cv_prog_gnu_ld
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10197 $as_echo_n "checking for shared library run path origin... " >&6; }
10198 if test "${acl_cv_rpath+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10202 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10203 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10204 . ./conftest.sh
10205 rm -f ./conftest.sh
10206 acl_cv_rpath=done
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10210 $as_echo "$acl_cv_rpath" >&6; }
10211 wl="$acl_cv_wl"
10212 libext="$acl_cv_libext"
10213 shlibext="$acl_cv_shlibext"
10214 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10215 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10216 hardcode_direct="$acl_cv_hardcode_direct"
10217 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10218 # Check whether --enable-rpath was given.
10219 if test "${enable_rpath+set}" = set; then :
10220 enableval=$enable_rpath; :
10221 else
10222 enable_rpath=yes
10232 use_additional=yes
10234 acl_save_prefix="$prefix"
10235 prefix="$acl_final_prefix"
10236 acl_save_exec_prefix="$exec_prefix"
10237 exec_prefix="$acl_final_exec_prefix"
10239 eval additional_includedir=\"$includedir\"
10240 eval additional_libdir=\"$libdir\"
10242 exec_prefix="$acl_save_exec_prefix"
10243 prefix="$acl_save_prefix"
10246 # Check whether --with-libiconv-prefix was given.
10247 if test "${with_libiconv_prefix+set}" = set; then :
10248 withval=$with_libiconv_prefix;
10249 if test "X$withval" = "Xno"; then
10250 use_additional=no
10251 else
10252 if test "X$withval" = "X"; then
10254 acl_save_prefix="$prefix"
10255 prefix="$acl_final_prefix"
10256 acl_save_exec_prefix="$exec_prefix"
10257 exec_prefix="$acl_final_exec_prefix"
10259 eval additional_includedir=\"$includedir\"
10260 eval additional_libdir=\"$libdir\"
10262 exec_prefix="$acl_save_exec_prefix"
10263 prefix="$acl_save_prefix"
10265 else
10266 additional_includedir="$withval/include"
10267 additional_libdir="$withval/lib"
10273 LIBICONV=
10274 LTLIBICONV=
10275 INCICONV=
10276 rpathdirs=
10277 ltrpathdirs=
10278 names_already_handled=
10279 names_next_round='iconv '
10280 while test -n "$names_next_round"; do
10281 names_this_round="$names_next_round"
10282 names_next_round=
10283 for name in $names_this_round; do
10284 already_handled=
10285 for n in $names_already_handled; do
10286 if test "$n" = "$name"; then
10287 already_handled=yes
10288 break
10290 done
10291 if test -z "$already_handled"; then
10292 names_already_handled="$names_already_handled $name"
10293 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10294 eval value=\"\$HAVE_LIB$uppername\"
10295 if test -n "$value"; then
10296 if test "$value" = yes; then
10297 eval value=\"\$LIB$uppername\"
10298 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10299 eval value=\"\$LTLIB$uppername\"
10300 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10301 else
10304 else
10305 found_dir=
10306 found_la=
10307 found_so=
10308 found_a=
10309 if test $use_additional = yes; then
10310 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10311 found_dir="$additional_libdir"
10312 found_so="$additional_libdir/lib$name.$shlibext"
10313 if test -f "$additional_libdir/lib$name.la"; then
10314 found_la="$additional_libdir/lib$name.la"
10316 else
10317 if test -f "$additional_libdir/lib$name.$libext"; then
10318 found_dir="$additional_libdir"
10319 found_a="$additional_libdir/lib$name.$libext"
10320 if test -f "$additional_libdir/lib$name.la"; then
10321 found_la="$additional_libdir/lib$name.la"
10326 if test "X$found_dir" = "X"; then
10327 for x in $LDFLAGS $LTLIBICONV; do
10329 acl_save_prefix="$prefix"
10330 prefix="$acl_final_prefix"
10331 acl_save_exec_prefix="$exec_prefix"
10332 exec_prefix="$acl_final_exec_prefix"
10333 eval x=\"$x\"
10334 exec_prefix="$acl_save_exec_prefix"
10335 prefix="$acl_save_prefix"
10337 case "$x" in
10338 -L*)
10339 dir=`echo "X$x" | sed -e 's/^X-L//'`
10340 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10341 found_dir="$dir"
10342 found_so="$dir/lib$name.$shlibext"
10343 if test -f "$dir/lib$name.la"; then
10344 found_la="$dir/lib$name.la"
10346 else
10347 if test -f "$dir/lib$name.$libext"; then
10348 found_dir="$dir"
10349 found_a="$dir/lib$name.$libext"
10350 if test -f "$dir/lib$name.la"; then
10351 found_la="$dir/lib$name.la"
10356 esac
10357 if test "X$found_dir" != "X"; then
10358 break
10360 done
10362 if test "X$found_dir" != "X"; then
10363 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10364 if test "X$found_so" != "X"; then
10365 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10367 else
10368 haveit=
10369 for x in $ltrpathdirs; do
10370 if test "X$x" = "X$found_dir"; then
10371 haveit=yes
10372 break
10374 done
10375 if test -z "$haveit"; then
10376 ltrpathdirs="$ltrpathdirs $found_dir"
10378 if test "$hardcode_direct" = yes; then
10379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10380 else
10381 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10383 haveit=
10384 for x in $rpathdirs; do
10385 if test "X$x" = "X$found_dir"; then
10386 haveit=yes
10387 break
10389 done
10390 if test -z "$haveit"; then
10391 rpathdirs="$rpathdirs $found_dir"
10393 else
10394 haveit=
10395 for x in $LDFLAGS $LIBICONV; do
10397 acl_save_prefix="$prefix"
10398 prefix="$acl_final_prefix"
10399 acl_save_exec_prefix="$exec_prefix"
10400 exec_prefix="$acl_final_exec_prefix"
10401 eval x=\"$x\"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10405 if test "X$x" = "X-L$found_dir"; then
10406 haveit=yes
10407 break
10409 done
10410 if test -z "$haveit"; then
10411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10413 if test "$hardcode_minus_L" != no; then
10414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10415 else
10416 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10421 else
10422 if test "X$found_a" != "X"; then
10423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10424 else
10425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10428 additional_includedir=
10429 case "$found_dir" in
10430 */lib | */lib/)
10431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10432 additional_includedir="$basedir/include"
10434 esac
10435 if test "X$additional_includedir" != "X"; then
10436 if test "X$additional_includedir" != "X/usr/include"; then
10437 haveit=
10438 if test "X$additional_includedir" = "X/usr/local/include"; then
10439 if test -n "$GCC"; then
10440 case $host_os in
10441 linux*) haveit=yes;;
10442 esac
10445 if test -z "$haveit"; then
10446 for x in $CPPFLAGS $INCICONV; do
10448 acl_save_prefix="$prefix"
10449 prefix="$acl_final_prefix"
10450 acl_save_exec_prefix="$exec_prefix"
10451 exec_prefix="$acl_final_exec_prefix"
10452 eval x=\"$x\"
10453 exec_prefix="$acl_save_exec_prefix"
10454 prefix="$acl_save_prefix"
10456 if test "X$x" = "X-I$additional_includedir"; then
10457 haveit=yes
10458 break
10460 done
10461 if test -z "$haveit"; then
10462 if test -d "$additional_includedir"; then
10463 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10469 if test -n "$found_la"; then
10470 save_libdir="$libdir"
10471 case "$found_la" in
10472 */* | *\\*) . "$found_la" ;;
10473 *) . "./$found_la" ;;
10474 esac
10475 libdir="$save_libdir"
10476 for dep in $dependency_libs; do
10477 case "$dep" in
10478 -L*)
10479 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10480 if test "X$additional_libdir" != "X/usr/lib"; then
10481 haveit=
10482 if test "X$additional_libdir" = "X/usr/local/lib"; then
10483 if test -n "$GCC"; then
10484 case $host_os in
10485 linux*) haveit=yes;;
10486 esac
10489 if test -z "$haveit"; then
10490 haveit=
10491 for x in $LDFLAGS $LIBICONV; do
10493 acl_save_prefix="$prefix"
10494 prefix="$acl_final_prefix"
10495 acl_save_exec_prefix="$exec_prefix"
10496 exec_prefix="$acl_final_exec_prefix"
10497 eval x=\"$x\"
10498 exec_prefix="$acl_save_exec_prefix"
10499 prefix="$acl_save_prefix"
10501 if test "X$x" = "X-L$additional_libdir"; then
10502 haveit=yes
10503 break
10505 done
10506 if test -z "$haveit"; then
10507 if test -d "$additional_libdir"; then
10508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10511 haveit=
10512 for x in $LDFLAGS $LTLIBICONV; do
10514 acl_save_prefix="$prefix"
10515 prefix="$acl_final_prefix"
10516 acl_save_exec_prefix="$exec_prefix"
10517 exec_prefix="$acl_final_exec_prefix"
10518 eval x=\"$x\"
10519 exec_prefix="$acl_save_exec_prefix"
10520 prefix="$acl_save_prefix"
10522 if test "X$x" = "X-L$additional_libdir"; then
10523 haveit=yes
10524 break
10526 done
10527 if test -z "$haveit"; then
10528 if test -d "$additional_libdir"; then
10529 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10535 -R*)
10536 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10537 if test "$enable_rpath" != no; then
10538 haveit=
10539 for x in $rpathdirs; do
10540 if test "X$x" = "X$dir"; then
10541 haveit=yes
10542 break
10544 done
10545 if test -z "$haveit"; then
10546 rpathdirs="$rpathdirs $dir"
10548 haveit=
10549 for x in $ltrpathdirs; do
10550 if test "X$x" = "X$dir"; then
10551 haveit=yes
10552 break
10554 done
10555 if test -z "$haveit"; then
10556 ltrpathdirs="$ltrpathdirs $dir"
10560 -l*)
10561 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10563 *.la)
10564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10567 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10570 esac
10571 done
10573 else
10574 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10579 done
10580 done
10581 if test "X$rpathdirs" != "X"; then
10582 if test -n "$hardcode_libdir_separator"; then
10583 alldirs=
10584 for found_dir in $rpathdirs; do
10585 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10586 done
10587 acl_save_libdir="$libdir"
10588 libdir="$alldirs"
10589 eval flag=\"$hardcode_libdir_flag_spec\"
10590 libdir="$acl_save_libdir"
10591 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10592 else
10593 for found_dir in $rpathdirs; do
10594 acl_save_libdir="$libdir"
10595 libdir="$found_dir"
10596 eval flag=\"$hardcode_libdir_flag_spec\"
10597 libdir="$acl_save_libdir"
10598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10599 done
10602 if test "X$ltrpathdirs" != "X"; then
10603 for found_dir in $ltrpathdirs; do
10604 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10605 done
10614 am_save_CPPFLAGS="$CPPFLAGS"
10616 for element in $INCICONV; do
10617 haveit=
10618 for x in $CPPFLAGS; do
10620 acl_save_prefix="$prefix"
10621 prefix="$acl_final_prefix"
10622 acl_save_exec_prefix="$exec_prefix"
10623 exec_prefix="$acl_final_exec_prefix"
10624 eval x=\"$x\"
10625 exec_prefix="$acl_save_exec_prefix"
10626 prefix="$acl_save_prefix"
10628 if test "X$x" = "X$element"; then
10629 haveit=yes
10630 break
10632 done
10633 if test -z "$haveit"; then
10634 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10636 done
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10640 $as_echo_n "checking for iconv... " >&6; }
10641 if test "${am_cv_func_iconv+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10645 am_cv_func_iconv="no, consider installing GNU libiconv"
10646 am_cv_lib_iconv=no
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <stdlib.h>
10650 #include <iconv.h>
10652 main ()
10654 iconv_t cd = iconv_open("","");
10655 iconv(cd,NULL,NULL,NULL,NULL);
10656 iconv_close(cd);
10658 return 0;
10660 _ACEOF
10661 if ac_fn_cxx_try_link "$LINENO"; then :
10662 am_cv_func_iconv=yes
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 if test "$am_cv_func_iconv" != yes; then
10667 am_save_LIBS="$LIBS"
10668 LIBS="$LIBS $LIBICONV"
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <stdlib.h>
10672 #include <iconv.h>
10674 main ()
10676 iconv_t cd = iconv_open("","");
10677 iconv(cd,NULL,NULL,NULL,NULL);
10678 iconv_close(cd);
10680 return 0;
10682 _ACEOF
10683 if ac_fn_cxx_try_link "$LINENO"; then :
10684 am_cv_lib_iconv=yes
10685 am_cv_func_iconv=yes
10687 rm -f core conftest.err conftest.$ac_objext \
10688 conftest$ac_exeext conftest.$ac_ext
10689 LIBS="$am_save_LIBS"
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10694 $as_echo "$am_cv_func_iconv" >&6; }
10695 if test "$am_cv_func_iconv" = yes; then
10697 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10700 if test "$am_cv_lib_iconv" = yes; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10702 $as_echo_n "checking how to link with libiconv... " >&6; }
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10704 $as_echo "$LIBICONV" >&6; }
10705 else
10706 CPPFLAGS="$am_save_CPPFLAGS"
10707 LIBICONV=
10708 LTLIBICONV=
10713 if test "$am_cv_func_iconv" = yes; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10715 $as_echo_n "checking for iconv declaration... " >&6; }
10716 if test "${am_cv_proto_iconv+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10723 #include <stdlib.h>
10724 #include <iconv.h>
10725 extern
10726 #ifdef __cplusplus
10728 #endif
10729 #if defined(__STDC__) || defined(__cplusplus)
10730 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10731 #else
10732 size_t iconv();
10733 #endif
10736 main ()
10740 return 0;
10742 _ACEOF
10743 if ac_fn_cxx_try_compile "$LINENO"; then :
10744 am_cv_proto_iconv_arg1=""
10745 else
10746 am_cv_proto_iconv_arg1="const"
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 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);"
10752 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10754 }$am_cv_proto_iconv" >&5
10755 $as_echo "${ac_t:-
10756 }$am_cv_proto_iconv" >&6; }
10758 cat >>confdefs.h <<_ACEOF
10759 #define ICONV_CONST $am_cv_proto_iconv_arg1
10760 _ACEOF
10765 # Until we have in-tree GNU iconv:
10766 LIBICONV_DEP=
10767 if test -f "$LTLIBICONV"; then
10768 LIBICONV_DEP=$LTLIBICONV
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10774 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10775 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780 #include <locale.h>
10782 main ()
10784 return LC_MESSAGES
10786 return 0;
10788 _ACEOF
10789 if ac_fn_cxx_try_link "$LINENO"; then :
10790 am_cv_val_LC_MESSAGES=yes
10791 else
10792 am_cv_val_LC_MESSAGES=no
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10798 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10799 if test $am_cv_val_LC_MESSAGES = yes; then
10801 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10808 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10809 if test "${am_cv_langinfo_codeset+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10814 #include <langinfo.h>
10816 main ()
10818 char* cs = nl_langinfo(CODESET);
10820 return 0;
10822 _ACEOF
10823 if ac_fn_cxx_try_link "$LINENO"; then :
10824 am_cv_langinfo_codeset=yes
10825 else
10826 am_cv_langinfo_codeset=no
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10833 $as_echo "$am_cv_langinfo_codeset" >&6; }
10834 if test $am_cv_langinfo_codeset = yes; then
10836 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10841 # We will need to find libiberty.h and ansidecl.h
10842 saved_CFLAGS="$CFLAGS"
10843 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10844 saved_CXXFLAGS="$CXXFLAGS"
10845 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10847 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10848 # normal autoconf function for these. But force definition of
10849 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10850 # basename handling in libiberty.h.
10851 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10852 #undef HAVE_DECL_BASENAME
10853 #define HAVE_DECL_BASENAME 1
10854 #include \"ansidecl.h\"
10855 #include \"system.h\"
10857 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10858 ac_have_decl=1
10859 else
10860 ac_have_decl=0
10863 cat >>confdefs.h <<_ACEOF
10864 #define HAVE_DECL_BASENAME $ac_have_decl
10865 _ACEOF
10866 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10867 #undef HAVE_DECL_BASENAME
10868 #define HAVE_DECL_BASENAME 1
10869 #include \"ansidecl.h\"
10870 #include \"system.h\"
10872 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10873 ac_have_decl=1
10874 else
10875 ac_have_decl=0
10878 cat >>confdefs.h <<_ACEOF
10879 #define HAVE_DECL_STRSTR $ac_have_decl
10880 _ACEOF
10883 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10884 madvise stpcpy strnlen strsignal strverscmp \
10885 strtol strtoul strtoll strtoull \
10886 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10887 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
10889 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10891 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10892 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 #undef $ac_tr_decl
10898 #define $ac_tr_decl 1
10900 #include "ansidecl.h"
10901 #include "system.h"
10904 main ()
10906 #ifndef $ac_func
10907 char *(*pfn) = (char *(*)) $ac_func ;
10908 #endif
10910 return 0;
10912 _ACEOF
10913 if ac_fn_cxx_try_compile "$LINENO"; then :
10914 eval "gcc_cv_have_decl_$ac_func=yes"
10915 else
10916 eval "gcc_cv_have_decl_$ac_func=no"
10918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10921 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10923 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10924 #define $ac_tr_decl 1
10925 _ACEOF
10927 else
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10930 #define $ac_tr_decl 0
10931 _ACEOF
10935 done
10938 for ac_func in getrlimit setrlimit getrusage
10940 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10942 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10943 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #undef $ac_tr_decl
10949 #define $ac_tr_decl 1
10951 #include "ansidecl.h"
10952 #include "system.h"
10953 #ifdef HAVE_SYS_RESOURCE_H
10954 #include <sys/resource.h>
10955 #endif
10959 main ()
10961 #ifndef $ac_func
10962 char *(*pfn) = (char *(*)) $ac_func ;
10963 #endif
10965 return 0;
10967 _ACEOF
10968 if ac_fn_cxx_try_compile "$LINENO"; then :
10969 eval "gcc_cv_have_decl_$ac_func=yes"
10970 else
10971 eval "gcc_cv_have_decl_$ac_func=no"
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10978 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10979 #define $ac_tr_decl 1
10980 _ACEOF
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10985 #define $ac_tr_decl 0
10986 _ACEOF
10990 done
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10996 #include "ansidecl.h"
10997 #include "system.h"
10998 #ifdef HAVE_SYS_RESOURCE_H
10999 #include <sys/resource.h>
11000 #endif
11003 main ()
11005 rlim_t l = 0;
11007 return 0;
11009 _ACEOF
11010 if ac_fn_cxx_try_compile "$LINENO"; then :
11012 else
11014 $as_echo "#define rlim_t long" >>confdefs.h
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11020 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11021 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11022 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11023 for ac_func in ldgetname
11025 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11027 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11028 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11029 $as_echo_n "(cached) " >&6
11030 else
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 #undef $ac_tr_decl
11034 #define $ac_tr_decl 1
11036 #include "ansidecl.h"
11037 #include "system.h"
11038 #ifdef HAVE_LDFCN_H
11039 #undef FREAD
11040 #undef FWRITE
11041 #include <ldfcn.h>
11042 #endif
11046 main ()
11048 #ifndef $ac_func
11049 char *(*pfn) = (char *(*)) $ac_func ;
11050 #endif
11052 return 0;
11054 _ACEOF
11055 if ac_fn_cxx_try_compile "$LINENO"; then :
11056 eval "gcc_cv_have_decl_$ac_func=yes"
11057 else
11058 eval "gcc_cv_have_decl_$ac_func=no"
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11065 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11066 #define $ac_tr_decl 1
11067 _ACEOF
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11072 #define $ac_tr_decl 0
11073 _ACEOF
11077 done
11080 for ac_func in times
11082 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11084 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11085 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11090 #undef $ac_tr_decl
11091 #define $ac_tr_decl 1
11093 #include "ansidecl.h"
11094 #include "system.h"
11095 #ifdef HAVE_SYS_TIMES_H
11096 #include <sys/times.h>
11097 #endif
11101 main ()
11103 #ifndef $ac_func
11104 char *(*pfn) = (char *(*)) $ac_func ;
11105 #endif
11107 return 0;
11109 _ACEOF
11110 if ac_fn_cxx_try_compile "$LINENO"; then :
11111 eval "gcc_cv_have_decl_$ac_func=yes"
11112 else
11113 eval "gcc_cv_have_decl_$ac_func=no"
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11120 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11121 #define $ac_tr_decl 1
11122 _ACEOF
11124 else
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11127 #define $ac_tr_decl 0
11128 _ACEOF
11132 done
11135 for ac_func in sigaltstack
11137 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11139 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11140 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145 #undef $ac_tr_decl
11146 #define $ac_tr_decl 1
11148 #include "ansidecl.h"
11149 #include "system.h"
11150 #include <signal.h>
11154 main ()
11156 #ifndef $ac_func
11157 char *(*pfn) = (char *(*)) $ac_func ;
11158 #endif
11160 return 0;
11162 _ACEOF
11163 if ac_fn_cxx_try_compile "$LINENO"; then :
11164 eval "gcc_cv_have_decl_$ac_func=yes"
11165 else
11166 eval "gcc_cv_have_decl_$ac_func=no"
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11173 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11174 #define $ac_tr_decl 1
11175 _ACEOF
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11180 #define $ac_tr_decl 0
11181 _ACEOF
11185 done
11188 # More time-related stuff.
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11190 $as_echo_n "checking for struct tms... " >&6; }
11191 if test "${ac_cv_struct_tms+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 #include "ansidecl.h"
11199 #include "system.h"
11200 #ifdef HAVE_SYS_TIMES_H
11201 #include <sys/times.h>
11202 #endif
11205 main ()
11207 struct tms tms;
11209 return 0;
11211 _ACEOF
11212 if ac_fn_cxx_try_compile "$LINENO"; then :
11213 ac_cv_struct_tms=yes
11214 else
11215 ac_cv_struct_tms=no
11217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11220 $as_echo "$ac_cv_struct_tms" >&6; }
11221 if test $ac_cv_struct_tms = yes; then
11223 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11227 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11228 # revisit after autoconf 2.50.
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11230 $as_echo_n "checking for clock_t... " >&6; }
11231 if test "${gcc_cv_type_clock_t+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11238 #include "ansidecl.h"
11239 #include "system.h"
11242 main ()
11244 clock_t x;
11246 return 0;
11248 _ACEOF
11249 if ac_fn_cxx_try_compile "$LINENO"; then :
11250 gcc_cv_type_clock_t=yes
11251 else
11252 gcc_cv_type_clock_t=no
11254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11257 $as_echo "$gcc_cv_type_clock_t" >&6; }
11258 if test $gcc_cv_type_clock_t = yes; then
11260 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11264 # Check if F_SETLKW is supported by fcntl.
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11266 $as_echo_n "checking for F_SETLKW... " >&6; }
11267 if test "${ac_cv_f_setlkw+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 #include <fcntl.h>
11276 main ()
11279 struct flock fl;
11280 fl.l_whence = 0;
11281 fl.l_start = 0;
11282 fl.l_len = 0;
11283 fl.l_pid = 0;
11284 return fcntl (1, F_SETLKW, &fl);
11286 return 0;
11288 _ACEOF
11289 if ac_fn_cxx_try_compile "$LINENO"; then :
11290 ac_cv_f_setlkw=yes
11291 else
11292 ac_cv_f_setlkw=no
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11297 $as_echo "$ac_cv_f_setlkw" >&6; }
11298 if test $ac_cv_f_setlkw = yes; then
11300 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11304 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11305 CFLAGS="$saved_CFLAGS"
11306 CXXFLAGS="$saved_CXXFLAGS"
11308 # mkdir takes a single argument on some systems.
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11310 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11311 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 #include <sys/types.h>
11318 #ifdef HAVE_SYS_STAT_H
11319 # include <sys/stat.h>
11320 #endif
11321 #ifdef HAVE_UNISTD_H
11322 # include <unistd.h>
11323 #endif
11324 #ifdef HAVE_DIRECT_H
11325 # include <direct.h>
11326 #endif
11328 main ()
11330 mkdir ("foo", 0);
11332 return 0;
11334 _ACEOF
11335 if ac_fn_cxx_try_compile "$LINENO"; then :
11336 gcc_cv_mkdir_takes_one_arg=no
11337 else
11338 gcc_cv_mkdir_takes_one_arg=yes
11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11343 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11344 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11346 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11351 # File extensions
11352 manext='.1'
11353 objext='.o'
11357 # With Setjmp/Longjmp based exception handling.
11358 # Check whether --enable-sjlj-exceptions was given.
11359 if test "${enable_sjlj_exceptions+set}" = set; then :
11360 enableval=$enable_sjlj_exceptions; case $target in
11361 *-*-hpux10*)
11362 if test $enableval != yes; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11364 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11365 enableval=yes
11368 esac
11369 force_sjlj_exceptions=yes
11370 else
11371 case $target in
11372 *-*-hpux10*)
11373 force_sjlj_exceptions=yes
11374 enableval=yes
11376 lm32*-*-*)
11377 force_sjlj_exceptions=yes
11378 enableval=yes
11381 force_sjlj_exceptions=no
11383 esac
11386 if test $force_sjlj_exceptions = yes; then
11387 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11389 cat >>confdefs.h <<_ACEOF
11390 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11391 _ACEOF
11395 # --------------------------------------------------------
11396 # Build, host, and target specific configuration fragments
11397 # --------------------------------------------------------
11399 # Collect build-machine-specific information.
11400 . ${srcdir}/config.build
11402 # Collect host-machine-specific information.
11403 . ${srcdir}/config.host
11405 target_gtfiles=
11407 # Collect target-machine-specific information.
11408 . ${srcdir}/config.gcc
11410 extra_objs="${host_extra_objs} ${extra_objs}"
11411 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11413 # Default the target-machine variables that were not explicitly set.
11414 if test x"$tm_file" = x
11415 then tm_file=$cpu_type/$cpu_type.h; fi
11417 if test x"$extra_headers" = x
11418 then extra_headers=; fi
11420 if test x$md_file = x
11421 then md_file=$cpu_type/$cpu_type.md; fi
11423 if test x$out_file = x
11424 then out_file=$cpu_type/$cpu_type.c; fi
11426 if test x"$tmake_file" = x
11427 then tmake_file=$cpu_type/t-$cpu_type
11430 # Support --enable-initfini-array.
11431 if test x$enable_initfini_array != xno; then
11432 tm_file="${tm_file} initfini-array.h"
11435 if test x"$dwarf2" = xyes
11436 then tm_file="$tm_file tm-dwarf2.h"
11439 # Say what files are being used for the output code and MD file.
11440 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11441 echo "Using \`$srcdir/config/$md_file' as machine description file."
11443 # If any of the xm_file variables contain nonexistent files, warn
11444 # about them and drop them.
11447 for x in $build_xm_file; do
11448 if test -f $srcdir/config/$x
11449 then bx="$bx $x"
11450 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11451 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11453 done
11454 build_xm_file="$bx"
11457 for x in $host_xm_file; do
11458 if test -f $srcdir/config/$x
11459 then hx="$hx $x"
11460 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11461 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11463 done
11464 host_xm_file="$hx"
11467 for x in $xm_file; do
11468 if test -f $srcdir/config/$x
11469 then tx="$tx $x"
11470 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11471 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11473 done
11474 xm_file="$tx"
11476 count=a
11477 for f in $tm_file; do
11478 count=${count}x
11479 done
11480 if test $count = ax; then
11481 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11482 else
11483 echo "Using the following target machine macro files:"
11484 for f in $tm_file; do
11485 echo " $srcdir/config/$f"
11486 done
11489 if test x$use_long_long_for_widest_fast_int = xyes; then
11491 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11495 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11497 cat >>confdefs.h <<_ACEOF
11498 #define HAVE_GNU_LD $gnu_ld_bool
11499 _ACEOF
11502 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11504 cat >>confdefs.h <<_ACEOF
11505 #define HAVE_GNU_AS $gnu_as_bool
11506 _ACEOF
11509 count=a
11510 for f in $host_xm_file; do
11511 count=${count}x
11512 done
11513 if test $count = a; then
11515 elif test $count = ax; then
11516 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11517 else
11518 echo "Using the following host machine macro files:"
11519 for f in $host_xm_file; do
11520 echo " $srcdir/config/$f"
11521 done
11523 echo "Using ${out_host_hook_obj} for host machine hooks."
11525 if test "$host_xm_file" != "$build_xm_file"; then
11526 count=a
11527 for f in $build_xm_file; do
11528 count=${count}x
11529 done
11530 if test $count = a; then
11532 elif test $count = ax; then
11533 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11534 else
11535 echo "Using the following build machine macro files:"
11536 for f in $build_xm_file; do
11537 echo " $srcdir/config/$f"
11538 done
11542 if test -n "$configured_native_system_header_dir"; then
11543 native_system_header_dir=$configured_native_system_header_dir
11545 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11548 case ${host} in
11549 powerpc*-*-darwin*)
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11551 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11552 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11558 #include <sys/cdefs.h>
11559 #include <sys/signal.h>
11560 #include <ucontext.h>
11561 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11563 _ACEOF
11564 if ac_fn_cxx_try_compile "$LINENO"; then :
11565 gcc_cv_mcontext_underscores=no
11566 else
11567 gcc_cv_mcontext_underscores=yes
11569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11572 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11573 if test $gcc_cv_mcontext_underscores = yes; then
11575 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11579 esac
11581 # ---------
11582 # Threading
11583 # ---------
11585 # Check if a valid thread package
11586 case ${enable_threads} in
11587 "" | no)
11588 # No threads
11589 target_thread_file='single'
11591 yes)
11592 # default
11593 target_thread_file='single'
11595 aix | dce | lynx | mipssde | posix | rtems | \
11596 single | tpf | vxworks | win32)
11597 target_thread_file=${enable_threads}
11600 echo "${enable_threads} is an unknown thread package" 1>&2
11601 exit 1
11603 esac
11605 if test x${thread_file} = x; then
11606 # No thread file set by target-specific clauses in config.gcc,
11607 # so use file chosen by default logic above
11608 thread_file=${target_thread_file}
11611 # --------
11612 # UNSORTED
11613 # --------
11615 use_cxa_atexit=no
11616 if test x$enable___cxa_atexit = xyes || \
11617 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11618 if test x$host = x$target; then
11619 case $host in
11620 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11621 # keyed to flag_use_cxa_atexit
11622 *-*-mingw32*)
11623 use_cxa_atexit=yes
11625 powerpc-ibm-aix*)
11626 use_cxa_atexit=yes
11629 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11630 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11631 use_cxa_atexit=yes
11632 else
11633 echo "__cxa_atexit can't be enabled on this target"
11637 esac
11638 else
11639 # We can't check for __cxa_atexit when building a cross, so assume
11640 # it is available
11641 use_cxa_atexit=yes
11643 if test x$use_cxa_atexit = xyes; then
11645 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11650 # Look for a file containing extra machine modes.
11651 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11652 extra_modes_file='$(srcdir)'/config/${extra_modes}
11655 cat >>confdefs.h <<_ACEOF
11656 #define EXTRA_MODES_FILE "config/$extra_modes"
11657 _ACEOF
11661 # Convert extra_options into a form suitable for Makefile use.
11662 extra_opt_files=
11663 all_opt_files=
11664 for f in $extra_options; do
11665 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11666 all_opt_files="$all_opt_files $srcdir/config/$f"
11667 done
11670 # auto-host.h is the file containing items generated by autoconf and is
11671 # the first file included by config.h.
11672 # If host=build, it is correct to have bconfig include auto-host.h
11673 # as well. If host!=build, we are in error and need to do more
11674 # work to find out the build config parameters.
11675 if test x$host = x$build
11676 then
11677 build_auto=auto-host.h
11678 else
11679 # We create a subdir, then run autoconf in the subdir.
11680 # To prevent recursion we set host and build for the new
11681 # invocation of configure to the build for this invocation
11682 # of configure.
11683 tempdir=build.$$
11684 rm -rf $tempdir
11685 mkdir $tempdir
11686 cd $tempdir
11687 case ${srcdir} in
11688 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11689 *) realsrcdir=../${srcdir};;
11690 esac
11691 # Clearing GMPINC is necessary to prevent host headers being
11692 # used by the build compiler. Defining GENERATOR_FILE stops
11693 # system.h from including gmp.h.
11694 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11695 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11696 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11697 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11698 ${realsrcdir}/configure \
11699 --enable-languages=${enable_languages-all} \
11700 --target=$target_alias --host=$build_alias --build=$build_alias
11702 # We just finished tests for the build machine, so rename
11703 # the file auto-build.h in the gcc directory.
11704 mv auto-host.h ../auto-build.h
11705 cd ..
11706 rm -rf $tempdir
11707 build_auto=auto-build.h
11711 tm_file="${tm_file} defaults.h"
11712 tm_p_file="${tm_p_file} tm-preds.h"
11713 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11714 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11715 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11716 # put this back in temporarily.
11717 xm_file="auto-host.h ansidecl.h ${xm_file}"
11719 # --------
11720 # UNSORTED
11721 # --------
11723 # Compile in configure arguments.
11724 if test -f configargs.h ; then
11725 # Being re-configured.
11726 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11727 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11728 else
11729 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11732 # Double all backslashes and backslash all quotes to turn
11733 # gcc_config_arguments into a C string.
11734 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11735 $gcc_config_arguments
11737 gcc_config_arguments_str=`cat conftest.out`
11738 rm -f conftest.out
11740 cat > configargs.h <<EOF
11741 /* Generated automatically. */
11742 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11743 static const char thread_model[] = "$thread_file";
11745 static const struct {
11746 const char *name, *value;
11747 } configure_default_options[] = $configure_default_options;
11750 gcc_BASEVER=`cat $srcdir/BASE-VER`
11751 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11752 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11753 if test -f $srcdir/REVISION ; then
11754 gcc_REVISION=`cat $srcdir/REVISION`
11755 else
11756 gcc_REVISION=""
11758 cat > plugin-version.h <<EOF
11759 #include "configargs.h"
11761 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11762 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11763 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11764 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11766 static char basever[] = "$gcc_BASEVER";
11767 static char datestamp[] = "$gcc_DATESTAMP";
11768 static char devphase[] = "$gcc_DEVPHASE";
11769 static char revision[] = "$gcc_REVISION";
11771 /* FIXME plugins: We should make the version information more precise.
11772 One way to do is to add a checksum. */
11774 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11775 devphase, revision,
11776 configuration_arguments};
11779 # Internationalization
11780 # If we haven't got the data from the intl directory,
11781 # assume NLS is disabled.
11782 USE_NLS=no
11783 LIBINTL=
11784 LIBINTL_DEP=
11785 INCINTL=
11786 XGETTEXT=
11787 GMSGFMT=
11788 POSUB=
11790 if test -f ../intl/config.intl; then
11791 . ../intl/config.intl
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11794 $as_echo_n "checking whether NLS is requested... " >&6; }
11795 if test x"$USE_NLS" != xyes; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11800 $as_echo "yes" >&6; }
11802 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11806 $as_echo_n "checking for catalogs to be installed... " >&6; }
11807 # Look for .po and .gmo files in the source directory.
11808 CATALOGS=
11809 XLINGUAS=
11810 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11811 # If there aren't any .gmo files the shell will give us the
11812 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11813 # weeded out.
11814 case "$cat" in *\**)
11815 continue;;
11816 esac
11817 # The quadruple backslash is collapsed to a double backslash
11818 # by the backticks, then collapsed again by the double quotes,
11819 # leaving us with one backslash in the sed expression (right
11820 # before the dot that mustn't act as a wildcard).
11821 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11822 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11823 # The user is allowed to set LINGUAS to a list of languages to
11824 # install catalogs for. If it's empty that means "all of them."
11825 if test "x$LINGUAS" = x; then
11826 CATALOGS="$CATALOGS $cat"
11827 XLINGUAS="$XLINGUAS $lang"
11828 else
11829 case "$LINGUAS" in *$lang*)
11830 CATALOGS="$CATALOGS $cat"
11831 XLINGUAS="$XLINGUAS $lang"
11833 esac
11835 done
11836 LINGUAS="$XLINGUAS"
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11838 $as_echo "$LINGUAS" >&6; }
11841 DATADIRNAME=share
11843 INSTOBJEXT=.mo
11845 GENCAT=gencat
11847 CATOBJEXT=.gmo
11851 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11852 # -liconv on the link line twice.
11853 case "$LIBINTL" in *$LIBICONV*)
11854 LIBICONV= ;;
11855 esac
11857 # Check whether --enable-secureplt was given.
11858 if test "${enable_secureplt+set}" = set; then :
11859 enableval=$enable_secureplt;
11863 # Check whether --enable-leading-mingw64-underscores was given.
11864 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11865 enableval=$enable_leading_mingw64_underscores;
11868 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11870 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11874 # Check whether --enable-cld was given.
11875 if test "${enable_cld+set}" = set; then :
11876 enableval=$enable_cld;
11877 else
11878 enable_cld=no
11882 # Check whether --enable-frame-pointer was given.
11883 if test "${enable_frame_pointer+set}" = set; then :
11884 enableval=$enable_frame_pointer;
11885 else
11887 case $target_os in
11888 linux* | darwin[8912]*)
11889 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11890 # DWARF2.
11891 enable_frame_pointer=no
11894 enable_frame_pointer=yes
11896 esac
11901 # Windows32 Registry support for specifying GCC installation paths.
11902 # Check whether --enable-win32-registry was given.
11903 if test "${enable_win32_registry+set}" = set; then :
11904 enableval=$enable_win32_registry;
11908 case $host_os in
11909 win32 | pe | cygwin* | mingw32* | uwin*)
11910 if test "x$enable_win32_registry" != xno; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11912 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11913 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 ac_func_search_save_LIBS=$LIBS
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char RegOpenKeyExA ();
11928 main ()
11930 return RegOpenKeyExA ();
11932 return 0;
11934 _ACEOF
11935 for ac_lib in '' advapi32; do
11936 if test -z "$ac_lib"; then
11937 ac_res="none required"
11938 else
11939 ac_res=-l$ac_lib
11940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11942 if ac_fn_cxx_try_link "$LINENO"; then :
11943 ac_cv_search_RegOpenKeyExA=$ac_res
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext
11947 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11948 break
11950 done
11951 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11953 else
11954 ac_cv_search_RegOpenKeyExA=no
11956 rm conftest.$ac_ext
11957 LIBS=$ac_func_search_save_LIBS
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11960 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11961 ac_res=$ac_cv_search_RegOpenKeyExA
11962 if test "$ac_res" != no; then :
11963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11965 else
11966 enable_win32_registry=no
11971 if test "x$enable_win32_registry" != xno; then
11973 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11976 if test "x$enable_win32_registry" != xyes \
11977 && test "x$enable_win32_registry" != x; then
11979 cat >>confdefs.h <<_ACEOF
11980 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11981 _ACEOF
11986 esac
11988 # Get an absolute path to the GCC top-level source directory
11989 holddir=`${PWDCMD-pwd}`
11990 cd $srcdir
11991 topdir=`${PWDCMD-pwd}`
11992 cd $holddir
11994 # Conditionalize the makefile for this host machine.
11995 xmake_file=
11996 for f in ${host_xmake_file}
11998 if test -f ${srcdir}/config/$f
11999 then
12000 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12002 done
12004 # Conditionalize the makefile for this target machine.
12005 tmake_file_=
12006 for f in ${tmake_file}
12008 if test -f ${srcdir}/config/$f
12009 then
12010 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12012 done
12013 tmake_file="${tmake_file_}"
12015 out_object_file=`basename $out_file .c`.o
12016 common_out_object_file=`basename $common_out_file .c`.o
12018 tm_file_list="options.h"
12019 tm_include_list="options.h insn-constants.h"
12020 for f in $tm_file; do
12021 case $f in
12022 ./* )
12023 f=`echo $f | sed 's/^..//'`
12024 tm_file_list="${tm_file_list} $f"
12025 tm_include_list="${tm_include_list} $f"
12027 defaults.h )
12028 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12029 tm_include_list="${tm_include_list} $f"
12032 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12033 tm_include_list="${tm_include_list} config/$f"
12035 esac
12036 done
12038 tm_p_file_list=
12039 tm_p_include_list=
12040 for f in $tm_p_file; do
12041 case $f in
12042 tm-preds.h )
12043 tm_p_file_list="${tm_p_file_list} $f"
12044 tm_p_include_list="${tm_p_include_list} $f"
12047 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12048 tm_p_include_list="${tm_p_include_list} config/$f"
12049 esac
12050 done
12052 xm_file_list=
12053 xm_include_list=
12054 for f in $xm_file; do
12055 case $f in
12056 ansidecl.h )
12057 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12058 xm_include_list="${xm_include_list} $f"
12060 auto-host.h )
12061 xm_file_list="${xm_file_list} $f"
12062 xm_include_list="${xm_include_list} $f"
12065 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12066 xm_include_list="${xm_include_list} config/$f"
12068 esac
12069 done
12071 host_xm_file_list=
12072 host_xm_include_list=
12073 for f in $host_xm_file; do
12074 case $f in
12075 ansidecl.h )
12076 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12077 host_xm_include_list="${host_xm_include_list} $f"
12079 auto-host.h )
12080 host_xm_file_list="${host_xm_file_list} $f"
12081 host_xm_include_list="${host_xm_include_list} $f"
12084 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12085 host_xm_include_list="${host_xm_include_list} config/$f"
12087 esac
12088 done
12090 build_xm_file_list=
12091 for f in $build_xm_file; do
12092 case $f in
12093 ansidecl.h )
12094 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12095 build_xm_include_list="${build_xm_include_list} $f"
12097 auto-build.h | auto-host.h )
12098 build_xm_file_list="${build_xm_file_list} $f"
12099 build_xm_include_list="${build_xm_include_list} $f"
12102 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12103 build_xm_include_list="${build_xm_include_list} config/$f"
12105 esac
12106 done
12108 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12109 # cross-compiler which does not use the native headers and libraries.
12110 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12111 CROSS=
12112 ALL=all.internal
12113 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12115 if test "x$with_build_sysroot" != x; then
12116 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12117 else
12118 # This value is used, even on a native system, because
12119 # CROSS_SYSTEM_HEADER_DIR is just
12120 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12121 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12124 if test x$host != x$target
12125 then
12126 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12127 ALL=all.cross
12128 SYSTEM_HEADER_DIR=$build_system_header_dir
12129 case "$host","$target" in
12130 # Darwin crosses can use the host system's libraries and headers,
12131 # because of the fat library support. Of course, it must be the
12132 # same version of Darwin on both sides. Allow the user to
12133 # just say --target=foo-darwin without a version number to mean
12134 # "the version on this system".
12135 *-*-darwin*,*-*-darwin*)
12136 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12137 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12138 if test $hostos = $targetos -o $targetos = darwin ; then
12139 CROSS=
12140 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12141 with_headers=yes
12145 i?86-*-*,x86_64-*-* \
12146 | powerpc*-*-*,powerpc64*-*-*)
12147 CROSS="$CROSS -DNATIVE_CROSS" ;;
12148 esac
12150 case $target in
12151 *-*-mingw*)
12152 if test "x$with_headers" = x; then
12153 with_headers=yes
12158 esac
12159 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12160 SYSTEM_HEADER_DIR=$build_system_header_dir
12163 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12164 if test "x$with_headers" != x; then
12165 target_header_dir=$with_headers
12166 elif test "x$with_sysroot" = x; then
12167 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12168 elif test "x$with_build_sysroot" != "x"; then
12169 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12170 elif test "x$with_sysroot" = xyes; then
12171 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12172 else
12173 target_header_dir="${with_sysroot}${native_system_header_dir}"
12175 else
12176 target_header_dir=${native_system_header_dir}
12179 # If this is a cross-compiler that does not
12180 # have its own set of headers then define
12181 # inhibit_libc
12183 # If this is using newlib, without having the headers available now,
12184 # then define inhibit_libc in LIBGCC2_CFLAGS.
12185 # This prevents libgcc2 from containing any code which requires libc
12186 # support.
12187 : ${inhibit_libc=false}
12188 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12189 test x$with_newlib = xyes ; } &&
12190 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12191 inhibit_libc=true
12195 # When building gcc with a cross-compiler, we need to adjust things so
12196 # that the generator programs are still built with the native compiler.
12197 # Also, we cannot run fixincludes.
12199 # These are the normal (build=host) settings:
12200 CC_FOR_BUILD='$(CC)'
12201 CXX_FOR_BUILD='$(CXX)'
12202 BUILD_CFLAGS='$(ALL_CFLAGS)'
12203 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12204 BUILD_LDFLAGS='$(LDFLAGS)'
12205 STMP_FIXINC=stmp-fixinc
12207 # And these apply if build != host, or we are generating coverage data
12208 if test x$build != x$host || test "x$coverage_flags" != x
12209 then
12210 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12211 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12212 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12215 # Expand extra_headers to include complete path.
12216 # This substitutes for lots of t-* files.
12217 extra_headers_list=
12218 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12219 for file in ${extra_headers} ; do
12220 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12221 done
12223 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12224 if test x"$use_gcc_tgmath" = xyes
12225 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12228 # Define collect2 in Makefile.
12229 case $host_can_use_collect2 in
12230 no) collect2= ;;
12231 *) collect2='collect2$(exeext)' ;;
12232 esac
12235 # Add a definition of USE_COLLECT2 if system wants one.
12236 case $use_collect2 in
12237 no) use_collect2= ;;
12238 "") ;;
12240 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12241 xm_defines="${xm_defines} USE_COLLECT2"
12242 case $host_can_use_collect2 in
12244 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12246 esac
12248 esac
12251 cat >>confdefs.h <<_ACEOF
12252 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12253 _ACEOF
12256 # ---------------------------
12257 # Assembler & linker features
12258 # ---------------------------
12260 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12261 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12262 # However when ld-new is first executed from the build tree, libtool will
12263 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12264 # to the build tree. While doing this we need to use the previous-stage
12265 # linker, or we have an infinite loop. The presence of a shell script as
12266 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12267 # the gcc/collect-ld script. So we need to know how libtool works, or
12268 # exec-tool will fail.
12271 case `pwd` in
12272 *\ * | *\ *)
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12274 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12275 esac
12279 macro_version='2.2.7a'
12280 macro_revision='1.3134'
12294 ltmain="$ac_aux_dir/ltmain.sh"
12296 # Backslashify metacharacters that are still active within
12297 # double-quoted strings.
12298 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12300 # Same as above, but do not quote variable references.
12301 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12303 # Sed substitution to delay expansion of an escaped shell variable in a
12304 # double_quote_subst'ed string.
12305 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12307 # Sed substitution to delay expansion of an escaped single quote.
12308 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12310 # Sed substitution to avoid accidental globbing in evaled expressions
12311 no_glob_subst='s/\*/\\\*/g'
12313 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12314 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12315 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12318 $as_echo_n "checking how to print strings... " >&6; }
12319 # Test print first, because it will be a builtin if present.
12320 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12321 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12322 ECHO='print -r --'
12323 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12324 ECHO='printf %s\n'
12325 else
12326 # Use this function as a fallback that always works.
12327 func_fallback_echo ()
12329 eval 'cat <<_LTECHO_EOF
12331 _LTECHO_EOF'
12333 ECHO='func_fallback_echo'
12336 # func_echo_all arg...
12337 # Invoke $ECHO with all args, space-separated.
12338 func_echo_all ()
12340 $ECHO ""
12343 case "$ECHO" in
12344 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12345 $as_echo "printf" >&6; } ;;
12346 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12347 $as_echo "print -r" >&6; } ;;
12348 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12349 $as_echo "cat" >&6; } ;;
12350 esac
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12366 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12367 if test "${ac_cv_path_SED+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12371 for ac_i in 1 2 3 4 5 6 7; do
12372 ac_script="$ac_script$as_nl$ac_script"
12373 done
12374 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12375 { ac_script=; unset ac_script;}
12376 if test -z "$SED"; then
12377 ac_path_SED_found=false
12378 # Loop through the user's path and test for each of PROGNAME-LIST
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
12384 for ac_prog in sed gsed; do
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12387 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12388 # Check for GNU ac_path_SED and select it if it is found.
12389 # Check for GNU $ac_path_SED
12390 case `"$ac_path_SED" --version 2>&1` in
12391 *GNU*)
12392 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12394 ac_count=0
12395 $as_echo_n 0123456789 >"conftest.in"
12396 while :
12398 cat "conftest.in" "conftest.in" >"conftest.tmp"
12399 mv "conftest.tmp" "conftest.in"
12400 cp "conftest.in" "conftest.nl"
12401 $as_echo '' >> "conftest.nl"
12402 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12404 as_fn_arith $ac_count + 1 && ac_count=$as_val
12405 if test $ac_count -gt ${ac_path_SED_max-0}; then
12406 # Best one so far, save it but keep looking for a better one
12407 ac_cv_path_SED="$ac_path_SED"
12408 ac_path_SED_max=$ac_count
12410 # 10*(2^10) chars as input seems more than enough
12411 test $ac_count -gt 10 && break
12412 done
12413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12414 esac
12416 $ac_path_SED_found && break 3
12417 done
12418 done
12419 done
12420 IFS=$as_save_IFS
12421 if test -z "$ac_cv_path_SED"; then
12422 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12424 else
12425 ac_cv_path_SED=$SED
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12430 $as_echo "$ac_cv_path_SED" >&6; }
12431 SED="$ac_cv_path_SED"
12432 rm -f conftest.sed
12434 test -z "$SED" && SED=sed
12435 Xsed="$SED -e 1s/^X//"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12448 $as_echo_n "checking for fgrep... " >&6; }
12449 if test "${ac_cv_path_FGREP+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12453 then ac_cv_path_FGREP="$GREP -F"
12454 else
12455 if test -z "$FGREP"; then
12456 ac_path_FGREP_found=false
12457 # Loop through the user's path and test for each of PROGNAME-LIST
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_prog in fgrep; do
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12466 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12467 # Check for GNU ac_path_FGREP and select it if it is found.
12468 # Check for GNU $ac_path_FGREP
12469 case `"$ac_path_FGREP" --version 2>&1` in
12470 *GNU*)
12471 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12473 ac_count=0
12474 $as_echo_n 0123456789 >"conftest.in"
12475 while :
12477 cat "conftest.in" "conftest.in" >"conftest.tmp"
12478 mv "conftest.tmp" "conftest.in"
12479 cp "conftest.in" "conftest.nl"
12480 $as_echo 'FGREP' >> "conftest.nl"
12481 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12483 as_fn_arith $ac_count + 1 && ac_count=$as_val
12484 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12485 # Best one so far, save it but keep looking for a better one
12486 ac_cv_path_FGREP="$ac_path_FGREP"
12487 ac_path_FGREP_max=$ac_count
12489 # 10*(2^10) chars as input seems more than enough
12490 test $ac_count -gt 10 && break
12491 done
12492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12493 esac
12495 $ac_path_FGREP_found && break 3
12496 done
12497 done
12498 done
12499 IFS=$as_save_IFS
12500 if test -z "$ac_cv_path_FGREP"; then
12501 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12503 else
12504 ac_cv_path_FGREP=$FGREP
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12510 $as_echo "$ac_cv_path_FGREP" >&6; }
12511 FGREP="$ac_cv_path_FGREP"
12514 test -z "$GREP" && GREP=grep
12534 # Check whether --with-gnu-ld was given.
12535 if test "${with_gnu_ld+set}" = set; then :
12536 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12537 else
12538 with_gnu_ld=no
12541 ac_prog=ld
12542 if test "$GCC" = yes; then
12543 # Check if gcc -print-prog-name=ld gives a path.
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12545 $as_echo_n "checking for ld used by $CC... " >&6; }
12546 case $host in
12547 *-*-mingw*)
12548 # gcc leaves a trailing carriage return which upsets mingw
12549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12552 esac
12553 case $ac_prog in
12554 # Accept absolute paths.
12555 [\\/]* | ?:[\\/]*)
12556 re_direlt='/[^/][^/]*/\.\./'
12557 # Canonicalize the pathname of ld
12558 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12559 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12560 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12561 done
12562 test -z "$LD" && LD="$ac_prog"
12565 # If it fails, then pretend we aren't using GCC.
12566 ac_prog=ld
12569 # If it is relative, then search for the first ld in PATH.
12570 with_gnu_ld=unknown
12572 esac
12573 elif test "$with_gnu_ld" = yes; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12575 $as_echo_n "checking for GNU ld... " >&6; }
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12578 $as_echo_n "checking for non-GNU ld... " >&6; }
12580 if test "${lt_cv_path_LD+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 if test -z "$LD"; then
12584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12585 for ac_dir in $PATH; do
12586 IFS="$lt_save_ifs"
12587 test -z "$ac_dir" && ac_dir=.
12588 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12589 lt_cv_path_LD="$ac_dir/$ac_prog"
12590 # Check to see if the program is GNU ld. I'd rather use --version,
12591 # but apparently some variants of GNU ld only accept -v.
12592 # Break only if it was the GNU/non-GNU ld that we prefer.
12593 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12594 *GNU* | *'with BFD'*)
12595 test "$with_gnu_ld" != no && break
12598 test "$with_gnu_ld" != yes && break
12600 esac
12602 done
12603 IFS="$lt_save_ifs"
12604 else
12605 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12609 LD="$lt_cv_path_LD"
12610 if test -n "$LD"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12612 $as_echo "$LD" >&6; }
12613 else
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12617 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12619 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12620 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12624 case `$LD -v 2>&1 </dev/null` in
12625 *GNU* | *'with BFD'*)
12626 lt_cv_prog_gnu_ld=yes
12629 lt_cv_prog_gnu_ld=no
12631 esac
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12634 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12635 with_gnu_ld=$lt_cv_prog_gnu_ld
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12646 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12647 if test "${lt_cv_path_NM+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$NM"; then
12651 # Let the user override the test.
12652 lt_cv_path_NM="$NM"
12653 else
12654 lt_nm_to_check="${ac_tool_prefix}nm"
12655 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12656 lt_nm_to_check="$lt_nm_to_check nm"
12658 for lt_tmp_nm in $lt_nm_to_check; do
12659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12660 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12661 IFS="$lt_save_ifs"
12662 test -z "$ac_dir" && ac_dir=.
12663 tmp_nm="$ac_dir/$lt_tmp_nm"
12664 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12665 # Check to see if the nm accepts a BSD-compat flag.
12666 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12667 # nm: unknown option "B" ignored
12668 # Tru64's nm complains that /dev/null is an invalid object file
12669 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12670 */dev/null* | *'Invalid file or object type'*)
12671 lt_cv_path_NM="$tmp_nm -B"
12672 break
12675 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12676 */dev/null*)
12677 lt_cv_path_NM="$tmp_nm -p"
12678 break
12681 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12682 continue # so that we can try to find one that supports BSD flags
12684 esac
12686 esac
12688 done
12689 IFS="$lt_save_ifs"
12690 done
12691 : ${lt_cv_path_NM=no}
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12695 $as_echo "$lt_cv_path_NM" >&6; }
12696 if test "$lt_cv_path_NM" != "no"; then
12697 NM="$lt_cv_path_NM"
12698 else
12699 # Didn't find any BSD compatible name lister, look for dumpbin.
12700 if test -n "$DUMPBIN"; then :
12701 # Let the user override the test.
12702 else
12703 if test -n "$ac_tool_prefix"; then
12704 for ac_prog in dumpbin "link -dump"
12706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 if test -n "$DUMPBIN"; then
12714 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12715 else
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725 break 2
12727 done
12728 done
12729 IFS=$as_save_IFS
12733 DUMPBIN=$ac_cv_prog_DUMPBIN
12734 if test -n "$DUMPBIN"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12736 $as_echo "$DUMPBIN" >&6; }
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12743 test -n "$DUMPBIN" && break
12744 done
12746 if test -z "$DUMPBIN"; then
12747 ac_ct_DUMPBIN=$DUMPBIN
12748 for ac_prog in dumpbin "link -dump"
12750 # Extract the first word of "$ac_prog", so it can be a program name with args.
12751 set dummy $ac_prog; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 if test -n "$ac_ct_DUMPBIN"; then
12758 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12759 else
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12763 IFS=$as_save_IFS
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 break 2
12771 done
12772 done
12773 IFS=$as_save_IFS
12777 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12778 if test -n "$ac_ct_DUMPBIN"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12780 $as_echo "$ac_ct_DUMPBIN" >&6; }
12781 else
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12787 test -n "$ac_ct_DUMPBIN" && break
12788 done
12790 if test "x$ac_ct_DUMPBIN" = x; then
12791 DUMPBIN=":"
12792 else
12793 case $cross_compiling:$ac_tool_warned in
12794 yes:)
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12797 ac_tool_warned=yes ;;
12798 esac
12799 DUMPBIN=$ac_ct_DUMPBIN
12803 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12804 *COFF*)
12805 DUMPBIN="$DUMPBIN -symbols"
12808 DUMPBIN=:
12810 esac
12813 if test "$DUMPBIN" != ":"; then
12814 NM="$DUMPBIN"
12817 test -z "$NM" && NM=nm
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12825 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12826 if test "${lt_cv_nm_interface+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12828 else
12829 lt_cv_nm_interface="BSD nm"
12830 echo "int some_variable = 0;" > conftest.$ac_ext
12831 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12832 (eval "$ac_compile" 2>conftest.err)
12833 cat conftest.err >&5
12834 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12835 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12836 cat conftest.err >&5
12837 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12838 cat conftest.out >&5
12839 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12840 lt_cv_nm_interface="MS dumpbin"
12842 rm -f conftest*
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12845 $as_echo "$lt_cv_nm_interface" >&6; }
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12848 $as_echo_n "checking whether ln -s works... " >&6; }
12849 LN_S=$as_ln_s
12850 if test "$LN_S" = "ln -s"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852 $as_echo "yes" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12855 $as_echo "no, using $LN_S" >&6; }
12858 # find the maximum length of command line arguments
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12860 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12861 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12865 teststring="ABCD"
12867 case $build_os in
12868 msdosdjgpp*)
12869 # On DJGPP, this test can blow up pretty badly due to problems in libc
12870 # (any single argument exceeding 2000 bytes causes a buffer overrun
12871 # during glob expansion). Even if it were fixed, the result of this
12872 # check would be larger than it should be.
12873 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12876 gnu*)
12877 # Under GNU Hurd, this test is not required because there is
12878 # no limit to the length of command line arguments.
12879 # Libtool will interpret -1 as no limit whatsoever
12880 lt_cv_sys_max_cmd_len=-1;
12883 cygwin* | mingw* | cegcc*)
12884 # On Win9x/ME, this test blows up -- it succeeds, but takes
12885 # about 5 minutes as the teststring grows exponentially.
12886 # Worse, since 9x/ME are not pre-emptively multitasking,
12887 # you end up with a "frozen" computer, even though with patience
12888 # the test eventually succeeds (with a max line length of 256k).
12889 # Instead, let's just punt: use the minimum linelength reported by
12890 # all of the supported platforms: 8192 (on NT/2K/XP).
12891 lt_cv_sys_max_cmd_len=8192;
12894 mint*)
12895 # On MiNT this can take a long time and run out of memory.
12896 lt_cv_sys_max_cmd_len=8192;
12899 amigaos*)
12900 # On AmigaOS with pdksh, this test takes hours, literally.
12901 # So we just punt and use a minimum line length of 8192.
12902 lt_cv_sys_max_cmd_len=8192;
12905 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12906 # This has been around since 386BSD, at least. Likely further.
12907 if test -x /sbin/sysctl; then
12908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12909 elif test -x /usr/sbin/sysctl; then
12910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12911 else
12912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12914 # And add a safety zone
12915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12919 interix*)
12920 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12921 lt_cv_sys_max_cmd_len=196608
12924 osf*)
12925 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12926 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12927 # nice to cause kernel panics so lets avoid the loop below.
12928 # First set a reasonable default.
12929 lt_cv_sys_max_cmd_len=16384
12931 if test -x /sbin/sysconfig; then
12932 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12933 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12934 esac
12937 sco3.2v5*)
12938 lt_cv_sys_max_cmd_len=102400
12940 sysv5* | sco5v6* | sysv4.2uw2*)
12941 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12942 if test -n "$kargmax"; then
12943 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12944 else
12945 lt_cv_sys_max_cmd_len=32768
12949 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12950 if test -n "$lt_cv_sys_max_cmd_len"; then
12951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12953 else
12954 # Make teststring a little bigger before we do anything with it.
12955 # a 1K string should be a reasonable start.
12956 for i in 1 2 3 4 5 6 7 8 ; do
12957 teststring=$teststring$teststring
12958 done
12959 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12960 # If test is not a shell built-in, we'll probably end up computing a
12961 # maximum length that is only half of the actual maximum length, but
12962 # we can't tell.
12963 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12964 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12965 test $i != 17 # 1/2 MB should be enough
12967 i=`expr $i + 1`
12968 teststring=$teststring$teststring
12969 done
12970 # Only check the string length outside the loop.
12971 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12972 teststring=
12973 # Add a significant safety factor because C++ compilers can tack on
12974 # massive amounts of additional arguments before passing them to the
12975 # linker. It appears as though 1/2 is a usable value.
12976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12979 esac
12983 if test -n $lt_cv_sys_max_cmd_len ; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12985 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12986 else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12988 $as_echo "none" >&6; }
12990 max_cmd_len=$lt_cv_sys_max_cmd_len
12997 : ${CP="cp -f"}
12998 : ${MV="mv -f"}
12999 : ${RM="rm -f"}
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13002 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13003 # Try some XSI features
13004 xsi_shell=no
13005 ( _lt_dummy="a/b/c"
13006 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13007 = c,a/b,, \
13008 && eval 'test $(( 1 + 1 )) -eq 2 \
13009 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13010 && xsi_shell=yes
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13012 $as_echo "$xsi_shell" >&6; }
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13016 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13017 lt_shell_append=no
13018 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13019 >/dev/null 2>&1 \
13020 && lt_shell_append=yes
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13022 $as_echo "$lt_shell_append" >&6; }
13025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13026 lt_unset=unset
13027 else
13028 lt_unset=false
13035 # test EBCDIC or ASCII
13036 case `echo X|tr X '\101'` in
13037 A) # ASCII based system
13038 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13039 lt_SP2NL='tr \040 \012'
13040 lt_NL2SP='tr \015\012 \040\040'
13042 *) # EBCDIC based system
13043 lt_SP2NL='tr \100 \n'
13044 lt_NL2SP='tr \r\n \100\100'
13046 esac
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13057 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13058 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 lt_cv_ld_reload_flag='-r'
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13064 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13065 reload_flag=$lt_cv_ld_reload_flag
13066 case $reload_flag in
13067 "" | " "*) ;;
13068 *) reload_flag=" $reload_flag" ;;
13069 esac
13070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13071 case $host_os in
13072 darwin*)
13073 if test "$GCC" = yes; then
13074 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13075 else
13076 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13079 esac
13089 if test -n "$ac_tool_prefix"; then
13090 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13091 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093 $as_echo_n "checking for $ac_word... " >&6; }
13094 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
13096 else
13097 if test -n "$OBJDUMP"; then
13098 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13099 else
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13107 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13111 done
13112 done
13113 IFS=$as_save_IFS
13117 OBJDUMP=$ac_cv_prog_OBJDUMP
13118 if test -n "$OBJDUMP"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13120 $as_echo "$OBJDUMP" >&6; }
13121 else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123 $as_echo "no" >&6; }
13128 if test -z "$ac_cv_prog_OBJDUMP"; then
13129 ac_ct_OBJDUMP=$OBJDUMP
13130 # Extract the first word of "objdump", so it can be a program name with args.
13131 set dummy objdump; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 if test -n "$ac_ct_OBJDUMP"; then
13138 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13151 done
13152 done
13153 IFS=$as_save_IFS
13157 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13158 if test -n "$ac_ct_OBJDUMP"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13160 $as_echo "$ac_ct_OBJDUMP" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13166 if test "x$ac_ct_OBJDUMP" = x; then
13167 OBJDUMP="false"
13168 else
13169 case $cross_compiling:$ac_tool_warned in
13170 yes:)
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13173 ac_tool_warned=yes ;;
13174 esac
13175 OBJDUMP=$ac_ct_OBJDUMP
13177 else
13178 OBJDUMP="$ac_cv_prog_OBJDUMP"
13181 test -z "$OBJDUMP" && OBJDUMP=objdump
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13192 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13193 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 lt_cv_file_magic_cmd='$MAGIC_CMD'
13197 lt_cv_file_magic_test_file=
13198 lt_cv_deplibs_check_method='unknown'
13199 # Need to set the preceding variable on all platforms that support
13200 # interlibrary dependencies.
13201 # 'none' -- dependencies not supported.
13202 # `unknown' -- same as none, but documents that we really don't know.
13203 # 'pass_all' -- all dependencies passed with no checks.
13204 # 'test_compile' -- check by making test program.
13205 # 'file_magic [[regex]]' -- check by looking for files in library path
13206 # which responds to the $file_magic_cmd with a given extended regex.
13207 # If you have `file' or equivalent on your system and you're not sure
13208 # whether `pass_all' will *always* work, you probably want this one.
13210 case $host_os in
13211 aix[4-9]*)
13212 lt_cv_deplibs_check_method=pass_all
13215 beos*)
13216 lt_cv_deplibs_check_method=pass_all
13219 bsdi[45]*)
13220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13221 lt_cv_file_magic_cmd='/usr/bin/file -L'
13222 lt_cv_file_magic_test_file=/shlib/libc.so
13225 cygwin*)
13226 # func_win32_libid is a shell function defined in ltmain.sh
13227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13228 lt_cv_file_magic_cmd='func_win32_libid'
13231 mingw* | pw32*)
13232 # Base MSYS/MinGW do not provide the 'file' command needed by
13233 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13234 # unless we find 'file', for example because we are cross-compiling.
13235 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13236 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13237 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13238 lt_cv_file_magic_cmd='func_win32_libid'
13239 else
13240 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13241 lt_cv_file_magic_cmd='$OBJDUMP -f'
13245 cegcc*)
13246 # use the weaker test based on 'objdump'. See mingw*.
13247 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13248 lt_cv_file_magic_cmd='$OBJDUMP -f'
13251 darwin* | rhapsody*)
13252 lt_cv_deplibs_check_method=pass_all
13255 freebsd* | dragonfly*)
13256 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13257 case $host_cpu in
13258 i*86 )
13259 # Not sure whether the presence of OpenBSD here was a mistake.
13260 # Let's accept both of them until this is cleared up.
13261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13262 lt_cv_file_magic_cmd=/usr/bin/file
13263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13265 esac
13266 else
13267 lt_cv_deplibs_check_method=pass_all
13271 gnu*)
13272 lt_cv_deplibs_check_method=pass_all
13275 haiku*)
13276 lt_cv_deplibs_check_method=pass_all
13279 hpux10.20* | hpux11*)
13280 lt_cv_file_magic_cmd=/usr/bin/file
13281 case $host_cpu in
13282 ia64*)
13283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13286 hppa*64*)
13287 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]'
13288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13294 esac
13297 interix[3-9]*)
13298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13302 irix5* | irix6* | nonstopux*)
13303 case $LD in
13304 *-32|*"-32 ") libmagic=32-bit;;
13305 *-n32|*"-n32 ") libmagic=N32;;
13306 *-64|*"-64 ") libmagic=64-bit;;
13307 *) libmagic=never-match;;
13308 esac
13309 lt_cv_deplibs_check_method=pass_all
13312 # This must be Linux ELF.
13313 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13314 lt_cv_deplibs_check_method=pass_all
13317 netbsd*)
13318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13320 else
13321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13325 newos6*)
13326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13327 lt_cv_file_magic_cmd=/usr/bin/file
13328 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13331 *nto* | *qnx*)
13332 lt_cv_deplibs_check_method=pass_all
13335 openbsd*)
13336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13338 else
13339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13343 osf3* | osf4* | osf5*)
13344 lt_cv_deplibs_check_method=pass_all
13347 rdos*)
13348 lt_cv_deplibs_check_method=pass_all
13351 solaris*)
13352 lt_cv_deplibs_check_method=pass_all
13355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13356 lt_cv_deplibs_check_method=pass_all
13359 sysv4 | sysv4.3*)
13360 case $host_vendor in
13361 motorola)
13362 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]'
13363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13365 ncr)
13366 lt_cv_deplibs_check_method=pass_all
13368 sequent)
13369 lt_cv_file_magic_cmd='/bin/file'
13370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13372 sni)
13373 lt_cv_file_magic_cmd='/bin/file'
13374 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13375 lt_cv_file_magic_test_file=/lib/libc.so
13377 siemens)
13378 lt_cv_deplibs_check_method=pass_all
13381 lt_cv_deplibs_check_method=pass_all
13383 esac
13386 tpf*)
13387 lt_cv_deplibs_check_method=pass_all
13389 esac
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13393 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13394 file_magic_cmd=$lt_cv_file_magic_cmd
13395 deplibs_check_method=$lt_cv_deplibs_check_method
13396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13409 if test -n "$ac_tool_prefix"; then
13410 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13411 set dummy ${ac_tool_prefix}ar; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_prog_AR+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 if test -n "$AR"; then
13418 ac_cv_prog_AR="$AR" # Let the user override the test.
13419 else
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_AR="${ac_tool_prefix}ar"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13431 done
13432 done
13433 IFS=$as_save_IFS
13437 AR=$ac_cv_prog_AR
13438 if test -n "$AR"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13440 $as_echo "$AR" >&6; }
13441 else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13448 if test -z "$ac_cv_prog_AR"; then
13449 ac_ct_AR=$AR
13450 # Extract the first word of "ar", so it can be a program name with args.
13451 set dummy ar; ac_word=$2
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13453 $as_echo_n "checking for $ac_word... " >&6; }
13454 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 if test -n "$ac_ct_AR"; then
13458 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13459 else
13460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461 for as_dir in $PATH
13463 IFS=$as_save_IFS
13464 test -z "$as_dir" && as_dir=.
13465 for ac_exec_ext in '' $ac_executable_extensions; do
13466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13467 ac_cv_prog_ac_ct_AR="ar"
13468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13469 break 2
13471 done
13472 done
13473 IFS=$as_save_IFS
13477 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13478 if test -n "$ac_ct_AR"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13480 $as_echo "$ac_ct_AR" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13486 if test "x$ac_ct_AR" = x; then
13487 AR="false"
13488 else
13489 case $cross_compiling:$ac_tool_warned in
13490 yes:)
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13493 ac_tool_warned=yes ;;
13494 esac
13495 AR=$ac_ct_AR
13497 else
13498 AR="$ac_cv_prog_AR"
13501 test -z "$AR" && AR=ar
13502 test -z "$AR_FLAGS" && AR_FLAGS=cru
13514 if test -n "$ac_tool_prefix"; then
13515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13516 set dummy ${ac_tool_prefix}strip; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if test "${ac_cv_prog_STRIP+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 if test -n "$STRIP"; then
13523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13524 else
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13528 IFS=$as_save_IFS
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13534 break 2
13536 done
13537 done
13538 IFS=$as_save_IFS
13542 STRIP=$ac_cv_prog_STRIP
13543 if test -n "$STRIP"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13545 $as_echo "$STRIP" >&6; }
13546 else
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13553 if test -z "$ac_cv_prog_STRIP"; then
13554 ac_ct_STRIP=$STRIP
13555 # Extract the first word of "strip", so it can be a program name with args.
13556 set dummy strip; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test -n "$ac_ct_STRIP"; then
13563 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_ac_ct_STRIP="strip"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13576 done
13577 done
13578 IFS=$as_save_IFS
13582 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13583 if test -n "$ac_ct_STRIP"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13585 $as_echo "$ac_ct_STRIP" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13591 if test "x$ac_ct_STRIP" = x; then
13592 STRIP=":"
13593 else
13594 case $cross_compiling:$ac_tool_warned in
13595 yes:)
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13598 ac_tool_warned=yes ;;
13599 esac
13600 STRIP=$ac_ct_STRIP
13602 else
13603 STRIP="$ac_cv_prog_STRIP"
13606 test -z "$STRIP" && STRIP=:
13613 if test -n "$ac_tool_prefix"; then
13614 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13615 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 if test -n "$RANLIB"; then
13622 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13623 else
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13635 done
13636 done
13637 IFS=$as_save_IFS
13641 RANLIB=$ac_cv_prog_RANLIB
13642 if test -n "$RANLIB"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13644 $as_echo "$RANLIB" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13652 if test -z "$ac_cv_prog_RANLIB"; then
13653 ac_ct_RANLIB=$RANLIB
13654 # Extract the first word of "ranlib", so it can be a program name with args.
13655 set dummy ranlib; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657 $as_echo_n "checking for $ac_word... " >&6; }
13658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 if test -n "$ac_ct_RANLIB"; then
13662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13663 else
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $PATH
13667 IFS=$as_save_IFS
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13671 ac_cv_prog_ac_ct_RANLIB="ranlib"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13673 break 2
13675 done
13676 done
13677 IFS=$as_save_IFS
13681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13682 if test -n "$ac_ct_RANLIB"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13684 $as_echo "$ac_ct_RANLIB" >&6; }
13685 else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687 $as_echo "no" >&6; }
13690 if test "x$ac_ct_RANLIB" = x; then
13691 RANLIB=":"
13692 else
13693 case $cross_compiling:$ac_tool_warned in
13694 yes:)
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13697 ac_tool_warned=yes ;;
13698 esac
13699 RANLIB=$ac_ct_RANLIB
13701 else
13702 RANLIB="$ac_cv_prog_RANLIB"
13705 test -z "$RANLIB" && RANLIB=:
13712 # Determine commands to create old-style static archives.
13713 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13714 old_postinstall_cmds='chmod 644 $oldlib'
13715 old_postuninstall_cmds=
13717 if test -n "$RANLIB"; then
13718 case $host_os in
13719 openbsd*)
13720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13723 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13725 esac
13726 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13729 case $host_os in
13730 darwin*)
13731 lock_old_archive_extraction=yes ;;
13733 lock_old_archive_extraction=no ;;
13734 esac
13774 # If no C compiler was specified, use CC.
13775 LTCC=${LTCC-"$CC"}
13777 # If no C compiler flags were specified, use CFLAGS.
13778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13780 # Allow CC to be a program name with arguments.
13781 compiler=$CC
13784 # Check for command to grab the raw symbol name followed by C symbol from nm.
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13786 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13787 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13791 # These are sane defaults that work on at least a few old systems.
13792 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13794 # Character class describing NM global symbol codes.
13795 symcode='[BCDEGRST]'
13797 # Regexp to match symbols that can be accessed directly from C.
13798 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13800 # Define system-specific variables.
13801 case $host_os in
13802 aix*)
13803 symcode='[BCDT]'
13805 cygwin* | mingw* | pw32* | cegcc*)
13806 symcode='[ABCDGISTW]'
13808 hpux*)
13809 if test "$host_cpu" = ia64; then
13810 symcode='[ABCDEGRST]'
13813 irix* | nonstopux*)
13814 symcode='[BCDEGRST]'
13816 osf*)
13817 symcode='[BCDEGQRST]'
13819 solaris*)
13820 symcode='[BDRT]'
13822 sco3.2v5*)
13823 symcode='[DT]'
13825 sysv4.2uw2*)
13826 symcode='[DT]'
13828 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13829 symcode='[ABDT]'
13831 sysv4)
13832 symcode='[DFNSTU]'
13834 esac
13836 # If we're using GNU nm, then use its standard symbol codes.
13837 case `$NM -V 2>&1` in
13838 *GNU* | *'with BFD'*)
13839 symcode='[ABCDGIRSTW]' ;;
13840 esac
13842 # Transform an extracted symbol line into a proper C declaration.
13843 # Some systems (esp. on ia64) link data and code symbols differently,
13844 # so use this general approach.
13845 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13847 # Transform an extracted symbol line into symbol name and symbol address
13848 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13849 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'"
13851 # Handle CRLF in mingw tool chain
13852 opt_cr=
13853 case $build_os in
13854 mingw*)
13855 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13857 esac
13859 # Try without a prefix underscore, then with it.
13860 for ac_symprfx in "" "_"; do
13862 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13863 symxfrm="\\1 $ac_symprfx\\2 \\2"
13865 # Write the raw and C identifiers.
13866 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13867 # Fake it for dumpbin and say T for any non-static function
13868 # and D for any global variable.
13869 # Also find C++ and __fastcall symbols from MSVC++,
13870 # which start with @ or ?.
13871 lt_cv_sys_global_symbol_pipe="$AWK '"\
13872 " {last_section=section; section=\$ 3};"\
13873 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13874 " \$ 0!~/External *\|/{next};"\
13875 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13876 " {if(hide[section]) next};"\
13877 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13878 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13879 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13880 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13881 " ' prfx=^$ac_symprfx"
13882 else
13883 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13886 # Check to see that the pipe works correctly.
13887 pipe_works=no
13889 rm -f conftest*
13890 cat > conftest.$ac_ext <<_LT_EOF
13891 #ifdef __cplusplus
13892 extern "C" {
13893 #endif
13894 char nm_test_var;
13895 void nm_test_func(void);
13896 void nm_test_func(void){}
13897 #ifdef __cplusplus
13899 #endif
13900 int main(){nm_test_var='a';nm_test_func();return(0);}
13901 _LT_EOF
13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13904 (eval $ac_compile) 2>&5
13905 ac_status=$?
13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13907 test $ac_status = 0; }; then
13908 # Now try to grab the symbols.
13909 nlist=conftest.nm
13910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13911 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914 test $ac_status = 0; } && test -s "$nlist"; then
13915 # Try sorting and uniquifying the output.
13916 if sort "$nlist" | uniq > "$nlist"T; then
13917 mv -f "$nlist"T "$nlist"
13918 else
13919 rm -f "$nlist"T
13922 # Make sure that we snagged all the symbols we need.
13923 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13924 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13925 cat <<_LT_EOF > conftest.$ac_ext
13926 #ifdef __cplusplus
13927 extern "C" {
13928 #endif
13930 _LT_EOF
13931 # Now generate the symbol file.
13932 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13934 cat <<_LT_EOF >> conftest.$ac_ext
13936 /* The mapping between symbol names and symbols. */
13937 const struct {
13938 const char *name;
13939 void *address;
13941 lt__PROGRAM__LTX_preloaded_symbols[] =
13943 { "@PROGRAM@", (void *) 0 },
13944 _LT_EOF
13945 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13946 cat <<\_LT_EOF >> conftest.$ac_ext
13947 {0, (void *) 0}
13950 /* This works around a problem in FreeBSD linker */
13951 #ifdef FREEBSD_WORKAROUND
13952 static const void *lt_preloaded_setup() {
13953 return lt__PROGRAM__LTX_preloaded_symbols;
13955 #endif
13957 #ifdef __cplusplus
13959 #endif
13960 _LT_EOF
13961 # Now try linking the two files.
13962 mv conftest.$ac_objext conftstm.$ac_objext
13963 lt_save_LIBS="$LIBS"
13964 lt_save_CFLAGS="$CFLAGS"
13965 LIBS="conftstm.$ac_objext"
13966 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13968 (eval $ac_link) 2>&5
13969 ac_status=$?
13970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13971 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13972 pipe_works=yes
13974 LIBS="$lt_save_LIBS"
13975 CFLAGS="$lt_save_CFLAGS"
13976 else
13977 echo "cannot find nm_test_func in $nlist" >&5
13979 else
13980 echo "cannot find nm_test_var in $nlist" >&5
13982 else
13983 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13985 else
13986 echo "$progname: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13989 rm -rf conftest* conftst*
13991 # Do not use the global_symbol_pipe unless it works.
13992 if test "$pipe_works" = yes; then
13993 break
13994 else
13995 lt_cv_sys_global_symbol_pipe=
13997 done
14001 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14002 lt_cv_sys_global_symbol_to_cdecl=
14004 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14006 $as_echo "failed" >&6; }
14007 else
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14009 $as_echo "ok" >&6; }
14033 # Check whether --enable-libtool-lock was given.
14034 if test "${enable_libtool_lock+set}" = set; then :
14035 enableval=$enable_libtool_lock;
14038 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14040 # Some flags need to be propagated to the compiler or linker for good
14041 # libtool support.
14042 case $host in
14043 ia64-*-hpux*)
14044 # Find out which ABI we are using.
14045 echo 'int i;' > conftest.$ac_ext
14046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14047 (eval $ac_compile) 2>&5
14048 ac_status=$?
14049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14050 test $ac_status = 0; }; then
14051 case `/usr/bin/file conftest.$ac_objext` in
14052 *ELF-32*)
14053 HPUX_IA64_MODE="32"
14055 *ELF-64*)
14056 HPUX_IA64_MODE="64"
14058 esac
14060 rm -rf conftest*
14062 *-*-irix6*)
14063 # Find out which ABI we are using.
14064 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14066 (eval $ac_compile) 2>&5
14067 ac_status=$?
14068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14069 test $ac_status = 0; }; then
14070 if test "$lt_cv_prog_gnu_ld" = yes; then
14071 case `/usr/bin/file conftest.$ac_objext` in
14072 *32-bit*)
14073 LD="${LD-ld} -melf32bsmip"
14075 *N32*)
14076 LD="${LD-ld} -melf32bmipn32"
14078 *64-bit*)
14079 LD="${LD-ld} -melf64bmip"
14081 esac
14082 else
14083 case `/usr/bin/file conftest.$ac_objext` in
14084 *32-bit*)
14085 LD="${LD-ld} -32"
14087 *N32*)
14088 LD="${LD-ld} -n32"
14090 *64-bit*)
14091 LD="${LD-ld} -64"
14093 esac
14096 rm -rf conftest*
14099 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14100 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14101 # Find out which ABI we are using.
14102 echo 'int i;' > conftest.$ac_ext
14103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14104 (eval $ac_compile) 2>&5
14105 ac_status=$?
14106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14107 test $ac_status = 0; }; then
14108 case `/usr/bin/file conftest.o` in
14109 *32-bit*)
14110 case $host in
14111 x86_64-*kfreebsd*-gnu)
14112 LD="${LD-ld} -m elf_i386_fbsd"
14114 x86_64-*linux*)
14115 case `/usr/bin/file conftest.o` in
14116 *x86-64*)
14117 LD="${LD-ld} -m elf32_x86_64"
14120 LD="${LD-ld} -m elf_i386"
14122 esac
14124 powerpc64le-*linux*)
14125 LD="${LD-ld} -m elf32lppclinux"
14127 powerpc64-*linux*)
14128 LD="${LD-ld} -m elf32ppclinux"
14130 s390x-*linux*)
14131 LD="${LD-ld} -m elf_s390"
14133 sparc64-*linux*)
14134 LD="${LD-ld} -m elf32_sparc"
14136 esac
14138 *64-bit*)
14139 case $host in
14140 x86_64-*kfreebsd*-gnu)
14141 LD="${LD-ld} -m elf_x86_64_fbsd"
14143 x86_64-*linux*)
14144 LD="${LD-ld} -m elf_x86_64"
14146 powerpcle-*linux*)
14147 LD="${LD-ld} -m elf64lppc"
14149 powerpc-*linux*)
14150 LD="${LD-ld} -m elf64ppc"
14152 s390*-*linux*|s390*-*tpf*)
14153 LD="${LD-ld} -m elf64_s390"
14155 sparc*-*linux*)
14156 LD="${LD-ld} -m elf64_sparc"
14158 esac
14160 esac
14162 rm -rf conftest*
14165 *-*-sco3.2v5*)
14166 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14167 SAVE_CFLAGS="$CFLAGS"
14168 CFLAGS="$CFLAGS -belf"
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14170 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14171 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 ac_ext=c
14175 ac_cpp='$CPP $CPPFLAGS'
14176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14184 main ()
14188 return 0;
14190 _ACEOF
14191 if ac_fn_c_try_link "$LINENO"; then :
14192 lt_cv_cc_needs_belf=yes
14193 else
14194 lt_cv_cc_needs_belf=no
14196 rm -f core conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14198 ac_ext=c
14199 ac_cpp='$CPP $CPPFLAGS'
14200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14206 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14209 CFLAGS="$SAVE_CFLAGS"
14212 sparc*-*solaris*)
14213 # Find out which ABI we are using.
14214 echo 'int i;' > conftest.$ac_ext
14215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14216 (eval $ac_compile) 2>&5
14217 ac_status=$?
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14219 test $ac_status = 0; }; then
14220 case `/usr/bin/file conftest.o` in
14221 *64-bit*)
14222 case $lt_cv_prog_gnu_ld in
14223 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14225 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14226 LD="${LD-ld} -64"
14229 esac
14231 esac
14233 rm -rf conftest*
14235 esac
14237 need_locks="$enable_libtool_lock"
14240 case $host_os in
14241 rhapsody* | darwin*)
14242 if test -n "$ac_tool_prefix"; then
14243 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14244 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14246 $as_echo_n "checking for $ac_word... " >&6; }
14247 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14248 $as_echo_n "(cached) " >&6
14249 else
14250 if test -n "$DSYMUTIL"; then
14251 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14252 else
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14260 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14262 break 2
14264 done
14265 done
14266 IFS=$as_save_IFS
14270 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14271 if test -n "$DSYMUTIL"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14273 $as_echo "$DSYMUTIL" >&6; }
14274 else
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14281 if test -z "$ac_cv_prog_DSYMUTIL"; then
14282 ac_ct_DSYMUTIL=$DSYMUTIL
14283 # Extract the first word of "dsymutil", so it can be a program name with args.
14284 set dummy dsymutil; ac_word=$2
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14286 $as_echo_n "checking for $ac_word... " >&6; }
14287 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 if test -n "$ac_ct_DSYMUTIL"; then
14291 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14292 else
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14300 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14304 done
14305 done
14306 IFS=$as_save_IFS
14310 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14311 if test -n "$ac_ct_DSYMUTIL"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14313 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14314 else
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14319 if test "x$ac_ct_DSYMUTIL" = x; then
14320 DSYMUTIL=":"
14321 else
14322 case $cross_compiling:$ac_tool_warned in
14323 yes:)
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14326 ac_tool_warned=yes ;;
14327 esac
14328 DSYMUTIL=$ac_ct_DSYMUTIL
14330 else
14331 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14334 if test -n "$ac_tool_prefix"; then
14335 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14336 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14338 $as_echo_n "checking for $ac_word... " >&6; }
14339 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 if test -n "$NMEDIT"; then
14343 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14344 else
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14348 IFS=$as_save_IFS
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14352 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14354 break 2
14356 done
14357 done
14358 IFS=$as_save_IFS
14362 NMEDIT=$ac_cv_prog_NMEDIT
14363 if test -n "$NMEDIT"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14365 $as_echo "$NMEDIT" >&6; }
14366 else
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14373 if test -z "$ac_cv_prog_NMEDIT"; then
14374 ac_ct_NMEDIT=$NMEDIT
14375 # Extract the first word of "nmedit", so it can be a program name with args.
14376 set dummy nmedit; ac_word=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14378 $as_echo_n "checking for $ac_word... " >&6; }
14379 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14382 if test -n "$ac_ct_NMEDIT"; then
14383 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14384 else
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14388 IFS=$as_save_IFS
14389 test -z "$as_dir" && as_dir=.
14390 for ac_exec_ext in '' $ac_executable_extensions; do
14391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14392 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14394 break 2
14396 done
14397 done
14398 IFS=$as_save_IFS
14402 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14403 if test -n "$ac_ct_NMEDIT"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14405 $as_echo "$ac_ct_NMEDIT" >&6; }
14406 else
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14411 if test "x$ac_ct_NMEDIT" = x; then
14412 NMEDIT=":"
14413 else
14414 case $cross_compiling:$ac_tool_warned in
14415 yes:)
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14418 ac_tool_warned=yes ;;
14419 esac
14420 NMEDIT=$ac_ct_NMEDIT
14422 else
14423 NMEDIT="$ac_cv_prog_NMEDIT"
14426 if test -n "$ac_tool_prefix"; then
14427 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14428 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14430 $as_echo_n "checking for $ac_word... " >&6; }
14431 if test "${ac_cv_prog_LIPO+set}" = set; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 if test -n "$LIPO"; then
14435 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14436 else
14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 for as_dir in $PATH
14440 IFS=$as_save_IFS
14441 test -z "$as_dir" && as_dir=.
14442 for ac_exec_ext in '' $ac_executable_extensions; do
14443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14444 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14446 break 2
14448 done
14449 done
14450 IFS=$as_save_IFS
14454 LIPO=$ac_cv_prog_LIPO
14455 if test -n "$LIPO"; then
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14457 $as_echo "$LIPO" >&6; }
14458 else
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460 $as_echo "no" >&6; }
14465 if test -z "$ac_cv_prog_LIPO"; then
14466 ac_ct_LIPO=$LIPO
14467 # Extract the first word of "lipo", so it can be a program name with args.
14468 set dummy lipo; ac_word=$2
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14470 $as_echo_n "checking for $ac_word... " >&6; }
14471 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 if test -n "$ac_ct_LIPO"; then
14475 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14476 else
14477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478 for as_dir in $PATH
14480 IFS=$as_save_IFS
14481 test -z "$as_dir" && as_dir=.
14482 for ac_exec_ext in '' $ac_executable_extensions; do
14483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14484 ac_cv_prog_ac_ct_LIPO="lipo"
14485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14486 break 2
14488 done
14489 done
14490 IFS=$as_save_IFS
14494 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14495 if test -n "$ac_ct_LIPO"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14497 $as_echo "$ac_ct_LIPO" >&6; }
14498 else
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500 $as_echo "no" >&6; }
14503 if test "x$ac_ct_LIPO" = x; then
14504 LIPO=":"
14505 else
14506 case $cross_compiling:$ac_tool_warned in
14507 yes:)
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14510 ac_tool_warned=yes ;;
14511 esac
14512 LIPO=$ac_ct_LIPO
14514 else
14515 LIPO="$ac_cv_prog_LIPO"
14518 if test -n "$ac_tool_prefix"; then
14519 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14520 set dummy ${ac_tool_prefix}otool; ac_word=$2
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14522 $as_echo_n "checking for $ac_word... " >&6; }
14523 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 if test -n "$OTOOL"; then
14527 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14528 else
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14532 IFS=$as_save_IFS
14533 test -z "$as_dir" && as_dir=.
14534 for ac_exec_ext in '' $ac_executable_extensions; do
14535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14536 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14538 break 2
14540 done
14541 done
14542 IFS=$as_save_IFS
14546 OTOOL=$ac_cv_prog_OTOOL
14547 if test -n "$OTOOL"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14549 $as_echo "$OTOOL" >&6; }
14550 else
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552 $as_echo "no" >&6; }
14557 if test -z "$ac_cv_prog_OTOOL"; then
14558 ac_ct_OTOOL=$OTOOL
14559 # Extract the first word of "otool", so it can be a program name with args.
14560 set dummy otool; ac_word=$2
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14562 $as_echo_n "checking for $ac_word... " >&6; }
14563 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 if test -n "$ac_ct_OTOOL"; then
14567 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14568 else
14569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14570 for as_dir in $PATH
14572 IFS=$as_save_IFS
14573 test -z "$as_dir" && as_dir=.
14574 for ac_exec_ext in '' $ac_executable_extensions; do
14575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14576 ac_cv_prog_ac_ct_OTOOL="otool"
14577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14578 break 2
14580 done
14581 done
14582 IFS=$as_save_IFS
14586 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14587 if test -n "$ac_ct_OTOOL"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14589 $as_echo "$ac_ct_OTOOL" >&6; }
14590 else
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592 $as_echo "no" >&6; }
14595 if test "x$ac_ct_OTOOL" = x; then
14596 OTOOL=":"
14597 else
14598 case $cross_compiling:$ac_tool_warned in
14599 yes:)
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14602 ac_tool_warned=yes ;;
14603 esac
14604 OTOOL=$ac_ct_OTOOL
14606 else
14607 OTOOL="$ac_cv_prog_OTOOL"
14610 if test -n "$ac_tool_prefix"; then
14611 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14612 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 if test -n "$OTOOL64"; then
14619 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14620 else
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14624 IFS=$as_save_IFS
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14628 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14630 break 2
14632 done
14633 done
14634 IFS=$as_save_IFS
14638 OTOOL64=$ac_cv_prog_OTOOL64
14639 if test -n "$OTOOL64"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14641 $as_echo "$OTOOL64" >&6; }
14642 else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14649 if test -z "$ac_cv_prog_OTOOL64"; then
14650 ac_ct_OTOOL64=$OTOOL64
14651 # Extract the first word of "otool64", so it can be a program name with args.
14652 set dummy otool64; ac_word=$2
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654 $as_echo_n "checking for $ac_word... " >&6; }
14655 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 if test -n "$ac_ct_OTOOL64"; then
14659 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14660 else
14661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14664 IFS=$as_save_IFS
14665 test -z "$as_dir" && as_dir=.
14666 for ac_exec_ext in '' $ac_executable_extensions; do
14667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14668 ac_cv_prog_ac_ct_OTOOL64="otool64"
14669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14670 break 2
14672 done
14673 done
14674 IFS=$as_save_IFS
14678 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14679 if test -n "$ac_ct_OTOOL64"; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14681 $as_echo "$ac_ct_OTOOL64" >&6; }
14682 else
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14687 if test "x$ac_ct_OTOOL64" = x; then
14688 OTOOL64=":"
14689 else
14690 case $cross_compiling:$ac_tool_warned in
14691 yes:)
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14694 ac_tool_warned=yes ;;
14695 esac
14696 OTOOL64=$ac_ct_OTOOL64
14698 else
14699 OTOOL64="$ac_cv_prog_OTOOL64"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14729 $as_echo_n "checking for -single_module linker flag... " >&6; }
14730 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 lt_cv_apple_cc_single_mod=no
14734 if test -z "${LT_MULTI_MODULE}"; then
14735 # By default we will add the -single_module flag. You can override
14736 # by either setting the environment variable LT_MULTI_MODULE
14737 # non-empty at configure time, or by adding -multi_module to the
14738 # link flags.
14739 rm -rf libconftest.dylib*
14740 echo "int foo(void){return 1;}" > conftest.c
14741 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14742 -dynamiclib -Wl,-single_module conftest.c" >&5
14743 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14744 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14745 _lt_result=$?
14746 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14747 lt_cv_apple_cc_single_mod=yes
14748 else
14749 cat conftest.err >&5
14751 rm -rf libconftest.dylib*
14752 rm -f conftest.*
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14756 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14758 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14759 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14760 $as_echo_n "(cached) " >&6
14761 else
14762 lt_cv_ld_exported_symbols_list=no
14763 save_LDFLAGS=$LDFLAGS
14764 echo "_main" > conftest.sym
14765 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14770 main ()
14774 return 0;
14776 _ACEOF
14777 if ac_fn_c_try_link "$LINENO"; then :
14778 lt_cv_ld_exported_symbols_list=yes
14779 else
14780 lt_cv_ld_exported_symbols_list=no
14782 rm -f core conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784 LDFLAGS="$save_LDFLAGS"
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14788 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14790 $as_echo_n "checking for -force_load linker flag... " >&6; }
14791 if test "${lt_cv_ld_force_load+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 lt_cv_ld_force_load=no
14795 cat > conftest.c << _LT_EOF
14796 int forced_loaded() { return 2;}
14797 _LT_EOF
14798 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14799 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14800 echo "$AR cru libconftest.a conftest.o" >&5
14801 $AR cru libconftest.a conftest.o 2>&5
14802 cat > conftest.c << _LT_EOF
14803 int main() { return 0;}
14804 _LT_EOF
14805 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14806 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14807 _lt_result=$?
14808 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14809 lt_cv_ld_force_load=yes
14810 else
14811 cat conftest.err >&5
14813 rm -f conftest.err libconftest.a conftest conftest.c
14814 rm -rf conftest.dSYM
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14818 $as_echo "$lt_cv_ld_force_load" >&6; }
14819 case $host_os in
14820 rhapsody* | darwin1.[012])
14821 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14822 darwin1.*)
14823 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14824 darwin*) # darwin 5.x on
14825 # if running on 10.5 or later, the deployment target defaults
14826 # to the OS version, if on x86, and 10.4, the deployment
14827 # target defaults to 10.4. Don't you love it?
14828 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14829 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14830 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14831 10.[012][,.]*)
14832 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14833 10.*)
14834 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14835 esac
14837 esac
14838 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14839 _lt_dar_single_mod='$single_module'
14841 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14842 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14843 else
14844 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14846 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14847 _lt_dsymutil='~$DSYMUTIL $lib || :'
14848 else
14849 _lt_dsymutil=
14852 esac
14855 for ac_header in dlfcn.h
14856 do :
14857 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14858 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14859 cat >>confdefs.h <<_ACEOF
14860 #define HAVE_DLFCN_H 1
14861 _ACEOF
14864 done
14870 # Set options
14874 enable_dlopen=no
14877 enable_win32_dll=no
14880 # Check whether --enable-shared was given.
14881 if test "${enable_shared+set}" = set; then :
14882 enableval=$enable_shared; p=${PACKAGE-default}
14883 case $enableval in
14884 yes) enable_shared=yes ;;
14885 no) enable_shared=no ;;
14887 enable_shared=no
14888 # Look at the argument we got. We use all the common list separators.
14889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14890 for pkg in $enableval; do
14891 IFS="$lt_save_ifs"
14892 if test "X$pkg" = "X$p"; then
14893 enable_shared=yes
14895 done
14896 IFS="$lt_save_ifs"
14898 esac
14899 else
14900 enable_shared=yes
14911 # Check whether --enable-static was given.
14912 if test "${enable_static+set}" = set; then :
14913 enableval=$enable_static; p=${PACKAGE-default}
14914 case $enableval in
14915 yes) enable_static=yes ;;
14916 no) enable_static=no ;;
14918 enable_static=no
14919 # Look at the argument we got. We use all the common list separators.
14920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14921 for pkg in $enableval; do
14922 IFS="$lt_save_ifs"
14923 if test "X$pkg" = "X$p"; then
14924 enable_static=yes
14926 done
14927 IFS="$lt_save_ifs"
14929 esac
14930 else
14931 enable_static=yes
14943 # Check whether --with-pic was given.
14944 if test "${with_pic+set}" = set; then :
14945 withval=$with_pic; pic_mode="$withval"
14946 else
14947 pic_mode=default
14951 test -z "$pic_mode" && pic_mode=default
14959 # Check whether --enable-fast-install was given.
14960 if test "${enable_fast_install+set}" = set; then :
14961 enableval=$enable_fast_install; p=${PACKAGE-default}
14962 case $enableval in
14963 yes) enable_fast_install=yes ;;
14964 no) enable_fast_install=no ;;
14966 enable_fast_install=no
14967 # Look at the argument we got. We use all the common list separators.
14968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14969 for pkg in $enableval; do
14970 IFS="$lt_save_ifs"
14971 if test "X$pkg" = "X$p"; then
14972 enable_fast_install=yes
14974 done
14975 IFS="$lt_save_ifs"
14977 esac
14978 else
14979 enable_fast_install=yes
14992 # This can be used to rebuild libtool when needed
14993 LIBTOOL_DEPS="$ltmain"
14995 # Always use our own libtool.
14996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15023 test -z "$LN_S" && LN_S="ln -s"
15038 if test -n "${ZSH_VERSION+set}" ; then
15039 setopt NO_GLOB_SUBST
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15043 $as_echo_n "checking for objdir... " >&6; }
15044 if test "${lt_cv_objdir+set}" = set; then :
15045 $as_echo_n "(cached) " >&6
15046 else
15047 rm -f .libs 2>/dev/null
15048 mkdir .libs 2>/dev/null
15049 if test -d .libs; then
15050 lt_cv_objdir=.libs
15051 else
15052 # MS-DOS does not allow filenames that begin with a dot.
15053 lt_cv_objdir=_libs
15055 rmdir .libs 2>/dev/null
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15058 $as_echo "$lt_cv_objdir" >&6; }
15059 objdir=$lt_cv_objdir
15065 cat >>confdefs.h <<_ACEOF
15066 #define LT_OBJDIR "$lt_cv_objdir/"
15067 _ACEOF
15072 case $host_os in
15073 aix3*)
15074 # AIX sometimes has problems with the GCC collect2 program. For some
15075 # reason, if we set the COLLECT_NAMES environment variable, the problems
15076 # vanish in a puff of smoke.
15077 if test "X${COLLECT_NAMES+set}" != Xset; then
15078 COLLECT_NAMES=
15079 export COLLECT_NAMES
15082 esac
15084 # Global variables:
15085 ofile=libtool
15086 can_build_shared=yes
15088 # All known linkers require a `.a' archive for static linking (except MSVC,
15089 # which needs '.lib').
15090 libext=a
15092 with_gnu_ld="$lt_cv_prog_gnu_ld"
15094 old_CC="$CC"
15095 old_CFLAGS="$CFLAGS"
15097 # Set sane defaults for various variables
15098 test -z "$CC" && CC=cc
15099 test -z "$LTCC" && LTCC=$CC
15100 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15101 test -z "$LD" && LD=ld
15102 test -z "$ac_objext" && ac_objext=o
15104 for cc_temp in $compiler""; do
15105 case $cc_temp in
15106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15108 \-*) ;;
15109 *) break;;
15110 esac
15111 done
15112 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15115 # Only perform the check for file, if the check method requires it
15116 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15117 case $deplibs_check_method in
15118 file_magic*)
15119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15121 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15122 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 case $MAGIC_CMD in
15126 [\\/*] | ?:[\\/]*)
15127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15130 lt_save_MAGIC_CMD="$MAGIC_CMD"
15131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15133 for ac_dir in $ac_dummy; do
15134 IFS="$lt_save_ifs"
15135 test -z "$ac_dir" && ac_dir=.
15136 if test -f $ac_dir/${ac_tool_prefix}file; then
15137 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15138 if test -n "$file_magic_test_file"; then
15139 case $deplibs_check_method in
15140 "file_magic "*)
15141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15144 $EGREP "$file_magic_regex" > /dev/null; then
15146 else
15147 cat <<_LT_EOF 1>&2
15149 *** Warning: the command libtool uses to detect shared libraries,
15150 *** $file_magic_cmd, produces output that libtool cannot recognize.
15151 *** The result is that libtool may fail to recognize shared libraries
15152 *** as such. This will affect the creation of libtool libraries that
15153 *** depend on shared libraries, but programs linked with such libtool
15154 *** libraries will work regardless of this problem. Nevertheless, you
15155 *** may want to report the problem to your system manager and/or to
15156 *** bug-libtool@gnu.org
15158 _LT_EOF
15159 fi ;;
15160 esac
15162 break
15164 done
15165 IFS="$lt_save_ifs"
15166 MAGIC_CMD="$lt_save_MAGIC_CMD"
15168 esac
15171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15172 if test -n "$MAGIC_CMD"; then
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15174 $as_echo "$MAGIC_CMD" >&6; }
15175 else
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15177 $as_echo "no" >&6; }
15184 if test -z "$lt_cv_path_MAGIC_CMD"; then
15185 if test -n "$ac_tool_prefix"; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15187 $as_echo_n "checking for file... " >&6; }
15188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15189 $as_echo_n "(cached) " >&6
15190 else
15191 case $MAGIC_CMD in
15192 [\\/*] | ?:[\\/]*)
15193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15196 lt_save_MAGIC_CMD="$MAGIC_CMD"
15197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15199 for ac_dir in $ac_dummy; do
15200 IFS="$lt_save_ifs"
15201 test -z "$ac_dir" && ac_dir=.
15202 if test -f $ac_dir/file; then
15203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15204 if test -n "$file_magic_test_file"; then
15205 case $deplibs_check_method in
15206 "file_magic "*)
15207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15210 $EGREP "$file_magic_regex" > /dev/null; then
15212 else
15213 cat <<_LT_EOF 1>&2
15215 *** Warning: the command libtool uses to detect shared libraries,
15216 *** $file_magic_cmd, produces output that libtool cannot recognize.
15217 *** The result is that libtool may fail to recognize shared libraries
15218 *** as such. This will affect the creation of libtool libraries that
15219 *** depend on shared libraries, but programs linked with such libtool
15220 *** libraries will work regardless of this problem. Nevertheless, you
15221 *** may want to report the problem to your system manager and/or to
15222 *** bug-libtool@gnu.org
15224 _LT_EOF
15225 fi ;;
15226 esac
15228 break
15230 done
15231 IFS="$lt_save_ifs"
15232 MAGIC_CMD="$lt_save_MAGIC_CMD"
15234 esac
15237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15238 if test -n "$MAGIC_CMD"; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15240 $as_echo "$MAGIC_CMD" >&6; }
15241 else
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15243 $as_echo "no" >&6; }
15247 else
15248 MAGIC_CMD=:
15254 esac
15256 # Use C for the default configuration in the libtool script
15258 lt_save_CC="$CC"
15259 ac_ext=c
15260 ac_cpp='$CPP $CPPFLAGS'
15261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15266 # Source file extension for C test sources.
15267 ac_ext=c
15269 # Object file extension for compiled C test sources.
15270 objext=o
15271 objext=$objext
15273 # Code to be used in simple compile tests
15274 lt_simple_compile_test_code="int some_variable = 0;"
15276 # Code to be used in simple link tests
15277 lt_simple_link_test_code='int main(){return(0);}'
15285 # If no C compiler was specified, use CC.
15286 LTCC=${LTCC-"$CC"}
15288 # If no C compiler flags were specified, use CFLAGS.
15289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15291 # Allow CC to be a program name with arguments.
15292 compiler=$CC
15294 # Save the default compiler, since it gets overwritten when the other
15295 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15296 compiler_DEFAULT=$CC
15298 # save warnings/boilerplate of simple test code
15299 ac_outfile=conftest.$ac_objext
15300 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15301 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15302 _lt_compiler_boilerplate=`cat conftest.err`
15303 $RM conftest*
15305 ac_outfile=conftest.$ac_objext
15306 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15307 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15308 _lt_linker_boilerplate=`cat conftest.err`
15309 $RM -r conftest*
15312 ## CAVEAT EMPTOR:
15313 ## There is no encapsulation within the following macros, do not change
15314 ## the running order or otherwise move them around unless you know exactly
15315 ## what you are doing...
15316 if test -n "$compiler"; then
15318 lt_prog_compiler_no_builtin_flag=
15320 if test "$GCC" = yes; then
15321 case $cc_basename in
15322 nvcc*)
15323 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15325 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15326 esac
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15329 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15331 $as_echo_n "(cached) " >&6
15332 else
15333 lt_cv_prog_compiler_rtti_exceptions=no
15334 ac_outfile=conftest.$ac_objext
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15336 lt_compiler_flag="-fno-rtti -fno-exceptions"
15337 # Insert the option either (1) after the last *FLAGS variable, or
15338 # (2) before a word containing "conftest.", or (3) at the end.
15339 # Note that $ac_compile itself does not contain backslashes and begins
15340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15341 # The option is referenced via a variable to avoid confusing sed.
15342 lt_compile=`echo "$ac_compile" | $SED \
15343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345 -e 's:$: $lt_compiler_flag:'`
15346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15347 (eval "$lt_compile" 2>conftest.err)
15348 ac_status=$?
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 if (exit $ac_status) && test -s "$ac_outfile"; then
15352 # The compiler can only warn and ignore the option if not recognized
15353 # So say no if there are warnings other than the usual output.
15354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15357 lt_cv_prog_compiler_rtti_exceptions=yes
15360 $RM conftest*
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15368 else
15379 lt_prog_compiler_wl=
15380 lt_prog_compiler_pic=
15381 lt_prog_compiler_static=
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15384 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15386 if test "$GCC" = yes; then
15387 lt_prog_compiler_wl='-Wl,'
15388 lt_prog_compiler_static='-static'
15390 case $host_os in
15391 aix*)
15392 # All AIX code is PIC.
15393 if test "$host_cpu" = ia64; then
15394 # AIX 5 now supports IA64 processor
15395 lt_prog_compiler_static='-Bstatic'
15397 lt_prog_compiler_pic='-fPIC'
15400 amigaos*)
15401 case $host_cpu in
15402 powerpc)
15403 # see comment about AmigaOS4 .so support
15404 lt_prog_compiler_pic='-fPIC'
15406 m68k)
15407 # FIXME: we need at least 68020 code to build shared libraries, but
15408 # adding the `-m68020' flag to GCC prevents building anything better,
15409 # like `-m68040'.
15410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15412 esac
15415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15416 # PIC is the default for these OSes.
15419 mingw* | cygwin* | pw32* | os2* | cegcc*)
15420 # This hack is so that the source file can tell whether it is being
15421 # built for inclusion in a dll (and should export symbols for example).
15422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15423 # (--disable-auto-import) libraries
15424 lt_prog_compiler_pic='-DDLL_EXPORT'
15427 darwin* | rhapsody*)
15428 # PIC is the default on this platform
15429 # Common symbols not allowed in MH_DYLIB files
15430 lt_prog_compiler_pic='-fno-common'
15433 haiku*)
15434 # PIC is the default for Haiku.
15435 # The "-static" flag exists, but is broken.
15436 lt_prog_compiler_static=
15439 hpux*)
15440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15442 # sets the default TLS model and affects inlining.
15443 case $host_cpu in
15444 hppa*64*)
15445 # +Z the default
15448 lt_prog_compiler_pic='-fPIC'
15450 esac
15453 interix[3-9]*)
15454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15455 # Instead, we relocate shared libraries at runtime.
15458 msdosdjgpp*)
15459 # Just because we use GCC doesn't mean we suddenly get shared libraries
15460 # on systems that don't support them.
15461 lt_prog_compiler_can_build_shared=no
15462 enable_shared=no
15465 *nto* | *qnx*)
15466 # QNX uses GNU C++, but need to define -shared option too, otherwise
15467 # it will coredump.
15468 lt_prog_compiler_pic='-fPIC -shared'
15471 sysv4*MP*)
15472 if test -d /usr/nec; then
15473 lt_prog_compiler_pic=-Kconform_pic
15478 lt_prog_compiler_pic='-fPIC'
15480 esac
15482 case $cc_basename in
15483 nvcc*) # Cuda Compiler Driver 2.2
15484 lt_prog_compiler_wl='-Xlinker '
15485 lt_prog_compiler_pic='-Xcompiler -fPIC'
15487 esac
15488 else
15489 # PORTME Check for flag to pass linker flags through the system compiler.
15490 case $host_os in
15491 aix*)
15492 lt_prog_compiler_wl='-Wl,'
15493 if test "$host_cpu" = ia64; then
15494 # AIX 5 now supports IA64 processor
15495 lt_prog_compiler_static='-Bstatic'
15496 else
15497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15501 mingw* | cygwin* | pw32* | os2* | cegcc*)
15502 # This hack is so that the source file can tell whether it is being
15503 # built for inclusion in a dll (and should export symbols for example).
15504 lt_prog_compiler_pic='-DDLL_EXPORT'
15507 hpux9* | hpux10* | hpux11*)
15508 lt_prog_compiler_wl='-Wl,'
15509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15510 # not for PA HP-UX.
15511 case $host_cpu in
15512 hppa*64*|ia64*)
15513 # +Z the default
15516 lt_prog_compiler_pic='+Z'
15518 esac
15519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15520 lt_prog_compiler_static='${wl}-a ${wl}archive'
15523 irix5* | irix6* | nonstopux*)
15524 lt_prog_compiler_wl='-Wl,'
15525 # PIC (with -KPIC) is the default.
15526 lt_prog_compiler_static='-non_shared'
15529 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15530 case $cc_basename in
15531 # old Intel for x86_64 which still supported -KPIC.
15532 ecc*)
15533 lt_prog_compiler_wl='-Wl,'
15534 lt_prog_compiler_pic='-KPIC'
15535 lt_prog_compiler_static='-static'
15537 # icc used to be incompatible with GCC.
15538 # ICC 10 doesn't accept -KPIC any more.
15539 icc* | ifort*)
15540 lt_prog_compiler_wl='-Wl,'
15541 lt_prog_compiler_pic='-fPIC'
15542 lt_prog_compiler_static='-static'
15544 # Lahey Fortran 8.1.
15545 lf95*)
15546 lt_prog_compiler_wl='-Wl,'
15547 lt_prog_compiler_pic='--shared'
15548 lt_prog_compiler_static='--static'
15550 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15551 # Portland Group compilers (*not* the Pentium gcc compiler,
15552 # which looks to be a dead project)
15553 lt_prog_compiler_wl='-Wl,'
15554 lt_prog_compiler_pic='-fpic'
15555 lt_prog_compiler_static='-Bstatic'
15557 ccc*)
15558 lt_prog_compiler_wl='-Wl,'
15559 # All Alpha code is PIC.
15560 lt_prog_compiler_static='-non_shared'
15562 xl* | bgxl* | bgf* | mpixl*)
15563 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15564 lt_prog_compiler_wl='-Wl,'
15565 lt_prog_compiler_pic='-qpic'
15566 lt_prog_compiler_static='-qstaticlink'
15569 case `$CC -V 2>&1 | sed 5q` in
15570 *Sun\ F* | *Sun*Fortran*)
15571 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15572 lt_prog_compiler_pic='-KPIC'
15573 lt_prog_compiler_static='-Bstatic'
15574 lt_prog_compiler_wl=''
15576 *Sun\ C*)
15577 # Sun C 5.9
15578 lt_prog_compiler_pic='-KPIC'
15579 lt_prog_compiler_static='-Bstatic'
15580 lt_prog_compiler_wl='-Wl,'
15582 esac
15584 esac
15587 newsos6)
15588 lt_prog_compiler_pic='-KPIC'
15589 lt_prog_compiler_static='-Bstatic'
15592 *nto* | *qnx*)
15593 # QNX uses GNU C++, but need to define -shared option too, otherwise
15594 # it will coredump.
15595 lt_prog_compiler_pic='-fPIC -shared'
15598 osf3* | osf4* | osf5*)
15599 lt_prog_compiler_wl='-Wl,'
15600 # All OSF/1 code is PIC.
15601 lt_prog_compiler_static='-non_shared'
15604 rdos*)
15605 lt_prog_compiler_static='-non_shared'
15608 solaris*)
15609 lt_prog_compiler_pic='-KPIC'
15610 lt_prog_compiler_static='-Bstatic'
15611 case $cc_basename in
15612 f77* | f90* | f95*)
15613 lt_prog_compiler_wl='-Qoption ld ';;
15615 lt_prog_compiler_wl='-Wl,';;
15616 esac
15619 sunos4*)
15620 lt_prog_compiler_wl='-Qoption ld '
15621 lt_prog_compiler_pic='-PIC'
15622 lt_prog_compiler_static='-Bstatic'
15625 sysv4 | sysv4.2uw2* | sysv4.3*)
15626 lt_prog_compiler_wl='-Wl,'
15627 lt_prog_compiler_pic='-KPIC'
15628 lt_prog_compiler_static='-Bstatic'
15631 sysv4*MP*)
15632 if test -d /usr/nec ;then
15633 lt_prog_compiler_pic='-Kconform_pic'
15634 lt_prog_compiler_static='-Bstatic'
15638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15639 lt_prog_compiler_wl='-Wl,'
15640 lt_prog_compiler_pic='-KPIC'
15641 lt_prog_compiler_static='-Bstatic'
15644 unicos*)
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_can_build_shared=no
15649 uts4*)
15650 lt_prog_compiler_pic='-pic'
15651 lt_prog_compiler_static='-Bstatic'
15655 lt_prog_compiler_can_build_shared=no
15657 esac
15660 case $host_os in
15661 # For platforms which do not support PIC, -DPIC is meaningless:
15662 *djgpp*)
15663 lt_prog_compiler_pic=
15666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15668 esac
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15670 $as_echo "$lt_prog_compiler_pic" >&6; }
15678 # Check to make sure the PIC flag actually works.
15680 if test -n "$lt_prog_compiler_pic"; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15682 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15683 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 lt_cv_prog_compiler_pic_works=no
15687 ac_outfile=conftest.$ac_objext
15688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15689 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15690 # Insert the option either (1) after the last *FLAGS variable, or
15691 # (2) before a word containing "conftest.", or (3) at the end.
15692 # Note that $ac_compile itself does not contain backslashes and begins
15693 # with a dollar sign (not a hyphen), so the echo should work correctly.
15694 # The option is referenced via a variable to avoid confusing sed.
15695 lt_compile=`echo "$ac_compile" | $SED \
15696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15698 -e 's:$: $lt_compiler_flag:'`
15699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15700 (eval "$lt_compile" 2>conftest.err)
15701 ac_status=$?
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 if (exit $ac_status) && test -s "$ac_outfile"; then
15705 # The compiler can only warn and ignore the option if not recognized
15706 # So say no if there are warnings other than the usual output.
15707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15710 lt_cv_prog_compiler_pic_works=yes
15713 $RM conftest*
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15717 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15719 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15720 case $lt_prog_compiler_pic in
15721 "" | " "*) ;;
15722 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15723 esac
15724 else
15725 lt_prog_compiler_pic=
15726 lt_prog_compiler_can_build_shared=no
15737 # Check to make sure the static flag actually works.
15739 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15742 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15743 $as_echo_n "(cached) " >&6
15744 else
15745 lt_cv_prog_compiler_static_works=no
15746 save_LDFLAGS="$LDFLAGS"
15747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15750 # The linker can only warn and ignore the option if not recognized
15751 # So say no if there are warnings
15752 if test -s conftest.err; then
15753 # Append any errors to the config.log.
15754 cat conftest.err 1>&5
15755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15757 if diff conftest.exp conftest.er2 >/dev/null; then
15758 lt_cv_prog_compiler_static_works=yes
15760 else
15761 lt_cv_prog_compiler_static_works=yes
15764 $RM -r conftest*
15765 LDFLAGS="$save_LDFLAGS"
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15769 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15771 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15773 else
15774 lt_prog_compiler_static=
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15785 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15786 $as_echo_n "(cached) " >&6
15787 else
15788 lt_cv_prog_compiler_c_o=no
15789 $RM -r conftest 2>/dev/null
15790 mkdir conftest
15791 cd conftest
15792 mkdir out
15793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15795 lt_compiler_flag="-o out/conftest2.$ac_objext"
15796 # Insert the option either (1) after the last *FLAGS variable, or
15797 # (2) before a word containing "conftest.", or (3) at the end.
15798 # Note that $ac_compile itself does not contain backslashes and begins
15799 # with a dollar sign (not a hyphen), so the echo should work correctly.
15800 lt_compile=`echo "$ac_compile" | $SED \
15801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15803 -e 's:$: $lt_compiler_flag:'`
15804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15805 (eval "$lt_compile" 2>out/conftest.err)
15806 ac_status=$?
15807 cat out/conftest.err >&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15810 then
15811 # The compiler can only warn and ignore the option if not recognized
15812 # So say no if there are warnings
15813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15816 lt_cv_prog_compiler_c_o=yes
15819 chmod u+w . 2>&5
15820 $RM conftest*
15821 # SGI C++ compiler will create directory out/ii_files/ for
15822 # template instantiation
15823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15824 $RM out/* && rmdir out
15825 cd ..
15826 $RM -r conftest
15827 $RM conftest*
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15831 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15840 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15841 $as_echo_n "(cached) " >&6
15842 else
15843 lt_cv_prog_compiler_c_o=no
15844 $RM -r conftest 2>/dev/null
15845 mkdir conftest
15846 cd conftest
15847 mkdir out
15848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15850 lt_compiler_flag="-o out/conftest2.$ac_objext"
15851 # Insert the option either (1) after the last *FLAGS variable, or
15852 # (2) before a word containing "conftest.", or (3) at the end.
15853 # Note that $ac_compile itself does not contain backslashes and begins
15854 # with a dollar sign (not a hyphen), so the echo should work correctly.
15855 lt_compile=`echo "$ac_compile" | $SED \
15856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15858 -e 's:$: $lt_compiler_flag:'`
15859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15860 (eval "$lt_compile" 2>out/conftest.err)
15861 ac_status=$?
15862 cat out/conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15865 then
15866 # The compiler can only warn and ignore the option if not recognized
15867 # So say no if there are warnings
15868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15871 lt_cv_prog_compiler_c_o=yes
15874 chmod u+w . 2>&5
15875 $RM conftest*
15876 # SGI C++ compiler will create directory out/ii_files/ for
15877 # template instantiation
15878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15879 $RM out/* && rmdir out
15880 cd ..
15881 $RM -r conftest
15882 $RM conftest*
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15891 hard_links="nottested"
15892 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15893 # do not overwrite the value of need_locks provided by the user
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15895 $as_echo_n "checking if we can lock with hard links... " >&6; }
15896 hard_links=yes
15897 $RM conftest*
15898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15899 touch conftest.a
15900 ln conftest.a conftest.b 2>&5 || hard_links=no
15901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15903 $as_echo "$hard_links" >&6; }
15904 if test "$hard_links" = no; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15906 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15907 need_locks=warn
15909 else
15910 need_locks=no
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15919 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15921 runpath_var=
15922 allow_undefined_flag=
15923 always_export_symbols=no
15924 archive_cmds=
15925 archive_expsym_cmds=
15926 compiler_needs_object=no
15927 enable_shared_with_static_runtimes=no
15928 export_dynamic_flag_spec=
15929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15930 hardcode_automatic=no
15931 hardcode_direct=no
15932 hardcode_direct_absolute=no
15933 hardcode_libdir_flag_spec=
15934 hardcode_libdir_flag_spec_ld=
15935 hardcode_libdir_separator=
15936 hardcode_minus_L=no
15937 hardcode_shlibpath_var=unsupported
15938 inherit_rpath=no
15939 link_all_deplibs=unknown
15940 module_cmds=
15941 module_expsym_cmds=
15942 old_archive_from_new_cmds=
15943 old_archive_from_expsyms_cmds=
15944 thread_safe_flag_spec=
15945 whole_archive_flag_spec=
15946 # include_expsyms should be a list of space-separated symbols to be *always*
15947 # included in the symbol list
15948 include_expsyms=
15949 # exclude_expsyms can be an extended regexp of symbols to exclude
15950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15952 # as well as any symbol that contains `d'.
15953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15955 # platforms (ab)use it in PIC code, but their linkers get confused if
15956 # the symbol is explicitly referenced. Since portable code cannot
15957 # rely on this symbol name, it's probably fine to never include it in
15958 # preloaded symbol tables.
15959 # Exclude shared library initialization/finalization symbols.
15960 extract_expsyms_cmds=
15962 case $host_os in
15963 cygwin* | mingw* | pw32* | cegcc*)
15964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15965 # When not using gcc, we currently assume that we are using
15966 # Microsoft Visual C++.
15967 if test "$GCC" != yes; then
15968 with_gnu_ld=no
15971 interix*)
15972 # we just hope/assume this is gcc and not c89 (= MSVC++)
15973 with_gnu_ld=yes
15975 openbsd*)
15976 with_gnu_ld=no
15978 esac
15980 ld_shlibs=yes
15982 # On some targets, GNU ld is compatible enough with the native linker
15983 # that we're better off using the native interface for both.
15984 lt_use_gnu_ld_interface=no
15985 if test "$with_gnu_ld" = yes; then
15986 case $host_os in
15987 aix*)
15988 # The AIX port of GNU ld has always aspired to compatibility
15989 # with the native linker. However, as the warning in the GNU ld
15990 # block says, versions before 2.19.5* couldn't really create working
15991 # shared libraries, regardless of the interface used.
15992 case `$LD -v 2>&1` in
15993 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15994 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15995 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15997 lt_use_gnu_ld_interface=yes
15999 esac
16002 lt_use_gnu_ld_interface=yes
16004 esac
16007 if test "$lt_use_gnu_ld_interface" = yes; then
16008 # If archive_cmds runs LD, not CC, wlarc should be empty
16009 wlarc='${wl}'
16011 # Set some defaults for GNU ld with shared library support. These
16012 # are reset later if shared libraries are not supported. Putting them
16013 # here allows them to be overridden if necessary.
16014 runpath_var=LD_RUN_PATH
16015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16016 export_dynamic_flag_spec='${wl}--export-dynamic'
16017 # ancient GNU ld didn't support --whole-archive et. al.
16018 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16019 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16020 else
16021 whole_archive_flag_spec=
16023 supports_anon_versioning=no
16024 case `$LD -v 2>&1` in
16025 *GNU\ gold*) supports_anon_versioning=yes ;;
16026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16029 *\ 2.11.*) ;; # other 2.11 versions
16030 *) supports_anon_versioning=yes ;;
16031 esac
16033 # See if GNU ld supports shared libraries.
16034 case $host_os in
16035 aix[3-9]*)
16036 # On AIX/PPC, the GNU linker is very broken
16037 if test "$host_cpu" != ia64; then
16038 ld_shlibs=no
16039 cat <<_LT_EOF 1>&2
16041 *** Warning: the GNU linker, at least up to release 2.19, is reported
16042 *** to be unable to reliably create shared libraries on AIX.
16043 *** Therefore, libtool is disabling shared libraries support. If you
16044 *** really care for shared libraries, you may want to install binutils
16045 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16046 *** You will then need to restart the configuration process.
16048 _LT_EOF
16052 amigaos*)
16053 case $host_cpu in
16054 powerpc)
16055 # see comment about AmigaOS4 .so support
16056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16057 archive_expsym_cmds=''
16059 m68k)
16060 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)'
16061 hardcode_libdir_flag_spec='-L$libdir'
16062 hardcode_minus_L=yes
16064 esac
16067 beos*)
16068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16069 allow_undefined_flag=unsupported
16070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16071 # support --undefined. This deserves some investigation. FIXME
16072 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073 else
16074 ld_shlibs=no
16078 cygwin* | mingw* | pw32* | cegcc*)
16079 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16080 # as there is no search path for DLLs.
16081 hardcode_libdir_flag_spec='-L$libdir'
16082 export_dynamic_flag_spec='${wl}--export-all-symbols'
16083 allow_undefined_flag=unsupported
16084 always_export_symbols=no
16085 enable_shared_with_static_runtimes=yes
16086 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16088 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16090 # If the export-symbols file already is a .def file (1st line
16091 # is EXPORTS), use it as is; otherwise, prepend...
16092 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16093 cp $export_symbols $output_objdir/$soname.def;
16094 else
16095 echo EXPORTS > $output_objdir/$soname.def;
16096 cat $export_symbols >> $output_objdir/$soname.def;
16098 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16099 else
16100 ld_shlibs=no
16104 haiku*)
16105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16106 link_all_deplibs=yes
16109 interix[3-9]*)
16110 hardcode_direct=no
16111 hardcode_shlibpath_var=no
16112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16113 export_dynamic_flag_spec='${wl}-E'
16114 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16115 # Instead, shared libraries are loaded at an image base (0x10000000 by
16116 # default) and relocated if they conflict, which is a slow very memory
16117 # consuming and fragmenting process. To avoid this, we pick a random,
16118 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16119 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16121 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'
16124 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16125 tmp_diet=no
16126 if test "$host_os" = linux-dietlibc; then
16127 case $cc_basename in
16128 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16129 esac
16131 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16132 && test "$tmp_diet" = no
16133 then
16134 tmp_addflag=' $pic_flag'
16135 tmp_sharedflag='-shared'
16136 case $cc_basename,$host_cpu in
16137 pgcc*) # Portland Group C compiler
16138 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'
16139 tmp_addflag=' $pic_flag'
16141 pgf77* | pgf90* | pgf95* | pgfortran*)
16142 # Portland Group f77 and f90 compilers
16143 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'
16144 tmp_addflag=' $pic_flag -Mnomain' ;;
16145 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16146 tmp_addflag=' -i_dynamic' ;;
16147 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16148 tmp_addflag=' -i_dynamic -nofor_main' ;;
16149 ifc* | ifort*) # Intel Fortran compiler
16150 tmp_addflag=' -nofor_main' ;;
16151 lf95*) # Lahey Fortran 8.1
16152 whole_archive_flag_spec=
16153 tmp_sharedflag='--shared' ;;
16154 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16155 tmp_sharedflag='-qmkshrobj'
16156 tmp_addflag= ;;
16157 nvcc*) # Cuda Compiler Driver 2.2
16158 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'
16159 compiler_needs_object=yes
16161 esac
16162 case `$CC -V 2>&1 | sed 5q` in
16163 *Sun\ C*) # Sun C 5.9
16164 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'
16165 compiler_needs_object=yes
16166 tmp_sharedflag='-G' ;;
16167 *Sun\ F*) # Sun Fortran 8.3
16168 tmp_sharedflag='-G' ;;
16169 esac
16170 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172 if test "x$supports_anon_versioning" = xyes; then
16173 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16175 echo "local: *; };" >> $output_objdir/$libname.ver~
16176 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16179 case $cc_basename in
16180 xlf* | bgf* | bgxlf* | mpixlf*)
16181 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16182 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16183 hardcode_libdir_flag_spec=
16184 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16185 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16186 if test "x$supports_anon_versioning" = xyes; then
16187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16189 echo "local: *; };" >> $output_objdir/$libname.ver~
16190 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16193 esac
16194 else
16195 ld_shlibs=no
16199 netbsd*)
16200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16201 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16202 wlarc=
16203 else
16204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16209 solaris*)
16210 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16211 ld_shlibs=no
16212 cat <<_LT_EOF 1>&2
16214 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16215 *** create shared libraries on Solaris systems. Therefore, libtool
16216 *** is disabling shared libraries support. We urge you to upgrade GNU
16217 *** binutils to release 2.9.1 or newer. Another option is to modify
16218 *** your PATH or compiler configuration so that the native linker is
16219 *** used, and then restart.
16221 _LT_EOF
16222 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16225 else
16226 ld_shlibs=no
16230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16231 case `$LD -v 2>&1` in
16232 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16233 ld_shlibs=no
16234 cat <<_LT_EOF 1>&2
16236 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16237 *** reliably create shared libraries on SCO systems. Therefore, libtool
16238 *** is disabling shared libraries support. We urge you to upgrade GNU
16239 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16240 *** your PATH or compiler configuration so that the native linker is
16241 *** used, and then restart.
16243 _LT_EOF
16246 # For security reasons, it is highly recommended that you always
16247 # use absolute paths for naming shared libraries, and exclude the
16248 # DT_RUNPATH tag from executables and libraries. But doing so
16249 # requires that you compile everything twice, which is a pain.
16250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16254 else
16255 ld_shlibs=no
16258 esac
16261 sunos4*)
16262 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16263 wlarc=
16264 hardcode_direct=yes
16265 hardcode_shlibpath_var=no
16269 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16272 else
16273 ld_shlibs=no
16276 esac
16278 if test "$ld_shlibs" = no; then
16279 runpath_var=
16280 hardcode_libdir_flag_spec=
16281 export_dynamic_flag_spec=
16282 whole_archive_flag_spec=
16284 else
16285 # PORTME fill in a description of your system's linker (not GNU ld)
16286 case $host_os in
16287 aix3*)
16288 allow_undefined_flag=unsupported
16289 always_export_symbols=yes
16290 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'
16291 # Note: this linker hardcodes the directories in LIBPATH if there
16292 # are no directories specified by -L.
16293 hardcode_minus_L=yes
16294 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16295 # Neither direct hardcoding nor static linking is supported with a
16296 # broken collect2.
16297 hardcode_direct=unsupported
16301 aix[4-9]*)
16302 if test "$host_cpu" = ia64; then
16303 # On IA64, the linker does run time linking by default, so we don't
16304 # have to do anything special.
16305 aix_use_runtimelinking=no
16306 exp_sym_flag='-Bexport'
16307 no_entry_flag=""
16308 else
16309 # If we're using GNU nm, then we don't want the "-C" option.
16310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16311 # Also, AIX nm treats weak defined symbols like other global
16312 # defined symbols, whereas GNU nm marks them as "W".
16313 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16314 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'
16315 else
16316 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16318 aix_use_runtimelinking=no
16320 # Test if we are trying to use run time linking or normal
16321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16322 # need to do runtime linking.
16323 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16324 for ld_flag in $LDFLAGS; do
16325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16326 aix_use_runtimelinking=yes
16327 break
16329 done
16331 esac
16333 exp_sym_flag='-bexport'
16334 no_entry_flag='-bnoentry'
16337 # When large executables or shared objects are built, AIX ld can
16338 # have problems creating the table of contents. If linking a library
16339 # or program results in "error TOC overflow" add -mminimal-toc to
16340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16343 archive_cmds=''
16344 hardcode_direct=yes
16345 hardcode_direct_absolute=yes
16346 hardcode_libdir_separator=':'
16347 link_all_deplibs=yes
16348 file_list_spec='${wl}-f,'
16350 if test "$GCC" = yes; then
16351 case $host_os in aix4.[012]|aix4.[012].*)
16352 # We only want to do this on AIX 4.2 and lower, the check
16353 # below for broken collect2 doesn't work under 4.3+
16354 collect2name=`${CC} -print-prog-name=collect2`
16355 if test -f "$collect2name" &&
16356 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16357 then
16358 # We have reworked collect2
16360 else
16361 # We have old collect2
16362 hardcode_direct=unsupported
16363 # It fails to find uninstalled libraries when the uninstalled
16364 # path is not listed in the libpath. Setting hardcode_minus_L
16365 # to unsupported forces relinking
16366 hardcode_minus_L=yes
16367 hardcode_libdir_flag_spec='-L$libdir'
16368 hardcode_libdir_separator=
16371 esac
16372 shared_flag='-shared'
16373 if test "$aix_use_runtimelinking" = yes; then
16374 shared_flag="$shared_flag "'${wl}-G'
16376 else
16377 # not using gcc
16378 if test "$host_cpu" = ia64; then
16379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16380 # chokes on -Wl,-G. The following line is correct:
16381 shared_flag='-G'
16382 else
16383 if test "$aix_use_runtimelinking" = yes; then
16384 shared_flag='${wl}-G'
16385 else
16386 shared_flag='${wl}-bM:SRE'
16391 export_dynamic_flag_spec='${wl}-bexpall'
16392 # It seems that -bexpall does not export symbols beginning with
16393 # underscore (_), so it is better to generate a list of symbols to export.
16394 always_export_symbols=yes
16395 if test "$aix_use_runtimelinking" = yes; then
16396 # Warning - without using the other runtime loading flags (-brtl),
16397 # -berok will link without error, but may produce a broken library.
16398 allow_undefined_flag='-berok'
16399 # Determine the default libpath from the value encoded in an
16400 # empty executable.
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16405 main ()
16409 return 0;
16411 _ACEOF
16412 if ac_fn_c_try_link "$LINENO"; then :
16414 lt_aix_libpath_sed='
16415 /Import File Strings/,/^$/ {
16416 /^0/ {
16417 s/^0 *\(.*\)$/\1/
16421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16422 # Check for a 64-bit object if we didn't find anything.
16423 if test -z "$aix_libpath"; then
16424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16427 rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16432 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"
16433 else
16434 if test "$host_cpu" = ia64; then
16435 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16436 allow_undefined_flag="-z nodefs"
16437 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"
16438 else
16439 # Determine the default libpath from the value encoded in an
16440 # empty executable.
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16445 main ()
16449 return 0;
16451 _ACEOF
16452 if ac_fn_c_try_link "$LINENO"; then :
16454 lt_aix_libpath_sed='
16455 /Import File Strings/,/^$/ {
16456 /^0/ {
16457 s/^0 *\(.*\)$/\1/
16461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16462 # Check for a 64-bit object if we didn't find anything.
16463 if test -z "$aix_libpath"; then
16464 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16467 rm -f core conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16472 # Warning - without using the other run time loading flags,
16473 # -berok will link without error, but may produce a broken library.
16474 no_undefined_flag=' ${wl}-bernotok'
16475 allow_undefined_flag=' ${wl}-berok'
16476 if test "$with_gnu_ld" = yes; then
16477 # We only use this code for GNU lds that support --whole-archive.
16478 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16479 else
16480 # Exported symbols can be pulled into shared objects from archives
16481 whole_archive_flag_spec='$convenience'
16483 archive_cmds_need_lc=yes
16484 # This is similar to how AIX traditionally builds its shared libraries.
16485 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'
16490 amigaos*)
16491 case $host_cpu in
16492 powerpc)
16493 # see comment about AmigaOS4 .so support
16494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16495 archive_expsym_cmds=''
16497 m68k)
16498 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)'
16499 hardcode_libdir_flag_spec='-L$libdir'
16500 hardcode_minus_L=yes
16502 esac
16505 bsdi[45]*)
16506 export_dynamic_flag_spec=-rdynamic
16509 cygwin* | mingw* | pw32* | cegcc*)
16510 # When not using gcc, we currently assume that we are using
16511 # Microsoft Visual C++.
16512 # hardcode_libdir_flag_spec is actually meaningless, as there is
16513 # no search path for DLLs.
16514 hardcode_libdir_flag_spec=' '
16515 allow_undefined_flag=unsupported
16516 # Tell ltmain to make .lib files, not .a files.
16517 libext=lib
16518 # Tell ltmain to make .dll files, not .so files.
16519 shrext_cmds=".dll"
16520 # FIXME: Setting linknames here is a bad hack.
16521 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16522 # The linker will automatically build a .lib file if we build a DLL.
16523 old_archive_from_new_cmds='true'
16524 # FIXME: Should let the user specify the lib program.
16525 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16526 fix_srcfile_path='`cygpath -w "$srcfile"`'
16527 enable_shared_with_static_runtimes=yes
16530 darwin* | rhapsody*)
16533 archive_cmds_need_lc=no
16534 hardcode_direct=no
16535 hardcode_automatic=yes
16536 hardcode_shlibpath_var=unsupported
16537 if test "$lt_cv_ld_force_load" = "yes"; then
16538 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\"`'
16539 else
16540 whole_archive_flag_spec=''
16542 link_all_deplibs=yes
16543 allow_undefined_flag="$_lt_dar_allow_undefined"
16544 case $cc_basename in
16545 ifort*) _lt_dar_can_shared=yes ;;
16546 *) _lt_dar_can_shared=$GCC ;;
16547 esac
16548 if test "$_lt_dar_can_shared" = "yes"; then
16549 output_verbose_link_cmd=func_echo_all
16550 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16551 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16552 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}"
16553 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}"
16555 else
16556 ld_shlibs=no
16561 dgux*)
16562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_libdir_flag_spec='-L$libdir'
16564 hardcode_shlibpath_var=no
16567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16568 # support. Future versions do this automatically, but an explicit c++rt0.o
16569 # does not break anything, and helps significantly (at the cost of a little
16570 # extra space).
16571 freebsd2.2*)
16572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16573 hardcode_libdir_flag_spec='-R$libdir'
16574 hardcode_direct=yes
16575 hardcode_shlibpath_var=no
16578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16579 freebsd2.*)
16580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16581 hardcode_direct=yes
16582 hardcode_minus_L=yes
16583 hardcode_shlibpath_var=no
16586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16587 freebsd* | dragonfly*)
16588 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16589 hardcode_libdir_flag_spec='-R$libdir'
16590 hardcode_direct=yes
16591 hardcode_shlibpath_var=no
16594 hpux9*)
16595 if test "$GCC" = yes; then
16596 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'
16597 else
16598 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'
16600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16601 hardcode_libdir_separator=:
16602 hardcode_direct=yes
16604 # hardcode_minus_L: Not really in the search PATH,
16605 # but as the default location of the library.
16606 hardcode_minus_L=yes
16607 export_dynamic_flag_spec='${wl}-E'
16610 hpux10*)
16611 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16612 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16613 else
16614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16616 if test "$with_gnu_ld" = no; then
16617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16618 hardcode_libdir_flag_spec_ld='+b $libdir'
16619 hardcode_libdir_separator=:
16620 hardcode_direct=yes
16621 hardcode_direct_absolute=yes
16622 export_dynamic_flag_spec='${wl}-E'
16623 # hardcode_minus_L: Not really in the search PATH,
16624 # but as the default location of the library.
16625 hardcode_minus_L=yes
16629 hpux11*)
16630 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16631 case $host_cpu in
16632 hppa*64*)
16633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16635 ia64*)
16636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16641 esac
16642 else
16643 case $host_cpu in
16644 hppa*64*)
16645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16647 ia64*)
16648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16652 # Older versions of the 11.00 compiler do not understand -b yet
16653 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16655 $as_echo_n "checking if $CC understands -b... " >&6; }
16656 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16657 $as_echo_n "(cached) " >&6
16658 else
16659 lt_cv_prog_compiler__b=no
16660 save_LDFLAGS="$LDFLAGS"
16661 LDFLAGS="$LDFLAGS -b"
16662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16664 # The linker can only warn and ignore the option if not recognized
16665 # So say no if there are warnings
16666 if test -s conftest.err; then
16667 # Append any errors to the config.log.
16668 cat conftest.err 1>&5
16669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16671 if diff conftest.exp conftest.er2 >/dev/null; then
16672 lt_cv_prog_compiler__b=yes
16674 else
16675 lt_cv_prog_compiler__b=yes
16678 $RM -r conftest*
16679 LDFLAGS="$save_LDFLAGS"
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16683 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16685 if test x"$lt_cv_prog_compiler__b" = xyes; then
16686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16687 else
16688 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16692 esac
16694 if test "$with_gnu_ld" = no; then
16695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16696 hardcode_libdir_separator=:
16698 case $host_cpu in
16699 hppa*64*|ia64*)
16700 hardcode_direct=no
16701 hardcode_shlibpath_var=no
16704 hardcode_direct=yes
16705 hardcode_direct_absolute=yes
16706 export_dynamic_flag_spec='${wl}-E'
16708 # hardcode_minus_L: Not really in the search PATH,
16709 # but as the default location of the library.
16710 hardcode_minus_L=yes
16712 esac
16716 irix5* | irix6* | nonstopux*)
16717 if test "$GCC" = yes; then
16718 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'
16719 # Try to use the -exported_symbol ld option, if it does not
16720 # work, assume that -exports_file does not work either and
16721 # implicitly export all symbols.
16722 save_LDFLAGS="$LDFLAGS"
16723 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 int foo(void) {}
16727 _ACEOF
16728 if ac_fn_c_try_link "$LINENO"; then :
16729 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'
16732 rm -f core conftest.err conftest.$ac_objext \
16733 conftest$ac_exeext conftest.$ac_ext
16734 LDFLAGS="$save_LDFLAGS"
16735 else
16736 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'
16737 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'
16739 archive_cmds_need_lc='no'
16740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16741 hardcode_libdir_separator=:
16742 inherit_rpath=yes
16743 link_all_deplibs=yes
16746 netbsd*)
16747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16749 else
16750 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16752 hardcode_libdir_flag_spec='-R$libdir'
16753 hardcode_direct=yes
16754 hardcode_shlibpath_var=no
16757 newsos6)
16758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16759 hardcode_direct=yes
16760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16761 hardcode_libdir_separator=:
16762 hardcode_shlibpath_var=no
16765 *nto* | *qnx*)
16768 openbsd*)
16769 if test -f /usr/libexec/ld.so; then
16770 hardcode_direct=yes
16771 hardcode_shlibpath_var=no
16772 hardcode_direct_absolute=yes
16773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16775 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16777 export_dynamic_flag_spec='${wl}-E'
16778 else
16779 case $host_os in
16780 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16782 hardcode_libdir_flag_spec='-R$libdir'
16785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16788 esac
16790 else
16791 ld_shlibs=no
16795 os2*)
16796 hardcode_libdir_flag_spec='-L$libdir'
16797 hardcode_minus_L=yes
16798 allow_undefined_flag=unsupported
16799 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'
16800 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16803 osf3*)
16804 if test "$GCC" = yes; then
16805 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16806 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'
16807 else
16808 allow_undefined_flag=' -expect_unresolved \*'
16809 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'
16811 archive_cmds_need_lc='no'
16812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16813 hardcode_libdir_separator=:
16816 osf4* | osf5*) # as osf3* with the addition of -msym flag
16817 if test "$GCC" = yes; then
16818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16819 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'
16820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16821 else
16822 allow_undefined_flag=' -expect_unresolved \*'
16823 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'
16824 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~
16825 $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'
16827 # Both c and cxx compiler support -rpath directly
16828 hardcode_libdir_flag_spec='-rpath $libdir'
16830 archive_cmds_need_lc='no'
16831 hardcode_libdir_separator=:
16834 solaris*)
16835 no_undefined_flag=' -z defs'
16836 if test "$GCC" = yes; then
16837 wlarc='${wl}'
16838 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16840 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16841 else
16842 case `$CC -V 2>&1` in
16843 *"Compilers 5.0"*)
16844 wlarc=''
16845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16850 wlarc='${wl}'
16851 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16853 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16855 esac
16857 hardcode_libdir_flag_spec='-R$libdir'
16858 hardcode_shlibpath_var=no
16859 case $host_os in
16860 solaris2.[0-5] | solaris2.[0-5].*) ;;
16862 # The compiler driver will combine and reorder linker options,
16863 # but understands `-z linker_flag'. GCC discards it without `$wl',
16864 # but is careful enough not to reorder.
16865 # Supported since Solaris 2.6 (maybe 2.5.1?)
16866 if test "$GCC" = yes; then
16867 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16868 else
16869 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16872 esac
16873 link_all_deplibs=yes
16876 sunos4*)
16877 if test "x$host_vendor" = xsequent; then
16878 # Use $CC to link under sequent, because it throws in some extra .o
16879 # files that make .init and .fini sections work.
16880 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16881 else
16882 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16884 hardcode_libdir_flag_spec='-L$libdir'
16885 hardcode_direct=yes
16886 hardcode_minus_L=yes
16887 hardcode_shlibpath_var=no
16890 sysv4)
16891 case $host_vendor in
16892 sni)
16893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_direct=yes # is this really true???
16896 siemens)
16897 ## LD is ld it makes a PLAMLIB
16898 ## CC just makes a GrossModule.
16899 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16900 reload_cmds='$CC -r -o $output$reload_objs'
16901 hardcode_direct=no
16903 motorola)
16904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16907 esac
16908 runpath_var='LD_RUN_PATH'
16909 hardcode_shlibpath_var=no
16912 sysv4.3*)
16913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16914 hardcode_shlibpath_var=no
16915 export_dynamic_flag_spec='-Bexport'
16918 sysv4*MP*)
16919 if test -d /usr/nec; then
16920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16921 hardcode_shlibpath_var=no
16922 runpath_var=LD_RUN_PATH
16923 hardcode_runpath_var=yes
16924 ld_shlibs=yes
16928 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16929 no_undefined_flag='${wl}-z,text'
16930 archive_cmds_need_lc=no
16931 hardcode_shlibpath_var=no
16932 runpath_var='LD_RUN_PATH'
16934 if test "$GCC" = yes; then
16935 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16936 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16937 else
16938 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16939 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16943 sysv5* | sco3.2v5* | sco5v6*)
16944 # Note: We can NOT use -z defs as we might desire, because we do not
16945 # link with -lc, and that would cause any symbols used from libc to
16946 # always be unresolved, which means just about no library would
16947 # ever link correctly. If we're not using GNU ld we use -z text
16948 # though, which does catch some bad symbols but isn't as heavy-handed
16949 # as -z defs.
16950 no_undefined_flag='${wl}-z,text'
16951 allow_undefined_flag='${wl}-z,nodefs'
16952 archive_cmds_need_lc=no
16953 hardcode_shlibpath_var=no
16954 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16955 hardcode_libdir_separator=':'
16956 link_all_deplibs=yes
16957 export_dynamic_flag_spec='${wl}-Bexport'
16958 runpath_var='LD_RUN_PATH'
16960 if test "$GCC" = yes; then
16961 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16962 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16963 else
16964 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16965 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16969 uts4*)
16970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16971 hardcode_libdir_flag_spec='-L$libdir'
16972 hardcode_shlibpath_var=no
16976 ld_shlibs=no
16978 esac
16980 if test x$host_vendor = xsni; then
16981 case $host in
16982 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16983 export_dynamic_flag_spec='${wl}-Blargedynsym'
16985 esac
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16990 $as_echo "$ld_shlibs" >&6; }
16991 test "$ld_shlibs" = no && can_build_shared=no
16993 with_gnu_ld=$with_gnu_ld
17010 # Do we need to explicitly link libc?
17012 case "x$archive_cmds_need_lc" in
17013 x|xyes)
17014 # Assume -lc should be added
17015 archive_cmds_need_lc=yes
17017 if test "$enable_shared" = yes && test "$GCC" = yes; then
17018 case $archive_cmds in
17019 *'~'*)
17020 # FIXME: we may have to deal with multi-command sequences.
17022 '$CC '*)
17023 # Test whether the compiler implicitly links with -lc since on some
17024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17025 # to ld, don't add -lc before -lgcc.
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17027 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17028 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17030 else
17031 $RM conftest*
17032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17035 (eval $ac_compile) 2>&5
17036 ac_status=$?
17037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17038 test $ac_status = 0; } 2>conftest.err; then
17039 soname=conftest
17040 lib=conftest
17041 libobjs=conftest.$ac_objext
17042 deplibs=
17043 wl=$lt_prog_compiler_wl
17044 pic_flag=$lt_prog_compiler_pic
17045 compiler_flags=-v
17046 linker_flags=-v
17047 verstring=
17048 output_objdir=.
17049 libname=conftest
17050 lt_save_allow_undefined_flag=$allow_undefined_flag
17051 allow_undefined_flag=
17052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17053 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17054 ac_status=$?
17055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17056 test $ac_status = 0; }
17057 then
17058 lt_cv_archive_cmds_need_lc=no
17059 else
17060 lt_cv_archive_cmds_need_lc=yes
17062 allow_undefined_flag=$lt_save_allow_undefined_flag
17063 else
17064 cat conftest.err 1>&5
17066 $RM conftest*
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17070 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17071 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17073 esac
17076 esac
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17235 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17237 if test "$GCC" = yes; then
17238 case $host_os in
17239 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17240 *) lt_awk_arg="/^libraries:/" ;;
17241 esac
17242 case $host_os in
17243 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17244 *) lt_sed_strip_eq="s,=/,/,g" ;;
17245 esac
17246 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17247 case $lt_search_path_spec in
17248 *\;*)
17249 # if the path contains ";" then we assume it to be the separator
17250 # otherwise default to the standard path separator (i.e. ":") - it is
17251 # assumed that no part of a normal pathname contains ";" but that should
17252 # okay in the real world where ";" in dirpaths is itself problematic.
17253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17256 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17258 esac
17259 # Ok, now we have the path, separated by spaces, we can step through it
17260 # and add multilib dir if necessary.
17261 lt_tmp_lt_search_path_spec=
17262 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17263 for lt_sys_path in $lt_search_path_spec; do
17264 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17266 else
17267 test -d "$lt_sys_path" && \
17268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17270 done
17271 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17272 BEGIN {RS=" "; FS="/|\n";} {
17273 lt_foo="";
17274 lt_count=0;
17275 for (lt_i = NF; lt_i > 0; lt_i--) {
17276 if ($lt_i != "" && $lt_i != ".") {
17277 if ($lt_i == "..") {
17278 lt_count++;
17279 } else {
17280 if (lt_count == 0) {
17281 lt_foo="/" $lt_i lt_foo;
17282 } else {
17283 lt_count--;
17288 if (lt_foo != "") { lt_freq[lt_foo]++; }
17289 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17291 # AWK program above erroneously prepends '/' to C:/dos/paths
17292 # for these hosts.
17293 case $host_os in
17294 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17295 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17296 esac
17297 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17298 else
17299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17301 library_names_spec=
17302 libname_spec='lib$name'
17303 soname_spec=
17304 shrext_cmds=".so"
17305 postinstall_cmds=
17306 postuninstall_cmds=
17307 finish_cmds=
17308 finish_eval=
17309 shlibpath_var=
17310 shlibpath_overrides_runpath=unknown
17311 version_type=none
17312 dynamic_linker="$host_os ld.so"
17313 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17314 need_lib_prefix=unknown
17315 hardcode_into_libs=no
17317 # when you set need_version to no, make sure it does not cause -set_version
17318 # flags to be left without arguments
17319 need_version=unknown
17321 case $host_os in
17322 aix3*)
17323 version_type=linux
17324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17325 shlibpath_var=LIBPATH
17327 # AIX 3 has no versioning support, so we append a major version to the name.
17328 soname_spec='${libname}${release}${shared_ext}$major'
17331 aix[4-9]*)
17332 version_type=linux
17333 need_lib_prefix=no
17334 need_version=no
17335 hardcode_into_libs=yes
17336 if test "$host_cpu" = ia64; then
17337 # AIX 5 supports IA64
17338 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17339 shlibpath_var=LD_LIBRARY_PATH
17340 else
17341 # With GCC up to 2.95.x, collect2 would create an import file
17342 # for dependence libraries. The import file would start with
17343 # the line `#! .'. This would cause the generated library to
17344 # depend on `.', always an invalid library. This was fixed in
17345 # development snapshots of GCC prior to 3.0.
17346 case $host_os in
17347 aix4 | aix4.[01] | aix4.[01].*)
17348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17349 echo ' yes '
17350 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17352 else
17353 can_build_shared=no
17356 esac
17357 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17358 # soname into executable. Probably we can add versioning support to
17359 # collect2, so additional links can be useful in future.
17360 if test "$aix_use_runtimelinking" = yes; then
17361 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17362 # instead of lib<name>.a to let people know that these are not
17363 # typical AIX shared libraries.
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 else
17366 # We preserve .a as extension for shared libraries through AIX4.2
17367 # and later when we are not doing run time linking.
17368 library_names_spec='${libname}${release}.a $libname.a'
17369 soname_spec='${libname}${release}${shared_ext}$major'
17371 shlibpath_var=LIBPATH
17375 amigaos*)
17376 case $host_cpu in
17377 powerpc)
17378 # Since July 2007 AmigaOS4 officially supports .so libraries.
17379 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17382 m68k)
17383 library_names_spec='$libname.ixlibrary $libname.a'
17384 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17385 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'
17387 esac
17390 beos*)
17391 library_names_spec='${libname}${shared_ext}'
17392 dynamic_linker="$host_os ld.so"
17393 shlibpath_var=LIBRARY_PATH
17396 bsdi[45]*)
17397 version_type=linux
17398 need_version=no
17399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17400 soname_spec='${libname}${release}${shared_ext}$major'
17401 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17402 shlibpath_var=LD_LIBRARY_PATH
17403 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17404 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17405 # the default ld.so.conf also contains /usr/contrib/lib and
17406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17407 # libtool to hard-code these into programs
17410 cygwin* | mingw* | pw32* | cegcc*)
17411 version_type=windows
17412 shrext_cmds=".dll"
17413 need_version=no
17414 need_lib_prefix=no
17416 case $GCC,$host_os in
17417 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17418 library_names_spec='$libname.dll.a'
17419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17420 postinstall_cmds='base_file=`basename \${file}`~
17421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17422 dldir=$destdir/`dirname \$dlpath`~
17423 test -d \$dldir || mkdir -p \$dldir~
17424 $install_prog $dir/$dlname \$dldir/$dlname~
17425 chmod a+x \$dldir/$dlname~
17426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17430 dlpath=$dir/\$dldll~
17431 $RM \$dlpath'
17432 shlibpath_overrides_runpath=yes
17434 case $host_os in
17435 cygwin*)
17436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17439 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17441 mingw* | cegcc*)
17442 # MinGW DLLs use traditional 'lib' prefix
17443 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17445 pw32*)
17446 # pw32 DLLs use 'pw' prefix rather than 'lib'
17447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17449 esac
17453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17455 esac
17456 dynamic_linker='Win32 ld.exe'
17457 # FIXME: first we should search . and the directory the executable is in
17458 shlibpath_var=PATH
17461 darwin* | rhapsody*)
17462 dynamic_linker="$host_os dyld"
17463 version_type=darwin
17464 need_lib_prefix=no
17465 need_version=no
17466 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17467 soname_spec='${libname}${release}${major}$shared_ext'
17468 shlibpath_overrides_runpath=yes
17469 shlibpath_var=DYLD_LIBRARY_PATH
17470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17472 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17476 dgux*)
17477 version_type=linux
17478 need_lib_prefix=no
17479 need_version=no
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 shlibpath_var=LD_LIBRARY_PATH
17485 freebsd* | dragonfly*)
17486 # DragonFly does not have aout. When/if they implement a new
17487 # versioning mechanism, adjust this.
17488 if test -x /usr/bin/objformat; then
17489 objformat=`/usr/bin/objformat`
17490 else
17491 case $host_os in
17492 freebsd[23].*) objformat=aout ;;
17493 *) objformat=elf ;;
17494 esac
17496 version_type=freebsd-$objformat
17497 case $version_type in
17498 freebsd-elf*)
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17500 need_version=no
17501 need_lib_prefix=no
17503 freebsd-*)
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17505 need_version=yes
17507 esac
17508 shlibpath_var=LD_LIBRARY_PATH
17509 case $host_os in
17510 freebsd2.*)
17511 shlibpath_overrides_runpath=yes
17513 freebsd3.[01]* | freebsdelf3.[01]*)
17514 shlibpath_overrides_runpath=yes
17515 hardcode_into_libs=yes
17517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17519 shlibpath_overrides_runpath=no
17520 hardcode_into_libs=yes
17522 *) # from 4.6 on, and DragonFly
17523 shlibpath_overrides_runpath=yes
17524 hardcode_into_libs=yes
17526 esac
17529 gnu*)
17530 version_type=linux
17531 need_lib_prefix=no
17532 need_version=no
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 shlibpath_var=LD_LIBRARY_PATH
17536 hardcode_into_libs=yes
17539 haiku*)
17540 version_type=linux
17541 need_lib_prefix=no
17542 need_version=no
17543 dynamic_linker="$host_os runtime_loader"
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17546 shlibpath_var=LIBRARY_PATH
17547 shlibpath_overrides_runpath=yes
17548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17549 hardcode_into_libs=yes
17552 hpux9* | hpux10* | hpux11*)
17553 # Give a soname corresponding to the major version so that dld.sl refuses to
17554 # link against other versions.
17555 version_type=sunos
17556 need_lib_prefix=no
17557 need_version=no
17558 case $host_cpu in
17559 ia64*)
17560 shrext_cmds='.so'
17561 hardcode_into_libs=yes
17562 dynamic_linker="$host_os dld.so"
17563 shlibpath_var=LD_LIBRARY_PATH
17564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17566 soname_spec='${libname}${release}${shared_ext}$major'
17567 if test "X$HPUX_IA64_MODE" = X32; then
17568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17569 else
17570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17574 hppa*64*)
17575 shrext_cmds='.sl'
17576 hardcode_into_libs=yes
17577 dynamic_linker="$host_os dld.sl"
17578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17581 soname_spec='${libname}${release}${shared_ext}$major'
17582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17586 shrext_cmds='.sl'
17587 dynamic_linker="$host_os dld.sl"
17588 shlibpath_var=SHLIB_PATH
17589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591 soname_spec='${libname}${release}${shared_ext}$major'
17593 esac
17594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17595 postinstall_cmds='chmod 555 $lib'
17596 # or fails outright, so override atomically:
17597 install_override_mode=555
17600 interix[3-9]*)
17601 version_type=linux
17602 need_lib_prefix=no
17603 need_version=no
17604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17605 soname_spec='${libname}${release}${shared_ext}$major'
17606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17607 shlibpath_var=LD_LIBRARY_PATH
17608 shlibpath_overrides_runpath=no
17609 hardcode_into_libs=yes
17612 irix5* | irix6* | nonstopux*)
17613 case $host_os in
17614 nonstopux*) version_type=nonstopux ;;
17616 if test "$lt_cv_prog_gnu_ld" = yes; then
17617 version_type=linux
17618 else
17619 version_type=irix
17620 fi ;;
17621 esac
17622 need_lib_prefix=no
17623 need_version=no
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17626 case $host_os in
17627 irix5* | nonstopux*)
17628 libsuff= shlibsuff=
17631 case $LD in # libtool.m4 will add one of these switches to LD
17632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17633 libsuff= shlibsuff= libmagic=32-bit;;
17634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17635 libsuff=32 shlibsuff=N32 libmagic=N32;;
17636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17638 *) libsuff= shlibsuff= libmagic=never-match;;
17639 esac
17641 esac
17642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17643 shlibpath_overrides_runpath=no
17644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17646 hardcode_into_libs=yes
17649 # No shared lib support for Linux oldld, aout, or coff.
17650 linux*oldld* | linux*aout* | linux*coff*)
17651 dynamic_linker=no
17654 # This must be Linux ELF.
17655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17656 version_type=linux
17657 need_lib_prefix=no
17658 need_version=no
17659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17660 soname_spec='${libname}${release}${shared_ext}$major'
17661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17662 shlibpath_var=LD_LIBRARY_PATH
17663 shlibpath_overrides_runpath=no
17665 # Some binutils ld are patched to set DT_RUNPATH
17666 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17667 $as_echo_n "(cached) " >&6
17668 else
17669 lt_cv_shlibpath_overrides_runpath=no
17670 save_LDFLAGS=$LDFLAGS
17671 save_libdir=$libdir
17672 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17673 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17678 main ()
17682 return 0;
17684 _ACEOF
17685 if ac_fn_c_try_link "$LINENO"; then :
17686 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17687 lt_cv_shlibpath_overrides_runpath=yes
17690 rm -f core conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
17692 LDFLAGS=$save_LDFLAGS
17693 libdir=$save_libdir
17697 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17699 # This implies no fast_install, which is unacceptable.
17700 # Some rework will be needed to allow for fast_install
17701 # before this can be enabled.
17702 hardcode_into_libs=yes
17704 # Append ld.so.conf contents to the search path
17705 if test -f /etc/ld.so.conf; then
17706 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' ' '`
17707 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17710 # We used to test for /lib/ld.so.1 and disable shared libraries on
17711 # powerpc, because MkLinux only supported shared libraries with the
17712 # GNU dynamic linker. Since this was broken with cross compilers,
17713 # most powerpc-linux boxes support dynamic linking these days and
17714 # people can always --disable-shared, the test was removed, and we
17715 # assume the GNU/Linux dynamic linker is in use.
17716 dynamic_linker='GNU/Linux ld.so'
17719 netbsd*)
17720 version_type=sunos
17721 need_lib_prefix=no
17722 need_version=no
17723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17726 dynamic_linker='NetBSD (a.out) ld.so'
17727 else
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17730 dynamic_linker='NetBSD ld.elf_so'
17732 shlibpath_var=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath=yes
17734 hardcode_into_libs=yes
17737 newsos6)
17738 version_type=linux
17739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 shlibpath_var=LD_LIBRARY_PATH
17741 shlibpath_overrides_runpath=yes
17744 *nto* | *qnx*)
17745 version_type=qnx
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 shlibpath_var=LD_LIBRARY_PATH
17751 shlibpath_overrides_runpath=no
17752 hardcode_into_libs=yes
17753 dynamic_linker='ldqnx.so'
17756 openbsd*)
17757 version_type=sunos
17758 sys_lib_dlsearch_path_spec="/usr/lib"
17759 need_lib_prefix=no
17760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17761 case $host_os in
17762 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17763 *) need_version=no ;;
17764 esac
17765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17769 case $host_os in
17770 openbsd2.[89] | openbsd2.[89].*)
17771 shlibpath_overrides_runpath=no
17774 shlibpath_overrides_runpath=yes
17776 esac
17777 else
17778 shlibpath_overrides_runpath=yes
17782 os2*)
17783 libname_spec='$name'
17784 shrext_cmds=".dll"
17785 need_lib_prefix=no
17786 library_names_spec='$libname${shared_ext} $libname.a'
17787 dynamic_linker='OS/2 ld.exe'
17788 shlibpath_var=LIBPATH
17791 osf3* | osf4* | osf5*)
17792 version_type=osf
17793 need_lib_prefix=no
17794 need_version=no
17795 soname_spec='${libname}${release}${shared_ext}$major'
17796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17797 shlibpath_var=LD_LIBRARY_PATH
17798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17802 rdos*)
17803 dynamic_linker=no
17806 solaris*)
17807 version_type=linux
17808 need_lib_prefix=no
17809 need_version=no
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 shlibpath_var=LD_LIBRARY_PATH
17813 shlibpath_overrides_runpath=yes
17814 hardcode_into_libs=yes
17815 # ldd complains unless libraries are executable
17816 postinstall_cmds='chmod +x $lib'
17819 sunos4*)
17820 version_type=sunos
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 shlibpath_overrides_runpath=yes
17825 if test "$with_gnu_ld" = yes; then
17826 need_lib_prefix=no
17828 need_version=yes
17831 sysv4 | sysv4.3*)
17832 version_type=linux
17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 soname_spec='${libname}${release}${shared_ext}$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 case $host_vendor in
17837 sni)
17838 shlibpath_overrides_runpath=no
17839 need_lib_prefix=no
17840 runpath_var=LD_RUN_PATH
17842 siemens)
17843 need_lib_prefix=no
17845 motorola)
17846 need_lib_prefix=no
17847 need_version=no
17848 shlibpath_overrides_runpath=no
17849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17851 esac
17854 sysv4*MP*)
17855 if test -d /usr/nec ;then
17856 version_type=linux
17857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17858 soname_spec='$libname${shared_ext}.$major'
17859 shlibpath_var=LD_LIBRARY_PATH
17863 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17864 version_type=freebsd-elf
17865 need_lib_prefix=no
17866 need_version=no
17867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17868 soname_spec='${libname}${release}${shared_ext}$major'
17869 shlibpath_var=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath=yes
17871 hardcode_into_libs=yes
17872 if test "$with_gnu_ld" = yes; then
17873 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17874 else
17875 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17876 case $host_os in
17877 sco3.2v5*)
17878 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17880 esac
17882 sys_lib_dlsearch_path_spec='/usr/lib'
17885 tpf*)
17886 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17887 version_type=linux
17888 need_lib_prefix=no
17889 need_version=no
17890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891 shlibpath_var=LD_LIBRARY_PATH
17892 shlibpath_overrides_runpath=no
17893 hardcode_into_libs=yes
17896 uts4*)
17897 version_type=linux
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17899 soname_spec='${libname}${release}${shared_ext}$major'
17900 shlibpath_var=LD_LIBRARY_PATH
17904 dynamic_linker=no
17906 esac
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17908 $as_echo "$dynamic_linker" >&6; }
17909 test "$dynamic_linker" = no && can_build_shared=no
17911 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17912 if test "$GCC" = yes; then
17913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17916 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17917 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17919 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17920 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18015 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18016 hardcode_action=
18017 if test -n "$hardcode_libdir_flag_spec" ||
18018 test -n "$runpath_var" ||
18019 test "X$hardcode_automatic" = "Xyes" ; then
18021 # We can hardcode non-existent directories.
18022 if test "$hardcode_direct" != no &&
18023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18024 # have to relink, otherwise we might link with an installed library
18025 # when we should be linking with a yet-to-be-installed one
18026 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18027 test "$hardcode_minus_L" != no; then
18028 # Linking always hardcodes the temporary library directory.
18029 hardcode_action=relink
18030 else
18031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18032 hardcode_action=immediate
18034 else
18035 # We cannot hardcode anything, or else we can only hardcode existing
18036 # directories.
18037 hardcode_action=unsupported
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18040 $as_echo "$hardcode_action" >&6; }
18042 if test "$hardcode_action" = relink ||
18043 test "$inherit_rpath" = yes; then
18044 # Fast installation is not supported
18045 enable_fast_install=no
18046 elif test "$shlibpath_overrides_runpath" = yes ||
18047 test "$enable_shared" = no; then
18048 # Fast installation is not necessary
18049 enable_fast_install=needless
18057 if test "x$enable_dlopen" != xyes; then
18058 enable_dlopen=unknown
18059 enable_dlopen_self=unknown
18060 enable_dlopen_self_static=unknown
18061 else
18062 lt_cv_dlopen=no
18063 lt_cv_dlopen_libs=
18065 case $host_os in
18066 beos*)
18067 lt_cv_dlopen="load_add_on"
18068 lt_cv_dlopen_libs=
18069 lt_cv_dlopen_self=yes
18072 mingw* | pw32* | cegcc*)
18073 lt_cv_dlopen="LoadLibrary"
18074 lt_cv_dlopen_libs=
18077 cygwin*)
18078 lt_cv_dlopen="dlopen"
18079 lt_cv_dlopen_libs=
18082 darwin*)
18083 # if libdl is installed we need to link against it
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18085 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18087 $as_echo_n "(cached) " >&6
18088 else
18089 ac_check_lib_save_LIBS=$LIBS
18090 LIBS="-ldl $LIBS"
18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18094 /* Override any GCC internal prototype to avoid an error.
18095 Use char because int might match the return type of a GCC
18096 builtin and then its argument prototype would still apply. */
18097 #ifdef __cplusplus
18098 extern "C"
18099 #endif
18100 char dlopen ();
18102 main ()
18104 return dlopen ();
18106 return 0;
18108 _ACEOF
18109 if ac_fn_c_try_link "$LINENO"; then :
18110 ac_cv_lib_dl_dlopen=yes
18111 else
18112 ac_cv_lib_dl_dlopen=no
18114 rm -f core conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18120 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18122 else
18124 lt_cv_dlopen="dyld"
18125 lt_cv_dlopen_libs=
18126 lt_cv_dlopen_self=yes
18133 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18134 if test "x$ac_cv_func_shl_load" = x""yes; then :
18135 lt_cv_dlopen="shl_load"
18136 else
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18138 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18139 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18140 $as_echo_n "(cached) " >&6
18141 else
18142 ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-ldld $LIBS"
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char shl_load ();
18155 main ()
18157 return shl_load ();
18159 return 0;
18161 _ACEOF
18162 if ac_fn_c_try_link "$LINENO"; then :
18163 ac_cv_lib_dld_shl_load=yes
18164 else
18165 ac_cv_lib_dld_shl_load=no
18167 rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18169 LIBS=$ac_check_lib_save_LIBS
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18172 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18173 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18174 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18175 else
18176 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18177 if test "x$ac_cv_func_dlopen" = x""yes; then :
18178 lt_cv_dlopen="dlopen"
18179 else
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18182 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18183 $as_echo_n "(cached) " >&6
18184 else
18185 ac_check_lib_save_LIBS=$LIBS
18186 LIBS="-ldl $LIBS"
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char dlopen ();
18198 main ()
18200 return dlopen ();
18202 return 0;
18204 _ACEOF
18205 if ac_fn_c_try_link "$LINENO"; then :
18206 ac_cv_lib_dl_dlopen=yes
18207 else
18208 ac_cv_lib_dl_dlopen=no
18210 rm -f core conftest.err conftest.$ac_objext \
18211 conftest$ac_exeext conftest.$ac_ext
18212 LIBS=$ac_check_lib_save_LIBS
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18215 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18216 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18218 else
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18220 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18221 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18223 else
18224 ac_check_lib_save_LIBS=$LIBS
18225 LIBS="-lsvld $LIBS"
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18232 #ifdef __cplusplus
18233 extern "C"
18234 #endif
18235 char dlopen ();
18237 main ()
18239 return dlopen ();
18241 return 0;
18243 _ACEOF
18244 if ac_fn_c_try_link "$LINENO"; then :
18245 ac_cv_lib_svld_dlopen=yes
18246 else
18247 ac_cv_lib_svld_dlopen=no
18249 rm -f core conftest.err conftest.$ac_objext \
18250 conftest$ac_exeext conftest.$ac_ext
18251 LIBS=$ac_check_lib_save_LIBS
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18254 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18255 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18257 else
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18259 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18260 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18261 $as_echo_n "(cached) " >&6
18262 else
18263 ac_check_lib_save_LIBS=$LIBS
18264 LIBS="-ldld $LIBS"
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18268 /* Override any GCC internal prototype to avoid an error.
18269 Use char because int might match the return type of a GCC
18270 builtin and then its argument prototype would still apply. */
18271 #ifdef __cplusplus
18272 extern "C"
18273 #endif
18274 char dld_link ();
18276 main ()
18278 return dld_link ();
18280 return 0;
18282 _ACEOF
18283 if ac_fn_c_try_link "$LINENO"; then :
18284 ac_cv_lib_dld_dld_link=yes
18285 else
18286 ac_cv_lib_dld_dld_link=no
18288 rm -f core conftest.err conftest.$ac_objext \
18289 conftest$ac_exeext conftest.$ac_ext
18290 LIBS=$ac_check_lib_save_LIBS
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18293 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18294 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18295 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18314 esac
18316 if test "x$lt_cv_dlopen" != xno; then
18317 enable_dlopen=yes
18318 else
18319 enable_dlopen=no
18322 case $lt_cv_dlopen in
18323 dlopen)
18324 save_CPPFLAGS="$CPPFLAGS"
18325 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18327 save_LDFLAGS="$LDFLAGS"
18328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18330 save_LIBS="$LIBS"
18331 LIBS="$lt_cv_dlopen_libs $LIBS"
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18334 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18335 if test "${lt_cv_dlopen_self+set}" = set; then :
18336 $as_echo_n "(cached) " >&6
18337 else
18338 if test "$cross_compiling" = yes; then :
18339 lt_cv_dlopen_self=cross
18340 else
18341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18342 lt_status=$lt_dlunknown
18343 cat > conftest.$ac_ext <<_LT_EOF
18344 #line 18344 "configure"
18345 #include "confdefs.h"
18347 #if HAVE_DLFCN_H
18348 #include <dlfcn.h>
18349 #endif
18351 #include <stdio.h>
18353 #ifdef RTLD_GLOBAL
18354 # define LT_DLGLOBAL RTLD_GLOBAL
18355 #else
18356 # ifdef DL_GLOBAL
18357 # define LT_DLGLOBAL DL_GLOBAL
18358 # else
18359 # define LT_DLGLOBAL 0
18360 # endif
18361 #endif
18363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18364 find out it does not work in some platform. */
18365 #ifndef LT_DLLAZY_OR_NOW
18366 # ifdef RTLD_LAZY
18367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18368 # else
18369 # ifdef DL_LAZY
18370 # define LT_DLLAZY_OR_NOW DL_LAZY
18371 # else
18372 # ifdef RTLD_NOW
18373 # define LT_DLLAZY_OR_NOW RTLD_NOW
18374 # else
18375 # ifdef DL_NOW
18376 # define LT_DLLAZY_OR_NOW DL_NOW
18377 # else
18378 # define LT_DLLAZY_OR_NOW 0
18379 # endif
18380 # endif
18381 # endif
18382 # endif
18383 #endif
18385 /* When -fvisbility=hidden is used, assume the code has been annotated
18386 correspondingly for the symbols needed. */
18387 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18388 void fnord () __attribute__((visibility("default")));
18389 #endif
18391 void fnord () { int i=42; }
18392 int main ()
18394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18395 int status = $lt_dlunknown;
18397 if (self)
18399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18400 else
18402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18403 else puts (dlerror ());
18405 /* dlclose (self); */
18407 else
18408 puts (dlerror ());
18410 return status;
18412 _LT_EOF
18413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18414 (eval $ac_link) 2>&5
18415 ac_status=$?
18416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18417 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18418 (./conftest; exit; ) >&5 2>/dev/null
18419 lt_status=$?
18420 case x$lt_status in
18421 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18422 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18423 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18424 esac
18425 else :
18426 # compilation failed
18427 lt_cv_dlopen_self=no
18430 rm -fr conftest*
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18435 $as_echo "$lt_cv_dlopen_self" >&6; }
18437 if test "x$lt_cv_dlopen_self" = xyes; then
18438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18440 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18441 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18442 $as_echo_n "(cached) " >&6
18443 else
18444 if test "$cross_compiling" = yes; then :
18445 lt_cv_dlopen_self_static=cross
18446 else
18447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18448 lt_status=$lt_dlunknown
18449 cat > conftest.$ac_ext <<_LT_EOF
18450 #line 18450 "configure"
18451 #include "confdefs.h"
18453 #if HAVE_DLFCN_H
18454 #include <dlfcn.h>
18455 #endif
18457 #include <stdio.h>
18459 #ifdef RTLD_GLOBAL
18460 # define LT_DLGLOBAL RTLD_GLOBAL
18461 #else
18462 # ifdef DL_GLOBAL
18463 # define LT_DLGLOBAL DL_GLOBAL
18464 # else
18465 # define LT_DLGLOBAL 0
18466 # endif
18467 #endif
18469 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18470 find out it does not work in some platform. */
18471 #ifndef LT_DLLAZY_OR_NOW
18472 # ifdef RTLD_LAZY
18473 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18474 # else
18475 # ifdef DL_LAZY
18476 # define LT_DLLAZY_OR_NOW DL_LAZY
18477 # else
18478 # ifdef RTLD_NOW
18479 # define LT_DLLAZY_OR_NOW RTLD_NOW
18480 # else
18481 # ifdef DL_NOW
18482 # define LT_DLLAZY_OR_NOW DL_NOW
18483 # else
18484 # define LT_DLLAZY_OR_NOW 0
18485 # endif
18486 # endif
18487 # endif
18488 # endif
18489 #endif
18491 /* When -fvisbility=hidden is used, assume the code has been annotated
18492 correspondingly for the symbols needed. */
18493 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18494 void fnord () __attribute__((visibility("default")));
18495 #endif
18497 void fnord () { int i=42; }
18498 int main ()
18500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18501 int status = $lt_dlunknown;
18503 if (self)
18505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18506 else
18508 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18509 else puts (dlerror ());
18511 /* dlclose (self); */
18513 else
18514 puts (dlerror ());
18516 return status;
18518 _LT_EOF
18519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18520 (eval $ac_link) 2>&5
18521 ac_status=$?
18522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18523 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18524 (./conftest; exit; ) >&5 2>/dev/null
18525 lt_status=$?
18526 case x$lt_status in
18527 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18528 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18529 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18530 esac
18531 else :
18532 # compilation failed
18533 lt_cv_dlopen_self_static=no
18536 rm -fr conftest*
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18541 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18544 CPPFLAGS="$save_CPPFLAGS"
18545 LDFLAGS="$save_LDFLAGS"
18546 LIBS="$save_LIBS"
18548 esac
18550 case $lt_cv_dlopen_self in
18551 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18552 *) enable_dlopen_self=unknown ;;
18553 esac
18555 case $lt_cv_dlopen_self_static in
18556 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18557 *) enable_dlopen_self_static=unknown ;;
18558 esac
18577 striplib=
18578 old_striplib=
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18580 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18581 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18582 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18583 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18585 $as_echo "yes" >&6; }
18586 else
18587 # FIXME - insert some real tests, host_os isn't really good enough
18588 case $host_os in
18589 darwin*)
18590 if test -n "$STRIP" ; then
18591 striplib="$STRIP -x"
18592 old_striplib="$STRIP -S"
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18594 $as_echo "yes" >&6; }
18595 else
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18597 $as_echo "no" >&6; }
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18604 esac
18618 # Report which library types will actually be built
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18620 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18622 $as_echo "$can_build_shared" >&6; }
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18625 $as_echo_n "checking whether to build shared libraries... " >&6; }
18626 test "$can_build_shared" = "no" && enable_shared=no
18628 # On AIX, shared libraries and static libraries use the same namespace, and
18629 # are all built from PIC.
18630 case $host_os in
18631 aix3*)
18632 test "$enable_shared" = yes && enable_static=no
18633 if test -n "$RANLIB"; then
18634 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18635 postinstall_cmds='$RANLIB $lib'
18639 aix[4-9]*)
18640 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18641 test "$enable_shared" = yes && enable_static=no
18644 esac
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18646 $as_echo "$enable_shared" >&6; }
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18649 $as_echo_n "checking whether to build static libraries... " >&6; }
18650 # Make sure either enable_shared or enable_static is yes.
18651 test "$enable_shared" = yes || enable_static=yes
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18653 $as_echo "$enable_static" >&6; }
18659 ac_ext=cpp
18660 ac_cpp='$CXXCPP $CPPFLAGS'
18661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18665 CC="$lt_save_CC"
18667 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18668 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18669 (test "X$CXX" != "Xg++"))) ; then
18670 ac_ext=cpp
18671 ac_cpp='$CXXCPP $CPPFLAGS'
18672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18676 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18677 if test -z "$CXXCPP"; then
18678 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18679 $as_echo_n "(cached) " >&6
18680 else
18681 # Double quotes because CXXCPP needs to be expanded
18682 for CXXCPP in "$CXX -E" "/lib/cpp"
18684 ac_preproc_ok=false
18685 for ac_cxx_preproc_warn_flag in '' yes
18687 # Use a header file that comes with gcc, so configuring glibc
18688 # with a fresh cross-compiler works.
18689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 # <limits.h> exists even on freestanding compilers.
18691 # On the NeXT, cc -E runs the code through the compiler's parser,
18692 # not just through cpp. "Syntax error" is here to catch this case.
18693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694 /* end confdefs.h. */
18695 #ifdef __STDC__
18696 # include <limits.h>
18697 #else
18698 # include <assert.h>
18699 #endif
18700 Syntax error
18701 _ACEOF
18702 if ac_fn_cxx_try_cpp "$LINENO"; then :
18704 else
18705 # Broken: fails on valid input.
18706 continue
18708 rm -f conftest.err conftest.$ac_ext
18710 # OK, works on sane cases. Now check whether nonexistent headers
18711 # can be detected and how.
18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714 #include <ac_nonexistent.h>
18715 _ACEOF
18716 if ac_fn_cxx_try_cpp "$LINENO"; then :
18717 # Broken: success on invalid input.
18718 continue
18719 else
18720 # Passes both tests.
18721 ac_preproc_ok=:
18722 break
18724 rm -f conftest.err conftest.$ac_ext
18726 done
18727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18728 rm -f conftest.err conftest.$ac_ext
18729 if $ac_preproc_ok; then :
18730 break
18733 done
18734 ac_cv_prog_CXXCPP=$CXXCPP
18737 CXXCPP=$ac_cv_prog_CXXCPP
18738 else
18739 ac_cv_prog_CXXCPP=$CXXCPP
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18742 $as_echo "$CXXCPP" >&6; }
18743 ac_preproc_ok=false
18744 for ac_cxx_preproc_warn_flag in '' yes
18746 # Use a header file that comes with gcc, so configuring glibc
18747 # with a fresh cross-compiler works.
18748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18749 # <limits.h> exists even on freestanding compilers.
18750 # On the NeXT, cc -E runs the code through the compiler's parser,
18751 # not just through cpp. "Syntax error" is here to catch this case.
18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18754 #ifdef __STDC__
18755 # include <limits.h>
18756 #else
18757 # include <assert.h>
18758 #endif
18759 Syntax error
18760 _ACEOF
18761 if ac_fn_cxx_try_cpp "$LINENO"; then :
18763 else
18764 # Broken: fails on valid input.
18765 continue
18767 rm -f conftest.err conftest.$ac_ext
18769 # OK, works on sane cases. Now check whether nonexistent headers
18770 # can be detected and how.
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18773 #include <ac_nonexistent.h>
18774 _ACEOF
18775 if ac_fn_cxx_try_cpp "$LINENO"; then :
18776 # Broken: success on invalid input.
18777 continue
18778 else
18779 # Passes both tests.
18780 ac_preproc_ok=:
18781 break
18783 rm -f conftest.err conftest.$ac_ext
18785 done
18786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18787 rm -f conftest.err conftest.$ac_ext
18788 if $ac_preproc_ok; then :
18790 else
18791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18793 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18794 See \`config.log' for more details." "$LINENO" 5; }
18797 ac_ext=cpp
18798 ac_cpp='$CXXCPP $CPPFLAGS'
18799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18803 else
18804 _lt_caught_CXX_error=yes
18807 ac_ext=cpp
18808 ac_cpp='$CXXCPP $CPPFLAGS'
18809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18813 archive_cmds_need_lc_CXX=no
18814 allow_undefined_flag_CXX=
18815 always_export_symbols_CXX=no
18816 archive_expsym_cmds_CXX=
18817 compiler_needs_object_CXX=no
18818 export_dynamic_flag_spec_CXX=
18819 hardcode_direct_CXX=no
18820 hardcode_direct_absolute_CXX=no
18821 hardcode_libdir_flag_spec_CXX=
18822 hardcode_libdir_flag_spec_ld_CXX=
18823 hardcode_libdir_separator_CXX=
18824 hardcode_minus_L_CXX=no
18825 hardcode_shlibpath_var_CXX=unsupported
18826 hardcode_automatic_CXX=no
18827 inherit_rpath_CXX=no
18828 module_cmds_CXX=
18829 module_expsym_cmds_CXX=
18830 link_all_deplibs_CXX=unknown
18831 old_archive_cmds_CXX=$old_archive_cmds
18832 reload_flag_CXX=$reload_flag
18833 reload_cmds_CXX=$reload_cmds
18834 no_undefined_flag_CXX=
18835 whole_archive_flag_spec_CXX=
18836 enable_shared_with_static_runtimes_CXX=no
18838 # Source file extension for C++ test sources.
18839 ac_ext=cpp
18841 # Object file extension for compiled C++ test sources.
18842 objext=o
18843 objext_CXX=$objext
18845 # No sense in running all these tests if we already determined that
18846 # the CXX compiler isn't working. Some variables (like enable_shared)
18847 # are currently assumed to apply to all compilers on this platform,
18848 # and will be corrupted by setting them based on a non-working compiler.
18849 if test "$_lt_caught_CXX_error" != yes; then
18850 # Code to be used in simple compile tests
18851 lt_simple_compile_test_code="int some_variable = 0;"
18853 # Code to be used in simple link tests
18854 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18863 # If no C compiler was specified, use CC.
18864 LTCC=${LTCC-"$CC"}
18866 # If no C compiler flags were specified, use CFLAGS.
18867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18869 # Allow CC to be a program name with arguments.
18870 compiler=$CC
18873 # save warnings/boilerplate of simple test code
18874 ac_outfile=conftest.$ac_objext
18875 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18877 _lt_compiler_boilerplate=`cat conftest.err`
18878 $RM conftest*
18880 ac_outfile=conftest.$ac_objext
18881 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18883 _lt_linker_boilerplate=`cat conftest.err`
18884 $RM -r conftest*
18887 # Allow CC to be a program name with arguments.
18888 lt_save_CC=$CC
18889 lt_save_LD=$LD
18890 lt_save_GCC=$GCC
18891 GCC=$GXX
18892 lt_save_with_gnu_ld=$with_gnu_ld
18893 lt_save_path_LD=$lt_cv_path_LD
18894 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18895 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18896 else
18897 $as_unset lt_cv_prog_gnu_ld
18899 if test -n "${lt_cv_path_LDCXX+set}"; then
18900 lt_cv_path_LD=$lt_cv_path_LDCXX
18901 else
18902 $as_unset lt_cv_path_LD
18904 test -z "${LDCXX+set}" || LD=$LDCXX
18905 CC=${CXX-"c++"}
18906 compiler=$CC
18907 compiler_CXX=$CC
18908 for cc_temp in $compiler""; do
18909 case $cc_temp in
18910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18912 \-*) ;;
18913 *) break;;
18914 esac
18915 done
18916 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18919 if test -n "$compiler"; then
18920 # We don't want -fno-exception when compiling C++ code, so set the
18921 # no_builtin_flag separately
18922 if test "$GXX" = yes; then
18923 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18924 else
18925 lt_prog_compiler_no_builtin_flag_CXX=
18928 if test "$GXX" = yes; then
18929 # Set up default GNU C++ configuration
18933 # Check whether --with-gnu-ld was given.
18934 if test "${with_gnu_ld+set}" = set; then :
18935 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18936 else
18937 with_gnu_ld=no
18940 ac_prog=ld
18941 if test "$GCC" = yes; then
18942 # Check if gcc -print-prog-name=ld gives a path.
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18944 $as_echo_n "checking for ld used by $CC... " >&6; }
18945 case $host in
18946 *-*-mingw*)
18947 # gcc leaves a trailing carriage return which upsets mingw
18948 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18950 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18951 esac
18952 case $ac_prog in
18953 # Accept absolute paths.
18954 [\\/]* | ?:[\\/]*)
18955 re_direlt='/[^/][^/]*/\.\./'
18956 # Canonicalize the pathname of ld
18957 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18958 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18959 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18960 done
18961 test -z "$LD" && LD="$ac_prog"
18964 # If it fails, then pretend we aren't using GCC.
18965 ac_prog=ld
18968 # If it is relative, then search for the first ld in PATH.
18969 with_gnu_ld=unknown
18971 esac
18972 elif test "$with_gnu_ld" = yes; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18974 $as_echo_n "checking for GNU ld... " >&6; }
18975 else
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18977 $as_echo_n "checking for non-GNU ld... " >&6; }
18979 if test "${lt_cv_path_LD+set}" = set; then :
18980 $as_echo_n "(cached) " >&6
18981 else
18982 if test -z "$LD"; then
18983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18984 for ac_dir in $PATH; do
18985 IFS="$lt_save_ifs"
18986 test -z "$ac_dir" && ac_dir=.
18987 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18988 lt_cv_path_LD="$ac_dir/$ac_prog"
18989 # Check to see if the program is GNU ld. I'd rather use --version,
18990 # but apparently some variants of GNU ld only accept -v.
18991 # Break only if it was the GNU/non-GNU ld that we prefer.
18992 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18993 *GNU* | *'with BFD'*)
18994 test "$with_gnu_ld" != no && break
18997 test "$with_gnu_ld" != yes && break
18999 esac
19001 done
19002 IFS="$lt_save_ifs"
19003 else
19004 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19008 LD="$lt_cv_path_LD"
19009 if test -n "$LD"; then
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19011 $as_echo "$LD" >&6; }
19012 else
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19014 $as_echo "no" >&6; }
19016 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19018 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19019 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19020 $as_echo_n "(cached) " >&6
19021 else
19022 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19023 case `$LD -v 2>&1 </dev/null` in
19024 *GNU* | *'with BFD'*)
19025 lt_cv_prog_gnu_ld=yes
19028 lt_cv_prog_gnu_ld=no
19030 esac
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19033 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19034 with_gnu_ld=$lt_cv_prog_gnu_ld
19042 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19043 # archiving commands below assume that GNU ld is being used.
19044 if test "$with_gnu_ld" = yes; then
19045 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19046 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'
19048 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19049 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19051 # If archive_cmds runs LD, not CC, wlarc should be empty
19052 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19053 # investigate it a little bit more. (MM)
19054 wlarc='${wl}'
19056 # ancient GNU ld didn't support --whole-archive et. al.
19057 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19058 $GREP 'no-whole-archive' > /dev/null; then
19059 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19060 else
19061 whole_archive_flag_spec_CXX=
19063 else
19064 with_gnu_ld=no
19065 wlarc=
19067 # A generic and very simple default shared library creation
19068 # command for GNU C++ for the case where it uses the native
19069 # linker, instead of GNU ld. If possible, this setting should
19070 # overridden to take advantage of the native linker features on
19071 # the platform it is being used on.
19072 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19075 # Commands to make compiler produce verbose output that lists
19076 # what "hidden" libraries, object files and flags are used when
19077 # linking a shared library.
19078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19080 else
19081 GXX=no
19082 with_gnu_ld=no
19083 wlarc=
19086 # PORTME: fill in a description of your system's C++ link characteristics
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19088 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19089 ld_shlibs_CXX=yes
19090 case $host_os in
19091 aix3*)
19092 # FIXME: insert proper C++ library support
19093 ld_shlibs_CXX=no
19095 aix[4-9]*)
19096 if test "$host_cpu" = ia64; then
19097 # On IA64, the linker does run time linking by default, so we don't
19098 # have to do anything special.
19099 aix_use_runtimelinking=no
19100 exp_sym_flag='-Bexport'
19101 no_entry_flag=""
19102 else
19103 aix_use_runtimelinking=no
19105 # Test if we are trying to use run time linking or normal
19106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19107 # need to do runtime linking.
19108 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19109 for ld_flag in $LDFLAGS; do
19110 case $ld_flag in
19111 *-brtl*)
19112 aix_use_runtimelinking=yes
19113 break
19115 esac
19116 done
19118 esac
19120 exp_sym_flag='-bexport'
19121 no_entry_flag='-bnoentry'
19124 # When large executables or shared objects are built, AIX ld can
19125 # have problems creating the table of contents. If linking a library
19126 # or program results in "error TOC overflow" add -mminimal-toc to
19127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19130 archive_cmds_CXX=''
19131 hardcode_direct_CXX=yes
19132 hardcode_direct_absolute_CXX=yes
19133 hardcode_libdir_separator_CXX=':'
19134 link_all_deplibs_CXX=yes
19135 file_list_spec_CXX='${wl}-f,'
19137 if test "$GXX" = yes; then
19138 case $host_os in aix4.[012]|aix4.[012].*)
19139 # We only want to do this on AIX 4.2 and lower, the check
19140 # below for broken collect2 doesn't work under 4.3+
19141 collect2name=`${CC} -print-prog-name=collect2`
19142 if test -f "$collect2name" &&
19143 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19144 then
19145 # We have reworked collect2
19147 else
19148 # We have old collect2
19149 hardcode_direct_CXX=unsupported
19150 # It fails to find uninstalled libraries when the uninstalled
19151 # path is not listed in the libpath. Setting hardcode_minus_L
19152 # to unsupported forces relinking
19153 hardcode_minus_L_CXX=yes
19154 hardcode_libdir_flag_spec_CXX='-L$libdir'
19155 hardcode_libdir_separator_CXX=
19157 esac
19158 shared_flag='-shared'
19159 if test "$aix_use_runtimelinking" = yes; then
19160 shared_flag="$shared_flag "'${wl}-G'
19162 else
19163 # not using gcc
19164 if test "$host_cpu" = ia64; then
19165 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19166 # chokes on -Wl,-G. The following line is correct:
19167 shared_flag='-G'
19168 else
19169 if test "$aix_use_runtimelinking" = yes; then
19170 shared_flag='${wl}-G'
19171 else
19172 shared_flag='${wl}-bM:SRE'
19177 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19178 # It seems that -bexpall does not export symbols beginning with
19179 # underscore (_), so it is better to generate a list of symbols to
19180 # export.
19181 always_export_symbols_CXX=yes
19182 if test "$aix_use_runtimelinking" = yes; then
19183 # Warning - without using the other runtime loading flags (-brtl),
19184 # -berok will link without error, but may produce a broken library.
19185 allow_undefined_flag_CXX='-berok'
19186 # Determine the default libpath from the value encoded in an empty
19187 # executable.
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19192 main ()
19196 return 0;
19198 _ACEOF
19199 if ac_fn_cxx_try_link "$LINENO"; then :
19201 lt_aix_libpath_sed='
19202 /Import File Strings/,/^$/ {
19203 /^0/ {
19204 s/^0 *\(.*\)$/\1/
19208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19209 # Check for a 64-bit object if we didn't find anything.
19210 if test -z "$aix_libpath"; then
19211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19214 rm -f core conftest.err conftest.$ac_objext \
19215 conftest$ac_exeext conftest.$ac_ext
19216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19218 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19220 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"
19221 else
19222 if test "$host_cpu" = ia64; then
19223 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19224 allow_undefined_flag_CXX="-z nodefs"
19225 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"
19226 else
19227 # Determine the default libpath from the value encoded in an
19228 # empty executable.
19229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19230 /* end confdefs.h. */
19233 main ()
19237 return 0;
19239 _ACEOF
19240 if ac_fn_cxx_try_link "$LINENO"; then :
19242 lt_aix_libpath_sed='
19243 /Import File Strings/,/^$/ {
19244 /^0/ {
19245 s/^0 *\(.*\)$/\1/
19249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19250 # Check for a 64-bit object if we didn't find anything.
19251 if test -z "$aix_libpath"; then
19252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19255 rm -f core conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
19257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19259 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19260 # Warning - without using the other run time loading flags,
19261 # -berok will link without error, but may produce a broken library.
19262 no_undefined_flag_CXX=' ${wl}-bernotok'
19263 allow_undefined_flag_CXX=' ${wl}-berok'
19264 if test "$with_gnu_ld" = yes; then
19265 # We only use this code for GNU lds that support --whole-archive.
19266 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19267 else
19268 # Exported symbols can be pulled into shared objects from archives
19269 whole_archive_flag_spec_CXX='$convenience'
19271 archive_cmds_need_lc_CXX=yes
19272 # This is similar to how AIX traditionally builds its shared
19273 # libraries.
19274 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'
19279 beos*)
19280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19281 allow_undefined_flag_CXX=unsupported
19282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19283 # support --undefined. This deserves some investigation. FIXME
19284 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19285 else
19286 ld_shlibs_CXX=no
19290 chorus*)
19291 case $cc_basename in
19293 # FIXME: insert proper C++ library support
19294 ld_shlibs_CXX=no
19296 esac
19299 cygwin* | mingw* | pw32* | cegcc*)
19300 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19301 # as there is no search path for DLLs.
19302 hardcode_libdir_flag_spec_CXX='-L$libdir'
19303 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19304 allow_undefined_flag_CXX=unsupported
19305 always_export_symbols_CXX=no
19306 enable_shared_with_static_runtimes_CXX=yes
19308 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19309 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'
19310 # If the export-symbols file already is a .def file (1st line
19311 # is EXPORTS), use it as is; otherwise, prepend...
19312 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19313 cp $export_symbols $output_objdir/$soname.def;
19314 else
19315 echo EXPORTS > $output_objdir/$soname.def;
19316 cat $export_symbols >> $output_objdir/$soname.def;
19318 $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'
19319 else
19320 ld_shlibs_CXX=no
19323 darwin* | rhapsody*)
19326 archive_cmds_need_lc_CXX=no
19327 hardcode_direct_CXX=no
19328 hardcode_automatic_CXX=yes
19329 hardcode_shlibpath_var_CXX=unsupported
19330 if test "$lt_cv_ld_force_load" = "yes"; then
19331 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\"`'
19332 else
19333 whole_archive_flag_spec_CXX=''
19335 link_all_deplibs_CXX=yes
19336 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19337 case $cc_basename in
19338 ifort*) _lt_dar_can_shared=yes ;;
19339 *) _lt_dar_can_shared=$GCC ;;
19340 esac
19341 if test "$_lt_dar_can_shared" = "yes"; then
19342 output_verbose_link_cmd=func_echo_all
19343 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}"
19344 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19345 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}"
19346 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}"
19347 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19348 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}"
19349 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}"
19352 else
19353 ld_shlibs_CXX=no
19358 dgux*)
19359 case $cc_basename in
19360 ec++*)
19361 # FIXME: insert proper C++ library support
19362 ld_shlibs_CXX=no
19364 ghcx*)
19365 # Green Hills C++ Compiler
19366 # FIXME: insert proper C++ library support
19367 ld_shlibs_CXX=no
19370 # FIXME: insert proper C++ library support
19371 ld_shlibs_CXX=no
19373 esac
19376 freebsd2.*)
19377 # C++ shared libraries reported to be fairly broken before
19378 # switch to ELF
19379 ld_shlibs_CXX=no
19382 freebsd-elf*)
19383 archive_cmds_need_lc_CXX=no
19386 freebsd* | dragonfly*)
19387 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19388 # conventions
19389 ld_shlibs_CXX=yes
19392 gnu*)
19395 haiku*)
19396 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 link_all_deplibs_CXX=yes
19400 hpux9*)
19401 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19402 hardcode_libdir_separator_CXX=:
19403 export_dynamic_flag_spec_CXX='${wl}-E'
19404 hardcode_direct_CXX=yes
19405 hardcode_minus_L_CXX=yes # Not in the search PATH,
19406 # but as the default
19407 # location of the library.
19409 case $cc_basename in
19410 CC*)
19411 # FIXME: insert proper C++ library support
19412 ld_shlibs_CXX=no
19414 aCC*)
19415 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'
19416 # Commands to make compiler produce verbose output that lists
19417 # what "hidden" libraries, object files and flags are used when
19418 # linking a shared library.
19420 # There doesn't appear to be a way to prevent this compiler from
19421 # explicitly linking system object files so we need to strip them
19422 # from the output so that they don't get included in the library
19423 # dependencies.
19424 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"'
19427 if test "$GXX" = yes; then
19428 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'
19429 else
19430 # FIXME: insert proper C++ library support
19431 ld_shlibs_CXX=no
19434 esac
19437 hpux10*|hpux11*)
19438 if test $with_gnu_ld = no; then
19439 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19440 hardcode_libdir_separator_CXX=:
19442 case $host_cpu in
19443 hppa*64*|ia64*)
19446 export_dynamic_flag_spec_CXX='${wl}-E'
19448 esac
19450 case $host_cpu in
19451 hppa*64*|ia64*)
19452 hardcode_direct_CXX=no
19453 hardcode_shlibpath_var_CXX=no
19456 hardcode_direct_CXX=yes
19457 hardcode_direct_absolute_CXX=yes
19458 hardcode_minus_L_CXX=yes # Not in the search PATH,
19459 # but as the default
19460 # location of the library.
19462 esac
19464 case $cc_basename in
19465 CC*)
19466 # FIXME: insert proper C++ library support
19467 ld_shlibs_CXX=no
19469 aCC*)
19470 case $host_cpu in
19471 hppa*64*)
19472 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19474 ia64*)
19475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19480 esac
19481 # Commands to make compiler produce verbose output that lists
19482 # what "hidden" libraries, object files and flags are used when
19483 # linking a shared library.
19485 # There doesn't appear to be a way to prevent this compiler from
19486 # explicitly linking system object files so we need to strip them
19487 # from the output so that they don't get included in the library
19488 # dependencies.
19489 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"'
19492 if test "$GXX" = yes; then
19493 if test $with_gnu_ld = no; then
19494 case $host_cpu in
19495 hppa*64*)
19496 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19498 ia64*)
19499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19502 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'
19504 esac
19506 else
19507 # FIXME: insert proper C++ library support
19508 ld_shlibs_CXX=no
19511 esac
19514 interix[3-9]*)
19515 hardcode_direct_CXX=no
19516 hardcode_shlibpath_var_CXX=no
19517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19518 export_dynamic_flag_spec_CXX='${wl}-E'
19519 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19520 # Instead, shared libraries are loaded at an image base (0x10000000 by
19521 # default) and relocated if they conflict, which is a slow very memory
19522 # consuming and fragmenting process. To avoid this, we pick a random,
19523 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19524 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19525 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'
19526 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'
19528 irix5* | irix6*)
19529 case $cc_basename in
19530 CC*)
19531 # SGI C++
19532 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'
19534 # Archives containing C++ object files must be created using
19535 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19536 # necessary to make sure instantiated templates are included
19537 # in the archive.
19538 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19541 if test "$GXX" = yes; then
19542 if test "$with_gnu_ld" = no; then
19543 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'
19544 else
19545 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'
19548 link_all_deplibs_CXX=yes
19550 esac
19551 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19552 hardcode_libdir_separator_CXX=:
19553 inherit_rpath_CXX=yes
19556 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19557 case $cc_basename in
19558 KCC*)
19559 # Kuck and Associates, Inc. (KAI) C++ Compiler
19561 # KCC will only create a shared library if the output file
19562 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19563 # to its proper name (with version) after linking.
19564 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'
19565 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'
19566 # Commands to make compiler produce verbose output that lists
19567 # what "hidden" libraries, object files and flags are used when
19568 # linking a shared library.
19570 # There doesn't appear to be a way to prevent this compiler from
19571 # explicitly linking system object files so we need to strip them
19572 # from the output so that they don't get included in the library
19573 # dependencies.
19574 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"'
19576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19577 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19579 # Archives containing C++ object files must be created using
19580 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19581 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19583 icpc* | ecpc* )
19584 # Intel C++
19585 with_gnu_ld=yes
19586 # version 8.0 and above of icpc choke on multiply defined symbols
19587 # if we add $predep_objects and $postdep_objects, however 7.1 and
19588 # earlier do not add the objects themselves.
19589 case `$CC -V 2>&1` in
19590 *"Version 7."*)
19591 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19592 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'
19594 *) # Version 8.0 or newer
19595 tmp_idyn=
19596 case $host_cpu in
19597 ia64*) tmp_idyn=' -i_dynamic';;
19598 esac
19599 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19600 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'
19602 esac
19603 archive_cmds_need_lc_CXX=no
19604 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19605 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19606 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19608 pgCC* | pgcpp*)
19609 # Portland Group C++ compiler
19610 case `$CC -V` in
19611 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19612 prelink_cmds_CXX='tpldir=Template.dir~
19613 rm -rf $tpldir~
19614 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19615 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19616 old_archive_cmds_CXX='tpldir=Template.dir~
19617 rm -rf $tpldir~
19618 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19619 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19620 $RANLIB $oldlib'
19621 archive_cmds_CXX='tpldir=Template.dir~
19622 rm -rf $tpldir~
19623 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19624 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19625 archive_expsym_cmds_CXX='tpldir=Template.dir~
19626 rm -rf $tpldir~
19627 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19628 $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'
19630 *) # Version 6 and above use weak symbols
19631 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19632 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'
19634 esac
19636 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19637 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19638 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'
19640 cxx*)
19641 # Compaq C++
19642 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19643 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'
19645 runpath_var=LD_RUN_PATH
19646 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19647 hardcode_libdir_separator_CXX=:
19649 # Commands to make compiler produce verbose output that lists
19650 # what "hidden" libraries, object files and flags are used when
19651 # linking a shared library.
19653 # There doesn't appear to be a way to prevent this compiler from
19654 # explicitly linking system object files so we need to strip them
19655 # from the output so that they don't get included in the library
19656 # dependencies.
19657 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'
19659 xl* | mpixl* | bgxl*)
19660 # IBM XL 8.0 on PPC, with GNU ld
19661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19662 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19663 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19664 if test "x$supports_anon_versioning" = xyes; then
19665 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19667 echo "local: *; };" >> $output_objdir/$libname.ver~
19668 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19672 case `$CC -V 2>&1 | sed 5q` in
19673 *Sun\ C*)
19674 # Sun C++ 5.9
19675 no_undefined_flag_CXX=' -zdefs'
19676 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19677 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'
19678 hardcode_libdir_flag_spec_CXX='-R$libdir'
19679 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'
19680 compiler_needs_object_CXX=yes
19682 # Not sure whether something based on
19683 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19684 # would be better.
19685 output_verbose_link_cmd='func_echo_all'
19687 # Archives containing C++ object files must be created using
19688 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19689 # necessary to make sure instantiated templates are included
19690 # in the archive.
19691 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19693 esac
19695 esac
19698 lynxos*)
19699 # FIXME: insert proper C++ library support
19700 ld_shlibs_CXX=no
19703 m88k*)
19704 # FIXME: insert proper C++ library support
19705 ld_shlibs_CXX=no
19708 mvs*)
19709 case $cc_basename in
19710 cxx*)
19711 # FIXME: insert proper C++ library support
19712 ld_shlibs_CXX=no
19715 # FIXME: insert proper C++ library support
19716 ld_shlibs_CXX=no
19718 esac
19721 netbsd*)
19722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19723 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19724 wlarc=
19725 hardcode_libdir_flag_spec_CXX='-R$libdir'
19726 hardcode_direct_CXX=yes
19727 hardcode_shlibpath_var_CXX=no
19729 # Workaround some broken pre-1.5 toolchains
19730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19733 *nto* | *qnx*)
19734 ld_shlibs_CXX=yes
19737 openbsd2*)
19738 # C++ shared libraries are fairly broken
19739 ld_shlibs_CXX=no
19742 openbsd*)
19743 if test -f /usr/libexec/ld.so; then
19744 hardcode_direct_CXX=yes
19745 hardcode_shlibpath_var_CXX=no
19746 hardcode_direct_absolute_CXX=yes
19747 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19750 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19751 export_dynamic_flag_spec_CXX='${wl}-E'
19752 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19754 output_verbose_link_cmd=func_echo_all
19755 else
19756 ld_shlibs_CXX=no
19760 osf3* | osf4* | osf5*)
19761 case $cc_basename in
19762 KCC*)
19763 # Kuck and Associates, Inc. (KAI) C++ Compiler
19765 # KCC will only create a shared library if the output file
19766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19767 # to its proper name (with version) after linking.
19768 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'
19770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19771 hardcode_libdir_separator_CXX=:
19773 # Archives containing C++ object files must be created using
19774 # the KAI C++ compiler.
19775 case $host in
19776 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19777 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19778 esac
19780 RCC*)
19781 # Rational C++ 2.4.1
19782 # FIXME: insert proper C++ library support
19783 ld_shlibs_CXX=no
19785 cxx*)
19786 case $host in
19787 osf3*)
19788 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19789 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'
19790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19793 allow_undefined_flag_CXX=' -expect_unresolved \*'
19794 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'
19795 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19796 echo "-hidden">> $lib.exp~
19797 $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~
19798 $RM $lib.exp'
19799 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19801 esac
19803 hardcode_libdir_separator_CXX=:
19805 # Commands to make compiler produce verbose output that lists
19806 # what "hidden" libraries, object files and flags are used when
19807 # linking a shared library.
19809 # There doesn't appear to be a way to prevent this compiler from
19810 # explicitly linking system object files so we need to strip them
19811 # from the output so that they don't get included in the library
19812 # dependencies.
19813 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"'
19816 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19817 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19818 case $host in
19819 osf3*)
19820 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'
19823 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'
19825 esac
19827 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19828 hardcode_libdir_separator_CXX=:
19830 # Commands to make compiler produce verbose output that lists
19831 # what "hidden" libraries, object files and flags are used when
19832 # linking a shared library.
19833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19835 else
19836 # FIXME: insert proper C++ library support
19837 ld_shlibs_CXX=no
19840 esac
19843 psos*)
19844 # FIXME: insert proper C++ library support
19845 ld_shlibs_CXX=no
19848 sunos4*)
19849 case $cc_basename in
19850 CC*)
19851 # Sun C++ 4.x
19852 # FIXME: insert proper C++ library support
19853 ld_shlibs_CXX=no
19855 lcc*)
19856 # Lucid
19857 # FIXME: insert proper C++ library support
19858 ld_shlibs_CXX=no
19861 # FIXME: insert proper C++ library support
19862 ld_shlibs_CXX=no
19864 esac
19867 solaris*)
19868 case $cc_basename in
19869 CC*)
19870 # Sun C++ 4.2, 5.x and Centerline C++
19871 archive_cmds_need_lc_CXX=yes
19872 no_undefined_flag_CXX=' -zdefs'
19873 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19874 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19875 $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'
19877 hardcode_libdir_flag_spec_CXX='-R$libdir'
19878 hardcode_shlibpath_var_CXX=no
19879 case $host_os in
19880 solaris2.[0-5] | solaris2.[0-5].*) ;;
19882 # The compiler driver will combine and reorder linker options,
19883 # but understands `-z linker_flag'.
19884 # Supported since Solaris 2.6 (maybe 2.5.1?)
19885 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19887 esac
19888 link_all_deplibs_CXX=yes
19890 output_verbose_link_cmd='func_echo_all'
19892 # Archives containing C++ object files must be created using
19893 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19894 # necessary to make sure instantiated templates are included
19895 # in the archive.
19896 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19898 gcx*)
19899 # Green Hills C++ Compiler
19900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19902 # The C++ compiler must be used to create the archive.
19903 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19906 # GNU C++ compiler with Solaris linker
19907 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19908 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19909 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19910 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19911 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19912 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19914 # Commands to make compiler produce verbose output that lists
19915 # what "hidden" libraries, object files and flags are used when
19916 # linking a shared library.
19917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19918 else
19919 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19920 # platform.
19921 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19922 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19923 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19925 # Commands to make compiler produce verbose output that lists
19926 # what "hidden" libraries, object files and flags are used when
19927 # linking a shared library.
19928 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19931 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19932 case $host_os in
19933 solaris2.[0-5] | solaris2.[0-5].*) ;;
19935 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19937 esac
19940 esac
19943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19944 no_undefined_flag_CXX='${wl}-z,text'
19945 archive_cmds_need_lc_CXX=no
19946 hardcode_shlibpath_var_CXX=no
19947 runpath_var='LD_RUN_PATH'
19949 case $cc_basename in
19950 CC*)
19951 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19952 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19955 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19956 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19958 esac
19961 sysv5* | sco3.2v5* | sco5v6*)
19962 # Note: We can NOT use -z defs as we might desire, because we do not
19963 # link with -lc, and that would cause any symbols used from libc to
19964 # always be unresolved, which means just about no library would
19965 # ever link correctly. If we're not using GNU ld we use -z text
19966 # though, which does catch some bad symbols but isn't as heavy-handed
19967 # as -z defs.
19968 no_undefined_flag_CXX='${wl}-z,text'
19969 allow_undefined_flag_CXX='${wl}-z,nodefs'
19970 archive_cmds_need_lc_CXX=no
19971 hardcode_shlibpath_var_CXX=no
19972 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19973 hardcode_libdir_separator_CXX=':'
19974 link_all_deplibs_CXX=yes
19975 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19976 runpath_var='LD_RUN_PATH'
19978 case $cc_basename in
19979 CC*)
19980 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19981 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19982 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19983 '"$old_archive_cmds_CXX"
19984 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19985 '"$reload_cmds_CXX"
19988 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19989 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19991 esac
19994 tandem*)
19995 case $cc_basename in
19996 NCC*)
19997 # NonStop-UX NCC 3.20
19998 # FIXME: insert proper C++ library support
19999 ld_shlibs_CXX=no
20002 # FIXME: insert proper C++ library support
20003 ld_shlibs_CXX=no
20005 esac
20008 vxworks*)
20009 # FIXME: insert proper C++ library support
20010 ld_shlibs_CXX=no
20014 # FIXME: insert proper C++ library support
20015 ld_shlibs_CXX=no
20017 esac
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20020 $as_echo "$ld_shlibs_CXX" >&6; }
20021 test "$ld_shlibs_CXX" = no && can_build_shared=no
20023 GCC_CXX="$GXX"
20024 LD_CXX="$LD"
20026 ## CAVEAT EMPTOR:
20027 ## There is no encapsulation within the following macros, do not change
20028 ## the running order or otherwise move them around unless you know exactly
20029 ## what you are doing...
20030 # Dependencies to place before and after the object being linked:
20031 predep_objects_CXX=
20032 postdep_objects_CXX=
20033 predeps_CXX=
20034 postdeps_CXX=
20035 compiler_lib_search_path_CXX=
20037 cat > conftest.$ac_ext <<_LT_EOF
20038 class Foo
20040 public:
20041 Foo (void) { a = 0; }
20042 private:
20043 int a;
20045 _LT_EOF
20047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20048 (eval $ac_compile) 2>&5
20049 ac_status=$?
20050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20051 test $ac_status = 0; }; then
20052 # Parse the compiler output and extract the necessary
20053 # objects, libraries and library flags.
20055 # Sentinel used to keep track of whether or not we are before
20056 # the conftest object file.
20057 pre_test_object_deps_done=no
20059 for p in `eval "$output_verbose_link_cmd"`; do
20060 case $p in
20062 -L* | -R* | -l*)
20063 # Some compilers place space between "-{L,R}" and the path.
20064 # Remove the space.
20065 if test $p = "-L" ||
20066 test $p = "-R"; then
20067 prev=$p
20068 continue
20069 else
20070 prev=
20073 if test "$pre_test_object_deps_done" = no; then
20074 case $p in
20075 -L* | -R*)
20076 # Internal compiler library paths should come after those
20077 # provided the user. The postdeps already come after the
20078 # user supplied libs so there is no need to process them.
20079 if test -z "$compiler_lib_search_path_CXX"; then
20080 compiler_lib_search_path_CXX="${prev}${p}"
20081 else
20082 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20085 # The "-l" case would never come before the object being
20086 # linked, so don't bother handling this case.
20087 esac
20088 else
20089 if test -z "$postdeps_CXX"; then
20090 postdeps_CXX="${prev}${p}"
20091 else
20092 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20097 *.$objext)
20098 # This assumes that the test object file only shows up
20099 # once in the compiler output.
20100 if test "$p" = "conftest.$objext"; then
20101 pre_test_object_deps_done=yes
20102 continue
20105 if test "$pre_test_object_deps_done" = no; then
20106 if test -z "$predep_objects_CXX"; then
20107 predep_objects_CXX="$p"
20108 else
20109 predep_objects_CXX="$predep_objects_CXX $p"
20111 else
20112 if test -z "$postdep_objects_CXX"; then
20113 postdep_objects_CXX="$p"
20114 else
20115 postdep_objects_CXX="$postdep_objects_CXX $p"
20120 *) ;; # Ignore the rest.
20122 esac
20123 done
20125 # Clean up.
20126 rm -f a.out a.exe
20127 else
20128 echo "libtool.m4: error: problem compiling CXX test program"
20131 $RM -f confest.$objext
20133 # PORTME: override above test on systems where it is broken
20134 case $host_os in
20135 interix[3-9]*)
20136 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20137 # hack all around it, let's just trust "g++" to DTRT.
20138 predep_objects_CXX=
20139 postdep_objects_CXX=
20140 postdeps_CXX=
20143 linux*)
20144 case `$CC -V 2>&1 | sed 5q` in
20145 *Sun\ C*)
20146 # Sun C++ 5.9
20148 # The more standards-conforming stlport4 library is
20149 # incompatible with the Cstd library. Avoid specifying
20150 # it if it's in CXXFLAGS. Ignore libCrun as
20151 # -library=stlport4 depends on it.
20152 case " $CXX $CXXFLAGS " in
20153 *" -library=stlport4 "*)
20154 solaris_use_stlport4=yes
20156 esac
20158 if test "$solaris_use_stlport4" != yes; then
20159 postdeps_CXX='-library=Cstd -library=Crun'
20162 esac
20165 solaris*)
20166 case $cc_basename in
20167 CC*)
20168 # The more standards-conforming stlport4 library is
20169 # incompatible with the Cstd library. Avoid specifying
20170 # it if it's in CXXFLAGS. Ignore libCrun as
20171 # -library=stlport4 depends on it.
20172 case " $CXX $CXXFLAGS " in
20173 *" -library=stlport4 "*)
20174 solaris_use_stlport4=yes
20176 esac
20178 # Adding this requires a known-good setup of shared libraries for
20179 # Sun compiler versions before 5.6, else PIC objects from an old
20180 # archive will be linked into the output, leading to subtle bugs.
20181 if test "$solaris_use_stlport4" != yes; then
20182 postdeps_CXX='-library=Cstd -library=Crun'
20185 esac
20187 esac
20190 case " $postdeps_CXX " in
20191 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20192 esac
20193 compiler_lib_search_dirs_CXX=
20194 if test -n "${compiler_lib_search_path_CXX}"; then
20195 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20228 lt_prog_compiler_wl_CXX=
20229 lt_prog_compiler_pic_CXX=
20230 lt_prog_compiler_static_CXX=
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20233 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20235 # C++ specific cases for pic, static, wl, etc.
20236 if test "$GXX" = yes; then
20237 lt_prog_compiler_wl_CXX='-Wl,'
20238 lt_prog_compiler_static_CXX='-static'
20240 case $host_os in
20241 aix*)
20242 # All AIX code is PIC.
20243 if test "$host_cpu" = ia64; then
20244 # AIX 5 now supports IA64 processor
20245 lt_prog_compiler_static_CXX='-Bstatic'
20247 lt_prog_compiler_pic_CXX='-fPIC'
20250 amigaos*)
20251 case $host_cpu in
20252 powerpc)
20253 # see comment about AmigaOS4 .so support
20254 lt_prog_compiler_pic_CXX='-fPIC'
20256 m68k)
20257 # FIXME: we need at least 68020 code to build shared libraries, but
20258 # adding the `-m68020' flag to GCC prevents building anything better,
20259 # like `-m68040'.
20260 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20262 esac
20265 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20266 # PIC is the default for these OSes.
20268 mingw* | cygwin* | os2* | pw32* | cegcc*)
20269 # This hack is so that the source file can tell whether it is being
20270 # built for inclusion in a dll (and should export symbols for example).
20271 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20272 # (--disable-auto-import) libraries
20273 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20275 darwin* | rhapsody*)
20276 # PIC is the default on this platform
20277 # Common symbols not allowed in MH_DYLIB files
20278 lt_prog_compiler_pic_CXX='-fno-common'
20280 *djgpp*)
20281 # DJGPP does not support shared libraries at all
20282 lt_prog_compiler_pic_CXX=
20284 haiku*)
20285 # PIC is the default for Haiku.
20286 # The "-static" flag exists, but is broken.
20287 lt_prog_compiler_static_CXX=
20289 interix[3-9]*)
20290 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20291 # Instead, we relocate shared libraries at runtime.
20293 sysv4*MP*)
20294 if test -d /usr/nec; then
20295 lt_prog_compiler_pic_CXX=-Kconform_pic
20298 hpux*)
20299 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20300 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20301 # sets the default TLS model and affects inlining.
20302 case $host_cpu in
20303 hppa*64*)
20306 lt_prog_compiler_pic_CXX='-fPIC'
20308 esac
20310 *qnx* | *nto*)
20311 # QNX uses GNU C++, but need to define -shared option too, otherwise
20312 # it will coredump.
20313 lt_prog_compiler_pic_CXX='-fPIC -shared'
20316 lt_prog_compiler_pic_CXX='-fPIC'
20318 esac
20319 else
20320 case $host_os in
20321 aix[4-9]*)
20322 # All AIX code is PIC.
20323 if test "$host_cpu" = ia64; then
20324 # AIX 5 now supports IA64 processor
20325 lt_prog_compiler_static_CXX='-Bstatic'
20326 else
20327 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20330 chorus*)
20331 case $cc_basename in
20332 cxch68*)
20333 # Green Hills C++ Compiler
20334 # _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"
20336 esac
20338 dgux*)
20339 case $cc_basename in
20340 ec++*)
20341 lt_prog_compiler_pic_CXX='-KPIC'
20343 ghcx*)
20344 # Green Hills C++ Compiler
20345 lt_prog_compiler_pic_CXX='-pic'
20349 esac
20351 freebsd* | dragonfly*)
20352 # FreeBSD uses GNU C++
20354 hpux9* | hpux10* | hpux11*)
20355 case $cc_basename in
20356 CC*)
20357 lt_prog_compiler_wl_CXX='-Wl,'
20358 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20359 if test "$host_cpu" != ia64; then
20360 lt_prog_compiler_pic_CXX='+Z'
20363 aCC*)
20364 lt_prog_compiler_wl_CXX='-Wl,'
20365 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20366 case $host_cpu in
20367 hppa*64*|ia64*)
20368 # +Z the default
20371 lt_prog_compiler_pic_CXX='+Z'
20373 esac
20377 esac
20379 interix*)
20380 # This is c89, which is MS Visual C++ (no shared libs)
20381 # Anyone wants to do a port?
20383 irix5* | irix6* | nonstopux*)
20384 case $cc_basename in
20385 CC*)
20386 lt_prog_compiler_wl_CXX='-Wl,'
20387 lt_prog_compiler_static_CXX='-non_shared'
20388 # CC pic flag -KPIC is the default.
20392 esac
20394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20395 case $cc_basename in
20396 KCC*)
20397 # KAI C++ Compiler
20398 lt_prog_compiler_wl_CXX='--backend -Wl,'
20399 lt_prog_compiler_pic_CXX='-fPIC'
20401 ecpc* )
20402 # old Intel C++ for x86_64 which still supported -KPIC.
20403 lt_prog_compiler_wl_CXX='-Wl,'
20404 lt_prog_compiler_pic_CXX='-KPIC'
20405 lt_prog_compiler_static_CXX='-static'
20407 icpc* )
20408 # Intel C++, used to be incompatible with GCC.
20409 # ICC 10 doesn't accept -KPIC any more.
20410 lt_prog_compiler_wl_CXX='-Wl,'
20411 lt_prog_compiler_pic_CXX='-fPIC'
20412 lt_prog_compiler_static_CXX='-static'
20414 pgCC* | pgcpp*)
20415 # Portland Group C++ compiler
20416 lt_prog_compiler_wl_CXX='-Wl,'
20417 lt_prog_compiler_pic_CXX='-fpic'
20418 lt_prog_compiler_static_CXX='-Bstatic'
20420 cxx*)
20421 # Compaq C++
20422 # Make sure the PIC flag is empty. It appears that all Alpha
20423 # Linux and Compaq Tru64 Unix objects are PIC.
20424 lt_prog_compiler_pic_CXX=
20425 lt_prog_compiler_static_CXX='-non_shared'
20427 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20428 # IBM XL 8.0, 9.0 on PPC and BlueGene
20429 lt_prog_compiler_wl_CXX='-Wl,'
20430 lt_prog_compiler_pic_CXX='-qpic'
20431 lt_prog_compiler_static_CXX='-qstaticlink'
20434 case `$CC -V 2>&1 | sed 5q` in
20435 *Sun\ C*)
20436 # Sun C++ 5.9
20437 lt_prog_compiler_pic_CXX='-KPIC'
20438 lt_prog_compiler_static_CXX='-Bstatic'
20439 lt_prog_compiler_wl_CXX='-Qoption ld '
20441 esac
20443 esac
20445 lynxos*)
20447 m88k*)
20449 mvs*)
20450 case $cc_basename in
20451 cxx*)
20452 lt_prog_compiler_pic_CXX='-W c,exportall'
20456 esac
20458 netbsd*)
20460 *qnx* | *nto*)
20461 # QNX uses GNU C++, but need to define -shared option too, otherwise
20462 # it will coredump.
20463 lt_prog_compiler_pic_CXX='-fPIC -shared'
20465 osf3* | osf4* | osf5*)
20466 case $cc_basename in
20467 KCC*)
20468 lt_prog_compiler_wl_CXX='--backend -Wl,'
20470 RCC*)
20471 # Rational C++ 2.4.1
20472 lt_prog_compiler_pic_CXX='-pic'
20474 cxx*)
20475 # Digital/Compaq C++
20476 lt_prog_compiler_wl_CXX='-Wl,'
20477 # Make sure the PIC flag is empty. It appears that all Alpha
20478 # Linux and Compaq Tru64 Unix objects are PIC.
20479 lt_prog_compiler_pic_CXX=
20480 lt_prog_compiler_static_CXX='-non_shared'
20484 esac
20486 psos*)
20488 solaris*)
20489 case $cc_basename in
20490 CC*)
20491 # Sun C++ 4.2, 5.x and Centerline C++
20492 lt_prog_compiler_pic_CXX='-KPIC'
20493 lt_prog_compiler_static_CXX='-Bstatic'
20494 lt_prog_compiler_wl_CXX='-Qoption ld '
20496 gcx*)
20497 # Green Hills C++ Compiler
20498 lt_prog_compiler_pic_CXX='-PIC'
20502 esac
20504 sunos4*)
20505 case $cc_basename in
20506 CC*)
20507 # Sun C++ 4.x
20508 lt_prog_compiler_pic_CXX='-pic'
20509 lt_prog_compiler_static_CXX='-Bstatic'
20511 lcc*)
20512 # Lucid
20513 lt_prog_compiler_pic_CXX='-pic'
20517 esac
20519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20520 case $cc_basename in
20521 CC*)
20522 lt_prog_compiler_wl_CXX='-Wl,'
20523 lt_prog_compiler_pic_CXX='-KPIC'
20524 lt_prog_compiler_static_CXX='-Bstatic'
20526 esac
20528 tandem*)
20529 case $cc_basename in
20530 NCC*)
20531 # NonStop-UX NCC 3.20
20532 lt_prog_compiler_pic_CXX='-KPIC'
20536 esac
20538 vxworks*)
20541 lt_prog_compiler_can_build_shared_CXX=no
20543 esac
20546 case $host_os in
20547 # For platforms which do not support PIC, -DPIC is meaningless:
20548 *djgpp*)
20549 lt_prog_compiler_pic_CXX=
20552 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20554 esac
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20556 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20561 # Check to make sure the PIC flag actually works.
20563 if test -n "$lt_prog_compiler_pic_CXX"; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20565 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20566 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20567 $as_echo_n "(cached) " >&6
20568 else
20569 lt_cv_prog_compiler_pic_works_CXX=no
20570 ac_outfile=conftest.$ac_objext
20571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20572 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20573 # Insert the option either (1) after the last *FLAGS variable, or
20574 # (2) before a word containing "conftest.", or (3) at the end.
20575 # Note that $ac_compile itself does not contain backslashes and begins
20576 # with a dollar sign (not a hyphen), so the echo should work correctly.
20577 # The option is referenced via a variable to avoid confusing sed.
20578 lt_compile=`echo "$ac_compile" | $SED \
20579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20581 -e 's:$: $lt_compiler_flag:'`
20582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20583 (eval "$lt_compile" 2>conftest.err)
20584 ac_status=$?
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 if (exit $ac_status) && test -s "$ac_outfile"; then
20588 # The compiler can only warn and ignore the option if not recognized
20589 # So say no if there are warnings other than the usual output.
20590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20593 lt_cv_prog_compiler_pic_works_CXX=yes
20596 $RM conftest*
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20600 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20602 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20603 case $lt_prog_compiler_pic_CXX in
20604 "" | " "*) ;;
20605 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20606 esac
20607 else
20608 lt_prog_compiler_pic_CXX=
20609 lt_prog_compiler_can_build_shared_CXX=no
20617 # Check to make sure the static flag actually works.
20619 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20621 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20622 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20623 $as_echo_n "(cached) " >&6
20624 else
20625 lt_cv_prog_compiler_static_works_CXX=no
20626 save_LDFLAGS="$LDFLAGS"
20627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20628 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20630 # The linker can only warn and ignore the option if not recognized
20631 # So say no if there are warnings
20632 if test -s conftest.err; then
20633 # Append any errors to the config.log.
20634 cat conftest.err 1>&5
20635 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20637 if diff conftest.exp conftest.er2 >/dev/null; then
20638 lt_cv_prog_compiler_static_works_CXX=yes
20640 else
20641 lt_cv_prog_compiler_static_works_CXX=yes
20644 $RM -r conftest*
20645 LDFLAGS="$save_LDFLAGS"
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20649 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20651 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20653 else
20654 lt_prog_compiler_static_CXX=
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20662 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20663 $as_echo_n "(cached) " >&6
20664 else
20665 lt_cv_prog_compiler_c_o_CXX=no
20666 $RM -r conftest 2>/dev/null
20667 mkdir conftest
20668 cd conftest
20669 mkdir out
20670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20672 lt_compiler_flag="-o out/conftest2.$ac_objext"
20673 # Insert the option either (1) after the last *FLAGS variable, or
20674 # (2) before a word containing "conftest.", or (3) at the end.
20675 # Note that $ac_compile itself does not contain backslashes and begins
20676 # with a dollar sign (not a hyphen), so the echo should work correctly.
20677 lt_compile=`echo "$ac_compile" | $SED \
20678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20680 -e 's:$: $lt_compiler_flag:'`
20681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20682 (eval "$lt_compile" 2>out/conftest.err)
20683 ac_status=$?
20684 cat out/conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20687 then
20688 # The compiler can only warn and ignore the option if not recognized
20689 # So say no if there are warnings
20690 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20693 lt_cv_prog_compiler_c_o_CXX=yes
20696 chmod u+w . 2>&5
20697 $RM conftest*
20698 # SGI C++ compiler will create directory out/ii_files/ for
20699 # template instantiation
20700 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20701 $RM out/* && rmdir out
20702 cd ..
20703 $RM -r conftest
20704 $RM conftest*
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20708 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20714 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20715 $as_echo_n "(cached) " >&6
20716 else
20717 lt_cv_prog_compiler_c_o_CXX=no
20718 $RM -r conftest 2>/dev/null
20719 mkdir conftest
20720 cd conftest
20721 mkdir out
20722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20724 lt_compiler_flag="-o out/conftest2.$ac_objext"
20725 # Insert the option either (1) after the last *FLAGS variable, or
20726 # (2) before a word containing "conftest.", or (3) at the end.
20727 # Note that $ac_compile itself does not contain backslashes and begins
20728 # with a dollar sign (not a hyphen), so the echo should work correctly.
20729 lt_compile=`echo "$ac_compile" | $SED \
20730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20732 -e 's:$: $lt_compiler_flag:'`
20733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20734 (eval "$lt_compile" 2>out/conftest.err)
20735 ac_status=$?
20736 cat out/conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20739 then
20740 # The compiler can only warn and ignore the option if not recognized
20741 # So say no if there are warnings
20742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20745 lt_cv_prog_compiler_c_o_CXX=yes
20748 chmod u+w . 2>&5
20749 $RM conftest*
20750 # SGI C++ compiler will create directory out/ii_files/ for
20751 # template instantiation
20752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20753 $RM out/* && rmdir out
20754 cd ..
20755 $RM -r conftest
20756 $RM conftest*
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20760 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20765 hard_links="nottested"
20766 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20767 # do not overwrite the value of need_locks provided by the user
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20769 $as_echo_n "checking if we can lock with hard links... " >&6; }
20770 hard_links=yes
20771 $RM conftest*
20772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20773 touch conftest.a
20774 ln conftest.a conftest.b 2>&5 || hard_links=no
20775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20777 $as_echo "$hard_links" >&6; }
20778 if test "$hard_links" = no; then
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20780 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20781 need_locks=warn
20783 else
20784 need_locks=no
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20790 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20792 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20793 case $host_os in
20794 aix[4-9]*)
20795 # If we're using GNU nm, then we don't want the "-C" option.
20796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20797 # Also, AIX nm treats weak defined symbols like other global defined
20798 # symbols, whereas GNU nm marks them as "W".
20799 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20800 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'
20801 else
20802 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20805 pw32*)
20806 export_symbols_cmds_CXX="$ltdll_cmds"
20808 cygwin* | mingw* | cegcc*)
20809 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'
20812 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20814 esac
20815 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20818 $as_echo "$ld_shlibs_CXX" >&6; }
20819 test "$ld_shlibs_CXX" = no && can_build_shared=no
20821 with_gnu_ld_CXX=$with_gnu_ld
20829 # Do we need to explicitly link libc?
20831 case "x$archive_cmds_need_lc_CXX" in
20832 x|xyes)
20833 # Assume -lc should be added
20834 archive_cmds_need_lc_CXX=yes
20836 if test "$enable_shared" = yes && test "$GCC" = yes; then
20837 case $archive_cmds_CXX in
20838 *'~'*)
20839 # FIXME: we may have to deal with multi-command sequences.
20841 '$CC '*)
20842 # Test whether the compiler implicitly links with -lc since on some
20843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20844 # to ld, don't add -lc before -lgcc.
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20846 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20847 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20848 $as_echo_n "(cached) " >&6
20849 else
20850 $RM conftest*
20851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20854 (eval $ac_compile) 2>&5
20855 ac_status=$?
20856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857 test $ac_status = 0; } 2>conftest.err; then
20858 soname=conftest
20859 lib=conftest
20860 libobjs=conftest.$ac_objext
20861 deplibs=
20862 wl=$lt_prog_compiler_wl_CXX
20863 pic_flag=$lt_prog_compiler_pic_CXX
20864 compiler_flags=-v
20865 linker_flags=-v
20866 verstring=
20867 output_objdir=.
20868 libname=conftest
20869 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20870 allow_undefined_flag_CXX=
20871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20872 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20873 ac_status=$?
20874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20875 test $ac_status = 0; }
20876 then
20877 lt_cv_archive_cmds_need_lc_CXX=no
20878 else
20879 lt_cv_archive_cmds_need_lc_CXX=yes
20881 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20882 else
20883 cat conftest.err 1>&5
20885 $RM conftest*
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20889 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20890 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20892 esac
20895 esac
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20961 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20963 library_names_spec=
20964 libname_spec='lib$name'
20965 soname_spec=
20966 shrext_cmds=".so"
20967 postinstall_cmds=
20968 postuninstall_cmds=
20969 finish_cmds=
20970 finish_eval=
20971 shlibpath_var=
20972 shlibpath_overrides_runpath=unknown
20973 version_type=none
20974 dynamic_linker="$host_os ld.so"
20975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20976 need_lib_prefix=unknown
20977 hardcode_into_libs=no
20979 # when you set need_version to no, make sure it does not cause -set_version
20980 # flags to be left without arguments
20981 need_version=unknown
20983 case $host_os in
20984 aix3*)
20985 version_type=linux
20986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20987 shlibpath_var=LIBPATH
20989 # AIX 3 has no versioning support, so we append a major version to the name.
20990 soname_spec='${libname}${release}${shared_ext}$major'
20993 aix[4-9]*)
20994 version_type=linux
20995 need_lib_prefix=no
20996 need_version=no
20997 hardcode_into_libs=yes
20998 if test "$host_cpu" = ia64; then
20999 # AIX 5 supports IA64
21000 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21001 shlibpath_var=LD_LIBRARY_PATH
21002 else
21003 # With GCC up to 2.95.x, collect2 would create an import file
21004 # for dependence libraries. The import file would start with
21005 # the line `#! .'. This would cause the generated library to
21006 # depend on `.', always an invalid library. This was fixed in
21007 # development snapshots of GCC prior to 3.0.
21008 case $host_os in
21009 aix4 | aix4.[01] | aix4.[01].*)
21010 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21011 echo ' yes '
21012 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21014 else
21015 can_build_shared=no
21018 esac
21019 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21020 # soname into executable. Probably we can add versioning support to
21021 # collect2, so additional links can be useful in future.
21022 if test "$aix_use_runtimelinking" = yes; then
21023 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21024 # instead of lib<name>.a to let people know that these are not
21025 # typical AIX shared libraries.
21026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21027 else
21028 # We preserve .a as extension for shared libraries through AIX4.2
21029 # and later when we are not doing run time linking.
21030 library_names_spec='${libname}${release}.a $libname.a'
21031 soname_spec='${libname}${release}${shared_ext}$major'
21033 shlibpath_var=LIBPATH
21037 amigaos*)
21038 case $host_cpu in
21039 powerpc)
21040 # Since July 2007 AmigaOS4 officially supports .so libraries.
21041 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21044 m68k)
21045 library_names_spec='$libname.ixlibrary $libname.a'
21046 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21047 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'
21049 esac
21052 beos*)
21053 library_names_spec='${libname}${shared_ext}'
21054 dynamic_linker="$host_os ld.so"
21055 shlibpath_var=LIBRARY_PATH
21058 bsdi[45]*)
21059 version_type=linux
21060 need_version=no
21061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21062 soname_spec='${libname}${release}${shared_ext}$major'
21063 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21064 shlibpath_var=LD_LIBRARY_PATH
21065 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21066 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21067 # the default ld.so.conf also contains /usr/contrib/lib and
21068 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21069 # libtool to hard-code these into programs
21072 cygwin* | mingw* | pw32* | cegcc*)
21073 version_type=windows
21074 shrext_cmds=".dll"
21075 need_version=no
21076 need_lib_prefix=no
21078 case $GCC,$host_os in
21079 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21080 library_names_spec='$libname.dll.a'
21081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21082 postinstall_cmds='base_file=`basename \${file}`~
21083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21084 dldir=$destdir/`dirname \$dlpath`~
21085 test -d \$dldir || mkdir -p \$dldir~
21086 $install_prog $dir/$dlname \$dldir/$dlname~
21087 chmod a+x \$dldir/$dlname~
21088 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21089 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21092 dlpath=$dir/\$dldll~
21093 $RM \$dlpath'
21094 shlibpath_overrides_runpath=yes
21096 case $host_os in
21097 cygwin*)
21098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21102 mingw* | cegcc*)
21103 # MinGW DLLs use traditional 'lib' prefix
21104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21106 pw32*)
21107 # pw32 DLLs use 'pw' prefix rather than 'lib'
21108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21110 esac
21114 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21116 esac
21117 dynamic_linker='Win32 ld.exe'
21118 # FIXME: first we should search . and the directory the executable is in
21119 shlibpath_var=PATH
21122 darwin* | rhapsody*)
21123 dynamic_linker="$host_os dyld"
21124 version_type=darwin
21125 need_lib_prefix=no
21126 need_version=no
21127 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21128 soname_spec='${libname}${release}${major}$shared_ext'
21129 shlibpath_overrides_runpath=yes
21130 shlibpath_var=DYLD_LIBRARY_PATH
21131 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21133 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21136 dgux*)
21137 version_type=linux
21138 need_lib_prefix=no
21139 need_version=no
21140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21141 soname_spec='${libname}${release}${shared_ext}$major'
21142 shlibpath_var=LD_LIBRARY_PATH
21145 freebsd* | dragonfly*)
21146 # DragonFly does not have aout. When/if they implement a new
21147 # versioning mechanism, adjust this.
21148 if test -x /usr/bin/objformat; then
21149 objformat=`/usr/bin/objformat`
21150 else
21151 case $host_os in
21152 freebsd[23].*) objformat=aout ;;
21153 *) objformat=elf ;;
21154 esac
21156 version_type=freebsd-$objformat
21157 case $version_type in
21158 freebsd-elf*)
21159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21160 need_version=no
21161 need_lib_prefix=no
21163 freebsd-*)
21164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21165 need_version=yes
21167 esac
21168 shlibpath_var=LD_LIBRARY_PATH
21169 case $host_os in
21170 freebsd2.*)
21171 shlibpath_overrides_runpath=yes
21173 freebsd3.[01]* | freebsdelf3.[01]*)
21174 shlibpath_overrides_runpath=yes
21175 hardcode_into_libs=yes
21177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21179 shlibpath_overrides_runpath=no
21180 hardcode_into_libs=yes
21182 *) # from 4.6 on, and DragonFly
21183 shlibpath_overrides_runpath=yes
21184 hardcode_into_libs=yes
21186 esac
21189 gnu*)
21190 version_type=linux
21191 need_lib_prefix=no
21192 need_version=no
21193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21194 soname_spec='${libname}${release}${shared_ext}$major'
21195 shlibpath_var=LD_LIBRARY_PATH
21196 hardcode_into_libs=yes
21199 haiku*)
21200 version_type=linux
21201 need_lib_prefix=no
21202 need_version=no
21203 dynamic_linker="$host_os runtime_loader"
21204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21205 soname_spec='${libname}${release}${shared_ext}$major'
21206 shlibpath_var=LIBRARY_PATH
21207 shlibpath_overrides_runpath=yes
21208 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21209 hardcode_into_libs=yes
21212 hpux9* | hpux10* | hpux11*)
21213 # Give a soname corresponding to the major version so that dld.sl refuses to
21214 # link against other versions.
21215 version_type=sunos
21216 need_lib_prefix=no
21217 need_version=no
21218 case $host_cpu in
21219 ia64*)
21220 shrext_cmds='.so'
21221 hardcode_into_libs=yes
21222 dynamic_linker="$host_os dld.so"
21223 shlibpath_var=LD_LIBRARY_PATH
21224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21226 soname_spec='${libname}${release}${shared_ext}$major'
21227 if test "X$HPUX_IA64_MODE" = X32; then
21228 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21229 else
21230 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21234 hppa*64*)
21235 shrext_cmds='.sl'
21236 hardcode_into_libs=yes
21237 dynamic_linker="$host_os dld.sl"
21238 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21241 soname_spec='${libname}${release}${shared_ext}$major'
21242 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21246 shrext_cmds='.sl'
21247 dynamic_linker="$host_os dld.sl"
21248 shlibpath_var=SHLIB_PATH
21249 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21251 soname_spec='${libname}${release}${shared_ext}$major'
21253 esac
21254 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21255 postinstall_cmds='chmod 555 $lib'
21256 # or fails outright, so override atomically:
21257 install_override_mode=555
21260 interix[3-9]*)
21261 version_type=linux
21262 need_lib_prefix=no
21263 need_version=no
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21265 soname_spec='${libname}${release}${shared_ext}$major'
21266 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21267 shlibpath_var=LD_LIBRARY_PATH
21268 shlibpath_overrides_runpath=no
21269 hardcode_into_libs=yes
21272 irix5* | irix6* | nonstopux*)
21273 case $host_os in
21274 nonstopux*) version_type=nonstopux ;;
21276 if test "$lt_cv_prog_gnu_ld" = yes; then
21277 version_type=linux
21278 else
21279 version_type=irix
21280 fi ;;
21281 esac
21282 need_lib_prefix=no
21283 need_version=no
21284 soname_spec='${libname}${release}${shared_ext}$major'
21285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21286 case $host_os in
21287 irix5* | nonstopux*)
21288 libsuff= shlibsuff=
21291 case $LD in # libtool.m4 will add one of these switches to LD
21292 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21293 libsuff= shlibsuff= libmagic=32-bit;;
21294 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21295 libsuff=32 shlibsuff=N32 libmagic=N32;;
21296 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21297 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21298 *) libsuff= shlibsuff= libmagic=never-match;;
21299 esac
21301 esac
21302 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21303 shlibpath_overrides_runpath=no
21304 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21305 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21306 hardcode_into_libs=yes
21309 # No shared lib support for Linux oldld, aout, or coff.
21310 linux*oldld* | linux*aout* | linux*coff*)
21311 dynamic_linker=no
21314 # This must be Linux ELF.
21315 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21316 version_type=linux
21317 need_lib_prefix=no
21318 need_version=no
21319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21320 soname_spec='${libname}${release}${shared_ext}$major'
21321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21322 shlibpath_var=LD_LIBRARY_PATH
21323 shlibpath_overrides_runpath=no
21325 # Some binutils ld are patched to set DT_RUNPATH
21326 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
21328 else
21329 lt_cv_shlibpath_overrides_runpath=no
21330 save_LDFLAGS=$LDFLAGS
21331 save_libdir=$libdir
21332 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21333 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h. */
21338 main ()
21342 return 0;
21344 _ACEOF
21345 if ac_fn_cxx_try_link "$LINENO"; then :
21346 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21347 lt_cv_shlibpath_overrides_runpath=yes
21350 rm -f core conftest.err conftest.$ac_objext \
21351 conftest$ac_exeext conftest.$ac_ext
21352 LDFLAGS=$save_LDFLAGS
21353 libdir=$save_libdir
21357 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21359 # This implies no fast_install, which is unacceptable.
21360 # Some rework will be needed to allow for fast_install
21361 # before this can be enabled.
21362 hardcode_into_libs=yes
21364 # Append ld.so.conf contents to the search path
21365 if test -f /etc/ld.so.conf; then
21366 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' ' '`
21367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21370 # We used to test for /lib/ld.so.1 and disable shared libraries on
21371 # powerpc, because MkLinux only supported shared libraries with the
21372 # GNU dynamic linker. Since this was broken with cross compilers,
21373 # most powerpc-linux boxes support dynamic linking these days and
21374 # people can always --disable-shared, the test was removed, and we
21375 # assume the GNU/Linux dynamic linker is in use.
21376 dynamic_linker='GNU/Linux ld.so'
21379 netbsd*)
21380 version_type=sunos
21381 need_lib_prefix=no
21382 need_version=no
21383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21386 dynamic_linker='NetBSD (a.out) ld.so'
21387 else
21388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21389 soname_spec='${libname}${release}${shared_ext}$major'
21390 dynamic_linker='NetBSD ld.elf_so'
21392 shlibpath_var=LD_LIBRARY_PATH
21393 shlibpath_overrides_runpath=yes
21394 hardcode_into_libs=yes
21397 newsos6)
21398 version_type=linux
21399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21400 shlibpath_var=LD_LIBRARY_PATH
21401 shlibpath_overrides_runpath=yes
21404 *nto* | *qnx*)
21405 version_type=qnx
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 shlibpath_var=LD_LIBRARY_PATH
21411 shlibpath_overrides_runpath=no
21412 hardcode_into_libs=yes
21413 dynamic_linker='ldqnx.so'
21416 openbsd*)
21417 version_type=sunos
21418 sys_lib_dlsearch_path_spec="/usr/lib"
21419 need_lib_prefix=no
21420 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21421 case $host_os in
21422 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21423 *) need_version=no ;;
21424 esac
21425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21427 shlibpath_var=LD_LIBRARY_PATH
21428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21429 case $host_os in
21430 openbsd2.[89] | openbsd2.[89].*)
21431 shlibpath_overrides_runpath=no
21434 shlibpath_overrides_runpath=yes
21436 esac
21437 else
21438 shlibpath_overrides_runpath=yes
21442 os2*)
21443 libname_spec='$name'
21444 shrext_cmds=".dll"
21445 need_lib_prefix=no
21446 library_names_spec='$libname${shared_ext} $libname.a'
21447 dynamic_linker='OS/2 ld.exe'
21448 shlibpath_var=LIBPATH
21451 osf3* | osf4* | osf5*)
21452 version_type=osf
21453 need_lib_prefix=no
21454 need_version=no
21455 soname_spec='${libname}${release}${shared_ext}$major'
21456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21457 shlibpath_var=LD_LIBRARY_PATH
21458 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21459 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21462 rdos*)
21463 dynamic_linker=no
21466 solaris*)
21467 version_type=linux
21468 need_lib_prefix=no
21469 need_version=no
21470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21471 soname_spec='${libname}${release}${shared_ext}$major'
21472 shlibpath_var=LD_LIBRARY_PATH
21473 shlibpath_overrides_runpath=yes
21474 hardcode_into_libs=yes
21475 # ldd complains unless libraries are executable
21476 postinstall_cmds='chmod +x $lib'
21479 sunos4*)
21480 version_type=sunos
21481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21483 shlibpath_var=LD_LIBRARY_PATH
21484 shlibpath_overrides_runpath=yes
21485 if test "$with_gnu_ld" = yes; then
21486 need_lib_prefix=no
21488 need_version=yes
21491 sysv4 | sysv4.3*)
21492 version_type=linux
21493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21494 soname_spec='${libname}${release}${shared_ext}$major'
21495 shlibpath_var=LD_LIBRARY_PATH
21496 case $host_vendor in
21497 sni)
21498 shlibpath_overrides_runpath=no
21499 need_lib_prefix=no
21500 runpath_var=LD_RUN_PATH
21502 siemens)
21503 need_lib_prefix=no
21505 motorola)
21506 need_lib_prefix=no
21507 need_version=no
21508 shlibpath_overrides_runpath=no
21509 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21511 esac
21514 sysv4*MP*)
21515 if test -d /usr/nec ;then
21516 version_type=linux
21517 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21518 soname_spec='$libname${shared_ext}.$major'
21519 shlibpath_var=LD_LIBRARY_PATH
21523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21524 version_type=freebsd-elf
21525 need_lib_prefix=no
21526 need_version=no
21527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21528 soname_spec='${libname}${release}${shared_ext}$major'
21529 shlibpath_var=LD_LIBRARY_PATH
21530 shlibpath_overrides_runpath=yes
21531 hardcode_into_libs=yes
21532 if test "$with_gnu_ld" = yes; then
21533 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21534 else
21535 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21536 case $host_os in
21537 sco3.2v5*)
21538 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21540 esac
21542 sys_lib_dlsearch_path_spec='/usr/lib'
21545 tpf*)
21546 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21547 version_type=linux
21548 need_lib_prefix=no
21549 need_version=no
21550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21551 shlibpath_var=LD_LIBRARY_PATH
21552 shlibpath_overrides_runpath=no
21553 hardcode_into_libs=yes
21556 uts4*)
21557 version_type=linux
21558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21559 soname_spec='${libname}${release}${shared_ext}$major'
21560 shlibpath_var=LD_LIBRARY_PATH
21564 dynamic_linker=no
21566 esac
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21568 $as_echo "$dynamic_linker" >&6; }
21569 test "$dynamic_linker" = no && can_build_shared=no
21571 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21572 if test "$GCC" = yes; then
21573 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21576 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21577 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21579 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21580 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21621 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21622 hardcode_action_CXX=
21623 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21624 test -n "$runpath_var_CXX" ||
21625 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21627 # We can hardcode non-existent directories.
21628 if test "$hardcode_direct_CXX" != no &&
21629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21630 # have to relink, otherwise we might link with an installed library
21631 # when we should be linking with a yet-to-be-installed one
21632 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21633 test "$hardcode_minus_L_CXX" != no; then
21634 # Linking always hardcodes the temporary library directory.
21635 hardcode_action_CXX=relink
21636 else
21637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21638 hardcode_action_CXX=immediate
21640 else
21641 # We cannot hardcode anything, or else we can only hardcode existing
21642 # directories.
21643 hardcode_action_CXX=unsupported
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21646 $as_echo "$hardcode_action_CXX" >&6; }
21648 if test "$hardcode_action_CXX" = relink ||
21649 test "$inherit_rpath_CXX" = yes; then
21650 # Fast installation is not supported
21651 enable_fast_install=no
21652 elif test "$shlibpath_overrides_runpath" = yes ||
21653 test "$enable_shared" = no; then
21654 # Fast installation is not necessary
21655 enable_fast_install=needless
21664 fi # test -n "$compiler"
21666 CC=$lt_save_CC
21667 LDCXX=$LD
21668 LD=$lt_save_LD
21669 GCC=$lt_save_GCC
21670 with_gnu_ld=$lt_save_with_gnu_ld
21671 lt_cv_path_LDCXX=$lt_cv_path_LD
21672 lt_cv_path_LD=$lt_save_path_LD
21673 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21674 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21675 fi # test "$_lt_caught_CXX_error" != yes
21677 ac_ext=cpp
21678 ac_cpp='$CXXCPP $CPPFLAGS'
21679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21698 # Only expand once:
21704 # Identify the assembler which will work hand-in-glove with the newly
21705 # built GCC, so that we can examine its features. This is the assembler
21706 # which will be driven by the driver program.
21708 # If build != host, and we aren't building gas in-tree, we identify a
21709 # build->target assembler and hope that it will have the same features
21710 # as the host->target assembler we'll be using.
21711 gcc_cv_gas_major_version=
21712 gcc_cv_gas_minor_version=
21713 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21715 if test "${gcc_cv_as+set}" = set; then :
21717 else
21719 if test -x "$DEFAULT_ASSEMBLER"; then
21720 gcc_cv_as="$DEFAULT_ASSEMBLER"
21721 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21722 && test -f ../gas/Makefile \
21723 && test x$build = x$host; then
21724 gcc_cv_as=../gas/as-new$build_exeext
21725 elif test -x as$build_exeext; then
21726 # Build using assembler in the current directory.
21727 gcc_cv_as=./as$build_exeext
21728 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21729 gcc_cv_as="$AS_FOR_TARGET"
21730 else
21731 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21732 set dummy $AS_FOR_TARGET; ac_word=$2
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21734 $as_echo_n "checking for $ac_word... " >&6; }
21735 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21736 $as_echo_n "(cached) " >&6
21737 else
21738 case $gcc_cv_as in
21739 [\\/]* | ?:[\\/]*)
21740 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21744 for as_dir in $PATH
21746 IFS=$as_save_IFS
21747 test -z "$as_dir" && as_dir=.
21748 for ac_exec_ext in '' $ac_executable_extensions; do
21749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21750 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21752 break 2
21754 done
21755 done
21756 IFS=$as_save_IFS
21759 esac
21761 gcc_cv_as=$ac_cv_path_gcc_cv_as
21762 if test -n "$gcc_cv_as"; then
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21764 $as_echo "$gcc_cv_as" >&6; }
21765 else
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21767 $as_echo "no" >&6; }
21774 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21776 case "$ORIGINAL_AS_FOR_TARGET" in
21777 ./as | ./as$build_exeext) ;;
21778 *) ac_config_files="$ac_config_files as:exec-tool.in"
21780 esac
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21783 $as_echo_n "checking what assembler to use... " >&6; }
21784 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21785 # Single tree build which includes gas. We want to prefer it
21786 # over whatever linker top-level may have detected, since
21787 # we'll use what we're building after installation anyway.
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21789 $as_echo "newly built gas" >&6; }
21790 in_tree_gas=yes
21791 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21792 for f in $gcc_cv_as_bfd_srcdir/configure \
21793 $gcc_cv_as_gas_srcdir/configure \
21794 $gcc_cv_as_gas_srcdir/configure.ac \
21795 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21796 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21797 if test x$gcc_cv_gas_version != x; then
21798 break
21800 done
21801 case $gcc_cv_gas_version in
21802 VERSION=[0-9]*) ;;
21803 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21804 esac
21805 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21806 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21807 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21808 case $gcc_cv_gas_patch_version in
21809 "") gcc_cv_gas_patch_version="0" ;;
21810 esac
21811 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21812 + $gcc_cv_gas_minor_version \) \* 1000 \
21813 + $gcc_cv_gas_patch_version`
21815 in_tree_gas_is_elf=no
21816 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21817 || (grep 'obj_format = multi' ../gas/Makefile \
21818 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21819 then
21820 in_tree_gas_is_elf=yes
21822 else
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21824 $as_echo "$gcc_cv_as" >&6; }
21825 in_tree_gas=no
21828 default_ld=
21829 # Check whether --enable-ld was given.
21830 if test "${enable_ld+set}" = set; then :
21831 enableval=$enable_ld; case "${enableval}" in
21833 default_ld=ld.gold
21835 esac
21839 install_gold_as_default=no
21840 # Check whether --enable-gold was given.
21841 if test "${enable_gold+set}" = set; then :
21842 enableval=$enable_gold; case "${enableval}" in
21843 default)
21844 install_gold_as_default=yes
21846 yes)
21847 if test x${default_ld} != x; then
21848 install_gold_as_default=yes
21854 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21856 esac
21860 # Identify the linker which will work hand-in-glove with the newly
21861 # built GCC, so that we can examine its features. This is the linker
21862 # which will be driven by the driver program.
21864 # If build != host, and we aren't building gas in-tree, we identify a
21865 # build->target linker and hope that it will have the same features
21866 # as the host->target linker we'll be using.
21867 gcc_cv_gld_major_version=
21868 gcc_cv_gld_minor_version=
21869 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21870 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21871 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21873 if test "${gcc_cv_ld+set}" = set; then :
21875 else
21877 if test -x "$DEFAULT_LINKER"; then
21878 gcc_cv_ld="$DEFAULT_LINKER"
21879 elif test $install_gold_as_default = yes \
21880 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21881 && test -f ../gold/Makefile \
21882 && test x$build = x$host; then
21883 gcc_cv_ld=../gold/ld-new$build_exeext
21884 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21885 && test -f ../ld/Makefile \
21886 && test x$build = x$host; then
21887 gcc_cv_ld=../ld/ld-new$build_exeext
21888 elif test -x collect-ld$build_exeext; then
21889 # Build using linker in the current directory.
21890 gcc_cv_ld=./collect-ld$build_exeext
21891 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21892 gcc_cv_ld="$LD_FOR_TARGET"
21893 else
21894 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21895 set dummy $LD_FOR_TARGET; ac_word=$2
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21897 $as_echo_n "checking for $ac_word... " >&6; }
21898 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21899 $as_echo_n "(cached) " >&6
21900 else
21901 case $gcc_cv_ld in
21902 [\\/]* | ?:[\\/]*)
21903 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21907 for as_dir in $PATH
21909 IFS=$as_save_IFS
21910 test -z "$as_dir" && as_dir=.
21911 for ac_exec_ext in '' $ac_executable_extensions; do
21912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21913 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21915 break 2
21917 done
21918 done
21919 IFS=$as_save_IFS
21922 esac
21924 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21925 if test -n "$gcc_cv_ld"; then
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21927 $as_echo "$gcc_cv_ld" >&6; }
21928 else
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21937 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21938 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21939 # if the PLUGIN_LD is set ld-new, just have it as ld
21940 # as that is the installed named.
21941 if test x$PLUGIN_LD_SUFFIX = xld-new \
21942 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21943 PLUGIN_LD_SUFFIX=ld
21946 # Check whether --with-plugin-ld was given.
21947 if test "${with_plugin_ld+set}" = set; then :
21948 withval=$with_plugin_ld; if test x"$withval" != x; then
21949 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21950 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21956 cat >>confdefs.h <<_ACEOF
21957 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21958 _ACEOF
21961 # Check to see if we are using gold instead of ld
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21963 $as_echo_n "checking whether we are using gold... " >&6; }
21964 ld_is_gold=no
21965 if test x$gcc_cv_ld != x; then
21966 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21967 | grep "GNU gold" > /dev/null; then
21968 ld_is_gold=yes
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21972 $as_echo "$ld_is_gold" >&6; }
21974 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21976 case "$ORIGINAL_LD_FOR_TARGET" in
21977 ./collect-ld | ./collect-ld$build_exeext) ;;
21978 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21980 esac
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21983 $as_echo_n "checking what linker to use... " >&6; }
21984 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21985 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21986 # Single tree build which includes ld. We want to prefer it
21987 # over whatever linker top-level may have detected, since
21988 # we'll use what we're building after installation anyway.
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21990 $as_echo "newly built ld" >&6; }
21991 in_tree_ld=yes
21992 in_tree_ld_is_elf=no
21993 if (grep 'EMUL = .*elf' ../ld/Makefile \
21994 || grep 'EMUL = .*linux' ../ld/Makefile \
21995 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21996 in_tree_ld_is_elf=yes
21997 elif test "$ld_is_gold" = yes; then
21998 in_tree_ld_is_elf=yes
22000 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
22002 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22003 if test x$gcc_cv_gld_version != x; then
22004 break
22006 done
22007 case $gcc_cv_gld_version in
22008 VERSION=[0-9]*) ;;
22009 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22010 esac
22011 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22012 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22013 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22014 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22015 else
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22017 $as_echo "$gcc_cv_ld" >&6; }
22018 in_tree_ld=no
22019 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22020 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22021 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22027 # Figure out what nm we will be using.
22028 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22029 if test "${gcc_cv_nm+set}" = set; then :
22031 else
22033 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22034 && test -f ../binutils/Makefile \
22035 && test x$build = x$host; then
22036 gcc_cv_nm=../binutils/nm-new$build_exeext
22037 elif test -x nm$build_exeext; then
22038 gcc_cv_nm=./nm$build_exeext
22039 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22040 gcc_cv_nm="$NM_FOR_TARGET"
22041 else
22042 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22043 set dummy $NM_FOR_TARGET; ac_word=$2
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22045 $as_echo_n "checking for $ac_word... " >&6; }
22046 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22047 $as_echo_n "(cached) " >&6
22048 else
22049 case $gcc_cv_nm in
22050 [\\/]* | ?:[\\/]*)
22051 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22055 for as_dir in $PATH
22057 IFS=$as_save_IFS
22058 test -z "$as_dir" && as_dir=.
22059 for ac_exec_ext in '' $ac_executable_extensions; do
22060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22061 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22063 break 2
22065 done
22066 done
22067 IFS=$as_save_IFS
22070 esac
22072 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22073 if test -n "$gcc_cv_nm"; then
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22075 $as_echo "$gcc_cv_nm" >&6; }
22076 else
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22078 $as_echo "no" >&6; }
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22086 $as_echo_n "checking what nm to use... " >&6; }
22087 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22088 # Single tree build which includes binutils.
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22090 $as_echo "newly built nm" >&6; }
22091 in_tree_nm=yes
22092 else
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22094 $as_echo "$gcc_cv_nm" >&6; }
22095 in_tree_nm=no
22098 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22100 case "$ORIGINAL_NM_FOR_TARGET" in
22101 ./nm | ./nm$build_exeext) ;;
22102 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22104 esac
22107 # Figure out what objdump we will be using.
22108 if test "${gcc_cv_objdump+set}" = set; then :
22110 else
22112 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22113 && test -f ../binutils/Makefile \
22114 && test x$build = x$host; then
22115 # Single tree build which includes binutils.
22116 gcc_cv_objdump=../binutils/objdump$build_exeext
22117 elif test -x objdump$build_exeext; then
22118 gcc_cv_objdump=./objdump$build_exeext
22119 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22120 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22121 else
22122 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22123 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22125 $as_echo_n "checking for $ac_word... " >&6; }
22126 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22128 else
22129 case $gcc_cv_objdump in
22130 [\\/]* | ?:[\\/]*)
22131 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22135 for as_dir in $PATH
22137 IFS=$as_save_IFS
22138 test -z "$as_dir" && as_dir=.
22139 for ac_exec_ext in '' $ac_executable_extensions; do
22140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22141 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22143 break 2
22145 done
22146 done
22147 IFS=$as_save_IFS
22150 esac
22152 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22153 if test -n "$gcc_cv_objdump"; then
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22155 $as_echo "$gcc_cv_objdump" >&6; }
22156 else
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22158 $as_echo "no" >&6; }
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22166 $as_echo_n "checking what objdump to use... " >&6; }
22167 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22168 # Single tree build which includes binutils.
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22170 $as_echo "newly built objdump" >&6; }
22171 elif test x$gcc_cv_objdump = x; then
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22173 $as_echo "not found" >&6; }
22174 else
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22176 $as_echo "$gcc_cv_objdump" >&6; }
22179 # Figure out what readelf we will be using.
22180 if test "${gcc_cv_readelf+set}" = set; then :
22182 else
22184 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22185 && test -f ../binutils/Makefile \
22186 && test x$build = x$host; then
22187 # Single tree build which includes binutils.
22188 gcc_cv_readelf=../binutils/readelf$build_exeext
22189 elif test -x readelf$build_exeext; then
22190 gcc_cv_readelf=./readelf$build_exeext
22191 else
22192 # Extract the first word of "readelf", so it can be a program name with args.
22193 set dummy readelf; ac_word=$2
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22195 $as_echo_n "checking for $ac_word... " >&6; }
22196 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22197 $as_echo_n "(cached) " >&6
22198 else
22199 case $gcc_cv_readelf in
22200 [\\/]* | ?:[\\/]*)
22201 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22205 for as_dir in $PATH
22207 IFS=$as_save_IFS
22208 test -z "$as_dir" && as_dir=.
22209 for ac_exec_ext in '' $ac_executable_extensions; do
22210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22211 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22213 break 2
22215 done
22216 done
22217 IFS=$as_save_IFS
22220 esac
22222 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22223 if test -n "$gcc_cv_readelf"; then
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22225 $as_echo "$gcc_cv_readelf" >&6; }
22226 else
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22228 $as_echo "no" >&6; }
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22236 $as_echo_n "checking what readelf to use... " >&6; }
22237 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22238 # Single tree build which includes binutils.
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22240 $as_echo "newly built readelf" >&6; }
22241 elif test x$gcc_cv_readelf = x; then
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22243 $as_echo "not found" >&6; }
22244 else
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22246 $as_echo "$gcc_cv_readelf" >&6; }
22249 # Figure out what assembler alignment features are present.
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22251 $as_echo_n "checking assembler flags... " >&6; }
22252 if test "${gcc_cv_as_flags+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 case "$target" in
22256 i[34567]86-*-linux*)
22257 gcc_cv_as_flags=--32
22259 x86_64-*-linux-gnux32)
22260 gcc_cv_as_flags=--x32
22262 x86_64-*-linux*)
22263 gcc_cv_as_flags=--64
22265 powerpc*-*-darwin*)
22266 gcc_cv_as_flags="-arch ppc"
22269 gcc_cv_as_flags=" "
22271 esac
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22274 $as_echo "$gcc_cv_as_flags" >&6; }
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22277 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22278 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22280 else
22281 gcc_cv_as_balign_and_p2align=no
22282 if test $in_tree_gas = yes; then
22283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22284 then gcc_cv_as_balign_and_p2align=yes
22286 elif test x$gcc_cv_as != x; then
22287 $as_echo '.balign 4
22288 .p2align 2' > conftest.s
22289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22291 (eval $ac_try) 2>&5
22292 ac_status=$?
22293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22294 test $ac_status = 0; }; }
22295 then
22296 gcc_cv_as_balign_and_p2align=yes
22297 else
22298 echo "configure: failed program was" >&5
22299 cat conftest.s >&5
22301 rm -f conftest.o conftest.s
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22305 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22306 if test $gcc_cv_as_balign_and_p2align = yes; then
22308 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22313 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22314 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22316 else
22317 gcc_cv_as_max_skip_p2align=no
22318 if test $in_tree_gas = yes; then
22319 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22320 then gcc_cv_as_max_skip_p2align=yes
22322 elif test x$gcc_cv_as != x; then
22323 $as_echo '.p2align 4,,7' > conftest.s
22324 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22326 (eval $ac_try) 2>&5
22327 ac_status=$?
22328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22329 test $ac_status = 0; }; }
22330 then
22331 gcc_cv_as_max_skip_p2align=yes
22332 else
22333 echo "configure: failed program was" >&5
22334 cat conftest.s >&5
22336 rm -f conftest.o conftest.s
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22340 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22341 if test $gcc_cv_as_max_skip_p2align = yes; then
22343 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22348 $as_echo_n "checking assembler for .literal16... " >&6; }
22349 if test "${gcc_cv_as_literal16+set}" = set; then :
22350 $as_echo_n "(cached) " >&6
22351 else
22352 gcc_cv_as_literal16=no
22353 if test $in_tree_gas = yes; then
22354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22355 then gcc_cv_as_literal16=yes
22357 elif test x$gcc_cv_as != x; then
22358 $as_echo '.literal16' > conftest.s
22359 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22361 (eval $ac_try) 2>&5
22362 ac_status=$?
22363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22364 test $ac_status = 0; }; }
22365 then
22366 gcc_cv_as_literal16=yes
22367 else
22368 echo "configure: failed program was" >&5
22369 cat conftest.s >&5
22371 rm -f conftest.o conftest.s
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22375 $as_echo "$gcc_cv_as_literal16" >&6; }
22376 if test $gcc_cv_as_literal16 = yes; then
22378 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22383 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22384 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22385 $as_echo_n "(cached) " >&6
22386 else
22387 gcc_cv_as_subsection_m1=no
22388 if test $in_tree_gas = yes; then
22389 if test $in_tree_gas_is_elf = yes \
22390 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22391 then gcc_cv_as_subsection_m1=yes
22393 elif test x$gcc_cv_as != x; then
22394 $as_echo 'conftest_label1: .word 0
22395 .subsection -1
22396 conftest_label2: .word 0
22397 .previous' > conftest.s
22398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22400 (eval $ac_try) 2>&5
22401 ac_status=$?
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; }; }
22404 then
22405 if test x$gcc_cv_nm != x; then
22406 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22407 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22408 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22409 then :
22410 else gcc_cv_as_subsection_m1=yes
22412 rm -f conftest.nm1 conftest.nm2
22414 else
22415 echo "configure: failed program was" >&5
22416 cat conftest.s >&5
22418 rm -f conftest.o conftest.s
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22422 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22423 if test $gcc_cv_as_subsection_m1 = yes; then
22425 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22430 $as_echo_n "checking assembler for .weak... " >&6; }
22431 if test "${gcc_cv_as_weak+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22433 else
22434 gcc_cv_as_weak=no
22435 if test $in_tree_gas = yes; then
22436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22437 then gcc_cv_as_weak=yes
22439 elif test x$gcc_cv_as != x; then
22440 $as_echo ' .weak foobar' > conftest.s
22441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22443 (eval $ac_try) 2>&5
22444 ac_status=$?
22445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22446 test $ac_status = 0; }; }
22447 then
22448 gcc_cv_as_weak=yes
22449 else
22450 echo "configure: failed program was" >&5
22451 cat conftest.s >&5
22453 rm -f conftest.o conftest.s
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22457 $as_echo "$gcc_cv_as_weak" >&6; }
22458 if test $gcc_cv_as_weak = yes; then
22460 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22465 $as_echo_n "checking assembler for .weakref... " >&6; }
22466 if test "${gcc_cv_as_weakref+set}" = set; then :
22467 $as_echo_n "(cached) " >&6
22468 else
22469 gcc_cv_as_weakref=no
22470 if test $in_tree_gas = yes; then
22471 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22472 then gcc_cv_as_weakref=yes
22474 elif test x$gcc_cv_as != x; then
22475 $as_echo ' .weakref foobar, barfnot' > conftest.s
22476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22481 test $ac_status = 0; }; }
22482 then
22483 gcc_cv_as_weakref=yes
22484 else
22485 echo "configure: failed program was" >&5
22486 cat conftest.s >&5
22488 rm -f conftest.o conftest.s
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22492 $as_echo "$gcc_cv_as_weakref" >&6; }
22493 if test $gcc_cv_as_weakref = yes; then
22495 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22500 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22501 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
22503 else
22504 gcc_cv_as_nsubspa_comdat=no
22505 if test $in_tree_gas = yes; then
22506 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22507 then gcc_cv_as_nsubspa_comdat=yes
22509 elif test x$gcc_cv_as != x; then
22510 $as_echo ' .SPACE $TEXT$
22511 .NSUBSPA $CODE$,COMDAT' > conftest.s
22512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22514 (eval $ac_try) 2>&5
22515 ac_status=$?
22516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22517 test $ac_status = 0; }; }
22518 then
22519 gcc_cv_as_nsubspa_comdat=yes
22520 else
22521 echo "configure: failed program was" >&5
22522 cat conftest.s >&5
22524 rm -f conftest.o conftest.s
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22528 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22529 if test $gcc_cv_as_nsubspa_comdat = yes; then
22531 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22535 # .hidden needs to be supported in both the assembler and the linker,
22536 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22537 # This is irritatingly difficult to feature test for; we have to check the
22538 # date string after the version number. If we've got an in-tree
22539 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22540 # to be safe.
22541 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22543 $as_echo_n "checking assembler for .hidden... " >&6; }
22544 if test "${gcc_cv_as_hidden+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22546 else
22547 gcc_cv_as_hidden=no
22548 if test $in_tree_gas = yes; then
22549 if test $in_tree_gas_is_elf = yes \
22550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22551 then gcc_cv_as_hidden=yes
22553 elif test x$gcc_cv_as != x; then
22554 $as_echo ' .hidden foobar
22555 foobar:' > conftest.s
22556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561 test $ac_status = 0; }; }
22562 then
22563 gcc_cv_as_hidden=yes
22564 else
22565 echo "configure: failed program was" >&5
22566 cat conftest.s >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22572 $as_echo "$gcc_cv_as_hidden" >&6; }
22574 case "${target}" in
22575 *-*-darwin*)
22576 # Darwin as has some visibility support, though with a different syntax.
22577 gcc_cv_as_hidden=yes
22579 esac
22581 # gnu_indirect_function type is an extension proposed at
22582 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22583 # selection of function implementation
22584 # Check whether --enable-gnu-indirect-function was given.
22585 if test "${enable_gnu_indirect_function+set}" = set; then :
22586 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22587 yes | no) ;;
22588 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22589 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22590 esac
22591 else
22592 enable_gnu_indirect_function="$default_gnu_indirect_function"
22596 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22598 cat >>confdefs.h <<_ACEOF
22599 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22600 _ACEOF
22604 if test $in_tree_ld != yes ; then
22605 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22606 if echo "$ld_ver" | grep GNU > /dev/null; then
22607 if test x"$ld_is_gold" = xyes; then
22608 # GNU gold --version looks like this:
22610 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22612 # We extract the binutils version which is more familiar and specific
22613 # than the gold version.
22614 ld_vers=`echo $ld_ver | sed -n \
22615 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22616 else
22617 # GNU ld --version looks like this:
22619 # GNU ld (GNU Binutils) 2.21.51.20110225
22620 ld_vers=`echo $ld_ver | sed -n \
22621 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22623 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'`
22624 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22625 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22626 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22627 else
22628 case "${target}" in
22629 *-*-solaris2*)
22630 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22631 # format.
22633 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22634 # /usr/ccs/bin/ld has been configured.
22635 ld_ver=`$gcc_cv_ld -V 2>&1`
22636 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22637 ld_vers=`echo $ld_ver | sed -n \
22638 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22639 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22640 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22643 esac
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22648 $as_echo_n "checking linker for .hidden support... " >&6; }
22649 if test "${gcc_cv_ld_hidden+set}" = set; then :
22650 $as_echo_n "(cached) " >&6
22651 else
22652 if test $in_tree_ld = yes ; then
22653 gcc_cv_ld_hidden=no
22654 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 \
22655 && test $in_tree_ld_is_elf = yes; then
22656 gcc_cv_ld_hidden=yes
22658 else
22659 gcc_cv_ld_hidden=yes
22660 if test x"$ld_is_gold" = xyes; then
22662 elif echo "$ld_ver" | grep GNU > /dev/null; then
22663 case "${target}" in
22664 mmix-knuth-mmixware)
22665 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22666 gcc_cv_ld_hidden=no
22668 esac
22669 if test 0"$ld_date" -lt 20020404; then
22670 if test -n "$ld_date"; then
22671 # If there was date string, but was earlier than 2002-04-04, fail
22672 gcc_cv_ld_hidden=no
22673 elif test -z "$ld_vers"; then
22674 # If there was no date string nor ld version number, something is wrong
22675 gcc_cv_ld_hidden=no
22676 else
22677 test -z "$ld_vers_patch" && ld_vers_patch=0
22678 if test "$ld_vers_major" -lt 2; then
22679 gcc_cv_ld_hidden=no
22680 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22681 gcc_cv_ld_hidden="no"
22682 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22683 gcc_cv_ld_hidden=no
22687 else
22688 case "${target}" in
22689 *-*-darwin*)
22690 # Darwin ld has some visibility support.
22691 gcc_cv_ld_hidden=yes
22693 hppa64*-*-hpux* | ia64*-*-hpux*)
22694 gcc_cv_ld_hidden=yes
22696 *-*-solaris2.1[0-9]*)
22697 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22698 # .symbolic was only added in Solaris 9 12/02.
22699 gcc_cv_ld_hidden=yes
22702 gcc_cv_ld_hidden=no
22704 esac
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22709 $as_echo "$gcc_cv_ld_hidden" >&6; }
22710 libgcc_visibility=no
22713 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22714 libgcc_visibility=yes
22716 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22721 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22722 gcc_cv_ld_ro_rw_mix=unknown
22723 if test $in_tree_ld = yes ; then
22724 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 \
22725 && test $in_tree_ld_is_elf = yes; then
22726 gcc_cv_ld_ro_rw_mix=read-write
22728 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22729 echo '.section myfoosect, "a"' > conftest1.s
22730 echo '.section myfoosect, "aw"' > conftest2.s
22731 echo '.byte 1' >> conftest2.s
22732 echo '.section myfoosect, "a"' > conftest3.s
22733 echo '.byte 0' >> conftest3.s
22734 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22735 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22736 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22737 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22738 conftest2.o conftest3.o > /dev/null 2>&1; then
22739 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22740 | sed -e '/myfoosect/!d' -e N`
22741 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22742 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22743 gcc_cv_ld_ro_rw_mix=read-only
22744 else
22745 gcc_cv_ld_ro_rw_mix=read-write
22749 rm -f conftest.* conftest[123].*
22751 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22753 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22757 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22759 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22760 case "${target}" in
22761 *-*-solaris2*)
22763 # Solaris 2 ld -V output looks like this for a regular version:
22765 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22767 # but test versions add stuff at the end:
22769 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22771 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22772 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22773 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22774 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22775 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22776 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22779 esac
22782 # Check whether --enable-initfini-array was given.
22783 if test "${enable_initfini_array+set}" = set; then :
22784 enableval=$enable_initfini_array;
22785 else
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22788 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22789 if test "${gcc_cv_initfini_array+set}" = set; then :
22790 $as_echo_n "(cached) " >&6
22791 else
22792 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22793 case "${target}" in
22794 ia64-*)
22795 if test "$cross_compiling" = yes; then :
22796 gcc_cv_initfini_array=no
22797 else
22798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22799 /* end confdefs.h. */
22801 #ifndef __ELF__
22802 #error Not an ELF OS
22803 #endif
22804 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22805 if it can be used. */
22806 static int x = -1;
22807 int main (void) { return x; }
22808 int foo (void) { x = 0; }
22809 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22811 _ACEOF
22812 if ac_fn_cxx_try_run "$LINENO"; then :
22813 gcc_cv_initfini_array=yes
22814 else
22815 gcc_cv_initfini_array=no
22817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22818 conftest.$ac_objext conftest.beam conftest.$ac_ext
22822 gcc_cv_initfini_array=no
22823 if test $in_tree_ld = yes ; then
22824 if test "$gcc_cv_gld_major_version" -eq 2 \
22825 -a "$gcc_cv_gld_minor_version" -ge 22 \
22826 -o "$gcc_cv_gld_major_version" -gt 2 \
22827 && test $in_tree_ld_is_elf = yes; then
22828 gcc_cv_initfini_array=yes
22830 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22831 cat > conftest.s <<\EOF
22832 .section .dtors,"a",%progbits
22833 .balign 4
22834 .byte 'A', 'A', 'A', 'A'
22835 .section .ctors,"a",%progbits
22836 .balign 4
22837 .byte 'B', 'B', 'B', 'B'
22838 .section .fini_array.65530,"a",%progbits
22839 .balign 4
22840 .byte 'C', 'C', 'C', 'C'
22841 .section .init_array.65530,"a",%progbits
22842 .balign 4
22843 .byte 'D', 'D', 'D', 'D'
22844 .section .dtors.64528,"a",%progbits
22845 .balign 4
22846 .byte 'E', 'E', 'E', 'E'
22847 .section .ctors.64528,"a",%progbits
22848 .balign 4
22849 .byte 'F', 'F', 'F', 'F'
22850 .section .fini_array.01005,"a",%progbits
22851 .balign 4
22852 .byte 'G', 'G', 'G', 'G'
22853 .section .init_array.01005,"a",%progbits
22854 .balign 4
22855 .byte 'H', 'H', 'H', 'H'
22856 .text
22857 .globl _start
22858 _start:
22860 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22861 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22862 && $gcc_cv_objdump -s -j .init_array conftest \
22863 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22864 && $gcc_cv_objdump -s -j .fini_array conftest \
22865 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22866 gcc_cv_initfini_array=yes
22868 rm -f conftest conftest.*
22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h. */
22873 #ifndef __ELF__
22874 # error Not an ELF OS
22875 #endif
22876 #include <stdlib.h>
22877 #if defined __GLIBC_PREREQ
22878 # if __GLIBC_PREREQ (2, 4)
22879 # else
22880 # error GLIBC 2.4 required
22881 # endif
22882 #else
22883 # if defined __sun__ && defined __svr4__
22884 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22885 # else
22886 # error The C library not known to support .init_array/.fini_array
22887 # endif
22888 #endif
22890 _ACEOF
22891 if ac_fn_cxx_try_cpp "$LINENO"; then :
22893 else
22894 gcc_cv_initfini_array=no
22896 rm -f conftest.err conftest.$ac_ext;;
22897 esac
22898 else
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22900 $as_echo_n "checking cross compile... guessing... " >&6; }
22901 gcc_cv_initfini_array=no
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22905 $as_echo "$gcc_cv_initfini_array" >&6; }
22906 enable_initfini_array=$gcc_cv_initfini_array
22910 if test $enable_initfini_array = yes; then
22912 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22916 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22918 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22919 if test "${gcc_cv_as_leb128+set}" = set; then :
22920 $as_echo_n "(cached) " >&6
22921 else
22922 gcc_cv_as_leb128=no
22923 if test $in_tree_gas = yes; then
22924 if test $in_tree_gas_is_elf = yes \
22925 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22926 then gcc_cv_as_leb128=yes
22928 elif test x$gcc_cv_as != x; then
22929 $as_echo ' .data
22930 .uleb128 L2 - L1
22932 .uleb128 1280
22933 .sleb128 -1010
22934 L2:' > conftest.s
22935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22937 (eval $ac_try) 2>&5
22938 ac_status=$?
22939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22940 test $ac_status = 0; }; }
22941 then
22942 # GAS versions before 2.11 do not support uleb128,
22943 # despite appearing to.
22944 # ??? There exists an elf-specific test that will crash
22945 # the assembler. Perhaps it's better to figure out whether
22946 # arbitrary sections are supported and try the test.
22947 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22948 if echo "$as_ver" | grep GNU > /dev/null; then
22949 as_vers=`echo $as_ver | sed -n \
22950 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22951 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22952 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22953 if test $as_major -eq 2 && test $as_minor -lt 11
22954 then :
22955 else gcc_cv_as_leb128=yes
22958 else
22959 echo "configure: failed program was" >&5
22960 cat conftest.s >&5
22962 rm -f conftest.o conftest.s
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22966 $as_echo "$gcc_cv_as_leb128" >&6; }
22967 if test $gcc_cv_as_leb128 = yes; then
22969 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22973 # Check if we have assembler support for unwind directives.
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22975 $as_echo_n "checking assembler for cfi directives... " >&6; }
22976 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22977 $as_echo_n "(cached) " >&6
22978 else
22979 gcc_cv_as_cfi_directive=no
22980 if test x$gcc_cv_as != x; then
22981 $as_echo ' .text
22982 .cfi_startproc
22983 .cfi_offset 0, 0
22984 .cfi_same_value 1
22985 .cfi_def_cfa 1, 2
22986 .cfi_escape 1, 2, 3, 4, 5
22987 .cfi_endproc' > conftest.s
22988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990 (eval $ac_try) 2>&5
22991 ac_status=$?
22992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993 test $ac_status = 0; }; }
22994 then
22995 case "$target" in
22996 *-*-solaris*)
22997 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22998 # read-only and read-write sections, we need to make sure that the
22999 # assembler used emits read-write .eh_frame sections.
23000 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23001 if test "x$gcc_cv_objdump" != x; then
23002 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23003 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23004 gcc_cv_as_cfi_directive=no
23005 else
23006 case "$target" in
23007 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23008 # On Solaris/x86, make sure that GCC and assembler agree on using
23009 # read-only .eh_frame sections for 64-bit.
23010 if test x$gas = xyes; then
23011 as_ix86_64_opt="--64"
23012 else
23013 as_ix86_64_opt="-xarch=amd64"
23015 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23016 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23017 sed -e /.eh_frame/!d -e N | \
23018 grep READONLY > /dev/null; then
23019 gcc_cv_as_cfi_directive=yes
23020 else
23021 gcc_cv_as_cfi_directive=no
23025 gcc_cv_as_cfi_directive=yes
23027 esac
23029 else
23030 # no objdump, err on the side of caution
23031 gcc_cv_as_cfi_directive=no
23033 else
23034 gcc_cv_as_cfi_directive=yes
23037 *-*-*)
23038 gcc_cv_as_cfi_directive=yes
23040 esac
23041 else
23042 echo "configure: failed program was" >&5
23043 cat conftest.s >&5
23045 rm -f conftest.o conftest.s
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23049 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23051 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23053 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23054 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23055 $as_echo_n "(cached) " >&6
23056 else
23057 gcc_cv_as_cfi_advance_working=no
23058 if test x$gcc_cv_as != x; then
23059 $as_echo ' .text
23060 .cfi_startproc
23061 .cfi_adjust_cfa_offset 64
23062 .skip 75040, 0
23063 .cfi_adjust_cfa_offset 128
23064 .cfi_endproc' > conftest.s
23065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23067 (eval $ac_try) 2>&5
23068 ac_status=$?
23069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23070 test $ac_status = 0; }; }
23071 then
23073 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23074 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23075 gcc_cv_as_cfi_advance_working=yes
23078 else
23079 echo "configure: failed program was" >&5
23080 cat conftest.s >&5
23082 rm -f conftest.o conftest.s
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23086 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23088 else
23089 # no objdump, err on the side of caution
23090 gcc_cv_as_cfi_advance_working=no
23094 cat >>confdefs.h <<_ACEOF
23095 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23096 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23097 _ACEOF
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23102 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23103 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23104 $as_echo_n "(cached) " >&6
23105 else
23106 gcc_cv_as_cfi_personality_directive=no
23107 if test x$gcc_cv_as != x; then
23108 $as_echo ' .text
23109 .cfi_startproc
23110 .cfi_personality 0, symbol
23111 .cfi_endproc' > conftest.s
23112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23117 test $ac_status = 0; }; }
23118 then
23119 gcc_cv_as_cfi_personality_directive=yes
23120 else
23121 echo "configure: failed program was" >&5
23122 cat conftest.s >&5
23124 rm -f conftest.o conftest.s
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23128 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23131 cat >>confdefs.h <<_ACEOF
23132 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23133 then echo 1; else echo 0; fi`
23134 _ACEOF
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23138 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23139 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23141 else
23142 gcc_cv_as_cfi_sections_directive=no
23143 if test x$gcc_cv_as != x; then
23144 $as_echo ' .text
23145 .cfi_sections .debug_frame, .eh_frame
23146 .cfi_startproc
23147 .cfi_endproc' > conftest.s
23148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23154 then
23155 case $target_os in
23156 win32 | pe | cygwin* | mingw32* | uwin*)
23157 # Need to check that we generated the correct relocation for the
23158 # .debug_frame section. This was fixed for binutils 2.21.
23159 gcc_cv_as_cfi_sections_directive=no
23160 if test "x$gcc_cv_objdump" != x; then
23161 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23162 grep secrel > /dev/null; then
23163 gcc_cv_as_cfi_sections_directive=yes
23168 gcc_cv_as_cfi_sections_directive=yes
23170 esac
23171 else
23172 echo "configure: failed program was" >&5
23173 cat conftest.s >&5
23175 rm -f conftest.o conftest.s
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23179 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23183 cat >>confdefs.h <<_ACEOF
23184 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23185 then echo 1; else echo 0; fi`
23186 _ACEOF
23189 # GAS versions up to and including 2.11.0 may mis-optimize
23190 # .eh_frame data.
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23192 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23193 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23195 else
23196 gcc_cv_as_eh_frame=no
23197 if test $in_tree_gas = yes; then
23198 if test $in_tree_gas_is_elf = yes \
23199 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23200 then gcc_cv_as_eh_frame=yes
23202 elif test x$gcc_cv_as != x; then
23203 $as_echo ' .text
23204 .LFB1:
23205 .4byte 0
23206 .L1:
23207 .4byte 0
23208 .LFE1:
23209 .section .eh_frame,"aw",@progbits
23210 __FRAME_BEGIN__:
23211 .4byte .LECIE1-.LSCIE1
23212 .LSCIE1:
23213 .4byte 0x0
23214 .byte 0x1
23215 .ascii "z\0"
23216 .byte 0x1
23217 .byte 0x78
23218 .byte 0x1a
23219 .byte 0x0
23220 .byte 0x4
23221 .4byte 1
23222 .p2align 1
23223 .LECIE1:
23224 .LSFDE1:
23225 .4byte .LEFDE1-.LASFDE1
23226 .LASFDE1:
23227 .4byte .LASFDE1-__FRAME_BEGIN__
23228 .4byte .LFB1
23229 .4byte .LFE1-.LFB1
23230 .byte 0x4
23231 .4byte .LFE1-.LFB1
23232 .byte 0x4
23233 .4byte .L1-.LFB1
23234 .LEFDE1:' > conftest.s
23235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23240 test $ac_status = 0; }; }
23241 then
23242 cat > conftest.lit <<EOF
23243 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23244 0010 01000000 12000000 18000000 00000000 ................
23245 0020 08000000 04080000 0044 .........D
23247 cat > conftest.big <<EOF
23248 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23249 0010 00000001 00000012 00000018 00000000 ................
23250 0020 00000008 04000000 0844 .........D
23252 # If the assembler didn't choke, and we can objdump,
23253 # and we got the correct data, then succeed.
23254 # The text in the here-document typically retains its unix-style line
23255 # endings, while the output of objdump will use host line endings.
23256 # Therefore, use diff -b for the comparisons.
23257 if test x$gcc_cv_objdump != x \
23258 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23259 | tail -3 > conftest.got \
23260 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23261 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23262 then
23263 gcc_cv_as_eh_frame=yes
23264 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23266 (eval $ac_try) 2>&5
23267 ac_status=$?
23268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23269 test $ac_status = 0; }; }; then
23270 gcc_cv_as_eh_frame=buggy
23271 else
23272 # Uh oh, what do we do now?
23273 gcc_cv_as_eh_frame=no
23275 else
23276 echo "configure: failed program was" >&5
23277 cat conftest.s >&5
23279 rm -f conftest.o conftest.s
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23283 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23286 if test $gcc_cv_as_eh_frame = buggy; then
23288 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23293 $as_echo_n "checking assembler for section merging support... " >&6; }
23294 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23295 $as_echo_n "(cached) " >&6
23296 else
23297 gcc_cv_as_shf_merge=no
23298 if test $in_tree_gas = yes; then
23299 if test $in_tree_gas_is_elf = yes \
23300 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23301 then gcc_cv_as_shf_merge=yes
23303 elif test x$gcc_cv_as != x; then
23304 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23305 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23307 (eval $ac_try) 2>&5
23308 ac_status=$?
23309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23310 test $ac_status = 0; }; }
23311 then
23312 gcc_cv_as_shf_merge=yes
23313 else
23314 echo "configure: failed program was" >&5
23315 cat conftest.s >&5
23317 rm -f conftest.o conftest.s
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23321 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23323 if test $gcc_cv_as_shf_merge = no; then
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23325 $as_echo_n "checking assembler for section merging support... " >&6; }
23326 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23327 $as_echo_n "(cached) " >&6
23328 else
23329 gcc_cv_as_shf_merge=no
23330 if test $in_tree_gas = yes; then
23331 if test $in_tree_gas_is_elf = yes \
23332 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23333 then gcc_cv_as_shf_merge=yes
23335 elif test x$gcc_cv_as != x; then
23336 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23342 test $ac_status = 0; }; }
23343 then
23344 gcc_cv_as_shf_merge=yes
23345 else
23346 echo "configure: failed program was" >&5
23347 cat conftest.s >&5
23349 rm -f conftest.o conftest.s
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23353 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23357 cat >>confdefs.h <<_ACEOF
23358 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23359 _ACEOF
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23363 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23364 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23365 $as_echo_n "(cached) " >&6
23366 else
23367 gcc_cv_as_comdat_group=no
23368 if test $in_tree_gas = yes; then
23369 if test $in_tree_gas_is_elf = yes \
23370 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23371 then gcc_cv_as_comdat_group=yes
23373 elif test x$gcc_cv_as != x; then
23374 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23377 (eval $ac_try) 2>&5
23378 ac_status=$?
23379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380 test $ac_status = 0; }; }
23381 then
23382 gcc_cv_as_comdat_group=yes
23383 else
23384 echo "configure: failed program was" >&5
23385 cat conftest.s >&5
23387 rm -f conftest.o conftest.s
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23391 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23393 if test $gcc_cv_as_comdat_group = yes; then
23394 gcc_cv_as_comdat_group_percent=no
23395 gcc_cv_as_comdat_group_group=no
23396 else
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23398 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23399 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402 gcc_cv_as_comdat_group_percent=no
23403 if test $in_tree_gas = yes; then
23404 if test $in_tree_gas_is_elf = yes \
23405 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23406 then gcc_cv_as_comdat_group_percent=yes
23408 elif test x$gcc_cv_as != x; then
23409 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23412 (eval $ac_try) 2>&5
23413 ac_status=$?
23414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23415 test $ac_status = 0; }; }
23416 then
23417 gcc_cv_as_comdat_group_percent=yes
23418 else
23419 echo "configure: failed program was" >&5
23420 cat conftest.s >&5
23422 rm -f conftest.o conftest.s
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23426 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23428 if test $gcc_cv_as_comdat_group_percent = yes; then
23429 gcc_cv_as_comdat_group_group=no
23430 else
23431 case "${target}" in
23432 # Sun as uses a completely different syntax.
23433 *-*-solaris2*)
23434 case "${target}" in
23435 sparc*-*-solaris2*)
23436 conftest_s='
23437 .group foo,".text%foo",#comdat
23438 .section ".text%foo", #alloc,#execinstr,#progbits
23439 .globl foo
23440 foo:
23443 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23444 conftest_s='
23445 .group foo,.text%foo,#comdat
23446 .section .text%foo, "ax", @progbits
23447 .globl foo
23448 foo:
23451 esac
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23453 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23454 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23456 else
23457 gcc_cv_as_comdat_group_group=no
23458 if test x$gcc_cv_as != x; then
23459 $as_echo "$conftest_s" > conftest.s
23460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23462 (eval $ac_try) 2>&5
23463 ac_status=$?
23464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23465 test $ac_status = 0; }; }
23466 then
23467 gcc_cv_as_comdat_group_group=yes
23468 else
23469 echo "configure: failed program was" >&5
23470 cat conftest.s >&5
23472 rm -f conftest.o conftest.s
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23476 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23479 esac
23480 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23481 gcc_cv_as_comdat_group_group=no
23485 if test x"$ld_is_gold" = xyes; then
23486 comdat_group=yes
23487 elif test $in_tree_ld = yes ; then
23488 comdat_group=no
23489 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 \
23490 && test $in_tree_ld_is_elf = yes; then
23491 comdat_group=yes
23493 elif echo "$ld_ver" | grep GNU > /dev/null; then
23494 comdat_group=yes
23495 if test 0"$ld_date" -lt 20050308; then
23496 if test -n "$ld_date"; then
23497 # If there was date string, but was earlier than 2005-03-08, fail
23498 comdat_group=no
23499 elif test "$ld_vers_major" -lt 2; then
23500 comdat_group=no
23501 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23502 comdat_group=no
23505 else
23506 case "${target}" in
23507 *-*-solaris2.1[1-9]*)
23508 comdat_group=no
23509 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23510 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23511 # version 1.688.
23513 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23514 # least ld version 1.2267.
23515 if test "$ld_vers_major" -gt 1; then
23516 comdat_group=yes
23517 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23518 comdat_group=yes
23519 elif test "$ld_vers_minor" -ge 2267; then
23520 comdat_group=yes
23524 # Assume linkers other than GNU ld don't support COMDAT group.
23525 comdat_group=no
23527 esac
23529 # Allow overriding the automatic COMDAT group tests above.
23530 # Check whether --enable-comdat was given.
23531 if test "${enable_comdat+set}" = set; then :
23532 enableval=$enable_comdat; comdat_group="$enable_comdat"
23535 if test $comdat_group = no; then
23536 gcc_cv_as_comdat_group=no
23537 gcc_cv_as_comdat_group_percent=no
23538 gcc_cv_as_comdat_group_group=no
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23543 || test $gcc_cv_as_comdat_group_percent = yes \
23544 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23545 _ACEOF
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23549 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23550 if test "${gcc_cv_as_discriminator+set}" = set; then :
23551 $as_echo_n "(cached) " >&6
23552 else
23553 gcc_cv_as_discriminator=no
23554 if test $in_tree_gas = yes; then
23555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23556 then gcc_cv_as_discriminator=yes
23558 elif test x$gcc_cv_as != x; then
23559 $as_echo ' .text
23560 .file 1 "conf.c"
23561 .loc 1 1 0 discriminator 1' > conftest.s
23562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23564 (eval $ac_try) 2>&5
23565 ac_status=$?
23566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23567 test $ac_status = 0; }; }
23568 then
23569 gcc_cv_as_discriminator=yes
23570 else
23571 echo "configure: failed program was" >&5
23572 cat conftest.s >&5
23574 rm -f conftest.o conftest.s
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23578 $as_echo "$gcc_cv_as_discriminator" >&6; }
23579 if test $gcc_cv_as_discriminator = yes; then
23581 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23585 # Thread-local storage - the check is heavily parameterized.
23586 conftest_s=
23587 tls_first_major=
23588 tls_first_minor=
23589 tls_as_opt=
23590 case "$target" in
23591 alpha*-*-*)
23592 conftest_s='
23593 .section ".tdata","awT",@progbits
23594 foo: .long 25
23595 .text
23596 ldq $27,__tls_get_addr($29) !literal!1
23597 lda $16,foo($29) !tlsgd!1
23598 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23599 ldq $27,__tls_get_addr($29) !literal!2
23600 lda $16,foo($29) !tlsldm!2
23601 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23602 ldq $1,foo($29) !gotdtprel
23603 ldah $2,foo($29) !dtprelhi
23604 lda $3,foo($2) !dtprello
23605 lda $4,foo($29) !dtprel
23606 ldq $1,foo($29) !gottprel
23607 ldah $2,foo($29) !tprelhi
23608 lda $3,foo($2) !tprello
23609 lda $4,foo($29) !tprel'
23610 tls_first_major=2
23611 tls_first_minor=13
23612 tls_as_opt=--fatal-warnings
23614 cris-*-*|crisv32-*-*)
23615 conftest_s='
23616 .section ".tdata","awT",@progbits
23617 x: .long 25
23618 .text
23619 move.d x:IE,$r10
23620 nop'
23621 tls_first_major=2
23622 tls_first_minor=20
23623 tls_as_opt=--fatal-warnings
23625 frv*-*-*)
23626 conftest_s='
23627 .section ".tdata","awT",@progbits
23628 x: .long 25
23629 .text
23630 call #gettlsoff(x)'
23631 tls_first_major=2
23632 tls_first_minor=14
23634 hppa*-*-linux*)
23635 conftest_s='
23636 t1: .reg %r20
23637 t2: .reg %r21
23638 gp: .reg %r19
23639 .section ".tdata","awT",@progbits
23640 foo: .long 25
23641 .text
23642 .align 4
23643 addil LT%foo-$tls_gdidx$,gp
23644 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23645 b __tls_get_addr
23647 addil LT%foo-$tls_ldidx$,gp
23648 b __tls_get_addr
23649 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23650 addil LR%foo-$tls_dtpoff$,%ret0
23651 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23652 mfctl %cr27,%t1
23653 addil LT%foo-$tls_ieoff$,gp
23654 ldw RT%foo-$tls_ieoff$(%r1),%t2
23655 add %t1,%t2,%t3
23656 mfctl %cr27,%t1
23657 addil LR%foo-$tls_leoff$,%t1
23658 ldo RR%foo-$tls_leoff$(%r1),%t2'
23659 tls_first_major=2
23660 tls_first_minor=15
23661 tls_as_opt=--fatal-warnings
23663 arm*-*-*)
23664 conftest_s='
23665 .section ".tdata","awT",%progbits
23666 foo: .long 25
23667 .text
23668 .word foo(gottpoff)
23669 .word foo(tpoff)
23670 .word foo(tlsgd)
23671 .word foo(tlsldm)
23672 .word foo(tlsldo)'
23673 tls_first_major=2
23674 tls_first_minor=17
23676 i[34567]86-*-* | x86_64-*-*)
23677 case "$target" in
23678 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23679 on_solaris=yes
23682 on_solaris=no
23684 esac
23685 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23686 conftest_s='
23687 .section .tdata,"awt",@progbits'
23688 tls_first_major=0
23689 tls_first_minor=0
23690 tls_section_flag=t
23692 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23694 else
23695 conftest_s='
23696 .section ".tdata","awT",@progbits'
23697 tls_first_major=2
23698 tls_first_minor=14
23699 tls_section_flag=T
23700 tls_as_opt="--fatal-warnings"
23702 case "$target" in
23703 i[34567]86-*-*)
23704 conftest_s="$conftest_s
23705 foo: .long 25
23706 .text
23707 movl %gs:0, %eax
23708 leal foo@tlsgd(,%ebx,1), %eax
23709 leal foo@tlsldm(%ebx), %eax
23710 leal foo@dtpoff(%eax), %edx
23711 movl foo@gottpoff(%ebx), %eax
23712 subl foo@gottpoff(%ebx), %eax
23713 addl foo@gotntpoff(%ebx), %eax
23714 movl foo@indntpoff, %eax
23715 movl \$foo@tpoff, %eax
23716 subl \$foo@tpoff, %eax
23717 leal foo@ntpoff(%ecx), %eax"
23719 x86_64-*-*)
23720 if test x$on_solaris = xyes; then
23721 case $gas_flag in
23722 yes) tls_as_opt="$tls_as_opt --64" ;;
23723 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23724 esac
23726 conftest_s="$conftest_s
23727 foo: .long 25
23728 .text
23729 movq %fs:0, %rax
23730 leaq foo@tlsgd(%rip), %rdi
23731 leaq foo@tlsld(%rip), %rdi
23732 leaq foo@dtpoff(%rax), %rdx
23733 movq foo@gottpoff(%rip), %rax
23734 movq \$foo@tpoff, %rax"
23736 esac
23738 ia64-*-*)
23739 conftest_s='
23740 .section ".tdata","awT",@progbits
23741 foo: data8 25
23742 .text
23743 addl r16 = @ltoff(@dtpmod(foo#)), gp
23744 addl r17 = @ltoff(@dtprel(foo#)), gp
23745 addl r18 = @ltoff(@tprel(foo#)), gp
23746 addl r19 = @dtprel(foo#), gp
23747 adds r21 = @dtprel(foo#), r13
23748 movl r23 = @dtprel(foo#)
23749 addl r20 = @tprel(foo#), gp
23750 adds r22 = @tprel(foo#), r13
23751 movl r24 = @tprel(foo#)'
23752 tls_first_major=2
23753 tls_first_minor=13
23754 tls_as_opt=--fatal-warnings
23756 microblaze*-*-*)
23757 conftest_s='
23758 .section .tdata,"awT",@progbits
23760 .word 2
23761 .text
23762 addik r5,r20,x@TLSGD
23763 addik r5,r20,x@TLSLDM'
23764 tls_first_major=2
23765 tls_first_minor=20
23766 tls_as_opt='--fatal-warnings'
23768 mips*-*-*)
23769 conftest_s='
23770 .section .tdata,"awT",@progbits
23772 .word 2
23773 .text
23774 addiu $4, $28, %tlsgd(x)
23775 addiu $4, $28, %tlsldm(x)
23776 lui $4, %dtprel_hi(x)
23777 addiu $4, $4, %dtprel_lo(x)
23778 lw $4, %gottprel(x)($28)
23779 lui $4, %tprel_hi(x)
23780 addiu $4, $4, %tprel_lo(x)'
23781 tls_first_major=2
23782 tls_first_minor=16
23783 tls_as_opt='-32 --fatal-warnings'
23785 m68k-*-*)
23786 conftest_s='
23787 .section .tdata,"awT",@progbits
23789 .word 2
23790 .text
23791 foo:
23792 move.l x@TLSGD(%a5),%a0
23793 move.l x@TLSLDM(%a5),%a0
23794 move.l x@TLSLDO(%a5),%a0
23795 move.l x@TLSIE(%a5),%a0
23796 move.l x@TLSLE(%a5),%a0'
23797 tls_first_major=2
23798 tls_first_minor=19
23799 tls_as_opt='--fatal-warnings'
23801 nios2-*-*)
23802 conftest_s='
23803 .section ".tdata","awT",@progbits'
23804 tls_first_major=2
23805 tls_first_minor=23
23806 tls_as_opt="--fatal-warnings"
23808 aarch64*-*-*)
23809 conftest_s='
23810 .section ".tdata","awT",%progbits
23811 foo: .long 25
23812 .text
23813 adrp x0, :tlsgd:x
23814 add x0, x0, #:tlsgd_lo12:x
23815 bl __tls_get_addr
23816 nop'
23817 tls_first_major=2
23818 tls_first_minor=20
23819 tls_as_opt='--fatal-warnings'
23821 powerpc-ibm-aix*)
23822 conftest_s='
23823 .extern __get_tpointer
23824 .toc
23825 LC..1:
23826 .tc a[TC],a[TL]@le
23827 .csect .text[PR]
23828 .tlstest:
23829 lwz 9,LC..1(2)
23830 bla __get_tpointer
23831 lwzx 3,9,3
23832 .globl a
23833 .csect a[TL],4
23835 .space 4'
23836 tls_first_major=0
23837 tls_first_minor=0
23839 powerpc64*-*-*)
23840 conftest_s='
23841 .section ".tdata","awT",@progbits
23842 .align 3
23843 ld0: .space 8
23844 ld1: .space 8
23845 x1: .space 8
23846 x2: .space 8
23847 x3: .space 8
23848 .text
23849 addi 3,2,ld0@got@tlsgd
23850 bl .__tls_get_addr
23852 addi 3,2,ld1@toc
23853 bl .__tls_get_addr
23855 addi 3,2,x1@got@tlsld
23856 bl .__tls_get_addr
23858 addi 9,3,x1@dtprel
23859 bl .__tls_get_addr
23861 addis 9,3,x2@dtprel@ha
23862 addi 9,9,x2@dtprel@l
23863 bl .__tls_get_addr
23865 ld 9,x3@got@dtprel(2)
23866 add 9,9,3
23867 bl .__tls_get_addr
23868 nop'
23869 tls_first_major=2
23870 tls_first_minor=14
23871 tls_as_opt="-a64 --fatal-warnings"
23873 powerpc*-*-*)
23874 conftest_s='
23875 .section ".tdata","awT",@progbits
23876 .align 2
23877 ld0: .space 4
23878 ld1: .space 4
23879 x1: .space 4
23880 x2: .space 4
23881 x3: .space 4
23882 .text
23883 addi 3,31,ld0@got@tlsgd
23884 bl __tls_get_addr
23885 addi 3,31,x1@got@tlsld
23886 bl __tls_get_addr
23887 addi 9,3,x1@dtprel
23888 addis 9,3,x2@dtprel@ha
23889 addi 9,9,x2@dtprel@l
23890 lwz 9,x3@got@tprel(31)
23891 add 9,9,x@tls
23892 addi 9,2,x1@tprel
23893 addis 9,2,x2@tprel@ha
23894 addi 9,9,x2@tprel@l'
23895 tls_first_major=2
23896 tls_first_minor=14
23897 tls_as_opt="-a32 --fatal-warnings"
23899 s390-*-*)
23900 conftest_s='
23901 .section ".tdata","awT",@progbits
23902 foo: .long 25
23903 .text
23904 .long foo@TLSGD
23905 .long foo@TLSLDM
23906 .long foo@DTPOFF
23907 .long foo@NTPOFF
23908 .long foo@GOTNTPOFF
23909 .long foo@INDNTPOFF
23910 l %r1,foo@GOTNTPOFF(%r12)
23911 l %r1,0(%r1):tls_load:foo
23912 bas %r14,0(%r1,%r13):tls_gdcall:foo
23913 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23914 tls_first_major=2
23915 tls_first_minor=14
23916 tls_as_opt="-m31 --fatal-warnings"
23918 s390x-*-*)
23919 conftest_s='
23920 .section ".tdata","awT",@progbits
23921 foo: .long 25
23922 .text
23923 .quad foo@TLSGD
23924 .quad foo@TLSLDM
23925 .quad foo@DTPOFF
23926 .quad foo@NTPOFF
23927 .quad foo@GOTNTPOFF
23928 lg %r1,foo@GOTNTPOFF(%r12)
23929 larl %r1,foo@INDNTPOFF
23930 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23931 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23932 tls_first_major=2
23933 tls_first_minor=14
23934 tls_as_opt="-m64 -Aesame --fatal-warnings"
23936 sh-*-* | sh[34]-*-*)
23937 conftest_s='
23938 .section ".tdata","awT",@progbits
23939 foo: .long 25
23940 .text
23941 .long foo@TLSGD
23942 .long foo@TLSLDM
23943 .long foo@DTPOFF
23944 .long foo@GOTTPOFF
23945 .long foo@TPOFF'
23946 tls_first_major=2
23947 tls_first_minor=13
23948 tls_as_opt=--fatal-warnings
23950 sparc*-*-*)
23951 case "$target" in
23952 sparc*-sun-solaris2.*)
23953 on_solaris=yes
23956 on_solaris=no
23958 esac
23959 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23960 conftest_s='
23961 .section ".tdata",#alloc,#write,#tls'
23962 tls_first_major=0
23963 tls_first_minor=0
23964 else
23965 conftest_s='
23966 .section ".tdata","awT",@progbits'
23967 tls_first_major=2
23968 tls_first_minor=14
23969 tls_as_opt="-32 --fatal-warnings"
23971 conftest_s="$conftest_s
23972 foo: .long 25
23973 .text
23974 sethi %tgd_hi22(foo), %o0
23975 add %o0, %tgd_lo10(foo), %o1
23976 add %l7, %o1, %o0, %tgd_add(foo)
23977 call __tls_get_addr, %tgd_call(foo)
23978 sethi %tldm_hi22(foo), %l1
23979 add %l1, %tldm_lo10(foo), %l2
23980 add %l7, %l2, %o0, %tldm_add(foo)
23981 call __tls_get_addr, %tldm_call(foo)
23982 sethi %tldo_hix22(foo), %l3
23983 xor %l3, %tldo_lox10(foo), %l4
23984 add %o0, %l4, %l5, %tldo_add(foo)
23985 sethi %tie_hi22(foo), %o3
23986 add %o3, %tie_lo10(foo), %o3
23987 ld [%l7 + %o3], %o2, %tie_ld(foo)
23988 add %g7, %o2, %o4, %tie_add(foo)
23989 sethi %tle_hix22(foo), %l1
23990 xor %l1, %tle_lox10(foo), %o5
23991 ld [%g7 + %o5], %o1"
23993 tilepro*-*-*)
23994 conftest_s='
23995 .section ".tdata","awT",@progbits
23996 foo: .long 25
23997 .text
23998 addli r0, zero, tls_gd(foo)
23999 auli r0, zero, tls_gd_ha16(foo)
24000 addli r0, r0, tls_gd_lo16(foo)
24001 jal __tls_get_addr
24002 addli r0, zero, tls_ie(foo)
24003 auli r0, r0, tls_ie_ha16(foo)
24004 addli r0, r0, tls_ie_lo16(foo)'
24005 tls_first_major=2
24006 tls_first_minor=22
24007 tls_as_opt="--fatal-warnings"
24009 tilegx*-*-*)
24010 conftest_s='
24011 .section ".tdata","awT",@progbits
24012 foo: .long 25
24013 .text
24014 shl16insli r0, zero, hw0_last_tls_gd(foo)
24015 shl16insli r0, zero, hw1_last_tls_gd(foo)
24016 shl16insli r0, r0, hw0_tls_gd(foo)
24017 jal __tls_get_addr
24018 shl16insli r0, zero, hw1_last_tls_ie(foo)
24019 shl16insli r0, r0, hw0_tls_ie(foo)'
24020 tls_first_major=2
24021 tls_first_minor=22
24022 tls_as_opt="--fatal-warnings"
24024 xtensa*-*-*)
24025 conftest_s='
24026 .section ".tdata","awT",@progbits
24027 foo: .long 25
24028 .text
24029 movi a8, foo@TLSFUNC
24030 movi a10, foo@TLSARG
24031 callx8.tls a8, foo@TLSCALL'
24032 tls_first_major=2
24033 tls_first_minor=19
24035 esac
24036 set_have_as_tls=no
24037 if test "x$enable_tls" = xno ; then
24038 : # TLS explicitly disabled.
24039 elif test "x$enable_tls" = xyes ; then
24040 set_have_as_tls=yes # TLS explicitly enabled.
24041 elif test -z "$tls_first_major"; then
24042 : # If we don't have a check, assume no support.
24043 else
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24045 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24046 if test "${gcc_cv_as_tls+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24048 else
24049 gcc_cv_as_tls=no
24050 if test $in_tree_gas = yes; then
24051 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24052 then gcc_cv_as_tls=yes
24054 elif test x$gcc_cv_as != x; then
24055 $as_echo "$conftest_s" > conftest.s
24056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24058 (eval $ac_try) 2>&5
24059 ac_status=$?
24060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24061 test $ac_status = 0; }; }
24062 then
24063 gcc_cv_as_tls=yes
24064 else
24065 echo "configure: failed program was" >&5
24066 cat conftest.s >&5
24068 rm -f conftest.o conftest.s
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24072 $as_echo "$gcc_cv_as_tls" >&6; }
24073 if test $gcc_cv_as_tls = yes; then
24074 set_have_as_tls=yes
24077 if test $set_have_as_tls = yes ; then
24079 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24083 # Target-specific assembler checks.
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24086 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24087 gcc_cv_ld_static_dynamic=no
24088 gcc_cv_ld_static_option='-Bstatic'
24089 gcc_cv_ld_dynamic_option='-Bdynamic'
24090 if test $in_tree_ld = yes ; then
24091 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
24092 gcc_cv_ld_static_dynamic=yes
24094 elif test x$gcc_cv_ld != x; then
24095 # Check if linker supports -Bstatic/-Bdynamic option
24096 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24097 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24098 gcc_cv_ld_static_dynamic=yes
24099 else
24100 case "$target" in
24101 # AIX ld uses -b flags
24102 *-*-aix4.[23]* | *-*-aix[5-9]*)
24103 gcc_cv_ld_static_dynamic=yes
24104 gcc_cv_ld_static_option="-bstatic"
24105 gcc_cv_ld_dynamic_option="-bdynamic"
24107 # HP-UX ld uses -a flags to select between shared and archive.
24108 *-*-hpux*)
24109 if test x"$gnu_ld" = xno; then
24110 gcc_cv_ld_static_dynamic=yes
24111 gcc_cv_ld_static_option="-aarchive_shared"
24112 gcc_cv_ld_dynamic_option="-adefault"
24115 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24116 *-*-solaris2*)
24117 gcc_cv_ld_static_dynamic=yes
24119 esac
24122 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24124 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24127 cat >>confdefs.h <<_ACEOF
24128 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24129 _ACEOF
24132 cat >>confdefs.h <<_ACEOF
24133 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24134 _ACEOF
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24138 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24140 if test x"$demangler_in_ld" = xyes; then
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24142 $as_echo_n "checking linker --demangle support... " >&6; }
24143 gcc_cv_ld_demangle=no
24144 if test $in_tree_ld = yes; then
24145 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 \
24146 gcc_cv_ld_demangle=yes
24148 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24149 # Check if the GNU linker supports --demangle option
24150 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24151 gcc_cv_ld_demangle=yes
24154 if test x"$gcc_cv_ld_demangle" = xyes; then
24156 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24160 $as_echo "$gcc_cv_ld_demangle" >&6; }
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24164 $as_echo_n "checking linker plugin support... " >&6; }
24165 gcc_cv_lto_plugin=0
24166 if test -f liblto_plugin.la; then
24167 save_ld_ver="$ld_ver"
24168 save_ld_vers_major="$ld_vers_major"
24169 save_ld_vers_minor="$ld_vers_minor"
24170 save_ld_is_gold="$ld_is_gold"
24172 ld_is_gold=no
24174 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24175 ld_ver="GNU ld"
24176 # FIXME: ld_is_gold?
24177 ld_vers_major="$gcc_cv_gld_major_version"
24178 ld_vers_minor="$gcc_cv_gld_minor_version"
24179 else
24180 # Determine plugin linker version.
24181 # FIXME: Partial duplicate from above, generalize.
24182 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24183 if echo "$ld_ver" | grep GNU > /dev/null; then
24184 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24185 ld_is_gold=yes
24186 ld_vers=`echo $ld_ver | sed -n \
24187 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24188 else
24189 ld_vers=`echo $ld_ver | sed -n \
24190 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24192 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24193 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24197 # Determine plugin support.
24198 if echo "$ld_ver" | grep GNU > /dev/null; then
24199 # Require GNU ld or gold 2.21+ for plugin support by default.
24200 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24201 gcc_cv_lto_plugin=2
24202 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24203 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24204 gcc_cv_lto_plugin=1
24208 ld_ver="$save_ld_ver"
24209 ld_vers_major="$save_ld_vers_major"
24210 ld_vers_minor="$save_ld_vers_minor"
24211 ld_is_gold="$save_ld_is_gold"
24214 cat >>confdefs.h <<_ACEOF
24215 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24216 _ACEOF
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24219 $as_echo "$gcc_cv_lto_plugin" >&6; }
24221 case "$target" in
24222 aarch64*-*-*)
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24224 $as_echo_n "checking assembler for -mabi option... " >&6; }
24225 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24226 $as_echo_n "(cached) " >&6
24227 else
24228 gcc_cv_as_aarch64_mabi=no
24229 if test x$gcc_cv_as != x; then
24230 $as_echo '.text' > conftest.s
24231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24233 (eval $ac_try) 2>&5
24234 ac_status=$?
24235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24236 test $ac_status = 0; }; }
24237 then
24238 gcc_cv_as_aarch64_mabi=yes
24239 else
24240 echo "configure: failed program was" >&5
24241 cat conftest.s >&5
24243 rm -f conftest.o conftest.s
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24247 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24249 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24251 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24253 else
24254 if test x$with_abi = xilp32; then
24255 as_fn_error "Assembler does not support -mabi=ilp32.\
24256 Upgrade the Assembler." "$LINENO" 5
24258 if test x"$with_multilib_list" = xdefault; then
24259 TM_MULTILIB_CONFIG=lp64
24260 else
24261 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24262 for aarch64_multilib in ${aarch64_multilibs}; do
24263 case ${aarch64_multilib} in
24264 ilp32)
24265 as_fn_error "Assembler does not support -mabi=ilp32.\
24266 Upgrade the Assembler." "$LINENO" 5
24270 esac
24271 done
24274 # Check if we have binutils support for relocations types needed by -fpic
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24276 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24277 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24278 $as_echo_n "(cached) " >&6
24279 else
24280 gcc_cv_as_aarch64_picreloc=no
24281 if test x$gcc_cv_as != x; then
24282 $as_echo '
24283 .text
24284 ldr x0, [x2, #:gotpage_lo15:globalsym]
24285 ' > conftest.s
24286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24288 (eval $ac_try) 2>&5
24289 ac_status=$?
24290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24291 test $ac_status = 0; }; }
24292 then
24293 gcc_cv_as_aarch64_picreloc=yes
24294 else
24295 echo "configure: failed program was" >&5
24296 cat conftest.s >&5
24298 rm -f conftest.o conftest.s
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24302 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24303 if test $gcc_cv_as_aarch64_picreloc = yes; then
24305 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24308 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24309 # Check whether --enable-fix-cortex-a53-835769 was given.
24310 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24311 enableval=$enable_fix_cortex_a53_835769;
24312 case $enableval in
24313 yes)
24314 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24319 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24320 Valid choices are 'yes' and 'no'." "$LINENO" 5
24323 esac
24327 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24328 # Check whether --enable-fix-cortex-a53-843419 was given.
24329 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24330 enableval=$enable_fix_cortex_a53_843419;
24331 case $enableval in
24332 yes)
24333 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24338 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24339 Valid choices are 'yes' and 'no'." "$LINENO" 5
24342 esac
24348 # All TARGET_ABI_OSF targets.
24349 alpha*-*-linux* | alpha*-*-*bsd*)
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24351 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24352 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24353 $as_echo_n "(cached) " >&6
24354 else
24355 gcc_cv_as_alpha_explicit_relocs=no
24356 if test $in_tree_gas = yes; then
24357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24358 then gcc_cv_as_alpha_explicit_relocs=yes
24360 elif test x$gcc_cv_as != x; then
24361 $as_echo ' .set nomacro
24362 .text
24363 extbl $3, $2, $3 !lituse_bytoff!1
24364 ldq $2, a($29) !literal!1
24365 ldq $4, b($29) !literal!2
24366 ldq_u $3, 0($2) !lituse_base!1
24367 ldq $27, f($29) !literal!5
24368 jsr $26, ($27), f !lituse_jsr!5
24369 ldah $29, 0($26) !gpdisp!3
24370 lda $0, c($29) !gprel
24371 ldah $1, d($29) !gprelhigh
24372 lda $1, d($1) !gprellow
24373 lda $29, 0($29) !gpdisp!3' > conftest.s
24374 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24377 ac_status=$?
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }
24380 then
24381 gcc_cv_as_alpha_explicit_relocs=yes
24382 else
24383 echo "configure: failed program was" >&5
24384 cat conftest.s >&5
24386 rm -f conftest.o conftest.s
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24390 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24391 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24393 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24397 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24398 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24399 $as_echo_n "(cached) " >&6
24400 else
24401 gcc_cv_as_alpha_jsrdirect_relocs=no
24402 if test $in_tree_gas = yes; then
24403 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24404 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24406 elif test x$gcc_cv_as != x; then
24407 $as_echo ' .set nomacro
24408 .text
24409 ldq $27, a($29) !literal!1
24410 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24413 (eval $ac_try) 2>&5
24414 ac_status=$?
24415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24416 test $ac_status = 0; }; }
24417 then
24418 gcc_cv_as_alpha_jsrdirect_relocs=yes
24419 else
24420 echo "configure: failed program was" >&5
24421 cat conftest.s >&5
24423 rm -f conftest.o conftest.s
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24427 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24428 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24430 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24435 avr-*-*)
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24437 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24438 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24439 $as_echo_n "(cached) " >&6
24440 else
24441 gcc_cv_as_avr_mlink_relax=no
24442 if test x$gcc_cv_as != x; then
24443 $as_echo '.text' > conftest.s
24444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24449 test $ac_status = 0; }; }
24450 then
24451 gcc_cv_as_avr_mlink_relax=yes
24452 else
24453 echo "configure: failed program was" >&5
24454 cat conftest.s >&5
24456 rm -f conftest.o conftest.s
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24460 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24461 if test $gcc_cv_as_avr_mlink_relax = yes; then
24463 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24468 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24469 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24471 else
24472 gcc_cv_as_avr_mrmw=no
24473 if test x$gcc_cv_as != x; then
24474 $as_echo '.text' > conftest.s
24475 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24477 (eval $ac_try) 2>&5
24478 ac_status=$?
24479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24480 test $ac_status = 0; }; }
24481 then
24482 gcc_cv_as_avr_mrmw=yes
24483 else
24484 echo "configure: failed program was" >&5
24485 cat conftest.s >&5
24487 rm -f conftest.o conftest.s
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24491 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24492 if test $gcc_cv_as_avr_mrmw = yes; then
24494 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24499 cris-*-*)
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24501 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24502 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24504 else
24505 gcc_cv_as_cris_no_mul_bug=no
24506 if test $in_tree_gas = yes; then
24507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24508 then gcc_cv_as_cris_no_mul_bug=yes
24510 elif test x$gcc_cv_as != x; then
24511 $as_echo '.text' > conftest.s
24512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24515 ac_status=$?
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24518 then
24519 gcc_cv_as_cris_no_mul_bug=yes
24520 else
24521 echo "configure: failed program was" >&5
24522 cat conftest.s >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24528 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24529 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24531 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24536 sparc*-*-*)
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24538 $as_echo_n "checking assembler for .register... " >&6; }
24539 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24541 else
24542 gcc_cv_as_sparc_register_op=no
24543 if test x$gcc_cv_as != x; then
24544 $as_echo '.register %g2, #scratch' > conftest.s
24545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24548 ac_status=$?
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; }
24551 then
24552 gcc_cv_as_sparc_register_op=yes
24553 else
24554 echo "configure: failed program was" >&5
24555 cat conftest.s >&5
24557 rm -f conftest.o conftest.s
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24561 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24562 if test $gcc_cv_as_sparc_register_op = yes; then
24564 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24569 $as_echo_n "checking assembler for #nobits... " >&6; }
24570 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24572 else
24573 gcc_cv_as_sparc_nobits=no
24574 if test x$gcc_cv_as != x; then
24575 $as_echo '.section "nobits",#alloc,#write,#nobits
24576 .section "progbits",#alloc,#write,#progbits' > conftest.s
24577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24579 (eval $ac_try) 2>&5
24580 ac_status=$?
24581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24582 test $ac_status = 0; }; }
24583 then
24584 gcc_cv_as_sparc_nobits=yes
24585 else
24586 echo "configure: failed program was" >&5
24587 cat conftest.s >&5
24589 rm -f conftest.o conftest.s
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24593 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24596 cat >>confdefs.h <<_ACEOF
24597 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24598 _ACEOF
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24602 $as_echo_n "checking assembler for -relax option... " >&6; }
24603 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24604 $as_echo_n "(cached) " >&6
24605 else
24606 gcc_cv_as_sparc_relax=no
24607 if test x$gcc_cv_as != x; then
24608 $as_echo '.text' > conftest.s
24609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24611 (eval $ac_try) 2>&5
24612 ac_status=$?
24613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24614 test $ac_status = 0; }; }
24615 then
24616 gcc_cv_as_sparc_relax=yes
24617 else
24618 echo "configure: failed program was" >&5
24619 cat conftest.s >&5
24621 rm -f conftest.o conftest.s
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24625 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24626 if test $gcc_cv_as_sparc_relax = yes; then
24628 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24633 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24634 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24636 else
24637 gcc_cv_as_sparc_gotdata_op=no
24638 if test x$gcc_cv_as != x; then
24639 $as_echo '.text
24640 .align 4
24641 foo:
24643 bar:
24644 sethi %gdop_hix22(foo), %g1
24645 xor %g1, %gdop_lox10(foo), %g1
24646 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24649 (eval $ac_try) 2>&5
24650 ac_status=$?
24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24652 test $ac_status = 0; }; }
24653 then
24654 if test x$gcc_cv_ld != x \
24655 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24656 if test x$gcc_cv_objdump != x; then
24657 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24658 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24659 gcc_cv_as_sparc_gotdata_op=no
24660 else
24661 gcc_cv_as_sparc_gotdata_op=yes
24665 rm -f conftest
24666 else
24667 echo "configure: failed program was" >&5
24668 cat conftest.s >&5
24670 rm -f conftest.o conftest.s
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24674 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24675 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24677 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24682 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24683 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24685 else
24686 gcc_cv_as_sparc_ua_pcrel=no
24687 if test x$gcc_cv_as != x; then
24688 $as_echo '.text
24689 foo:
24691 .data
24692 .align 4
24693 .byte 0
24694 .uaword %r_disp32(foo)' > conftest.s
24695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24698 ac_status=$?
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24701 then
24702 if test x$gcc_cv_ld != x \
24703 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24704 gcc_cv_as_sparc_ua_pcrel=yes
24706 rm -f conftest
24707 else
24708 echo "configure: failed program was" >&5
24709 cat conftest.s >&5
24711 rm -f conftest.o conftest.s
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24715 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24716 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24718 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24722 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24723 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24725 else
24726 gcc_cv_as_sparc_ua_pcrel_hidden=no
24727 if test x$gcc_cv_as != x; then
24728 $as_echo '.data
24729 .align 4
24730 .byte 0x31
24731 .uaword %r_disp32(foo)
24732 .byte 0x32, 0x33, 0x34
24733 .global foo
24734 .hidden foo
24735 foo:
24736 .skip 4' > conftest.s
24737 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24739 (eval $ac_try) 2>&5
24740 ac_status=$?
24741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24742 test $ac_status = 0; }; }
24743 then
24744 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24745 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24746 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24747 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24748 if $gcc_cv_objdump -R conftest 2> /dev/null \
24749 | grep 'DISP32' > /dev/null 2>&1; then
24751 else
24752 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24755 rm -f conftest
24756 else
24757 echo "configure: failed program was" >&5
24758 cat conftest.s >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24764 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24765 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24767 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24771 fi # unaligned pcrel relocs
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24774 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24775 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24777 else
24778 gcc_cv_as_sparc_offsetable_lo10=no
24779 if test x$gcc_cv_as != x; then
24780 $as_echo '.text
24781 or %g1, %lo(ab) + 12, %g1
24782 or %g1, %lo(ab + 12), %g1' > conftest.s
24783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24789 then
24790 if test x$gcc_cv_objdump != x \
24791 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24792 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24793 gcc_cv_as_sparc_offsetable_lo10=yes
24795 else
24796 echo "configure: failed program was" >&5
24797 cat conftest.s >&5
24799 rm -f conftest.o conftest.s
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24803 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24804 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24806 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24811 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24812 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24813 $as_echo_n "(cached) " >&6
24814 else
24815 gcc_cv_as_sparc_fmaf=no
24816 if test x$gcc_cv_as != x; then
24817 $as_echo '.text
24818 .register %g2, #scratch
24819 .register %g3, #scratch
24820 .align 4
24821 fmaddd %f0, %f2, %f4, %f6
24822 addxccc %g1, %g2, %g3
24823 fsrl32 %f2, %f4, %f8
24824 fnaddd %f10, %f12, %f14' > conftest.s
24825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24827 (eval $ac_try) 2>&5
24828 ac_status=$?
24829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24830 test $ac_status = 0; }; }
24831 then
24832 gcc_cv_as_sparc_fmaf=yes
24833 else
24834 echo "configure: failed program was" >&5
24835 cat conftest.s >&5
24837 rm -f conftest.o conftest.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24841 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24842 if test $gcc_cv_as_sparc_fmaf = yes; then
24844 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24849 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24850 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24851 $as_echo_n "(cached) " >&6
24852 else
24853 gcc_cv_as_sparc_sparc4=no
24854 if test x$gcc_cv_as != x; then
24855 $as_echo '.text
24856 .register %g2, #scratch
24857 .register %g3, #scratch
24858 .align 4
24859 cxbe %g2, %g3, 1f
24860 1: cwbneg %g2, %g3, 1f
24861 1: sha1
24863 aes_kexpand0 %f4, %f6, %f8
24864 des_round %f38, %f40, %f42, %f44
24865 camellia_f %f54, %f56, %f58, %f60
24866 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24870 ac_status=$?
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24873 then
24874 gcc_cv_as_sparc_sparc4=yes
24875 else
24876 echo "configure: failed program was" >&5
24877 cat conftest.s >&5
24879 rm -f conftest.o conftest.s
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24883 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24884 if test $gcc_cv_as_sparc_sparc4 = yes; then
24886 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24891 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24892 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24893 $as_echo_n "(cached) " >&6
24894 else
24895 gcc_cv_as_sparc_leon=no
24896 if test x$gcc_cv_as != x; then
24897 $as_echo '.text
24898 .register %g2, #scratch
24899 .register %g3, #scratch
24900 .align 4
24901 smac %g2, %g3, %g1
24902 umac %g2, %g3, %g1
24903 casa [%g2] 0xb, %g3, %g1' > conftest.s
24904 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909 test $ac_status = 0; }; }
24910 then
24911 gcc_cv_as_sparc_leon=yes
24912 else
24913 echo "configure: failed program was" >&5
24914 cat conftest.s >&5
24916 rm -f conftest.o conftest.s
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24920 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24921 if test $gcc_cv_as_sparc_leon = yes; then
24923 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24928 i[34567]86-*-* | x86_64-*-*)
24929 case $target_os in
24930 cygwin*)
24931 # Full C++ conformance when using a shared libstdc++-v3 requires some
24932 # support from the Cygwin DLL, which in more recent versions exports
24933 # wrappers to aid in interposing and redirecting operators new, delete,
24934 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24935 # are configuring for a version of Cygwin that exports the wrappers.
24936 if test x$host = x$target && test x$host_cpu = xi686; then
24937 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24938 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24939 gcc_ac_cygwin_dll_wrappers=yes
24940 else
24941 gcc_ac_cygwin_dll_wrappers=no
24944 else
24945 # Can't check presence of libc functions during cross-compile, so
24946 # we just have to assume we're building for an up-to-date target.
24947 gcc_ac_cygwin_dll_wrappers=yes
24950 cat >>confdefs.h <<_ACEOF
24951 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24952 _ACEOF
24954 esac
24955 case $target_os in
24956 cygwin* | pe | mingw32* | interix*)
24957 # Recent binutils allows the three-operand form of ".comm" on PE. This
24958 # definition is used unconditionally to initialise the default state of
24959 # the target option variable that governs usage of the feature.
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24961 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24962 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24964 else
24965 gcc_cv_as_comm_has_align=no
24966 if test $in_tree_gas = yes; then
24967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24968 then gcc_cv_as_comm_has_align=yes
24970 elif test x$gcc_cv_as != x; then
24971 $as_echo '.comm foo,1,32' > conftest.s
24972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24974 (eval $ac_try) 2>&5
24975 ac_status=$?
24976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24977 test $ac_status = 0; }; }
24978 then
24979 gcc_cv_as_comm_has_align=yes
24980 else
24981 echo "configure: failed program was" >&5
24982 cat conftest.s >&5
24984 rm -f conftest.o conftest.s
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24988 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24991 cat >>confdefs.h <<_ACEOF
24992 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24993 _ACEOF
24995 # Used for DWARF 2 in PE
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24997 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24998 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25000 else
25001 gcc_cv_as_ix86_pe_secrel32=no
25002 if test $in_tree_gas = yes; then
25003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25004 then gcc_cv_as_ix86_pe_secrel32=yes
25006 elif test x$gcc_cv_as != x; then
25007 $as_echo '.text
25008 foo: nop
25009 .data
25010 .secrel32 foo' > conftest.s
25011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25013 (eval $ac_try) 2>&5
25014 ac_status=$?
25015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25016 test $ac_status = 0; }; }
25017 then
25018 if test x$gcc_cv_ld != x \
25019 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25020 gcc_cv_as_ix86_pe_secrel32=yes
25022 rm -f conftest
25023 else
25024 echo "configure: failed program was" >&5
25025 cat conftest.s >&5
25027 rm -f conftest.o conftest.s
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25031 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25032 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25034 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25037 # Test if the assembler supports the extended form of the .section
25038 # directive that specifies section alignment. LTO support uses this,
25039 # but normally only after installation, so we warn but don't fail the
25040 # configure if LTO is enabled but the assembler does not support it.
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25042 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25043 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25044 $as_echo_n "(cached) " >&6
25045 else
25046 gcc_cv_as_section_has_align=no
25047 if test $in_tree_gas = yes; then
25048 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25049 then gcc_cv_as_section_has_align=yes
25051 elif test x$gcc_cv_as != x; then
25052 $as_echo '.section lto_test,"dr0"' > conftest.s
25053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058 test $ac_status = 0; }; }
25059 then
25060 gcc_cv_as_section_has_align=yes
25061 else
25062 echo "configure: failed program was" >&5
25063 cat conftest.s >&5
25065 rm -f conftest.o conftest.s
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25069 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25071 if test x$gcc_cv_as_section_has_align != xyes; then
25072 case ",$enable_languages," in
25073 *,lto,*)
25074 { $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
25075 $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;}
25077 esac
25080 esac
25082 # Test if the assembler supports the section flag 'e' for specifying
25083 # an excluded section.
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25085 $as_echo_n "checking assembler for .section with e... " >&6; }
25086 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25087 $as_echo_n "(cached) " >&6
25088 else
25089 gcc_cv_as_section_has_e=no
25090 if test $in_tree_gas = yes; then
25091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25092 then gcc_cv_as_section_has_e=yes
25094 elif test x$gcc_cv_as != x; then
25095 $as_echo '.section foo1,"e"
25096 .byte 0,0,0,0' > conftest.s
25097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25103 then
25104 gcc_cv_as_section_has_e=yes
25105 else
25106 echo "configure: failed program was" >&5
25107 cat conftest.s >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25113 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25116 cat >>confdefs.h <<_ACEOF
25117 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25118 _ACEOF
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25122 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25123 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25124 $as_echo_n "(cached) " >&6
25125 else
25126 gcc_cv_as_ix86_filds=no
25127 if test x$gcc_cv_as != x; then
25128 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131 (eval $ac_try) 2>&5
25132 ac_status=$?
25133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134 test $ac_status = 0; }; }
25135 then
25136 gcc_cv_as_ix86_filds=yes
25137 else
25138 echo "configure: failed program was" >&5
25139 cat conftest.s >&5
25141 rm -f conftest.o conftest.s
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25145 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25146 if test $gcc_cv_as_ix86_filds = yes; then
25148 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25153 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25154 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25156 else
25157 gcc_cv_as_ix86_fildq=no
25158 if test x$gcc_cv_as != x; then
25159 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165 test $ac_status = 0; }; }
25166 then
25167 gcc_cv_as_ix86_fildq=yes
25168 else
25169 echo "configure: failed program was" >&5
25170 cat conftest.s >&5
25172 rm -f conftest.o conftest.s
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25176 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25177 if test $gcc_cv_as_ix86_fildq = yes; then
25179 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25184 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25185 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25186 $as_echo_n "(cached) " >&6
25187 else
25188 gcc_cv_as_ix86_cmov_sun_syntax=no
25189 if test x$gcc_cv_as != x; then
25190 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25196 test $ac_status = 0; }; }
25197 then
25198 gcc_cv_as_ix86_cmov_sun_syntax=yes
25199 else
25200 echo "configure: failed program was" >&5
25201 cat conftest.s >&5
25203 rm -f conftest.o conftest.s
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25207 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25208 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25210 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25215 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25216 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25217 $as_echo_n "(cached) " >&6
25218 else
25219 gcc_cv_as_ix86_ffreep=no
25220 if test x$gcc_cv_as != x; then
25221 $as_echo 'ffreep %st(1)' > conftest.s
25222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25224 (eval $ac_try) 2>&5
25225 ac_status=$?
25226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227 test $ac_status = 0; }; }
25228 then
25229 gcc_cv_as_ix86_ffreep=yes
25230 else
25231 echo "configure: failed program was" >&5
25232 cat conftest.s >&5
25234 rm -f conftest.o conftest.s
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25238 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25239 if test $gcc_cv_as_ix86_ffreep = yes; then
25241 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25246 $as_echo_n "checking assembler for .quad directive... " >&6; }
25247 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25249 else
25250 gcc_cv_as_ix86_quad=no
25251 if test x$gcc_cv_as != x; then
25252 $as_echo '.quad 0' > conftest.s
25253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }
25259 then
25260 gcc_cv_as_ix86_quad=yes
25261 else
25262 echo "configure: failed program was" >&5
25263 cat conftest.s >&5
25265 rm -f conftest.o conftest.s
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25269 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25270 if test $gcc_cv_as_ix86_quad = yes; then
25272 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25277 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25278 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25279 $as_echo_n "(cached) " >&6
25280 else
25281 gcc_cv_as_ix86_sahf=no
25282 if test x$gcc_cv_as != x; then
25283 $as_echo '.code64
25284 sahf' > conftest.s
25285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25290 test $ac_status = 0; }; }
25291 then
25292 gcc_cv_as_ix86_sahf=yes
25293 else
25294 echo "configure: failed program was" >&5
25295 cat conftest.s >&5
25297 rm -f conftest.o conftest.s
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25301 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25302 if test $gcc_cv_as_ix86_sahf = yes; then
25304 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25309 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25310 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25311 $as_echo_n "(cached) " >&6
25312 else
25313 gcc_cv_as_ix86_interunit_movq=no
25314 if test x$gcc_cv_as != x; then
25315 $as_echo '.code64
25316 movq %mm0, %rax
25317 movq %rax, %xmm0' > conftest.s
25318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320 (eval $ac_try) 2>&5
25321 ac_status=$?
25322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323 test $ac_status = 0; }; }
25324 then
25325 gcc_cv_as_ix86_interunit_movq=yes
25326 else
25327 echo "configure: failed program was" >&5
25328 cat conftest.s >&5
25330 rm -f conftest.o conftest.s
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25334 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25337 cat >>confdefs.h <<_ACEOF
25338 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25339 _ACEOF
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25343 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25344 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25345 $as_echo_n "(cached) " >&6
25346 else
25347 gcc_cv_as_ix86_hle=no
25348 if test x$gcc_cv_as != x; then
25349 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25350 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25356 then
25357 gcc_cv_as_ix86_hle=yes
25358 else
25359 echo "configure: failed program was" >&5
25360 cat conftest.s >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25366 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25367 if test $gcc_cv_as_ix86_hle = yes; then
25369 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25374 $as_echo_n "checking assembler for swap suffix... " >&6; }
25375 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25377 else
25378 gcc_cv_as_ix86_swap=no
25379 if test x$gcc_cv_as != x; then
25380 $as_echo 'movl.s %esp, %ebp' > conftest.s
25381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25383 (eval $ac_try) 2>&5
25384 ac_status=$?
25385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25386 test $ac_status = 0; }; }
25387 then
25388 gcc_cv_as_ix86_swap=yes
25389 else
25390 echo "configure: failed program was" >&5
25391 cat conftest.s >&5
25393 rm -f conftest.o conftest.s
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25397 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25398 if test $gcc_cv_as_ix86_swap = yes; then
25400 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25405 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25406 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25407 $as_echo_n "(cached) " >&6
25408 else
25409 gcc_cv_as_ix86_diff_sect_delta=no
25410 if test x$gcc_cv_as != x; then
25411 $as_echo '.section .rodata
25412 .L1:
25413 .long .L2-.L1
25414 .long .L3-.L1
25415 .text
25416 .L3: nop
25417 .L2: nop' > conftest.s
25418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_ix86_diff_sect_delta=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_ix86_diff_sect_delta" >&5
25434 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25435 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25437 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25441 # These two are used unconditionally by i386.[ch]; it is to be defined
25442 # to 1 if the feature is present, 0 otherwise.
25443 as_ix86_gotoff_in_data_opt=
25444 if test x$gas = xyes; then
25445 as_ix86_gotoff_in_data_opt="--32"
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25448 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25449 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25450 $as_echo_n "(cached) " >&6
25451 else
25452 gcc_cv_as_ix86_gotoff_in_data=no
25453 if test $in_tree_gas = yes; then
25454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25455 then gcc_cv_as_ix86_gotoff_in_data=yes
25457 elif test x$gcc_cv_as != x; then
25458 $as_echo ' .text
25459 .L0:
25461 .data
25462 .long .L0@GOTOFF' > conftest.s
25463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25465 (eval $ac_try) 2>&5
25466 ac_status=$?
25467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25468 test $ac_status = 0; }; }
25469 then
25470 gcc_cv_as_ix86_gotoff_in_data=yes
25471 else
25472 echo "configure: failed program was" >&5
25473 cat conftest.s >&5
25475 rm -f conftest.o conftest.s
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25479 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25482 cat >>confdefs.h <<_ACEOF
25483 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25484 _ACEOF
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25488 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25489 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25491 else
25492 gcc_cv_as_ix86_rep_lock_prefix=no
25493 if test x$gcc_cv_as != x; then
25494 $as_echo 'rep movsl
25495 rep ret
25496 rep nop
25497 rep bsf %ecx, %eax
25498 rep bsr %ecx, %eax
25499 lock addl %edi, (%eax,%esi)
25500 lock orl $0, (%esp)' > conftest.s
25501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25503 (eval $ac_try) 2>&5
25504 ac_status=$?
25505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25506 test $ac_status = 0; }; }
25507 then
25508 gcc_cv_as_ix86_rep_lock_prefix=yes
25509 else
25510 echo "configure: failed program was" >&5
25511 cat conftest.s >&5
25513 rm -f conftest.o conftest.s
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25517 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25518 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25520 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25525 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25526 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25527 $as_echo_n "(cached) " >&6
25528 else
25529 gcc_cv_as_ix86_ud2=no
25530 if test x$gcc_cv_as != x; then
25531 $as_echo 'ud2' > conftest.s
25532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25534 (eval $ac_try) 2>&5
25535 ac_status=$?
25536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25537 test $ac_status = 0; }; }
25538 then
25539 gcc_cv_as_ix86_ud2=yes
25540 else
25541 echo "configure: failed program was" >&5
25542 cat conftest.s >&5
25544 rm -f conftest.o conftest.s
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25548 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25549 if test $gcc_cv_as_ix86_ud2 = yes; then
25551 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25556 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25557 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25559 else
25560 gcc_cv_as_ix86_tlsgdplt=no
25561 if test x$gcc_cv_as != x; then
25562 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25565 (eval $ac_try) 2>&5
25566 ac_status=$?
25567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25568 test $ac_status = 0; }; }
25569 then
25570 if test x$gcc_cv_ld != x \
25571 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25572 gcc_cv_as_ix86_tlsgdplt=yes
25574 rm -f conftest
25575 else
25576 echo "configure: failed program was" >&5
25577 cat conftest.s >&5
25579 rm -f conftest.o conftest.s
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25583 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25584 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25586 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25590 conftest_s='
25591 .section .tdata,"aw'$tls_section_flag'",@progbits
25592 tls_ld:
25593 .section .text,"ax",@progbits
25594 call tls_ld@tlsldmplt'
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25596 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25597 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25598 $as_echo_n "(cached) " >&6
25599 else
25600 gcc_cv_as_ix86_tlsldmplt=no
25601 if test x$gcc_cv_as != x; then
25602 $as_echo "$conftest_s" > conftest.s
25603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25606 ac_status=$?
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25609 then
25610 if test x$gcc_cv_ld != x \
25611 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25612 gcc_cv_as_ix86_tlsldmplt=yes
25614 rm -f conftest
25615 else
25616 echo "configure: failed program was" >&5
25617 cat conftest.s >&5
25619 rm -f conftest.o conftest.s
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25623 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25626 cat >>confdefs.h <<_ACEOF
25627 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25628 _ACEOF
25631 # Enforce 32-bit output with gas and gld.
25632 if test x$gas = xyes; then
25633 as_ix86_tls_ldm_opt="--32"
25635 if echo "$ld_ver" | grep GNU > /dev/null; then
25636 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25637 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25638 else
25639 ld_ix86_tls_ldm_opt="-melf_i386"
25642 conftest_s='
25643 .section .text,"ax",@progbits
25644 .globl _start
25645 .type _start, @function
25646 _start:
25647 leal value@tlsldm(%ebx), %eax
25648 call ___tls_get_addr@plt
25650 .section .tdata,"aw'$tls_section_flag'",@progbits
25651 .type value, @object
25652 value:'
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25654 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25655 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25657 else
25658 gcc_cv_as_ix86_tlsldm=no
25659 if test x$gcc_cv_as != x; then
25660 $as_echo "$conftest_s" > conftest.s
25661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; }
25667 then
25668 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25669 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25670 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25671 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25672 gcc_cv_as_ix86_tlsldm=yes
25675 rm -f conftest
25676 else
25677 echo "configure: failed program was" >&5
25678 cat conftest.s >&5
25680 rm -f conftest.o conftest.s
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25684 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25687 cat >>confdefs.h <<_ACEOF
25688 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25689 _ACEOF
25694 ia64*-*-*)
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25696 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25697 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25698 $as_echo_n "(cached) " >&6
25699 else
25700 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25701 if test $in_tree_gas = yes; then
25702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25703 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25705 elif test x$gcc_cv_as != x; then
25706 $as_echo ' .text
25707 addl r15 = @ltoffx(x#), gp
25709 ld8.mov r16 = [r15], x#' > conftest.s
25710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; }
25716 then
25717 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25718 else
25719 echo "configure: failed program was" >&5
25720 cat conftest.s >&5
25722 rm -f conftest.o conftest.s
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25726 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25727 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25729 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25735 powerpc*-*-*)
25736 case $target in
25737 *-*-aix*) conftest_s=' .machine "pwr5"
25738 .csect .text[PR]
25739 mfcr 3,128';;
25740 *-*-darwin*)
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25742 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25743 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25744 $as_echo_n "(cached) " >&6
25745 else
25746 gcc_cv_as_machine_directive=no
25747 if test x$gcc_cv_as != x; then
25748 $as_echo ' .machine ppc7400' > 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_machine_directive=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_machine_directive" >&5
25765 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25767 if test x$gcc_cv_as_machine_directive != xyes; then
25768 echo "*** This target requires an assembler supporting \".machine\"" >&2
25769 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25770 test x$build = x$target && exit 1
25772 conftest_s=' .text
25773 mfcr r3,128';;
25774 *) conftest_s=' .machine power4
25775 .text
25776 mfcr 3,128';;
25777 esac
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25780 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25781 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25783 else
25784 gcc_cv_as_powerpc_mfcrf=no
25785 if test $in_tree_gas = yes; then
25786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25787 then gcc_cv_as_powerpc_mfcrf=yes
25789 elif test x$gcc_cv_as != x; then
25790 $as_echo "$conftest_s" > conftest.s
25791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25793 (eval $ac_try) 2>&5
25794 ac_status=$?
25795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25796 test $ac_status = 0; }; }
25797 then
25798 gcc_cv_as_powerpc_mfcrf=yes
25799 else
25800 echo "configure: failed program was" >&5
25801 cat conftest.s >&5
25803 rm -f conftest.o conftest.s
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25807 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25808 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25810 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25814 case $target in
25815 *-*-aix*) conftest_s=' .machine "pwr5"
25816 .csect .text[PR]
25817 popcntb 3,3';;
25818 *) conftest_s=' .machine power5
25819 .text
25820 popcntb 3,3';;
25821 esac
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25824 $as_echo_n "checking assembler for popcntb support... " >&6; }
25825 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25827 else
25828 gcc_cv_as_powerpc_popcntb=no
25829 if test $in_tree_gas = yes; then
25830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25831 then gcc_cv_as_powerpc_popcntb=yes
25833 elif test x$gcc_cv_as != x; then
25834 $as_echo "$conftest_s" > conftest.s
25835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25841 then
25842 gcc_cv_as_powerpc_popcntb=yes
25843 else
25844 echo "configure: failed program was" >&5
25845 cat conftest.s >&5
25847 rm -f conftest.o conftest.s
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25851 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25852 if test $gcc_cv_as_powerpc_popcntb = yes; then
25854 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25858 case $target in
25859 *-*-aix*) conftest_s=' .machine "pwr5x"
25860 .csect .text[PR]
25861 frin 1,1';;
25862 *) conftest_s=' .machine power5
25863 .text
25864 frin 1,1';;
25865 esac
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25868 $as_echo_n "checking assembler for fp round support... " >&6; }
25869 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25870 $as_echo_n "(cached) " >&6
25871 else
25872 gcc_cv_as_powerpc_fprnd=no
25873 if test $in_tree_gas = yes; then
25874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25875 then gcc_cv_as_powerpc_fprnd=yes
25877 elif test x$gcc_cv_as != x; then
25878 $as_echo "$conftest_s" > conftest.s
25879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25881 (eval $ac_try) 2>&5
25882 ac_status=$?
25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25884 test $ac_status = 0; }; }
25885 then
25886 gcc_cv_as_powerpc_fprnd=yes
25887 else
25888 echo "configure: failed program was" >&5
25889 cat conftest.s >&5
25891 rm -f conftest.o conftest.s
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25895 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25896 if test $gcc_cv_as_powerpc_fprnd = yes; then
25898 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25902 case $target in
25903 *-*-aix*) conftest_s=' .machine "pwr6"
25904 .csect .text[PR]
25905 mffgpr 1,3';;
25906 *) conftest_s=' .machine power6
25907 .text
25908 mffgpr 1,3';;
25909 esac
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25912 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25913 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25914 $as_echo_n "(cached) " >&6
25915 else
25916 gcc_cv_as_powerpc_mfpgpr=no
25917 if test $in_tree_gas = yes; then
25918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25919 then gcc_cv_as_powerpc_mfpgpr=yes
25921 elif test x$gcc_cv_as != x; then
25922 $as_echo "$conftest_s" > conftest.s
25923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25925 (eval $ac_try) 2>&5
25926 ac_status=$?
25927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25928 test $ac_status = 0; }; }
25929 then
25930 gcc_cv_as_powerpc_mfpgpr=yes
25931 else
25932 echo "configure: failed program was" >&5
25933 cat conftest.s >&5
25935 rm -f conftest.o conftest.s
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25939 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25940 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25942 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25946 case $target in
25947 *-*-aix*) conftest_s=' .csect .text[PR]
25948 LCF..0:
25949 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25950 *-*-darwin*)
25951 conftest_s=' .text
25952 LCF0:
25953 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25954 *) conftest_s=' .text
25955 .LCF0:
25956 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25957 esac
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25960 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25961 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25962 $as_echo_n "(cached) " >&6
25963 else
25964 gcc_cv_as_powerpc_rel16=no
25965 if test $in_tree_gas = yes; then
25966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25967 then gcc_cv_as_powerpc_rel16=yes
25969 elif test x$gcc_cv_as != x; then
25970 $as_echo "$conftest_s" > conftest.s
25971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25976 test $ac_status = 0; }; }
25977 then
25978 gcc_cv_as_powerpc_rel16=yes
25979 else
25980 echo "configure: failed program was" >&5
25981 cat conftest.s >&5
25983 rm -f conftest.o conftest.s
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25987 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25988 if test $gcc_cv_as_powerpc_rel16 = yes; then
25990 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25994 case $target in
25995 *-*-aix*) conftest_s=' .machine "pwr6"
25996 .csect .text[PR]
25997 cmpb 3,4,5';;
25998 *) conftest_s=' .machine power6
25999 .text
26000 cmpb 3,4,5';;
26001 esac
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26004 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26005 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26006 $as_echo_n "(cached) " >&6
26007 else
26008 gcc_cv_as_powerpc_cmpb=no
26009 if test $in_tree_gas = yes; then
26010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26011 then gcc_cv_as_powerpc_cmpb=yes
26013 elif test x$gcc_cv_as != x; then
26014 $as_echo "$conftest_s" > conftest.s
26015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; }
26021 then
26022 gcc_cv_as_powerpc_cmpb=yes
26023 else
26024 echo "configure: failed program was" >&5
26025 cat conftest.s >&5
26027 rm -f conftest.o conftest.s
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26031 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26032 if test $gcc_cv_as_powerpc_cmpb = yes; then
26034 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26038 case $target in
26039 *-*-aix*) conftest_s=' .machine "pwr6"
26040 .csect .text[PR]
26041 dadd 1,2,3';;
26042 *) conftest_s=' .machine power6
26043 .text
26044 dadd 1,2,3';;
26045 esac
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26048 $as_echo_n "checking assembler for decimal float support... " >&6; }
26049 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26050 $as_echo_n "(cached) " >&6
26051 else
26052 gcc_cv_as_powerpc_dfp=no
26053 if test $in_tree_gas = yes; then
26054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26055 then gcc_cv_as_powerpc_dfp=yes
26057 elif test x$gcc_cv_as != x; then
26058 $as_echo "$conftest_s" > conftest.s
26059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26065 then
26066 gcc_cv_as_powerpc_dfp=yes
26067 else
26068 echo "configure: failed program was" >&5
26069 cat conftest.s >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26075 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26076 if test $gcc_cv_as_powerpc_dfp = yes; then
26078 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26082 case $target in
26083 *-*-aix*) conftest_s=' .machine "pwr7"
26084 .csect .text[PR]
26085 lxvd2x 1,2,3';;
26086 *) conftest_s=' .machine power7
26087 .text
26088 lxvd2x 1,2,3';;
26089 esac
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26092 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26093 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26094 $as_echo_n "(cached) " >&6
26095 else
26096 gcc_cv_as_powerpc_vsx=no
26097 if test $in_tree_gas = yes; then
26098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26099 then gcc_cv_as_powerpc_vsx=yes
26101 elif test x$gcc_cv_as != x; then
26102 $as_echo "$conftest_s" > conftest.s
26103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26109 then
26110 gcc_cv_as_powerpc_vsx=yes
26111 else
26112 echo "configure: failed program was" >&5
26113 cat conftest.s >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26119 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26120 if test $gcc_cv_as_powerpc_vsx = yes; then
26122 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26126 case $target in
26127 *-*-aix*) conftest_s=' .machine "pwr7"
26128 .csect .text[PR]
26129 popcntd 3,3';;
26130 *) conftest_s=' .machine power7
26131 .text
26132 popcntd 3,3';;
26133 esac
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26136 $as_echo_n "checking assembler for popcntd support... " >&6; }
26137 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26138 $as_echo_n "(cached) " >&6
26139 else
26140 gcc_cv_as_powerpc_popcntd=no
26141 if test $in_tree_gas = yes; then
26142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26143 then gcc_cv_as_powerpc_popcntd=yes
26145 elif test x$gcc_cv_as != x; then
26146 $as_echo "$conftest_s" > conftest.s
26147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26150 ac_status=$?
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26153 then
26154 gcc_cv_as_powerpc_popcntd=yes
26155 else
26156 echo "configure: failed program was" >&5
26157 cat conftest.s >&5
26159 rm -f conftest.o conftest.s
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26163 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26164 if test $gcc_cv_as_powerpc_popcntd = yes; then
26166 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26170 case $target in
26171 *-*-aix*) conftest_s=' .machine "pwr8"
26172 .csect .text[PR]';;
26173 *) conftest_s=' .machine power8
26174 .text';;
26175 esac
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26178 $as_echo_n "checking assembler for power8 support... " >&6; }
26179 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26180 $as_echo_n "(cached) " >&6
26181 else
26182 gcc_cv_as_powerpc_power8=no
26183 if test $in_tree_gas = yes; then
26184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26185 then gcc_cv_as_powerpc_power8=yes
26187 elif test x$gcc_cv_as != x; then
26188 $as_echo "$conftest_s" > conftest.s
26189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26191 (eval $ac_try) 2>&5
26192 ac_status=$?
26193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194 test $ac_status = 0; }; }
26195 then
26196 gcc_cv_as_powerpc_power8=yes
26197 else
26198 echo "configure: failed program was" >&5
26199 cat conftest.s >&5
26201 rm -f conftest.o conftest.s
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26205 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26206 if test $gcc_cv_as_powerpc_power8 = yes; then
26208 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26212 case $target in
26213 *-*-aix*) conftest_s=' .csect .text[PR]
26214 lwsync';;
26215 *) conftest_s=' .text
26216 lwsync';;
26217 esac
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26220 $as_echo_n "checking assembler for lwsync support... " >&6; }
26221 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26222 $as_echo_n "(cached) " >&6
26223 else
26224 gcc_cv_as_powerpc_lwsync=no
26225 if test $in_tree_gas = yes; then
26226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26227 then gcc_cv_as_powerpc_lwsync=yes
26229 elif test x$gcc_cv_as != x; then
26230 $as_echo "$conftest_s" > conftest.s
26231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26233 (eval $ac_try) 2>&5
26234 ac_status=$?
26235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26236 test $ac_status = 0; }; }
26237 then
26238 gcc_cv_as_powerpc_lwsync=yes
26239 else
26240 echo "configure: failed program was" >&5
26241 cat conftest.s >&5
26243 rm -f conftest.o conftest.s
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26247 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26248 if test $gcc_cv_as_powerpc_lwsync = yes; then
26250 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26254 case $target in
26255 *-*-aix*) conftest_s=' .machine "476"
26256 .csect .text[PR]
26257 dci 0';;
26258 *) conftest_s=' .machine "476"
26259 .text
26260 dci 0';;
26261 esac
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26264 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26265 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26266 $as_echo_n "(cached) " >&6
26267 else
26268 gcc_cv_as_powerpc_dci=no
26269 if test $in_tree_gas = yes; then
26270 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26271 then gcc_cv_as_powerpc_dci=yes
26273 elif test x$gcc_cv_as != x; then
26274 $as_echo "$conftest_s" > conftest.s
26275 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26277 (eval $ac_try) 2>&5
26278 ac_status=$?
26279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26280 test $ac_status = 0; }; }
26281 then
26282 gcc_cv_as_powerpc_dci=yes
26283 else
26284 echo "configure: failed program was" >&5
26285 cat conftest.s >&5
26287 rm -f conftest.o conftest.s
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26291 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26292 if test $gcc_cv_as_powerpc_dci = yes; then
26294 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26299 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26300 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26301 $as_echo_n "(cached) " >&6
26302 else
26303 gcc_cv_as_powerpc_gnu_attribute=no
26304 if test $in_tree_gas = yes; then
26305 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26306 then gcc_cv_as_powerpc_gnu_attribute=yes
26308 elif test x$gcc_cv_as != x; then
26309 $as_echo '.gnu_attribute 4,1' > conftest.s
26310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26312 (eval $ac_try) 2>&5
26313 ac_status=$?
26314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26315 test $ac_status = 0; }; }
26316 then
26317 gcc_cv_as_powerpc_gnu_attribute=yes
26318 else
26319 echo "configure: failed program was" >&5
26320 cat conftest.s >&5
26322 rm -f conftest.o conftest.s
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26326 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26327 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26329 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26334 $as_echo_n "checking assembler for tls marker support... " >&6; }
26335 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26336 $as_echo_n "(cached) " >&6
26337 else
26338 gcc_cv_as_powerpc_tls_markers=no
26339 if test $in_tree_gas = yes; then
26340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26341 then gcc_cv_as_powerpc_tls_markers=yes
26343 elif test x$gcc_cv_as != x; then
26344 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350 test $ac_status = 0; }; }
26351 then
26352 gcc_cv_as_powerpc_tls_markers=yes
26353 else
26354 echo "configure: failed program was" >&5
26355 cat conftest.s >&5
26357 rm -f conftest.o conftest.s
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26361 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26362 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26364 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26368 case $target in
26369 *-*-aix*)
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26371 $as_echo_n "checking assembler for .ref support... " >&6; }
26372 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26373 $as_echo_n "(cached) " >&6
26374 else
26375 gcc_cv_as_aix_ref=no
26376 if test $in_tree_gas = yes; then
26377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26378 then gcc_cv_as_aix_ref=yes
26380 elif test x$gcc_cv_as != x; then
26381 $as_echo ' .csect stuff[rw]
26382 stuff:
26383 .long 1
26384 .extern sym
26385 .ref sym
26386 ' > conftest.s
26387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26389 (eval $ac_try) 2>&5
26390 ac_status=$?
26391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26392 test $ac_status = 0; }; }
26393 then
26394 gcc_cv_as_aix_ref=yes
26395 else
26396 echo "configure: failed program was" >&5
26397 cat conftest.s >&5
26399 rm -f conftest.o conftest.s
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26403 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26404 if test $gcc_cv_as_aix_ref = yes; then
26406 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26410 esac
26413 mips*-*-*)
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26415 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26416 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26417 $as_echo_n "(cached) " >&6
26418 else
26419 gcc_cv_as_mips_explicit_relocs=no
26420 if test $in_tree_gas = yes; then
26421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26422 then gcc_cv_as_mips_explicit_relocs=yes
26424 elif test x$gcc_cv_as != x; then
26425 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26426 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431 test $ac_status = 0; }; }
26432 then
26433 gcc_cv_as_mips_explicit_relocs=yes
26434 else
26435 echo "configure: failed program was" >&5
26436 cat conftest.s >&5
26438 rm -f conftest.o conftest.s
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26442 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26443 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26444 if test x$target_cpu_default = x
26445 then target_cpu_default=MASK_EXPLICIT_RELOCS
26446 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26450 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26451 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26453 else
26454 gcc_cv_as_mips_no_shared=no
26455 if test $in_tree_gas = yes; then
26456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26457 then gcc_cv_as_mips_no_shared=yes
26459 elif test x$gcc_cv_as != x; then
26460 $as_echo 'nop' > conftest.s
26461 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26463 (eval $ac_try) 2>&5
26464 ac_status=$?
26465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26466 test $ac_status = 0; }; }
26467 then
26468 gcc_cv_as_mips_no_shared=yes
26469 else
26470 echo "configure: failed program was" >&5
26471 cat conftest.s >&5
26473 rm -f conftest.o conftest.s
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26477 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26478 if test $gcc_cv_as_mips_no_shared = yes; then
26480 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26485 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26486 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26487 $as_echo_n "(cached) " >&6
26488 else
26489 gcc_cv_as_mips_gnu_attribute=no
26490 if test $in_tree_gas = yes; then
26491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26492 then gcc_cv_as_mips_gnu_attribute=yes
26494 elif test x$gcc_cv_as != x; then
26495 $as_echo '.gnu_attribute 4,1' > conftest.s
26496 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; }
26502 then
26503 gcc_cv_as_mips_gnu_attribute=yes
26504 else
26505 echo "configure: failed program was" >&5
26506 cat conftest.s >&5
26508 rm -f conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26512 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26513 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26515 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26520 $as_echo_n "checking assembler for .module support... " >&6; }
26521 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26522 $as_echo_n "(cached) " >&6
26523 else
26524 gcc_cv_as_mips_dot_module=no
26525 if test x$gcc_cv_as != x; then
26526 $as_echo '.module mips2
26527 .module fp=xx' > conftest.s
26528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26530 (eval $ac_try) 2>&5
26531 ac_status=$?
26532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26533 test $ac_status = 0; }; }
26534 then
26535 gcc_cv_as_mips_dot_module=yes
26536 else
26537 echo "configure: failed program was" >&5
26538 cat conftest.s >&5
26540 rm -f conftest.o conftest.s
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26544 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26545 if test $gcc_cv_as_mips_dot_module = yes; then
26547 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26550 if test x$gcc_cv_as_mips_dot_module = xno \
26551 && test x$with_fp_32 != x; then
26552 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26556 $as_echo_n "checking assembler for .micromips support... " >&6; }
26557 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26558 $as_echo_n "(cached) " >&6
26559 else
26560 gcc_cv_as_micromips_support=no
26561 if test x$gcc_cv_as != x; then
26562 $as_echo '.set micromips' > conftest.s
26563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26565 (eval $ac_try) 2>&5
26566 ac_status=$?
26567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26568 test $ac_status = 0; }; }
26569 then
26570 gcc_cv_as_micromips_support=yes
26571 else
26572 echo "configure: failed program was" >&5
26573 cat conftest.s >&5
26575 rm -f conftest.o conftest.s
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26579 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26580 if test $gcc_cv_as_micromips_support = yes; then
26582 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26587 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26588 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26589 $as_echo_n "(cached) " >&6
26590 else
26591 gcc_cv_as_mips_dtprelword=no
26592 if test $in_tree_gas = yes; then
26593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26594 then gcc_cv_as_mips_dtprelword=yes
26596 elif test x$gcc_cv_as != x; then
26597 $as_echo '.section .tdata,"awT",@progbits
26599 .word 2
26600 .text
26601 .dtprelword x+0x8000' > conftest.s
26602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26604 (eval $ac_try) 2>&5
26605 ac_status=$?
26606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26607 test $ac_status = 0; }; }
26608 then
26609 gcc_cv_as_mips_dtprelword=yes
26610 else
26611 echo "configure: failed program was" >&5
26612 cat conftest.s >&5
26614 rm -f conftest.o conftest.s
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26618 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26619 if test $gcc_cv_as_mips_dtprelword = yes; then
26621 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26626 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26627 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26628 $as_echo_n "(cached) " >&6
26629 else
26630 gcc_cv_as_mips_dspr1_mult=no
26631 if test x$gcc_cv_as != x; then
26632 $as_echo ' .set mips32r2
26633 .set nodspr2
26634 .set dsp
26635 madd $ac3,$4,$5
26636 maddu $ac3,$4,$5
26637 msub $ac3,$4,$5
26638 msubu $ac3,$4,$5
26639 mult $ac3,$4,$5
26640 multu $ac3,$4,$5' > conftest.s
26641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26643 (eval $ac_try) 2>&5
26644 ac_status=$?
26645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26646 test $ac_status = 0; }; }
26647 then
26648 gcc_cv_as_mips_dspr1_mult=yes
26649 else
26650 echo "configure: failed program was" >&5
26651 cat conftest.s >&5
26653 rm -f conftest.o conftest.s
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26657 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26658 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26660 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26665 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26666 gcc_cv_as_ld_jalr_reloc=no
26667 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26668 if test $in_tree_ld = yes ; then
26669 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 \
26670 && test $in_tree_ld_is_elf = yes; then
26671 gcc_cv_as_ld_jalr_reloc=yes
26673 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26674 echo ' .ent x' > conftest.s
26675 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26676 echo ' lw $25,%call16(y)($28)' >> conftest.s
26677 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26678 echo '1: jalr $25' >> conftest.s
26679 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26680 echo '1: jalr $25' >> conftest.s
26681 echo ' .end x' >> conftest.s
26682 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26683 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26684 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26685 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26686 gcc_cv_as_ld_jalr_reloc=yes
26689 rm -f conftest.*
26692 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26693 if test x$target_cpu_default = x; then
26694 target_cpu_default=MASK_RELAX_PIC_CALLS
26695 else
26696 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26700 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26703 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26704 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26705 $as_echo_n "(cached) " >&6
26706 else
26707 gcc_cv_ld_mips_personality_relaxation=no
26708 if test $in_tree_ld = yes ; then
26709 if test "$gcc_cv_gld_major_version" -eq 2 \
26710 -a "$gcc_cv_gld_minor_version" -ge 21 \
26711 -o "$gcc_cv_gld_major_version" -gt 2; then
26712 gcc_cv_ld_mips_personality_relaxation=yes
26714 elif test x$gcc_cv_as != x \
26715 -a x$gcc_cv_ld != x \
26716 -a x$gcc_cv_readelf != x ; then
26717 cat > conftest.s <<EOF
26718 .cfi_startproc
26719 .cfi_personality 0x80,indirect_ptr
26720 .ent test
26721 test:
26723 .end test
26724 .cfi_endproc
26726 .section .data,"aw",@progbits
26727 indirect_ptr:
26728 .dc.a personality
26730 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26731 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26732 if $gcc_cv_readelf -d conftest 2>&1 \
26733 | grep TEXTREL > /dev/null 2>&1; then
26735 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26736 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26738 else
26739 gcc_cv_ld_mips_personality_relaxation=yes
26743 rm -f conftest.s conftest.o conftest
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26746 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26747 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26749 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26754 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26755 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26756 $as_echo_n "(cached) " >&6
26757 else
26758 gcc_cv_as_mips_nan=no
26759 if test x$gcc_cv_as != x; then
26760 $as_echo '' > conftest.s
26761 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26763 (eval $ac_try) 2>&5
26764 ac_status=$?
26765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26766 test $ac_status = 0; }; }
26767 then
26768 gcc_cv_as_mips_nan=yes
26769 else
26770 echo "configure: failed program was" >&5
26771 cat conftest.s >&5
26773 rm -f conftest.o conftest.s
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26777 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26778 if test $gcc_cv_as_mips_nan = yes; then
26780 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26783 if test x$gcc_cv_as_mips_nan = xno \
26784 && test x$with_nan != x; then
26785 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26788 s390*-*-*)
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26790 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26791 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26792 $as_echo_n "(cached) " >&6
26793 else
26794 gcc_cv_as_s390_gnu_attribute=no
26795 if test $in_tree_gas = yes; then
26796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26797 then gcc_cv_as_s390_gnu_attribute=yes
26799 elif test x$gcc_cv_as != x; then
26800 $as_echo '.gnu_attribute 8,1' > conftest.s
26801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26803 (eval $ac_try) 2>&5
26804 ac_status=$?
26805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26806 test $ac_status = 0; }; }
26807 then
26808 gcc_cv_as_s390_gnu_attribute=yes
26809 else
26810 echo "configure: failed program was" >&5
26811 cat conftest.s >&5
26813 rm -f conftest.o conftest.s
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26817 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26818 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26820 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26824 esac
26826 # Mips and HP-UX need the GNU assembler.
26827 # Linux on IA64 might be able to use the Intel assembler.
26829 case "$target" in
26830 mips*-*-* | *-*-hpux* )
26831 if test x$gas_flag = xyes \
26832 || test x"$host" != x"$build" \
26833 || test ! -x "$gcc_cv_as" \
26834 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26836 else
26837 echo "*** This configuration requires the GNU assembler" >&2
26838 exit 1
26841 esac
26843 # ??? Not all targets support dwarf2 debug_line, even within a version
26844 # of gas. Moreover, we need to emit a valid instruction to trigger any
26845 # info to the output file. So, as supported targets are added to gas 2.11,
26846 # add some instruction here to (also) show we expect this might work.
26847 # ??? Once 2.11 is released, probably need to add first known working
26848 # version to the per-target configury.
26849 case "$cpu_type" in
26850 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26851 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26852 | visium | xstormy16 | xtensa)
26853 insn="nop"
26855 ia64 | s390)
26856 insn="nop 0"
26858 mmix)
26859 insn="swym 0"
26861 esac
26862 if test x"$insn" != x; then
26863 conftest_s="\
26864 .file 1 \"conftest.s\"
26865 .loc 1 3 0
26866 $insn"
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26868 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26869 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26871 else
26872 gcc_cv_as_dwarf2_debug_line=no
26873 if test $in_tree_gas = yes; then
26874 if test $in_tree_gas_is_elf = yes \
26875 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26876 then gcc_cv_as_dwarf2_debug_line=yes
26878 elif test x$gcc_cv_as != x; then
26879 $as_echo "$conftest_s" > conftest.s
26880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26883 ac_status=$?
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }
26886 then
26887 if test x$gcc_cv_objdump != x \
26888 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26889 | grep debug_line > /dev/null 2>&1; then
26890 gcc_cv_as_dwarf2_debug_line=yes
26892 else
26893 echo "configure: failed program was" >&5
26894 cat conftest.s >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26900 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26903 # The .debug_line file table must be in the exact order that
26904 # we specified the files, since these indices are also used
26905 # by DW_AT_decl_file. Approximate this test by testing if
26906 # the assembler bitches if the same index is assigned twice.
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26908 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26909 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26910 $as_echo_n "(cached) " >&6
26911 else
26912 gcc_cv_as_dwarf2_file_buggy=no
26913 if test x$gcc_cv_as != x; then
26914 $as_echo ' .file 1 "foo.s"
26915 .file 1 "bar.s"' > conftest.s
26916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26918 (eval $ac_try) 2>&5
26919 ac_status=$?
26920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26921 test $ac_status = 0; }; }
26922 then
26923 gcc_cv_as_dwarf2_file_buggy=yes
26924 else
26925 echo "configure: failed program was" >&5
26926 cat conftest.s >&5
26928 rm -f conftest.o conftest.s
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26932 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26935 if test $gcc_cv_as_dwarf2_debug_line = yes \
26936 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26938 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26943 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26944 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26945 $as_echo_n "(cached) " >&6
26946 else
26947 gcc_cv_as_gdwarf2_flag=no
26948 if test $in_tree_gas = yes; then
26949 if test $in_tree_gas_is_elf = yes \
26950 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26951 then gcc_cv_as_gdwarf2_flag=yes
26953 elif test x$gcc_cv_as != x; then
26954 $as_echo "$insn" > conftest.s
26955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26960 test $ac_status = 0; }; }
26961 then
26962 gcc_cv_as_gdwarf2_flag=yes
26963 else
26964 echo "configure: failed program was" >&5
26965 cat conftest.s >&5
26967 rm -f conftest.o conftest.s
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26971 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26972 if test $gcc_cv_as_gdwarf2_flag = yes; then
26974 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26979 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26980 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26981 $as_echo_n "(cached) " >&6
26982 else
26983 gcc_cv_as_gstabs_flag=no
26984 if test $in_tree_gas = yes; then
26985 if test $in_tree_gas_is_elf = yes \
26986 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26987 then gcc_cv_as_gstabs_flag=yes
26989 elif test x$gcc_cv_as != x; then
26990 $as_echo "$insn" > conftest.s
26991 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26993 (eval $ac_try) 2>&5
26994 ac_status=$?
26995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26996 test $ac_status = 0; }; }
26997 then
26998 gcc_cv_as_gstabs_flag=yes
26999 else
27000 echo "configure: failed program was" >&5
27001 cat conftest.s >&5
27003 rm -f conftest.o conftest.s
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27007 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27008 if test $gcc_cv_as_gstabs_flag = yes; then
27010 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27015 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27016 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27017 $as_echo_n "(cached) " >&6
27018 else
27019 gcc_cv_as_debug_prefix_map_flag=no
27020 if test $in_tree_gas = yes; then
27021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27022 then gcc_cv_as_debug_prefix_map_flag=yes
27024 elif test x$gcc_cv_as != x; then
27025 $as_echo "$insn" > conftest.s
27026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27028 (eval $ac_try) 2>&5
27029 ac_status=$?
27030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27031 test $ac_status = 0; }; }
27032 then
27033 gcc_cv_as_debug_prefix_map_flag=yes
27034 else
27035 echo "configure: failed program was" >&5
27036 cat conftest.s >&5
27038 rm -f conftest.o conftest.s
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27042 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27043 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27045 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27051 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27052 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27053 $as_echo_n "(cached) " >&6
27054 else
27055 gcc_cv_as_compress_debug=no
27056 if test x$gcc_cv_as != x; then
27057 $as_echo '' > conftest.s
27058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27060 (eval $ac_try) 2>&5
27061 ac_status=$?
27062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27063 test $ac_status = 0; }; }
27064 then
27065 # gas compiled without zlib cannot compress debug sections and warns
27066 # about it, but still exits successfully. So check for this, too.
27067 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27068 then
27069 gcc_cv_as_compress_debug=0
27070 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27071 then
27072 gcc_cv_as_compress_debug=1
27073 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27074 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27075 else
27076 gcc_cv_as_compress_debug=0
27077 # FIXME: Future gas versions will support ELF gABI style via
27078 # --compress-debug-sections[=type].
27080 else
27081 echo "configure: failed program was" >&5
27082 cat conftest.s >&5
27084 rm -f conftest.o conftest.s
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27088 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27091 cat >>confdefs.h <<_ACEOF
27092 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27093 _ACEOF
27096 cat >>confdefs.h <<_ACEOF
27097 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27098 _ACEOF
27101 cat >>confdefs.h <<_ACEOF
27102 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27103 _ACEOF
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27107 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27108 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27109 $as_echo_n "(cached) " >&6
27110 else
27111 gcc_cv_as_lcomm_with_alignment=no
27112 if test x$gcc_cv_as != x; then
27113 $as_echo '.lcomm bar,4,16' > conftest.s
27114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_lcomm_with_alignment=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_lcomm_with_alignment" >&5
27130 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27131 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27133 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27137 if test x$with_sysroot = x && test x$host = x$target \
27138 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27139 && test "$prefix" != "NONE"; then
27141 cat >>confdefs.h <<_ACEOF
27142 #define PREFIX_INCLUDE_DIR "$prefix/include"
27143 _ACEOF
27147 # Determine the version of glibc, if any, used on the target.
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27149 $as_echo_n "checking for target glibc version... " >&6; }
27151 # Check whether --with-glibc-version was given.
27152 if test "${with_glibc_version+set}" = set; then :
27153 withval=$with_glibc_version;
27154 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27155 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27156 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27157 else
27158 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27160 else
27162 glibc_version_major=0
27163 glibc_version_minor=0
27164 if test -f $target_header_dir/features.h \
27165 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27166 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27167 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27168 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27173 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27175 cat >>confdefs.h <<_ACEOF
27176 #define TARGET_GLIBC_MAJOR $glibc_version_major
27177 _ACEOF
27180 cat >>confdefs.h <<_ACEOF
27181 #define TARGET_GLIBC_MINOR $glibc_version_minor
27182 _ACEOF
27185 # Check whether --enable-gnu-unique-object was given.
27186 if test "${enable_gnu_unique_object+set}" = set; then :
27187 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27188 yes | no) ;;
27189 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27190 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27191 esac
27192 else
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27194 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27195 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27196 $as_echo_n "(cached) " >&6
27197 else
27198 gcc_cv_as_gnu_unique_object=no
27199 if test $in_tree_gas = yes; then
27200 if test $in_tree_gas_is_elf = yes \
27201 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27202 then gcc_cv_as_gnu_unique_object=yes
27204 elif test x$gcc_cv_as != x; then
27205 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27208 (eval $ac_try) 2>&5
27209 ac_status=$?
27210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27211 test $ac_status = 0; }; }
27212 then
27213 gcc_cv_as_gnu_unique_object=yes
27214 else
27215 echo "configure: failed program was" >&5
27216 cat conftest.s >&5
27218 rm -f conftest.o conftest.s
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27222 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27223 if test $gcc_cv_as_gnu_unique_object = yes; then
27224 # We need to unquote above to to use the definition from config.gcc.
27225 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27227 if test $glibc_version_major -gt 2 \
27228 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27229 enable_gnu_unique_object=yes
27235 if test x$enable_gnu_unique_object = xyes; then
27237 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27242 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27243 if test "${gcc_cv_as_line_zero+set}" = set; then :
27244 $as_echo_n "(cached) " >&6
27245 else
27246 gcc_cv_as_line_zero=no
27247 if test $in_tree_gas = yes; then
27248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27249 then gcc_cv_as_line_zero=yes
27251 elif test "x$gcc_cv_as" != x; then
27252 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27253 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; } &&
27259 test "x`cat conftest.out`" = x
27260 then
27261 gcc_cv_as_line_zero=yes
27262 else
27263 echo "configure: failed program was" >&5
27264 cat conftest.s >&5
27265 echo "configure: error output was" >&5
27266 cat conftest.out >&5
27268 rm -f conftest.o conftest.s conftest.out
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27272 $as_echo "$gcc_cv_as_line_zero" >&6; }
27273 if test "x$gcc_cv_as_line_zero" = xyes; then
27275 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27280 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27281 gcc_cv_ld_eh_frame_hdr=no
27282 if test $in_tree_ld = yes ; then
27283 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 \
27284 && test $in_tree_ld_is_elf = yes; then
27285 gcc_cv_ld_eh_frame_hdr=yes
27287 elif test x$gcc_cv_ld != x; then
27288 if echo "$ld_ver" | grep GNU > /dev/null; then
27289 # Check if linker supports --eh-frame-hdr option
27290 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27291 gcc_cv_ld_eh_frame_hdr=yes
27293 else
27294 case "$target" in
27295 *-*-solaris2*)
27296 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27297 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27298 gcc_cv_ld_eh_frame_hdr=yes
27301 esac
27305 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27307 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27311 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27314 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27315 gcc_cv_ld_eh_frame_ciev3=no
27316 if test $in_tree_ld = yes ; then
27317 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 \
27318 && test $in_tree_ld_is_elf = yes; then
27319 gcc_cv_ld_eh_frame_ciev3=yes
27321 elif test x$gcc_cv_ld != x; then
27322 if echo "$ld_ver" | grep GNU > /dev/null; then
27323 gcc_cv_ld_eh_frame_ciev3=yes
27324 if test 0"$ld_date" -lt 20040513; then
27325 if test -n "$ld_date"; then
27326 # If there was date string, but was earlier than 2004-05-13, fail
27327 gcc_cv_ld_eh_frame_ciev3=no
27328 elif test "$ld_vers_major" -lt 2; then
27329 gcc_cv_ld_eh_frame_ciev3=no
27330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27331 gcc_cv_ld_eh_frame_ciev3=no
27334 else
27335 case "$target" in
27336 *-*-solaris2*)
27337 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27338 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27339 gcc_cv_ld_eh_frame_ciev3=yes
27342 esac
27346 cat >>confdefs.h <<_ACEOF
27347 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27348 _ACEOF
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27351 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27354 $as_echo_n "checking linker position independent executable support... " >&6; }
27355 gcc_cv_ld_pie=no
27356 if test $in_tree_ld = yes ; then
27357 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
27358 && test $in_tree_ld_is_elf = yes; then
27359 gcc_cv_ld_pie=yes
27361 elif test x$gcc_cv_ld != x; then
27362 # Check if linker supports -pie option
27363 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27364 gcc_cv_ld_pie=yes
27367 if test x"$gcc_cv_ld_pie" = xyes; then
27369 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27373 $as_echo "$gcc_cv_ld_pie" >&6; }
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27376 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27377 gcc_cv_ld_pie_copyreloc=no
27378 if test $gcc_cv_ld_pie = yes ; then
27379 if test $in_tree_ld = yes ; then
27380 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
27381 gcc_cv_ld_pie_copyreloc=yes
27383 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27384 # Check if linker supports -pie option with copy reloc
27385 case "$target" in
27386 i?86-*-linux* | x86_64-*-linux*)
27387 cat > conftest1.s <<EOF
27388 .globl a_glob
27389 .data
27390 .type a_glob, @object
27391 .size a_glob, 4
27392 a_glob:
27393 .long 2
27395 cat > conftest2.s <<EOF
27396 .text
27397 .globl main
27398 .type main, @function
27399 main:
27400 movl %eax, a_glob(%rip)
27401 .size main, .-main
27402 .globl ptr
27403 .section .data.rel,"aw",@progbits
27404 .type ptr, @object
27405 ptr:
27406 .quad a_glob
27408 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27409 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27410 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27411 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27412 gcc_cv_ld_pie_copyreloc=yes
27414 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27416 esac
27420 cat >>confdefs.h <<_ACEOF
27421 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27422 _ACEOF
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27425 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27428 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27429 gcc_cv_ld_eh_gc_sections=no
27430 if test $in_tree_ld = yes ; then
27431 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 \
27432 && test $in_tree_ld_is_elf = yes; then
27433 gcc_cv_ld_eh_gc_sections=yes
27435 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27436 cat > conftest.s <<EOF
27437 .section .text
27438 .globl _start
27439 .type _start, @function
27440 _start:
27441 .long foo
27442 .size _start, .-_start
27443 .section .text.foo,"ax",@progbits
27444 .type foo, @function
27445 foo:
27446 .long 0
27447 .size foo, .-foo
27448 .section .gcc_except_table.foo,"a",@progbits
27449 .L0:
27450 .long 0
27451 .section .eh_frame,"a",@progbits
27452 .long .L0
27454 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27455 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27456 | grep "gc-sections option ignored" > /dev/null; then
27457 gcc_cv_ld_eh_gc_sections=no
27458 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27459 | grep gcc_except_table > /dev/null; then
27460 gcc_cv_ld_eh_gc_sections=yes
27461 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27462 if test x$gcc_cv_as_comdat_group != xyes; then
27463 gcc_cv_ld_eh_gc_sections=no
27464 cat > conftest.s <<EOF
27465 .section .text
27466 .globl _start
27467 .type _start, @function
27468 _start:
27469 .long foo
27470 .size _start, .-_start
27471 .section .gnu.linkonce.t.foo,"ax",@progbits
27472 .type foo, @function
27473 foo:
27474 .long 0
27475 .size foo, .-foo
27476 .section .gcc_except_table.foo,"a",@progbits
27477 .L0:
27478 .long 0
27479 .section .eh_frame,"a",@progbits
27480 .long .L0
27482 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27483 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27484 | grep "gc-sections option ignored" > /dev/null; then
27485 gcc_cv_ld_eh_gc_sections=no
27486 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27487 | grep gcc_except_table > /dev/null; then
27488 gcc_cv_ld_eh_gc_sections=yes
27494 rm -f conftest.s conftest.o conftest
27496 case "$target" in
27497 hppa*-*-linux*)
27498 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27499 gcc_cv_ld_eh_gc_sections=no
27501 esac
27502 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27504 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27508 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27511 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27512 gcc_cv_ld_eh_gc_sections_bug=no
27513 if test $in_tree_ld = yes ; then
27514 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 \
27515 && test $in_tree_ld_is_elf = yes; then
27516 gcc_cv_ld_eh_gc_sections_bug=yes
27518 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
27519 gcc_cv_ld_eh_gc_sections_bug=yes
27520 cat > conftest.s <<EOF
27521 .section .text
27522 .globl _start
27523 .type _start, @function
27524 _start:
27525 .long foo
27526 .size _start, .-_start
27527 .section .text.startup.foo,"ax",@progbits
27528 .type foo, @function
27529 foo:
27530 .long 0
27531 .size foo, .-foo
27532 .section .gcc_except_table.foo,"a",@progbits
27533 .L0:
27534 .long 0
27535 .section .eh_frame,"a",@progbits
27536 .long .L0
27538 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27539 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27540 | grep "gc-sections option ignored" > /dev/null; then
27542 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27543 | grep gcc_except_table > /dev/null; then
27544 gcc_cv_ld_eh_gc_sections_bug=no
27547 rm -f conftest.s conftest.o conftest
27549 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27551 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27555 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27558 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27559 # gold/gld support compressed debug sections since binutils 2.19/2.21
27560 if test $in_tree_ld = yes ; then
27561 gcc_cv_ld_compress_debug=0
27562 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 \
27563 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27564 gcc_cv_ld_compress_debug=2
27565 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27566 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 \
27567 && test $in_tree_ld_is_elf = yes; then
27568 gcc_cv_ld_compress_debug=1
27570 elif echo "$ld_ver" | grep GNU > /dev/null; then
27571 gcc_cv_ld_compress_debug=1
27572 if test 0"$ld_date" -lt 20050308; then
27573 if test -n "$ld_date"; then
27574 # If there was date string, but was earlier than 2005-03-08, fail
27575 gcc_cv_ld_compress_debug=0
27576 elif test "$ld_vers_major" -lt 2; then
27577 gcc_cv_ld_compress_debug=0
27578 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27579 gcc_cv_ld_compress_debug=0
27582 if test $ld_is_gold = yes; then
27583 gcc_cv_ld_compress_debug=2
27584 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27586 else
27587 case "${target}" in
27588 *-*-solaris2*)
27589 # Introduced in Solaris 11.2.
27590 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27591 gcc_cv_ld_compress_debug=3
27592 gcc_cv_ld_compress_debug_option="-z compress-sections"
27593 else
27594 gcc_cv_ld_compress_debug=0
27598 # Assume linkers other than GNU ld don't support compessed debug
27599 # sections.
27600 gcc_cv_ld_compress_debug=0
27602 esac
27605 cat >>confdefs.h <<_ACEOF
27606 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27607 _ACEOF
27610 cat >>confdefs.h <<_ACEOF
27611 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27612 _ACEOF
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27615 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27617 # --------
27618 # UNSORTED
27619 # --------
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27622 $as_echo_n "checking linker --as-needed support... " >&6; }
27623 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27624 $as_echo_n "(cached) " >&6
27625 else
27626 gcc_cv_ld_as_needed=no
27627 gcc_cv_ld_as_needed_option='--as-needed'
27628 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27629 if test $in_tree_ld = yes ; then
27630 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 \
27631 && test $in_tree_ld_is_elf = yes; then
27632 gcc_cv_ld_as_needed=yes
27634 elif test x$gcc_cv_ld != x; then
27635 # Check if linker supports --as-needed and --no-as-needed options
27636 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27637 gcc_cv_ld_as_needed=yes
27638 else
27639 case "$target" in
27640 # Solaris 2 ld always supports -z ignore/-z record.
27641 *-*-solaris2*)
27642 gcc_cv_ld_as_needed=yes
27643 gcc_cv_ld_as_needed_option="-z ignore"
27644 gcc_cv_ld_no_as_needed_option="-z record"
27646 esac
27649 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27650 # dl_iterate_phdr, i.e. since Solaris 11.
27651 case "$target" in
27652 *-*-solaris2.1[1-9]*)
27653 case "$target" in
27654 i?86-*-* | x86_64-*-*)
27655 if echo "$ld_ver" | grep GNU > /dev/null; then
27656 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27657 gcc_cv_ld_as_needed=no
27660 esac
27662 *-*-solaris2*)
27663 gcc_cv_ld_as_needed=no
27665 esac
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27669 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27670 if test x"$gcc_cv_ld_as_needed" = xyes; then
27672 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27675 cat >>confdefs.h <<_ACEOF
27676 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27677 _ACEOF
27680 cat >>confdefs.h <<_ACEOF
27681 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27682 _ACEOF
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27687 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27688 saved_LDFLAGS="$LDFLAGS"
27689 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27690 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27692 /* end confdefs.h. */
27693 int main(void) {return 0;}
27694 _ACEOF
27695 if ac_fn_cxx_try_link "$LINENO"; then :
27696 gcc_cv_ld_clearcap=yes; break
27697 else
27698 gcc_cv_ld_clearcap=no
27700 rm -f core conftest.err conftest.$ac_objext \
27701 conftest$ac_exeext conftest.$ac_ext
27702 done
27703 LDFLAGS="$saved_LDFLAGS"
27704 if test "x$gcc_cv_ld_clearcap" = xyes; then
27706 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27708 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27712 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27714 case "$target:$tm_file" in
27715 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27716 case "$target" in
27717 *le-*-linux*)
27718 emul_name="-melf64lppc"
27720 *-*-linux*)
27721 emul_name="-melf64ppc"
27723 *-*-freebsd*)
27724 emul_name="-melf64ppc_fbsd"
27726 esac
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27728 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27729 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27730 $as_echo_n "(cached) " >&6
27731 else
27732 gcc_cv_ld_no_dot_syms=no
27733 if test x"$ld_is_gold" = xyes; then
27734 gcc_cv_ld_no_dot_syms=yes
27735 elif test $in_tree_ld = yes ; then
27736 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
27737 gcc_cv_ld_no_dot_syms=yes
27739 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27740 cat > conftest1.s <<EOF
27741 .text
27742 bl .foo
27744 cat > conftest2.s <<EOF
27745 .section ".opd","aw"
27746 .align 3
27747 .globl foo
27748 .type foo,@function
27749 foo:
27750 .quad .LEfoo,.TOC.@tocbase,0
27751 .text
27752 .LEfoo:
27754 .size foo,.-.LEfoo
27756 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27757 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27758 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27759 gcc_cv_ld_no_dot_syms=yes
27761 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27766 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27767 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27769 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27774 $as_echo_n "checking linker large toc support... " >&6; }
27775 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27776 $as_echo_n "(cached) " >&6
27777 else
27778 gcc_cv_ld_large_toc=no
27779 if test x"$ld_is_gold" = xyes; then
27780 gcc_cv_ld_large_toc=yes
27781 elif test $in_tree_ld = yes ; then
27782 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
27783 gcc_cv_ld_large_toc=yes
27785 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27786 cat > conftest.s <<EOF
27787 .section ".tbss","awT",@nobits
27788 .align 3
27789 ie0: .space 8
27790 .global _start
27791 .text
27792 _start:
27793 addis 9,13,ie0@got@tprel@ha
27794 ld 9,ie0@got@tprel@l(9)
27796 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27797 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27798 gcc_cv_ld_large_toc=yes
27800 rm -f conftest conftest.o conftest.s
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27805 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27806 if test x"$gcc_cv_ld_large_toc" = xyes; then
27808 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27813 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27814 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27815 $as_echo_n "(cached) " >&6
27816 else
27817 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27818 cat > conftest.s <<EOF
27819 .global _start
27820 .text
27821 _start:
27822 addis 9,2,x@got@ha
27823 .section .data.rel.ro,"aw",@progbits
27824 .p2align 16
27825 .space 32768
27826 x: .quad .TOC.
27828 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27829 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27830 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)) }'`
27832 rm -f conftest conftest.o conftest.s
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27837 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27838 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27840 cat >>confdefs.h <<_ACEOF
27841 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27842 _ACEOF
27846 esac
27848 case "$target" in
27849 *-*-aix*)
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27851 $as_echo_n "checking linker large toc support... " >&6; }
27852 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27853 $as_echo_n "(cached) " >&6
27854 else
27855 gcc_cv_ld_large_toc=no
27856 if test x$gcc_cv_as != x ; then
27857 cat > conftest.s <<EOF
27858 .toc
27859 LC..1:
27860 .tc a[TC],a[RW]
27861 .extern a[RW]
27862 .csect .text[PR]
27863 .largetoctest:
27864 addis 9,LC..1@u(2)
27865 ld 3,LC..1@l(9)
27867 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27868 gcc_cv_ld_large_toc=yes
27870 rm -f conftest conftest.o conftest.s
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27875 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27876 if test x"$gcc_cv_ld_large_toc" = xyes; then
27878 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27882 esac
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27885 $as_echo_n "checking linker --build-id support... " >&6; }
27886 if test "${gcc_cv_ld_buildid+set}" = set; then :
27887 $as_echo_n "(cached) " >&6
27888 else
27889 gcc_cv_ld_buildid=no
27890 if test $in_tree_ld = yes ; then
27891 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27892 "$gcc_cv_gld_minor_version" -ge 18 -o \
27893 "$gcc_cv_gld_major_version" -gt 2 \
27894 && test $in_tree_ld_is_elf = yes; then
27895 gcc_cv_ld_buildid=yes
27897 elif test x$gcc_cv_ld != x; then
27898 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27899 gcc_cv_ld_buildid=yes
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27904 $as_echo "$gcc_cv_ld_buildid" >&6; }
27905 if test x"$gcc_cv_ld_buildid" = xyes; then
27907 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27911 # Check whether --enable-linker-build-id was given.
27912 if test "${enable_linker_build_id+set}" = set; then :
27913 enableval=$enable_linker_build_id;
27914 else
27915 enable_linker_build_id=no
27919 if test x"$enable_linker_build_id" = xyes; then
27920 if test x"$gcc_cv_ld_buildid" = xyes; then
27922 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27924 else
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27926 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27930 # In binutils 2.21, GNU ld gained support for new emulations fully
27931 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27933 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27934 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27935 $as_echo_n "(cached) " >&6
27936 else
27937 gcc_cv_ld_sol2_emulation=no
27938 if test $in_tree_ld = yes ; then
27939 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27940 "$gcc_cv_gld_minor_version" -ge 21 -o \
27941 "$gcc_cv_gld_major_version" -gt 2 \
27942 && test $in_tree_ld_is_elf = yes; then
27943 gcc_cv_ld_sol2_emulation=yes
27945 elif test x$gcc_cv_ld != x; then
27946 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27947 grep _sol2 > /dev/null; then
27948 gcc_cv_ld_sol2_emulation=yes
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27953 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27954 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27956 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27961 $as_echo_n "checking linker --sysroot support... " >&6; }
27962 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27963 $as_echo_n "(cached) " >&6
27964 else
27965 gcc_cv_ld_sysroot=no
27966 if test $in_tree_ld = yes ; then
27967 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
27968 gcc_cv_ld_sysroot=yes
27970 elif test x$gcc_cv_ld != x; then
27971 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27972 gcc_cv_ld_sysroot=yes
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27977 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27978 if test x"$gcc_cv_ld_sysroot" = xyes; then
27980 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27984 # Test for stack protector support in target C library.
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27986 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27987 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27988 $as_echo_n "(cached) " >&6
27989 else
27990 gcc_cv_libc_provides_ssp=no
27991 case "$target" in
27992 *-*-musl*)
27993 # All versions of musl provide stack protector
27994 gcc_cv_libc_provides_ssp=yes;;
27995 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27996 # glibc 2.4 and later provides __stack_chk_fail and
27997 # either __stack_chk_guard, or TLS access to stack guard canary.
27999 if test $glibc_version_major -gt 2 \
28000 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28001 gcc_cv_libc_provides_ssp=yes
28002 else
28004 if test -f $target_header_dir/features.h \
28005 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28006 $target_header_dir/features.h > /dev/null; then
28007 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28008 $target_header_dir/features.h > /dev/null && \
28009 test -f $target_header_dir/bits/uClibc_config.h && \
28010 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28011 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28012 gcc_cv_libc_provides_ssp=yes
28014 # all versions of Bionic support stack protector
28015 elif test -f $target_header_dir/sys/cdefs.h \
28016 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28017 $target_header_dir/sys/cdefs.h > /dev/null; then
28018 gcc_cv_libc_provides_ssp=yes
28022 *-*-gnu*)
28023 # Avoid complicated tests (see
28024 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28025 # simply assert that glibc does provide this, which is true for all
28026 # realistically usable GNU/Hurd configurations.
28027 # All supported versions of musl provide it as well
28028 gcc_cv_libc_provides_ssp=yes;;
28029 *-*-darwin* | *-*-freebsd*)
28030 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28031 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28032 gcc_cv_libc_provides_ssp=yes
28033 else
28034 echo "no __stack_chk_fail on this target"
28038 *) gcc_cv_libc_provides_ssp=no ;;
28039 esac
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28042 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28044 if test x$gcc_cv_libc_provides_ssp = xyes; then
28046 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28050 # Test for <sys/sdt.h> on the target.
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28053 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28054 have_sys_sdt_h=no
28055 if test -f $target_header_dir/sys/sdt.h; then
28056 have_sys_sdt_h=yes
28058 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28062 $as_echo "$have_sys_sdt_h" >&6; }
28064 # Check if TFmode long double should be used by default or not.
28065 # Some glibc targets used DFmode long double, but with glibc 2.4
28066 # and later they can use TFmode.
28067 case "$target" in
28068 powerpc*-*-linux* | \
28069 sparc*-*-linux* | \
28070 s390*-*-linux* | \
28071 alpha*-*-linux*)
28073 # Check whether --with-long-double-128 was given.
28074 if test "${with_long_double_128+set}" = set; then :
28075 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28076 else
28078 if test $glibc_version_major -gt 2 \
28079 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28080 gcc_cv_target_ldbl128=yes
28081 else
28083 gcc_cv_target_ldbl128=no
28084 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28085 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28086 && gcc_cv_target_ldbl128=yes
28092 esac
28093 if test x$gcc_cv_target_ldbl128 = xyes; then
28095 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28100 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28101 gcc_cv_target_dl_iterate_phdr=unknown
28102 case "$target" in
28103 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28104 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28105 # libdl there, both complicating its use and breaking compatibility
28106 # between Solaris 10 updates.
28107 *-*-solaris2.1[1-9]*)
28108 # <link.h> needs both a dl_iterate_phdr declaration and support for
28109 # compilation with largefile support.
28110 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28111 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28112 gcc_cv_target_dl_iterate_phdr=yes
28113 else
28114 gcc_cv_target_dl_iterate_phdr=no
28117 *-*-dragonfly* | *-*-freebsd*)
28118 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28119 gcc_cv_target_dl_iterate_phdr=yes
28120 else
28121 gcc_cv_target_dl_iterate_phdr=no
28124 *-linux-musl*)
28125 gcc_cv_target_dl_iterate_phdr=yes
28127 esac
28129 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28131 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28135 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28137 # We no longer support different GC mechanisms. Emit an error if
28138 # the user configures with --with-gc.
28140 # Check whether --with-gc was given.
28141 if test "${with_gc+set}" = set; then :
28142 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28146 # Libraries to use on the host. This will normally be set by the top
28147 # level Makefile. Here we simply capture the value for our Makefile.
28148 if test -z "${HOST_LIBS+set}"; then
28149 HOST_LIBS=
28153 # Use the system's zlib library.
28155 # Use the system's zlib library.
28156 zlibdir="-L\$(top_builddir)/../zlib"
28157 zlibinc="-I\$(top_srcdir)/../zlib"
28159 # Check whether --with-system-zlib was given.
28160 if test "${with_system_zlib+set}" = set; then :
28161 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28162 zlibdir=
28163 zlibinc=
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28174 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28175 # Check whether --enable-maintainer-mode was given.
28176 if test "${enable_maintainer_mode+set}" = set; then :
28177 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28178 else
28179 maintainer_mode=no
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28184 $as_echo "$maintainer_mode" >&6; }
28186 if test "$maintainer_mode" = "yes"; then
28187 MAINT=''
28188 else
28189 MAINT='#'
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28194 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28195 # Check whether --enable-link-mutex was given.
28196 if test "${enable_link_mutex+set}" = set; then :
28197 enableval=$enable_link_mutex; do_link_mutex=$enableval
28198 else
28199 do_link_mutex=no
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28203 $as_echo "$do_link_mutex" >&6; }
28205 if test "$do_link_mutex" = "yes"; then
28206 DO_LINK_MUTEX=true
28207 else
28208 DO_LINK_MUTEX=false
28212 # --------------
28213 # Language hooks
28214 # --------------
28216 # Make empty files to contain the specs and options for each language.
28217 # Then add #include lines to for a compiler that has specs and/or options.
28219 subdirs=
28220 lang_opt_files=
28221 lang_specs_files=
28222 lang_tree_files=
28223 # These (without "all_") are set in each config-lang.in.
28224 # `language' must be a single word so is spelled singularly.
28225 all_languages=
28226 all_compilers=
28227 all_outputs='Makefile'
28228 # List of language makefile fragments.
28229 all_lang_makefrags=
28230 # Additional files for gengtype
28231 all_gtfiles="$target_gtfiles"
28233 # These are the languages that are set in --enable-languages,
28234 # and are available in the GCC tree.
28235 all_selected_languages=
28237 # Add the language fragments.
28238 # Languages are added via two mechanisms. Some information must be
28239 # recorded in makefile variables, these are defined in config-lang.in.
28240 # We accumulate them and plug them into the main Makefile.
28241 # The other mechanism is a set of hooks for each of the main targets
28242 # like `clean', `install', etc.
28244 language_hooks="Make-hooks"
28246 for lang in ${srcdir}/*/config-lang.in
28248 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28250 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28251 if test "x$lang_alias" = x
28252 then
28253 echo "$lang doesn't set \$language." 1>&2
28254 exit 1
28256 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28257 subdirs="$subdirs $subdir"
28259 # $gcc_subdir is where the gcc integration files are to be found
28260 # for a language, both for internal compiler purposes (compiler
28261 # sources implementing front-end to GCC tree converters), and for
28262 # build infrastructure purposes (Make-lang.in, etc.)
28264 # This will be <subdir> (relative to $srcdir) if a line like
28265 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28266 # is found in <langdir>/config-lang.in, and will remain <langdir>
28267 # otherwise.
28269 # Except for the language alias (fetched above), the regular
28270 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28271 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28272 # only this and the language alias.
28274 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28275 if [ "$gcc_subdir" = "" ]; then
28276 gcc_subdir="$subdir"
28279 case ",$enable_languages," in
28280 *,$lang_alias,*)
28281 all_selected_languages="$all_selected_languages $lang_alias"
28282 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28283 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28286 esac
28288 language=
28289 boot_language=
28290 compilers=
28291 outputs=
28292 gtfiles=
28293 subdir_requires=
28294 . ${srcdir}/$gcc_subdir/config-lang.in
28295 if test "x$language" = x
28296 then
28297 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28298 exit 1
28301 ok=:
28302 case ",$enable_languages," in
28303 *,$lang_alias,*) ;;
28305 for i in $subdir_requires; do
28306 test -f "${srcdir}/$i/config-lang.in" && continue
28307 ok=false
28308 break
28309 done
28311 esac
28312 $ok || continue
28314 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28315 if test -f $srcdir/$gcc_subdir/lang.opt; then
28316 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28317 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28319 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28320 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28322 all_languages="$all_languages $language"
28323 all_compilers="$all_compilers $compilers"
28324 all_outputs="$all_outputs $outputs"
28325 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28326 case ",$enable_languages," in
28327 *,lto,*)
28329 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28331 enable_lto=yes
28334 *) ;;
28335 esac
28336 done
28338 check_languages=
28339 for language in $all_selected_languages
28341 check_languages="$check_languages check-$language"
28342 done
28344 # We link each language in with a set of hooks, reached indirectly via
28345 # lang.${target}. Only do so for selected languages.
28347 rm -f Make-hooks
28348 touch Make-hooks
28349 target_list="all.cross start.encap rest.encap tags \
28350 install-common install-man install-info install-pdf install-html dvi \
28351 pdf html uninstall info man srcextra srcman srcinfo \
28352 mostlyclean clean distclean maintainer-clean install-plugin"
28354 for t in $target_list
28357 for lang in $all_selected_languages
28359 x="$x $lang.$t"
28360 done
28361 echo "lang.$t: $x" >> Make-hooks
28362 done
28364 # --------
28365 # Option include files
28366 # --------
28368 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28369 option_includes="option-includes.mk"
28372 # --------
28373 # UNSORTED
28374 # --------
28376 # Create .gdbinit.
28378 echo "dir ." > .gdbinit
28379 echo "dir ${srcdir}" >> .gdbinit
28380 if test x$gdb_needs_out_file_path = xyes
28381 then
28382 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28384 if test "x$subdirs" != x; then
28385 for s in $subdirs
28387 echo "dir ${srcdir}/$s" >> .gdbinit
28388 done
28390 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28391 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28393 # Put a breakpoint on __asan_report_error to help with debugging buffer
28394 # overflow.
28395 case "$CFLAGS" in
28396 *-fsanitize=address*)
28397 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28399 esac
28401 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28405 # Find a directory in which to install a shared libgcc.
28407 # Check whether --enable-version-specific-runtime-libs was given.
28408 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28409 enableval=$enable_version_specific_runtime_libs;
28413 # Substitute configuration variables
28476 # Echo link setup.
28477 if test x${build} = x${host} ; then
28478 if test x${host} = x${target} ; then
28479 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28480 else
28481 echo "Links are now set up to build a cross-compiler" 1>&2
28482 echo " from ${host} to ${target}." 1>&2
28484 else
28485 if test x${host} = x${target} ; then
28486 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28487 echo " for ${target}." 1>&2
28488 else
28489 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28490 echo " from ${host} to ${target}." 1>&2
28499 if test "x${ISLLIBS}" != "x" ; then
28501 $as_echo "#define HAVE_isl 1" >>confdefs.h
28505 # Check whether isl_schedule_constraints_compute_schedule is available;
28506 # it's new in ISL-0.13.
28507 # Check whether isl_options_set_schedule_serialize_sccs is available;
28508 # it's new in ISL-0.15.
28509 if test "x${ISLLIBS}" != "x" ; then
28510 saved_CXXFLAGS="$CXXFLAGS"
28511 CXXFLAGS="$CXXFLAGS $ISLINC"
28512 saved_LIBS="$LIBS"
28513 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28516 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28518 /* end confdefs.h. */
28519 #include <isl/schedule.h>
28521 main ()
28523 isl_schedule_constraints_compute_schedule (NULL);
28525 return 0;
28527 _ACEOF
28528 if ac_fn_cxx_try_link "$LINENO"; then :
28529 ac_has_isl_schedule_constraints_compute_schedule=yes
28530 else
28531 ac_has_isl_schedule_constraints_compute_schedule=no
28533 rm -f core conftest.err conftest.$ac_objext \
28534 conftest$ac_exeext conftest.$ac_ext
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28536 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28539 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28541 /* end confdefs.h. */
28542 #include <isl/schedule.h>
28544 main ()
28546 isl_options_set_schedule_serialize_sccs (NULL, 0);
28548 return 0;
28550 _ACEOF
28551 if ac_fn_cxx_try_link "$LINENO"; then :
28552 ac_has_isl_options_set_schedule_serialize_sccs=yes
28553 else
28554 ac_has_isl_options_set_schedule_serialize_sccs=no
28556 rm -f core conftest.err conftest.$ac_objext \
28557 conftest$ac_exeext conftest.$ac_ext
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28559 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28561 LIBS="$saved_LIBS"
28562 CXXFLAGS="$saved_CXXFLAGS"
28564 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28566 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28570 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28572 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28577 # Check for plugin support
28578 # Check whether --enable-plugin was given.
28579 if test "${enable_plugin+set}" = set; then :
28580 enableval=$enable_plugin; enable_plugin=$enableval
28581 else
28582 enable_plugin=yes; default_plugin=yes
28586 pluginlibs=
28588 case "${host}" in
28589 *-*-darwin*)
28590 if test x$build = x$host; then
28591 export_sym_check="nm${exeext} -g"
28592 elif test x$host = x$target; then
28593 export_sym_check="$gcc_cv_nm -g"
28594 else
28595 export_sym_check=
28599 if test x$build = x$host; then
28600 export_sym_check="objdump${exeext} -T"
28601 elif test x$host = x$target; then
28602 export_sym_check="$gcc_cv_objdump -T"
28603 else
28604 export_sym_check=
28607 esac
28609 if test x"$enable_plugin" = x"yes"; then
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28612 $as_echo_n "checking for exported symbols... " >&6; }
28613 if test "x$export_sym_check" != x; then
28614 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28615 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28616 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28617 : # No need to use a flag
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28619 $as_echo "yes" >&6; }
28620 else
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28622 $as_echo "yes" >&6; }
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28624 $as_echo_n "checking for -rdynamic... " >&6; }
28625 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28626 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28627 plugin_rdynamic=yes
28628 pluginlibs="-rdynamic"
28629 else
28630 plugin_rdynamic=no
28631 enable_plugin=no
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28634 $as_echo "$plugin_rdynamic" >&6; }
28636 else
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28638 $as_echo "unable to check" >&6; }
28641 # Check -ldl
28642 saved_LIBS="$LIBS"
28643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28644 $as_echo_n "checking for library containing dlopen... " >&6; }
28645 if test "${ac_cv_search_dlopen+set}" = set; then :
28646 $as_echo_n "(cached) " >&6
28647 else
28648 ac_func_search_save_LIBS=$LIBS
28649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28650 /* end confdefs.h. */
28652 /* Override any GCC internal prototype to avoid an error.
28653 Use char because int might match the return type of a GCC
28654 builtin and then its argument prototype would still apply. */
28655 #ifdef __cplusplus
28656 extern "C"
28657 #endif
28658 char dlopen ();
28660 main ()
28662 return dlopen ();
28664 return 0;
28666 _ACEOF
28667 for ac_lib in '' dl; do
28668 if test -z "$ac_lib"; then
28669 ac_res="none required"
28670 else
28671 ac_res=-l$ac_lib
28672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28674 if ac_fn_cxx_try_link "$LINENO"; then :
28675 ac_cv_search_dlopen=$ac_res
28677 rm -f core conftest.err conftest.$ac_objext \
28678 conftest$ac_exeext
28679 if test "${ac_cv_search_dlopen+set}" = set; then :
28680 break
28682 done
28683 if test "${ac_cv_search_dlopen+set}" = set; then :
28685 else
28686 ac_cv_search_dlopen=no
28688 rm conftest.$ac_ext
28689 LIBS=$ac_func_search_save_LIBS
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28692 $as_echo "$ac_cv_search_dlopen" >&6; }
28693 ac_res=$ac_cv_search_dlopen
28694 if test "$ac_res" != no; then :
28695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28699 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28700 pluginlibs="$pluginlibs -ldl"
28702 LIBS="$saved_LIBS"
28704 # Check that we can build shared objects with -fPIC -shared
28705 saved_LDFLAGS="$LDFLAGS"
28706 saved_CFLAGS="$CFLAGS"
28707 case "${host}" in
28708 *-*-darwin*)
28709 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28710 CFLAGS="$CFLAGS -fPIC"
28711 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28714 CFLAGS="$CFLAGS -fPIC"
28715 LDFLAGS="$LDFLAGS -fPIC -shared"
28717 esac
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28719 $as_echo_n "checking for -fPIC -shared... " >&6; }
28720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28721 /* end confdefs.h. */
28722 extern int X;
28724 main ()
28726 return X == 0;
28728 return 0;
28730 _ACEOF
28731 if ac_fn_cxx_try_link "$LINENO"; then :
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28733 $as_echo "yes" >&6; }; have_pic_shared=yes
28734 else
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28736 $as_echo "no" >&6; }; have_pic_shared=no
28738 rm -f core conftest.err conftest.$ac_objext \
28739 conftest$ac_exeext conftest.$ac_ext
28740 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28741 pluginlibs=
28742 enable_plugin=no
28744 LDFLAGS="$saved_LDFLAGS"
28745 CFLAGS="$saved_CFLAGS"
28747 # If plugin support had been requested but not available, fail.
28748 if test x"$enable_plugin" = x"no" ; then
28749 if test x"$default_plugin" != x"yes"; then
28750 as_fn_error "
28751 Building GCC with plugin support requires a host that supports
28752 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28759 if test x"$enable_plugin" = x"yes"; then
28761 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28766 # Enable --enable-host-shared
28767 # Check whether --enable-host-shared was given.
28768 if test "${enable_host_shared+set}" = set; then :
28769 enableval=$enable_host_shared; PICFLAG=-fPIC
28770 else
28771 PICFLAG=
28778 # Check whether --enable-libquadmath-support was given.
28779 if test "${enable_libquadmath_support+set}" = set; then :
28780 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28781 else
28782 ENABLE_LIBQUADMATH_SUPPORT=yes
28785 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28787 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28792 # Specify what hash style to use by default.
28794 # Check whether --with-linker-hash-style was given.
28795 if test "${with_linker_hash_style+set}" = set; then :
28796 withval=$with_linker_hash_style; case x"$withval" in
28797 xsysv)
28798 LINKER_HASH_STYLE=sysv
28800 xgnu)
28801 LINKER_HASH_STYLE=gnu
28803 xboth)
28804 LINKER_HASH_STYLE=both
28807 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28809 esac
28810 else
28811 LINKER_HASH_STYLE=''
28814 if test x"${LINKER_HASH_STYLE}" != x; then
28816 cat >>confdefs.h <<_ACEOF
28817 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28818 _ACEOF
28822 # Specify what should be the default of -fdiagnostics-color option.
28824 # Check whether --with-diagnostics-color was given.
28825 if test "${with_diagnostics_color+set}" = set; then :
28826 withval=$with_diagnostics_color; case x"$withval" in
28827 xnever)
28828 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28830 xauto)
28831 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28833 xauto-if-env)
28834 DIAGNOSTICS_COLOR_DEFAULT=-1
28836 xalways)
28837 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28840 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28842 esac
28843 else
28844 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28848 cat >>confdefs.h <<_ACEOF
28849 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28850 _ACEOF
28853 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28854 # of jit/jit-playback.c.
28855 cat > gcc-driver-name.h <<EOF
28856 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28859 # Check whether --enable-default-pie was given.
28860 # Check whether --enable-default-pie was given.
28861 if test "${enable_default_pie+set}" = set; then :
28862 enableval=$enable_default_pie; enable_default_pie=$enableval
28863 else
28864 enable_default_pie=no
28867 if test x$enable_default_pie == xyes ; then
28869 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28874 # Check if -fno-PIE works.
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28876 $as_echo_n "checking for -fno-PIE option... " >&6; }
28877 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28878 $as_echo_n "(cached) " >&6
28879 else
28880 saved_CXXFLAGS="$CXXFLAGS"
28881 CXXFLAGS="$CXXFLAGS -fno-PIE"
28882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28883 /* end confdefs.h. */
28884 int main(void) {return 0;}
28885 _ACEOF
28886 if ac_fn_cxx_try_compile "$LINENO"; then :
28887 gcc_cv_c_no_fpie=yes
28888 else
28889 gcc_cv_c_no_fpie=no
28891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28892 CXXFLAGS="$saved_CXXFLAGS"
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28895 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28896 if test "$gcc_cv_c_no_fpie" = "yes"; then
28897 NO_PIE_CFLAGS="-fno-PIE"
28901 # Check if -no-pie works.
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28903 $as_echo_n "checking for -no-pie option... " >&6; }
28904 if test "${gcc_cv_no_pie+set}" = set; then :
28905 $as_echo_n "(cached) " >&6
28906 else
28907 saved_LDFLAGS="$LDFLAGS"
28908 LDFLAGS="$LDFLAGS -no-pie"
28909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28910 /* end confdefs.h. */
28911 int main(void) {return 0;}
28912 _ACEOF
28913 if ac_fn_cxx_try_link "$LINENO"; then :
28914 gcc_cv_no_pie=yes
28915 else
28916 gcc_cv_no_pie=no
28918 rm -f core conftest.err conftest.$ac_objext \
28919 conftest$ac_exeext conftest.$ac_ext
28920 LDFLAGS="$saved_LDFLAGS"
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28923 $as_echo "$gcc_cv_no_pie" >&6; }
28924 if test "$gcc_cv_no_pie" = "yes"; then
28925 NO_PIE_FLAG="-no-pie"
28929 # Check linker supports '-z bndplt'
28930 ld_bndplt_support=no
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
28932 $as_echo_n "checking linker -z bndplt option... " >&6; }
28933 if test x"$ld_is_gold" = xno; then
28934 if test $in_tree_ld = yes ; then
28935 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
28936 ld_bndplt_support=yes
28938 elif test x$gcc_cv_ld != x; then
28939 # Check if linker supports -a bndplt option
28940 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
28941 ld_bndplt_support=yes
28945 if test x"$ld_bndplt_support" = xyes; then
28947 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
28951 $as_echo "$ld_bndplt_support" >&6; }
28953 # Configure the subdirectories
28954 # AC_CONFIG_SUBDIRS($subdirs)
28956 # Create the Makefile
28957 # and configure language subdirectories
28958 ac_config_files="$ac_config_files $all_outputs"
28961 ac_config_commands="$ac_config_commands default"
28963 cat >confcache <<\_ACEOF
28964 # This file is a shell script that caches the results of configure
28965 # tests run on this system so they can be shared between configure
28966 # scripts and configure runs, see configure's option --config-cache.
28967 # It is not useful on other systems. If it contains results you don't
28968 # want to keep, you may remove or edit it.
28970 # config.status only pays attention to the cache file if you give it
28971 # the --recheck option to rerun configure.
28973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28975 # following values.
28977 _ACEOF
28979 # The following way of writing the cache mishandles newlines in values,
28980 # but we know of no workaround that is simple, portable, and efficient.
28981 # So, we kill variables containing newlines.
28982 # Ultrix sh set writes to stderr and can't be redirected directly,
28983 # and sets the high bit in the cache file unless we assign to the vars.
28985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28986 eval ac_val=\$$ac_var
28987 case $ac_val in #(
28988 *${as_nl}*)
28989 case $ac_var in #(
28990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28992 esac
28993 case $ac_var in #(
28994 _ | IFS | as_nl) ;; #(
28995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28996 *) { eval $ac_var=; unset $ac_var;} ;;
28997 esac ;;
28998 esac
28999 done
29001 (set) 2>&1 |
29002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29003 *${as_nl}ac_space=\ *)
29004 # `set' does not quote correctly, so add quotes: double-quote
29005 # substitution turns \\\\ into \\, and sed turns \\ into \.
29006 sed -n \
29007 "s/'/'\\\\''/g;
29008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29009 ;; #(
29011 # `set' quotes correctly as required by POSIX, so do not add quotes.
29012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29014 esac |
29015 sort
29017 sed '
29018 /^ac_cv_env_/b end
29019 t clear
29020 :clear
29021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29022 t end
29023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29024 :end' >>confcache
29025 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29026 if test -w "$cache_file"; then
29027 test "x$cache_file" != "x/dev/null" &&
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29029 $as_echo "$as_me: updating cache $cache_file" >&6;}
29030 cat confcache >$cache_file
29031 else
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29033 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29036 rm -f confcache
29038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29039 # Let make expand exec_prefix.
29040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29042 DEFS=-DHAVE_CONFIG_H
29044 ac_libobjs=
29045 ac_ltlibobjs=
29046 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29047 # 1. Remove the extension, and $U if already installed.
29048 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29049 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29051 # will be set to the directory where LIBOBJS objects are built.
29052 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29053 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29054 done
29055 LIBOBJS=$ac_libobjs
29057 LTLIBOBJS=$ac_ltlibobjs
29062 : ${CONFIG_STATUS=./config.status}
29063 ac_write_fail=0
29064 ac_clean_files_save=$ac_clean_files
29065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29067 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29068 as_write_fail=0
29069 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29070 #! $SHELL
29071 # Generated by $as_me.
29072 # Run this file to recreate the current configuration.
29073 # Compiler output produced by configure, useful for debugging
29074 # configure, is in config.log if it exists.
29076 debug=false
29077 ac_cs_recheck=false
29078 ac_cs_silent=false
29080 SHELL=\${CONFIG_SHELL-$SHELL}
29081 export SHELL
29082 _ASEOF
29083 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29084 ## -------------------- ##
29085 ## M4sh Initialization. ##
29086 ## -------------------- ##
29088 # Be more Bourne compatible
29089 DUALCASE=1; export DUALCASE # for MKS sh
29090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29091 emulate sh
29092 NULLCMD=:
29093 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29094 # is contrary to our usage. Disable this feature.
29095 alias -g '${1+"$@"}'='"$@"'
29096 setopt NO_GLOB_SUBST
29097 else
29098 case `(set -o) 2>/dev/null` in #(
29099 *posix*) :
29100 set -o posix ;; #(
29101 *) :
29103 esac
29107 as_nl='
29109 export as_nl
29110 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29111 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29112 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29114 # Prefer a ksh shell builtin over an external printf program on Solaris,
29115 # but without wasting forks for bash or zsh.
29116 if test -z "$BASH_VERSION$ZSH_VERSION" \
29117 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29118 as_echo='print -r --'
29119 as_echo_n='print -rn --'
29120 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29121 as_echo='printf %s\n'
29122 as_echo_n='printf %s'
29123 else
29124 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29125 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29126 as_echo_n='/usr/ucb/echo -n'
29127 else
29128 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29129 as_echo_n_body='eval
29130 arg=$1;
29131 case $arg in #(
29132 *"$as_nl"*)
29133 expr "X$arg" : "X\\(.*\\)$as_nl";
29134 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29135 esac;
29136 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29138 export as_echo_n_body
29139 as_echo_n='sh -c $as_echo_n_body as_echo'
29141 export as_echo_body
29142 as_echo='sh -c $as_echo_body as_echo'
29145 # The user is always right.
29146 if test "${PATH_SEPARATOR+set}" != set; then
29147 PATH_SEPARATOR=:
29148 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29149 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29150 PATH_SEPARATOR=';'
29155 # IFS
29156 # We need space, tab and new line, in precisely that order. Quoting is
29157 # there to prevent editors from complaining about space-tab.
29158 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29159 # splitting by setting IFS to empty value.)
29160 IFS=" "" $as_nl"
29162 # Find who we are. Look in the path if we contain no directory separator.
29163 case $0 in #((
29164 *[\\/]* ) as_myself=$0 ;;
29165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29166 for as_dir in $PATH
29168 IFS=$as_save_IFS
29169 test -z "$as_dir" && as_dir=.
29170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29171 done
29172 IFS=$as_save_IFS
29175 esac
29176 # We did not find ourselves, most probably we were run as `sh COMMAND'
29177 # in which case we are not to be found in the path.
29178 if test "x$as_myself" = x; then
29179 as_myself=$0
29181 if test ! -f "$as_myself"; then
29182 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29183 exit 1
29186 # Unset variables that we do not need and which cause bugs (e.g. in
29187 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29188 # suppresses any "Segmentation fault" message there. '((' could
29189 # trigger a bug in pdksh 5.2.14.
29190 for as_var in BASH_ENV ENV MAIL MAILPATH
29191 do eval test x\${$as_var+set} = xset \
29192 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29193 done
29194 PS1='$ '
29195 PS2='> '
29196 PS4='+ '
29198 # NLS nuisances.
29199 LC_ALL=C
29200 export LC_ALL
29201 LANGUAGE=C
29202 export LANGUAGE
29204 # CDPATH.
29205 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29208 # as_fn_error ERROR [LINENO LOG_FD]
29209 # ---------------------------------
29210 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29211 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29212 # script with status $?, using 1 if that was 0.
29213 as_fn_error ()
29215 as_status=$?; test $as_status -eq 0 && as_status=1
29216 if test "$3"; then
29217 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29218 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29220 $as_echo "$as_me: error: $1" >&2
29221 as_fn_exit $as_status
29222 } # as_fn_error
29225 # as_fn_set_status STATUS
29226 # -----------------------
29227 # Set $? to STATUS, without forking.
29228 as_fn_set_status ()
29230 return $1
29231 } # as_fn_set_status
29233 # as_fn_exit STATUS
29234 # -----------------
29235 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29236 as_fn_exit ()
29238 set +e
29239 as_fn_set_status $1
29240 exit $1
29241 } # as_fn_exit
29243 # as_fn_unset VAR
29244 # ---------------
29245 # Portably unset VAR.
29246 as_fn_unset ()
29248 { eval $1=; unset $1;}
29250 as_unset=as_fn_unset
29251 # as_fn_append VAR VALUE
29252 # ----------------------
29253 # Append the text in VALUE to the end of the definition contained in VAR. Take
29254 # advantage of any shell optimizations that allow amortized linear growth over
29255 # repeated appends, instead of the typical quadratic growth present in naive
29256 # implementations.
29257 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29258 eval 'as_fn_append ()
29260 eval $1+=\$2
29262 else
29263 as_fn_append ()
29265 eval $1=\$$1\$2
29267 fi # as_fn_append
29269 # as_fn_arith ARG...
29270 # ------------------
29271 # Perform arithmetic evaluation on the ARGs, and store the result in the
29272 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29273 # must be portable across $(()) and expr.
29274 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29275 eval 'as_fn_arith ()
29277 as_val=$(( $* ))
29279 else
29280 as_fn_arith ()
29282 as_val=`expr "$@" || test $? -eq 1`
29284 fi # as_fn_arith
29287 if expr a : '\(a\)' >/dev/null 2>&1 &&
29288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29289 as_expr=expr
29290 else
29291 as_expr=false
29294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29295 as_basename=basename
29296 else
29297 as_basename=false
29300 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29301 as_dirname=dirname
29302 else
29303 as_dirname=false
29306 as_me=`$as_basename -- "$0" ||
29307 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29308 X"$0" : 'X\(//\)$' \| \
29309 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29310 $as_echo X/"$0" |
29311 sed '/^.*\/\([^/][^/]*\)\/*$/{
29312 s//\1/
29315 /^X\/\(\/\/\)$/{
29316 s//\1/
29319 /^X\/\(\/\).*/{
29320 s//\1/
29323 s/.*/./; q'`
29325 # Avoid depending upon Character Ranges.
29326 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29327 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29328 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29329 as_cr_digits='0123456789'
29330 as_cr_alnum=$as_cr_Letters$as_cr_digits
29332 ECHO_C= ECHO_N= ECHO_T=
29333 case `echo -n x` in #(((((
29334 -n*)
29335 case `echo 'xy\c'` in
29336 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29337 xy) ECHO_C='\c';;
29338 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29339 ECHO_T=' ';;
29340 esac;;
29342 ECHO_N='-n';;
29343 esac
29345 rm -f conf$$ conf$$.exe conf$$.file
29346 if test -d conf$$.dir; then
29347 rm -f conf$$.dir/conf$$.file
29348 else
29349 rm -f conf$$.dir
29350 mkdir conf$$.dir 2>/dev/null
29352 if (echo >conf$$.file) 2>/dev/null; then
29353 if ln -s conf$$.file conf$$ 2>/dev/null; then
29354 as_ln_s='ln -s'
29355 # ... but there are two gotchas:
29356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29358 # In both cases, we have to default to `cp -p'.
29359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29360 as_ln_s='cp -p'
29361 elif ln conf$$.file conf$$ 2>/dev/null; then
29362 as_ln_s=ln
29363 else
29364 as_ln_s='cp -p'
29366 else
29367 as_ln_s='cp -p'
29369 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29370 rmdir conf$$.dir 2>/dev/null
29373 # as_fn_mkdir_p
29374 # -------------
29375 # Create "$as_dir" as a directory, including parents if necessary.
29376 as_fn_mkdir_p ()
29379 case $as_dir in #(
29380 -*) as_dir=./$as_dir;;
29381 esac
29382 test -d "$as_dir" || eval $as_mkdir_p || {
29383 as_dirs=
29384 while :; do
29385 case $as_dir in #(
29386 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29387 *) as_qdir=$as_dir;;
29388 esac
29389 as_dirs="'$as_qdir' $as_dirs"
29390 as_dir=`$as_dirname -- "$as_dir" ||
29391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29392 X"$as_dir" : 'X\(//\)[^/]' \| \
29393 X"$as_dir" : 'X\(//\)$' \| \
29394 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29395 $as_echo X"$as_dir" |
29396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29397 s//\1/
29400 /^X\(\/\/\)[^/].*/{
29401 s//\1/
29404 /^X\(\/\/\)$/{
29405 s//\1/
29408 /^X\(\/\).*/{
29409 s//\1/
29412 s/.*/./; q'`
29413 test -d "$as_dir" && break
29414 done
29415 test -z "$as_dirs" || eval "mkdir $as_dirs"
29416 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29419 } # as_fn_mkdir_p
29420 if mkdir -p . 2>/dev/null; then
29421 as_mkdir_p='mkdir -p "$as_dir"'
29422 else
29423 test -d ./-p && rmdir ./-p
29424 as_mkdir_p=false
29427 if test -x / >/dev/null 2>&1; then
29428 as_test_x='test -x'
29429 else
29430 if ls -dL / >/dev/null 2>&1; then
29431 as_ls_L_option=L
29432 else
29433 as_ls_L_option=
29435 as_test_x='
29436 eval sh -c '\''
29437 if test -d "$1"; then
29438 test -d "$1/.";
29439 else
29440 case $1 in #(
29441 -*)set "./$1";;
29442 esac;
29443 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29444 ???[sx]*):;;*)false;;esac;fi
29445 '\'' sh
29448 as_executable_p=$as_test_x
29450 # Sed expression to map a string onto a valid CPP name.
29451 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29453 # Sed expression to map a string onto a valid variable name.
29454 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29457 exec 6>&1
29458 ## ----------------------------------- ##
29459 ## Main body of $CONFIG_STATUS script. ##
29460 ## ----------------------------------- ##
29461 _ASEOF
29462 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29465 # Save the log message, to keep $0 and so on meaningful, and to
29466 # report actual input values of CONFIG_FILES etc. instead of their
29467 # values after options handling.
29468 ac_log="
29469 This file was extended by $as_me, which was
29470 generated by GNU Autoconf 2.64. Invocation command line was
29472 CONFIG_FILES = $CONFIG_FILES
29473 CONFIG_HEADERS = $CONFIG_HEADERS
29474 CONFIG_LINKS = $CONFIG_LINKS
29475 CONFIG_COMMANDS = $CONFIG_COMMANDS
29476 $ $0 $@
29478 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29481 _ACEOF
29483 case $ac_config_files in *"
29484 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29485 esac
29487 case $ac_config_headers in *"
29488 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29489 esac
29492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29493 # Files that config.status was made for.
29494 config_files="$ac_config_files"
29495 config_headers="$ac_config_headers"
29496 config_links="$ac_config_links"
29497 config_commands="$ac_config_commands"
29499 _ACEOF
29501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29502 ac_cs_usage="\
29503 \`$as_me' instantiates files and other configuration actions
29504 from templates according to the current configuration. Unless the files
29505 and actions are specified as TAGs, all are instantiated by default.
29507 Usage: $0 [OPTION]... [TAG]...
29509 -h, --help print this help, then exit
29510 -V, --version print version number and configuration settings, then exit
29511 -q, --quiet, --silent
29512 do not print progress messages
29513 -d, --debug don't remove temporary files
29514 --recheck update $as_me by reconfiguring in the same conditions
29515 --file=FILE[:TEMPLATE]
29516 instantiate the configuration file FILE
29517 --header=FILE[:TEMPLATE]
29518 instantiate the configuration header FILE
29520 Configuration files:
29521 $config_files
29523 Configuration headers:
29524 $config_headers
29526 Configuration links:
29527 $config_links
29529 Configuration commands:
29530 $config_commands
29532 Report bugs to the package provider."
29534 _ACEOF
29535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29536 ac_cs_version="\\
29537 config.status
29538 configured by $0, generated by GNU Autoconf 2.64,
29539 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29541 Copyright (C) 2009 Free Software Foundation, Inc.
29542 This config.status script is free software; the Free Software Foundation
29543 gives unlimited permission to copy, distribute and modify it."
29545 ac_pwd='$ac_pwd'
29546 srcdir='$srcdir'
29547 AWK='$AWK'
29548 test -n "\$AWK" || AWK=awk
29549 _ACEOF
29551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29552 # The default lists apply if the user does not specify any file.
29553 ac_need_defaults=:
29554 while test $# != 0
29556 case $1 in
29557 --*=*)
29558 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29559 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29560 ac_shift=:
29563 ac_option=$1
29564 ac_optarg=$2
29565 ac_shift=shift
29567 esac
29569 case $ac_option in
29570 # Handling of the options.
29571 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29572 ac_cs_recheck=: ;;
29573 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29574 $as_echo "$ac_cs_version"; exit ;;
29575 --debug | --debu | --deb | --de | --d | -d )
29576 debug=: ;;
29577 --file | --fil | --fi | --f )
29578 $ac_shift
29579 case $ac_optarg in
29580 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29581 esac
29582 as_fn_append CONFIG_FILES " '$ac_optarg'"
29583 ac_need_defaults=false;;
29584 --header | --heade | --head | --hea )
29585 $ac_shift
29586 case $ac_optarg in
29587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29588 esac
29589 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29590 ac_need_defaults=false;;
29591 --he | --h)
29592 # Conflict between --help and --header
29593 as_fn_error "ambiguous option: \`$1'
29594 Try \`$0 --help' for more information.";;
29595 --help | --hel | -h )
29596 $as_echo "$ac_cs_usage"; exit ;;
29597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29598 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29599 ac_cs_silent=: ;;
29601 # This is an error.
29602 -*) as_fn_error "unrecognized option: \`$1'
29603 Try \`$0 --help' for more information." ;;
29605 *) as_fn_append ac_config_targets " $1"
29606 ac_need_defaults=false ;;
29608 esac
29609 shift
29610 done
29612 ac_configure_extra_args=
29614 if $ac_cs_silent; then
29615 exec 6>/dev/null
29616 ac_configure_extra_args="$ac_configure_extra_args --silent"
29619 _ACEOF
29620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29621 if \$ac_cs_recheck; then
29622 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29623 shift
29624 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29625 CONFIG_SHELL='$SHELL'
29626 export CONFIG_SHELL
29627 exec "\$@"
29630 _ACEOF
29631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29632 exec 5>>config.log
29634 echo
29635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29636 ## Running $as_me. ##
29637 _ASBOX
29638 $as_echo "$ac_log"
29639 } >&5
29641 _ACEOF
29642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29644 # INIT-COMMANDS
29646 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29647 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29648 subdirs='$subdirs'
29650 _ACEOF
29652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29654 # Handling of arguments.
29655 for ac_config_target in $ac_config_targets
29657 case $ac_config_target in
29658 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29659 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29660 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29661 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29662 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29663 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29664 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29665 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29666 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29668 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29669 esac
29670 done
29673 # If the user did not use the arguments to specify the items to instantiate,
29674 # then the envvar interface is used. Set only those that are not.
29675 # We use the long form for the default assignment because of an extremely
29676 # bizarre bug on SunOS 4.1.3.
29677 if $ac_need_defaults; then
29678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29680 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29681 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29684 # Have a temporary directory for convenience. Make it in the build tree
29685 # simply because there is no reason against having it here, and in addition,
29686 # creating and moving files from /tmp can sometimes cause problems.
29687 # Hook for its removal unless debugging.
29688 # Note that there is a small window in which the directory will not be cleaned:
29689 # after its creation but before its name has been assigned to `$tmp'.
29690 $debug ||
29692 tmp=
29693 trap 'exit_status=$?
29694 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29696 trap 'as_fn_exit 1' 1 2 13 15
29698 # Create a (secure) tmp directory for tmp files.
29701 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29702 test -n "$tmp" && test -d "$tmp"
29703 } ||
29705 tmp=./conf$$-$RANDOM
29706 (umask 077 && mkdir "$tmp")
29707 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29709 # Set up the scripts for CONFIG_FILES section.
29710 # No need to generate them if there are no CONFIG_FILES.
29711 # This happens for instance with `./config.status config.h'.
29712 if test -n "$CONFIG_FILES"; then
29714 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29715 ac_cs_awk_getline=:
29716 ac_cs_awk_pipe_init=
29717 ac_cs_awk_read_file='
29718 while ((getline aline < (F[key])) > 0)
29719 print(aline)
29720 close(F[key])'
29721 ac_cs_awk_pipe_fini=
29722 else
29723 ac_cs_awk_getline=false
29724 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29725 ac_cs_awk_read_file='
29726 print "|#_!!_#|"
29727 print "cat " F[key] " &&"
29728 '$ac_cs_awk_pipe_init
29729 # The final `:' finishes the AND list.
29730 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29732 ac_cr=`echo X | tr X '\015'`
29733 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29734 # But we know of no other shell where ac_cr would be empty at this
29735 # point, so we can use a bashism as a fallback.
29736 if test "x$ac_cr" = x; then
29737 eval ac_cr=\$\'\\r\'
29739 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29741 ac_cs_awk_cr='\r'
29742 else
29743 ac_cs_awk_cr=$ac_cr
29746 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29747 _ACEOF
29749 # Create commands to substitute file output variables.
29751 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29752 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29753 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29754 echo "_ACAWK" &&
29755 echo "_ACEOF"
29756 } >conf$$files.sh &&
29757 . ./conf$$files.sh ||
29758 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29759 rm -f conf$$files.sh
29762 echo "cat >conf$$subs.awk <<_ACEOF" &&
29763 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29764 echo "_ACEOF"
29765 } >conf$$subs.sh ||
29766 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29767 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29768 ac_delim='%!_!# '
29769 for ac_last_try in false false false false false :; do
29770 . ./conf$$subs.sh ||
29771 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29773 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29774 if test $ac_delim_n = $ac_delim_num; then
29775 break
29776 elif $ac_last_try; then
29777 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29778 else
29779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29781 done
29782 rm -f conf$$subs.sh
29784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29785 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29786 _ACEOF
29787 sed -n '
29789 s/^/S["/; s/!.*/"]=/
29792 s/^[^!]*!//
29793 :repl
29794 t repl
29795 s/'"$ac_delim"'$//
29796 t delim
29799 s/\(.\{148\}\).*/\1/
29800 t more1
29801 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29804 b repl
29805 :more1
29806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29809 s/.\{148\}//
29810 t nl
29811 :delim
29813 s/\(.\{148\}\).*/\1/
29814 t more2
29815 s/["\\]/\\&/g; s/^/"/; s/$/"/
29818 :more2
29819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29822 s/.\{148\}//
29823 t delim
29824 ' <conf$$subs.awk | sed '
29825 /^[^""]/{
29827 s/\n//
29829 ' >>$CONFIG_STATUS || ac_write_fail=1
29830 rm -f conf$$subs.awk
29831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29832 _ACAWK
29833 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29834 for (key in S) S_is_set[key] = 1
29835 FS = "\a"
29836 \$ac_cs_awk_pipe_init
29839 line = $ 0
29840 nfields = split(line, field, "@")
29841 substed = 0
29842 len = length(field[1])
29843 for (i = 2; i < nfields; i++) {
29844 key = field[i]
29845 keylen = length(key)
29846 if (S_is_set[key]) {
29847 value = S[key]
29848 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29849 len += length(value) + length(field[++i])
29850 substed = 1
29851 } else
29852 len += 1 + keylen
29854 if (nfields == 3 && !substed) {
29855 key = field[2]
29856 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29857 \$ac_cs_awk_read_file
29858 next
29861 print line
29863 \$ac_cs_awk_pipe_fini
29864 _ACAWK
29865 _ACEOF
29866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29867 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29868 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29869 else
29871 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29872 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29873 _ACEOF
29875 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29876 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29877 # trailing colons and then remove the whole line if VPATH becomes empty
29878 # (actually we leave an empty line to preserve line numbers).
29879 if test "x$srcdir" = x.; then
29880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29881 s/:*\$(srcdir):*/:/
29882 s/:*\${srcdir}:*/:/
29883 s/:*@srcdir@:*/:/
29884 s/^\([^=]*=[ ]*\):*/\1/
29885 s/:*$//
29886 s/^[^=]*=[ ]*$//
29890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29891 fi # test -n "$CONFIG_FILES"
29893 # Set up the scripts for CONFIG_HEADERS section.
29894 # No need to generate them if there are no CONFIG_HEADERS.
29895 # This happens for instance with `./config.status Makefile'.
29896 if test -n "$CONFIG_HEADERS"; then
29897 cat >"$tmp/defines.awk" <<\_ACAWK ||
29898 BEGIN {
29899 _ACEOF
29901 # Transform confdefs.h into an awk script `defines.awk', embedded as
29902 # here-document in config.status, that substitutes the proper values into
29903 # config.h.in to produce config.h.
29905 # Create a delimiter string that does not exist in confdefs.h, to ease
29906 # handling of long lines.
29907 ac_delim='%!_!# '
29908 for ac_last_try in false false :; do
29909 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29910 if test -z "$ac_t"; then
29911 break
29912 elif $ac_last_try; then
29913 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29914 else
29915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29917 done
29919 # For the awk script, D is an array of macro values keyed by name,
29920 # likewise P contains macro parameters if any. Preserve backslash
29921 # newline sequences.
29923 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29924 sed -n '
29925 s/.\{148\}/&'"$ac_delim"'/g
29926 t rset
29927 :rset
29928 s/^[ ]*#[ ]*define[ ][ ]*/ /
29929 t def
29931 :def
29932 s/\\$//
29933 t bsnl
29934 s/["\\]/\\&/g
29935 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29936 D["\1"]=" \3"/p
29937 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29939 :bsnl
29940 s/["\\]/\\&/g
29941 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29942 D["\1"]=" \3\\\\\\n"\\/p
29943 t cont
29944 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29945 t cont
29947 :cont
29949 s/.\{148\}/&'"$ac_delim"'/g
29950 t clear
29951 :clear
29952 s/\\$//
29953 t bsnlc
29954 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29956 :bsnlc
29957 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29958 b cont
29959 ' <confdefs.h | sed '
29960 s/'"$ac_delim"'/"\\\
29961 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29964 for (key in D) D_is_set[key] = 1
29965 FS = "\a"
29967 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29968 line = \$ 0
29969 split(line, arg, " ")
29970 if (arg[1] == "#") {
29971 defundef = arg[2]
29972 mac1 = arg[3]
29973 } else {
29974 defundef = substr(arg[1], 2)
29975 mac1 = arg[2]
29977 split(mac1, mac2, "(") #)
29978 macro = mac2[1]
29979 prefix = substr(line, 1, index(line, defundef) - 1)
29980 if (D_is_set[macro]) {
29981 # Preserve the white space surrounding the "#".
29982 print prefix "define", macro P[macro] D[macro]
29983 next
29984 } else {
29985 # Replace #undef with comments. This is necessary, for example,
29986 # in the case of _POSIX_SOURCE, which is predefined and required
29987 # on some systems where configure will not decide to define it.
29988 if (defundef == "undef") {
29989 print "/*", prefix defundef, macro, "*/"
29990 next
29994 { print }
29995 _ACAWK
29996 _ACEOF
29997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29998 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29999 fi # test -n "$CONFIG_HEADERS"
30002 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30003 shift
30004 for ac_tag
30006 case $ac_tag in
30007 :[FHLC]) ac_mode=$ac_tag; continue;;
30008 esac
30009 case $ac_mode$ac_tag in
30010 :[FHL]*:*);;
30011 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30012 :[FH]-) ac_tag=-:-;;
30013 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30014 esac
30015 ac_save_IFS=$IFS
30016 IFS=:
30017 set x $ac_tag
30018 IFS=$ac_save_IFS
30019 shift
30020 ac_file=$1
30021 shift
30023 case $ac_mode in
30024 :L) ac_source=$1;;
30025 :[FH])
30026 ac_file_inputs=
30027 for ac_f
30029 case $ac_f in
30030 -) ac_f="$tmp/stdin";;
30031 *) # Look for the file first in the build tree, then in the source tree
30032 # (if the path is not absolute). The absolute path cannot be DOS-style,
30033 # because $ac_f cannot contain `:'.
30034 test -f "$ac_f" ||
30035 case $ac_f in
30036 [\\/$]*) false;;
30037 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30038 esac ||
30039 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30040 esac
30041 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30042 as_fn_append ac_file_inputs " '$ac_f'"
30043 done
30045 # Let's still pretend it is `configure' which instantiates (i.e., don't
30046 # use $as_me), people would be surprised to read:
30047 # /* config.h. Generated by config.status. */
30048 configure_input='Generated from '`
30049 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30050 `' by configure.'
30051 if test x"$ac_file" != x-; then
30052 configure_input="$ac_file. $configure_input"
30053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30054 $as_echo "$as_me: creating $ac_file" >&6;}
30056 # Neutralize special characters interpreted by sed in replacement strings.
30057 case $configure_input in #(
30058 *\&* | *\|* | *\\* )
30059 ac_sed_conf_input=`$as_echo "$configure_input" |
30060 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30061 *) ac_sed_conf_input=$configure_input;;
30062 esac
30064 case $ac_tag in
30065 *:-:* | *:-) cat >"$tmp/stdin" \
30066 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30067 esac
30069 esac
30071 ac_dir=`$as_dirname -- "$ac_file" ||
30072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30073 X"$ac_file" : 'X\(//\)[^/]' \| \
30074 X"$ac_file" : 'X\(//\)$' \| \
30075 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30076 $as_echo X"$ac_file" |
30077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30078 s//\1/
30081 /^X\(\/\/\)[^/].*/{
30082 s//\1/
30085 /^X\(\/\/\)$/{
30086 s//\1/
30089 /^X\(\/\).*/{
30090 s//\1/
30093 s/.*/./; q'`
30094 as_dir="$ac_dir"; as_fn_mkdir_p
30095 ac_builddir=.
30097 case "$ac_dir" in
30098 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30100 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30101 # A ".." for each directory in $ac_dir_suffix.
30102 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30103 case $ac_top_builddir_sub in
30104 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30105 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30106 esac ;;
30107 esac
30108 ac_abs_top_builddir=$ac_pwd
30109 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30110 # for backward compatibility:
30111 ac_top_builddir=$ac_top_build_prefix
30113 case $srcdir in
30114 .) # We are building in place.
30115 ac_srcdir=.
30116 ac_top_srcdir=$ac_top_builddir_sub
30117 ac_abs_top_srcdir=$ac_pwd ;;
30118 [\\/]* | ?:[\\/]* ) # Absolute name.
30119 ac_srcdir=$srcdir$ac_dir_suffix;
30120 ac_top_srcdir=$srcdir
30121 ac_abs_top_srcdir=$srcdir ;;
30122 *) # Relative name.
30123 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30124 ac_top_srcdir=$ac_top_build_prefix$srcdir
30125 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30126 esac
30127 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30130 case $ac_mode in
30133 # CONFIG_FILE
30136 _ACEOF
30138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30139 # If the template does not know about datarootdir, expand it.
30140 # FIXME: This hack should be removed a few years after 2.60.
30141 ac_datarootdir_hack=; ac_datarootdir_seen=
30142 ac_sed_dataroot='
30143 /datarootdir/ {
30147 /@datadir@/p
30148 /@docdir@/p
30149 /@infodir@/p
30150 /@localedir@/p
30151 /@mandir@/p'
30152 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30153 *datarootdir*) ac_datarootdir_seen=yes;;
30154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30156 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30157 _ACEOF
30158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30159 ac_datarootdir_hack='
30160 s&@datadir@&$datadir&g
30161 s&@docdir@&$docdir&g
30162 s&@infodir@&$infodir&g
30163 s&@localedir@&$localedir&g
30164 s&@mandir@&$mandir&g
30165 s&\\\${datarootdir}&$datarootdir&g' ;;
30166 esac
30167 _ACEOF
30169 # Neutralize VPATH when `$srcdir' = `.'.
30170 # Shell code in configure.ac might set extrasub.
30171 # FIXME: do we really want to maintain this feature?
30172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30173 ac_sed_extra="$ac_vpsub
30174 $extrasub
30175 _ACEOF
30176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30179 s|@configure_input@|$ac_sed_conf_input|;t t
30180 s&@top_builddir@&$ac_top_builddir_sub&;t t
30181 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30182 s&@srcdir@&$ac_srcdir&;t t
30183 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30184 s&@top_srcdir@&$ac_top_srcdir&;t t
30185 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30186 s&@builddir@&$ac_builddir&;t t
30187 s&@abs_builddir@&$ac_abs_builddir&;t t
30188 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30189 $ac_datarootdir_hack
30191 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30192 if $ac_cs_awk_getline; then
30193 $AWK -f "$tmp/subs.awk"
30194 else
30195 $AWK -f "$tmp/subs.awk" | $SHELL
30196 fi >$tmp/out \
30197 || as_fn_error "could not create $ac_file" "$LINENO" 5
30199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30203 which seems to be undefined. Please make sure it is defined." >&5
30204 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30205 which seems to be undefined. Please make sure it is defined." >&2;}
30207 rm -f "$tmp/stdin"
30208 case $ac_file in
30209 -) cat "$tmp/out" && rm -f "$tmp/out";;
30210 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30211 esac \
30212 || as_fn_error "could not create $ac_file" "$LINENO" 5
30216 # CONFIG_HEADER
30218 if test x"$ac_file" != x-; then
30220 $as_echo "/* $configure_input */" \
30221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30222 } >"$tmp/config.h" \
30223 || as_fn_error "could not create $ac_file" "$LINENO" 5
30224 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30226 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30227 else
30228 rm -f "$ac_file"
30229 mv "$tmp/config.h" "$ac_file" \
30230 || as_fn_error "could not create $ac_file" "$LINENO" 5
30232 else
30233 $as_echo "/* $configure_input */" \
30234 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30235 || as_fn_error "could not create -" "$LINENO" 5
30240 # CONFIG_LINK
30243 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30245 else
30246 # Prefer the file from the source tree if names are identical.
30247 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30248 ac_source=$srcdir/$ac_source
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30252 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30254 if test ! -r "$ac_source"; then
30255 as_fn_error "$ac_source: file not found" "$LINENO" 5
30257 rm -f "$ac_file"
30259 # Try a relative symlink, then a hard link, then a copy.
30260 case $srcdir in
30261 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30262 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30263 esac
30264 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30265 ln "$ac_source" "$ac_file" 2>/dev/null ||
30266 cp -p "$ac_source" "$ac_file" ||
30267 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30271 $as_echo "$as_me: executing $ac_file commands" >&6;}
30273 esac
30276 case $ac_file$ac_mode in
30277 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30278 "gccdepdir":C)
30279 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30280 for lang in $subdirs c-family common
30282 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30283 done ;;
30284 "as":F) chmod +x as ;;
30285 "collect-ld":F) chmod +x collect-ld ;;
30286 "nm":F) chmod +x nm ;;
30287 "default":C)
30288 case ${CONFIG_HEADERS} in
30289 *auto-host.h:config.in*)
30290 echo > cstamp-h ;;
30291 esac
30292 # Make sure all the subdirs exist.
30293 for d in $subdirs doc build common c-family
30295 test -d $d || mkdir $d
30296 done
30299 esac
30300 done # for ac_tag
30303 as_fn_exit 0
30304 _ACEOF
30305 ac_clean_files=$ac_clean_files_save
30307 test $ac_write_fail = 0 ||
30308 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30311 # configure is writing to config.log, and then calls config.status.
30312 # config.status does its own redirection, appending to config.log.
30313 # Unfortunately, on DOS this fails, as config.log is still kept open
30314 # by configure, so config.status won't be able to write to it; its
30315 # output is simply discarded. So we exec the FD to /dev/null,
30316 # effectively closing config.log, so it can be properly (re)opened and
30317 # appended to by config.status. When coming back to configure, we
30318 # need to make the FD available again.
30319 if test "$no_create" != yes; then
30320 ac_cs_success=:
30321 ac_config_status_args=
30322 test "$silent" = yes &&
30323 ac_config_status_args="$ac_config_status_args --quiet"
30324 exec 5>/dev/null
30325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30326 exec 5>>config.log
30327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30328 # would make configure fail if this is the last instruction.
30329 $ac_cs_success || as_fn_exit $?
30331 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30333 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}