2016-10-06 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / configure
blob80fc5c71a0e4e90b25f88588487047910d4c7ce3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 SYSTEM_HEADER_DIR
724 CROSS
725 CATOBJEXT
726 GENCAT
727 INSTOBJEXT
728 DATADIRNAME
729 CATALOGS
730 POSUB
731 GMSGFMT
732 XGETTEXT
733 INCINTL
734 LIBINTL_DEP
735 LIBINTL
736 USE_NLS
737 extra_opt_files
738 extra_modes_file
739 NATIVE_SYSTEM_HEADER_DIR
740 objext
741 manext
742 LIBICONV_DEP
743 LTLIBICONV
744 LIBICONV
745 LDEXP_LIB
746 EXTRA_GCC_LIBS
747 GNAT_LIBEXC
748 COLLECT2_LIBS
749 CXXDEPMODE
750 DEPDIR
751 am__leading_dot
752 doc_build_sys
755 BISON
756 FLEX
757 GENERATED_MANPAGES
758 BUILD_INFO
759 MAKEINFO
760 have_mktemp_command
761 make_compare_target
762 INSTALL_DATA
763 INSTALL_PROGRAM
764 INSTALL
765 ranlib_flags
766 RANLIB
768 LN_S
770 SET_MAKE
771 accel_dir_suffix
772 real_target_noncanonical
773 enable_as_accelerator
774 REPORT_BUGS_TEXI
775 REPORT_BUGS_TO
776 PKGVERSION
777 CONFIGURE_SPECS
778 enable_shared
779 enable_fixed_point
780 enable_decimal_float
781 with_float
782 with_cpu
783 enable_multiarch
784 enable_multilib
785 coverage_flags
786 valgrind_command
787 valgrind_path_defines
788 valgrind_path
789 TREECHECKING
790 nocommon_flag
791 noexception_flags
792 warn_cxxflags
793 warn_cflags
794 c_strict_warn
795 strict_warn
796 c_loose_warn
797 loose_warn
798 aliasing_flags
800 EGREP
801 GREP
802 CXXCPP
803 PICFLAG_FOR_TARGET
804 GNATMAKE
805 GNATBIND
806 ac_ct_CXX
807 CXXFLAGS
809 OBJEXT
810 EXEEXT
811 ac_ct_CC
812 CPPFLAGS
813 LDFLAGS
814 CFLAGS
816 GENINSRC
817 CROSS_SYSTEM_HEADER_DIR
818 TARGET_SYSTEM_ROOT_DEFINE
819 TARGET_SYSTEM_ROOT
820 SYSROOT_CFLAGS_FOR_TARGET
821 target_subdir
822 host_subdir
823 build_subdir
824 build_libsubdir
825 target_noncanonical
826 host_noncanonical
827 target_os
828 target_vendor
829 target_cpu
830 target
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files='option_includes
878 language_hooks'
879 ac_user_opts='
880 enable_option_checking
881 with_build_libsubdir
882 with_local_prefix
883 with_native_system_header_dir
884 with_build_sysroot
885 with_sysroot
886 with_gxx_include_dir
887 with_cpp_install_dir
888 enable_generated_files_in_srcdir
889 with_gnu_ld
890 with_ld
891 with_demangler_in_ld
892 with_gnu_as
893 with_as
894 enable_largefile
895 enable_build_format_warnings
896 enable_werror_always
897 enable_checking
898 enable_coverage
899 enable_gather_detailed_mem_stats
900 enable_valgrind_annotations
901 with_stabs
902 enable_multilib
903 enable_multiarch
904 enable___cxa_atexit
905 enable_decimal_float
906 enable_fixed_point
907 enable_threads
908 enable_tls
909 enable_vtable_verify
910 enable_objc_gc
911 with_dwarf2
912 enable_shared
913 with_specs
914 with_pkgversion
915 with_bugurl
916 enable_languages
917 with_multilib_list
918 enable_rpath
919 with_libiconv_prefix
920 enable_sjlj_exceptions
921 enable_secureplt
922 enable_leading_mingw64_underscores
923 enable_cld
924 enable_frame_pointer
925 enable_win32_registry
926 enable_static
927 with_pic
928 enable_fast_install
929 enable_libtool_lock
930 enable_ld
931 enable_gold
932 with_plugin_ld
933 enable_gnu_indirect_function
934 enable_initfini_array
935 enable_comdat
936 enable_fix_cortex_a53_835769
937 enable_fix_cortex_a53_843419
938 with_glibc_version
939 enable_gnu_unique_object
940 enable_linker_build_id
941 enable_default_ssp
942 with_long_double_128
943 with_gc
944 with_system_zlib
945 enable_maintainer_mode
946 enable_link_mutex
947 enable_version_specific_runtime_libs
948 enable_plugin
949 enable_host_shared
950 enable_libquadmath_support
951 with_linker_hash_style
952 with_diagnostics_color
953 enable_default_pie
955 ac_precious_vars='build_alias
956 host_alias
957 target_alias
959 CFLAGS
960 LDFLAGS
961 LIBS
962 CPPFLAGS
964 CXXFLAGS
966 CXXCPP
968 GMPLIBS
969 GMPINC
970 ISLLIBS
971 ISLINC'
974 # Initialize some variables set by options.
975 ac_init_help=
976 ac_init_version=false
977 ac_unrecognized_opts=
978 ac_unrecognized_sep=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
981 cache_file=/dev/null
982 exec_prefix=NONE
983 no_create=
984 no_recursion=
985 prefix=NONE
986 program_prefix=NONE
987 program_suffix=NONE
988 program_transform_name=s,x,x,
989 silent=
990 site=
991 srcdir=
992 verbose=
993 x_includes=NONE
994 x_libraries=NONE
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir='${exec_prefix}/bin'
1003 sbindir='${exec_prefix}/sbin'
1004 libexecdir='${exec_prefix}/libexec'
1005 datarootdir='${prefix}/share'
1006 datadir='${datarootdir}'
1007 sysconfdir='${prefix}/etc'
1008 sharedstatedir='${prefix}/com'
1009 localstatedir='${prefix}/var'
1010 includedir='${prefix}/include'
1011 oldincludedir='/usr/include'
1012 docdir='${datarootdir}/doc/${PACKAGE}'
1013 infodir='${datarootdir}/info'
1014 htmldir='${docdir}'
1015 dvidir='${docdir}'
1016 pdfdir='${docdir}'
1017 psdir='${docdir}'
1018 libdir='${exec_prefix}/lib'
1019 localedir='${datarootdir}/locale'
1020 mandir='${datarootdir}/man'
1022 ac_prev=
1023 ac_dashdash=
1024 for ac_option
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1042 ac_dashdash=yes ;;
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1076 -disable-* | --disable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error "invalid feature name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=\$ac_optarg ;;
1118 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120 | --exec | --exe | --ex)
1121 ac_prev=exec_prefix ;;
1122 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124 | --exec=* | --exe=* | --ex=*)
1125 exec_prefix=$ac_optarg ;;
1127 -gas | --gas | --ga | --g)
1128 # Obsolete; use --with-gas.
1129 with_gas=yes ;;
1131 -help | --help | --hel | --he | -h)
1132 ac_init_help=long ;;
1133 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134 ac_init_help=recursive ;;
1135 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136 ac_init_help=short ;;
1138 -host | --host | --hos | --ho)
1139 ac_prev=host_alias ;;
1140 -host=* | --host=* | --hos=* | --ho=*)
1141 host_alias=$ac_optarg ;;
1143 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144 ac_prev=htmldir ;;
1145 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146 | --ht=*)
1147 htmldir=$ac_optarg ;;
1149 -includedir | --includedir | --includedi | --included | --include \
1150 | --includ | --inclu | --incl | --inc)
1151 ac_prev=includedir ;;
1152 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153 | --includ=* | --inclu=* | --incl=* | --inc=*)
1154 includedir=$ac_optarg ;;
1156 -infodir | --infodir | --infodi | --infod | --info | --inf)
1157 ac_prev=infodir ;;
1158 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159 infodir=$ac_optarg ;;
1161 -libdir | --libdir | --libdi | --libd)
1162 ac_prev=libdir ;;
1163 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164 libdir=$ac_optarg ;;
1166 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167 | --libexe | --libex | --libe)
1168 ac_prev=libexecdir ;;
1169 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170 | --libexe=* | --libex=* | --libe=*)
1171 libexecdir=$ac_optarg ;;
1173 -localedir | --localedir | --localedi | --localed | --locale)
1174 ac_prev=localedir ;;
1175 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176 localedir=$ac_optarg ;;
1178 -localstatedir | --localstatedir | --localstatedi | --localstated \
1179 | --localstate | --localstat | --localsta | --localst | --locals)
1180 ac_prev=localstatedir ;;
1181 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183 localstatedir=$ac_optarg ;;
1185 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186 ac_prev=mandir ;;
1187 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188 mandir=$ac_optarg ;;
1190 -nfp | --nfp | --nf)
1191 # Obsolete; use --without-fp.
1192 with_fp=no ;;
1194 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195 | --no-cr | --no-c | -n)
1196 no_create=yes ;;
1198 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200 no_recursion=yes ;;
1202 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204 | --oldin | --oldi | --old | --ol | --o)
1205 ac_prev=oldincludedir ;;
1206 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209 oldincludedir=$ac_optarg ;;
1211 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212 ac_prev=prefix ;;
1213 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214 prefix=$ac_optarg ;;
1216 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217 | --program-pre | --program-pr | --program-p)
1218 ac_prev=program_prefix ;;
1219 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221 program_prefix=$ac_optarg ;;
1223 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224 | --program-suf | --program-su | --program-s)
1225 ac_prev=program_suffix ;;
1226 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228 program_suffix=$ac_optarg ;;
1230 -program-transform-name | --program-transform-name \
1231 | --program-transform-nam | --program-transform-na \
1232 | --program-transform-n | --program-transform- \
1233 | --program-transform | --program-transfor \
1234 | --program-transfo | --program-transf \
1235 | --program-trans | --program-tran \
1236 | --progr-tra | --program-tr | --program-t)
1237 ac_prev=program_transform_name ;;
1238 -program-transform-name=* | --program-transform-name=* \
1239 | --program-transform-nam=* | --program-transform-na=* \
1240 | --program-transform-n=* | --program-transform-=* \
1241 | --program-transform=* | --program-transfor=* \
1242 | --program-transfo=* | --program-transf=* \
1243 | --program-trans=* | --program-tran=* \
1244 | --progr-tra=* | --program-tr=* | --program-t=*)
1245 program_transform_name=$ac_optarg ;;
1247 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248 ac_prev=pdfdir ;;
1249 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250 pdfdir=$ac_optarg ;;
1252 -psdir | --psdir | --psdi | --psd | --ps)
1253 ac_prev=psdir ;;
1254 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255 psdir=$ac_optarg ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 silent=yes ;;
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262 ac_prev=sbindir ;;
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264 | --sbi=* | --sb=*)
1265 sbindir=$ac_optarg ;;
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1270 | --sha | --sh)
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275 | --sha=* | --sh=*)
1276 sharedstatedir=$ac_optarg ;;
1278 -site | --site | --sit)
1279 ac_prev=site ;;
1280 -site=* | --site=* | --sit=*)
1281 site=$ac_optarg ;;
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284 ac_prev=srcdir ;;
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 verbose=yes ;;
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1306 -with-* | --with-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=\$ac_optarg ;;
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) as_fn_error "unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1366 esac
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378 esac
1379 done
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error "missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 esac
1394 # Check all directory arguments for consistency.
1395 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1402 case $ac_val in
1403 */ )
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1406 esac
1407 # Be sure to have absolute directory names.
1408 case $ac_val in
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411 esac
1412 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1413 done
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1418 build=$build_alias
1419 host=$host_alias
1420 target=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1433 ac_tool_prefix=
1434 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436 test "$silent" = yes && exec 6>/dev/null
1439 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di=`ls -di .` &&
1441 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error "working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error "pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1465 /^X\(\/\/\)$/{
1466 s//\1/
1469 /^X\(\/\).*/{
1470 s//\1/
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1478 else
1479 ac_srcdir_defaulted=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 ac_abs_confdir=`(
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1488 pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513 \`configure' configures this package to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1522 Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 [PREFIX]
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1566 _ACEOF
1568 cat <<\_ACEOF
1570 Program names:
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575 System types:
1576 --build=BUILD configure for building on BUILD [guessed]
1577 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 --target=TARGET configure for building compilers for TARGET [HOST]
1579 _ACEOF
1582 if test -n "$ac_init_help"; then
1584 cat <<\_ACEOF
1586 Optional Features:
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-generated-files-in-srcdir
1591 put copies of generated files in source dir intended
1592 for creating source tarballs for users without
1593 texinfo bison or flex
1594 --disable-largefile omit support for large files
1595 --disable-build-format-warnings
1596 don't use -Wformat while building GCC
1597 --enable-werror-always enable -Werror despite compiler version
1598 --enable-checking[=LIST]
1599 enable expensive run-time checks. With LIST, enable
1600 only specific categories of checks. Categories are:
1601 yes,no,all,none,release. Flags are:
1602 assert,df,extra,fold,gc,gcac,gimple,misc,
1603 rtlflag,rtl,runtime,tree,valgrind,types
1604 --enable-coverage[=LEVEL]
1605 enable compiler's code coverage collection. Use to
1606 measure compiler performance and locate unused parts
1607 of the compiler. With LEVEL, specify optimization.
1608 Values are opt, noopt, default is noopt
1609 --enable-gather-detailed-mem-stats
1610 enable detailed memory allocation stats gathering
1611 --enable-valgrind-annotations
1612 enable valgrind runtime interaction
1613 --enable-multilib enable library support for multiple ABIs
1614 --enable-multiarch enable support for multiarch paths
1615 --enable-__cxa_atexit enable __cxa_atexit for C++
1616 --enable-decimal-float={no,yes,bid,dpd}
1617 enable decimal float extension to C. Selecting 'bid'
1618 or 'dpd' choses which decimal floating point format
1619 to use
1620 --enable-fixed-point enable fixed-point arithmetic extension to C
1621 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1622 package
1623 --enable-tls enable or disable generation of tls code overriding
1624 the assembler check for tls support
1625 --enable-vtable-verify enable vtable verification feature
1626 --enable-objc-gc enable the use of Boehm's garbage collector with the
1627 GNU Objective-C runtime
1628 --disable-shared don't provide a shared libgcc
1629 --enable-languages=LIST specify which front-ends to build
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-sjlj-exceptions
1632 arrange to use setjmp/longjmp exception handling
1633 --enable-secureplt enable -msecure-plt by default for PowerPC
1634 --enable-leading-mingw64-underscores
1635 enable leading underscores on 64 bit mingw targets
1636 --enable-cld enable -mcld by default for 32bit x86
1637 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1639 --disable-win32-registry
1640 disable lookup of installation paths in the Registry
1641 on Windows hosts
1642 --enable-win32-registry enable registry lookup (default)
1643 --enable-win32-registry=KEY
1644 use KEY instead of GCC version as the last portion
1645 of the registry key
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=yes]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1652 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1653 --enable-gnu-indirect-function
1654 enable the use of the @gnu_indirect_function to
1655 glibc systems
1656 --enable-initfini-array use .init_array/.fini_array sections
1657 --enable-comdat enable COMDAT group support
1659 --enable-fix-cortex-a53-835769
1660 enable workaround for AArch64 Cortex-A53 erratum
1661 835769 by default
1662 --disable-fix-cortex-a53-835769
1663 disable workaround for AArch64 Cortex-A53 erratum
1664 835769 by default
1667 --enable-fix-cortex-a53-843419
1668 enable workaround for AArch64 Cortex-A53 erratum
1669 843419 by default
1670 --disable-fix-cortex-a53-843419
1671 disable workaround for AArch64 Cortex-A53 erratum
1672 843419 by default
1674 --enable-gnu-unique-object
1675 enable the use of the @gnu_unique_object ELF
1676 extension on glibc systems
1677 --enable-linker-build-id
1678 compiler will always pass --build-id to linker
1679 --enable-default-ssp enable Stack Smashing Protection as default
1680 --enable-maintainer-mode
1681 enable make rules and dependencies not useful (and
1682 sometimes confusing) to the casual installer
1683 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1684 thrashing on the build machine
1685 --enable-version-specific-runtime-libs
1686 specify that runtime libraries should be installed
1687 in a compiler-specific directory
1688 --enable-plugin enable plugin support
1689 --enable-host-shared build host code as shared libraries
1690 --disable-libquadmath-support
1691 disable libquadmath support for Fortran
1692 --enable-default-pie enable Position Independent Executable as default
1694 Optional Packages:
1695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1697 --with-build-libsubdir=DIR Directory where to find libraries for build system
1698 --with-local-prefix=DIR specifies directory to put local include
1699 --with-native-system-header-dir=dir
1700 use dir as the directory to look for standard
1701 system header files in. Defaults to /usr/include.
1702 --with-build-sysroot=sysroot
1703 use sysroot as the system root during the build
1704 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1705 --with-gxx-include-dir=DIR
1706 specifies directory to put g++ header files
1707 --with-cpp-install-dir=DIR
1708 install the user visible C preprocessor in DIR
1709 (relative to PREFIX) as well as PREFIX/bin
1710 --with-gnu-ld arrange to work with GNU ld
1711 --with-ld arrange to use the specified ld (full pathname)
1712 --with-demangler-in-ld try to use demangler in GNU ld
1713 --with-gnu-as arrange to work with GNU as
1714 --with-as arrange to use the specified as (full pathname)
1715 --with-stabs arrange to use stabs instead of host debug format
1716 --with-dwarf2 force the default debug format to be DWARF 2
1717 --with-specs=SPECS add SPECS to driver command-line processing
1718 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1719 --with-bugurl=URL Direct users to URL to report a bug
1720 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1721 --with-gnu-ld assume the C compiler uses GNU ld default=no
1722 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1723 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1725 both]
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1727 --with-plugin-ld=[ARG] specify the plugin linker
1728 --with-glibc-version=M.N
1729 assume GCC used with glibc version M.N or later
1730 --with-long-double-128 use 128-bit long double by default
1731 --with-gc={page,zone} this option is not supported anymore. It used to
1732 choose the garbage collection mechanism to use with
1733 the compiler
1734 --with-system-zlib use installed libz
1735 --with-linker-hash-style={sysv,gnu,both}
1736 specify the linker hash style
1737 --with-diagnostics-color={never,auto,auto-if-env,always}
1738 specify the default of -fdiagnostics-color option
1739 auto-if-env stands for -fdiagnostics-color=auto if
1740 GCC_COLOR environment variable is present and
1741 -fdiagnostics-color=never otherwise
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1753 CXXCPP C++ preprocessor
1754 CPP C preprocessor
1755 GMPLIBS How to link GMP
1756 GMPINC How to find GMP include files
1757 ISLLIBS How to link isl
1758 ISLINC How to find isl include files
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1763 Report bugs to the package provider.
1764 _ACEOF
1765 ac_status=$?
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1773 continue
1774 ac_builddir=.
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1792 case $srcdir in
1793 .) # We are building in place.
1794 ac_srcdir=.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1801 *) # Relative name.
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1811 echo &&
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1816 else
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 fi || ac_status=$?
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1820 done
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825 cat <<\_ACEOF
1826 configure
1827 generated by GNU Autoconf 2.64
1829 Copyright (C) 2009 Free Software Foundation, Inc.
1830 This configure script is free software; the Free Software Foundation
1831 gives unlimited permission to copy, distribute and modify it.
1832 _ACEOF
1833 exit
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_c_try_compile
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.$ac_objext; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=1
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
1914 } # ac_fn_cxx_try_compile
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1940 }; then :
1941 ac_retval=0
1942 else
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=1
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 return $ac_retval
1951 } # ac_fn_cxx_try_cpp
1953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # ---------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1957 # accordingly.
1958 ac_fn_cxx_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 else
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1977 #include <$2>
1978 _ACEOF
1979 if ac_fn_cxx_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1981 else
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 #include <$2>
1994 _ACEOF
1995 if ac_fn_cxx_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1997 else
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2006 yes:no: )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 no:yes:* )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 esac
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 eval "$3=\$ac_header_compiler"
2032 eval ac_res=\$$3
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_cxx_check_header_mongrel
2040 # ac_fn_cxx_try_run LINENO
2041 # ------------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_cxx_try_run ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2055 ac_status=$?
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2068 ac_retval=0
2069 else
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 return $ac_retval
2080 } # ac_fn_cxx_try_run
2082 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_cxx_check_header_compile ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2093 else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2100 eval "$3=yes"
2101 else
2102 eval "$3=no"
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 eval ac_res=\$$3
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_cxx_check_header_compile
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2116 ac_fn_c_try_cpp ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2120 case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123 esac
2124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev/null && {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 }; then :
2138 ac_retval=0
2139 else
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 ac_retval=1
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 return $ac_retval
2148 } # ac_fn_c_try_cpp
2150 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2151 # ----------------------------------------------
2152 # Tries to find the compile-time value of EXPR in a program that includes
2153 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2154 # computed
2155 ac_fn_cxx_compute_int ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 if test "$cross_compiling" = yes; then
2159 # Depending upon the size, compute the lo and hi bounds.
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 static int test_array [1 - 2 * !(($2) >= 0)];
2167 test_array [0] = 0
2170 return 0;
2172 _ACEOF
2173 if ac_fn_cxx_try_compile "$LINENO"; then :
2174 ac_lo=0 ac_mid=0
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 main ()
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183 test_array [0] = 0
2186 return 0;
2188 _ACEOF
2189 if ac_fn_cxx_try_compile "$LINENO"; then :
2190 ac_hi=$ac_mid; break
2191 else
2192 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2193 if test $ac_lo -le $ac_mid; then
2194 ac_lo= ac_hi=
2195 break
2197 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 done
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2206 main ()
2208 static int test_array [1 - 2 * !(($2) < 0)];
2209 test_array [0] = 0
2212 return 0;
2214 _ACEOF
2215 if ac_fn_cxx_try_compile "$LINENO"; then :
2216 ac_hi=-1 ac_mid=-1
2217 while :; do
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2222 main ()
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2225 test_array [0] = 0
2228 return 0;
2230 _ACEOF
2231 if ac_fn_cxx_try_compile "$LINENO"; then :
2232 ac_lo=$ac_mid; break
2233 else
2234 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2235 if test $ac_mid -le $ac_hi; then
2236 ac_lo= ac_hi=
2237 break
2239 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 done
2243 else
2244 ac_lo= ac_hi=
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 # Binary search between lo and hi bounds.
2250 while test "x$ac_lo" != "x$ac_hi"; do
2251 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2256 main ()
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2259 test_array [0] = 0
2262 return 0;
2264 _ACEOF
2265 if ac_fn_cxx_try_compile "$LINENO"; then :
2266 ac_hi=$ac_mid
2267 else
2268 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 done
2272 case $ac_lo in #((
2273 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274 '') ac_retval=1 ;;
2275 esac
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2280 static long int longval () { return $2; }
2281 static unsigned long int ulongval () { return $2; }
2282 #include <stdio.h>
2283 #include <stdlib.h>
2285 main ()
2288 FILE *f = fopen ("conftest.val", "w");
2289 if (! f)
2290 return 1;
2291 if (($2) < 0)
2293 long int i = longval ();
2294 if (i != ($2))
2295 return 1;
2296 fprintf (f, "%ld", i);
2298 else
2300 unsigned long int i = ulongval ();
2301 if (i != ($2))
2302 return 1;
2303 fprintf (f, "%lu", i);
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2310 return 0;
2312 _ACEOF
2313 if ac_fn_cxx_try_run "$LINENO"; then :
2314 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2315 else
2316 ac_retval=1
2318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2319 conftest.$ac_objext conftest.beam conftest.$ac_ext
2320 rm -f conftest.val
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2324 return $ac_retval
2326 } # ac_fn_cxx_compute_int
2328 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_cxx_check_type ()
2334 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 eval "$3=no"
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2345 main ()
2347 if (sizeof ($2))
2348 return 0;
2350 return 0;
2352 _ACEOF
2353 if ac_fn_cxx_try_compile "$LINENO"; then :
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2358 main ()
2360 if (sizeof (($2)))
2361 return 0;
2363 return 0;
2365 _ACEOF
2366 if ac_fn_cxx_try_compile "$LINENO"; then :
2368 else
2369 eval "$3=yes"
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_cxx_check_type
2382 # ac_fn_c_find_intX_t LINENO BITS VAR
2383 # -----------------------------------
2384 # Finds a signed integer type with width BITS, setting cache variable VAR
2385 # accordingly.
2386 ac_fn_c_find_intX_t ()
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2390 $as_echo_n "checking for int$2_t... " >&6; }
2391 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2393 else
2394 eval "$3=no"
2395 for ac_type in int$2_t 'int' 'long int' \
2396 'long long int' 'short int' 'signed char'; do
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2401 main ()
2403 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2404 test_array [0] = 0
2407 return 0;
2409 _ACEOF
2410 if ac_fn_cxx_try_compile "$LINENO"; then :
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2415 main ()
2417 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2418 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2419 test_array [0] = 0
2422 return 0;
2424 _ACEOF
2425 if ac_fn_cxx_try_compile "$LINENO"; then :
2427 else
2428 case $ac_type in #(
2429 int$2_t) :
2430 eval "$3=yes" ;; #(
2431 *) :
2432 eval "$3=\$ac_type" ;;
2433 esac
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 eval as_val=\$$3
2439 if test "x$as_val" = x""no; then :
2441 else
2442 break
2444 done
2446 eval ac_res=\$$3
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 } # ac_fn_c_find_intX_t
2453 # ac_fn_cxx_try_link LINENO
2454 # -------------------------
2455 # Try to link conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_link ()
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 rm -f conftest.$ac_objext conftest$ac_exeext
2460 if { { ac_try="$ac_link"
2461 case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2464 esac
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2468 ac_status=$?
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2481 }; then :
2482 ac_retval=0
2483 else
2484 $as_echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 ac_retval=1
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2495 return $ac_retval
2497 } # ac_fn_cxx_try_link
2499 # ac_fn_c_find_uintX_t LINENO BITS VAR
2500 # ------------------------------------
2501 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2502 # accordingly.
2503 ac_fn_c_find_uintX_t ()
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2507 $as_echo_n "checking for uint$2_t... " >&6; }
2508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2510 else
2511 eval "$3=no"
2512 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2513 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2518 main ()
2520 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2521 test_array [0] = 0
2524 return 0;
2526 _ACEOF
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2528 case $ac_type in #(
2529 uint$2_t) :
2530 eval "$3=yes" ;; #(
2531 *) :
2532 eval "$3=\$ac_type" ;;
2533 esac
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 eval as_val=\$$3
2537 if test "x$as_val" = x""no; then :
2539 else
2540 break
2542 done
2544 eval ac_res=\$$3
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_c_find_uintX_t
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2564 #include <$2>
2565 _ACEOF
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2567 eval "$3=yes"
2568 else
2569 eval "$3=no"
2571 rm -f conftest.err conftest.$ac_ext
2573 eval ac_res=\$$3
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_cxx_check_header_preproc
2580 # ac_fn_cxx_check_func LINENO FUNC VAR
2581 # ------------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_cxx_check_func ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2602 #ifdef __STDC__
2603 # include <limits.h>
2604 #else
2605 # include <assert.h>
2606 #endif
2608 #undef $2
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2613 #ifdef __cplusplus
2614 extern "C"
2615 #endif
2616 char $2 ();
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2621 choke me
2622 #endif
2625 main ()
2627 return $2 ();
2629 return 0;
2631 _ACEOF
2632 if ac_fn_cxx_try_link "$LINENO"; then :
2633 eval "$3=yes"
2634 else
2635 eval "$3=no"
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2640 eval ac_res=\$$3
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 } # ac_fn_cxx_check_func
2647 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2648 # --------------------------------------
2649 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2650 ac_fn_cxx_check_decl ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2664 main ()
2666 #ifndef $as_decl_name
2667 #ifdef __cplusplus
2668 (void) $as_decl_use;
2669 #else
2670 (void) $as_decl_name;
2671 #endif
2672 #endif
2675 return 0;
2677 _ACEOF
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 eval "$3=yes"
2680 else
2681 eval "$3=no"
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 eval ac_res=\$$3
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 } # ac_fn_cxx_check_decl
2692 # ac_fn_c_try_link LINENO
2693 # -----------------------
2694 # Try to link conftest.$ac_ext, and return whether this succeeded.
2695 ac_fn_c_try_link ()
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 rm -f conftest.$ac_objext conftest$ac_exeext
2699 if { { ac_try="$ac_link"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link") 2>conftest.err
2707 ac_status=$?
2708 if test -s conftest.err; then
2709 grep -v '^ *+' conftest.err >conftest.er1
2710 cat conftest.er1 >&5
2711 mv -f conftest.er1 conftest.err
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest$ac_exeext && {
2718 test "$cross_compiling" = yes ||
2719 $as_test_x conftest$ac_exeext
2720 }; then :
2721 ac_retval=0
2722 else
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 ac_retval=1
2728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2730 # interfere with the next link command; also delete a directory that is
2731 # left behind by Apple's compiler. We do this before executing the actions.
2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 return $ac_retval
2736 } # ac_fn_c_try_link
2738 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2739 # ----------------------------------------------
2740 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_preproc ()
2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2751 #include <$2>
2752 _ACEOF
2753 if ac_fn_c_try_cpp "$LINENO"; then :
2754 eval "$3=yes"
2755 else
2756 eval "$3=no"
2758 rm -f conftest.err conftest.$ac_ext
2760 eval ac_res=\$$3
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2765 } # ac_fn_c_check_header_preproc
2767 # ac_fn_c_check_func LINENO FUNC VAR
2768 # ----------------------------------
2769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2770 ac_fn_c_check_func ()
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2782 #define $2 innocuous_$2
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $2 (); below.
2786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 <limits.h> exists even on freestanding compilers. */
2789 #ifdef __STDC__
2790 # include <limits.h>
2791 #else
2792 # include <assert.h>
2793 #endif
2795 #undef $2
2797 /* Override any GCC internal prototype to avoid an error.
2798 Use char because int might match the return type of a GCC
2799 builtin and then its argument prototype would still apply. */
2800 #ifdef __cplusplus
2801 extern "C"
2802 #endif
2803 char $2 ();
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined __stub_$2 || defined __stub___$2
2808 choke me
2809 #endif
2812 main ()
2814 return $2 ();
2816 return 0;
2818 _ACEOF
2819 if ac_fn_c_try_link "$LINENO"; then :
2820 eval "$3=yes"
2821 else
2822 eval "$3=no"
2824 rm -f core conftest.err conftest.$ac_objext \
2825 conftest$ac_exeext conftest.$ac_ext
2827 eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2832 } # ac_fn_c_check_func
2833 cat >config.log <<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.64. Invocation command line was
2840 $ $0 $@
2842 _ACEOF
2843 exec 5>>config.log
2845 cat <<_ASUNAME
2846 ## --------- ##
2847 ## Platform. ##
2848 ## --------- ##
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2867 _ASUNAME
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 $as_echo "PATH: $as_dir"
2875 done
2876 IFS=$as_save_IFS
2878 } >&5
2880 cat >&5 <<_ACEOF
2883 ## ----------- ##
2884 ## Core tests. ##
2885 ## ----------- ##
2887 _ACEOF
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2895 ac_configure_args=
2896 ac_configure_args0=
2897 ac_configure_args1=
2898 ac_must_keep_next=false
2899 for ac_pass in 1 2
2901 for ac_arg
2903 case $ac_arg in
2904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2906 | -silent | --silent | --silen | --sile | --sil)
2907 continue ;;
2908 *\'*)
2909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2910 esac
2911 case $ac_pass in
2912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2914 as_fn_append ac_configure_args1 " '$ac_arg'"
2915 if test $ac_must_keep_next = true; then
2916 ac_must_keep_next=false # Got value, back to normal.
2917 else
2918 case $ac_arg in
2919 *=* | --config-cache | -C | -disable-* | --disable-* \
2920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2922 | -with-* | --with-* | -without-* | --without-* | --x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2925 esac
2927 -* ) ac_must_keep_next=true ;;
2928 esac
2930 as_fn_append ac_configure_args " '$ac_arg'"
2932 esac
2933 done
2934 done
2935 { ac_configure_args0=; unset ac_configure_args0;}
2936 { ac_configure_args1=; unset ac_configure_args1;}
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2946 echo
2948 cat <<\_ASBOX
2949 ## ---------------- ##
2950 ## Cache variables. ##
2951 ## ---------------- ##
2952 _ASBOX
2953 echo
2954 # The following way of writing the cache mishandles newlines in values,
2956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2957 eval ac_val=\$$ac_var
2958 case $ac_val in #(
2959 *${as_nl}*)
2960 case $ac_var in #(
2961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2963 esac
2964 case $ac_var in #(
2965 _ | IFS | as_nl) ;; #(
2966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967 *) { eval $ac_var=; unset $ac_var;} ;;
2968 esac ;;
2969 esac
2970 done
2971 (set) 2>&1 |
2972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2973 *${as_nl}ac_space=\ *)
2974 sed -n \
2975 "s/'\''/'\''\\\\'\'''\''/g;
2976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2977 ;; #(
2979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2981 esac |
2982 sort
2984 echo
2986 cat <<\_ASBOX
2987 ## ----------------- ##
2988 ## Output variables. ##
2989 ## ----------------- ##
2990 _ASBOX
2991 echo
2992 for ac_var in $ac_subst_vars
2994 eval ac_val=\$$ac_var
2995 case $ac_val in
2996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2997 esac
2998 $as_echo "$ac_var='\''$ac_val'\''"
2999 done | sort
3000 echo
3002 if test -n "$ac_subst_files"; then
3003 cat <<\_ASBOX
3004 ## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##
3007 _ASBOX
3008 echo
3009 for ac_var in $ac_subst_files
3011 eval ac_val=\$$ac_var
3012 case $ac_val in
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 esac
3015 $as_echo "$ac_var='\''$ac_val'\''"
3016 done | sort
3017 echo
3020 if test -s confdefs.h; then
3021 cat <<\_ASBOX
3022 ## ----------- ##
3023 ## confdefs.h. ##
3024 ## ----------- ##
3025 _ASBOX
3026 echo
3027 cat confdefs.h
3028 echo
3030 test "$ac_signal" != 0 &&
3031 $as_echo "$as_me: caught signal $ac_signal"
3032 $as_echo "$as_me: exit $exit_status"
3033 } >&5
3034 rm -f core *.core core.conftest.* &&
3035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3036 exit $exit_status
3038 for ac_signal in 1 2 13 15; do
3039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3040 done
3041 ac_signal=0
3043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3044 rm -f -r conftest* confdefs.h
3046 $as_echo "/* confdefs.h */" > confdefs.h
3048 # Predefined preprocessor variables.
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_NAME "$PACKAGE_NAME"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_STRING "$PACKAGE_STRING"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3068 _ACEOF
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_URL "$PACKAGE_URL"
3072 _ACEOF
3075 # Let the site file select an alternate cache file if it wants to.
3076 # Prefer an explicitly selected file to automatically selected ones.
3077 ac_site_file1=NONE
3078 ac_site_file2=NONE
3079 if test -n "$CONFIG_SITE"; then
3080 ac_site_file1=$CONFIG_SITE
3081 elif test "x$prefix" != xNONE; then
3082 ac_site_file1=$prefix/share/config.site
3083 ac_site_file2=$prefix/etc/config.site
3084 else
3085 ac_site_file1=$ac_default_prefix/share/config.site
3086 ac_site_file2=$ac_default_prefix/etc/config.site
3088 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3090 test "x$ac_site_file" = xNONE && continue
3091 if test -r "$ac_site_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3094 sed 's/^/| /' "$ac_site_file" >&5
3095 . "$ac_site_file"
3097 done
3099 if test -r "$cache_file"; then
3100 # Some versions of bash will fail to source /dev/null (special
3101 # files actually), so we avoid doing that.
3102 if test -f "$cache_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3104 $as_echo "$as_me: loading cache $cache_file" >&6;}
3105 case $cache_file in
3106 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3107 *) . "./$cache_file";;
3108 esac
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3112 $as_echo "$as_me: creating cache $cache_file" >&6;}
3113 >$cache_file
3116 # Check that the precious variables saved in the cache have kept the same
3117 # value.
3118 ac_cache_corrupted=false
3119 for ac_var in $ac_precious_vars; do
3120 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3121 eval ac_new_set=\$ac_env_${ac_var}_set
3122 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3123 eval ac_new_val=\$ac_env_${ac_var}_value
3124 case $ac_old_set,$ac_new_set in
3125 set,)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,set)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3132 ac_cache_corrupted=: ;;
3133 ,);;
3135 if test "x$ac_old_val" != "x$ac_new_val"; then
3136 # differences in whitespace do not lead to failure.
3137 ac_old_val_w=`echo x $ac_old_val`
3138 ac_new_val_w=`echo x $ac_new_val`
3139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3142 ac_cache_corrupted=:
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3146 eval $ac_var=\$ac_old_val
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3152 fi;;
3153 esac
3154 # Pass precious variables to config.status.
3155 if test "$ac_new_set" = set; then
3156 case $ac_new_val in
3157 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 *) ac_arg=$ac_var=$ac_new_val ;;
3159 esac
3160 case " $ac_configure_args " in
3161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3162 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3163 esac
3165 done
3166 if $ac_cache_corrupted; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3171 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3173 ## -------------------- ##
3174 ## Main body of script. ##
3175 ## -------------------- ##
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3191 gcc_version=`cat $srcdir/BASE-VER`
3193 # Determine the host, build, and target systems
3194 ac_aux_dir=
3195 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3196 for ac_t in install-sh install.sh shtool; do
3197 if test -f "$ac_dir/$ac_t"; then
3198 ac_aux_dir=$ac_dir
3199 ac_install_sh="$ac_aux_dir/$ac_t -c"
3200 break 2
3202 done
3203 done
3204 if test -z "$ac_aux_dir"; then
3205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3208 # These three variables are undocumented and unsupported,
3209 # and are intended to be withdrawn in a future Autoconf release.
3210 # They can cause serious problems if a builder's source tree is in a directory
3211 # whose full name contains unusual characters.
3212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3217 # Make sure we can run config.sub.
3218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3222 $as_echo_n "checking build system type... " >&6; }
3223 if test "${ac_cv_build+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 ac_build_alias=$build_alias
3227 test "x$ac_build_alias" = x &&
3228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3229 test "x$ac_build_alias" = x &&
3230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3236 $as_echo "$ac_cv_build" >&6; }
3237 case $ac_cv_build in
3238 *-*-*) ;;
3239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3240 esac
3241 build=$ac_cv_build
3242 ac_save_IFS=$IFS; IFS='-'
3243 set x $ac_cv_build
3244 shift
3245 build_cpu=$1
3246 build_vendor=$2
3247 shift; shift
3248 # Remember, the first character of IFS is used to create $*,
3249 # except with old shells:
3250 build_os=$*
3251 IFS=$ac_save_IFS
3252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3256 $as_echo_n "checking host system type... " >&6; }
3257 if test "${ac_cv_host+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test "x$host_alias" = x; then
3261 ac_cv_host=$ac_cv_build
3262 else
3263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3264 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 $as_echo "$ac_cv_host" >&6; }
3270 case $ac_cv_host in
3271 *-*-*) ;;
3272 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3273 esac
3274 host=$ac_cv_host
3275 ac_save_IFS=$IFS; IFS='-'
3276 set x $ac_cv_host
3277 shift
3278 host_cpu=$1
3279 host_vendor=$2
3280 shift; shift
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3283 host_os=$*
3284 IFS=$ac_save_IFS
3285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3289 $as_echo_n "checking target system type... " >&6; }
3290 if test "${ac_cv_target+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test "x$target_alias" = x; then
3294 ac_cv_target=$ac_cv_host
3295 else
3296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3297 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3302 $as_echo "$ac_cv_target" >&6; }
3303 case $ac_cv_target in
3304 *-*-*) ;;
3305 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3306 esac
3307 target=$ac_cv_target
3308 ac_save_IFS=$IFS; IFS='-'
3309 set x $ac_cv_target
3310 shift
3311 target_cpu=$1
3312 target_vendor=$2
3313 shift; shift
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3316 target_os=$*
3317 IFS=$ac_save_IFS
3318 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3321 # The aliases save the names the user supplied, while $host etc.
3322 # will get canonicalized.
3323 test -n "$target_alias" &&
3324 test "$program_prefix$program_suffix$program_transform_name" = \
3325 NONENONEs,x,x, &&
3326 program_prefix=${target_alias}-
3328 # Determine the noncanonical host name, for Ada.
3329 case ${build_alias} in
3330 "") build_noncanonical=${build} ;;
3331 *) build_noncanonical=${build_alias} ;;
3332 esac
3334 case ${host_alias} in
3335 "") host_noncanonical=${build_noncanonical} ;;
3336 *) host_noncanonical=${host_alias} ;;
3337 esac
3342 # Determine the noncanonical target name, for directory use.
3343 case ${target_alias} in
3344 "") target_noncanonical=${host_noncanonical} ;;
3345 *) target_noncanonical=${target_alias} ;;
3346 esac
3351 # Used for constructing correct paths for offload compilers.
3352 real_target_noncanonical=${target_noncanonical}
3353 accel_dir_suffix=
3355 # Determine the target- and build-specific subdirectories
3357 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3358 # have matching libraries, they should use host libraries: Makefile.tpl
3359 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3360 # However, they still use the build modules, because the corresponding
3361 # host modules (e.g. bison) are only built for the host when bootstrap
3362 # finishes. So:
3363 # - build_subdir is where we find build modules, and never changes.
3364 # - build_libsubdir is where we find build libraries, and can be overridden.
3366 # Prefix 'build-' so this never conflicts with target_subdir.
3367 build_subdir="build-${build_noncanonical}"
3369 # Check whether --with-build-libsubdir was given.
3370 if test "${with_build_libsubdir+set}" = set; then :
3371 withval=$with_build_libsubdir; build_libsubdir="$withval"
3372 else
3373 build_libsubdir="$build_subdir"
3376 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3377 if ( test $srcdir = . && test -d gcc ) \
3378 || test -d $srcdir/../host-${host_noncanonical}; then
3379 host_subdir="host-${host_noncanonical}"
3380 else
3381 host_subdir=.
3383 # No prefix.
3384 target_subdir=${target_noncanonical}
3387 # Set program_transform_name
3388 test "$program_prefix" != NONE &&
3389 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE &&
3392 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3399 # Check for bogus environment variables.
3400 # Test if LIBRARY_PATH contains the notation for the current directory
3401 # since this would lead to problems installing/building glibc.
3402 # LIBRARY_PATH contains the current directory if one of the following
3403 # is true:
3404 # - one of the terminals (":" and ";") is the first or last sign
3405 # - two terminals occur directly after each other
3406 # - the path contains an element with a dot in it
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3408 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3409 case ${LIBRARY_PATH} in
3410 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3411 library_path_setting="contains current directory"
3414 library_path_setting="ok"
3416 esac
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3418 $as_echo "$library_path_setting" >&6; }
3419 if test "$library_path_setting" != "ok"; then
3420 as_fn_error "
3421 *** LIBRARY_PATH shouldn't contain the current directory when
3422 *** building gcc. Please change the environment variable
3423 *** and run configure again." "$LINENO" 5
3426 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # GCC_EXEC_PREFIX contains the current directory if one of the following
3429 # is true:
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3434 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3435 case ${GCC_EXEC_PREFIX} in
3436 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3437 gcc_exec_prefix_setting="contains current directory"
3440 gcc_exec_prefix_setting="ok"
3442 esac
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3444 $as_echo "$gcc_exec_prefix_setting" >&6; }
3445 if test "$gcc_exec_prefix_setting" != "ok"; then
3446 as_fn_error "
3447 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3452 # -----------
3453 # Directories
3454 # -----------
3456 # Specify the local prefix
3457 local_prefix=
3459 # Check whether --with-local-prefix was given.
3460 if test "${with_local_prefix+set}" = set; then :
3461 withval=$with_local_prefix; case "${withval}" in
3462 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3463 no) ;;
3464 *) local_prefix=$with_local_prefix ;;
3465 esac
3469 # Default local prefix if it is empty
3470 if test x$local_prefix = x; then
3471 local_prefix=/usr/local
3475 # Check whether --with-native-system-header-dir was given.
3476 if test "${with_native_system_header_dir+set}" = set; then :
3477 withval=$with_native_system_header_dir;
3478 case ${with_native_system_header_dir} in
3479 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3480 /* | [A-Za-z]:[\\/]*) ;;
3481 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3482 esac
3483 configured_native_system_header_dir="${withval}"
3485 else
3486 configured_native_system_header_dir=
3491 # Check whether --with-build-sysroot was given.
3492 if test "${with_build_sysroot+set}" = set; then :
3493 withval=$with_build_sysroot; if test x"$withval" != x ; then
3494 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3496 else
3497 SYSROOT_CFLAGS_FOR_TARGET=
3502 if test "x$prefix" = xNONE; then
3503 test_prefix=/usr/local
3504 else
3505 test_prefix=$prefix
3507 if test "x$exec_prefix" = xNONE; then
3508 test_exec_prefix=$test_prefix
3509 else
3510 test_exec_prefix=$exec_prefix
3514 # Check whether --with-sysroot was given.
3515 if test "${with_sysroot+set}" = set; then :
3516 withval=$with_sysroot;
3517 case ${with_sysroot} in
3518 /) ;;
3519 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3520 esac
3521 case ${with_sysroot} in
3522 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3523 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3524 esac
3526 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3527 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3529 case ${TARGET_SYSTEM_ROOT} in
3530 "${test_prefix}"|"${test_prefix}/"*|\
3531 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3532 '${prefix}'|'${prefix}/'*|\
3533 '${exec_prefix}'|'${exec_prefix}/'*)
3534 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3535 TARGET_SYSTEM_ROOT_DEFINE="$t"
3537 esac
3539 else
3541 TARGET_SYSTEM_ROOT=
3542 TARGET_SYSTEM_ROOT_DEFINE=
3543 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3551 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3552 # passed in by the toplevel make and thus we'd get different behavior
3553 # depending on where we built the sources.
3554 gcc_gxx_include_dir=
3555 # Specify the g++ header file directory
3557 # Check whether --with-gxx-include-dir was given.
3558 if test "${with_gxx_include_dir+set}" = set; then :
3559 withval=$with_gxx_include_dir; case "${withval}" in
3560 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3561 no) ;;
3562 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3563 esac
3567 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3568 if test x${gcc_gxx_include_dir} = x; then
3569 if test x${enable_version_specific_runtime_libs} = xyes; then
3570 gcc_gxx_include_dir='${libsubdir}/include/c++'
3571 else
3572 libstdcxx_incdir='include/c++/$(version)'
3573 if test x$host != x$target; then
3574 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3576 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3580 gcc_gxx_include_dir_add_sysroot=0
3581 if test "${with_sysroot+set}" = set; then
3582 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3583 if test "${gcc_gxx_without_sysroot}"; then
3584 if test x${with_sysroot} != x/; then
3585 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3587 gcc_gxx_include_dir_add_sysroot=1
3592 # Check whether --with-cpp_install_dir was given.
3593 if test "${with_cpp_install_dir+set}" = set; then :
3594 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3595 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3596 elif test x$withval != xno; then
3597 cpp_install_dir=$withval
3602 # We would like to our source tree to be readonly. However when releases or
3603 # pre-releases are generated, the flex/bison generated files as well as the
3604 # various formats of manuals need to be included along with the rest of the
3605 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3606 # just that.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3609 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3610 # Check whether --enable-generated-files-in-srcdir was given.
3611 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3612 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3613 else
3614 generated_files_in_srcdir=no
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3619 $as_echo "$generated_files_in_srcdir" >&6; }
3621 if test "$generated_files_in_srcdir" = "yes"; then
3622 GENINSRC=''
3623 else
3624 GENINSRC='#'
3628 # -------------------
3629 # Find default linker
3630 # -------------------
3632 # With GNU ld
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3637 else
3638 gnu_ld_flag=no
3642 # With pre-defined ld
3644 # Check whether --with-ld was given.
3645 if test "${with_ld+set}" = set; then :
3646 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3649 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3650 if test ! -x "$DEFAULT_LINKER"; then
3651 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3652 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3653 gnu_ld_flag=yes
3656 cat >>confdefs.h <<_ACEOF
3657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3658 _ACEOF
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3663 $as_echo_n "checking whether a default linker was specified... " >&6; }
3664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3665 if test x"$gnu_ld_flag" = x"no"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3667 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3670 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3672 else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3677 # With demangler in GNU ld
3679 # Check whether --with-demangler-in-ld was given.
3680 if test "${with_demangler_in_ld+set}" = set; then :
3681 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3682 else
3683 demangler_in_ld=yes
3687 # ----------------------
3688 # Find default assembler
3689 # ----------------------
3691 # With GNU as
3693 # Check whether --with-gnu-as was given.
3694 if test "${with_gnu_as+set}" = set; then :
3695 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3696 else
3697 gas_flag=no
3702 # Check whether --with-as was given.
3703 if test "${with_as+set}" = set; then :
3704 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3708 if test ! -x "$DEFAULT_ASSEMBLER"; then
3709 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3710 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3711 gas_flag=yes
3714 cat >>confdefs.h <<_ACEOF
3715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3716 _ACEOF
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3721 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3722 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3723 if test x"$gas_flag" = x"no"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3725 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3728 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3735 # ---------------
3736 # Find C compiler
3737 # ---------------
3739 # If a non-executable a.out is present (e.g. created by GNU as above even if
3740 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3741 # file, even when creating an executable, so an execution test fails.
3742 # Remove possible default executable files to avoid this.
3744 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3745 # Autoconf includes it.
3746 rm -f a.out a.exe b.out
3748 # Find the native compiler
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if test "${ac_cv_prog_CC+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3776 done
3777 done
3778 IFS=$as_save_IFS
3782 CC=$ac_cv_prog_CC
3783 if test -n "$CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3793 if test -z "$ac_cv_prog_CC"; then
3794 ac_ct_CC=$CC
3795 # Extract the first word of "gcc", so it can be a program name with args.
3796 set dummy gcc; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_ac_ct_CC="gcc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3816 done
3817 done
3818 IFS=$as_save_IFS
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3826 else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3831 if test "x$ac_ct_CC" = x; then
3832 CC=""
3833 else
3834 case $cross_compiling:$ac_tool_warned in
3835 yes:)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838 ac_tool_warned=yes ;;
3839 esac
3840 CC=$ac_ct_CC
3842 else
3843 CC="$ac_cv_prog_CC"
3846 if test -z "$CC"; then
3847 if test -n "$ac_tool_prefix"; then
3848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3849 set dummy ${ac_tool_prefix}cc; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_CC="${ac_tool_prefix}cc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3869 done
3870 done
3871 IFS=$as_save_IFS
3875 CC=$ac_cv_prog_CC
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3887 if test -z "$CC"; then
3888 # Extract the first word of "cc", so it can be a program name with args.
3889 set dummy cc; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3897 else
3898 ac_prog_rejected=no
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3907 ac_prog_rejected=yes
3908 continue
3910 ac_cv_prog_CC="cc"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3918 if test $ac_prog_rejected = yes; then
3919 # We found a bogon in the path, so make sure we never use it.
3920 set dummy $ac_cv_prog_CC
3921 shift
3922 if test $# != 0; then
3923 # We chose a different compiler from the bogus one.
3924 # However, it has the same basename, so the bogon will be chosen
3925 # first if we set CC to just the basename; use the full file name.
3926 shift
3927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3932 CC=$ac_cv_prog_CC
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 for ac_prog in cl.exe
3947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3968 done
3969 done
3970 IFS=$as_save_IFS
3974 CC=$ac_cv_prog_CC
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3984 test -n "$CC" && break
3985 done
3987 if test -z "$CC"; then
3988 ac_ct_CC=$CC
3989 for ac_prog in cl.exe
3991 # Extract the first word of "$ac_prog", so it can be a program name with args.
3992 set dummy $ac_prog; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 if test -n "$ac_ct_CC"; then
3999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_ac_ct_CC="$ac_prog"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4014 IFS=$as_save_IFS
4018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4019 if test -n "$ac_ct_CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4021 $as_echo "$ac_ct_CC" >&6; }
4022 else
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4028 test -n "$ac_ct_CC" && break
4029 done
4031 if test "x$ac_ct_CC" = x; then
4032 CC=""
4033 else
4034 case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040 CC=$ac_ct_CC
4047 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error "no acceptable C compiler found in \$PATH
4050 See \`config.log' for more details." "$LINENO" 5; }
4052 # Provide some information about the compiler.
4053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4054 set X $ac_compile
4055 ac_compiler=$2
4056 for ac_option in --version -v -V -qversion; do
4057 { { ac_try="$ac_compiler $ac_option >&5"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4065 ac_status=$?
4066 if test -s conftest.err; then
4067 sed '10a\
4068 ... rest of stderr output deleted ...
4069 10q' conftest.err >conftest.er1
4070 cat conftest.er1 >&5
4071 rm -f conftest.er1 conftest.err
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4075 done
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 ac_clean_files_save=$ac_clean_files
4089 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4090 # Try to create an executable without -o first, disregard a.out.
4091 # It will help us diagnose broken compilers, and finding out an intuition
4092 # of exeext.
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 $as_echo_n "checking for C compiler default output file name... " >&6; }
4095 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4097 # The possible output files:
4098 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4100 ac_rmfiles=
4101 for ac_file in $ac_files
4103 case $ac_file in
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4106 esac
4107 done
4108 rm -f $ac_rmfiles
4110 if { { ac_try="$ac_link_default"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_link_default") 2>&5
4118 ac_status=$?
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4124 # so that the user can short-circuit this test for compilers unknown to
4125 # Autoconf.
4126 for ac_file in $ac_files ''
4128 test -f "$ac_file" || continue
4129 case $ac_file in
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4132 [ab].out )
4133 # We found the default executable, but exeext='' is most
4134 # certainly right.
4135 break;;
4136 *.* )
4137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4138 then :; else
4139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4141 # We set ac_cv_exeext here because the later test for it is not
4142 # safe: cross compilers may not add the suffix if given an `-o'
4143 # argument, so we may need to know it at that point already.
4144 # Even if this section looks crufty: it has the advantage of
4145 # actually working.
4146 break;;
4148 break;;
4149 esac
4150 done
4151 test "$ac_cv_exeext" = no && ac_cv_exeext=
4153 else
4154 ac_file=''
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4157 $as_echo "$ac_file" >&6; }
4158 if test -z "$ac_file"; then :
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 { as_fn_set_status 77
4165 as_fn_error "C compiler cannot create executables
4166 See \`config.log' for more details." "$LINENO" 5; }; }
4168 ac_exeext=$ac_cv_exeext
4170 # Check that the compiler produces executables we can run. If not, either
4171 # the compiler is broken, or we cross compile.
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4173 $as_echo_n "checking whether the C compiler works... " >&6; }
4174 # If not cross compiling, check that we can run a simple program.
4175 if test "$cross_compiling" != yes; then
4176 if { ac_try='./$ac_file'
4177 { { case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4180 esac
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }; }; then
4187 cross_compiling=no
4188 else
4189 if test "$cross_compiling" = maybe; then
4190 cross_compiling=yes
4191 else
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "cannot run C compiled programs.
4195 If you meant to cross compile, use \`--host'.
4196 See \`config.log' for more details." "$LINENO" 5; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4204 ac_clean_files=$ac_clean_files_save
4205 # Check that the compiler produces executables we can run. If not, either
4206 # the compiler is broken, or we cross compile.
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4208 $as_echo_n "checking whether we are cross compiling... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4210 $as_echo "$cross_compiling" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4213 $as_echo_n "checking for suffix of executables... " >&6; }
4214 if { { ac_try="$ac_link"
4215 case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218 esac
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_link") 2>&5
4222 ac_status=$?
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }; then :
4225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4227 # work properly (i.e., refer to `conftest.exe'), while it won't with
4228 # `rm'.
4229 for ac_file in conftest.exe conftest conftest.*; do
4230 test -f "$ac_file" || continue
4231 case $ac_file in
4232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4234 break;;
4235 * ) break;;
4236 esac
4237 done
4238 else
4239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error "cannot compute suffix of executables: cannot compile and link
4242 See \`config.log' for more details." "$LINENO" 5; }
4244 rm -f conftest$ac_cv_exeext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4246 $as_echo "$ac_cv_exeext" >&6; }
4248 rm -f conftest.$ac_ext
4249 EXEEXT=$ac_cv_exeext
4250 ac_exeext=$EXEEXT
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4252 $as_echo_n "checking for suffix of object files... " >&6; }
4253 if test "${ac_cv_objext+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4260 main ()
4264 return 0;
4266 _ACEOF
4267 rm -f conftest.o conftest.obj
4268 if { { ac_try="$ac_compile"
4269 case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_compile") 2>&5
4276 ac_status=$?
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }; then :
4279 for ac_file in conftest.o conftest.obj conftest.*; do
4280 test -f "$ac_file" || continue;
4281 case $ac_file in
4282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4283 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4284 break;;
4285 esac
4286 done
4287 else
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error "cannot compute suffix of object files: cannot compile
4294 See \`config.log' for more details." "$LINENO" 5; }
4296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4299 $as_echo "$ac_cv_objext" >&6; }
4300 OBJEXT=$ac_cv_objext
4301 ac_objext=$OBJEXT
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4304 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4311 main ()
4313 #ifndef __GNUC__
4314 choke me
4315 #endif
4318 return 0;
4320 _ACEOF
4321 if ac_fn_c_try_compile "$LINENO"; then :
4322 ac_compiler_gnu=yes
4323 else
4324 ac_compiler_gnu=no
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4331 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4332 if test $ac_compiler_gnu = yes; then
4333 GCC=yes
4334 else
4335 GCC=
4337 ac_test_CFLAGS=${CFLAGS+set}
4338 ac_save_CFLAGS=$CFLAGS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4341 if test "${ac_cv_prog_cc_g+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 ac_save_c_werror_flag=$ac_c_werror_flag
4345 ac_c_werror_flag=yes
4346 ac_cv_prog_cc_g=no
4347 CFLAGS="-g"
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4352 main ()
4356 return 0;
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 ac_cv_prog_cc_g=yes
4361 else
4362 CFLAGS=""
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4367 main ()
4371 return 0;
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4376 else
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4378 CFLAGS="-g"
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4383 main ()
4387 return 0;
4389 _ACEOF
4390 if ac_fn_c_try_compile "$LINENO"; then :
4391 ac_cv_prog_cc_g=yes
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4401 $as_echo "$ac_cv_prog_cc_g" >&6; }
4402 if test "$ac_test_CFLAGS" = set; then
4403 CFLAGS=$ac_save_CFLAGS
4404 elif test $ac_cv_prog_cc_g = yes; then
4405 if test "$GCC" = yes; then
4406 CFLAGS="-g -O2"
4407 else
4408 CFLAGS="-g"
4410 else
4411 if test "$GCC" = yes; then
4412 CFLAGS="-O2"
4413 else
4414 CFLAGS=
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4418 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4419 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 ac_cv_prog_cc_c89=no
4423 ac_save_CC=$CC
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <stdarg.h>
4427 #include <stdio.h>
4428 #include <sys/types.h>
4429 #include <sys/stat.h>
4430 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4431 struct buf { int x; };
4432 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4433 static char *e (p, i)
4434 char **p;
4435 int i;
4437 return p[i];
4439 static char *f (char * (*g) (char **, int), char **p, ...)
4441 char *s;
4442 va_list v;
4443 va_start (v,p);
4444 s = g (p, va_arg (v,int));
4445 va_end (v);
4446 return s;
4449 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4450 function prototypes and stuff, but not '\xHH' hex character constants.
4451 These don't provoke an error unfortunately, instead are silently treated
4452 as 'x'. The following induces an error, until -std is added to get
4453 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4454 array size at least. It's necessary to write '\x00'==0 to get something
4455 that's true only with -std. */
4456 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4458 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4459 inside strings and character constants. */
4460 #define FOO(x) 'x'
4461 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4463 int test (int i, double x);
4464 struct s1 {int (*f) (int a);};
4465 struct s2 {int (*f) (double a);};
4466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4467 int argc;
4468 char **argv;
4470 main ()
4472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4474 return 0;
4476 _ACEOF
4477 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4478 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4480 CC="$ac_save_CC $ac_arg"
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_prog_cc_c89=$ac_arg
4484 rm -f core conftest.err conftest.$ac_objext
4485 test "x$ac_cv_prog_cc_c89" != "xno" && break
4486 done
4487 rm -f conftest.$ac_ext
4488 CC=$ac_save_CC
4491 # AC_CACHE_VAL
4492 case "x$ac_cv_prog_cc_c89" in
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4495 $as_echo "none needed" >&6; } ;;
4496 xno)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 $as_echo "unsupported" >&6; } ;;
4500 CC="$CC $ac_cv_prog_cc_c89"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4502 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4503 esac
4504 if test "x$ac_cv_prog_cc_c89" != xno; then :
4508 ac_ext=c
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514 ac_ext=cpp
4515 ac_cpp='$CXXCPP $CPPFLAGS'
4516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519 if test -z "$CXX"; then
4520 if test -n "$CCC"; then
4521 CXX=$CCC
4522 else
4523 if test -n "$ac_tool_prefix"; then
4524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CXX+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$CXX"; then
4534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 CXX=$ac_cv_prog_CXX
4554 if test -n "$CXX"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4556 $as_echo "$CXX" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$CXX" && break
4564 done
4566 if test -z "$CXX"; then
4567 ac_ct_CXX=$CXX
4568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$ac_ct_CXX"; then
4578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_ac_ct_CXX="$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4598 if test -n "$ac_ct_CXX"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4600 $as_echo "$ac_ct_CXX" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4607 test -n "$ac_ct_CXX" && break
4608 done
4610 if test "x$ac_ct_CXX" = x; then
4611 CXX="g++"
4612 else
4613 case $cross_compiling:$ac_tool_warned in
4614 yes:)
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4618 esac
4619 CXX=$ac_ct_CXX
4625 # Provide some information about the compiler.
4626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4627 set X $ac_compile
4628 ac_compiler=$2
4629 for ac_option in --version -v -V -qversion; do
4630 { { ac_try="$ac_compiler $ac_option >&5"
4631 case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4638 ac_status=$?
4639 if test -s conftest.err; then
4640 sed '10a\
4641 ... rest of stderr output deleted ...
4642 10q' conftest.err >conftest.er1
4643 cat conftest.er1 >&5
4644 rm -f conftest.er1 conftest.err
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }
4648 done
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4659 main ()
4661 #ifndef __GNUC__
4662 choke me
4663 #endif
4666 return 0;
4668 _ACEOF
4669 if ac_fn_cxx_try_compile "$LINENO"; then :
4670 ac_compiler_gnu=yes
4671 else
4672 ac_compiler_gnu=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4681 GXX=yes
4682 else
4683 GXX=
4685 ac_test_CXXFLAGS=${CXXFLAGS+set}
4686 ac_save_CXXFLAGS=$CXXFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4689 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4693 ac_cxx_werror_flag=yes
4694 ac_cv_prog_cxx_g=no
4695 CXXFLAGS="-g"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708 ac_cv_prog_cxx_g=yes
4709 else
4710 CXXFLAGS=""
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4715 main ()
4719 return 0;
4721 _ACEOF
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
4724 else
4725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4726 CXXFLAGS="-g"
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4731 main ()
4735 return 0;
4737 _ACEOF
4738 if ac_fn_cxx_try_compile "$LINENO"; then :
4739 ac_cv_prog_cxx_g=yes
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4750 if test "$ac_test_CXXFLAGS" = set; then
4751 CXXFLAGS=$ac_save_CXXFLAGS
4752 elif test $ac_cv_prog_cxx_g = yes; then
4753 if test "$GXX" = yes; then
4754 CXXFLAGS="-g -O2"
4755 else
4756 CXXFLAGS="-g"
4758 else
4759 if test "$GXX" = yes; then
4760 CXXFLAGS="-O2"
4761 else
4762 CXXFLAGS=
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$GNATBIND"; then
4783 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 GNATBIND=$ac_cv_prog_GNATBIND
4803 if test -n "$GNATBIND"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4805 $as_echo "$GNATBIND" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4813 if test -z "$ac_cv_prog_GNATBIND"; then
4814 ac_ct_GNATBIND=$GNATBIND
4815 # Extract the first word of "gnatbind", so it can be a program name with args.
4816 set dummy gnatbind; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$ac_ct_GNATBIND"; then
4823 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4843 if test -n "$ac_ct_GNATBIND"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4845 $as_echo "$ac_ct_GNATBIND" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4851 if test "x$ac_ct_GNATBIND" = x; then
4852 GNATBIND="no"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860 GNATBIND=$ac_ct_GNATBIND
4862 else
4863 GNATBIND="$ac_cv_prog_GNATBIND"
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 if test -n "$GNATMAKE"; then
4875 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4888 done
4889 done
4890 IFS=$as_save_IFS
4894 GNATMAKE=$ac_cv_prog_GNATMAKE
4895 if test -n "$GNATMAKE"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4897 $as_echo "$GNATMAKE" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4905 if test -z "$ac_cv_prog_GNATMAKE"; then
4906 ac_ct_GNATMAKE=$GNATMAKE
4907 # Extract the first word of "gnatmake", so it can be a program name with args.
4908 set dummy gnatmake; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$ac_ct_GNATMAKE"; then
4915 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4935 if test -n "$ac_ct_GNATMAKE"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4937 $as_echo "$ac_ct_GNATMAKE" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4943 if test "x$ac_ct_GNATMAKE" = x; then
4944 GNATMAKE="no"
4945 else
4946 case $cross_compiling:$ac_tool_warned in
4947 yes:)
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952 GNATMAKE=$ac_ct_GNATMAKE
4954 else
4955 GNATMAKE="$ac_cv_prog_GNATMAKE"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4959 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4960 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 cat >conftest.adb <<EOF
4964 procedure conftest is begin null; end conftest;
4966 acx_cv_cc_gcc_supports_ada=no
4967 # There is a bug in old released versions of GCC which causes the
4968 # driver to exit successfully when the appropriate language module
4969 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4970 # Therefore we must check for the error message as well as an
4971 # unsuccessful exit.
4972 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4973 # given a .adb file, but produce no object file. So we must check
4974 # if an object file was really produced to guard against this.
4975 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4976 if test x"$errors" = x && test -f conftest.$ac_objext; then
4977 acx_cv_cc_gcc_supports_ada=yes
4979 rm -f conftest.*
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4982 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4984 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4985 have_gnat=yes
4986 else
4987 have_gnat=no
4991 # Do configure tests with the C++ compiler, since that's what we build with.
4992 ac_ext=cpp
4993 ac_cpp='$CXXCPP $CPPFLAGS'
4994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4999 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5000 # optimizations to be activated explicitly by the toplevel.
5001 case "$CC" in
5002 */prev-gcc/xgcc*) ;;
5003 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5004 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5005 esac
5009 # Determine PICFLAG for target gnatlib.
5014 case "${target}" in
5015 # PIC is the default on some targets or must not be used.
5016 *-*-darwin*)
5017 # For darwin, common symbols are not allowed in MH_DYLIB files
5018 case "${CFLAGS}" in
5019 # If we are using a compiler supporting mdynamic-no-pic
5020 # and the option has been tested as safe to add, then cancel
5021 # it here, since the code generated is incompatible with shared
5022 # libs.
5023 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5024 *) PICFLAG_FOR_TARGET=-fno-common ;;
5025 esac
5027 alpha*-dec-osf5*)
5028 # PIC is the default.
5030 hppa*64*-*-hpux*)
5031 # PIC is the default for 64-bit PA HP-UX.
5033 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5035 i[34567]86-*-mingw* | x86_64-*-mingw*)
5037 i[34567]86-*-nto-qnx*)
5038 # QNX uses GNU C++, but need to define -shared option too, otherwise
5039 # it will coredump.
5040 PICFLAG_FOR_TARGET='-fPIC -shared'
5042 i[34567]86-pc-msdosdjgpp*)
5043 # DJGPP does not support shared libraries at all.
5045 ia64*-*-hpux*)
5046 # On IA64 HP-UX, PIC is the default but the pic flag
5047 # sets the default TLS model and affects inlining.
5048 PICFLAG_FOR_TARGET=-fPIC
5050 mips-sgi-irix6*)
5051 # PIC is the default.
5053 rs6000-ibm-aix* | powerpc-ibm-aix*)
5054 # All AIX code is PIC.
5057 # Some targets support both -fPIC and -fpic, but prefer the latter.
5058 # FIXME: Why?
5059 i[34567]86-*-* | x86_64-*-*)
5060 PICFLAG_FOR_TARGET=-fpic
5062 # FIXME: Override -fPIC default in libgcc only?
5063 sh-*-linux* | sh[2346lbe]*-*-linux*)
5064 PICFLAG_FOR_TARGET=-fpic
5066 # FIXME: Simplify to sh*-*-netbsd*?
5067 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5068 PICFLAG_FOR_TARGET=-fpic
5070 # Default to -fPIC unless specified otherwise.
5072 PICFLAG_FOR_TARGET=-fPIC
5074 esac
5076 # If the user explicitly uses -fpic/-fPIC, keep that.
5077 case "${CFLAGS_FOR_TARGET}" in
5078 *-fpic*)
5079 PICFLAG_FOR_TARGET=-fpic
5081 *-fPIC*)
5082 PICFLAG_FOR_TARGET=-fPIC
5084 esac
5088 # -------------------------
5089 # Check C compiler features
5090 # -------------------------
5093 ac_ext=cpp
5094 ac_cpp='$CXXCPP $CPPFLAGS'
5095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5099 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5100 if test -z "$CXXCPP"; then
5101 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 # Double quotes because CXXCPP needs to be expanded
5105 for CXXCPP in "$CXX -E" "/lib/cpp"
5107 ac_preproc_ok=false
5108 for ac_cxx_preproc_warn_flag in '' yes
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #ifdef __STDC__
5119 # include <limits.h>
5120 #else
5121 # include <assert.h>
5122 #endif
5123 Syntax error
5124 _ACEOF
5125 if ac_fn_cxx_try_cpp "$LINENO"; then :
5127 else
5128 # Broken: fails on valid input.
5129 continue
5131 rm -f conftest.err conftest.$ac_ext
5133 # OK, works on sane cases. Now check whether nonexistent headers
5134 # can be detected and how.
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if ac_fn_cxx_try_cpp "$LINENO"; then :
5140 # Broken: success on invalid input.
5141 continue
5142 else
5143 # Passes both tests.
5144 ac_preproc_ok=:
5145 break
5147 rm -f conftest.err conftest.$ac_ext
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then :
5153 break
5156 done
5157 ac_cv_prog_CXXCPP=$CXXCPP
5160 CXXCPP=$ac_cv_prog_CXXCPP
5161 else
5162 ac_cv_prog_CXXCPP=$CXXCPP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5165 $as_echo "$CXXCPP" >&6; }
5166 ac_preproc_ok=false
5167 for ac_cxx_preproc_warn_flag in '' yes
5169 # Use a header file that comes with gcc, so configuring glibc
5170 # with a fresh cross-compiler works.
5171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172 # <limits.h> exists even on freestanding compilers.
5173 # On the NeXT, cc -E runs the code through the compiler's parser,
5174 # not just through cpp. "Syntax error" is here to catch this case.
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #ifdef __STDC__
5178 # include <limits.h>
5179 #else
5180 # include <assert.h>
5181 #endif
5182 Syntax error
5183 _ACEOF
5184 if ac_fn_cxx_try_cpp "$LINENO"; then :
5186 else
5187 # Broken: fails on valid input.
5188 continue
5190 rm -f conftest.err conftest.$ac_ext
5192 # OK, works on sane cases. Now check whether nonexistent headers
5193 # can be detected and how.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <ac_nonexistent.h>
5197 _ACEOF
5198 if ac_fn_cxx_try_cpp "$LINENO"; then :
5199 # Broken: success on invalid input.
5200 continue
5201 else
5202 # Passes both tests.
5203 ac_preproc_ok=:
5204 break
5206 rm -f conftest.err conftest.$ac_ext
5208 done
5209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210 rm -f conftest.err conftest.$ac_ext
5211 if $ac_preproc_ok; then :
5213 else
5214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5216 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5217 See \`config.log' for more details." "$LINENO" 5; }
5220 ac_ext=cpp
5221 ac_cpp='$CXXCPP $CPPFLAGS'
5222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5229 if test "${ac_cv_path_GREP+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -z "$GREP"; then
5233 ac_path_GREP_found=false
5234 # Loop through the user's path and test for each of PROGNAME-LIST
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_prog in grep ggrep; do
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5243 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5244 # Check for GNU ac_path_GREP and select it if it is found.
5245 # Check for GNU $ac_path_GREP
5246 case `"$ac_path_GREP" --version 2>&1` in
5247 *GNU*)
5248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5250 ac_count=0
5251 $as_echo_n 0123456789 >"conftest.in"
5252 while :
5254 cat "conftest.in" "conftest.in" >"conftest.tmp"
5255 mv "conftest.tmp" "conftest.in"
5256 cp "conftest.in" "conftest.nl"
5257 $as_echo 'GREP' >> "conftest.nl"
5258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5260 as_fn_arith $ac_count + 1 && ac_count=$as_val
5261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5262 # Best one so far, save it but keep looking for a better one
5263 ac_cv_path_GREP="$ac_path_GREP"
5264 ac_path_GREP_max=$ac_count
5266 # 10*(2^10) chars as input seems more than enough
5267 test $ac_count -gt 10 && break
5268 done
5269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5270 esac
5272 $ac_path_GREP_found && break 3
5273 done
5274 done
5275 done
5276 IFS=$as_save_IFS
5277 if test -z "$ac_cv_path_GREP"; then
5278 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5280 else
5281 ac_cv_path_GREP=$GREP
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5286 $as_echo "$ac_cv_path_GREP" >&6; }
5287 GREP="$ac_cv_path_GREP"
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5291 $as_echo_n "checking for egrep... " >&6; }
5292 if test "${ac_cv_path_EGREP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5296 then ac_cv_path_EGREP="$GREP -E"
5297 else
5298 if test -z "$EGREP"; then
5299 ac_path_EGREP_found=false
5300 # Loop through the user's path and test for each of PROGNAME-LIST
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_prog in egrep; do
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5309 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5310 # Check for GNU ac_path_EGREP and select it if it is found.
5311 # Check for GNU $ac_path_EGREP
5312 case `"$ac_path_EGREP" --version 2>&1` in
5313 *GNU*)
5314 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5316 ac_count=0
5317 $as_echo_n 0123456789 >"conftest.in"
5318 while :
5320 cat "conftest.in" "conftest.in" >"conftest.tmp"
5321 mv "conftest.tmp" "conftest.in"
5322 cp "conftest.in" "conftest.nl"
5323 $as_echo 'EGREP' >> "conftest.nl"
5324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326 as_fn_arith $ac_count + 1 && ac_count=$as_val
5327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5328 # Best one so far, save it but keep looking for a better one
5329 ac_cv_path_EGREP="$ac_path_EGREP"
5330 ac_path_EGREP_max=$ac_count
5332 # 10*(2^10) chars as input seems more than enough
5333 test $ac_count -gt 10 && break
5334 done
5335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336 esac
5338 $ac_path_EGREP_found && break 3
5339 done
5340 done
5341 done
5342 IFS=$as_save_IFS
5343 if test -z "$ac_cv_path_EGREP"; then
5344 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5346 else
5347 ac_cv_path_EGREP=$EGREP
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5353 $as_echo "$ac_cv_path_EGREP" >&6; }
5354 EGREP="$ac_cv_path_EGREP"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5358 $as_echo_n "checking for ANSI C header files... " >&6; }
5359 if test "${ac_cv_header_stdc+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <stdlib.h>
5365 #include <stdarg.h>
5366 #include <string.h>
5367 #include <float.h>
5370 main ()
5374 return 0;
5376 _ACEOF
5377 if ac_fn_cxx_try_compile "$LINENO"; then :
5378 ac_cv_header_stdc=yes
5379 else
5380 ac_cv_header_stdc=no
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 if test $ac_cv_header_stdc = yes; then
5385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <string.h>
5390 _ACEOF
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392 $EGREP "memchr" >/dev/null 2>&1; then :
5394 else
5395 ac_cv_header_stdc=no
5397 rm -f conftest*
5401 if test $ac_cv_header_stdc = yes; then
5402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <stdlib.h>
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "free" >/dev/null 2>&1; then :
5411 else
5412 ac_cv_header_stdc=no
5414 rm -f conftest*
5418 if test $ac_cv_header_stdc = yes; then
5419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5420 if test "$cross_compiling" = yes; then :
5422 else
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 #include <ctype.h>
5426 #include <stdlib.h>
5427 #if ((' ' & 0x0FF) == 0x020)
5428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5430 #else
5431 # define ISLOWER(c) \
5432 (('a' <= (c) && (c) <= 'i') \
5433 || ('j' <= (c) && (c) <= 'r') \
5434 || ('s' <= (c) && (c) <= 'z'))
5435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5436 #endif
5438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5440 main ()
5442 int i;
5443 for (i = 0; i < 256; i++)
5444 if (XOR (islower (i), ISLOWER (i))
5445 || toupper (i) != TOUPPER (i))
5446 return 2;
5447 return 0;
5449 _ACEOF
5450 if ac_fn_cxx_try_run "$LINENO"; then :
5452 else
5453 ac_cv_header_stdc=no
5455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5456 conftest.$ac_objext conftest.beam conftest.$ac_ext
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5462 $as_echo "$ac_cv_header_stdc" >&6; }
5463 if test $ac_cv_header_stdc = yes; then
5465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5471 inttypes.h stdint.h unistd.h
5472 do :
5473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5476 eval as_val=\$$as_ac_Header
5477 if test "x$as_val" = x""yes; then :
5478 cat >>confdefs.h <<_ACEOF
5479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480 _ACEOF
5484 done
5488 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5489 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5490 MINIX=yes
5491 else
5492 MINIX=
5496 if test "$MINIX" = yes; then
5498 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5501 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5504 $as_echo "#define _MINIX 1" >>confdefs.h
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5510 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5511 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5517 # define __EXTENSIONS__ 1
5518 $ac_includes_default
5520 main ()
5524 return 0;
5526 _ACEOF
5527 if ac_fn_cxx_try_compile "$LINENO"; then :
5528 ac_cv_safe_to_define___extensions__=yes
5529 else
5530 ac_cv_safe_to_define___extensions__=no
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5535 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5536 test $ac_cv_safe_to_define___extensions__ = yes &&
5537 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5539 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5541 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5543 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5545 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5548 ac_ext=c
5549 ac_cpp='$CPP $CPPFLAGS'
5550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5554 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5555 # On Suns, sometimes $CPP names a directory.
5556 if test -n "$CPP" && test -d "$CPP"; then
5557 CPP=
5559 if test -z "$CPP"; then
5560 if test "${ac_cv_prog_CPP+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 # Double quotes because CPP needs to be expanded
5564 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5566 ac_preproc_ok=false
5567 for ac_c_preproc_warn_flag in '' yes
5569 # Use a header file that comes with gcc, so configuring glibc
5570 # with a fresh cross-compiler works.
5571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572 # <limits.h> exists even on freestanding compilers.
5573 # On the NeXT, cc -E runs the code through the compiler's parser,
5574 # not just through cpp. "Syntax error" is here to catch this case.
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #ifdef __STDC__
5578 # include <limits.h>
5579 #else
5580 # include <assert.h>
5581 #endif
5582 Syntax error
5583 _ACEOF
5584 if ac_fn_c_try_cpp "$LINENO"; then :
5586 else
5587 # Broken: fails on valid input.
5588 continue
5590 rm -f conftest.err conftest.$ac_ext
5592 # OK, works on sane cases. Now check whether nonexistent headers
5593 # can be detected and how.
5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #include <ac_nonexistent.h>
5597 _ACEOF
5598 if ac_fn_c_try_cpp "$LINENO"; then :
5599 # Broken: success on invalid input.
5600 continue
5601 else
5602 # Passes both tests.
5603 ac_preproc_ok=:
5604 break
5606 rm -f conftest.err conftest.$ac_ext
5608 done
5609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5610 rm -f conftest.err conftest.$ac_ext
5611 if $ac_preproc_ok; then :
5612 break
5615 done
5616 ac_cv_prog_CPP=$CPP
5619 CPP=$ac_cv_prog_CPP
5620 else
5621 ac_cv_prog_CPP=$CPP
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5624 $as_echo "$CPP" >&6; }
5625 ac_preproc_ok=false
5626 for ac_c_preproc_warn_flag in '' yes
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #ifdef __STDC__
5637 # include <limits.h>
5638 #else
5639 # include <assert.h>
5640 #endif
5641 Syntax error
5642 _ACEOF
5643 if ac_fn_c_try_cpp "$LINENO"; then :
5645 else
5646 # Broken: fails on valid input.
5647 continue
5649 rm -f conftest.err conftest.$ac_ext
5651 # OK, works on sane cases. Now check whether nonexistent headers
5652 # can be detected and how.
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <ac_nonexistent.h>
5656 _ACEOF
5657 if ac_fn_c_try_cpp "$LINENO"; then :
5658 # Broken: success on invalid input.
5659 continue
5660 else
5661 # Passes both tests.
5662 ac_preproc_ok=:
5663 break
5665 rm -f conftest.err conftest.$ac_ext
5667 done
5668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5669 rm -f conftest.err conftest.$ac_ext
5670 if $ac_preproc_ok; then :
5672 else
5673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5675 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5676 See \`config.log' for more details." "$LINENO" 5; }
5679 ac_ext=cpp
5680 ac_cpp='$CXXCPP $CPPFLAGS'
5681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5686 $as_echo_n "checking for inline... " >&6; }
5687 if test "${ac_cv_c_inline+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 ac_cv_c_inline=no
5691 for ac_kw in inline __inline__ __inline; do
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #ifndef __cplusplus
5695 typedef int foo_t;
5696 static $ac_kw foo_t static_foo () {return 0; }
5697 $ac_kw foo_t foo () {return 0; }
5698 #endif
5700 _ACEOF
5701 if ac_fn_cxx_try_compile "$LINENO"; then :
5702 ac_cv_c_inline=$ac_kw
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 test "$ac_cv_c_inline" != no && break
5706 done
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5710 $as_echo "$ac_cv_c_inline" >&6; }
5712 case $ac_cv_c_inline in
5713 inline | yes) ;;
5715 case $ac_cv_c_inline in
5716 no) ac_val=;;
5717 *) ac_val=$ac_cv_c_inline;;
5718 esac
5719 cat >>confdefs.h <<_ACEOF
5720 #ifndef __cplusplus
5721 #define inline $ac_val
5722 #endif
5723 _ACEOF
5725 esac
5728 # Check whether --enable-largefile was given.
5729 if test "${enable_largefile+set}" = set; then :
5730 enableval=$enable_largefile;
5733 if test "$enable_largefile" != no; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5736 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5737 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 ac_cv_sys_largefile_CC=no
5741 if test "$GCC" != yes; then
5742 ac_save_CC=$CC
5743 while :; do
5744 # IRIX 6.2 and later do not support large files by default,
5745 # so use the C compiler's -n32 option if that helps.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5756 ? 1 : -1];
5758 main ()
5762 return 0;
5764 _ACEOF
5765 if ac_fn_cxx_try_compile "$LINENO"; then :
5766 break
5768 rm -f core conftest.err conftest.$ac_objext
5769 CC="$CC -n32"
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771 ac_cv_sys_largefile_CC=' -n32'; break
5773 rm -f core conftest.err conftest.$ac_objext
5774 break
5775 done
5776 CC=$ac_save_CC
5777 rm -f conftest.$ac_ext
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5781 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5782 if test "$ac_cv_sys_largefile_CC" != no; then
5783 CC=$CC$ac_cv_sys_largefile_CC
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5787 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5788 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 while :; do
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <sys/types.h>
5795 /* Check that off_t can represent 2**63 - 1 correctly.
5796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5797 since some C++ compilers masquerading as C compilers
5798 incorrectly reject 9223372036854775807. */
5799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5801 && LARGE_OFF_T % 2147483647 == 1)
5802 ? 1 : -1];
5804 main ()
5808 return 0;
5810 _ACEOF
5811 if ac_fn_cxx_try_compile "$LINENO"; then :
5812 ac_cv_sys_file_offset_bits=no; break
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #define _FILE_OFFSET_BITS 64
5818 #include <sys/types.h>
5819 /* Check that off_t can represent 2**63 - 1 correctly.
5820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5821 since some C++ compilers masquerading as C compilers
5822 incorrectly reject 9223372036854775807. */
5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5825 && LARGE_OFF_T % 2147483647 == 1)
5826 ? 1 : -1];
5828 main ()
5832 return 0;
5834 _ACEOF
5835 if ac_fn_cxx_try_compile "$LINENO"; then :
5836 ac_cv_sys_file_offset_bits=64; break
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 ac_cv_sys_file_offset_bits=unknown
5840 break
5841 done
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5844 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5845 case $ac_cv_sys_file_offset_bits in #(
5846 no | unknown) ;;
5848 cat >>confdefs.h <<_ACEOF
5849 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5850 _ACEOF
5852 esac
5853 rm -rf conftest*
5854 if test $ac_cv_sys_file_offset_bits = unknown; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5856 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5857 if test "${ac_cv_sys_large_files+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 while :; do
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5871 ? 1 : -1];
5873 main ()
5877 return 0;
5879 _ACEOF
5880 if ac_fn_cxx_try_compile "$LINENO"; then :
5881 ac_cv_sys_large_files=no; break
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #define _LARGE_FILES 1
5887 #include <sys/types.h>
5888 /* Check that off_t can represent 2**63 - 1 correctly.
5889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5890 since some C++ compilers masquerading as C compilers
5891 incorrectly reject 9223372036854775807. */
5892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5894 && LARGE_OFF_T % 2147483647 == 1)
5895 ? 1 : -1];
5897 main ()
5901 return 0;
5903 _ACEOF
5904 if ac_fn_cxx_try_compile "$LINENO"; then :
5905 ac_cv_sys_large_files=1; break
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908 ac_cv_sys_large_files=unknown
5909 break
5910 done
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5913 $as_echo "$ac_cv_sys_large_files" >&6; }
5914 case $ac_cv_sys_large_files in #(
5915 no | unknown) ;;
5917 cat >>confdefs.h <<_ACEOF
5918 #define _LARGE_FILES $ac_cv_sys_large_files
5919 _ACEOF
5921 esac
5922 rm -rf conftest*
5927 # sizeof(char) is 1 by definition.
5928 # The cast to long int works around a bug in the HP C Compiler
5929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5931 # This bug is HP SR number 8606223364.
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5933 $as_echo_n "checking size of void *... " >&6; }
5934 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5939 else
5940 if test "$ac_cv_type_void_p" = yes; then
5941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5943 { as_fn_set_status 77
5944 as_fn_error "cannot compute sizeof (void *)
5945 See \`config.log' for more details." "$LINENO" 5; }; }
5946 else
5947 ac_cv_sizeof_void_p=0
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5953 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5957 cat >>confdefs.h <<_ACEOF
5958 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5959 _ACEOF
5962 # The cast to long int works around a bug in the HP C Compiler
5963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5965 # This bug is HP SR number 8606223364.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5967 $as_echo_n "checking size of short... " >&6; }
5968 if test "${ac_cv_sizeof_short+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5973 else
5974 if test "$ac_cv_type_short" = yes; then
5975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5977 { as_fn_set_status 77
5978 as_fn_error "cannot compute sizeof (short)
5979 See \`config.log' for more details." "$LINENO" 5; }; }
5980 else
5981 ac_cv_sizeof_short=0
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5987 $as_echo "$ac_cv_sizeof_short" >&6; }
5991 cat >>confdefs.h <<_ACEOF
5992 #define SIZEOF_SHORT $ac_cv_sizeof_short
5993 _ACEOF
5996 # The cast to long int works around a bug in the HP C Compiler
5997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5999 # This bug is HP SR number 8606223364.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6001 $as_echo_n "checking size of int... " >&6; }
6002 if test "${ac_cv_sizeof_int+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6007 else
6008 if test "$ac_cv_type_int" = yes; then
6009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6011 { as_fn_set_status 77
6012 as_fn_error "cannot compute sizeof (int)
6013 See \`config.log' for more details." "$LINENO" 5; }; }
6014 else
6015 ac_cv_sizeof_int=0
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6021 $as_echo "$ac_cv_sizeof_int" >&6; }
6025 cat >>confdefs.h <<_ACEOF
6026 #define SIZEOF_INT $ac_cv_sizeof_int
6027 _ACEOF
6030 # The cast to long int works around a bug in the HP C Compiler
6031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6033 # This bug is HP SR number 8606223364.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6035 $as_echo_n "checking size of long... " >&6; }
6036 if test "${ac_cv_sizeof_long+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6038 else
6039 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6041 else
6042 if test "$ac_cv_type_long" = yes; then
6043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6045 { as_fn_set_status 77
6046 as_fn_error "cannot compute sizeof (long)
6047 See \`config.log' for more details." "$LINENO" 5; }; }
6048 else
6049 ac_cv_sizeof_long=0
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6055 $as_echo "$ac_cv_sizeof_long" >&6; }
6059 cat >>confdefs.h <<_ACEOF
6060 #define SIZEOF_LONG $ac_cv_sizeof_long
6061 _ACEOF
6064 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6065 if test "x$ac_cv_type_long_long" = x""yes; then :
6067 cat >>confdefs.h <<_ACEOF
6068 #define HAVE_LONG_LONG 1
6069 _ACEOF
6071 # The cast to long int works around a bug in the HP C Compiler
6072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6074 # This bug is HP SR number 8606223364.
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6076 $as_echo_n "checking size of long long... " >&6; }
6077 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6082 else
6083 if test "$ac_cv_type_long_long" = yes; then
6084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6086 { as_fn_set_status 77
6087 as_fn_error "cannot compute sizeof (long long)
6088 See \`config.log' for more details." "$LINENO" 5; }; }
6089 else
6090 ac_cv_sizeof_long_long=0
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6096 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6100 cat >>confdefs.h <<_ACEOF
6101 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6102 _ACEOF
6107 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6108 case $ac_cv_c_int8_t in #(
6109 no|yes) ;; #(
6112 cat >>confdefs.h <<_ACEOF
6113 #define int8_t $ac_cv_c_int8_t
6114 _ACEOF
6116 esac
6118 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6119 case $ac_cv_c_int16_t in #(
6120 no|yes) ;; #(
6123 cat >>confdefs.h <<_ACEOF
6124 #define int16_t $ac_cv_c_int16_t
6125 _ACEOF
6127 esac
6129 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6130 case $ac_cv_c_int32_t in #(
6131 no|yes) ;; #(
6134 cat >>confdefs.h <<_ACEOF
6135 #define int32_t $ac_cv_c_int32_t
6136 _ACEOF
6138 esac
6140 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6141 case $ac_cv_c_int64_t in #(
6142 no|yes) ;; #(
6145 cat >>confdefs.h <<_ACEOF
6146 #define int64_t $ac_cv_c_int64_t
6147 _ACEOF
6149 esac
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6153 $as_echo_n "checking for long long int... " >&6; }
6154 if test "${ac_cv_type_long_long_int+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 /* For now, do not test the preprocessor; as of 2007 there are too many
6161 implementations with broken preprocessors. Perhaps this can
6162 be revisited in 2012. In the meantime, code should not expect
6163 #if to work with literals wider than 32 bits. */
6164 /* Test literals. */
6165 long long int ll = 9223372036854775807ll;
6166 long long int nll = -9223372036854775807LL;
6167 unsigned long long int ull = 18446744073709551615ULL;
6168 /* Test constant expressions. */
6169 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6170 ? 1 : -1)];
6171 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6172 ? 1 : -1)];
6173 int i = 63;
6175 main ()
6177 /* Test availability of runtime routines for shift and division. */
6178 long long int llmax = 9223372036854775807ll;
6179 unsigned long long int ullmax = 18446744073709551615ull;
6180 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6181 | (llmax / ll) | (llmax % ll)
6182 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6183 | (ullmax / ull) | (ullmax % ull));
6185 return 0;
6188 _ACEOF
6189 if ac_fn_cxx_try_link "$LINENO"; then :
6190 if test "$cross_compiling" = yes; then :
6191 ac_cv_type_long_long_int=yes
6192 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <limits.h>
6196 #ifndef LLONG_MAX
6197 # define HALF \
6198 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6199 # define LLONG_MAX (HALF - 1 + HALF)
6200 #endif
6202 main ()
6204 long long int n = 1;
6205 int i;
6206 for (i = 0; ; i++)
6208 long long int m = n << i;
6209 if (m >> i != n)
6210 return 1;
6211 if (LLONG_MAX / 2 < m)
6212 break;
6214 return 0;
6216 return 0;
6218 _ACEOF
6219 if ac_fn_cxx_try_run "$LINENO"; then :
6220 ac_cv_type_long_long_int=yes
6221 else
6222 ac_cv_type_long_long_int=no
6224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6225 conftest.$ac_objext conftest.beam conftest.$ac_ext
6228 else
6229 ac_cv_type_long_long_int=no
6231 rm -f core conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6235 $as_echo "$ac_cv_type_long_long_int" >&6; }
6236 if test $ac_cv_type_long_long_int = yes; then
6238 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6244 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6245 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6247 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6249 else
6250 test $ac_cv_type_long_long_int = yes \
6251 && ac_type='long long int' \
6252 || ac_type='long int'
6254 cat >>confdefs.h <<_ACEOF
6255 #define intmax_t $ac_type
6256 _ACEOF
6262 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6263 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6265 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6267 else
6268 for ac_type in 'int' 'long int' 'long long int'; do
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 $ac_includes_default
6273 main ()
6275 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6276 test_array [0] = 0
6279 return 0;
6281 _ACEOF
6282 if ac_fn_cxx_try_compile "$LINENO"; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define intptr_t $ac_type
6286 _ACEOF
6288 ac_type=
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 test -z "$ac_type" && break
6292 done
6296 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6297 case $ac_cv_c_uint8_t in #(
6298 no|yes) ;; #(
6301 $as_echo "#define _UINT8_T 1" >>confdefs.h
6304 cat >>confdefs.h <<_ACEOF
6305 #define uint8_t $ac_cv_c_uint8_t
6306 _ACEOF
6308 esac
6310 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6311 case $ac_cv_c_uint16_t in #(
6312 no|yes) ;; #(
6316 cat >>confdefs.h <<_ACEOF
6317 #define uint16_t $ac_cv_c_uint16_t
6318 _ACEOF
6320 esac
6322 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6323 case $ac_cv_c_uint32_t in #(
6324 no|yes) ;; #(
6327 $as_echo "#define _UINT32_T 1" >>confdefs.h
6330 cat >>confdefs.h <<_ACEOF
6331 #define uint32_t $ac_cv_c_uint32_t
6332 _ACEOF
6334 esac
6336 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6337 case $ac_cv_c_uint64_t in #(
6338 no|yes) ;; #(
6341 $as_echo "#define _UINT64_T 1" >>confdefs.h
6344 cat >>confdefs.h <<_ACEOF
6345 #define uint64_t $ac_cv_c_uint64_t
6346 _ACEOF
6348 esac
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6352 $as_echo_n "checking for unsigned long long int... " >&6; }
6353 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6359 /* For now, do not test the preprocessor; as of 2007 there are too many
6360 implementations with broken preprocessors. Perhaps this can
6361 be revisited in 2012. In the meantime, code should not expect
6362 #if to work with literals wider than 32 bits. */
6363 /* Test literals. */
6364 long long int ll = 9223372036854775807ll;
6365 long long int nll = -9223372036854775807LL;
6366 unsigned long long int ull = 18446744073709551615ULL;
6367 /* Test constant expressions. */
6368 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6369 ? 1 : -1)];
6370 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6371 ? 1 : -1)];
6372 int i = 63;
6374 main ()
6376 /* Test availability of runtime routines for shift and division. */
6377 long long int llmax = 9223372036854775807ll;
6378 unsigned long long int ullmax = 18446744073709551615ull;
6379 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6380 | (llmax / ll) | (llmax % ll)
6381 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6382 | (ullmax / ull) | (ullmax % ull));
6384 return 0;
6387 _ACEOF
6388 if ac_fn_cxx_try_link "$LINENO"; then :
6389 ac_cv_type_unsigned_long_long_int=yes
6390 else
6391 ac_cv_type_unsigned_long_long_int=no
6393 rm -f core conftest.err conftest.$ac_objext \
6394 conftest$ac_exeext conftest.$ac_ext
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6397 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6398 if test $ac_cv_type_unsigned_long_long_int = yes; then
6400 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6406 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6407 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6409 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6411 else
6412 test $ac_cv_type_unsigned_long_long_int = yes \
6413 && ac_type='unsigned long long int' \
6414 || ac_type='unsigned long int'
6416 cat >>confdefs.h <<_ACEOF
6417 #define uintmax_t $ac_type
6418 _ACEOF
6424 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6425 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6427 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6429 else
6430 for ac_type in 'unsigned int' 'unsigned long int' \
6431 'unsigned long long int'; do
6432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 $ac_includes_default
6436 main ()
6438 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6439 test_array [0] = 0
6442 return 0;
6444 _ACEOF
6445 if ac_fn_cxx_try_compile "$LINENO"; then :
6447 cat >>confdefs.h <<_ACEOF
6448 #define uintptr_t $ac_type
6449 _ACEOF
6451 ac_type=
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 test -z "$ac_type" && break
6455 done
6471 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6472 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6475 # check what underlying integer type int64_t uses
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6477 $as_echo_n "checking for int64_t underlying type... " >&6; }
6478 if test "${ac_cv_int64_t_type+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6485 #ifdef HAVE_STDINT_H
6486 #include <stdint.h>
6487 #endif
6488 template <typename T> struct X { };
6489 template <>
6490 struct X<long> { typedef long t; };
6493 main ()
6495 X<int64_t>::t x;
6497 return 0;
6499 _ACEOF
6500 if ac_fn_cxx_try_compile "$LINENO"; then :
6501 ac_cv_int64_t_type=long
6502 else
6503 ac_cv_int64_t_type="long long"
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6508 $as_echo "$ac_cv_int64_t_type" >&6; }
6509 if test "$ac_cv_int64_t_type" = "long"; then
6511 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6513 else
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6517 #ifdef HAVE_STDINT_H
6518 #include <stdint.h>
6519 #endif
6520 template <typename T> struct X { };
6521 template <>
6522 struct X<long long> { typedef long long t; };
6525 main ()
6527 X<int64_t>::t x;
6529 return 0;
6531 _ACEOF
6532 if ac_fn_cxx_try_compile "$LINENO"; then :
6534 else
6535 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6541 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6542 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544 else
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6549 #include <utility>
6552 main ()
6554 int a, b; std::swap(a,b);
6556 return 0;
6558 _ACEOF
6559 if ac_fn_cxx_try_compile "$LINENO"; then :
6560 ac_cv_std_swap_in_utility=yes
6561 else
6562 ac_cv_std_swap_in_utility=no
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6567 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6568 if test $ac_cv_std_swap_in_utility = yes; then
6570 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6574 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6575 # If the host compiler is affected by the bug, and we build with optimization
6576 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6577 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6578 # Since there is no reliable feature check for the presence of this bug,
6579 # we simply use a GCC version number check. (This should never trigger for
6580 # stages 2 or 3 of a native bootstrap.)
6581 aliasing_flags=
6582 if test "$GCC" = yes; then
6583 saved_CXXFLAGS="$CXXFLAGS"
6585 # The following test compilation will succeed if and only if $CXX accepts
6586 # -fno-strict-aliasing *and* is older than GCC 4.3.
6587 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6589 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6593 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6594 #error compiler not affected by placement new aliasing bug
6595 #endif
6597 _ACEOF
6598 if ac_fn_cxx_try_compile "$LINENO"; then :
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6600 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 CXXFLAGS="$saved_CXXFLAGS"
6613 # ---------------------
6614 # Warnings and checking
6615 # ---------------------
6617 # Check $CC warning features (if it's GCC).
6618 # We want to use -pedantic, but we don't want warnings about
6619 # * 'long long'
6620 # * variadic macros
6621 # * overlong strings
6622 # * C++11 narrowing conversions in { }
6623 # So, we only use -pedantic if we can disable those warnings.
6625 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6626 # Check whether --enable-build-format-warnings was given.
6627 if test "${enable_build_format_warnings+set}" = set; then :
6628 enableval=$enable_build_format_warnings;
6629 else
6630 enable_build_format_warnings=yes
6633 if test $enable_build_format_warnings = no; then :
6634 wf_opt=-Wno-format
6635 else
6636 wf_opt=
6638 ac_ext=cpp
6639 ac_cpp='$CXXCPP $CPPFLAGS'
6640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6644 loose_warn=
6645 save_CXXFLAGS="$CXXFLAGS"
6646 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6647 # Do the check with the no- prefix removed since gcc silently
6648 # accepts any -Wno-* option on purpose
6649 case $real_option in
6650 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6651 *) option=$real_option ;;
6652 esac
6653 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6656 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6657 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 CXXFLAGS="$option"
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6665 main ()
6669 return 0;
6671 _ACEOF
6672 if ac_fn_cxx_try_compile "$LINENO"; then :
6673 eval "$as_acx_Woption=yes"
6674 else
6675 eval "$as_acx_Woption=no"
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 eval ac_res=\$$as_acx_Woption
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6682 $as_echo "$ac_res" >&6; }
6683 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6684 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6686 done
6687 CXXFLAGS="$save_CXXFLAGS"
6688 ac_ext=cpp
6689 ac_cpp='$CXXCPP $CPPFLAGS'
6690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6696 ac_ext=c
6697 ac_cpp='$CPP $CPPFLAGS'
6698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6702 c_loose_warn=
6703 save_CFLAGS="$CFLAGS"
6704 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6705 # Do the check with the no- prefix removed since gcc silently
6706 # accepts any -Wno-* option on purpose
6707 case $real_option in
6708 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6709 *) option=$real_option ;;
6710 esac
6711 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6714 $as_echo_n "checking whether $CC supports $option... " >&6; }
6715 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 CFLAGS="$option"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6723 main ()
6727 return 0;
6729 _ACEOF
6730 if ac_fn_c_try_compile "$LINENO"; then :
6731 eval "$as_acx_Woption=yes"
6732 else
6733 eval "$as_acx_Woption=no"
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 eval ac_res=\$$as_acx_Woption
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6740 $as_echo "$ac_res" >&6; }
6741 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6742 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6744 done
6745 CFLAGS="$save_CFLAGS"
6746 ac_ext=cpp
6747 ac_cpp='$CXXCPP $CPPFLAGS'
6748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6753 ac_ext=cpp
6754 ac_cpp='$CXXCPP $CPPFLAGS'
6755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6759 strict_warn=
6760 save_CXXFLAGS="$CXXFLAGS"
6761 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6762 # Do the check with the no- prefix removed since gcc silently
6763 # accepts any -Wno-* option on purpose
6764 case $real_option in
6765 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6766 *) option=$real_option ;;
6767 esac
6768 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6771 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6772 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 CXXFLAGS="$option"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6780 main ()
6784 return 0;
6786 _ACEOF
6787 if ac_fn_cxx_try_compile "$LINENO"; then :
6788 eval "$as_acx_Woption=yes"
6789 else
6790 eval "$as_acx_Woption=no"
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 eval ac_res=\$$as_acx_Woption
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6797 $as_echo "$ac_res" >&6; }
6798 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6799 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6801 done
6802 CXXFLAGS="$save_CXXFLAGS"
6803 ac_ext=cpp
6804 ac_cpp='$CXXCPP $CPPFLAGS'
6805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6810 ac_ext=c
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6816 c_strict_warn=
6817 save_CFLAGS="$CFLAGS"
6818 for real_option in -Wold-style-definition -Wc++-compat; do
6819 # Do the check with the no- prefix removed since gcc silently
6820 # accepts any -Wno-* option on purpose
6821 case $real_option in
6822 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6823 *) option=$real_option ;;
6824 esac
6825 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6828 $as_echo_n "checking whether $CC supports $option... " >&6; }
6829 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6830 $as_echo_n "(cached) " >&6
6831 else
6832 CFLAGS="$option"
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6837 main ()
6841 return 0;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 eval "$as_acx_Woption=yes"
6846 else
6847 eval "$as_acx_Woption=no"
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 eval ac_res=\$$as_acx_Woption
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6854 $as_echo "$ac_res" >&6; }
6855 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6856 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6858 done
6859 CFLAGS="$save_CFLAGS"
6860 ac_ext=cpp
6861 ac_cpp='$CXXCPP $CPPFLAGS'
6862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6867 ac_ext=cpp
6868 ac_cpp='$CXXCPP $CPPFLAGS'
6869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6873 # Do the check with the no- prefix removed from the warning options
6874 # since gcc silently accepts any -Wno-* option on purpose
6875 if test "$GXX" = yes; then :
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6877 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6878 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 save_CXXFLAGS="$CXXFLAGS"
6882 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6887 main ()
6891 return 0;
6893 _ACEOF
6894 if ac_fn_cxx_try_compile "$LINENO"; then :
6895 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6896 else
6897 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900 CXXFLAGS="$save_CXXFLAGS"
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6903 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6904 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6905 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6909 ac_ext=cpp
6910 ac_cpp='$CXXCPP $CPPFLAGS'
6911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6916 ac_ext=cpp
6917 ac_cpp='$CXXCPP $CPPFLAGS'
6918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6922 # Check whether --enable-werror-always was given.
6923 if test "${enable_werror_always+set}" = set; then :
6924 enableval=$enable_werror_always;
6925 else
6926 enable_werror_always=no
6929 if test $enable_werror_always = yes; then :
6930 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6933 ac_ext=cpp
6934 ac_cpp='$CXXCPP $CPPFLAGS'
6935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6941 # The above macros do nothing if the compiler is not GCC. However, the
6942 # Makefile has more goo to add other flags, so these variables are used
6943 # to enable warnings only for GCC.
6944 warn_cflags=
6945 warn_cxxflags=
6946 if test "x$GCC" = "xyes"; then
6947 warn_cflags='$(GCC_WARN_CFLAGS)'
6948 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6953 # Disable exceptions and RTTI if building with g++
6954 ac_ext=c
6955 ac_cpp='$CPP $CPPFLAGS'
6956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960 noexception_flags=
6961 save_CFLAGS="$CFLAGS"
6962 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6963 # Do the check with the no- prefix removed since gcc silently
6964 # accepts any -Wno-* option on purpose
6965 case $real_option in
6966 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6967 *) option=$real_option ;;
6968 esac
6969 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6972 $as_echo_n "checking whether $CC supports $option... " >&6; }
6973 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 CFLAGS="$option"
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6981 main ()
6985 return 0;
6987 _ACEOF
6988 if ac_fn_c_try_compile "$LINENO"; then :
6989 eval "$as_acx_Woption=yes"
6990 else
6991 eval "$as_acx_Woption=no"
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 eval ac_res=\$$as_acx_Woption
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6998 $as_echo "$ac_res" >&6; }
6999 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7000 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7002 done
7003 CFLAGS="$save_CFLAGS"
7004 ac_ext=cpp
7005 ac_cpp='$CXXCPP $CPPFLAGS'
7006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7012 # Enable expensive internal checks
7013 is_release=
7014 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7015 is_release=yes
7018 # Check whether --enable-checking was given.
7019 if test "${enable_checking+set}" = set; then :
7020 enableval=$enable_checking; ac_checking_flags="${enableval}"
7021 else
7023 # Determine the default checks.
7024 if test x$is_release = x ; then
7025 ac_checking_flags=yes,extra
7026 else
7027 ac_checking_flags=release
7031 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7032 for check in release $ac_checking_flags
7034 case $check in
7035 # these set all the flags to specific states
7036 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7037 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7038 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7039 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7040 ac_tree_checking=1 ; ac_valgrind_checking= ;
7041 ac_types_checking=1 ;;
7042 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7043 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7044 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7045 ac_rtlflag_checking= ; ac_runtime_checking= ;
7046 ac_tree_checking= ; ac_valgrind_checking= ;
7047 ac_types_checking= ;;
7048 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7049 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7050 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7051 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7052 ac_tree_checking=1 ; ac_valgrind_checking= ;
7053 ac_types_checking=1 ;;
7054 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7055 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7056 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7057 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7058 ac_tree_checking= ; ac_valgrind_checking= ;
7059 ac_types_checking= ;;
7060 # these enable particular checks
7061 assert) ac_assert_checking=1 ;;
7062 df) ac_df_checking=1 ;;
7063 extra) ac_extra_checking=1 ;;
7064 fold) ac_fold_checking=1 ;;
7065 gc) ac_gc_checking=1 ;;
7066 gcac) ac_gc_always_collect=1 ;;
7067 gimple) ac_gimple_checking=1 ;;
7068 misc) ac_checking=1 ;;
7069 rtl) ac_rtl_checking=1 ;;
7070 rtlflag) ac_rtlflag_checking=1 ;;
7071 runtime) ac_runtime_checking=1 ;;
7072 tree) ac_tree_checking=1 ;;
7073 types) ac_types_checking=1 ;;
7074 valgrind) ac_valgrind_checking=1 ;;
7075 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7076 esac
7077 done
7078 IFS="$ac_save_IFS"
7080 nocommon_flag=""
7081 if test x$ac_checking != x ; then
7083 $as_echo "#define CHECKING_P 1" >>confdefs.h
7085 nocommon_flag=-fno-common
7086 else
7087 $as_echo "#define CHECKING_P 0" >>confdefs.h
7091 if test x$ac_extra_checking != x ; then
7093 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7095 else
7096 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
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-vtable-verify was given.
7546 if test "${enable_vtable_verify+set}" = set; then :
7547 enableval=$enable_vtable_verify;
7548 else
7549 enable_vtable_verify=no
7552 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7554 cat >>confdefs.h <<_ACEOF
7555 #define ENABLE_VTABLE_VERIFY $vtable_verify
7556 _ACEOF
7559 # Check whether --enable-objc-gc was given.
7560 if test "${enable_objc_gc+set}" = set; then :
7561 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7562 objc_boehm_gc=''
7563 else
7564 objc_boehm_gc=1
7566 else
7567 objc_boehm_gc=''
7572 # Check whether --with-dwarf2 was given.
7573 if test "${with_dwarf2+set}" = set; then :
7574 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7575 else
7576 dwarf2=no
7580 # Check whether --enable-shared was given.
7581 if test "${enable_shared+set}" = set; then :
7582 enableval=$enable_shared;
7583 case $enable_shared in
7584 yes | no) ;;
7586 enable_shared=no
7587 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7588 for pkg in $enableval; do
7589 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7590 enable_shared=yes
7592 done
7593 IFS="$ac_save_ifs"
7595 esac
7597 else
7598 enable_shared=yes
7604 # Check whether --with-specs was given.
7605 if test "${with_specs+set}" = set; then :
7606 withval=$with_specs; CONFIGURE_SPECS=$withval
7607 else
7608 CONFIGURE_SPECS=
7616 # Check whether --with-pkgversion was given.
7617 if test "${with_pkgversion+set}" = set; then :
7618 withval=$with_pkgversion; case "$withval" in
7619 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7620 no) PKGVERSION= ;;
7621 *) PKGVERSION="($withval) " ;;
7622 esac
7623 else
7624 PKGVERSION="(GCC) "
7632 # Check whether --with-bugurl was given.
7633 if test "${with_bugurl+set}" = set; then :
7634 withval=$with_bugurl; case "$withval" in
7635 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7636 no) BUGURL=
7638 *) BUGURL="$withval"
7640 esac
7641 else
7642 BUGURL="http://gcc.gnu.org/bugs.html"
7646 case ${BUGURL} in
7648 REPORT_BUGS_TO=
7649 REPORT_BUGS_TEXI=
7652 REPORT_BUGS_TO="<$BUGURL>"
7653 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7655 esac;
7660 # Sanity check enable_languages in case someone does not run the toplevel
7661 # configure # script.
7662 # Check whether --enable-languages was given.
7663 if test "${enable_languages+set}" = set; then :
7664 enableval=$enable_languages; case ,${enable_languages}, in
7665 ,,|,yes,)
7666 # go safe -- we cannot be much sure without the toplevel
7667 # configure's
7668 # analysis of which target libs are present and usable
7669 enable_languages=c
7671 *,all,*)
7672 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7674 *,c,*)
7677 enable_languages=c,${enable_languages}
7679 esac
7680 else
7681 enable_languages=c
7685 if test x"$enable_as_accelerator_for" != x; then
7687 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7689 enable_as_accelerator=yes
7690 case "${target}" in
7691 *-intelmicemul-*)
7692 # In this case we expect offload compiler to be built as native, so we
7693 # need to rename the driver to avoid clashes with host's drivers.
7694 program_transform_name="s&^&${target}-&" ;;
7695 esac
7696 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7697 program_transform_name=`echo $program_transform_name | sed $sedscript`
7698 accel_dir_suffix=/accel/${target_noncanonical}
7699 real_target_noncanonical=${enable_as_accelerator_for}
7705 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7706 tgt=`echo $tgt | sed 's/=.*//'`
7708 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7709 enable_hsa=1
7710 else
7711 enable_offloading=1
7714 if test x"$offload_targets" = x; then
7715 offload_targets=$tgt
7716 else
7717 offload_targets="$offload_targets,$tgt"
7719 done
7721 cat >>confdefs.h <<_ACEOF
7722 #define OFFLOAD_TARGETS "$offload_targets"
7723 _ACEOF
7725 if test x"$enable_offloading" != x; then
7727 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7729 else
7731 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7735 if test x"$enable_hsa" = x1 ; then
7737 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7742 # Check whether --with-multilib-list was given.
7743 if test "${with_multilib_list+set}" = set; then :
7744 withval=$with_multilib_list; :
7745 else
7746 with_multilib_list=default
7750 # -------------------------
7751 # Checks for other programs
7752 # -------------------------
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7755 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7756 set x ${MAKE-make}
7757 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7758 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 cat >conftest.make <<\_ACEOF
7762 SHELL = /bin/sh
7763 all:
7764 @echo '@@@%%%=$(MAKE)=@@@%%%'
7765 _ACEOF
7766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7767 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7768 *@@@%%%=?*=@@@%%%*)
7769 eval ac_cv_prog_make_${ac_make}_set=yes;;
7771 eval ac_cv_prog_make_${ac_make}_set=no;;
7772 esac
7773 rm -f conftest.make
7775 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7777 $as_echo "yes" >&6; }
7778 SET_MAKE=
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 SET_MAKE="MAKE=${MAKE-make}"
7786 # Find some useful tools
7787 for ac_prog in gawk mawk nawk awk
7789 # Extract the first word of "$ac_prog", so it can be a program name with args.
7790 set dummy $ac_prog; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if test "${ac_cv_prog_AWK+set}" = set; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$AWK"; then
7797 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_prog_AWK="$ac_prog"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7810 done
7811 done
7812 IFS=$as_save_IFS
7816 AWK=$ac_cv_prog_AWK
7817 if test -n "$AWK"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7819 $as_echo "$AWK" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7826 test -n "$AWK" && break
7827 done
7829 # We need awk to create options.c and options.h.
7830 # Bail out if it's missing.
7831 case ${AWK} in
7832 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7833 esac
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7836 $as_echo_n "checking whether ln -s works... " >&6; }
7837 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840 rm -f conftestdata_t
7841 echo >conftestdata_f
7842 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7843 then
7844 gcc_cv_prog_LN_S="ln -s"
7845 else
7846 if ln conftestdata_f conftestdata_t 2>/dev/null
7847 then
7848 gcc_cv_prog_LN_S=ln
7849 else
7850 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7851 then
7852 gcc_cv_prog_LN_S="cp -p"
7853 else
7854 gcc_cv_prog_LN_S=cp
7858 rm -f conftestdata_f conftestdata_t
7861 LN_S="$gcc_cv_prog_LN_S"
7862 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7864 $as_echo "yes" >&6; }
7865 else
7866 if test "$gcc_cv_prog_LN_S" = "ln"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7868 $as_echo "no, using ln" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7871 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7876 $as_echo_n "checking whether ln works... " >&6; }
7877 if test "${acx_cv_prog_LN+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 rm -f conftestdata_t
7881 echo >conftestdata_f
7882 if ln conftestdata_f conftestdata_t 2>/dev/null
7883 then
7884 acx_cv_prog_LN=ln
7885 else
7886 acx_cv_prog_LN=no
7888 rm -f conftestdata_f conftestdata_t
7891 if test $acx_cv_prog_LN = no; then
7892 LN="$LN_S"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7894 $as_echo "no, using $LN" >&6; }
7895 else
7896 LN="$acx_cv_prog_LN"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898 $as_echo "yes" >&6; }
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 if test -n "$RANLIB"; then
7910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7923 done
7924 done
7925 IFS=$as_save_IFS
7929 RANLIB=$ac_cv_prog_RANLIB
7930 if test -n "$RANLIB"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7932 $as_echo "$RANLIB" >&6; }
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7940 if test -z "$ac_cv_prog_RANLIB"; then
7941 ac_ct_RANLIB=$RANLIB
7942 # Extract the first word of "ranlib", so it can be a program name with args.
7943 set dummy ranlib; ac_word=$2
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945 $as_echo_n "checking for $ac_word... " >&6; }
7946 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7948 else
7949 if test -n "$ac_ct_RANLIB"; then
7950 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7951 else
7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7959 ac_cv_prog_ac_ct_RANLIB="ranlib"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7963 done
7964 done
7965 IFS=$as_save_IFS
7969 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7970 if test -n "$ac_ct_RANLIB"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7972 $as_echo "$ac_ct_RANLIB" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7978 if test "x$ac_ct_RANLIB" = x; then
7979 RANLIB=":"
7980 else
7981 case $cross_compiling:$ac_tool_warned in
7982 yes:)
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985 ac_tool_warned=yes ;;
7986 esac
7987 RANLIB=$ac_ct_RANLIB
7989 else
7990 RANLIB="$ac_cv_prog_RANLIB"
7993 ranlib_flags=""
7996 # Find a good install program. We prefer a C program (faster),
7997 # so one script is as good as another. But avoid the broken or
7998 # incompatible versions:
7999 # SysV /etc/install, /usr/sbin/install
8000 # SunOS /usr/etc/install
8001 # IRIX /sbin/install
8002 # AIX /bin/install
8003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8005 # ./install, which can be erroneously created by make from ./install.sh.
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8007 $as_echo_n "checking for a BSD compatible install... " >&6; }
8008 if test -z "$INSTALL"; then
8009 if test "${ac_cv_path_install+set}" = set; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8013 for ac_dir in $PATH; do
8014 # Account for people who put trailing slashes in PATH elements.
8015 case "$ac_dir/" in
8016 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8018 # OSF1 and SCO ODT 3.0 have their own names for install.
8019 for ac_prog in ginstall scoinst install; do
8020 if test -f $ac_dir/$ac_prog; then
8021 if test $ac_prog = install &&
8022 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8023 # AIX install. It has an incompatible calling convention.
8024 # OSF/1 installbsd also uses dspmsg, but is usable.
8026 else
8027 ac_cv_path_install="$ac_dir/$ac_prog -c"
8028 break 2
8031 done
8033 esac
8034 done
8035 IFS="$ac_save_IFS"
8038 if test "${ac_cv_path_install+set}" = set; then
8039 INSTALL="$ac_cv_path_install"
8040 else
8041 # As a last resort, use the slow shell script. We don't cache a
8042 # path for INSTALL within a source directory, because that will
8043 # break other packages using the cache if that directory is
8044 # removed, or if the path is relative.
8045 INSTALL="$ac_install_sh"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8049 $as_echo "$INSTALL" >&6; }
8051 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8052 # It thinks the first close brace ends the variable substitution.
8053 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8058 # See if cmp has --ignore-initial.
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8060 $as_echo_n "checking for cmp's capabilities... " >&6; }
8061 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 echo abfoo >t1
8065 echo cdfoo >t2
8066 gcc_cv_prog_cmp_skip=slowcompare
8067 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8068 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8070 else
8071 gcc_cv_prog_cmp_skip=gnucompare
8074 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8075 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8076 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8078 else
8079 gcc_cv_prog_cmp_skip=fastcompare
8083 rm t1 t2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8087 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8088 make_compare_target=$gcc_cv_prog_cmp_skip
8092 # See if we have the mktemp command.
8093 # Extract the first word of "mktemp", so it can be a program name with args.
8094 set dummy mktemp; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 if test -n "$have_mktemp_command"; then
8101 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8110 ac_cv_prog_have_mktemp_command="yes"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8114 done
8115 done
8116 IFS=$as_save_IFS
8118 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8121 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8122 if test -n "$have_mktemp_command"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8124 $as_echo "$have_mktemp_command" >&6; }
8125 else
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 $as_echo "no" >&6; }
8132 # See if makeinfo has been installed and is modern enough
8133 # that we can use it.
8135 # Extract the first word of "makeinfo", so it can be a program name with args.
8136 set dummy makeinfo; ac_word=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138 $as_echo_n "checking for $ac_word... " >&6; }
8139 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 if test -n "$MAKEINFO"; then
8143 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8152 ac_cv_prog_MAKEINFO="makeinfo"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8156 done
8157 done
8158 IFS=$as_save_IFS
8162 MAKEINFO=$ac_cv_prog_MAKEINFO
8163 if test -n "$MAKEINFO"; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8165 $as_echo "$MAKEINFO" >&6; }
8166 else
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8172 if test -n "$MAKEINFO"; then
8173 # Found it, now check the version.
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8175 $as_echo_n "checking for modern makeinfo... " >&6; }
8176 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8180 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8182 case $ac_prog_version in
8183 '') gcc_cv_prog_makeinfo_modern=no;;
8184 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8185 *) gcc_cv_prog_makeinfo_modern=no;;
8186 esac
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8190 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8191 else
8192 gcc_cv_prog_makeinfo_modern=no
8194 if test $gcc_cv_prog_makeinfo_modern = no; then
8195 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8198 if test $gcc_cv_prog_makeinfo_modern = no; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8200 *** Makeinfo is missing or too old.
8201 *** Info documentation will not be built." >&5
8202 $as_echo "$as_me: WARNING:
8203 *** Makeinfo is missing or too old.
8204 *** Info documentation will not be built." >&2;}
8205 BUILD_INFO=
8206 else
8207 BUILD_INFO=info
8211 # Is pod2man recent enough to regenerate manpages?
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8213 $as_echo_n "checking for recent Pod::Man... " >&6; }
8214 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8216 $as_echo "yes" >&6; }
8217 GENERATED_MANPAGES=generated-manpages
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8221 GENERATED_MANPAGES=
8225 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8227 # How about lex?
8228 for ac_prog in flex
8230 # Extract the first word of "$ac_prog", so it can be a program name with args.
8231 set dummy $ac_prog; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_FLEX+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 if test -n "$FLEX"; then
8238 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247 ac_cv_prog_FLEX="$ac_prog"
8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8251 done
8252 done
8253 IFS=$as_save_IFS
8257 FLEX=$ac_cv_prog_FLEX
8258 if test -n "$FLEX"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8260 $as_echo "$FLEX" >&6; }
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8267 test -n "$FLEX" && break
8268 done
8269 test -n "$FLEX" || FLEX="$MISSING flex"
8272 # Bison?
8273 for ac_prog in bison
8275 # Extract the first word of "$ac_prog", so it can be a program name with args.
8276 set dummy $ac_prog; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if test "${ac_cv_prog_BISON+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 if test -n "$BISON"; then
8283 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8292 ac_cv_prog_BISON="$ac_prog"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8296 done
8297 done
8298 IFS=$as_save_IFS
8302 BISON=$ac_cv_prog_BISON
8303 if test -n "$BISON"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8305 $as_echo "$BISON" >&6; }
8306 else
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8312 test -n "$BISON" && break
8313 done
8314 test -n "$BISON" || BISON="$MISSING bison"
8317 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8318 # check for build == host before using them.
8320 # NM
8321 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8322 && test -d ../binutils ; then
8323 NM='${objdir}/../binutils/nm-new'
8324 else
8325 # Extract the first word of "nm", so it can be a program name with args.
8326 set dummy nm; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if test "${ac_cv_prog_NM+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$NM"; then
8333 ac_cv_prog_NM="$NM" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8342 ac_cv_prog_NM="nm"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8346 done
8347 done
8348 IFS=$as_save_IFS
8350 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8353 NM=$ac_cv_prog_NM
8354 if test -n "$NM"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8356 $as_echo "$NM" >&6; }
8357 else
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8365 # AR
8366 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8367 && test -d ../binutils ; then
8368 AR='${objdir}/../binutils/ar'
8369 else
8370 # Extract the first word of "ar", so it can be a program name with args.
8371 set dummy ar; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if test "${ac_cv_prog_AR+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 if test -n "$AR"; then
8378 ac_cv_prog_AR="$AR" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_prog_AR="ar"
8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8391 done
8392 done
8393 IFS=$as_save_IFS
8395 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8398 AR=$ac_cv_prog_AR
8399 if test -n "$AR"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8401 $as_echo "$AR" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8410 # The jit documentation looks better if built with sphinx, but can be
8411 # built with texinfo if sphinx is not available.
8412 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8413 # Extract the first word of "sphinx-build", so it can be a program name with args.
8414 set dummy sphinx-build; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 if test -n "$doc_build_sys"; then
8421 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8422 else
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8430 ac_cv_prog_doc_build_sys="sphinx"
8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 break 2
8434 done
8435 done
8436 IFS=$as_save_IFS
8438 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8441 doc_build_sys=$ac_cv_prog_doc_build_sys
8442 if test -n "$doc_build_sys"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8444 $as_echo "$doc_build_sys" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8452 # --------------------
8453 # Checks for C headers
8454 # --------------------
8456 # Need to reject headers which give warnings, so that the -Werror bootstrap
8457 # works later. *sigh* This needs to come before all header checks.
8459 ac_c_preproc_warn_flag=yes
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8462 $as_echo_n "checking for ANSI C header files... " >&6; }
8463 if test "${ac_cv_header_stdc+set}" = set; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 #include <stdlib.h>
8469 #include <stdarg.h>
8470 #include <string.h>
8471 #include <float.h>
8474 main ()
8478 return 0;
8480 _ACEOF
8481 if ac_fn_cxx_try_compile "$LINENO"; then :
8482 ac_cv_header_stdc=yes
8483 else
8484 ac_cv_header_stdc=no
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 if test $ac_cv_header_stdc = yes; then
8489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 #include <string.h>
8494 _ACEOF
8495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8496 $EGREP "memchr" >/dev/null 2>&1; then :
8498 else
8499 ac_cv_header_stdc=no
8501 rm -f conftest*
8505 if test $ac_cv_header_stdc = yes; then
8506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8509 #include <stdlib.h>
8511 _ACEOF
8512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8513 $EGREP "free" >/dev/null 2>&1; then :
8515 else
8516 ac_cv_header_stdc=no
8518 rm -f conftest*
8522 if test $ac_cv_header_stdc = yes; then
8523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8524 if test "$cross_compiling" = yes; then :
8526 else
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 #include <ctype.h>
8530 #include <stdlib.h>
8531 #if ((' ' & 0x0FF) == 0x020)
8532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8534 #else
8535 # define ISLOWER(c) \
8536 (('a' <= (c) && (c) <= 'i') \
8537 || ('j' <= (c) && (c) <= 'r') \
8538 || ('s' <= (c) && (c) <= 'z'))
8539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8540 #endif
8542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8544 main ()
8546 int i;
8547 for (i = 0; i < 256; i++)
8548 if (XOR (islower (i), ISLOWER (i))
8549 || toupper (i) != TOUPPER (i))
8550 return 2;
8551 return 0;
8553 _ACEOF
8554 if ac_fn_cxx_try_run "$LINENO"; then :
8556 else
8557 ac_cv_header_stdc=no
8559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8560 conftest.$ac_objext conftest.beam conftest.$ac_ext
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8566 $as_echo "$ac_cv_header_stdc" >&6; }
8567 if test $ac_cv_header_stdc = yes; then
8569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8574 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8575 if test "${ac_cv_header_time+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8580 #include <sys/types.h>
8581 #include <sys/time.h>
8582 #include <time.h>
8585 main ()
8587 if ((struct tm *) 0)
8588 return 0;
8590 return 0;
8592 _ACEOF
8593 if ac_fn_cxx_try_compile "$LINENO"; then :
8594 ac_cv_header_time=yes
8595 else
8596 ac_cv_header_time=no
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8601 $as_echo "$ac_cv_header_time" >&6; }
8602 if test $ac_cv_header_time = yes; then
8604 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8609 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8610 if test "${gcc_cv_header_string+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <string.h>
8616 #include <strings.h>
8618 main ()
8622 return 0;
8624 _ACEOF
8625 if ac_fn_cxx_try_compile "$LINENO"; then :
8626 gcc_cv_header_string=yes
8627 else
8628 gcc_cv_header_string=no
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8633 $as_echo "$gcc_cv_header_string" >&6; }
8634 if test $gcc_cv_header_string = yes; then
8636 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8641 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8642 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8647 #include <sys/types.h>
8648 #include <sys/wait.h>
8649 #ifndef WEXITSTATUS
8650 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8651 #endif
8652 #ifndef WIFEXITED
8653 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8654 #endif
8657 main ()
8659 int s;
8660 wait (&s);
8661 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8663 return 0;
8665 _ACEOF
8666 if ac_fn_cxx_try_compile "$LINENO"; then :
8667 ac_cv_header_sys_wait_h=yes
8668 else
8669 ac_cv_header_sys_wait_h=no
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8674 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8675 if test $ac_cv_header_sys_wait_h = yes; then
8677 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8682 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8683 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 #include <sys/types.h>
8689 #include <termios.h>
8690 #ifdef TIOCGWINSZ
8692 #endif
8694 _ACEOF
8695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8696 $EGREP "yes" >/dev/null 2>&1; then :
8697 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8698 else
8699 ac_cv_sys_tiocgwinsz_in_termios_h=no
8701 rm -f conftest*
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8705 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8707 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8709 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8710 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714 /* end confdefs.h. */
8715 #include <sys/types.h>
8716 #include <sys/ioctl.h>
8717 #ifdef TIOCGWINSZ
8719 #endif
8721 _ACEOF
8722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8723 $EGREP "yes" >/dev/null 2>&1; then :
8724 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8725 else
8726 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8728 rm -f conftest*
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8732 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8734 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8736 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8741 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8742 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8743 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8744 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8745 do :
8746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8748 eval as_val=\$$as_ac_Header
8749 if test "x$as_val" = x""yes; then :
8750 cat >>confdefs.h <<_ACEOF
8751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8752 _ACEOF
8755 done
8758 # Check for thread headers.
8759 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8760 if test "x$ac_cv_header_thread_h" = x""yes; then :
8761 have_thread_h=yes
8762 else
8763 have_thread_h=
8766 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8767 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8768 have_pthread_h=yes
8769 else
8770 have_pthread_h=
8774 # These tests can't be done till we know if we have limits.h.
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8776 $as_echo_n "checking for CHAR_BIT... " >&6; }
8777 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8782 #ifdef HAVE_LIMITS_H
8783 #include <limits.h>
8784 #endif
8785 #ifdef CHAR_BIT
8786 found
8787 #endif
8788 _ACEOF
8789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8790 $EGREP "found" >/dev/null 2>&1; then :
8791 gcc_cv_decl_char_bit=yes
8792 else
8793 gcc_cv_decl_char_bit=no
8795 rm -f conftest*
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8800 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8801 if test $gcc_cv_decl_char_bit = no; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8803 $as_echo_n "checking number of bits in a byte... " >&6; }
8804 if test "${gcc_cv_c_nbby+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8808 gcc_cv_c_nbby=
8809 while test $i -lt 65; do
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8814 main ()
8816 switch(0) {
8817 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8818 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8821 return 0;
8823 _ACEOF
8824 if ac_fn_cxx_try_compile "$LINENO"; then :
8825 gcc_cv_c_nbby=$i; break
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 i=`expr $i + 1`
8829 done
8830 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8834 $as_echo "$gcc_cv_c_nbby" >&6; }
8835 if test $gcc_cv_c_nbby = failed; then
8836 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8837 else
8839 cat >>confdefs.h <<_ACEOF
8840 #define CHAR_BIT $gcc_cv_c_nbby
8841 _ACEOF
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8846 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8847 if test "${ac_cv_c_bigendian+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 ac_cv_c_bigendian=unknown
8851 # See if we're dealing with a universal compiler.
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 #ifndef __APPLE_CC__
8855 not a universal capable compiler
8856 #endif
8857 typedef int dummy;
8859 _ACEOF
8860 if ac_fn_cxx_try_compile "$LINENO"; then :
8862 # Check for potential -arch flags. It is not universal unless
8863 # there are at least two -arch flags with different values.
8864 ac_arch=
8865 ac_prev=
8866 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8867 if test -n "$ac_prev"; then
8868 case $ac_word in
8869 i?86 | x86_64 | ppc | ppc64)
8870 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8871 ac_arch=$ac_word
8872 else
8873 ac_cv_c_bigendian=universal
8874 break
8877 esac
8878 ac_prev=
8879 elif test "x$ac_word" = "x-arch"; then
8880 ac_prev=arch
8882 done
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 if test $ac_cv_c_bigendian = unknown; then
8886 # See if sys/param.h defines the BYTE_ORDER macro.
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #include <sys/types.h>
8890 #include <sys/param.h>
8893 main ()
8895 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8896 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8897 && LITTLE_ENDIAN)
8898 bogus endian macros
8899 #endif
8902 return 0;
8904 _ACEOF
8905 if ac_fn_cxx_try_compile "$LINENO"; then :
8906 # It does; now see whether it defined to BIG_ENDIAN or not.
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 #include <sys/types.h>
8910 #include <sys/param.h>
8913 main ()
8915 #if BYTE_ORDER != BIG_ENDIAN
8916 not big endian
8917 #endif
8920 return 0;
8922 _ACEOF
8923 if ac_fn_cxx_try_compile "$LINENO"; then :
8924 ac_cv_c_bigendian=yes
8925 else
8926 ac_cv_c_bigendian=no
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932 if test $ac_cv_c_bigendian = unknown; then
8933 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 #include <limits.h>
8939 main ()
8941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8942 bogus endian macros
8943 #endif
8946 return 0;
8948 _ACEOF
8949 if ac_fn_cxx_try_compile "$LINENO"; then :
8950 # It does; now see whether it defined to _BIG_ENDIAN or not.
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 #include <limits.h>
8956 main ()
8958 #ifndef _BIG_ENDIAN
8959 not big endian
8960 #endif
8963 return 0;
8965 _ACEOF
8966 if ac_fn_cxx_try_compile "$LINENO"; then :
8967 ac_cv_c_bigendian=yes
8968 else
8969 ac_cv_c_bigendian=no
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 if test $ac_cv_c_bigendian = unknown; then
8976 # Compile a test program.
8977 if test "$cross_compiling" = yes; then :
8978 # Try to guess by grepping values from an object file.
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980 /* end confdefs.h. */
8981 short int ascii_mm[] =
8982 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8983 short int ascii_ii[] =
8984 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8985 int use_ascii (int i) {
8986 return ascii_mm[i] + ascii_ii[i];
8988 short int ebcdic_ii[] =
8989 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8990 short int ebcdic_mm[] =
8991 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8992 int use_ebcdic (int i) {
8993 return ebcdic_mm[i] + ebcdic_ii[i];
8995 extern int foo;
8998 main ()
9000 return use_ascii (foo) == use_ebcdic (foo);
9002 return 0;
9004 _ACEOF
9005 if ac_fn_cxx_try_compile "$LINENO"; then :
9006 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9007 ac_cv_c_bigendian=yes
9009 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9010 if test "$ac_cv_c_bigendian" = unknown; then
9011 ac_cv_c_bigendian=no
9012 else
9013 # finding both strings is unlikely to happen, but who knows?
9014 ac_cv_c_bigendian=unknown
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 else
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 $ac_includes_default
9024 main ()
9027 /* Are we little or big endian? From Harbison&Steele. */
9028 union
9030 long int l;
9031 char c[sizeof (long int)];
9032 } u;
9033 u.l = 1;
9034 return u.c[sizeof (long int) - 1] == 1;
9037 return 0;
9039 _ACEOF
9040 if ac_fn_cxx_try_run "$LINENO"; then :
9041 ac_cv_c_bigendian=no
9042 else
9043 ac_cv_c_bigendian=yes
9045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9046 conftest.$ac_objext conftest.beam conftest.$ac_ext
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9052 $as_echo "$ac_cv_c_bigendian" >&6; }
9053 case $ac_cv_c_bigendian in #(
9054 yes)
9055 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9056 ;; #(
9058 ;; #(
9059 universal)
9061 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9063 ;; #(
9065 as_fn_error "unknown endianness
9066 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9067 esac
9070 # ----------------------
9071 # Checks for C++ headers
9072 # ----------------------
9074 ac_ext=cpp
9075 ac_cpp='$CXXCPP $CPPFLAGS'
9076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9080 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9081 if test -z "$CXXCPP"; then
9082 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 # Double quotes because CXXCPP needs to be expanded
9086 for CXXCPP in "$CXX -E" "/lib/cpp"
9088 ac_preproc_ok=false
9089 for ac_cxx_preproc_warn_flag in '' yes
9091 # Use a header file that comes with gcc, so configuring glibc
9092 # with a fresh cross-compiler works.
9093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9094 # <limits.h> exists even on freestanding compilers.
9095 # On the NeXT, cc -E runs the code through the compiler's parser,
9096 # not just through cpp. "Syntax error" is here to catch this case.
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 #ifdef __STDC__
9100 # include <limits.h>
9101 #else
9102 # include <assert.h>
9103 #endif
9104 Syntax error
9105 _ACEOF
9106 if ac_fn_cxx_try_cpp "$LINENO"; then :
9108 else
9109 # Broken: fails on valid input.
9110 continue
9112 rm -f conftest.err conftest.$ac_ext
9114 # OK, works on sane cases. Now check whether nonexistent headers
9115 # can be detected and how.
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 #include <ac_nonexistent.h>
9119 _ACEOF
9120 if ac_fn_cxx_try_cpp "$LINENO"; then :
9121 # Broken: success on invalid input.
9122 continue
9123 else
9124 # Passes both tests.
9125 ac_preproc_ok=:
9126 break
9128 rm -f conftest.err conftest.$ac_ext
9130 done
9131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9132 rm -f conftest.err conftest.$ac_ext
9133 if $ac_preproc_ok; then :
9134 break
9137 done
9138 ac_cv_prog_CXXCPP=$CXXCPP
9141 CXXCPP=$ac_cv_prog_CXXCPP
9142 else
9143 ac_cv_prog_CXXCPP=$CXXCPP
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9146 $as_echo "$CXXCPP" >&6; }
9147 ac_preproc_ok=false
9148 for ac_cxx_preproc_warn_flag in '' yes
9150 # Use a header file that comes with gcc, so configuring glibc
9151 # with a fresh cross-compiler works.
9152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9153 # <limits.h> exists even on freestanding compilers.
9154 # On the NeXT, cc -E runs the code through the compiler's parser,
9155 # not just through cpp. "Syntax error" is here to catch this case.
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 #ifdef __STDC__
9159 # include <limits.h>
9160 #else
9161 # include <assert.h>
9162 #endif
9163 Syntax error
9164 _ACEOF
9165 if ac_fn_cxx_try_cpp "$LINENO"; then :
9167 else
9168 # Broken: fails on valid input.
9169 continue
9171 rm -f conftest.err conftest.$ac_ext
9173 # OK, works on sane cases. Now check whether nonexistent headers
9174 # can be detected and how.
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9177 #include <ac_nonexistent.h>
9178 _ACEOF
9179 if ac_fn_cxx_try_cpp "$LINENO"; then :
9180 # Broken: success on invalid input.
9181 continue
9182 else
9183 # Passes both tests.
9184 ac_preproc_ok=:
9185 break
9187 rm -f conftest.err conftest.$ac_ext
9189 done
9190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9191 rm -f conftest.err conftest.$ac_ext
9192 if $ac_preproc_ok; then :
9194 else
9195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9198 See \`config.log' for more details." >&5
9199 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9200 See \`config.log' for more details." >&2;}; }
9203 ac_ext=cpp
9204 ac_cpp='$CXXCPP $CPPFLAGS'
9205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9210 for ac_header in unordered_map
9211 do :
9212 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9213 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9214 cat >>confdefs.h <<_ACEOF
9215 #define HAVE_UNORDERED_MAP 1
9216 _ACEOF
9219 done
9221 for ac_header in tr1/unordered_map
9222 do :
9223 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9224 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9225 cat >>confdefs.h <<_ACEOF
9226 #define HAVE_TR1_UNORDERED_MAP 1
9227 _ACEOF
9230 done
9232 for ac_header in ext/hash_map
9233 do :
9234 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9235 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_EXT_HASH_MAP 1
9238 _ACEOF
9241 done
9244 # --------
9245 # Dependency checking.
9246 # --------
9248 rm -rf .tst 2>/dev/null
9249 mkdir .tst 2>/dev/null
9250 if test -d .tst; then
9251 am__leading_dot=.
9252 else
9253 am__leading_dot=_
9255 rmdir .tst 2>/dev/null
9257 DEPDIR="${am__leading_dot}deps"
9259 ac_config_commands="$ac_config_commands depdir"
9262 ac_config_commands="$ac_config_commands gccdepdir"
9265 depcc="$CXX" am_compiler_list=
9267 am_depcomp=$ac_aux_dir/depcomp
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9269 $as_echo_n "checking dependency style of $depcc... " >&6; }
9270 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 if test -f "$am_depcomp"; then
9274 # We make a subdir and do the tests there. Otherwise we can end up
9275 # making bogus files that we don't know about and never remove. For
9276 # instance it was reported that on HP-UX the gcc test will end up
9277 # making a dummy file named `D' -- because `-MD' means `put the output
9278 # in D'.
9279 mkdir conftest.dir
9280 # Copy depcomp to subdir because otherwise we won't find it if we're
9281 # using a relative directory.
9282 cp "$am_depcomp" conftest.dir
9283 cd conftest.dir
9284 # We will build objects and dependencies in a subdirectory because
9285 # it helps to detect inapplicable dependency modes. For instance
9286 # both Tru64's cc and ICC support -MD to output dependencies as a
9287 # side effect of compilation, but ICC will put the dependencies in
9288 # the current directory while Tru64 will put them in the object
9289 # directory.
9290 mkdir sub
9292 am_cv_CXX_dependencies_compiler_type=none
9293 if test "$am_compiler_list" = ""; then
9294 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9296 for depmode in $am_compiler_list; do
9297 if test $depmode = none; then break; fi
9299 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9300 # Setup a source with many dependencies, because some compilers
9301 # like to wrap large dependency lists on column 80 (with \), and
9302 # we should not choose a depcomp mode which is confused by this.
9304 # We need to recreate these files for each test, as the compiler may
9305 # overwrite some of them when testing with obscure command lines.
9306 # This happens at least with the AIX C compiler.
9307 : > sub/conftest.c
9308 for i in 1 2 3 4 5 6; do
9309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9310 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9311 # Solaris 8's {/usr,}/bin/sh.
9312 touch sub/conftst$i.h
9313 done
9314 echo "include sub/conftest.Po" > confmf
9316 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9317 # mode. It turns out that the SunPro C++ compiler does not properly
9318 # handle `-M -o', and we need to detect this.
9319 depcmd="depmode=$depmode \
9320 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9321 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9322 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9323 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9324 if env $depcmd > conftest.err 2>&1 &&
9325 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9326 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9327 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9328 # icc doesn't choke on unknown options, it will just issue warnings
9329 # or remarks (even with -Werror). So we grep stderr for any message
9330 # that says an option was ignored or not supported.
9331 # When given -MP, icc 7.0 and 7.1 complain thusly:
9332 # icc: Command line warning: ignoring option '-M'; no argument required
9333 # The diagnosis changed in icc 8.0:
9334 # icc: Command line remark: option '-MP' not supported
9335 if (grep 'ignoring option' conftest.err ||
9336 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9337 am_cv_CXX_dependencies_compiler_type=$depmode
9338 $as_echo "$as_me:$LINENO: success" >&5
9339 break
9342 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9343 sed -e 's/^/| /' < conftest.err >&5
9344 done
9346 cd ..
9347 rm -rf conftest.dir
9348 else
9349 am_cv_CXX_dependencies_compiler_type=none
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9354 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9355 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9356 then as_fn_error "no usable dependency style found" "$LINENO" 5
9357 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9362 # --------
9363 # UNSORTED
9364 # --------
9367 # These libraries may be used by collect2.
9368 # We may need a special search path to get them linked.
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9370 $as_echo_n "checking for collect2 libraries... " >&6; }
9371 if test "${gcc_cv_collect2_libs+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 save_LIBS="$LIBS"
9375 for libs in '' -lld -lmld \
9376 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9377 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9379 LIBS="$libs"
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 char ldopen ();
9391 main ()
9393 return ldopen ();
9395 return 0;
9397 _ACEOF
9398 if ac_fn_cxx_try_link "$LINENO"; then :
9399 gcc_cv_collect2_libs="$libs"; break
9401 rm -f core conftest.err conftest.$ac_objext \
9402 conftest$ac_exeext conftest.$ac_ext
9403 done
9404 LIBS="$save_LIBS"
9405 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9408 $as_echo "$gcc_cv_collect2_libs" >&6; }
9409 case $gcc_cv_collect2_libs in
9410 "none required") ;;
9411 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9412 esac
9415 # When building Ada code on Alpha, we need exc_resume which is usually in
9416 # -lexc. So test for it.
9417 save_LIBS="$LIBS"
9418 LIBS=
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9420 $as_echo_n "checking for library containing exc_resume... " >&6; }
9421 if test "${ac_cv_search_exc_resume+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 ac_func_search_save_LIBS=$LIBS
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 char exc_resume ();
9436 main ()
9438 return exc_resume ();
9440 return 0;
9442 _ACEOF
9443 for ac_lib in '' exc; do
9444 if test -z "$ac_lib"; then
9445 ac_res="none required"
9446 else
9447 ac_res=-l$ac_lib
9448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9450 if ac_fn_cxx_try_link "$LINENO"; then :
9451 ac_cv_search_exc_resume=$ac_res
9453 rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext
9455 if test "${ac_cv_search_exc_resume+set}" = set; then :
9456 break
9458 done
9459 if test "${ac_cv_search_exc_resume+set}" = set; then :
9461 else
9462 ac_cv_search_exc_resume=no
9464 rm conftest.$ac_ext
9465 LIBS=$ac_func_search_save_LIBS
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9468 $as_echo "$ac_cv_search_exc_resume" >&6; }
9469 ac_res=$ac_cv_search_exc_resume
9470 if test "$ac_res" != no; then :
9471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9475 GNAT_LIBEXC="$LIBS"
9476 LIBS="$save_LIBS"
9479 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9480 save_LIBS="$LIBS"
9481 LIBS=
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9483 $as_echo_n "checking for library containing kstat_open... " >&6; }
9484 if test "${ac_cv_search_kstat_open+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 ac_func_search_save_LIBS=$LIBS
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9491 /* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char kstat_open ();
9499 main ()
9501 return kstat_open ();
9503 return 0;
9505 _ACEOF
9506 for ac_lib in '' kstat; do
9507 if test -z "$ac_lib"; then
9508 ac_res="none required"
9509 else
9510 ac_res=-l$ac_lib
9511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9513 if ac_fn_cxx_try_link "$LINENO"; then :
9514 ac_cv_search_kstat_open=$ac_res
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext
9518 if test "${ac_cv_search_kstat_open+set}" = set; then :
9519 break
9521 done
9522 if test "${ac_cv_search_kstat_open+set}" = set; then :
9524 else
9525 ac_cv_search_kstat_open=no
9527 rm conftest.$ac_ext
9528 LIBS=$ac_func_search_save_LIBS
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9531 $as_echo "$ac_cv_search_kstat_open" >&6; }
9532 ac_res=$ac_cv_search_kstat_open
9533 if test "$ac_res" != no; then :
9534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9538 EXTRA_GCC_LIBS="$LIBS"
9539 LIBS="$save_LIBS"
9542 # Some systems put ldexp and frexp in libm instead of libc; assume
9543 # they're both in the same place. jcf-dump needs them.
9544 save_LIBS="$LIBS"
9545 LIBS=
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9547 $as_echo_n "checking for library containing ldexp... " >&6; }
9548 if test "${ac_cv_search_ldexp+set}" = set; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 ac_func_search_save_LIBS=$LIBS
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 char ldexp ();
9563 main ()
9565 return ldexp ();
9567 return 0;
9569 _ACEOF
9570 for ac_lib in '' m; do
9571 if test -z "$ac_lib"; then
9572 ac_res="none required"
9573 else
9574 ac_res=-l$ac_lib
9575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9577 if ac_fn_cxx_try_link "$LINENO"; then :
9578 ac_cv_search_ldexp=$ac_res
9580 rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext
9582 if test "${ac_cv_search_ldexp+set}" = set; then :
9583 break
9585 done
9586 if test "${ac_cv_search_ldexp+set}" = set; then :
9588 else
9589 ac_cv_search_ldexp=no
9591 rm conftest.$ac_ext
9592 LIBS=$ac_func_search_save_LIBS
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9595 $as_echo "$ac_cv_search_ldexp" >&6; }
9596 ac_res=$ac_cv_search_ldexp
9597 if test "$ac_res" != no; then :
9598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9602 LDEXP_LIB="$LIBS"
9603 LIBS="$save_LIBS"
9606 # Use <inttypes.h> only if it exists,
9607 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9608 # PRId64
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9610 $as_echo_n "checking for inttypes.h... " >&6; }
9611 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 #define __STDC_FORMAT_MACROS
9617 #include <sys/types.h>
9618 #include <inttypes.h>
9620 main ()
9622 intmax_t i = -1;
9623 #ifndef PRId64
9624 choke me
9625 #endif
9627 return 0;
9629 _ACEOF
9630 if ac_fn_cxx_try_compile "$LINENO"; then :
9631 gcc_cv_header_inttypes_h=yes
9632 else
9633 gcc_cv_header_inttypes_h=no
9635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9639 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9640 if test $gcc_cv_header_inttypes_h = yes; then
9642 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9648 for ac_func in times clock kill getrlimit setrlimit atoq \
9649 popen sysconf strsignal getrusage nl_langinfo \
9650 gettimeofday mbstowcs wcswidth mmap setlocale \
9651 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
9652 do :
9653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9654 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9655 eval as_val=\$$as_ac_var
9656 if test "x$as_val" = x""yes; then :
9657 cat >>confdefs.h <<_ACEOF
9658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9659 _ACEOF
9662 done
9665 if test x$ac_cv_func_mbstowcs = xyes; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9667 $as_echo_n "checking whether mbstowcs works... " >&6; }
9668 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9671 if test "$cross_compiling" = yes; then :
9672 gcc_cv_func_mbstowcs_works=yes
9673 else
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 #include <stdlib.h>
9677 int main()
9679 mbstowcs(0, "", 0);
9680 return 0;
9682 _ACEOF
9683 if ac_fn_cxx_try_run "$LINENO"; then :
9684 gcc_cv_func_mbstowcs_works=yes
9685 else
9686 gcc_cv_func_mbstowcs_works=no
9688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9689 conftest.$ac_objext conftest.beam conftest.$ac_ext
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9694 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9695 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9697 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9702 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9703 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9705 else
9707 cat >>confdefs.h <<_ACEOF
9708 #define ssize_t int
9709 _ACEOF
9713 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9714 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9716 else
9718 cat >>confdefs.h <<_ACEOF
9719 #define caddr_t char *
9720 _ACEOF
9726 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9727 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9728 gcc_header_sys_mman_h=yes
9729 else
9730 gcc_header_sys_mman_h=no
9733 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9734 if test "x$ac_cv_func_mmap" = x""yes; then :
9735 gcc_func_mmap=yes
9736 else
9737 gcc_func_mmap=no
9740 if test "$gcc_header_sys_mman_h" != yes \
9741 || test "$gcc_func_mmap" != yes; then
9742 gcc_cv_func_mmap_file=no
9743 gcc_cv_func_mmap_dev_zero=no
9744 gcc_cv_func_mmap_anon=no
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9747 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9748 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 # Add a system to this blacklist if
9752 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9753 # memory area containing the same data that you'd get if you applied
9754 # read() to the same fd. The only system known to have a problem here
9755 # is VMS, where text files have record structure.
9756 case "$host_os" in
9757 *vms* | ultrix*)
9758 gcc_cv_func_mmap_file=no ;;
9760 gcc_cv_func_mmap_file=yes;;
9761 esac
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9764 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9766 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9767 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 # Add a system to this blacklist if it has mmap() but /dev/zero
9771 # does not exist, or if mmapping /dev/zero does not give anonymous
9772 # zeroed pages with both the following properties:
9773 # 1. If you map N consecutive pages in with one call, and then
9774 # unmap any subset of those pages, the pages that were not
9775 # explicitly unmapped remain accessible.
9776 # 2. If you map two adjacent blocks of memory and then unmap them
9777 # both at once, they must both go away.
9778 # Systems known to be in this category are Windows (all variants),
9779 # VMS, and Darwin.
9780 case "$host_os" in
9781 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9782 gcc_cv_func_mmap_dev_zero=no ;;
9784 gcc_cv_func_mmap_dev_zero=yes;;
9785 esac
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9788 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9790 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9792 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9793 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 #include <sys/types.h>
9799 #include <sys/mman.h>
9800 #include <unistd.h>
9802 #ifndef MAP_ANONYMOUS
9803 #define MAP_ANONYMOUS MAP_ANON
9804 #endif
9807 main ()
9809 int n = MAP_ANONYMOUS;
9811 return 0;
9813 _ACEOF
9814 if ac_fn_cxx_try_compile "$LINENO"; then :
9815 gcc_cv_decl_map_anon=yes
9816 else
9817 gcc_cv_decl_map_anon=no
9819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9822 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9824 if test $gcc_cv_decl_map_anon = no; then
9825 gcc_cv_func_mmap_anon=no
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9828 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9829 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9830 $as_echo_n "(cached) " >&6
9831 else
9832 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9833 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9834 # doesn't give anonymous zeroed pages with the same properties listed
9835 # above for use of /dev/zero.
9836 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9837 case "$host_os" in
9838 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9839 gcc_cv_func_mmap_anon=no ;;
9841 gcc_cv_func_mmap_anon=yes;;
9842 esac
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9845 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9849 if test $gcc_cv_func_mmap_file = yes; then
9851 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9854 if test $gcc_cv_func_mmap_dev_zero = yes; then
9856 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9859 if test $gcc_cv_func_mmap_anon = yes; then
9861 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9866 case "${host}" in
9867 *-*-*vms*)
9868 # Under VMS, vfork works very differently than on Unix. The standard test
9869 # won't work, and it isn't easily adaptable. It makes more sense to
9870 # just force it.
9871 ac_cv_func_vfork_works=yes
9873 esac
9874 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9875 if test "x$ac_cv_type_pid_t" = x""yes; then :
9877 else
9879 cat >>confdefs.h <<_ACEOF
9880 #define pid_t int
9881 _ACEOF
9885 for ac_header in vfork.h
9886 do :
9887 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9888 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9889 cat >>confdefs.h <<_ACEOF
9890 #define HAVE_VFORK_H 1
9891 _ACEOF
9894 done
9896 for ac_func in fork vfork
9897 do :
9898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9899 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9900 eval as_val=\$$as_ac_var
9901 if test "x$as_val" = x""yes; then :
9902 cat >>confdefs.h <<_ACEOF
9903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9904 _ACEOF
9907 done
9909 if test "x$ac_cv_func_fork" = xyes; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9911 $as_echo_n "checking for working fork... " >&6; }
9912 if test "${ac_cv_func_fork_works+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 if test "$cross_compiling" = yes; then :
9916 ac_cv_func_fork_works=cross
9917 else
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 $ac_includes_default
9922 main ()
9925 /* By Ruediger Kuhlmann. */
9926 return fork () < 0;
9929 return 0;
9931 _ACEOF
9932 if ac_fn_cxx_try_run "$LINENO"; then :
9933 ac_cv_func_fork_works=yes
9934 else
9935 ac_cv_func_fork_works=no
9937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9938 conftest.$ac_objext conftest.beam conftest.$ac_ext
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9943 $as_echo "$ac_cv_func_fork_works" >&6; }
9945 else
9946 ac_cv_func_fork_works=$ac_cv_func_fork
9948 if test "x$ac_cv_func_fork_works" = xcross; then
9949 case $host in
9950 *-*-amigaos* | *-*-msdosdjgpp*)
9951 # Override, as these systems have only a dummy fork() stub
9952 ac_cv_func_fork_works=no
9955 ac_cv_func_fork_works=yes
9957 esac
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9959 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9961 ac_cv_func_vfork_works=$ac_cv_func_vfork
9962 if test "x$ac_cv_func_vfork" = xyes; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9964 $as_echo_n "checking for working vfork... " >&6; }
9965 if test "${ac_cv_func_vfork_works+set}" = set; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 if test "$cross_compiling" = yes; then :
9969 ac_cv_func_vfork_works=cross
9970 else
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 /* Thanks to Paul Eggert for this test. */
9974 $ac_includes_default
9975 #include <sys/wait.h>
9976 #ifdef HAVE_VFORK_H
9977 # include <vfork.h>
9978 #endif
9979 /* On some sparc systems, changes by the child to local and incoming
9980 argument registers are propagated back to the parent. The compiler
9981 is told about this with #include <vfork.h>, but some compilers
9982 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9983 static variable whose address is put into a register that is
9984 clobbered by the vfork. */
9985 static void
9986 #ifdef __cplusplus
9987 sparc_address_test (int arg)
9988 # else
9989 sparc_address_test (arg) int arg;
9990 #endif
9992 static pid_t child;
9993 if (!child) {
9994 child = vfork ();
9995 if (child < 0) {
9996 perror ("vfork");
9997 _exit(2);
9999 if (!child) {
10000 arg = getpid();
10001 write(-1, "", 0);
10002 _exit (arg);
10008 main ()
10010 pid_t parent = getpid ();
10011 pid_t child;
10013 sparc_address_test (0);
10015 child = vfork ();
10017 if (child == 0) {
10018 /* Here is another test for sparc vfork register problems. This
10019 test uses lots of local variables, at least as many local
10020 variables as main has allocated so far including compiler
10021 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10022 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10023 reuse the register of parent for one of the local variables,
10024 since it will think that parent can't possibly be used any more
10025 in this routine. Assigning to the local variable will thus
10026 munge parent in the parent process. */
10027 pid_t
10028 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10029 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10030 /* Convince the compiler that p..p7 are live; otherwise, it might
10031 use the same hardware register for all 8 local variables. */
10032 if (p != p1 || p != p2 || p != p3 || p != p4
10033 || p != p5 || p != p6 || p != p7)
10034 _exit(1);
10036 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10037 from child file descriptors. If the child closes a descriptor
10038 before it execs or exits, this munges the parent's descriptor
10039 as well. Test for this by closing stdout in the child. */
10040 _exit(close(fileno(stdout)) != 0);
10041 } else {
10042 int status;
10043 struct stat st;
10045 while (wait(&status) != child)
10047 return (
10048 /* Was there some problem with vforking? */
10049 child < 0
10051 /* Did the child fail? (This shouldn't happen.) */
10052 || status
10054 /* Did the vfork/compiler bug occur? */
10055 || parent != getpid()
10057 /* Did the file descriptor bug occur? */
10058 || fstat(fileno(stdout), &st) != 0
10062 _ACEOF
10063 if ac_fn_cxx_try_run "$LINENO"; then :
10064 ac_cv_func_vfork_works=yes
10065 else
10066 ac_cv_func_vfork_works=no
10068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10069 conftest.$ac_objext conftest.beam conftest.$ac_ext
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10074 $as_echo "$ac_cv_func_vfork_works" >&6; }
10077 if test "x$ac_cv_func_fork_works" = xcross; then
10078 ac_cv_func_vfork_works=$ac_cv_func_vfork
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10080 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10083 if test "x$ac_cv_func_vfork_works" = xyes; then
10085 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10087 else
10089 $as_echo "#define vfork fork" >>confdefs.h
10092 if test "x$ac_cv_func_fork_works" = xyes; then
10094 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10100 if test "X$prefix" = "XNONE"; then
10101 acl_final_prefix="$ac_default_prefix"
10102 else
10103 acl_final_prefix="$prefix"
10105 if test "X$exec_prefix" = "XNONE"; then
10106 acl_final_exec_prefix='${prefix}'
10107 else
10108 acl_final_exec_prefix="$exec_prefix"
10110 acl_save_prefix="$prefix"
10111 prefix="$acl_final_prefix"
10112 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10113 prefix="$acl_save_prefix"
10116 # Check whether --with-gnu-ld was given.
10117 if test "${with_gnu_ld+set}" = set; then :
10118 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10119 else
10120 with_gnu_ld=no
10123 # Prepare PATH_SEPARATOR.
10124 # The user is always right.
10125 if test "${PATH_SEPARATOR+set}" != set; then
10126 echo "#! /bin/sh" >conf$$.sh
10127 echo "exit 0" >>conf$$.sh
10128 chmod +x conf$$.sh
10129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10130 PATH_SEPARATOR=';'
10131 else
10132 PATH_SEPARATOR=:
10134 rm -f conf$$.sh
10136 ac_prog=ld
10137 if test "$GCC" = yes; then
10138 # Check if gcc -print-prog-name=ld gives a path.
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10140 $as_echo_n "checking for ld used by GCC... " >&6; }
10141 case $host in
10142 *-*-mingw*)
10143 # gcc leaves a trailing carriage return which upsets mingw
10144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10147 esac
10148 case $ac_prog in
10149 # Accept absolute paths.
10150 [\\/]* | [A-Za-z]:[\\/]*)
10151 re_direlt='/[^/][^/]*/\.\./'
10152 # Canonicalize the path of ld
10153 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10154 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10155 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10156 done
10157 test -z "$LD" && LD="$ac_prog"
10160 # If it fails, then pretend we aren't using GCC.
10161 ac_prog=ld
10164 # If it is relative, then search for the first ld in PATH.
10165 with_gnu_ld=unknown
10167 esac
10168 elif test "$with_gnu_ld" = yes; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10170 $as_echo_n "checking for GNU ld... " >&6; }
10171 else
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10173 $as_echo_n "checking for non-GNU ld... " >&6; }
10175 if test "${acl_cv_path_LD+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 if test -z "$LD"; then
10179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10180 for ac_dir in $PATH; do
10181 test -z "$ac_dir" && ac_dir=.
10182 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10183 acl_cv_path_LD="$ac_dir/$ac_prog"
10184 # Check to see if the program is GNU ld. I'd rather use --version,
10185 # but apparently some GNU ld's only accept -v.
10186 # Break only if it was the GNU/non-GNU ld that we prefer.
10187 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10188 test "$with_gnu_ld" != no && break
10189 else
10190 test "$with_gnu_ld" != yes && break
10193 done
10194 IFS="$ac_save_ifs"
10195 else
10196 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10200 LD="$acl_cv_path_LD"
10201 if test -n "$LD"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10203 $as_echo "$LD" >&6; }
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10208 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10210 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10211 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10212 $as_echo_n "(cached) " >&6
10213 else
10214 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10215 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10216 acl_cv_prog_gnu_ld=yes
10217 else
10218 acl_cv_prog_gnu_ld=no
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10222 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10223 with_gnu_ld=$acl_cv_prog_gnu_ld
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10228 $as_echo_n "checking for shared library run path origin... " >&6; }
10229 if test "${acl_cv_rpath+set}" = set; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10233 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10234 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10235 . ./conftest.sh
10236 rm -f ./conftest.sh
10237 acl_cv_rpath=done
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10241 $as_echo "$acl_cv_rpath" >&6; }
10242 wl="$acl_cv_wl"
10243 libext="$acl_cv_libext"
10244 shlibext="$acl_cv_shlibext"
10245 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10246 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10247 hardcode_direct="$acl_cv_hardcode_direct"
10248 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10249 # Check whether --enable-rpath was given.
10250 if test "${enable_rpath+set}" = set; then :
10251 enableval=$enable_rpath; :
10252 else
10253 enable_rpath=yes
10263 use_additional=yes
10265 acl_save_prefix="$prefix"
10266 prefix="$acl_final_prefix"
10267 acl_save_exec_prefix="$exec_prefix"
10268 exec_prefix="$acl_final_exec_prefix"
10270 eval additional_includedir=\"$includedir\"
10271 eval additional_libdir=\"$libdir\"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10277 # Check whether --with-libiconv-prefix was given.
10278 if test "${with_libiconv_prefix+set}" = set; then :
10279 withval=$with_libiconv_prefix;
10280 if test "X$withval" = "Xno"; then
10281 use_additional=no
10282 else
10283 if test "X$withval" = "X"; then
10285 acl_save_prefix="$prefix"
10286 prefix="$acl_final_prefix"
10287 acl_save_exec_prefix="$exec_prefix"
10288 exec_prefix="$acl_final_exec_prefix"
10290 eval additional_includedir=\"$includedir\"
10291 eval additional_libdir=\"$libdir\"
10293 exec_prefix="$acl_save_exec_prefix"
10294 prefix="$acl_save_prefix"
10296 else
10297 additional_includedir="$withval/include"
10298 additional_libdir="$withval/lib"
10304 LIBICONV=
10305 LTLIBICONV=
10306 INCICONV=
10307 rpathdirs=
10308 ltrpathdirs=
10309 names_already_handled=
10310 names_next_round='iconv '
10311 while test -n "$names_next_round"; do
10312 names_this_round="$names_next_round"
10313 names_next_round=
10314 for name in $names_this_round; do
10315 already_handled=
10316 for n in $names_already_handled; do
10317 if test "$n" = "$name"; then
10318 already_handled=yes
10319 break
10321 done
10322 if test -z "$already_handled"; then
10323 names_already_handled="$names_already_handled $name"
10324 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10325 eval value=\"\$HAVE_LIB$uppername\"
10326 if test -n "$value"; then
10327 if test "$value" = yes; then
10328 eval value=\"\$LIB$uppername\"
10329 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10330 eval value=\"\$LTLIB$uppername\"
10331 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10332 else
10335 else
10336 found_dir=
10337 found_la=
10338 found_so=
10339 found_a=
10340 if test $use_additional = yes; then
10341 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10342 found_dir="$additional_libdir"
10343 found_so="$additional_libdir/lib$name.$shlibext"
10344 if test -f "$additional_libdir/lib$name.la"; then
10345 found_la="$additional_libdir/lib$name.la"
10347 else
10348 if test -f "$additional_libdir/lib$name.$libext"; then
10349 found_dir="$additional_libdir"
10350 found_a="$additional_libdir/lib$name.$libext"
10351 if test -f "$additional_libdir/lib$name.la"; then
10352 found_la="$additional_libdir/lib$name.la"
10357 if test "X$found_dir" = "X"; then
10358 for x in $LDFLAGS $LTLIBICONV; do
10360 acl_save_prefix="$prefix"
10361 prefix="$acl_final_prefix"
10362 acl_save_exec_prefix="$exec_prefix"
10363 exec_prefix="$acl_final_exec_prefix"
10364 eval x=\"$x\"
10365 exec_prefix="$acl_save_exec_prefix"
10366 prefix="$acl_save_prefix"
10368 case "$x" in
10369 -L*)
10370 dir=`echo "X$x" | sed -e 's/^X-L//'`
10371 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10372 found_dir="$dir"
10373 found_so="$dir/lib$name.$shlibext"
10374 if test -f "$dir/lib$name.la"; then
10375 found_la="$dir/lib$name.la"
10377 else
10378 if test -f "$dir/lib$name.$libext"; then
10379 found_dir="$dir"
10380 found_a="$dir/lib$name.$libext"
10381 if test -f "$dir/lib$name.la"; then
10382 found_la="$dir/lib$name.la"
10387 esac
10388 if test "X$found_dir" != "X"; then
10389 break
10391 done
10393 if test "X$found_dir" != "X"; then
10394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10395 if test "X$found_so" != "X"; then
10396 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10397 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10398 else
10399 haveit=
10400 for x in $ltrpathdirs; do
10401 if test "X$x" = "X$found_dir"; then
10402 haveit=yes
10403 break
10405 done
10406 if test -z "$haveit"; then
10407 ltrpathdirs="$ltrpathdirs $found_dir"
10409 if test "$hardcode_direct" = yes; then
10410 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10411 else
10412 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10414 haveit=
10415 for x in $rpathdirs; do
10416 if test "X$x" = "X$found_dir"; then
10417 haveit=yes
10418 break
10420 done
10421 if test -z "$haveit"; then
10422 rpathdirs="$rpathdirs $found_dir"
10424 else
10425 haveit=
10426 for x in $LDFLAGS $LIBICONV; do
10428 acl_save_prefix="$prefix"
10429 prefix="$acl_final_prefix"
10430 acl_save_exec_prefix="$exec_prefix"
10431 exec_prefix="$acl_final_exec_prefix"
10432 eval x=\"$x\"
10433 exec_prefix="$acl_save_exec_prefix"
10434 prefix="$acl_save_prefix"
10436 if test "X$x" = "X-L$found_dir"; then
10437 haveit=yes
10438 break
10440 done
10441 if test -z "$haveit"; then
10442 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10444 if test "$hardcode_minus_L" != no; then
10445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10446 else
10447 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10452 else
10453 if test "X$found_a" != "X"; then
10454 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10455 else
10456 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10459 additional_includedir=
10460 case "$found_dir" in
10461 */lib | */lib/)
10462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10463 additional_includedir="$basedir/include"
10465 esac
10466 if test "X$additional_includedir" != "X"; then
10467 if test "X$additional_includedir" != "X/usr/include"; then
10468 haveit=
10469 if test "X$additional_includedir" = "X/usr/local/include"; then
10470 if test -n "$GCC"; then
10471 case $host_os in
10472 linux*) haveit=yes;;
10473 esac
10476 if test -z "$haveit"; then
10477 for x in $CPPFLAGS $INCICONV; do
10479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10483 eval x=\"$x\"
10484 exec_prefix="$acl_save_exec_prefix"
10485 prefix="$acl_save_prefix"
10487 if test "X$x" = "X-I$additional_includedir"; then
10488 haveit=yes
10489 break
10491 done
10492 if test -z "$haveit"; then
10493 if test -d "$additional_includedir"; then
10494 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10500 if test -n "$found_la"; then
10501 save_libdir="$libdir"
10502 case "$found_la" in
10503 */* | *\\*) . "$found_la" ;;
10504 *) . "./$found_la" ;;
10505 esac
10506 libdir="$save_libdir"
10507 for dep in $dependency_libs; do
10508 case "$dep" in
10509 -L*)
10510 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10511 if test "X$additional_libdir" != "X/usr/lib"; then
10512 haveit=
10513 if test "X$additional_libdir" = "X/usr/local/lib"; then
10514 if test -n "$GCC"; then
10515 case $host_os in
10516 linux*) haveit=yes;;
10517 esac
10520 if test -z "$haveit"; then
10521 haveit=
10522 for x in $LDFLAGS $LIBICONV; do
10524 acl_save_prefix="$prefix"
10525 prefix="$acl_final_prefix"
10526 acl_save_exec_prefix="$exec_prefix"
10527 exec_prefix="$acl_final_exec_prefix"
10528 eval x=\"$x\"
10529 exec_prefix="$acl_save_exec_prefix"
10530 prefix="$acl_save_prefix"
10532 if test "X$x" = "X-L$additional_libdir"; then
10533 haveit=yes
10534 break
10536 done
10537 if test -z "$haveit"; then
10538 if test -d "$additional_libdir"; then
10539 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10542 haveit=
10543 for x in $LDFLAGS $LTLIBICONV; do
10545 acl_save_prefix="$prefix"
10546 prefix="$acl_final_prefix"
10547 acl_save_exec_prefix="$exec_prefix"
10548 exec_prefix="$acl_final_exec_prefix"
10549 eval x=\"$x\"
10550 exec_prefix="$acl_save_exec_prefix"
10551 prefix="$acl_save_prefix"
10553 if test "X$x" = "X-L$additional_libdir"; then
10554 haveit=yes
10555 break
10557 done
10558 if test -z "$haveit"; then
10559 if test -d "$additional_libdir"; then
10560 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10566 -R*)
10567 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10568 if test "$enable_rpath" != no; then
10569 haveit=
10570 for x in $rpathdirs; do
10571 if test "X$x" = "X$dir"; then
10572 haveit=yes
10573 break
10575 done
10576 if test -z "$haveit"; then
10577 rpathdirs="$rpathdirs $dir"
10579 haveit=
10580 for x in $ltrpathdirs; do
10581 if test "X$x" = "X$dir"; then
10582 haveit=yes
10583 break
10585 done
10586 if test -z "$haveit"; then
10587 ltrpathdirs="$ltrpathdirs $dir"
10591 -l*)
10592 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10594 *.la)
10595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10598 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10599 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10601 esac
10602 done
10604 else
10605 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10606 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10610 done
10611 done
10612 if test "X$rpathdirs" != "X"; then
10613 if test -n "$hardcode_libdir_separator"; then
10614 alldirs=
10615 for found_dir in $rpathdirs; do
10616 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10617 done
10618 acl_save_libdir="$libdir"
10619 libdir="$alldirs"
10620 eval flag=\"$hardcode_libdir_flag_spec\"
10621 libdir="$acl_save_libdir"
10622 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10623 else
10624 for found_dir in $rpathdirs; do
10625 acl_save_libdir="$libdir"
10626 libdir="$found_dir"
10627 eval flag=\"$hardcode_libdir_flag_spec\"
10628 libdir="$acl_save_libdir"
10629 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10630 done
10633 if test "X$ltrpathdirs" != "X"; then
10634 for found_dir in $ltrpathdirs; do
10635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10636 done
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10646 $as_echo_n "checking for iconv... " >&6; }
10647 if test "${am_cv_func_iconv+set}" = set; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10651 am_cv_func_iconv="no, consider installing GNU libiconv"
10652 am_cv_lib_iconv=no
10653 am_save_CPPFLAGS="$CPPFLAGS"
10654 CPPFLAGS="$CPPFLAGS $INCICONV"
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #include <stdlib.h>
10658 #include <iconv.h>
10660 main ()
10662 iconv_t cd = iconv_open("","");
10663 iconv(cd,NULL,NULL,NULL,NULL);
10664 iconv_close(cd);
10666 return 0;
10668 _ACEOF
10669 if ac_fn_cxx_try_link "$LINENO"; then :
10670 am_cv_func_iconv=yes
10672 rm -f core conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674 CPPFLAGS="$am_save_CPPFLAGS"
10676 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10677 for _libs in .libs _libs; do
10678 am_save_CPPFLAGS="$CPPFLAGS"
10679 am_save_LIBS="$LIBS"
10680 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10681 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 #include <stdlib.h>
10685 #include <iconv.h>
10687 main ()
10689 iconv_t cd = iconv_open("","");
10690 iconv(cd,NULL,NULL,NULL,NULL);
10691 iconv_close(cd);
10693 return 0;
10695 _ACEOF
10696 if ac_fn_cxx_try_link "$LINENO"; then :
10697 INCICONV="-I../libiconv/include"
10698 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10699 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10700 am_cv_lib_iconv=yes
10701 am_cv_func_iconv=yes
10703 rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 CPPFLAGS="$am_save_CPPFLAGS"
10706 LIBS="$am_save_LIBS"
10707 if test "$am_cv_func_iconv" = "yes"; then
10708 break
10710 done
10713 if test "$am_cv_func_iconv" != yes; then
10714 am_save_CPPFLAGS="$CPPFLAGS"
10715 am_save_LIBS="$LIBS"
10716 CPPFLAGS="$LIBS $INCICONV"
10717 LIBS="$LIBS $LIBICONV"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 #include <stdlib.h>
10721 #include <iconv.h>
10723 main ()
10725 iconv_t cd = iconv_open("","");
10726 iconv(cd,NULL,NULL,NULL,NULL);
10727 iconv_close(cd);
10729 return 0;
10731 _ACEOF
10732 if ac_fn_cxx_try_link "$LINENO"; then :
10733 am_cv_lib_iconv=yes
10734 am_cv_func_iconv=yes
10736 rm -f core conftest.err conftest.$ac_objext \
10737 conftest$ac_exeext conftest.$ac_ext
10738 CPPFLAGS="$am_save_CPPFLAGS"
10739 LIBS="$am_save_LIBS"
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10744 $as_echo "$am_cv_func_iconv" >&6; }
10745 if test "$am_cv_func_iconv" = yes; then
10747 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10750 if test "$am_cv_lib_iconv" = yes; then
10752 for element in $INCICONV; do
10753 haveit=
10754 for x in $CPPFLAGS; do
10756 acl_save_prefix="$prefix"
10757 prefix="$acl_final_prefix"
10758 acl_save_exec_prefix="$exec_prefix"
10759 exec_prefix="$acl_final_exec_prefix"
10760 eval x=\"$x\"
10761 exec_prefix="$acl_save_exec_prefix"
10762 prefix="$acl_save_prefix"
10764 if test "X$x" = "X$element"; then
10765 haveit=yes
10766 break
10768 done
10769 if test -z "$haveit"; then
10770 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10772 done
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10775 $as_echo_n "checking how to link with libiconv... " >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10777 $as_echo "$LIBICONV" >&6; }
10778 else
10779 LIBICONV=
10780 LTLIBICONV=
10785 if test "$am_cv_func_iconv" = yes; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10787 $as_echo_n "checking for iconv declaration... " >&6; }
10788 if test "${am_cv_proto_iconv+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 #include <stdlib.h>
10796 #include <iconv.h>
10797 extern
10798 #ifdef __cplusplus
10800 #endif
10801 #if defined(__STDC__) || defined(__cplusplus)
10802 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10803 #else
10804 size_t iconv();
10805 #endif
10808 main ()
10812 return 0;
10814 _ACEOF
10815 if ac_fn_cxx_try_compile "$LINENO"; then :
10816 am_cv_proto_iconv_arg1=""
10817 else
10818 am_cv_proto_iconv_arg1="const"
10820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 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);"
10824 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10826 }$am_cv_proto_iconv" >&5
10827 $as_echo "${ac_t:-
10828 }$am_cv_proto_iconv" >&6; }
10830 cat >>confdefs.h <<_ACEOF
10831 #define ICONV_CONST $am_cv_proto_iconv_arg1
10832 _ACEOF
10837 # Until we have in-tree GNU iconv:
10838 LIBICONV_DEP=
10839 if test -f "$LTLIBICONV"; then
10840 LIBICONV_DEP=$LTLIBICONV
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10846 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10847 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10852 #include <locale.h>
10854 main ()
10856 return LC_MESSAGES
10858 return 0;
10860 _ACEOF
10861 if ac_fn_cxx_try_link "$LINENO"; then :
10862 am_cv_val_LC_MESSAGES=yes
10863 else
10864 am_cv_val_LC_MESSAGES=no
10866 rm -f core conftest.err conftest.$ac_objext \
10867 conftest$ac_exeext conftest.$ac_ext
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10870 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10871 if test $am_cv_val_LC_MESSAGES = yes; then
10873 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10880 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10881 if test "${am_cv_langinfo_codeset+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886 #include <langinfo.h>
10888 main ()
10890 char* cs = nl_langinfo(CODESET);
10892 return 0;
10894 _ACEOF
10895 if ac_fn_cxx_try_link "$LINENO"; then :
10896 am_cv_langinfo_codeset=yes
10897 else
10898 am_cv_langinfo_codeset=no
10900 rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10905 $as_echo "$am_cv_langinfo_codeset" >&6; }
10906 if test $am_cv_langinfo_codeset = yes; then
10908 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10913 # We will need to find libiberty.h and ansidecl.h
10914 saved_CFLAGS="$CFLAGS"
10915 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10916 saved_CXXFLAGS="$CXXFLAGS"
10917 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10919 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10920 # normal autoconf function for these. But force definition of
10921 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10922 # basename handling in libiberty.h.
10923 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10924 #undef HAVE_DECL_BASENAME
10925 #define HAVE_DECL_BASENAME 1
10926 #include \"ansidecl.h\"
10927 #include \"system.h\"
10929 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10930 ac_have_decl=1
10931 else
10932 ac_have_decl=0
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_DECL_BASENAME $ac_have_decl
10937 _ACEOF
10938 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10939 #undef HAVE_DECL_BASENAME
10940 #define HAVE_DECL_BASENAME 1
10941 #include \"ansidecl.h\"
10942 #include \"system.h\"
10944 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10945 ac_have_decl=1
10946 else
10947 ac_have_decl=0
10950 cat >>confdefs.h <<_ACEOF
10951 #define HAVE_DECL_STRSTR $ac_have_decl
10952 _ACEOF
10955 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10956 madvise stpcpy strnlen strsignal strverscmp \
10957 strtol strtoul strtoll strtoull setenv unsetenv \
10958 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10959 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
10961 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10963 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10964 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10965 $as_echo_n "(cached) " >&6
10966 else
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969 #undef $ac_tr_decl
10970 #define $ac_tr_decl 1
10972 #include "ansidecl.h"
10973 #include "system.h"
10976 main ()
10978 #ifndef $ac_func
10979 char *(*pfn) = (char *(*)) $ac_func ;
10980 #endif
10982 return 0;
10984 _ACEOF
10985 if ac_fn_cxx_try_compile "$LINENO"; then :
10986 eval "gcc_cv_have_decl_$ac_func=yes"
10987 else
10988 eval "gcc_cv_have_decl_$ac_func=no"
10990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10993 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10995 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10996 #define $ac_tr_decl 1
10997 _ACEOF
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11002 #define $ac_tr_decl 0
11003 _ACEOF
11007 done
11010 for ac_func in getrlimit setrlimit getrusage
11012 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11014 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11015 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020 #undef $ac_tr_decl
11021 #define $ac_tr_decl 1
11023 #include "ansidecl.h"
11024 #include "system.h"
11025 #ifdef HAVE_SYS_RESOURCE_H
11026 #include <sys/resource.h>
11027 #endif
11031 main ()
11033 #ifndef $ac_func
11034 char *(*pfn) = (char *(*)) $ac_func ;
11035 #endif
11037 return 0;
11039 _ACEOF
11040 if ac_fn_cxx_try_compile "$LINENO"; then :
11041 eval "gcc_cv_have_decl_$ac_func=yes"
11042 else
11043 eval "gcc_cv_have_decl_$ac_func=no"
11045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11050 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11051 #define $ac_tr_decl 1
11052 _ACEOF
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11057 #define $ac_tr_decl 0
11058 _ACEOF
11062 done
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11068 #include "ansidecl.h"
11069 #include "system.h"
11070 #ifdef HAVE_SYS_RESOURCE_H
11071 #include <sys/resource.h>
11072 #endif
11075 main ()
11077 rlim_t l = 0;
11079 return 0;
11081 _ACEOF
11082 if ac_fn_cxx_try_compile "$LINENO"; then :
11084 else
11086 $as_echo "#define rlim_t long" >>confdefs.h
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11092 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11093 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11094 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11095 for ac_func in ldgetname
11097 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11099 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11100 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11105 #undef $ac_tr_decl
11106 #define $ac_tr_decl 1
11108 #include "ansidecl.h"
11109 #include "system.h"
11110 #ifdef HAVE_LDFCN_H
11111 #undef FREAD
11112 #undef FWRITE
11113 #include <ldfcn.h>
11114 #endif
11118 main ()
11120 #ifndef $ac_func
11121 char *(*pfn) = (char *(*)) $ac_func ;
11122 #endif
11124 return 0;
11126 _ACEOF
11127 if ac_fn_cxx_try_compile "$LINENO"; then :
11128 eval "gcc_cv_have_decl_$ac_func=yes"
11129 else
11130 eval "gcc_cv_have_decl_$ac_func=no"
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11138 #define $ac_tr_decl 1
11139 _ACEOF
11141 else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11144 #define $ac_tr_decl 0
11145 _ACEOF
11149 done
11152 for ac_func in times
11154 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11156 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11157 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11162 #undef $ac_tr_decl
11163 #define $ac_tr_decl 1
11165 #include "ansidecl.h"
11166 #include "system.h"
11167 #ifdef HAVE_SYS_TIMES_H
11168 #include <sys/times.h>
11169 #endif
11173 main ()
11175 #ifndef $ac_func
11176 char *(*pfn) = (char *(*)) $ac_func ;
11177 #endif
11179 return 0;
11181 _ACEOF
11182 if ac_fn_cxx_try_compile "$LINENO"; then :
11183 eval "gcc_cv_have_decl_$ac_func=yes"
11184 else
11185 eval "gcc_cv_have_decl_$ac_func=no"
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11190 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11193 #define $ac_tr_decl 1
11194 _ACEOF
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11199 #define $ac_tr_decl 0
11200 _ACEOF
11204 done
11207 for ac_func in sigaltstack
11209 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11211 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11212 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11217 #undef $ac_tr_decl
11218 #define $ac_tr_decl 1
11220 #include "ansidecl.h"
11221 #include "system.h"
11222 #include <signal.h>
11226 main ()
11228 #ifndef $ac_func
11229 char *(*pfn) = (char *(*)) $ac_func ;
11230 #endif
11232 return 0;
11234 _ACEOF
11235 if ac_fn_cxx_try_compile "$LINENO"; then :
11236 eval "gcc_cv_have_decl_$ac_func=yes"
11237 else
11238 eval "gcc_cv_have_decl_$ac_func=no"
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11246 #define $ac_tr_decl 1
11247 _ACEOF
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11252 #define $ac_tr_decl 0
11253 _ACEOF
11257 done
11260 # More time-related stuff.
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11262 $as_echo_n "checking for struct tms... " >&6; }
11263 if test "${ac_cv_struct_tms+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
11265 else
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 #include "ansidecl.h"
11271 #include "system.h"
11272 #ifdef HAVE_SYS_TIMES_H
11273 #include <sys/times.h>
11274 #endif
11277 main ()
11279 struct tms tms;
11281 return 0;
11283 _ACEOF
11284 if ac_fn_cxx_try_compile "$LINENO"; then :
11285 ac_cv_struct_tms=yes
11286 else
11287 ac_cv_struct_tms=no
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11292 $as_echo "$ac_cv_struct_tms" >&6; }
11293 if test $ac_cv_struct_tms = yes; then
11295 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11299 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11300 # revisit after autoconf 2.50.
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11302 $as_echo_n "checking for clock_t... " >&6; }
11303 if test "${gcc_cv_type_clock_t+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11310 #include "ansidecl.h"
11311 #include "system.h"
11314 main ()
11316 clock_t x;
11318 return 0;
11320 _ACEOF
11321 if ac_fn_cxx_try_compile "$LINENO"; then :
11322 gcc_cv_type_clock_t=yes
11323 else
11324 gcc_cv_type_clock_t=no
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11329 $as_echo "$gcc_cv_type_clock_t" >&6; }
11330 if test $gcc_cv_type_clock_t = yes; then
11332 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11336 # Check if F_SETLKW is supported by fcntl.
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11338 $as_echo_n "checking for F_SETLKW... " >&6; }
11339 if test "${ac_cv_f_setlkw+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 #include <fcntl.h>
11348 main ()
11351 struct flock fl;
11352 fl.l_whence = 0;
11353 fl.l_start = 0;
11354 fl.l_len = 0;
11355 fl.l_pid = 0;
11356 return fcntl (1, F_SETLKW, &fl);
11358 return 0;
11360 _ACEOF
11361 if ac_fn_cxx_try_compile "$LINENO"; then :
11362 ac_cv_f_setlkw=yes
11363 else
11364 ac_cv_f_setlkw=no
11366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11369 $as_echo "$ac_cv_f_setlkw" >&6; }
11370 if test $ac_cv_f_setlkw = yes; then
11372 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11376 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11377 CFLAGS="$saved_CFLAGS"
11378 CXXFLAGS="$saved_CXXFLAGS"
11380 # mkdir takes a single argument on some systems.
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11382 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11383 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11389 #include <sys/types.h>
11390 #ifdef HAVE_SYS_STAT_H
11391 # include <sys/stat.h>
11392 #endif
11393 #ifdef HAVE_UNISTD_H
11394 # include <unistd.h>
11395 #endif
11396 #ifdef HAVE_DIRECT_H
11397 # include <direct.h>
11398 #endif
11400 main ()
11402 mkdir ("foo", 0);
11404 return 0;
11406 _ACEOF
11407 if ac_fn_cxx_try_compile "$LINENO"; then :
11408 gcc_cv_mkdir_takes_one_arg=no
11409 else
11410 gcc_cv_mkdir_takes_one_arg=yes
11412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11415 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11416 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11418 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11423 # File extensions
11424 manext='.1'
11425 objext='.o'
11429 # With Setjmp/Longjmp based exception handling.
11430 # Check whether --enable-sjlj-exceptions was given.
11431 if test "${enable_sjlj_exceptions+set}" = set; then :
11432 enableval=$enable_sjlj_exceptions; case $target in
11433 *-*-hpux10*)
11434 if test $enableval != yes; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11436 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11437 enableval=yes
11440 esac
11441 force_sjlj_exceptions=yes
11442 else
11443 case $target in
11444 *-*-hpux10*)
11445 force_sjlj_exceptions=yes
11446 enableval=yes
11448 lm32*-*-*)
11449 force_sjlj_exceptions=yes
11450 enableval=yes
11453 force_sjlj_exceptions=no
11455 esac
11458 if test $force_sjlj_exceptions = yes; then
11459 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11461 cat >>confdefs.h <<_ACEOF
11462 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11463 _ACEOF
11467 # --------------------------------------------------------
11468 # Build, host, and target specific configuration fragments
11469 # --------------------------------------------------------
11471 # Collect build-machine-specific information.
11472 . ${srcdir}/config.build
11474 # Collect host-machine-specific information.
11475 . ${srcdir}/config.host
11477 target_gtfiles=
11479 # Collect target-machine-specific information.
11480 . ${srcdir}/config.gcc
11482 extra_objs="${host_extra_objs} ${extra_objs}"
11483 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11485 # Default the target-machine variables that were not explicitly set.
11486 if test x"$tm_file" = x
11487 then tm_file=$cpu_type/$cpu_type.h; fi
11489 if test x"$extra_headers" = x
11490 then extra_headers=; fi
11492 if test x$md_file = x
11493 then md_file=$cpu_type/$cpu_type.md; fi
11495 if test x$out_file = x
11496 then out_file=$cpu_type/$cpu_type.c; fi
11498 if test x"$tmake_file" = x
11499 then tmake_file=$cpu_type/t-$cpu_type
11502 # Support --enable-initfini-array.
11503 if test x$enable_initfini_array != xno; then
11504 tm_file="${tm_file} initfini-array.h"
11507 if test x"$dwarf2" = xyes
11508 then tm_file="$tm_file tm-dwarf2.h"
11511 # Say what files are being used for the output code and MD file.
11512 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11513 echo "Using \`$srcdir/config/$md_file' as machine description file."
11515 # If any of the xm_file variables contain nonexistent files, warn
11516 # about them and drop them.
11519 for x in $build_xm_file; do
11520 if test -f $srcdir/config/$x
11521 then bx="$bx $x"
11522 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11523 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11525 done
11526 build_xm_file="$bx"
11529 for x in $host_xm_file; do
11530 if test -f $srcdir/config/$x
11531 then hx="$hx $x"
11532 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11533 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11535 done
11536 host_xm_file="$hx"
11539 for x in $xm_file; do
11540 if test -f $srcdir/config/$x
11541 then tx="$tx $x"
11542 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11543 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11545 done
11546 xm_file="$tx"
11548 count=a
11549 for f in $tm_file; do
11550 count=${count}x
11551 done
11552 if test $count = ax; then
11553 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11554 else
11555 echo "Using the following target machine macro files:"
11556 for f in $tm_file; do
11557 echo " $srcdir/config/$f"
11558 done
11561 if test x$use_long_long_for_widest_fast_int = xyes; then
11563 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11567 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11569 cat >>confdefs.h <<_ACEOF
11570 #define HAVE_GNU_LD $gnu_ld_bool
11571 _ACEOF
11574 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11576 cat >>confdefs.h <<_ACEOF
11577 #define HAVE_GNU_AS $gnu_as_bool
11578 _ACEOF
11581 count=a
11582 for f in $host_xm_file; do
11583 count=${count}x
11584 done
11585 if test $count = a; then
11587 elif test $count = ax; then
11588 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11589 else
11590 echo "Using the following host machine macro files:"
11591 for f in $host_xm_file; do
11592 echo " $srcdir/config/$f"
11593 done
11595 echo "Using ${out_host_hook_obj} for host machine hooks."
11597 if test "$host_xm_file" != "$build_xm_file"; then
11598 count=a
11599 for f in $build_xm_file; do
11600 count=${count}x
11601 done
11602 if test $count = a; then
11604 elif test $count = ax; then
11605 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11606 else
11607 echo "Using the following build machine macro files:"
11608 for f in $build_xm_file; do
11609 echo " $srcdir/config/$f"
11610 done
11614 if test -n "$configured_native_system_header_dir"; then
11615 native_system_header_dir=$configured_native_system_header_dir
11617 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11620 case ${host} in
11621 powerpc*-*-darwin*)
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11623 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11624 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626 else
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11630 #include <sys/cdefs.h>
11631 #include <sys/signal.h>
11632 #include <ucontext.h>
11633 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11635 _ACEOF
11636 if ac_fn_cxx_try_compile "$LINENO"; then :
11637 gcc_cv_mcontext_underscores=no
11638 else
11639 gcc_cv_mcontext_underscores=yes
11641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11644 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11645 if test $gcc_cv_mcontext_underscores = yes; then
11647 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11651 esac
11653 # ---------
11654 # Threading
11655 # ---------
11657 # Check if a valid thread package
11658 case ${enable_threads} in
11659 "" | no)
11660 # No threads
11661 target_thread_file='single'
11663 yes)
11664 # default
11665 target_thread_file='single'
11667 aix | dce | lynx | mipssde | posix | rtems | \
11668 single | tpf | vxworks | win32)
11669 target_thread_file=${enable_threads}
11672 echo "${enable_threads} is an unknown thread package" 1>&2
11673 exit 1
11675 esac
11677 if test x${thread_file} = x; then
11678 # No thread file set by target-specific clauses in config.gcc,
11679 # so use file chosen by default logic above
11680 thread_file=${target_thread_file}
11683 # --------
11684 # UNSORTED
11685 # --------
11687 use_cxa_atexit=no
11688 if test x$enable___cxa_atexit = xyes || \
11689 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11690 if test x$host = x$target; then
11691 case $host in
11692 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11693 # keyed to flag_use_cxa_atexit
11694 *-*-mingw32*)
11695 use_cxa_atexit=yes
11697 powerpc-ibm-aix*)
11698 use_cxa_atexit=yes
11701 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11702 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11703 use_cxa_atexit=yes
11704 else
11705 echo "__cxa_atexit can't be enabled on this target"
11709 esac
11710 else
11711 # We can't check for __cxa_atexit when building a cross, so assume
11712 # it is available
11713 use_cxa_atexit=yes
11715 if test x$use_cxa_atexit = xyes; then
11717 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11722 # Look for a file containing extra machine modes.
11723 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11724 extra_modes_file='$(srcdir)'/config/${extra_modes}
11727 cat >>confdefs.h <<_ACEOF
11728 #define EXTRA_MODES_FILE "config/$extra_modes"
11729 _ACEOF
11733 # Convert extra_options into a form suitable for Makefile use.
11734 extra_opt_files=
11735 all_opt_files=
11736 for f in $extra_options; do
11737 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11738 all_opt_files="$all_opt_files $srcdir/config/$f"
11739 done
11742 # auto-host.h is the file containing items generated by autoconf and is
11743 # the first file included by config.h.
11744 # If host=build, it is correct to have bconfig include auto-host.h
11745 # as well. If host!=build, we are in error and need to do more
11746 # work to find out the build config parameters.
11747 if test x$host = x$build
11748 then
11749 build_auto=auto-host.h
11750 else
11751 # We create a subdir, then run autoconf in the subdir.
11752 # To prevent recursion we set host and build for the new
11753 # invocation of configure to the build for this invocation
11754 # of configure.
11755 tempdir=build.$$
11756 rm -rf $tempdir
11757 mkdir $tempdir
11758 cd $tempdir
11759 case ${srcdir} in
11760 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11761 *) realsrcdir=../${srcdir};;
11762 esac
11763 # Clearing GMPINC is necessary to prevent host headers being
11764 # used by the build compiler. Defining GENERATOR_FILE stops
11765 # system.h from including gmp.h.
11766 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11767 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11768 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11769 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11770 ${realsrcdir}/configure \
11771 --enable-languages=${enable_languages-all} \
11772 --target=$target_alias --host=$build_alias --build=$build_alias
11774 # We just finished tests for the build machine, so rename
11775 # the file auto-build.h in the gcc directory.
11776 mv auto-host.h ../auto-build.h
11777 cd ..
11778 rm -rf $tempdir
11779 build_auto=auto-build.h
11783 tm_file="${tm_file} defaults.h"
11784 tm_p_file="${tm_p_file} tm-preds.h"
11785 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11786 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11787 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11788 # put this back in temporarily.
11789 xm_file="auto-host.h ansidecl.h ${xm_file}"
11791 # --------
11792 # UNSORTED
11793 # --------
11795 # Compile in configure arguments.
11796 if test -f configargs.h ; then
11797 # Being re-configured.
11798 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11799 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11800 else
11801 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11804 # Double all backslashes and backslash all quotes to turn
11805 # gcc_config_arguments into a C string.
11806 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11807 $gcc_config_arguments
11809 gcc_config_arguments_str=`cat conftest.out`
11810 rm -f conftest.out
11812 cat > configargs.h <<EOF
11813 /* Generated automatically. */
11814 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11815 static const char thread_model[] = "$thread_file";
11817 static const struct {
11818 const char *name, *value;
11819 } configure_default_options[] = $configure_default_options;
11822 gcc_BASEVER=`cat $srcdir/BASE-VER`
11823 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11824 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11825 if test -f $srcdir/REVISION ; then
11826 gcc_REVISION=`cat $srcdir/REVISION`
11827 else
11828 gcc_REVISION=""
11830 cat > plugin-version.h <<EOF
11831 #include "configargs.h"
11833 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11834 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11835 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11836 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11838 static char basever[] = "$gcc_BASEVER";
11839 static char datestamp[] = "$gcc_DATESTAMP";
11840 static char devphase[] = "$gcc_DEVPHASE";
11841 static char revision[] = "$gcc_REVISION";
11843 /* FIXME plugins: We should make the version information more precise.
11844 One way to do is to add a checksum. */
11846 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11847 devphase, revision,
11848 configuration_arguments};
11851 # Internationalization
11852 # If we haven't got the data from the intl directory,
11853 # assume NLS is disabled.
11854 USE_NLS=no
11855 LIBINTL=
11856 LIBINTL_DEP=
11857 INCINTL=
11858 XGETTEXT=
11859 GMSGFMT=
11860 POSUB=
11862 if test -f ../intl/config.intl; then
11863 . ../intl/config.intl
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11866 $as_echo_n "checking whether NLS is requested... " >&6; }
11867 if test x"$USE_NLS" != xyes; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872 $as_echo "yes" >&6; }
11874 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11878 $as_echo_n "checking for catalogs to be installed... " >&6; }
11879 # Look for .po and .gmo files in the source directory.
11880 CATALOGS=
11881 XLINGUAS=
11882 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11883 # If there aren't any .gmo files the shell will give us the
11884 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11885 # weeded out.
11886 case "$cat" in *\**)
11887 continue;;
11888 esac
11889 # The quadruple backslash is collapsed to a double backslash
11890 # by the backticks, then collapsed again by the double quotes,
11891 # leaving us with one backslash in the sed expression (right
11892 # before the dot that mustn't act as a wildcard).
11893 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11894 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11895 # The user is allowed to set LINGUAS to a list of languages to
11896 # install catalogs for. If it's empty that means "all of them."
11897 if test "x$LINGUAS" = x; then
11898 CATALOGS="$CATALOGS $cat"
11899 XLINGUAS="$XLINGUAS $lang"
11900 else
11901 case "$LINGUAS" in *$lang*)
11902 CATALOGS="$CATALOGS $cat"
11903 XLINGUAS="$XLINGUAS $lang"
11905 esac
11907 done
11908 LINGUAS="$XLINGUAS"
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11910 $as_echo "$LINGUAS" >&6; }
11913 DATADIRNAME=share
11915 INSTOBJEXT=.mo
11917 GENCAT=gencat
11919 CATOBJEXT=.gmo
11923 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11924 # -liconv on the link line twice.
11925 case "$LIBINTL" in *$LIBICONV*)
11926 LIBICONV= ;;
11927 esac
11929 # Check whether --enable-secureplt was given.
11930 if test "${enable_secureplt+set}" = set; then :
11931 enableval=$enable_secureplt;
11935 # Check whether --enable-leading-mingw64-underscores was given.
11936 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11937 enableval=$enable_leading_mingw64_underscores;
11940 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11942 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11946 # Check whether --enable-cld was given.
11947 if test "${enable_cld+set}" = set; then :
11948 enableval=$enable_cld;
11949 else
11950 enable_cld=no
11954 # Check whether --enable-frame-pointer was given.
11955 if test "${enable_frame_pointer+set}" = set; then :
11956 enableval=$enable_frame_pointer;
11957 else
11959 case $target_os in
11960 linux* | darwin[8912]*)
11961 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11962 # DWARF2.
11963 enable_frame_pointer=no
11966 enable_frame_pointer=yes
11968 esac
11973 # Windows32 Registry support for specifying GCC installation paths.
11974 # Check whether --enable-win32-registry was given.
11975 if test "${enable_win32_registry+set}" = set; then :
11976 enableval=$enable_win32_registry;
11980 case $host_os in
11981 win32 | pe | cygwin* | mingw32*)
11982 if test "x$enable_win32_registry" != xno; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11984 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11985 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 ac_func_search_save_LIBS=$LIBS
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11992 /* Override any GCC internal prototype to avoid an error.
11993 Use char because int might match the return type of a GCC
11994 builtin and then its argument prototype would still apply. */
11995 #ifdef __cplusplus
11996 extern "C"
11997 #endif
11998 char RegOpenKeyExA ();
12000 main ()
12002 return RegOpenKeyExA ();
12004 return 0;
12006 _ACEOF
12007 for ac_lib in '' advapi32; do
12008 if test -z "$ac_lib"; then
12009 ac_res="none required"
12010 else
12011 ac_res=-l$ac_lib
12012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12014 if ac_fn_cxx_try_link "$LINENO"; then :
12015 ac_cv_search_RegOpenKeyExA=$ac_res
12017 rm -f core conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext
12019 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12020 break
12022 done
12023 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12025 else
12026 ac_cv_search_RegOpenKeyExA=no
12028 rm conftest.$ac_ext
12029 LIBS=$ac_func_search_save_LIBS
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12032 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12033 ac_res=$ac_cv_search_RegOpenKeyExA
12034 if test "$ac_res" != no; then :
12035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12037 else
12038 enable_win32_registry=no
12043 if test "x$enable_win32_registry" != xno; then
12045 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12048 if test "x$enable_win32_registry" != xyes \
12049 && test "x$enable_win32_registry" != x; then
12051 cat >>confdefs.h <<_ACEOF
12052 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12053 _ACEOF
12058 esac
12060 # Get an absolute path to the GCC top-level source directory
12061 holddir=`${PWDCMD-pwd}`
12062 cd $srcdir
12063 topdir=`${PWDCMD-pwd}`
12064 cd $holddir
12066 # Conditionalize the makefile for this host machine.
12067 xmake_file=
12068 for f in ${host_xmake_file}
12070 if test -f ${srcdir}/config/$f
12071 then
12072 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12074 done
12076 # Conditionalize the makefile for this target machine.
12077 tmake_file_=
12078 for f in ${tmake_file}
12080 if test -f ${srcdir}/config/$f
12081 then
12082 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12084 done
12085 tmake_file="${tmake_file_}"
12087 out_object_file=`basename $out_file .c`.o
12088 common_out_object_file=`basename $common_out_file .c`.o
12090 tm_file_list="options.h"
12091 tm_include_list="options.h insn-constants.h"
12092 for f in $tm_file; do
12093 case $f in
12094 ./* )
12095 f=`echo $f | sed 's/^..//'`
12096 tm_file_list="${tm_file_list} $f"
12097 tm_include_list="${tm_include_list} $f"
12099 defaults.h )
12100 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12101 tm_include_list="${tm_include_list} $f"
12104 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12105 tm_include_list="${tm_include_list} config/$f"
12107 esac
12108 done
12110 tm_p_file_list=
12111 tm_p_include_list=
12112 for f in $tm_p_file; do
12113 case $f in
12114 tm-preds.h )
12115 tm_p_file_list="${tm_p_file_list} $f"
12116 tm_p_include_list="${tm_p_include_list} $f"
12119 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12120 tm_p_include_list="${tm_p_include_list} config/$f"
12121 esac
12122 done
12124 xm_file_list=
12125 xm_include_list=
12126 for f in $xm_file; do
12127 case $f in
12128 ansidecl.h )
12129 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12130 xm_include_list="${xm_include_list} $f"
12132 auto-host.h )
12133 xm_file_list="${xm_file_list} $f"
12134 xm_include_list="${xm_include_list} $f"
12137 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12138 xm_include_list="${xm_include_list} config/$f"
12140 esac
12141 done
12143 host_xm_file_list=
12144 host_xm_include_list=
12145 for f in $host_xm_file; do
12146 case $f in
12147 ansidecl.h )
12148 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12149 host_xm_include_list="${host_xm_include_list} $f"
12151 auto-host.h )
12152 host_xm_file_list="${host_xm_file_list} $f"
12153 host_xm_include_list="${host_xm_include_list} $f"
12156 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12157 host_xm_include_list="${host_xm_include_list} config/$f"
12159 esac
12160 done
12162 build_xm_file_list=
12163 for f in $build_xm_file; do
12164 case $f in
12165 ansidecl.h )
12166 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12167 build_xm_include_list="${build_xm_include_list} $f"
12169 auto-build.h | auto-host.h )
12170 build_xm_file_list="${build_xm_file_list} $f"
12171 build_xm_include_list="${build_xm_include_list} $f"
12174 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12175 build_xm_include_list="${build_xm_include_list} config/$f"
12177 esac
12178 done
12180 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12181 # cross-compiler which does not use the native headers and libraries.
12182 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12183 CROSS=
12184 ALL=all.internal
12185 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12187 if test "x$with_build_sysroot" != x; then
12188 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12189 else
12190 # This value is used, even on a native system, because
12191 # CROSS_SYSTEM_HEADER_DIR is just
12192 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12193 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12196 if test x$host != x$target
12197 then
12198 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12199 ALL=all.cross
12200 SYSTEM_HEADER_DIR=$build_system_header_dir
12201 case "$host","$target" in
12202 # Darwin crosses can use the host system's libraries and headers,
12203 # because of the fat library support. Of course, it must be the
12204 # same version of Darwin on both sides. Allow the user to
12205 # just say --target=foo-darwin without a version number to mean
12206 # "the version on this system".
12207 *-*-darwin*,*-*-darwin*)
12208 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12209 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12210 if test $hostos = $targetos -o $targetos = darwin ; then
12211 CROSS=
12212 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12213 with_headers=yes
12217 i?86-*-*,x86_64-*-* \
12218 | powerpc*-*-*,powerpc64*-*-*)
12219 CROSS="$CROSS -DNATIVE_CROSS" ;;
12220 esac
12222 case $target in
12223 *-*-mingw*)
12224 if test "x$with_headers" = x; then
12225 with_headers=yes
12230 esac
12231 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12232 SYSTEM_HEADER_DIR=$build_system_header_dir
12235 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12236 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12237 target_header_dir=$with_headers
12238 elif test "x$with_sysroot" = x; then
12239 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12240 elif test "x$with_build_sysroot" != "x"; then
12241 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12242 elif test "x$with_sysroot" = xyes; then
12243 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12244 else
12245 target_header_dir="${with_sysroot}${native_system_header_dir}"
12247 else
12248 target_header_dir=${native_system_header_dir}
12251 # If this is a cross-compiler that does not
12252 # have its own set of headers then define
12253 # inhibit_libc
12255 # If this is using newlib, without having the headers available now,
12256 # then define inhibit_libc in LIBGCC2_CFLAGS.
12257 # This prevents libgcc2 from containing any code which requires libc
12258 # support.
12259 : ${inhibit_libc=false}
12260 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12261 test x$with_newlib = xyes ; } &&
12262 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12263 inhibit_libc=true
12267 # When building gcc with a cross-compiler, we need to adjust things so
12268 # that the generator programs are still built with the native compiler.
12269 # Also, we cannot run fixincludes.
12271 # These are the normal (build=host) settings:
12272 CC_FOR_BUILD='$(CC)'
12273 CXX_FOR_BUILD='$(CXX)'
12274 BUILD_CFLAGS='$(ALL_CFLAGS)'
12275 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12276 BUILD_LDFLAGS='$(LDFLAGS)'
12277 STMP_FIXINC=stmp-fixinc
12279 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12280 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12282 # And these apply if build != host, or we are generating coverage data
12283 if test x$build != x$host || test "x$coverage_flags" != x
12284 then
12285 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12286 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12287 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12289 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12290 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12291 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12292 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12297 # Expand extra_headers to include complete path.
12298 # This substitutes for lots of t-* files.
12299 extra_headers_list=
12300 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12301 for file in ${extra_headers} ; do
12302 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12303 done
12305 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12306 if test x"$use_gcc_tgmath" = xyes
12307 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12310 # Define collect2 in Makefile.
12311 case $host_can_use_collect2 in
12312 no) collect2= ;;
12313 *) collect2='collect2$(exeext)' ;;
12314 esac
12317 # Add a definition of USE_COLLECT2 if system wants one.
12318 case $use_collect2 in
12319 no) use_collect2= ;;
12320 "") ;;
12322 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12323 xm_defines="${xm_defines} USE_COLLECT2"
12324 case $host_can_use_collect2 in
12326 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12328 esac
12330 esac
12333 cat >>confdefs.h <<_ACEOF
12334 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12335 _ACEOF
12338 # ---------------------------
12339 # Assembler & linker features
12340 # ---------------------------
12342 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12343 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12344 # However when ld-new is first executed from the build tree, libtool will
12345 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12346 # to the build tree. While doing this we need to use the previous-stage
12347 # linker, or we have an infinite loop. The presence of a shell script as
12348 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12349 # the gcc/collect-ld script. So we need to know how libtool works, or
12350 # exec-tool will fail.
12353 case `pwd` in
12354 *\ * | *\ *)
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12356 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12357 esac
12361 macro_version='2.2.7a'
12362 macro_revision='1.3134'
12376 ltmain="$ac_aux_dir/ltmain.sh"
12378 # Backslashify metacharacters that are still active within
12379 # double-quoted strings.
12380 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12382 # Same as above, but do not quote variable references.
12383 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12385 # Sed substitution to delay expansion of an escaped shell variable in a
12386 # double_quote_subst'ed string.
12387 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12389 # Sed substitution to delay expansion of an escaped single quote.
12390 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12392 # Sed substitution to avoid accidental globbing in evaled expressions
12393 no_glob_subst='s/\*/\\\*/g'
12395 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12396 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12397 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12400 $as_echo_n "checking how to print strings... " >&6; }
12401 # Test print first, because it will be a builtin if present.
12402 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12403 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12404 ECHO='print -r --'
12405 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12406 ECHO='printf %s\n'
12407 else
12408 # Use this function as a fallback that always works.
12409 func_fallback_echo ()
12411 eval 'cat <<_LTECHO_EOF
12413 _LTECHO_EOF'
12415 ECHO='func_fallback_echo'
12418 # func_echo_all arg...
12419 # Invoke $ECHO with all args, space-separated.
12420 func_echo_all ()
12422 $ECHO ""
12425 case "$ECHO" in
12426 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12427 $as_echo "printf" >&6; } ;;
12428 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12429 $as_echo "print -r" >&6; } ;;
12430 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12431 $as_echo "cat" >&6; } ;;
12432 esac
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12448 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12449 if test "${ac_cv_path_SED+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12453 for ac_i in 1 2 3 4 5 6 7; do
12454 ac_script="$ac_script$as_nl$ac_script"
12455 done
12456 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12457 { ac_script=; unset ac_script;}
12458 if test -z "$SED"; then
12459 ac_path_SED_found=false
12460 # Loop through the user's path and test for each of PROGNAME-LIST
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_prog in sed gsed; do
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12469 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12470 # Check for GNU ac_path_SED and select it if it is found.
12471 # Check for GNU $ac_path_SED
12472 case `"$ac_path_SED" --version 2>&1` in
12473 *GNU*)
12474 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12476 ac_count=0
12477 $as_echo_n 0123456789 >"conftest.in"
12478 while :
12480 cat "conftest.in" "conftest.in" >"conftest.tmp"
12481 mv "conftest.tmp" "conftest.in"
12482 cp "conftest.in" "conftest.nl"
12483 $as_echo '' >> "conftest.nl"
12484 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12486 as_fn_arith $ac_count + 1 && ac_count=$as_val
12487 if test $ac_count -gt ${ac_path_SED_max-0}; then
12488 # Best one so far, save it but keep looking for a better one
12489 ac_cv_path_SED="$ac_path_SED"
12490 ac_path_SED_max=$ac_count
12492 # 10*(2^10) chars as input seems more than enough
12493 test $ac_count -gt 10 && break
12494 done
12495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12496 esac
12498 $ac_path_SED_found && break 3
12499 done
12500 done
12501 done
12502 IFS=$as_save_IFS
12503 if test -z "$ac_cv_path_SED"; then
12504 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12506 else
12507 ac_cv_path_SED=$SED
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12512 $as_echo "$ac_cv_path_SED" >&6; }
12513 SED="$ac_cv_path_SED"
12514 rm -f conftest.sed
12516 test -z "$SED" && SED=sed
12517 Xsed="$SED -e 1s/^X//"
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12530 $as_echo_n "checking for fgrep... " >&6; }
12531 if test "${ac_cv_path_FGREP+set}" = set; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12535 then ac_cv_path_FGREP="$GREP -F"
12536 else
12537 if test -z "$FGREP"; then
12538 ac_path_FGREP_found=false
12539 # Loop through the user's path and test for each of PROGNAME-LIST
12540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12543 IFS=$as_save_IFS
12544 test -z "$as_dir" && as_dir=.
12545 for ac_prog in fgrep; do
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12548 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12549 # Check for GNU ac_path_FGREP and select it if it is found.
12550 # Check for GNU $ac_path_FGREP
12551 case `"$ac_path_FGREP" --version 2>&1` in
12552 *GNU*)
12553 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12555 ac_count=0
12556 $as_echo_n 0123456789 >"conftest.in"
12557 while :
12559 cat "conftest.in" "conftest.in" >"conftest.tmp"
12560 mv "conftest.tmp" "conftest.in"
12561 cp "conftest.in" "conftest.nl"
12562 $as_echo 'FGREP' >> "conftest.nl"
12563 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12565 as_fn_arith $ac_count + 1 && ac_count=$as_val
12566 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12567 # Best one so far, save it but keep looking for a better one
12568 ac_cv_path_FGREP="$ac_path_FGREP"
12569 ac_path_FGREP_max=$ac_count
12571 # 10*(2^10) chars as input seems more than enough
12572 test $ac_count -gt 10 && break
12573 done
12574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12575 esac
12577 $ac_path_FGREP_found && break 3
12578 done
12579 done
12580 done
12581 IFS=$as_save_IFS
12582 if test -z "$ac_cv_path_FGREP"; then
12583 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12585 else
12586 ac_cv_path_FGREP=$FGREP
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12592 $as_echo "$ac_cv_path_FGREP" >&6; }
12593 FGREP="$ac_cv_path_FGREP"
12596 test -z "$GREP" && GREP=grep
12616 # Check whether --with-gnu-ld was given.
12617 if test "${with_gnu_ld+set}" = set; then :
12618 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12619 else
12620 with_gnu_ld=no
12623 ac_prog=ld
12624 if test "$GCC" = yes; then
12625 # Check if gcc -print-prog-name=ld gives a path.
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12627 $as_echo_n "checking for ld used by $CC... " >&6; }
12628 case $host in
12629 *-*-mingw*)
12630 # gcc leaves a trailing carriage return which upsets mingw
12631 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12633 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12634 esac
12635 case $ac_prog in
12636 # Accept absolute paths.
12637 [\\/]* | ?:[\\/]*)
12638 re_direlt='/[^/][^/]*/\.\./'
12639 # Canonicalize the pathname of ld
12640 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12641 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12642 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12643 done
12644 test -z "$LD" && LD="$ac_prog"
12647 # If it fails, then pretend we aren't using GCC.
12648 ac_prog=ld
12651 # If it is relative, then search for the first ld in PATH.
12652 with_gnu_ld=unknown
12654 esac
12655 elif test "$with_gnu_ld" = yes; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12657 $as_echo_n "checking for GNU ld... " >&6; }
12658 else
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12660 $as_echo_n "checking for non-GNU ld... " >&6; }
12662 if test "${lt_cv_path_LD+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 if test -z "$LD"; then
12666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12667 for ac_dir in $PATH; do
12668 IFS="$lt_save_ifs"
12669 test -z "$ac_dir" && ac_dir=.
12670 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12671 lt_cv_path_LD="$ac_dir/$ac_prog"
12672 # Check to see if the program is GNU ld. I'd rather use --version,
12673 # but apparently some variants of GNU ld only accept -v.
12674 # Break only if it was the GNU/non-GNU ld that we prefer.
12675 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12676 *GNU* | *'with BFD'*)
12677 test "$with_gnu_ld" != no && break
12680 test "$with_gnu_ld" != yes && break
12682 esac
12684 done
12685 IFS="$lt_save_ifs"
12686 else
12687 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12691 LD="$lt_cv_path_LD"
12692 if test -n "$LD"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12694 $as_echo "$LD" >&6; }
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697 $as_echo "no" >&6; }
12699 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12701 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12702 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12703 $as_echo_n "(cached) " >&6
12704 else
12705 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12706 case `$LD -v 2>&1 </dev/null` in
12707 *GNU* | *'with BFD'*)
12708 lt_cv_prog_gnu_ld=yes
12711 lt_cv_prog_gnu_ld=no
12713 esac
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12716 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12717 with_gnu_ld=$lt_cv_prog_gnu_ld
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12728 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12729 if test "${lt_cv_path_NM+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 if test -n "$NM"; then
12733 # Let the user override the test.
12734 lt_cv_path_NM="$NM"
12735 else
12736 lt_nm_to_check="${ac_tool_prefix}nm"
12737 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12738 lt_nm_to_check="$lt_nm_to_check nm"
12740 for lt_tmp_nm in $lt_nm_to_check; do
12741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12742 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12743 IFS="$lt_save_ifs"
12744 test -z "$ac_dir" && ac_dir=.
12745 tmp_nm="$ac_dir/$lt_tmp_nm"
12746 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12747 # Check to see if the nm accepts a BSD-compat flag.
12748 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12749 # nm: unknown option "B" ignored
12750 # Tru64's nm complains that /dev/null is an invalid object file
12751 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12752 */dev/null* | *'Invalid file or object type'*)
12753 lt_cv_path_NM="$tmp_nm -B"
12754 break
12757 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12758 */dev/null*)
12759 lt_cv_path_NM="$tmp_nm -p"
12760 break
12763 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12764 continue # so that we can try to find one that supports BSD flags
12766 esac
12768 esac
12770 done
12771 IFS="$lt_save_ifs"
12772 done
12773 : ${lt_cv_path_NM=no}
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12777 $as_echo "$lt_cv_path_NM" >&6; }
12778 if test "$lt_cv_path_NM" != "no"; then
12779 NM="$lt_cv_path_NM"
12780 else
12781 # Didn't find any BSD compatible name lister, look for dumpbin.
12782 if test -n "$DUMPBIN"; then :
12783 # Let the user override the test.
12784 else
12785 if test -n "$ac_tool_prefix"; then
12786 for ac_prog in dumpbin "link -dump"
12788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791 $as_echo_n "checking for $ac_word... " >&6; }
12792 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12793 $as_echo_n "(cached) " >&6
12794 else
12795 if test -n "$DUMPBIN"; then
12796 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12797 else
12798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799 for as_dir in $PATH
12801 IFS=$as_save_IFS
12802 test -z "$as_dir" && as_dir=.
12803 for ac_exec_ext in '' $ac_executable_extensions; do
12804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12805 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12807 break 2
12809 done
12810 done
12811 IFS=$as_save_IFS
12815 DUMPBIN=$ac_cv_prog_DUMPBIN
12816 if test -n "$DUMPBIN"; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12818 $as_echo "$DUMPBIN" >&6; }
12819 else
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821 $as_echo "no" >&6; }
12825 test -n "$DUMPBIN" && break
12826 done
12828 if test -z "$DUMPBIN"; then
12829 ac_ct_DUMPBIN=$DUMPBIN
12830 for ac_prog in dumpbin "link -dump"
12832 # Extract the first word of "$ac_prog", so it can be a program name with args.
12833 set dummy $ac_prog; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 if test -n "$ac_ct_DUMPBIN"; then
12840 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12841 else
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12853 done
12854 done
12855 IFS=$as_save_IFS
12859 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12860 if test -n "$ac_ct_DUMPBIN"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12862 $as_echo "$ac_ct_DUMPBIN" >&6; }
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12869 test -n "$ac_ct_DUMPBIN" && break
12870 done
12872 if test "x$ac_ct_DUMPBIN" = x; then
12873 DUMPBIN=":"
12874 else
12875 case $cross_compiling:$ac_tool_warned in
12876 yes:)
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12879 ac_tool_warned=yes ;;
12880 esac
12881 DUMPBIN=$ac_ct_DUMPBIN
12885 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12886 *COFF*)
12887 DUMPBIN="$DUMPBIN -symbols"
12890 DUMPBIN=:
12892 esac
12895 if test "$DUMPBIN" != ":"; then
12896 NM="$DUMPBIN"
12899 test -z "$NM" && NM=nm
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12907 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12908 if test "${lt_cv_nm_interface+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 lt_cv_nm_interface="BSD nm"
12912 echo "int some_variable = 0;" > conftest.$ac_ext
12913 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12914 (eval "$ac_compile" 2>conftest.err)
12915 cat conftest.err >&5
12916 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12917 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12918 cat conftest.err >&5
12919 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12920 cat conftest.out >&5
12921 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12922 lt_cv_nm_interface="MS dumpbin"
12924 rm -f conftest*
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12927 $as_echo "$lt_cv_nm_interface" >&6; }
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12930 $as_echo_n "checking whether ln -s works... " >&6; }
12931 LN_S=$as_ln_s
12932 if test "$LN_S" = "ln -s"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12934 $as_echo "yes" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12937 $as_echo "no, using $LN_S" >&6; }
12940 # find the maximum length of command line arguments
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12942 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12943 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12947 teststring="ABCD"
12949 case $build_os in
12950 msdosdjgpp*)
12951 # On DJGPP, this test can blow up pretty badly due to problems in libc
12952 # (any single argument exceeding 2000 bytes causes a buffer overrun
12953 # during glob expansion). Even if it were fixed, the result of this
12954 # check would be larger than it should be.
12955 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12958 gnu*)
12959 # Under GNU Hurd, this test is not required because there is
12960 # no limit to the length of command line arguments.
12961 # Libtool will interpret -1 as no limit whatsoever
12962 lt_cv_sys_max_cmd_len=-1;
12965 cygwin* | mingw* | cegcc*)
12966 # On Win9x/ME, this test blows up -- it succeeds, but takes
12967 # about 5 minutes as the teststring grows exponentially.
12968 # Worse, since 9x/ME are not pre-emptively multitasking,
12969 # you end up with a "frozen" computer, even though with patience
12970 # the test eventually succeeds (with a max line length of 256k).
12971 # Instead, let's just punt: use the minimum linelength reported by
12972 # all of the supported platforms: 8192 (on NT/2K/XP).
12973 lt_cv_sys_max_cmd_len=8192;
12976 mint*)
12977 # On MiNT this can take a long time and run out of memory.
12978 lt_cv_sys_max_cmd_len=8192;
12981 amigaos*)
12982 # On AmigaOS with pdksh, this test takes hours, literally.
12983 # So we just punt and use a minimum line length of 8192.
12984 lt_cv_sys_max_cmd_len=8192;
12987 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12988 # This has been around since 386BSD, at least. Likely further.
12989 if test -x /sbin/sysctl; then
12990 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12991 elif test -x /usr/sbin/sysctl; then
12992 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12993 else
12994 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12996 # And add a safety zone
12997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13001 interix*)
13002 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13003 lt_cv_sys_max_cmd_len=196608
13006 osf*)
13007 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13008 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13009 # nice to cause kernel panics so lets avoid the loop below.
13010 # First set a reasonable default.
13011 lt_cv_sys_max_cmd_len=16384
13013 if test -x /sbin/sysconfig; then
13014 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13015 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13016 esac
13019 sco3.2v5*)
13020 lt_cv_sys_max_cmd_len=102400
13022 sysv5* | sco5v6* | sysv4.2uw2*)
13023 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13024 if test -n "$kargmax"; then
13025 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13026 else
13027 lt_cv_sys_max_cmd_len=32768
13031 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13032 if test -n "$lt_cv_sys_max_cmd_len"; then
13033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13035 else
13036 # Make teststring a little bigger before we do anything with it.
13037 # a 1K string should be a reasonable start.
13038 for i in 1 2 3 4 5 6 7 8 ; do
13039 teststring=$teststring$teststring
13040 done
13041 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13042 # If test is not a shell built-in, we'll probably end up computing a
13043 # maximum length that is only half of the actual maximum length, but
13044 # we can't tell.
13045 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13046 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13047 test $i != 17 # 1/2 MB should be enough
13049 i=`expr $i + 1`
13050 teststring=$teststring$teststring
13051 done
13052 # Only check the string length outside the loop.
13053 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13054 teststring=
13055 # Add a significant safety factor because C++ compilers can tack on
13056 # massive amounts of additional arguments before passing them to the
13057 # linker. It appears as though 1/2 is a usable value.
13058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13061 esac
13065 if test -n $lt_cv_sys_max_cmd_len ; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13067 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13070 $as_echo "none" >&6; }
13072 max_cmd_len=$lt_cv_sys_max_cmd_len
13079 : ${CP="cp -f"}
13080 : ${MV="mv -f"}
13081 : ${RM="rm -f"}
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13084 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13085 # Try some XSI features
13086 xsi_shell=no
13087 ( _lt_dummy="a/b/c"
13088 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13089 = c,a/b,, \
13090 && eval 'test $(( 1 + 1 )) -eq 2 \
13091 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13092 && xsi_shell=yes
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13094 $as_echo "$xsi_shell" >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13098 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13099 lt_shell_append=no
13100 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13101 >/dev/null 2>&1 \
13102 && lt_shell_append=yes
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13104 $as_echo "$lt_shell_append" >&6; }
13107 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13108 lt_unset=unset
13109 else
13110 lt_unset=false
13117 # test EBCDIC or ASCII
13118 case `echo X|tr X '\101'` in
13119 A) # ASCII based system
13120 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13121 lt_SP2NL='tr \040 \012'
13122 lt_NL2SP='tr \015\012 \040\040'
13124 *) # EBCDIC based system
13125 lt_SP2NL='tr \100 \n'
13126 lt_NL2SP='tr \r\n \100\100'
13128 esac
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13139 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13140 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 lt_cv_ld_reload_flag='-r'
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13146 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13147 reload_flag=$lt_cv_ld_reload_flag
13148 case $reload_flag in
13149 "" | " "*) ;;
13150 *) reload_flag=" $reload_flag" ;;
13151 esac
13152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13153 case $host_os in
13154 darwin*)
13155 if test "$GCC" = yes; then
13156 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13157 else
13158 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13161 esac
13171 if test -n "$ac_tool_prefix"; then
13172 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13173 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 $as_echo_n "checking for $ac_word... " >&6; }
13176 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 if test -n "$OBJDUMP"; then
13180 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13181 else
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13189 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191 break 2
13193 done
13194 done
13195 IFS=$as_save_IFS
13199 OBJDUMP=$ac_cv_prog_OBJDUMP
13200 if test -n "$OBJDUMP"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13202 $as_echo "$OBJDUMP" >&6; }
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13210 if test -z "$ac_cv_prog_OBJDUMP"; then
13211 ac_ct_OBJDUMP=$OBJDUMP
13212 # Extract the first word of "objdump", so it can be a program name with args.
13213 set dummy objdump; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215 $as_echo_n "checking for $ac_word... " >&6; }
13216 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 if test -n "$ac_ct_OBJDUMP"; then
13220 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13221 else
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13229 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13233 done
13234 done
13235 IFS=$as_save_IFS
13239 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13240 if test -n "$ac_ct_OBJDUMP"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13242 $as_echo "$ac_ct_OBJDUMP" >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13248 if test "x$ac_ct_OBJDUMP" = x; then
13249 OBJDUMP="false"
13250 else
13251 case $cross_compiling:$ac_tool_warned in
13252 yes:)
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13255 ac_tool_warned=yes ;;
13256 esac
13257 OBJDUMP=$ac_ct_OBJDUMP
13259 else
13260 OBJDUMP="$ac_cv_prog_OBJDUMP"
13263 test -z "$OBJDUMP" && OBJDUMP=objdump
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13274 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13275 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 lt_cv_file_magic_cmd='$MAGIC_CMD'
13279 lt_cv_file_magic_test_file=
13280 lt_cv_deplibs_check_method='unknown'
13281 # Need to set the preceding variable on all platforms that support
13282 # interlibrary dependencies.
13283 # 'none' -- dependencies not supported.
13284 # `unknown' -- same as none, but documents that we really don't know.
13285 # 'pass_all' -- all dependencies passed with no checks.
13286 # 'test_compile' -- check by making test program.
13287 # 'file_magic [[regex]]' -- check by looking for files in library path
13288 # which responds to the $file_magic_cmd with a given extended regex.
13289 # If you have `file' or equivalent on your system and you're not sure
13290 # whether `pass_all' will *always* work, you probably want this one.
13292 case $host_os in
13293 aix[4-9]*)
13294 lt_cv_deplibs_check_method=pass_all
13297 beos*)
13298 lt_cv_deplibs_check_method=pass_all
13301 bsdi[45]*)
13302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13303 lt_cv_file_magic_cmd='/usr/bin/file -L'
13304 lt_cv_file_magic_test_file=/shlib/libc.so
13307 cygwin*)
13308 # func_win32_libid is a shell function defined in ltmain.sh
13309 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13310 lt_cv_file_magic_cmd='func_win32_libid'
13313 mingw* | pw32*)
13314 # Base MSYS/MinGW do not provide the 'file' command needed by
13315 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13316 # unless we find 'file', for example because we are cross-compiling.
13317 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13318 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13319 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13320 lt_cv_file_magic_cmd='func_win32_libid'
13321 else
13322 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13323 lt_cv_file_magic_cmd='$OBJDUMP -f'
13327 cegcc*)
13328 # use the weaker test based on 'objdump'. See mingw*.
13329 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13330 lt_cv_file_magic_cmd='$OBJDUMP -f'
13333 darwin* | rhapsody*)
13334 lt_cv_deplibs_check_method=pass_all
13337 freebsd* | dragonfly*)
13338 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13339 case $host_cpu in
13340 i*86 )
13341 # Not sure whether the presence of OpenBSD here was a mistake.
13342 # Let's accept both of them until this is cleared up.
13343 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13344 lt_cv_file_magic_cmd=/usr/bin/file
13345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13347 esac
13348 else
13349 lt_cv_deplibs_check_method=pass_all
13353 gnu*)
13354 lt_cv_deplibs_check_method=pass_all
13357 haiku*)
13358 lt_cv_deplibs_check_method=pass_all
13361 hpux10.20* | hpux11*)
13362 lt_cv_file_magic_cmd=/usr/bin/file
13363 case $host_cpu in
13364 ia64*)
13365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13366 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13368 hppa*64*)
13369 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]'
13370 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13373 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13374 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13376 esac
13379 interix[3-9]*)
13380 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13384 irix5* | irix6* | nonstopux*)
13385 case $LD in
13386 *-32|*"-32 ") libmagic=32-bit;;
13387 *-n32|*"-n32 ") libmagic=N32;;
13388 *-64|*"-64 ") libmagic=64-bit;;
13389 *) libmagic=never-match;;
13390 esac
13391 lt_cv_deplibs_check_method=pass_all
13394 # This must be Linux ELF.
13395 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13396 lt_cv_deplibs_check_method=pass_all
13399 netbsd*)
13400 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13402 else
13403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13407 newos6*)
13408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13409 lt_cv_file_magic_cmd=/usr/bin/file
13410 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13413 *nto* | *qnx*)
13414 lt_cv_deplibs_check_method=pass_all
13417 openbsd*)
13418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13420 else
13421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13425 osf3* | osf4* | osf5*)
13426 lt_cv_deplibs_check_method=pass_all
13429 rdos*)
13430 lt_cv_deplibs_check_method=pass_all
13433 solaris*)
13434 lt_cv_deplibs_check_method=pass_all
13437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13438 lt_cv_deplibs_check_method=pass_all
13441 sysv4 | sysv4.3*)
13442 case $host_vendor in
13443 motorola)
13444 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]'
13445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13447 ncr)
13448 lt_cv_deplibs_check_method=pass_all
13450 sequent)
13451 lt_cv_file_magic_cmd='/bin/file'
13452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13454 sni)
13455 lt_cv_file_magic_cmd='/bin/file'
13456 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13457 lt_cv_file_magic_test_file=/lib/libc.so
13459 siemens)
13460 lt_cv_deplibs_check_method=pass_all
13463 lt_cv_deplibs_check_method=pass_all
13465 esac
13468 tpf*)
13469 lt_cv_deplibs_check_method=pass_all
13471 esac
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13475 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13476 file_magic_cmd=$lt_cv_file_magic_cmd
13477 deplibs_check_method=$lt_cv_deplibs_check_method
13478 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13491 if test -n "$ac_tool_prefix"; then
13492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13493 set dummy ${ac_tool_prefix}ar; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if test "${ac_cv_prog_AR+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 if test -n "$AR"; then
13500 ac_cv_prog_AR="$AR" # Let the user override the test.
13501 else
13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503 for as_dir in $PATH
13505 IFS=$as_save_IFS
13506 test -z "$as_dir" && as_dir=.
13507 for ac_exec_ext in '' $ac_executable_extensions; do
13508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13509 ac_cv_prog_AR="${ac_tool_prefix}ar"
13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511 break 2
13513 done
13514 done
13515 IFS=$as_save_IFS
13519 AR=$ac_cv_prog_AR
13520 if test -n "$AR"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13522 $as_echo "$AR" >&6; }
13523 else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13530 if test -z "$ac_cv_prog_AR"; then
13531 ac_ct_AR=$AR
13532 # Extract the first word of "ar", so it can be a program name with args.
13533 set dummy ar; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 if test -n "$ac_ct_AR"; then
13540 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13541 else
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13545 IFS=$as_save_IFS
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13549 ac_cv_prog_ac_ct_AR="ar"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 break 2
13553 done
13554 done
13555 IFS=$as_save_IFS
13559 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13560 if test -n "$ac_ct_AR"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13562 $as_echo "$ac_ct_AR" >&6; }
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13568 if test "x$ac_ct_AR" = x; then
13569 AR="false"
13570 else
13571 case $cross_compiling:$ac_tool_warned in
13572 yes:)
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13575 ac_tool_warned=yes ;;
13576 esac
13577 AR=$ac_ct_AR
13579 else
13580 AR="$ac_cv_prog_AR"
13583 test -z "$AR" && AR=ar
13584 test -z "$AR_FLAGS" && AR_FLAGS=cru
13596 if test -n "$ac_tool_prefix"; then
13597 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13598 set dummy ${ac_tool_prefix}strip; ac_word=$2
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13600 $as_echo_n "checking for $ac_word... " >&6; }
13601 if test "${ac_cv_prog_STRIP+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604 if test -n "$STRIP"; then
13605 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13606 else
13607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608 for as_dir in $PATH
13610 IFS=$as_save_IFS
13611 test -z "$as_dir" && as_dir=.
13612 for ac_exec_ext in '' $ac_executable_extensions; do
13613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13614 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 break 2
13618 done
13619 done
13620 IFS=$as_save_IFS
13624 STRIP=$ac_cv_prog_STRIP
13625 if test -n "$STRIP"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13627 $as_echo "$STRIP" >&6; }
13628 else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13635 if test -z "$ac_cv_prog_STRIP"; then
13636 ac_ct_STRIP=$STRIP
13637 # Extract the first word of "strip", so it can be a program name with args.
13638 set dummy strip; ac_word=$2
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640 $as_echo_n "checking for $ac_word... " >&6; }
13641 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 if test -n "$ac_ct_STRIP"; then
13645 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13646 else
13647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648 for as_dir in $PATH
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
13653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13654 ac_cv_prog_ac_ct_STRIP="strip"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13658 done
13659 done
13660 IFS=$as_save_IFS
13664 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13665 if test -n "$ac_ct_STRIP"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13667 $as_echo "$ac_ct_STRIP" >&6; }
13668 else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13673 if test "x$ac_ct_STRIP" = x; then
13674 STRIP=":"
13675 else
13676 case $cross_compiling:$ac_tool_warned in
13677 yes:)
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13680 ac_tool_warned=yes ;;
13681 esac
13682 STRIP=$ac_ct_STRIP
13684 else
13685 STRIP="$ac_cv_prog_STRIP"
13688 test -z "$STRIP" && STRIP=:
13695 if test -n "$ac_tool_prefix"; then
13696 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13697 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13699 $as_echo_n "checking for $ac_word... " >&6; }
13700 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13702 else
13703 if test -n "$RANLIB"; then
13704 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13705 else
13706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707 for as_dir in $PATH
13709 IFS=$as_save_IFS
13710 test -z "$as_dir" && as_dir=.
13711 for ac_exec_ext in '' $ac_executable_extensions; do
13712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13715 break 2
13717 done
13718 done
13719 IFS=$as_save_IFS
13723 RANLIB=$ac_cv_prog_RANLIB
13724 if test -n "$RANLIB"; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13726 $as_echo "$RANLIB" >&6; }
13727 else
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 $as_echo "no" >&6; }
13734 if test -z "$ac_cv_prog_RANLIB"; then
13735 ac_ct_RANLIB=$RANLIB
13736 # Extract the first word of "ranlib", so it can be a program name with args.
13737 set dummy ranlib; ac_word=$2
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13739 $as_echo_n "checking for $ac_word... " >&6; }
13740 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13741 $as_echo_n "(cached) " >&6
13742 else
13743 if test -n "$ac_ct_RANLIB"; then
13744 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13745 else
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747 for as_dir in $PATH
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13753 ac_cv_prog_ac_ct_RANLIB="ranlib"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13755 break 2
13757 done
13758 done
13759 IFS=$as_save_IFS
13763 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13764 if test -n "$ac_ct_RANLIB"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13766 $as_echo "$ac_ct_RANLIB" >&6; }
13767 else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13772 if test "x$ac_ct_RANLIB" = x; then
13773 RANLIB=":"
13774 else
13775 case $cross_compiling:$ac_tool_warned in
13776 yes:)
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13779 ac_tool_warned=yes ;;
13780 esac
13781 RANLIB=$ac_ct_RANLIB
13783 else
13784 RANLIB="$ac_cv_prog_RANLIB"
13787 test -z "$RANLIB" && RANLIB=:
13794 # Determine commands to create old-style static archives.
13795 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13796 old_postinstall_cmds='chmod 644 $oldlib'
13797 old_postuninstall_cmds=
13799 if test -n "$RANLIB"; then
13800 case $host_os in
13801 openbsd*)
13802 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13807 esac
13808 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13811 case $host_os in
13812 darwin*)
13813 lock_old_archive_extraction=yes ;;
13815 lock_old_archive_extraction=no ;;
13816 esac
13856 # If no C compiler was specified, use CC.
13857 LTCC=${LTCC-"$CC"}
13859 # If no C compiler flags were specified, use CFLAGS.
13860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13862 # Allow CC to be a program name with arguments.
13863 compiler=$CC
13866 # Check for command to grab the raw symbol name followed by C symbol from nm.
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13868 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13869 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13873 # These are sane defaults that work on at least a few old systems.
13874 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13876 # Character class describing NM global symbol codes.
13877 symcode='[BCDEGRST]'
13879 # Regexp to match symbols that can be accessed directly from C.
13880 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13882 # Define system-specific variables.
13883 case $host_os in
13884 aix*)
13885 symcode='[BCDT]'
13887 cygwin* | mingw* | pw32* | cegcc*)
13888 symcode='[ABCDGISTW]'
13890 hpux*)
13891 if test "$host_cpu" = ia64; then
13892 symcode='[ABCDEGRST]'
13895 irix* | nonstopux*)
13896 symcode='[BCDEGRST]'
13898 osf*)
13899 symcode='[BCDEGQRST]'
13901 solaris*)
13902 symcode='[BDRT]'
13904 sco3.2v5*)
13905 symcode='[DT]'
13907 sysv4.2uw2*)
13908 symcode='[DT]'
13910 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13911 symcode='[ABDT]'
13913 sysv4)
13914 symcode='[DFNSTU]'
13916 esac
13918 # If we're using GNU nm, then use its standard symbol codes.
13919 case `$NM -V 2>&1` in
13920 *GNU* | *'with BFD'*)
13921 symcode='[ABCDGIRSTW]' ;;
13922 esac
13924 # Transform an extracted symbol line into a proper C declaration.
13925 # Some systems (esp. on ia64) link data and code symbols differently,
13926 # so use this general approach.
13927 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13929 # Transform an extracted symbol line into symbol name and symbol address
13930 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13931 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'"
13933 # Handle CRLF in mingw tool chain
13934 opt_cr=
13935 case $build_os in
13936 mingw*)
13937 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13939 esac
13941 # Try without a prefix underscore, then with it.
13942 for ac_symprfx in "" "_"; do
13944 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13945 symxfrm="\\1 $ac_symprfx\\2 \\2"
13947 # Write the raw and C identifiers.
13948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13949 # Fake it for dumpbin and say T for any non-static function
13950 # and D for any global variable.
13951 # Also find C++ and __fastcall symbols from MSVC++,
13952 # which start with @ or ?.
13953 lt_cv_sys_global_symbol_pipe="$AWK '"\
13954 " {last_section=section; section=\$ 3};"\
13955 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13956 " \$ 0!~/External *\|/{next};"\
13957 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13958 " {if(hide[section]) next};"\
13959 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13960 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13961 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13962 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13963 " ' prfx=^$ac_symprfx"
13964 else
13965 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13968 # Check to see that the pipe works correctly.
13969 pipe_works=no
13971 rm -f conftest*
13972 cat > conftest.$ac_ext <<_LT_EOF
13973 #ifdef __cplusplus
13974 extern "C" {
13975 #endif
13976 char nm_test_var;
13977 void nm_test_func(void);
13978 void nm_test_func(void){}
13979 #ifdef __cplusplus
13981 #endif
13982 int main(){nm_test_var='a';nm_test_func();return(0);}
13983 _LT_EOF
13985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13986 (eval $ac_compile) 2>&5
13987 ac_status=$?
13988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13989 test $ac_status = 0; }; then
13990 # Now try to grab the symbols.
13991 nlist=conftest.nm
13992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13993 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13994 ac_status=$?
13995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13996 test $ac_status = 0; } && test -s "$nlist"; then
13997 # Try sorting and uniquifying the output.
13998 if sort "$nlist" | uniq > "$nlist"T; then
13999 mv -f "$nlist"T "$nlist"
14000 else
14001 rm -f "$nlist"T
14004 # Make sure that we snagged all the symbols we need.
14005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14007 cat <<_LT_EOF > conftest.$ac_ext
14008 #ifdef __cplusplus
14009 extern "C" {
14010 #endif
14012 _LT_EOF
14013 # Now generate the symbol file.
14014 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14016 cat <<_LT_EOF >> conftest.$ac_ext
14018 /* The mapping between symbol names and symbols. */
14019 const struct {
14020 const char *name;
14021 void *address;
14023 lt__PROGRAM__LTX_preloaded_symbols[] =
14025 { "@PROGRAM@", (void *) 0 },
14026 _LT_EOF
14027 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14028 cat <<\_LT_EOF >> conftest.$ac_ext
14029 {0, (void *) 0}
14032 /* This works around a problem in FreeBSD linker */
14033 #ifdef FREEBSD_WORKAROUND
14034 static const void *lt_preloaded_setup() {
14035 return lt__PROGRAM__LTX_preloaded_symbols;
14037 #endif
14039 #ifdef __cplusplus
14041 #endif
14042 _LT_EOF
14043 # Now try linking the two files.
14044 mv conftest.$ac_objext conftstm.$ac_objext
14045 lt_save_LIBS="$LIBS"
14046 lt_save_CFLAGS="$CFLAGS"
14047 LIBS="conftstm.$ac_objext"
14048 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14050 (eval $ac_link) 2>&5
14051 ac_status=$?
14052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14053 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14054 pipe_works=yes
14056 LIBS="$lt_save_LIBS"
14057 CFLAGS="$lt_save_CFLAGS"
14058 else
14059 echo "cannot find nm_test_func in $nlist" >&5
14061 else
14062 echo "cannot find nm_test_var in $nlist" >&5
14064 else
14065 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14067 else
14068 echo "$progname: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14071 rm -rf conftest* conftst*
14073 # Do not use the global_symbol_pipe unless it works.
14074 if test "$pipe_works" = yes; then
14075 break
14076 else
14077 lt_cv_sys_global_symbol_pipe=
14079 done
14083 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14084 lt_cv_sys_global_symbol_to_cdecl=
14086 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14088 $as_echo "failed" >&6; }
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14091 $as_echo "ok" >&6; }
14115 # Check whether --enable-libtool-lock was given.
14116 if test "${enable_libtool_lock+set}" = set; then :
14117 enableval=$enable_libtool_lock;
14120 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14122 # Some flags need to be propagated to the compiler or linker for good
14123 # libtool support.
14124 case $host in
14125 ia64-*-hpux*)
14126 # Find out which ABI we are using.
14127 echo 'int i;' > conftest.$ac_ext
14128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14129 (eval $ac_compile) 2>&5
14130 ac_status=$?
14131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14132 test $ac_status = 0; }; then
14133 case `/usr/bin/file conftest.$ac_objext` in
14134 *ELF-32*)
14135 HPUX_IA64_MODE="32"
14137 *ELF-64*)
14138 HPUX_IA64_MODE="64"
14140 esac
14142 rm -rf conftest*
14144 *-*-irix6*)
14145 # Find out which ABI we are using.
14146 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14148 (eval $ac_compile) 2>&5
14149 ac_status=$?
14150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14151 test $ac_status = 0; }; then
14152 if test "$lt_cv_prog_gnu_ld" = yes; then
14153 case `/usr/bin/file conftest.$ac_objext` in
14154 *32-bit*)
14155 LD="${LD-ld} -melf32bsmip"
14157 *N32*)
14158 LD="${LD-ld} -melf32bmipn32"
14160 *64-bit*)
14161 LD="${LD-ld} -melf64bmip"
14163 esac
14164 else
14165 case `/usr/bin/file conftest.$ac_objext` in
14166 *32-bit*)
14167 LD="${LD-ld} -32"
14169 *N32*)
14170 LD="${LD-ld} -n32"
14172 *64-bit*)
14173 LD="${LD-ld} -64"
14175 esac
14178 rm -rf conftest*
14181 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14182 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14183 # Find out which ABI we are using.
14184 echo 'int i;' > conftest.$ac_ext
14185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14186 (eval $ac_compile) 2>&5
14187 ac_status=$?
14188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14189 test $ac_status = 0; }; then
14190 case `/usr/bin/file conftest.o` in
14191 *32-bit*)
14192 case $host in
14193 x86_64-*kfreebsd*-gnu)
14194 LD="${LD-ld} -m elf_i386_fbsd"
14196 x86_64-*linux*)
14197 case `/usr/bin/file conftest.o` in
14198 *x86-64*)
14199 LD="${LD-ld} -m elf32_x86_64"
14202 LD="${LD-ld} -m elf_i386"
14204 esac
14206 powerpc64le-*linux*)
14207 LD="${LD-ld} -m elf32lppclinux"
14209 powerpc64-*linux*)
14210 LD="${LD-ld} -m elf32ppclinux"
14212 s390x-*linux*)
14213 LD="${LD-ld} -m elf_s390"
14215 sparc64-*linux*)
14216 LD="${LD-ld} -m elf32_sparc"
14218 esac
14220 *64-bit*)
14221 case $host in
14222 x86_64-*kfreebsd*-gnu)
14223 LD="${LD-ld} -m elf_x86_64_fbsd"
14225 x86_64-*linux*)
14226 LD="${LD-ld} -m elf_x86_64"
14228 powerpcle-*linux*)
14229 LD="${LD-ld} -m elf64lppc"
14231 powerpc-*linux*)
14232 LD="${LD-ld} -m elf64ppc"
14234 s390*-*linux*|s390*-*tpf*)
14235 LD="${LD-ld} -m elf64_s390"
14237 sparc*-*linux*)
14238 LD="${LD-ld} -m elf64_sparc"
14240 esac
14242 esac
14244 rm -rf conftest*
14247 *-*-sco3.2v5*)
14248 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14249 SAVE_CFLAGS="$CFLAGS"
14250 CFLAGS="$CFLAGS -belf"
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14252 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14253 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 ac_ext=c
14257 ac_cpp='$CPP $CPPFLAGS'
14258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14266 main ()
14270 return 0;
14272 _ACEOF
14273 if ac_fn_c_try_link "$LINENO"; then :
14274 lt_cv_cc_needs_belf=yes
14275 else
14276 lt_cv_cc_needs_belf=no
14278 rm -f core conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
14280 ac_ext=c
14281 ac_cpp='$CPP $CPPFLAGS'
14282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14288 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14289 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14290 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14291 CFLAGS="$SAVE_CFLAGS"
14294 sparc*-*solaris*)
14295 # Find out which ABI we are using.
14296 echo 'int i;' > conftest.$ac_ext
14297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14298 (eval $ac_compile) 2>&5
14299 ac_status=$?
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; }; then
14302 case `/usr/bin/file conftest.o` in
14303 *64-bit*)
14304 case $lt_cv_prog_gnu_ld in
14305 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14307 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14308 LD="${LD-ld} -64"
14311 esac
14313 esac
14315 rm -rf conftest*
14317 esac
14319 need_locks="$enable_libtool_lock"
14322 case $host_os in
14323 rhapsody* | darwin*)
14324 if test -n "$ac_tool_prefix"; then
14325 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14326 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14328 $as_echo_n "checking for $ac_word... " >&6; }
14329 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14330 $as_echo_n "(cached) " >&6
14331 else
14332 if test -n "$DSYMUTIL"; then
14333 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14334 else
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14338 IFS=$as_save_IFS
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14342 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344 break 2
14346 done
14347 done
14348 IFS=$as_save_IFS
14352 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14353 if test -n "$DSYMUTIL"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14355 $as_echo "$DSYMUTIL" >&6; }
14356 else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14358 $as_echo "no" >&6; }
14363 if test -z "$ac_cv_prog_DSYMUTIL"; then
14364 ac_ct_DSYMUTIL=$DSYMUTIL
14365 # Extract the first word of "dsymutil", so it can be a program name with args.
14366 set dummy dsymutil; ac_word=$2
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14368 $as_echo_n "checking for $ac_word... " >&6; }
14369 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
14371 else
14372 if test -n "$ac_ct_DSYMUTIL"; then
14373 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14374 else
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14378 IFS=$as_save_IFS
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14382 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14384 break 2
14386 done
14387 done
14388 IFS=$as_save_IFS
14392 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14393 if test -n "$ac_ct_DSYMUTIL"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14395 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14396 else
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14401 if test "x$ac_ct_DSYMUTIL" = x; then
14402 DSYMUTIL=":"
14403 else
14404 case $cross_compiling:$ac_tool_warned in
14405 yes:)
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14408 ac_tool_warned=yes ;;
14409 esac
14410 DSYMUTIL=$ac_ct_DSYMUTIL
14412 else
14413 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14416 if test -n "$ac_tool_prefix"; then
14417 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14418 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14420 $as_echo_n "checking for $ac_word... " >&6; }
14421 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 if test -n "$NMEDIT"; then
14425 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14426 else
14427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14428 for as_dir in $PATH
14430 IFS=$as_save_IFS
14431 test -z "$as_dir" && as_dir=.
14432 for ac_exec_ext in '' $ac_executable_extensions; do
14433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14434 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14436 break 2
14438 done
14439 done
14440 IFS=$as_save_IFS
14444 NMEDIT=$ac_cv_prog_NMEDIT
14445 if test -n "$NMEDIT"; then
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14447 $as_echo "$NMEDIT" >&6; }
14448 else
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14455 if test -z "$ac_cv_prog_NMEDIT"; then
14456 ac_ct_NMEDIT=$NMEDIT
14457 # Extract the first word of "nmedit", so it can be a program name with args.
14458 set dummy nmedit; ac_word=$2
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14460 $as_echo_n "checking for $ac_word... " >&6; }
14461 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14462 $as_echo_n "(cached) " >&6
14463 else
14464 if test -n "$ac_ct_NMEDIT"; then
14465 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14466 else
14467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14468 for as_dir in $PATH
14470 IFS=$as_save_IFS
14471 test -z "$as_dir" && as_dir=.
14472 for ac_exec_ext in '' $ac_executable_extensions; do
14473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14474 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14476 break 2
14478 done
14479 done
14480 IFS=$as_save_IFS
14484 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14485 if test -n "$ac_ct_NMEDIT"; then
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14487 $as_echo "$ac_ct_NMEDIT" >&6; }
14488 else
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14493 if test "x$ac_ct_NMEDIT" = x; then
14494 NMEDIT=":"
14495 else
14496 case $cross_compiling:$ac_tool_warned in
14497 yes:)
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14500 ac_tool_warned=yes ;;
14501 esac
14502 NMEDIT=$ac_ct_NMEDIT
14504 else
14505 NMEDIT="$ac_cv_prog_NMEDIT"
14508 if test -n "$ac_tool_prefix"; then
14509 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14510 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14512 $as_echo_n "checking for $ac_word... " >&6; }
14513 if test "${ac_cv_prog_LIPO+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 if test -n "$LIPO"; then
14517 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14518 else
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14522 IFS=$as_save_IFS
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14526 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14528 break 2
14530 done
14531 done
14532 IFS=$as_save_IFS
14536 LIPO=$ac_cv_prog_LIPO
14537 if test -n "$LIPO"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14539 $as_echo "$LIPO" >&6; }
14540 else
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14547 if test -z "$ac_cv_prog_LIPO"; then
14548 ac_ct_LIPO=$LIPO
14549 # Extract the first word of "lipo", so it can be a program name with args.
14550 set dummy lipo; ac_word=$2
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14552 $as_echo_n "checking for $ac_word... " >&6; }
14553 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 if test -n "$ac_ct_LIPO"; then
14557 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14558 else
14559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14560 for as_dir in $PATH
14562 IFS=$as_save_IFS
14563 test -z "$as_dir" && as_dir=.
14564 for ac_exec_ext in '' $ac_executable_extensions; do
14565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14566 ac_cv_prog_ac_ct_LIPO="lipo"
14567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14568 break 2
14570 done
14571 done
14572 IFS=$as_save_IFS
14576 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14577 if test -n "$ac_ct_LIPO"; then
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14579 $as_echo "$ac_ct_LIPO" >&6; }
14580 else
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14585 if test "x$ac_ct_LIPO" = x; then
14586 LIPO=":"
14587 else
14588 case $cross_compiling:$ac_tool_warned in
14589 yes:)
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14592 ac_tool_warned=yes ;;
14593 esac
14594 LIPO=$ac_ct_LIPO
14596 else
14597 LIPO="$ac_cv_prog_LIPO"
14600 if test -n "$ac_tool_prefix"; then
14601 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14602 set dummy ${ac_tool_prefix}otool; ac_word=$2
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14604 $as_echo_n "checking for $ac_word... " >&6; }
14605 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 if test -n "$OTOOL"; then
14609 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14610 else
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14618 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14622 done
14623 done
14624 IFS=$as_save_IFS
14628 OTOOL=$ac_cv_prog_OTOOL
14629 if test -n "$OTOOL"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14631 $as_echo "$OTOOL" >&6; }
14632 else
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14639 if test -z "$ac_cv_prog_OTOOL"; then
14640 ac_ct_OTOOL=$OTOOL
14641 # Extract the first word of "otool", so it can be a program name with args.
14642 set dummy otool; ac_word=$2
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14644 $as_echo_n "checking for $ac_word... " >&6; }
14645 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 if test -n "$ac_ct_OTOOL"; then
14649 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14650 else
14651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14652 for as_dir in $PATH
14654 IFS=$as_save_IFS
14655 test -z "$as_dir" && as_dir=.
14656 for ac_exec_ext in '' $ac_executable_extensions; do
14657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14658 ac_cv_prog_ac_ct_OTOOL="otool"
14659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14660 break 2
14662 done
14663 done
14664 IFS=$as_save_IFS
14668 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14669 if test -n "$ac_ct_OTOOL"; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14671 $as_echo "$ac_ct_OTOOL" >&6; }
14672 else
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14677 if test "x$ac_ct_OTOOL" = x; then
14678 OTOOL=":"
14679 else
14680 case $cross_compiling:$ac_tool_warned in
14681 yes:)
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14684 ac_tool_warned=yes ;;
14685 esac
14686 OTOOL=$ac_ct_OTOOL
14688 else
14689 OTOOL="$ac_cv_prog_OTOOL"
14692 if test -n "$ac_tool_prefix"; then
14693 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14694 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14696 $as_echo_n "checking for $ac_word... " >&6; }
14697 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 if test -n "$OTOOL64"; then
14701 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14702 else
14703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14704 for as_dir in $PATH
14706 IFS=$as_save_IFS
14707 test -z "$as_dir" && as_dir=.
14708 for ac_exec_ext in '' $ac_executable_extensions; do
14709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14710 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14712 break 2
14714 done
14715 done
14716 IFS=$as_save_IFS
14720 OTOOL64=$ac_cv_prog_OTOOL64
14721 if test -n "$OTOOL64"; then
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14723 $as_echo "$OTOOL64" >&6; }
14724 else
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14731 if test -z "$ac_cv_prog_OTOOL64"; then
14732 ac_ct_OTOOL64=$OTOOL64
14733 # Extract the first word of "otool64", so it can be a program name with args.
14734 set dummy otool64; ac_word=$2
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14736 $as_echo_n "checking for $ac_word... " >&6; }
14737 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14738 $as_echo_n "(cached) " >&6
14739 else
14740 if test -n "$ac_ct_OTOOL64"; then
14741 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14742 else
14743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14744 for as_dir in $PATH
14746 IFS=$as_save_IFS
14747 test -z "$as_dir" && as_dir=.
14748 for ac_exec_ext in '' $ac_executable_extensions; do
14749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14750 ac_cv_prog_ac_ct_OTOOL64="otool64"
14751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14752 break 2
14754 done
14755 done
14756 IFS=$as_save_IFS
14760 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14761 if test -n "$ac_ct_OTOOL64"; then
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14763 $as_echo "$ac_ct_OTOOL64" >&6; }
14764 else
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766 $as_echo "no" >&6; }
14769 if test "x$ac_ct_OTOOL64" = x; then
14770 OTOOL64=":"
14771 else
14772 case $cross_compiling:$ac_tool_warned in
14773 yes:)
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14776 ac_tool_warned=yes ;;
14777 esac
14778 OTOOL64=$ac_ct_OTOOL64
14780 else
14781 OTOOL64="$ac_cv_prog_OTOOL64"
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14811 $as_echo_n "checking for -single_module linker flag... " >&6; }
14812 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 lt_cv_apple_cc_single_mod=no
14816 if test -z "${LT_MULTI_MODULE}"; then
14817 # By default we will add the -single_module flag. You can override
14818 # by either setting the environment variable LT_MULTI_MODULE
14819 # non-empty at configure time, or by adding -multi_module to the
14820 # link flags.
14821 rm -rf libconftest.dylib*
14822 echo "int foo(void){return 1;}" > conftest.c
14823 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14824 -dynamiclib -Wl,-single_module conftest.c" >&5
14825 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14826 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14827 _lt_result=$?
14828 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14829 lt_cv_apple_cc_single_mod=yes
14830 else
14831 cat conftest.err >&5
14833 rm -rf libconftest.dylib*
14834 rm -f conftest.*
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14838 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14840 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14841 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 lt_cv_ld_exported_symbols_list=no
14845 save_LDFLAGS=$LDFLAGS
14846 echo "_main" > conftest.sym
14847 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14852 main ()
14856 return 0;
14858 _ACEOF
14859 if ac_fn_c_try_link "$LINENO"; then :
14860 lt_cv_ld_exported_symbols_list=yes
14861 else
14862 lt_cv_ld_exported_symbols_list=no
14864 rm -f core conftest.err conftest.$ac_objext \
14865 conftest$ac_exeext conftest.$ac_ext
14866 LDFLAGS="$save_LDFLAGS"
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14870 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14872 $as_echo_n "checking for -force_load linker flag... " >&6; }
14873 if test "${lt_cv_ld_force_load+set}" = set; then :
14874 $as_echo_n "(cached) " >&6
14875 else
14876 lt_cv_ld_force_load=no
14877 cat > conftest.c << _LT_EOF
14878 int forced_loaded() { return 2;}
14879 _LT_EOF
14880 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14881 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14882 echo "$AR cru libconftest.a conftest.o" >&5
14883 $AR cru libconftest.a conftest.o 2>&5
14884 cat > conftest.c << _LT_EOF
14885 int main() { return 0;}
14886 _LT_EOF
14887 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14888 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14889 _lt_result=$?
14890 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14891 lt_cv_ld_force_load=yes
14892 else
14893 cat conftest.err >&5
14895 rm -f conftest.err libconftest.a conftest conftest.c
14896 rm -rf conftest.dSYM
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14900 $as_echo "$lt_cv_ld_force_load" >&6; }
14901 case $host_os in
14902 rhapsody* | darwin1.[012])
14903 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14904 darwin1.*)
14905 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14906 darwin*) # darwin 5.x on
14907 # if running on 10.5 or later, the deployment target defaults
14908 # to the OS version, if on x86, and 10.4, the deployment
14909 # target defaults to 10.4. Don't you love it?
14910 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14911 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14912 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14913 10.[012][,.]*)
14914 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14915 10.*)
14916 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14917 esac
14919 esac
14920 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14921 _lt_dar_single_mod='$single_module'
14923 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14924 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14925 else
14926 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14928 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14929 _lt_dsymutil='~$DSYMUTIL $lib || :'
14930 else
14931 _lt_dsymutil=
14934 esac
14937 for ac_header in dlfcn.h
14938 do :
14939 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14940 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14941 cat >>confdefs.h <<_ACEOF
14942 #define HAVE_DLFCN_H 1
14943 _ACEOF
14946 done
14952 # Set options
14956 enable_dlopen=no
14959 enable_win32_dll=no
14962 # Check whether --enable-shared was given.
14963 if test "${enable_shared+set}" = set; then :
14964 enableval=$enable_shared; p=${PACKAGE-default}
14965 case $enableval in
14966 yes) enable_shared=yes ;;
14967 no) enable_shared=no ;;
14969 enable_shared=no
14970 # Look at the argument we got. We use all the common list separators.
14971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14972 for pkg in $enableval; do
14973 IFS="$lt_save_ifs"
14974 if test "X$pkg" = "X$p"; then
14975 enable_shared=yes
14977 done
14978 IFS="$lt_save_ifs"
14980 esac
14981 else
14982 enable_shared=yes
14993 # Check whether --enable-static was given.
14994 if test "${enable_static+set}" = set; then :
14995 enableval=$enable_static; p=${PACKAGE-default}
14996 case $enableval in
14997 yes) enable_static=yes ;;
14998 no) enable_static=no ;;
15000 enable_static=no
15001 # Look at the argument we got. We use all the common list separators.
15002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15003 for pkg in $enableval; do
15004 IFS="$lt_save_ifs"
15005 if test "X$pkg" = "X$p"; then
15006 enable_static=yes
15008 done
15009 IFS="$lt_save_ifs"
15011 esac
15012 else
15013 enable_static=yes
15025 # Check whether --with-pic was given.
15026 if test "${with_pic+set}" = set; then :
15027 withval=$with_pic; pic_mode="$withval"
15028 else
15029 pic_mode=default
15033 test -z "$pic_mode" && pic_mode=default
15041 # Check whether --enable-fast-install was given.
15042 if test "${enable_fast_install+set}" = set; then :
15043 enableval=$enable_fast_install; p=${PACKAGE-default}
15044 case $enableval in
15045 yes) enable_fast_install=yes ;;
15046 no) enable_fast_install=no ;;
15048 enable_fast_install=no
15049 # Look at the argument we got. We use all the common list separators.
15050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15051 for pkg in $enableval; do
15052 IFS="$lt_save_ifs"
15053 if test "X$pkg" = "X$p"; then
15054 enable_fast_install=yes
15056 done
15057 IFS="$lt_save_ifs"
15059 esac
15060 else
15061 enable_fast_install=yes
15074 # This can be used to rebuild libtool when needed
15075 LIBTOOL_DEPS="$ltmain"
15077 # Always use our own libtool.
15078 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15105 test -z "$LN_S" && LN_S="ln -s"
15120 if test -n "${ZSH_VERSION+set}" ; then
15121 setopt NO_GLOB_SUBST
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15125 $as_echo_n "checking for objdir... " >&6; }
15126 if test "${lt_cv_objdir+set}" = set; then :
15127 $as_echo_n "(cached) " >&6
15128 else
15129 rm -f .libs 2>/dev/null
15130 mkdir .libs 2>/dev/null
15131 if test -d .libs; then
15132 lt_cv_objdir=.libs
15133 else
15134 # MS-DOS does not allow filenames that begin with a dot.
15135 lt_cv_objdir=_libs
15137 rmdir .libs 2>/dev/null
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15140 $as_echo "$lt_cv_objdir" >&6; }
15141 objdir=$lt_cv_objdir
15147 cat >>confdefs.h <<_ACEOF
15148 #define LT_OBJDIR "$lt_cv_objdir/"
15149 _ACEOF
15154 case $host_os in
15155 aix3*)
15156 # AIX sometimes has problems with the GCC collect2 program. For some
15157 # reason, if we set the COLLECT_NAMES environment variable, the problems
15158 # vanish in a puff of smoke.
15159 if test "X${COLLECT_NAMES+set}" != Xset; then
15160 COLLECT_NAMES=
15161 export COLLECT_NAMES
15164 esac
15166 # Global variables:
15167 ofile=libtool
15168 can_build_shared=yes
15170 # All known linkers require a `.a' archive for static linking (except MSVC,
15171 # which needs '.lib').
15172 libext=a
15174 with_gnu_ld="$lt_cv_prog_gnu_ld"
15176 old_CC="$CC"
15177 old_CFLAGS="$CFLAGS"
15179 # Set sane defaults for various variables
15180 test -z "$CC" && CC=cc
15181 test -z "$LTCC" && LTCC=$CC
15182 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15183 test -z "$LD" && LD=ld
15184 test -z "$ac_objext" && ac_objext=o
15186 for cc_temp in $compiler""; do
15187 case $cc_temp in
15188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15190 \-*) ;;
15191 *) break;;
15192 esac
15193 done
15194 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15197 # Only perform the check for file, if the check method requires it
15198 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15199 case $deplibs_check_method in
15200 file_magic*)
15201 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15203 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15204 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15205 $as_echo_n "(cached) " >&6
15206 else
15207 case $MAGIC_CMD in
15208 [\\/*] | ?:[\\/]*)
15209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15212 lt_save_MAGIC_CMD="$MAGIC_CMD"
15213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15215 for ac_dir in $ac_dummy; do
15216 IFS="$lt_save_ifs"
15217 test -z "$ac_dir" && ac_dir=.
15218 if test -f $ac_dir/${ac_tool_prefix}file; then
15219 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15220 if test -n "$file_magic_test_file"; then
15221 case $deplibs_check_method in
15222 "file_magic "*)
15223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15226 $EGREP "$file_magic_regex" > /dev/null; then
15228 else
15229 cat <<_LT_EOF 1>&2
15231 *** Warning: the command libtool uses to detect shared libraries,
15232 *** $file_magic_cmd, produces output that libtool cannot recognize.
15233 *** The result is that libtool may fail to recognize shared libraries
15234 *** as such. This will affect the creation of libtool libraries that
15235 *** depend on shared libraries, but programs linked with such libtool
15236 *** libraries will work regardless of this problem. Nevertheless, you
15237 *** may want to report the problem to your system manager and/or to
15238 *** bug-libtool@gnu.org
15240 _LT_EOF
15241 fi ;;
15242 esac
15244 break
15246 done
15247 IFS="$lt_save_ifs"
15248 MAGIC_CMD="$lt_save_MAGIC_CMD"
15250 esac
15253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15254 if test -n "$MAGIC_CMD"; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15256 $as_echo "$MAGIC_CMD" >&6; }
15257 else
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15259 $as_echo "no" >&6; }
15266 if test -z "$lt_cv_path_MAGIC_CMD"; then
15267 if test -n "$ac_tool_prefix"; then
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15269 $as_echo_n "checking for file... " >&6; }
15270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15272 else
15273 case $MAGIC_CMD in
15274 [\\/*] | ?:[\\/]*)
15275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15278 lt_save_MAGIC_CMD="$MAGIC_CMD"
15279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15281 for ac_dir in $ac_dummy; do
15282 IFS="$lt_save_ifs"
15283 test -z "$ac_dir" && ac_dir=.
15284 if test -f $ac_dir/file; then
15285 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15286 if test -n "$file_magic_test_file"; then
15287 case $deplibs_check_method in
15288 "file_magic "*)
15289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15292 $EGREP "$file_magic_regex" > /dev/null; then
15294 else
15295 cat <<_LT_EOF 1>&2
15297 *** Warning: the command libtool uses to detect shared libraries,
15298 *** $file_magic_cmd, produces output that libtool cannot recognize.
15299 *** The result is that libtool may fail to recognize shared libraries
15300 *** as such. This will affect the creation of libtool libraries that
15301 *** depend on shared libraries, but programs linked with such libtool
15302 *** libraries will work regardless of this problem. Nevertheless, you
15303 *** may want to report the problem to your system manager and/or to
15304 *** bug-libtool@gnu.org
15306 _LT_EOF
15307 fi ;;
15308 esac
15310 break
15312 done
15313 IFS="$lt_save_ifs"
15314 MAGIC_CMD="$lt_save_MAGIC_CMD"
15316 esac
15319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15320 if test -n "$MAGIC_CMD"; then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15322 $as_echo "$MAGIC_CMD" >&6; }
15323 else
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15329 else
15330 MAGIC_CMD=:
15336 esac
15338 # Use C for the default configuration in the libtool script
15340 lt_save_CC="$CC"
15341 ac_ext=c
15342 ac_cpp='$CPP $CPPFLAGS'
15343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15348 # Source file extension for C test sources.
15349 ac_ext=c
15351 # Object file extension for compiled C test sources.
15352 objext=o
15353 objext=$objext
15355 # Code to be used in simple compile tests
15356 lt_simple_compile_test_code="int some_variable = 0;"
15358 # Code to be used in simple link tests
15359 lt_simple_link_test_code='int main(){return(0);}'
15367 # If no C compiler was specified, use CC.
15368 LTCC=${LTCC-"$CC"}
15370 # If no C compiler flags were specified, use CFLAGS.
15371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15373 # Allow CC to be a program name with arguments.
15374 compiler=$CC
15376 # Save the default compiler, since it gets overwritten when the other
15377 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15378 compiler_DEFAULT=$CC
15380 # save warnings/boilerplate of simple test code
15381 ac_outfile=conftest.$ac_objext
15382 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15383 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15384 _lt_compiler_boilerplate=`cat conftest.err`
15385 $RM conftest*
15387 ac_outfile=conftest.$ac_objext
15388 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15389 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15390 _lt_linker_boilerplate=`cat conftest.err`
15391 $RM -r conftest*
15394 ## CAVEAT EMPTOR:
15395 ## There is no encapsulation within the following macros, do not change
15396 ## the running order or otherwise move them around unless you know exactly
15397 ## what you are doing...
15398 if test -n "$compiler"; then
15400 lt_prog_compiler_no_builtin_flag=
15402 if test "$GCC" = yes; then
15403 case $cc_basename in
15404 nvcc*)
15405 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15407 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15408 esac
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15411 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15412 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 lt_cv_prog_compiler_rtti_exceptions=no
15416 ac_outfile=conftest.$ac_objext
15417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15418 lt_compiler_flag="-fno-rtti -fno-exceptions"
15419 # Insert the option either (1) after the last *FLAGS variable, or
15420 # (2) before a word containing "conftest.", or (3) at the end.
15421 # Note that $ac_compile itself does not contain backslashes and begins
15422 # with a dollar sign (not a hyphen), so the echo should work correctly.
15423 # The option is referenced via a variable to avoid confusing sed.
15424 lt_compile=`echo "$ac_compile" | $SED \
15425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15427 -e 's:$: $lt_compiler_flag:'`
15428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15429 (eval "$lt_compile" 2>conftest.err)
15430 ac_status=$?
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 if (exit $ac_status) && test -s "$ac_outfile"; then
15434 # The compiler can only warn and ignore the option if not recognized
15435 # So say no if there are warnings other than the usual output.
15436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15439 lt_cv_prog_compiler_rtti_exceptions=yes
15442 $RM conftest*
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15446 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15449 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15450 else
15461 lt_prog_compiler_wl=
15462 lt_prog_compiler_pic=
15463 lt_prog_compiler_static=
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15466 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15468 if test "$GCC" = yes; then
15469 lt_prog_compiler_wl='-Wl,'
15470 lt_prog_compiler_static='-static'
15472 case $host_os in
15473 aix*)
15474 # All AIX code is PIC.
15475 if test "$host_cpu" = ia64; then
15476 # AIX 5 now supports IA64 processor
15477 lt_prog_compiler_static='-Bstatic'
15479 lt_prog_compiler_pic='-fPIC'
15482 amigaos*)
15483 case $host_cpu in
15484 powerpc)
15485 # see comment about AmigaOS4 .so support
15486 lt_prog_compiler_pic='-fPIC'
15488 m68k)
15489 # FIXME: we need at least 68020 code to build shared libraries, but
15490 # adding the `-m68020' flag to GCC prevents building anything better,
15491 # like `-m68040'.
15492 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15494 esac
15497 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15498 # PIC is the default for these OSes.
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 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15505 # (--disable-auto-import) libraries
15506 lt_prog_compiler_pic='-DDLL_EXPORT'
15509 darwin* | rhapsody*)
15510 # PIC is the default on this platform
15511 # Common symbols not allowed in MH_DYLIB files
15512 lt_prog_compiler_pic='-fno-common'
15515 haiku*)
15516 # PIC is the default for Haiku.
15517 # The "-static" flag exists, but is broken.
15518 lt_prog_compiler_static=
15521 hpux*)
15522 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15523 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15524 # sets the default TLS model and affects inlining.
15525 case $host_cpu in
15526 hppa*64*)
15527 # +Z the default
15530 lt_prog_compiler_pic='-fPIC'
15532 esac
15535 interix[3-9]*)
15536 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15537 # Instead, we relocate shared libraries at runtime.
15540 msdosdjgpp*)
15541 # Just because we use GCC doesn't mean we suddenly get shared libraries
15542 # on systems that don't support them.
15543 lt_prog_compiler_can_build_shared=no
15544 enable_shared=no
15547 *nto* | *qnx*)
15548 # QNX uses GNU C++, but need to define -shared option too, otherwise
15549 # it will coredump.
15550 lt_prog_compiler_pic='-fPIC -shared'
15553 sysv4*MP*)
15554 if test -d /usr/nec; then
15555 lt_prog_compiler_pic=-Kconform_pic
15560 lt_prog_compiler_pic='-fPIC'
15562 esac
15564 case $cc_basename in
15565 nvcc*) # Cuda Compiler Driver 2.2
15566 lt_prog_compiler_wl='-Xlinker '
15567 lt_prog_compiler_pic='-Xcompiler -fPIC'
15569 esac
15570 else
15571 # PORTME Check for flag to pass linker flags through the system compiler.
15572 case $host_os in
15573 aix*)
15574 lt_prog_compiler_wl='-Wl,'
15575 if test "$host_cpu" = ia64; then
15576 # AIX 5 now supports IA64 processor
15577 lt_prog_compiler_static='-Bstatic'
15578 else
15579 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15583 mingw* | cygwin* | pw32* | os2* | cegcc*)
15584 # This hack is so that the source file can tell whether it is being
15585 # built for inclusion in a dll (and should export symbols for example).
15586 lt_prog_compiler_pic='-DDLL_EXPORT'
15589 hpux9* | hpux10* | hpux11*)
15590 lt_prog_compiler_wl='-Wl,'
15591 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15592 # not for PA HP-UX.
15593 case $host_cpu in
15594 hppa*64*|ia64*)
15595 # +Z the default
15598 lt_prog_compiler_pic='+Z'
15600 esac
15601 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15602 lt_prog_compiler_static='${wl}-a ${wl}archive'
15605 irix5* | irix6* | nonstopux*)
15606 lt_prog_compiler_wl='-Wl,'
15607 # PIC (with -KPIC) is the default.
15608 lt_prog_compiler_static='-non_shared'
15611 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15612 case $cc_basename in
15613 # old Intel for x86_64 which still supported -KPIC.
15614 ecc*)
15615 lt_prog_compiler_wl='-Wl,'
15616 lt_prog_compiler_pic='-KPIC'
15617 lt_prog_compiler_static='-static'
15619 # icc used to be incompatible with GCC.
15620 # ICC 10 doesn't accept -KPIC any more.
15621 icc* | ifort*)
15622 lt_prog_compiler_wl='-Wl,'
15623 lt_prog_compiler_pic='-fPIC'
15624 lt_prog_compiler_static='-static'
15626 # Lahey Fortran 8.1.
15627 lf95*)
15628 lt_prog_compiler_wl='-Wl,'
15629 lt_prog_compiler_pic='--shared'
15630 lt_prog_compiler_static='--static'
15632 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15633 # Portland Group compilers (*not* the Pentium gcc compiler,
15634 # which looks to be a dead project)
15635 lt_prog_compiler_wl='-Wl,'
15636 lt_prog_compiler_pic='-fpic'
15637 lt_prog_compiler_static='-Bstatic'
15639 ccc*)
15640 lt_prog_compiler_wl='-Wl,'
15641 # All Alpha code is PIC.
15642 lt_prog_compiler_static='-non_shared'
15644 xl* | bgxl* | bgf* | mpixl*)
15645 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15646 lt_prog_compiler_wl='-Wl,'
15647 lt_prog_compiler_pic='-qpic'
15648 lt_prog_compiler_static='-qstaticlink'
15651 case `$CC -V 2>&1 | sed 5q` in
15652 *Sun\ F* | *Sun*Fortran*)
15653 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15654 lt_prog_compiler_pic='-KPIC'
15655 lt_prog_compiler_static='-Bstatic'
15656 lt_prog_compiler_wl=''
15658 *Sun\ C*)
15659 # Sun C 5.9
15660 lt_prog_compiler_pic='-KPIC'
15661 lt_prog_compiler_static='-Bstatic'
15662 lt_prog_compiler_wl='-Wl,'
15664 esac
15666 esac
15669 newsos6)
15670 lt_prog_compiler_pic='-KPIC'
15671 lt_prog_compiler_static='-Bstatic'
15674 *nto* | *qnx*)
15675 # QNX uses GNU C++, but need to define -shared option too, otherwise
15676 # it will coredump.
15677 lt_prog_compiler_pic='-fPIC -shared'
15680 osf3* | osf4* | osf5*)
15681 lt_prog_compiler_wl='-Wl,'
15682 # All OSF/1 code is PIC.
15683 lt_prog_compiler_static='-non_shared'
15686 rdos*)
15687 lt_prog_compiler_static='-non_shared'
15690 solaris*)
15691 lt_prog_compiler_pic='-KPIC'
15692 lt_prog_compiler_static='-Bstatic'
15693 case $cc_basename in
15694 f77* | f90* | f95*)
15695 lt_prog_compiler_wl='-Qoption ld ';;
15697 lt_prog_compiler_wl='-Wl,';;
15698 esac
15701 sunos4*)
15702 lt_prog_compiler_wl='-Qoption ld '
15703 lt_prog_compiler_pic='-PIC'
15704 lt_prog_compiler_static='-Bstatic'
15707 sysv4 | sysv4.2uw2* | sysv4.3*)
15708 lt_prog_compiler_wl='-Wl,'
15709 lt_prog_compiler_pic='-KPIC'
15710 lt_prog_compiler_static='-Bstatic'
15713 sysv4*MP*)
15714 if test -d /usr/nec ;then
15715 lt_prog_compiler_pic='-Kconform_pic'
15716 lt_prog_compiler_static='-Bstatic'
15720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15721 lt_prog_compiler_wl='-Wl,'
15722 lt_prog_compiler_pic='-KPIC'
15723 lt_prog_compiler_static='-Bstatic'
15726 unicos*)
15727 lt_prog_compiler_wl='-Wl,'
15728 lt_prog_compiler_can_build_shared=no
15731 uts4*)
15732 lt_prog_compiler_pic='-pic'
15733 lt_prog_compiler_static='-Bstatic'
15737 lt_prog_compiler_can_build_shared=no
15739 esac
15742 case $host_os in
15743 # For platforms which do not support PIC, -DPIC is meaningless:
15744 *djgpp*)
15745 lt_prog_compiler_pic=
15748 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15750 esac
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15752 $as_echo "$lt_prog_compiler_pic" >&6; }
15760 # Check to make sure the PIC flag actually works.
15762 if test -n "$lt_prog_compiler_pic"; then
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15764 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15765 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15766 $as_echo_n "(cached) " >&6
15767 else
15768 lt_cv_prog_compiler_pic_works=no
15769 ac_outfile=conftest.$ac_objext
15770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15771 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15772 # Insert the option either (1) after the last *FLAGS variable, or
15773 # (2) before a word containing "conftest.", or (3) at the end.
15774 # Note that $ac_compile itself does not contain backslashes and begins
15775 # with a dollar sign (not a hyphen), so the echo should work correctly.
15776 # The option is referenced via a variable to avoid confusing sed.
15777 lt_compile=`echo "$ac_compile" | $SED \
15778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15780 -e 's:$: $lt_compiler_flag:'`
15781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15782 (eval "$lt_compile" 2>conftest.err)
15783 ac_status=$?
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 if (exit $ac_status) && test -s "$ac_outfile"; then
15787 # The compiler can only warn and ignore the option if not recognized
15788 # So say no if there are warnings other than the usual output.
15789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15792 lt_cv_prog_compiler_pic_works=yes
15795 $RM conftest*
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15799 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15801 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15802 case $lt_prog_compiler_pic in
15803 "" | " "*) ;;
15804 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15805 esac
15806 else
15807 lt_prog_compiler_pic=
15808 lt_prog_compiler_can_build_shared=no
15819 # Check to make sure the static flag actually works.
15821 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15823 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15824 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15825 $as_echo_n "(cached) " >&6
15826 else
15827 lt_cv_prog_compiler_static_works=no
15828 save_LDFLAGS="$LDFLAGS"
15829 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15832 # The linker can only warn and ignore the option if not recognized
15833 # So say no if there are warnings
15834 if test -s conftest.err; then
15835 # Append any errors to the config.log.
15836 cat conftest.err 1>&5
15837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15839 if diff conftest.exp conftest.er2 >/dev/null; then
15840 lt_cv_prog_compiler_static_works=yes
15842 else
15843 lt_cv_prog_compiler_static_works=yes
15846 $RM -r conftest*
15847 LDFLAGS="$save_LDFLAGS"
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15851 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15853 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15855 else
15856 lt_prog_compiler_static=
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15866 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15867 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15868 $as_echo_n "(cached) " >&6
15869 else
15870 lt_cv_prog_compiler_c_o=no
15871 $RM -r conftest 2>/dev/null
15872 mkdir conftest
15873 cd conftest
15874 mkdir out
15875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15877 lt_compiler_flag="-o out/conftest2.$ac_objext"
15878 # Insert the option either (1) after the last *FLAGS variable, or
15879 # (2) before a word containing "conftest.", or (3) at the end.
15880 # Note that $ac_compile itself does not contain backslashes and begins
15881 # with a dollar sign (not a hyphen), so the echo should work correctly.
15882 lt_compile=`echo "$ac_compile" | $SED \
15883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15885 -e 's:$: $lt_compiler_flag:'`
15886 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15887 (eval "$lt_compile" 2>out/conftest.err)
15888 ac_status=$?
15889 cat out/conftest.err >&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15892 then
15893 # The compiler can only warn and ignore the option if not recognized
15894 # So say no if there are warnings
15895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15898 lt_cv_prog_compiler_c_o=yes
15901 chmod u+w . 2>&5
15902 $RM conftest*
15903 # SGI C++ compiler will create directory out/ii_files/ for
15904 # template instantiation
15905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15906 $RM out/* && rmdir out
15907 cd ..
15908 $RM -r conftest
15909 $RM conftest*
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15913 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15921 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15922 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15923 $as_echo_n "(cached) " >&6
15924 else
15925 lt_cv_prog_compiler_c_o=no
15926 $RM -r conftest 2>/dev/null
15927 mkdir conftest
15928 cd conftest
15929 mkdir out
15930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15932 lt_compiler_flag="-o out/conftest2.$ac_objext"
15933 # Insert the option either (1) after the last *FLAGS variable, or
15934 # (2) before a word containing "conftest.", or (3) at the end.
15935 # Note that $ac_compile itself does not contain backslashes and begins
15936 # with a dollar sign (not a hyphen), so the echo should work correctly.
15937 lt_compile=`echo "$ac_compile" | $SED \
15938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15940 -e 's:$: $lt_compiler_flag:'`
15941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15942 (eval "$lt_compile" 2>out/conftest.err)
15943 ac_status=$?
15944 cat out/conftest.err >&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15947 then
15948 # The compiler can only warn and ignore the option if not recognized
15949 # So say no if there are warnings
15950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15953 lt_cv_prog_compiler_c_o=yes
15956 chmod u+w . 2>&5
15957 $RM conftest*
15958 # SGI C++ compiler will create directory out/ii_files/ for
15959 # template instantiation
15960 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15961 $RM out/* && rmdir out
15962 cd ..
15963 $RM -r conftest
15964 $RM conftest*
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15968 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15973 hard_links="nottested"
15974 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15975 # do not overwrite the value of need_locks provided by the user
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15977 $as_echo_n "checking if we can lock with hard links... " >&6; }
15978 hard_links=yes
15979 $RM conftest*
15980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15981 touch conftest.a
15982 ln conftest.a conftest.b 2>&5 || hard_links=no
15983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15985 $as_echo "$hard_links" >&6; }
15986 if test "$hard_links" = no; then
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15988 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15989 need_locks=warn
15991 else
15992 need_locks=no
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16001 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16003 runpath_var=
16004 allow_undefined_flag=
16005 always_export_symbols=no
16006 archive_cmds=
16007 archive_expsym_cmds=
16008 compiler_needs_object=no
16009 enable_shared_with_static_runtimes=no
16010 export_dynamic_flag_spec=
16011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16012 hardcode_automatic=no
16013 hardcode_direct=no
16014 hardcode_direct_absolute=no
16015 hardcode_libdir_flag_spec=
16016 hardcode_libdir_flag_spec_ld=
16017 hardcode_libdir_separator=
16018 hardcode_minus_L=no
16019 hardcode_shlibpath_var=unsupported
16020 inherit_rpath=no
16021 link_all_deplibs=unknown
16022 module_cmds=
16023 module_expsym_cmds=
16024 old_archive_from_new_cmds=
16025 old_archive_from_expsyms_cmds=
16026 thread_safe_flag_spec=
16027 whole_archive_flag_spec=
16028 # include_expsyms should be a list of space-separated symbols to be *always*
16029 # included in the symbol list
16030 include_expsyms=
16031 # exclude_expsyms can be an extended regexp of symbols to exclude
16032 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16033 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16034 # as well as any symbol that contains `d'.
16035 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16036 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16037 # platforms (ab)use it in PIC code, but their linkers get confused if
16038 # the symbol is explicitly referenced. Since portable code cannot
16039 # rely on this symbol name, it's probably fine to never include it in
16040 # preloaded symbol tables.
16041 # Exclude shared library initialization/finalization symbols.
16042 extract_expsyms_cmds=
16044 case $host_os in
16045 cygwin* | mingw* | pw32* | cegcc*)
16046 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16047 # When not using gcc, we currently assume that we are using
16048 # Microsoft Visual C++.
16049 if test "$GCC" != yes; then
16050 with_gnu_ld=no
16053 interix*)
16054 # we just hope/assume this is gcc and not c89 (= MSVC++)
16055 with_gnu_ld=yes
16057 openbsd*)
16058 with_gnu_ld=no
16060 esac
16062 ld_shlibs=yes
16064 # On some targets, GNU ld is compatible enough with the native linker
16065 # that we're better off using the native interface for both.
16066 lt_use_gnu_ld_interface=no
16067 if test "$with_gnu_ld" = yes; then
16068 case $host_os in
16069 aix*)
16070 # The AIX port of GNU ld has always aspired to compatibility
16071 # with the native linker. However, as the warning in the GNU ld
16072 # block says, versions before 2.19.5* couldn't really create working
16073 # shared libraries, regardless of the interface used.
16074 case `$LD -v 2>&1` in
16075 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16076 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16077 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16079 lt_use_gnu_ld_interface=yes
16081 esac
16084 lt_use_gnu_ld_interface=yes
16086 esac
16089 if test "$lt_use_gnu_ld_interface" = yes; then
16090 # If archive_cmds runs LD, not CC, wlarc should be empty
16091 wlarc='${wl}'
16093 # Set some defaults for GNU ld with shared library support. These
16094 # are reset later if shared libraries are not supported. Putting them
16095 # here allows them to be overridden if necessary.
16096 runpath_var=LD_RUN_PATH
16097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16098 export_dynamic_flag_spec='${wl}--export-dynamic'
16099 # ancient GNU ld didn't support --whole-archive et. al.
16100 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16101 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16102 else
16103 whole_archive_flag_spec=
16105 supports_anon_versioning=no
16106 case `$LD -v 2>&1` in
16107 *GNU\ gold*) supports_anon_versioning=yes ;;
16108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16111 *\ 2.11.*) ;; # other 2.11 versions
16112 *) supports_anon_versioning=yes ;;
16113 esac
16115 # See if GNU ld supports shared libraries.
16116 case $host_os in
16117 aix[3-9]*)
16118 # On AIX/PPC, the GNU linker is very broken
16119 if test "$host_cpu" != ia64; then
16120 ld_shlibs=no
16121 cat <<_LT_EOF 1>&2
16123 *** Warning: the GNU linker, at least up to release 2.19, is reported
16124 *** to be unable to reliably create shared libraries on AIX.
16125 *** Therefore, libtool is disabling shared libraries support. If you
16126 *** really care for shared libraries, you may want to install binutils
16127 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16128 *** You will then need to restart the configuration process.
16130 _LT_EOF
16134 amigaos*)
16135 case $host_cpu in
16136 powerpc)
16137 # see comment about AmigaOS4 .so support
16138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16139 archive_expsym_cmds=''
16141 m68k)
16142 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)'
16143 hardcode_libdir_flag_spec='-L$libdir'
16144 hardcode_minus_L=yes
16146 esac
16149 beos*)
16150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16151 allow_undefined_flag=unsupported
16152 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16153 # support --undefined. This deserves some investigation. FIXME
16154 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16155 else
16156 ld_shlibs=no
16160 cygwin* | mingw* | pw32* | cegcc*)
16161 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16162 # as there is no search path for DLLs.
16163 hardcode_libdir_flag_spec='-L$libdir'
16164 export_dynamic_flag_spec='${wl}--export-all-symbols'
16165 allow_undefined_flag=unsupported
16166 always_export_symbols=no
16167 enable_shared_with_static_runtimes=yes
16168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16170 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16172 # If the export-symbols file already is a .def file (1st line
16173 # is EXPORTS), use it as is; otherwise, prepend...
16174 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16175 cp $export_symbols $output_objdir/$soname.def;
16176 else
16177 echo EXPORTS > $output_objdir/$soname.def;
16178 cat $export_symbols >> $output_objdir/$soname.def;
16180 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16181 else
16182 ld_shlibs=no
16186 haiku*)
16187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16188 link_all_deplibs=yes
16191 interix[3-9]*)
16192 hardcode_direct=no
16193 hardcode_shlibpath_var=no
16194 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16195 export_dynamic_flag_spec='${wl}-E'
16196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16197 # Instead, shared libraries are loaded at an image base (0x10000000 by
16198 # default) and relocated if they conflict, which is a slow very memory
16199 # consuming and fragmenting process. To avoid this, we pick a random,
16200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16201 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16203 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'
16206 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16207 tmp_diet=no
16208 if test "$host_os" = linux-dietlibc; then
16209 case $cc_basename in
16210 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16211 esac
16213 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16214 && test "$tmp_diet" = no
16215 then
16216 tmp_addflag=' $pic_flag'
16217 tmp_sharedflag='-shared'
16218 case $cc_basename,$host_cpu in
16219 pgcc*) # Portland Group C compiler
16220 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'
16221 tmp_addflag=' $pic_flag'
16223 pgf77* | pgf90* | pgf95* | pgfortran*)
16224 # Portland Group f77 and f90 compilers
16225 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'
16226 tmp_addflag=' $pic_flag -Mnomain' ;;
16227 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16228 tmp_addflag=' -i_dynamic' ;;
16229 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16230 tmp_addflag=' -i_dynamic -nofor_main' ;;
16231 ifc* | ifort*) # Intel Fortran compiler
16232 tmp_addflag=' -nofor_main' ;;
16233 lf95*) # Lahey Fortran 8.1
16234 whole_archive_flag_spec=
16235 tmp_sharedflag='--shared' ;;
16236 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16237 tmp_sharedflag='-qmkshrobj'
16238 tmp_addflag= ;;
16239 nvcc*) # Cuda Compiler Driver 2.2
16240 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'
16241 compiler_needs_object=yes
16243 esac
16244 case `$CC -V 2>&1 | sed 5q` in
16245 *Sun\ C*) # Sun C 5.9
16246 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'
16247 compiler_needs_object=yes
16248 tmp_sharedflag='-G' ;;
16249 *Sun\ F*) # Sun Fortran 8.3
16250 tmp_sharedflag='-G' ;;
16251 esac
16252 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16254 if test "x$supports_anon_versioning" = xyes; then
16255 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16257 echo "local: *; };" >> $output_objdir/$libname.ver~
16258 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16261 case $cc_basename in
16262 xlf* | bgf* | bgxlf* | mpixlf*)
16263 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16264 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16265 hardcode_libdir_flag_spec=
16266 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16267 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16268 if test "x$supports_anon_versioning" = xyes; then
16269 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16270 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16271 echo "local: *; };" >> $output_objdir/$libname.ver~
16272 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16275 esac
16276 else
16277 ld_shlibs=no
16281 netbsd*)
16282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16283 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16284 wlarc=
16285 else
16286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16291 solaris*)
16292 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16293 ld_shlibs=no
16294 cat <<_LT_EOF 1>&2
16296 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16297 *** create shared libraries on Solaris systems. Therefore, libtool
16298 *** is disabling shared libraries support. We urge you to upgrade GNU
16299 *** binutils to release 2.9.1 or newer. Another option is to modify
16300 *** your PATH or compiler configuration so that the native linker is
16301 *** used, and then restart.
16303 _LT_EOF
16304 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16307 else
16308 ld_shlibs=no
16312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16313 case `$LD -v 2>&1` in
16314 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16315 ld_shlibs=no
16316 cat <<_LT_EOF 1>&2
16318 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16319 *** reliably create shared libraries on SCO systems. Therefore, libtool
16320 *** is disabling shared libraries support. We urge you to upgrade GNU
16321 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16322 *** your PATH or compiler configuration so that the native linker is
16323 *** used, and then restart.
16325 _LT_EOF
16328 # For security reasons, it is highly recommended that you always
16329 # use absolute paths for naming shared libraries, and exclude the
16330 # DT_RUNPATH tag from executables and libraries. But doing so
16331 # requires that you compile everything twice, which is a pain.
16332 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16336 else
16337 ld_shlibs=no
16340 esac
16343 sunos4*)
16344 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16345 wlarc=
16346 hardcode_direct=yes
16347 hardcode_shlibpath_var=no
16351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16354 else
16355 ld_shlibs=no
16358 esac
16360 if test "$ld_shlibs" = no; then
16361 runpath_var=
16362 hardcode_libdir_flag_spec=
16363 export_dynamic_flag_spec=
16364 whole_archive_flag_spec=
16366 else
16367 # PORTME fill in a description of your system's linker (not GNU ld)
16368 case $host_os in
16369 aix3*)
16370 allow_undefined_flag=unsupported
16371 always_export_symbols=yes
16372 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'
16373 # Note: this linker hardcodes the directories in LIBPATH if there
16374 # are no directories specified by -L.
16375 hardcode_minus_L=yes
16376 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16377 # Neither direct hardcoding nor static linking is supported with a
16378 # broken collect2.
16379 hardcode_direct=unsupported
16383 aix[4-9]*)
16384 if test "$host_cpu" = ia64; then
16385 # On IA64, the linker does run time linking by default, so we don't
16386 # have to do anything special.
16387 aix_use_runtimelinking=no
16388 exp_sym_flag='-Bexport'
16389 no_entry_flag=""
16390 else
16391 # If we're using GNU nm, then we don't want the "-C" option.
16392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16393 # Also, AIX nm treats weak defined symbols like other global
16394 # defined symbols, whereas GNU nm marks them as "W".
16395 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16396 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'
16397 else
16398 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16400 aix_use_runtimelinking=no
16402 # Test if we are trying to use run time linking or normal
16403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16404 # need to do runtime linking.
16405 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16406 for ld_flag in $LDFLAGS; do
16407 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16408 aix_use_runtimelinking=yes
16409 break
16411 done
16413 esac
16415 exp_sym_flag='-bexport'
16416 no_entry_flag='-bnoentry'
16419 # When large executables or shared objects are built, AIX ld can
16420 # have problems creating the table of contents. If linking a library
16421 # or program results in "error TOC overflow" add -mminimal-toc to
16422 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16423 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16425 archive_cmds=''
16426 hardcode_direct=yes
16427 hardcode_direct_absolute=yes
16428 hardcode_libdir_separator=':'
16429 link_all_deplibs=yes
16430 file_list_spec='${wl}-f,'
16432 if test "$GCC" = yes; then
16433 case $host_os in aix4.[012]|aix4.[012].*)
16434 # We only want to do this on AIX 4.2 and lower, the check
16435 # below for broken collect2 doesn't work under 4.3+
16436 collect2name=`${CC} -print-prog-name=collect2`
16437 if test -f "$collect2name" &&
16438 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16439 then
16440 # We have reworked collect2
16442 else
16443 # We have old collect2
16444 hardcode_direct=unsupported
16445 # It fails to find uninstalled libraries when the uninstalled
16446 # path is not listed in the libpath. Setting hardcode_minus_L
16447 # to unsupported forces relinking
16448 hardcode_minus_L=yes
16449 hardcode_libdir_flag_spec='-L$libdir'
16450 hardcode_libdir_separator=
16453 esac
16454 shared_flag='-shared'
16455 if test "$aix_use_runtimelinking" = yes; then
16456 shared_flag="$shared_flag "'${wl}-G'
16458 else
16459 # not using gcc
16460 if test "$host_cpu" = ia64; then
16461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16462 # chokes on -Wl,-G. The following line is correct:
16463 shared_flag='-G'
16464 else
16465 if test "$aix_use_runtimelinking" = yes; then
16466 shared_flag='${wl}-G'
16467 else
16468 shared_flag='${wl}-bM:SRE'
16473 export_dynamic_flag_spec='${wl}-bexpall'
16474 # It seems that -bexpall does not export symbols beginning with
16475 # underscore (_), so it is better to generate a list of symbols to export.
16476 always_export_symbols=yes
16477 if test "$aix_use_runtimelinking" = yes; then
16478 # Warning - without using the other runtime loading flags (-brtl),
16479 # -berok will link without error, but may produce a broken library.
16480 allow_undefined_flag='-berok'
16481 # Determine the default libpath from the value encoded in an
16482 # empty executable.
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16487 main ()
16491 return 0;
16493 _ACEOF
16494 if ac_fn_c_try_link "$LINENO"; then :
16496 lt_aix_libpath_sed='
16497 /Import File Strings/,/^$/ {
16498 /^0/ {
16499 s/^0 *\(.*\)$/\1/
16503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16504 # Check for a 64-bit object if we didn't find anything.
16505 if test -z "$aix_libpath"; then
16506 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16509 rm -f core conftest.err conftest.$ac_objext \
16510 conftest$ac_exeext conftest.$ac_ext
16511 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16513 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16514 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"
16515 else
16516 if test "$host_cpu" = ia64; then
16517 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16518 allow_undefined_flag="-z nodefs"
16519 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"
16520 else
16521 # Determine the default libpath from the value encoded in an
16522 # empty executable.
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16527 main ()
16531 return 0;
16533 _ACEOF
16534 if ac_fn_c_try_link "$LINENO"; then :
16536 lt_aix_libpath_sed='
16537 /Import File Strings/,/^$/ {
16538 /^0/ {
16539 s/^0 *\(.*\)$/\1/
16543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16544 # Check for a 64-bit object if we didn't find anything.
16545 if test -z "$aix_libpath"; then
16546 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16553 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16554 # Warning - without using the other run time loading flags,
16555 # -berok will link without error, but may produce a broken library.
16556 no_undefined_flag=' ${wl}-bernotok'
16557 allow_undefined_flag=' ${wl}-berok'
16558 if test "$with_gnu_ld" = yes; then
16559 # We only use this code for GNU lds that support --whole-archive.
16560 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16561 else
16562 # Exported symbols can be pulled into shared objects from archives
16563 whole_archive_flag_spec='$convenience'
16565 archive_cmds_need_lc=yes
16566 # This is similar to how AIX traditionally builds its shared libraries.
16567 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'
16572 amigaos*)
16573 case $host_cpu in
16574 powerpc)
16575 # see comment about AmigaOS4 .so support
16576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16577 archive_expsym_cmds=''
16579 m68k)
16580 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)'
16581 hardcode_libdir_flag_spec='-L$libdir'
16582 hardcode_minus_L=yes
16584 esac
16587 bsdi[45]*)
16588 export_dynamic_flag_spec=-rdynamic
16591 cygwin* | mingw* | pw32* | cegcc*)
16592 # When not using gcc, we currently assume that we are using
16593 # Microsoft Visual C++.
16594 # hardcode_libdir_flag_spec is actually meaningless, as there is
16595 # no search path for DLLs.
16596 hardcode_libdir_flag_spec=' '
16597 allow_undefined_flag=unsupported
16598 # Tell ltmain to make .lib files, not .a files.
16599 libext=lib
16600 # Tell ltmain to make .dll files, not .so files.
16601 shrext_cmds=".dll"
16602 # FIXME: Setting linknames here is a bad hack.
16603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16604 # The linker will automatically build a .lib file if we build a DLL.
16605 old_archive_from_new_cmds='true'
16606 # FIXME: Should let the user specify the lib program.
16607 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16608 fix_srcfile_path='`cygpath -w "$srcfile"`'
16609 enable_shared_with_static_runtimes=yes
16612 darwin* | rhapsody*)
16615 archive_cmds_need_lc=no
16616 hardcode_direct=no
16617 hardcode_automatic=yes
16618 hardcode_shlibpath_var=unsupported
16619 if test "$lt_cv_ld_force_load" = "yes"; then
16620 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\"`'
16621 else
16622 whole_archive_flag_spec=''
16624 link_all_deplibs=yes
16625 allow_undefined_flag="$_lt_dar_allow_undefined"
16626 case $cc_basename in
16627 ifort*) _lt_dar_can_shared=yes ;;
16628 *) _lt_dar_can_shared=$GCC ;;
16629 esac
16630 if test "$_lt_dar_can_shared" = "yes"; then
16631 output_verbose_link_cmd=func_echo_all
16632 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16633 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16634 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}"
16635 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}"
16637 else
16638 ld_shlibs=no
16643 dgux*)
16644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16645 hardcode_libdir_flag_spec='-L$libdir'
16646 hardcode_shlibpath_var=no
16649 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16650 # support. Future versions do this automatically, but an explicit c++rt0.o
16651 # does not break anything, and helps significantly (at the cost of a little
16652 # extra space).
16653 freebsd2.2*)
16654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16655 hardcode_libdir_flag_spec='-R$libdir'
16656 hardcode_direct=yes
16657 hardcode_shlibpath_var=no
16660 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16661 freebsd2.*)
16662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16663 hardcode_direct=yes
16664 hardcode_minus_L=yes
16665 hardcode_shlibpath_var=no
16668 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16669 freebsd* | dragonfly*)
16670 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16671 hardcode_libdir_flag_spec='-R$libdir'
16672 hardcode_direct=yes
16673 hardcode_shlibpath_var=no
16676 hpux9*)
16677 if test "$GCC" = yes; then
16678 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'
16679 else
16680 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'
16682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16683 hardcode_libdir_separator=:
16684 hardcode_direct=yes
16686 # hardcode_minus_L: Not really in the search PATH,
16687 # but as the default location of the library.
16688 hardcode_minus_L=yes
16689 export_dynamic_flag_spec='${wl}-E'
16692 hpux10*)
16693 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16695 else
16696 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16698 if test "$with_gnu_ld" = no; then
16699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16700 hardcode_libdir_flag_spec_ld='+b $libdir'
16701 hardcode_libdir_separator=:
16702 hardcode_direct=yes
16703 hardcode_direct_absolute=yes
16704 export_dynamic_flag_spec='${wl}-E'
16705 # hardcode_minus_L: Not really in the search PATH,
16706 # but as the default location of the library.
16707 hardcode_minus_L=yes
16711 hpux11*)
16712 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16713 case $host_cpu in
16714 hppa*64*)
16715 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16717 ia64*)
16718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16723 esac
16724 else
16725 case $host_cpu in
16726 hppa*64*)
16727 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16729 ia64*)
16730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16734 # Older versions of the 11.00 compiler do not understand -b yet
16735 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16737 $as_echo_n "checking if $CC understands -b... " >&6; }
16738 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16739 $as_echo_n "(cached) " >&6
16740 else
16741 lt_cv_prog_compiler__b=no
16742 save_LDFLAGS="$LDFLAGS"
16743 LDFLAGS="$LDFLAGS -b"
16744 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16746 # The linker can only warn and ignore the option if not recognized
16747 # So say no if there are warnings
16748 if test -s conftest.err; then
16749 # Append any errors to the config.log.
16750 cat conftest.err 1>&5
16751 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16753 if diff conftest.exp conftest.er2 >/dev/null; then
16754 lt_cv_prog_compiler__b=yes
16756 else
16757 lt_cv_prog_compiler__b=yes
16760 $RM -r conftest*
16761 LDFLAGS="$save_LDFLAGS"
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16765 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16767 if test x"$lt_cv_prog_compiler__b" = xyes; then
16768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16769 else
16770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16774 esac
16776 if test "$with_gnu_ld" = no; then
16777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16778 hardcode_libdir_separator=:
16780 case $host_cpu in
16781 hppa*64*|ia64*)
16782 hardcode_direct=no
16783 hardcode_shlibpath_var=no
16786 hardcode_direct=yes
16787 hardcode_direct_absolute=yes
16788 export_dynamic_flag_spec='${wl}-E'
16790 # hardcode_minus_L: Not really in the search PATH,
16791 # but as the default location of the library.
16792 hardcode_minus_L=yes
16794 esac
16798 irix5* | irix6* | nonstopux*)
16799 if test "$GCC" = yes; then
16800 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'
16801 # Try to use the -exported_symbol ld option, if it does not
16802 # work, assume that -exports_file does not work either and
16803 # implicitly export all symbols.
16804 save_LDFLAGS="$LDFLAGS"
16805 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807 /* end confdefs.h. */
16808 int foo(void) {}
16809 _ACEOF
16810 if ac_fn_c_try_link "$LINENO"; then :
16811 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'
16814 rm -f core conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816 LDFLAGS="$save_LDFLAGS"
16817 else
16818 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'
16819 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'
16821 archive_cmds_need_lc='no'
16822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16823 hardcode_libdir_separator=:
16824 inherit_rpath=yes
16825 link_all_deplibs=yes
16828 netbsd*)
16829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16831 else
16832 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16834 hardcode_libdir_flag_spec='-R$libdir'
16835 hardcode_direct=yes
16836 hardcode_shlibpath_var=no
16839 newsos6)
16840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16841 hardcode_direct=yes
16842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16843 hardcode_libdir_separator=:
16844 hardcode_shlibpath_var=no
16847 *nto* | *qnx*)
16850 openbsd*)
16851 if test -f /usr/libexec/ld.so; then
16852 hardcode_direct=yes
16853 hardcode_shlibpath_var=no
16854 hardcode_direct_absolute=yes
16855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16857 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16859 export_dynamic_flag_spec='${wl}-E'
16860 else
16861 case $host_os in
16862 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16864 hardcode_libdir_flag_spec='-R$libdir'
16867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16870 esac
16872 else
16873 ld_shlibs=no
16877 os2*)
16878 hardcode_libdir_flag_spec='-L$libdir'
16879 hardcode_minus_L=yes
16880 allow_undefined_flag=unsupported
16881 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'
16882 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16885 osf3*)
16886 if test "$GCC" = yes; then
16887 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16888 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'
16889 else
16890 allow_undefined_flag=' -expect_unresolved \*'
16891 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'
16893 archive_cmds_need_lc='no'
16894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16895 hardcode_libdir_separator=:
16898 osf4* | osf5*) # as osf3* with the addition of -msym flag
16899 if test "$GCC" = yes; then
16900 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16901 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'
16902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16903 else
16904 allow_undefined_flag=' -expect_unresolved \*'
16905 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'
16906 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~
16907 $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'
16909 # Both c and cxx compiler support -rpath directly
16910 hardcode_libdir_flag_spec='-rpath $libdir'
16912 archive_cmds_need_lc='no'
16913 hardcode_libdir_separator=:
16916 solaris*)
16917 no_undefined_flag=' -z defs'
16918 if test "$GCC" = yes; then
16919 wlarc='${wl}'
16920 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16921 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16922 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16923 else
16924 case `$CC -V 2>&1` in
16925 *"Compilers 5.0"*)
16926 wlarc=''
16927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16932 wlarc='${wl}'
16933 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16935 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16937 esac
16939 hardcode_libdir_flag_spec='-R$libdir'
16940 hardcode_shlibpath_var=no
16941 case $host_os in
16942 solaris2.[0-5] | solaris2.[0-5].*) ;;
16944 # The compiler driver will combine and reorder linker options,
16945 # but understands `-z linker_flag'. GCC discards it without `$wl',
16946 # but is careful enough not to reorder.
16947 # Supported since Solaris 2.6 (maybe 2.5.1?)
16948 if test "$GCC" = yes; then
16949 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16950 else
16951 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16954 esac
16955 link_all_deplibs=yes
16958 sunos4*)
16959 if test "x$host_vendor" = xsequent; then
16960 # Use $CC to link under sequent, because it throws in some extra .o
16961 # files that make .init and .fini sections work.
16962 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16963 else
16964 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16966 hardcode_libdir_flag_spec='-L$libdir'
16967 hardcode_direct=yes
16968 hardcode_minus_L=yes
16969 hardcode_shlibpath_var=no
16972 sysv4)
16973 case $host_vendor in
16974 sni)
16975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16976 hardcode_direct=yes # is this really true???
16978 siemens)
16979 ## LD is ld it makes a PLAMLIB
16980 ## CC just makes a GrossModule.
16981 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16982 reload_cmds='$CC -r -o $output$reload_objs'
16983 hardcode_direct=no
16985 motorola)
16986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16987 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16989 esac
16990 runpath_var='LD_RUN_PATH'
16991 hardcode_shlibpath_var=no
16994 sysv4.3*)
16995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16996 hardcode_shlibpath_var=no
16997 export_dynamic_flag_spec='-Bexport'
17000 sysv4*MP*)
17001 if test -d /usr/nec; then
17002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003 hardcode_shlibpath_var=no
17004 runpath_var=LD_RUN_PATH
17005 hardcode_runpath_var=yes
17006 ld_shlibs=yes
17010 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17011 no_undefined_flag='${wl}-z,text'
17012 archive_cmds_need_lc=no
17013 hardcode_shlibpath_var=no
17014 runpath_var='LD_RUN_PATH'
17016 if test "$GCC" = yes; then
17017 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17018 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17019 else
17020 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17021 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17025 sysv5* | sco3.2v5* | sco5v6*)
17026 # Note: We can NOT use -z defs as we might desire, because we do not
17027 # link with -lc, and that would cause any symbols used from libc to
17028 # always be unresolved, which means just about no library would
17029 # ever link correctly. If we're not using GNU ld we use -z text
17030 # though, which does catch some bad symbols but isn't as heavy-handed
17031 # as -z defs.
17032 no_undefined_flag='${wl}-z,text'
17033 allow_undefined_flag='${wl}-z,nodefs'
17034 archive_cmds_need_lc=no
17035 hardcode_shlibpath_var=no
17036 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17037 hardcode_libdir_separator=':'
17038 link_all_deplibs=yes
17039 export_dynamic_flag_spec='${wl}-Bexport'
17040 runpath_var='LD_RUN_PATH'
17042 if test "$GCC" = yes; then
17043 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17045 else
17046 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 uts4*)
17052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17053 hardcode_libdir_flag_spec='-L$libdir'
17054 hardcode_shlibpath_var=no
17058 ld_shlibs=no
17060 esac
17062 if test x$host_vendor = xsni; then
17063 case $host in
17064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17065 export_dynamic_flag_spec='${wl}-Blargedynsym'
17067 esac
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17072 $as_echo "$ld_shlibs" >&6; }
17073 test "$ld_shlibs" = no && can_build_shared=no
17075 with_gnu_ld=$with_gnu_ld
17092 # Do we need to explicitly link libc?
17094 case "x$archive_cmds_need_lc" in
17095 x|xyes)
17096 # Assume -lc should be added
17097 archive_cmds_need_lc=yes
17099 if test "$enable_shared" = yes && test "$GCC" = yes; then
17100 case $archive_cmds in
17101 *'~'*)
17102 # FIXME: we may have to deal with multi-command sequences.
17104 '$CC '*)
17105 # Test whether the compiler implicitly links with -lc since on some
17106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17107 # to ld, don't add -lc before -lgcc.
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17109 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17110 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17111 $as_echo_n "(cached) " >&6
17112 else
17113 $RM conftest*
17114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17117 (eval $ac_compile) 2>&5
17118 ac_status=$?
17119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17120 test $ac_status = 0; } 2>conftest.err; then
17121 soname=conftest
17122 lib=conftest
17123 libobjs=conftest.$ac_objext
17124 deplibs=
17125 wl=$lt_prog_compiler_wl
17126 pic_flag=$lt_prog_compiler_pic
17127 compiler_flags=-v
17128 linker_flags=-v
17129 verstring=
17130 output_objdir=.
17131 libname=conftest
17132 lt_save_allow_undefined_flag=$allow_undefined_flag
17133 allow_undefined_flag=
17134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17135 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17136 ac_status=$?
17137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17138 test $ac_status = 0; }
17139 then
17140 lt_cv_archive_cmds_need_lc=no
17141 else
17142 lt_cv_archive_cmds_need_lc=yes
17144 allow_undefined_flag=$lt_save_allow_undefined_flag
17145 else
17146 cat conftest.err 1>&5
17148 $RM conftest*
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17152 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17153 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17155 esac
17158 esac
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17317 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17319 if test "$GCC" = yes; then
17320 case $host_os in
17321 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17322 *) lt_awk_arg="/^libraries:/" ;;
17323 esac
17324 case $host_os in
17325 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17326 *) lt_sed_strip_eq="s,=/,/,g" ;;
17327 esac
17328 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17329 case $lt_search_path_spec in
17330 *\;*)
17331 # if the path contains ";" then we assume it to be the separator
17332 # otherwise default to the standard path separator (i.e. ":") - it is
17333 # assumed that no part of a normal pathname contains ";" but that should
17334 # okay in the real world where ";" in dirpaths is itself problematic.
17335 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17338 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17340 esac
17341 # Ok, now we have the path, separated by spaces, we can step through it
17342 # and add multilib dir if necessary.
17343 lt_tmp_lt_search_path_spec=
17344 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17345 for lt_sys_path in $lt_search_path_spec; do
17346 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17348 else
17349 test -d "$lt_sys_path" && \
17350 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17352 done
17353 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17354 BEGIN {RS=" "; FS="/|\n";} {
17355 lt_foo="";
17356 lt_count=0;
17357 for (lt_i = NF; lt_i > 0; lt_i--) {
17358 if ($lt_i != "" && $lt_i != ".") {
17359 if ($lt_i == "..") {
17360 lt_count++;
17361 } else {
17362 if (lt_count == 0) {
17363 lt_foo="/" $lt_i lt_foo;
17364 } else {
17365 lt_count--;
17370 if (lt_foo != "") { lt_freq[lt_foo]++; }
17371 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17373 # AWK program above erroneously prepends '/' to C:/dos/paths
17374 # for these hosts.
17375 case $host_os in
17376 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17377 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17378 esac
17379 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17380 else
17381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17383 library_names_spec=
17384 libname_spec='lib$name'
17385 soname_spec=
17386 shrext_cmds=".so"
17387 postinstall_cmds=
17388 postuninstall_cmds=
17389 finish_cmds=
17390 finish_eval=
17391 shlibpath_var=
17392 shlibpath_overrides_runpath=unknown
17393 version_type=none
17394 dynamic_linker="$host_os ld.so"
17395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17396 need_lib_prefix=unknown
17397 hardcode_into_libs=no
17399 # when you set need_version to no, make sure it does not cause -set_version
17400 # flags to be left without arguments
17401 need_version=unknown
17403 case $host_os in
17404 aix3*)
17405 version_type=linux
17406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17407 shlibpath_var=LIBPATH
17409 # AIX 3 has no versioning support, so we append a major version to the name.
17410 soname_spec='${libname}${release}${shared_ext}$major'
17413 aix[4-9]*)
17414 version_type=linux
17415 need_lib_prefix=no
17416 need_version=no
17417 hardcode_into_libs=yes
17418 if test "$host_cpu" = ia64; then
17419 # AIX 5 supports IA64
17420 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 else
17423 # With GCC up to 2.95.x, collect2 would create an import file
17424 # for dependence libraries. The import file would start with
17425 # the line `#! .'. This would cause the generated library to
17426 # depend on `.', always an invalid library. This was fixed in
17427 # development snapshots of GCC prior to 3.0.
17428 case $host_os in
17429 aix4 | aix4.[01] | aix4.[01].*)
17430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17431 echo ' yes '
17432 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17434 else
17435 can_build_shared=no
17438 esac
17439 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17440 # soname into executable. Probably we can add versioning support to
17441 # collect2, so additional links can be useful in future.
17442 if test "$aix_use_runtimelinking" = yes; then
17443 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17444 # instead of lib<name>.a to let people know that these are not
17445 # typical AIX shared libraries.
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17447 else
17448 # We preserve .a as extension for shared libraries through AIX4.2
17449 # and later when we are not doing run time linking.
17450 library_names_spec='${libname}${release}.a $libname.a'
17451 soname_spec='${libname}${release}${shared_ext}$major'
17453 shlibpath_var=LIBPATH
17457 amigaos*)
17458 case $host_cpu in
17459 powerpc)
17460 # Since July 2007 AmigaOS4 officially supports .so libraries.
17461 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 m68k)
17465 library_names_spec='$libname.ixlibrary $libname.a'
17466 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17467 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'
17469 esac
17472 beos*)
17473 library_names_spec='${libname}${shared_ext}'
17474 dynamic_linker="$host_os ld.so"
17475 shlibpath_var=LIBRARY_PATH
17478 bsdi[45]*)
17479 version_type=linux
17480 need_version=no
17481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482 soname_spec='${libname}${release}${shared_ext}$major'
17483 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17484 shlibpath_var=LD_LIBRARY_PATH
17485 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17486 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17487 # the default ld.so.conf also contains /usr/contrib/lib and
17488 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17489 # libtool to hard-code these into programs
17492 cygwin* | mingw* | pw32* | cegcc*)
17493 version_type=windows
17494 shrext_cmds=".dll"
17495 need_version=no
17496 need_lib_prefix=no
17498 case $GCC,$host_os in
17499 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17500 library_names_spec='$libname.dll.a'
17501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17502 postinstall_cmds='base_file=`basename \${file}`~
17503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17504 dldir=$destdir/`dirname \$dlpath`~
17505 test -d \$dldir || mkdir -p \$dldir~
17506 $install_prog $dir/$dlname \$dldir/$dlname~
17507 chmod a+x \$dldir/$dlname~
17508 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17509 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17512 dlpath=$dir/\$dldll~
17513 $RM \$dlpath'
17514 shlibpath_overrides_runpath=yes
17516 case $host_os in
17517 cygwin*)
17518 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17519 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17523 mingw* | cegcc*)
17524 # MinGW DLLs use traditional 'lib' prefix
17525 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17527 pw32*)
17528 # pw32 DLLs use 'pw' prefix rather than 'lib'
17529 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17531 esac
17535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17537 esac
17538 dynamic_linker='Win32 ld.exe'
17539 # FIXME: first we should search . and the directory the executable is in
17540 shlibpath_var=PATH
17543 darwin* | rhapsody*)
17544 dynamic_linker="$host_os dyld"
17545 version_type=darwin
17546 need_lib_prefix=no
17547 need_version=no
17548 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17549 soname_spec='${libname}${release}${major}$shared_ext'
17550 shlibpath_overrides_runpath=yes
17551 shlibpath_var=DYLD_LIBRARY_PATH
17552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17558 dgux*)
17559 version_type=linux
17560 need_lib_prefix=no
17561 need_version=no
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17563 soname_spec='${libname}${release}${shared_ext}$major'
17564 shlibpath_var=LD_LIBRARY_PATH
17567 freebsd* | dragonfly*)
17568 # DragonFly does not have aout. When/if they implement a new
17569 # versioning mechanism, adjust this.
17570 if test -x /usr/bin/objformat; then
17571 objformat=`/usr/bin/objformat`
17572 else
17573 case $host_os in
17574 freebsd[23].*) objformat=aout ;;
17575 *) objformat=elf ;;
17576 esac
17578 version_type=freebsd-$objformat
17579 case $version_type in
17580 freebsd-elf*)
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17582 need_version=no
17583 need_lib_prefix=no
17585 freebsd-*)
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17587 need_version=yes
17589 esac
17590 shlibpath_var=LD_LIBRARY_PATH
17591 case $host_os in
17592 freebsd2.*)
17593 shlibpath_overrides_runpath=yes
17595 freebsd3.[01]* | freebsdelf3.[01]*)
17596 shlibpath_overrides_runpath=yes
17597 hardcode_into_libs=yes
17599 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17600 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17601 shlibpath_overrides_runpath=no
17602 hardcode_into_libs=yes
17604 *) # from 4.6 on, and DragonFly
17605 shlibpath_overrides_runpath=yes
17606 hardcode_into_libs=yes
17608 esac
17611 gnu*)
17612 version_type=linux
17613 need_lib_prefix=no
17614 need_version=no
17615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17616 soname_spec='${libname}${release}${shared_ext}$major'
17617 shlibpath_var=LD_LIBRARY_PATH
17618 hardcode_into_libs=yes
17621 haiku*)
17622 version_type=linux
17623 need_lib_prefix=no
17624 need_version=no
17625 dynamic_linker="$host_os runtime_loader"
17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17627 soname_spec='${libname}${release}${shared_ext}$major'
17628 shlibpath_var=LIBRARY_PATH
17629 shlibpath_overrides_runpath=yes
17630 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17631 hardcode_into_libs=yes
17634 hpux9* | hpux10* | hpux11*)
17635 # Give a soname corresponding to the major version so that dld.sl refuses to
17636 # link against other versions.
17637 version_type=sunos
17638 need_lib_prefix=no
17639 need_version=no
17640 case $host_cpu in
17641 ia64*)
17642 shrext_cmds='.so'
17643 hardcode_into_libs=yes
17644 dynamic_linker="$host_os dld.so"
17645 shlibpath_var=LD_LIBRARY_PATH
17646 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17648 soname_spec='${libname}${release}${shared_ext}$major'
17649 if test "X$HPUX_IA64_MODE" = X32; then
17650 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17651 else
17652 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17656 hppa*64*)
17657 shrext_cmds='.sl'
17658 hardcode_into_libs=yes
17659 dynamic_linker="$host_os dld.sl"
17660 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17661 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17663 soname_spec='${libname}${release}${shared_ext}$major'
17664 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17668 shrext_cmds='.sl'
17669 dynamic_linker="$host_os dld.sl"
17670 shlibpath_var=SHLIB_PATH
17671 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17675 esac
17676 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17677 postinstall_cmds='chmod 555 $lib'
17678 # or fails outright, so override atomically:
17679 install_override_mode=555
17682 interix[3-9]*)
17683 version_type=linux
17684 need_lib_prefix=no
17685 need_version=no
17686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17687 soname_spec='${libname}${release}${shared_ext}$major'
17688 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 shlibpath_overrides_runpath=no
17691 hardcode_into_libs=yes
17694 irix5* | irix6* | nonstopux*)
17695 case $host_os in
17696 nonstopux*) version_type=nonstopux ;;
17698 if test "$lt_cv_prog_gnu_ld" = yes; then
17699 version_type=linux
17700 else
17701 version_type=irix
17702 fi ;;
17703 esac
17704 need_lib_prefix=no
17705 need_version=no
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17708 case $host_os in
17709 irix5* | nonstopux*)
17710 libsuff= shlibsuff=
17713 case $LD in # libtool.m4 will add one of these switches to LD
17714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17715 libsuff= shlibsuff= libmagic=32-bit;;
17716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17717 libsuff=32 shlibsuff=N32 libmagic=N32;;
17718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17719 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17720 *) libsuff= shlibsuff= libmagic=never-match;;
17721 esac
17723 esac
17724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17725 shlibpath_overrides_runpath=no
17726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17728 hardcode_into_libs=yes
17731 # No shared lib support for Linux oldld, aout, or coff.
17732 linux*oldld* | linux*aout* | linux*coff*)
17733 dynamic_linker=no
17736 # This must be Linux ELF.
17737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17738 version_type=linux
17739 need_lib_prefix=no
17740 need_version=no
17741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=no
17747 # Some binutils ld are patched to set DT_RUNPATH
17748 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17749 $as_echo_n "(cached) " >&6
17750 else
17751 lt_cv_shlibpath_overrides_runpath=no
17752 save_LDFLAGS=$LDFLAGS
17753 save_libdir=$libdir
17754 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17755 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17760 main ()
17764 return 0;
17766 _ACEOF
17767 if ac_fn_c_try_link "$LINENO"; then :
17768 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17769 lt_cv_shlibpath_overrides_runpath=yes
17772 rm -f core conftest.err conftest.$ac_objext \
17773 conftest$ac_exeext conftest.$ac_ext
17774 LDFLAGS=$save_LDFLAGS
17775 libdir=$save_libdir
17779 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17781 # This implies no fast_install, which is unacceptable.
17782 # Some rework will be needed to allow for fast_install
17783 # before this can be enabled.
17784 hardcode_into_libs=yes
17786 # Append ld.so.conf contents to the search path
17787 if test -f /etc/ld.so.conf; then
17788 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' ' '`
17789 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17792 # We used to test for /lib/ld.so.1 and disable shared libraries on
17793 # powerpc, because MkLinux only supported shared libraries with the
17794 # GNU dynamic linker. Since this was broken with cross compilers,
17795 # most powerpc-linux boxes support dynamic linking these days and
17796 # people can always --disable-shared, the test was removed, and we
17797 # assume the GNU/Linux dynamic linker is in use.
17798 dynamic_linker='GNU/Linux ld.so'
17801 netbsd*)
17802 version_type=sunos
17803 need_lib_prefix=no
17804 need_version=no
17805 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17808 dynamic_linker='NetBSD (a.out) ld.so'
17809 else
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 dynamic_linker='NetBSD ld.elf_so'
17814 shlibpath_var=LD_LIBRARY_PATH
17815 shlibpath_overrides_runpath=yes
17816 hardcode_into_libs=yes
17819 newsos6)
17820 version_type=linux
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 shlibpath_overrides_runpath=yes
17826 *nto* | *qnx*)
17827 version_type=qnx
17828 need_lib_prefix=no
17829 need_version=no
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17831 soname_spec='${libname}${release}${shared_ext}$major'
17832 shlibpath_var=LD_LIBRARY_PATH
17833 shlibpath_overrides_runpath=no
17834 hardcode_into_libs=yes
17835 dynamic_linker='ldqnx.so'
17838 openbsd*)
17839 version_type=sunos
17840 sys_lib_dlsearch_path_spec="/usr/lib"
17841 need_lib_prefix=no
17842 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17843 case $host_os in
17844 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17845 *) need_version=no ;;
17846 esac
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17849 shlibpath_var=LD_LIBRARY_PATH
17850 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17851 case $host_os in
17852 openbsd2.[89] | openbsd2.[89].*)
17853 shlibpath_overrides_runpath=no
17856 shlibpath_overrides_runpath=yes
17858 esac
17859 else
17860 shlibpath_overrides_runpath=yes
17864 os2*)
17865 libname_spec='$name'
17866 shrext_cmds=".dll"
17867 need_lib_prefix=no
17868 library_names_spec='$libname${shared_ext} $libname.a'
17869 dynamic_linker='OS/2 ld.exe'
17870 shlibpath_var=LIBPATH
17873 osf3* | osf4* | osf5*)
17874 version_type=osf
17875 need_lib_prefix=no
17876 need_version=no
17877 soname_spec='${libname}${release}${shared_ext}$major'
17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879 shlibpath_var=LD_LIBRARY_PATH
17880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17881 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17884 rdos*)
17885 dynamic_linker=no
17888 solaris*)
17889 version_type=linux
17890 need_lib_prefix=no
17891 need_version=no
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17893 soname_spec='${libname}${release}${shared_ext}$major'
17894 shlibpath_var=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath=yes
17896 hardcode_into_libs=yes
17897 # ldd complains unless libraries are executable
17898 postinstall_cmds='chmod +x $lib'
17901 sunos4*)
17902 version_type=sunos
17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17905 shlibpath_var=LD_LIBRARY_PATH
17906 shlibpath_overrides_runpath=yes
17907 if test "$with_gnu_ld" = yes; then
17908 need_lib_prefix=no
17910 need_version=yes
17913 sysv4 | sysv4.3*)
17914 version_type=linux
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 soname_spec='${libname}${release}${shared_ext}$major'
17917 shlibpath_var=LD_LIBRARY_PATH
17918 case $host_vendor in
17919 sni)
17920 shlibpath_overrides_runpath=no
17921 need_lib_prefix=no
17922 runpath_var=LD_RUN_PATH
17924 siemens)
17925 need_lib_prefix=no
17927 motorola)
17928 need_lib_prefix=no
17929 need_version=no
17930 shlibpath_overrides_runpath=no
17931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17933 esac
17936 sysv4*MP*)
17937 if test -d /usr/nec ;then
17938 version_type=linux
17939 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17940 soname_spec='$libname${shared_ext}.$major'
17941 shlibpath_var=LD_LIBRARY_PATH
17945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17946 version_type=freebsd-elf
17947 need_lib_prefix=no
17948 need_version=no
17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17950 soname_spec='${libname}${release}${shared_ext}$major'
17951 shlibpath_var=LD_LIBRARY_PATH
17952 shlibpath_overrides_runpath=yes
17953 hardcode_into_libs=yes
17954 if test "$with_gnu_ld" = yes; then
17955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17956 else
17957 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17958 case $host_os in
17959 sco3.2v5*)
17960 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17962 esac
17964 sys_lib_dlsearch_path_spec='/usr/lib'
17967 tpf*)
17968 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17969 version_type=linux
17970 need_lib_prefix=no
17971 need_version=no
17972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 shlibpath_overrides_runpath=no
17975 hardcode_into_libs=yes
17978 uts4*)
17979 version_type=linux
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 shlibpath_var=LD_LIBRARY_PATH
17986 dynamic_linker=no
17988 esac
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17990 $as_echo "$dynamic_linker" >&6; }
17991 test "$dynamic_linker" = no && can_build_shared=no
17993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17994 if test "$GCC" = yes; then
17995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17998 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17999 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18001 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18002 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18097 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18098 hardcode_action=
18099 if test -n "$hardcode_libdir_flag_spec" ||
18100 test -n "$runpath_var" ||
18101 test "X$hardcode_automatic" = "Xyes" ; then
18103 # We can hardcode non-existent directories.
18104 if test "$hardcode_direct" != no &&
18105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18106 # have to relink, otherwise we might link with an installed library
18107 # when we should be linking with a yet-to-be-installed one
18108 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18109 test "$hardcode_minus_L" != no; then
18110 # Linking always hardcodes the temporary library directory.
18111 hardcode_action=relink
18112 else
18113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18114 hardcode_action=immediate
18116 else
18117 # We cannot hardcode anything, or else we can only hardcode existing
18118 # directories.
18119 hardcode_action=unsupported
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18122 $as_echo "$hardcode_action" >&6; }
18124 if test "$hardcode_action" = relink ||
18125 test "$inherit_rpath" = yes; then
18126 # Fast installation is not supported
18127 enable_fast_install=no
18128 elif test "$shlibpath_overrides_runpath" = yes ||
18129 test "$enable_shared" = no; then
18130 # Fast installation is not necessary
18131 enable_fast_install=needless
18139 if test "x$enable_dlopen" != xyes; then
18140 enable_dlopen=unknown
18141 enable_dlopen_self=unknown
18142 enable_dlopen_self_static=unknown
18143 else
18144 lt_cv_dlopen=no
18145 lt_cv_dlopen_libs=
18147 case $host_os in
18148 beos*)
18149 lt_cv_dlopen="load_add_on"
18150 lt_cv_dlopen_libs=
18151 lt_cv_dlopen_self=yes
18154 mingw* | pw32* | cegcc*)
18155 lt_cv_dlopen="LoadLibrary"
18156 lt_cv_dlopen_libs=
18159 cygwin*)
18160 lt_cv_dlopen="dlopen"
18161 lt_cv_dlopen_libs=
18164 darwin*)
18165 # if libdl is installed we need to link against it
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18167 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18169 $as_echo_n "(cached) " >&6
18170 else
18171 ac_check_lib_save_LIBS=$LIBS
18172 LIBS="-ldl $LIBS"
18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18179 #ifdef __cplusplus
18180 extern "C"
18181 #endif
18182 char dlopen ();
18184 main ()
18186 return dlopen ();
18188 return 0;
18190 _ACEOF
18191 if ac_fn_c_try_link "$LINENO"; then :
18192 ac_cv_lib_dl_dlopen=yes
18193 else
18194 ac_cv_lib_dl_dlopen=no
18196 rm -f core conftest.err conftest.$ac_objext \
18197 conftest$ac_exeext conftest.$ac_ext
18198 LIBS=$ac_check_lib_save_LIBS
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18201 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18202 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18204 else
18206 lt_cv_dlopen="dyld"
18207 lt_cv_dlopen_libs=
18208 lt_cv_dlopen_self=yes
18215 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18216 if test "x$ac_cv_func_shl_load" = x""yes; then :
18217 lt_cv_dlopen="shl_load"
18218 else
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18220 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18221 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18223 else
18224 ac_check_lib_save_LIBS=$LIBS
18225 LIBS="-ldld $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 shl_load ();
18237 main ()
18239 return shl_load ();
18241 return 0;
18243 _ACEOF
18244 if ac_fn_c_try_link "$LINENO"; then :
18245 ac_cv_lib_dld_shl_load=yes
18246 else
18247 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
18254 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18255 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18256 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18257 else
18258 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18259 if test "x$ac_cv_func_dlopen" = x""yes; then :
18260 lt_cv_dlopen="dlopen"
18261 else
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18263 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18264 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18265 $as_echo_n "(cached) " >&6
18266 else
18267 ac_check_lib_save_LIBS=$LIBS
18268 LIBS="-ldl $LIBS"
18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h. */
18272 /* Override any GCC internal prototype to avoid an error.
18273 Use char because int might match the return type of a GCC
18274 builtin and then its argument prototype would still apply. */
18275 #ifdef __cplusplus
18276 extern "C"
18277 #endif
18278 char dlopen ();
18280 main ()
18282 return dlopen ();
18284 return 0;
18286 _ACEOF
18287 if ac_fn_c_try_link "$LINENO"; then :
18288 ac_cv_lib_dl_dlopen=yes
18289 else
18290 ac_cv_lib_dl_dlopen=no
18292 rm -f core conftest.err conftest.$ac_objext \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18297 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18298 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18300 else
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18302 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18303 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18304 $as_echo_n "(cached) " >&6
18305 else
18306 ac_check_lib_save_LIBS=$LIBS
18307 LIBS="-lsvld $LIBS"
18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char dlopen ();
18319 main ()
18321 return dlopen ();
18323 return 0;
18325 _ACEOF
18326 if ac_fn_c_try_link "$LINENO"; then :
18327 ac_cv_lib_svld_dlopen=yes
18328 else
18329 ac_cv_lib_svld_dlopen=no
18331 rm -f core conftest.err conftest.$ac_objext \
18332 conftest$ac_exeext conftest.$ac_ext
18333 LIBS=$ac_check_lib_save_LIBS
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18336 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18337 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18338 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18339 else
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18341 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18342 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18343 $as_echo_n "(cached) " >&6
18344 else
18345 ac_check_lib_save_LIBS=$LIBS
18346 LIBS="-ldld $LIBS"
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18350 /* Override any GCC internal prototype to avoid an error.
18351 Use char because int might match the return type of a GCC
18352 builtin and then its argument prototype would still apply. */
18353 #ifdef __cplusplus
18354 extern "C"
18355 #endif
18356 char dld_link ();
18358 main ()
18360 return dld_link ();
18362 return 0;
18364 _ACEOF
18365 if ac_fn_c_try_link "$LINENO"; then :
18366 ac_cv_lib_dld_dld_link=yes
18367 else
18368 ac_cv_lib_dld_dld_link=no
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18375 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18376 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18377 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18396 esac
18398 if test "x$lt_cv_dlopen" != xno; then
18399 enable_dlopen=yes
18400 else
18401 enable_dlopen=no
18404 case $lt_cv_dlopen in
18405 dlopen)
18406 save_CPPFLAGS="$CPPFLAGS"
18407 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18409 save_LDFLAGS="$LDFLAGS"
18410 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18412 save_LIBS="$LIBS"
18413 LIBS="$lt_cv_dlopen_libs $LIBS"
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18416 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18417 if test "${lt_cv_dlopen_self+set}" = set; then :
18418 $as_echo_n "(cached) " >&6
18419 else
18420 if test "$cross_compiling" = yes; then :
18421 lt_cv_dlopen_self=cross
18422 else
18423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18424 lt_status=$lt_dlunknown
18425 cat > conftest.$ac_ext <<_LT_EOF
18426 #line 18426 "configure"
18427 #include "confdefs.h"
18429 #if HAVE_DLFCN_H
18430 #include <dlfcn.h>
18431 #endif
18433 #include <stdio.h>
18435 #ifdef RTLD_GLOBAL
18436 # define LT_DLGLOBAL RTLD_GLOBAL
18437 #else
18438 # ifdef DL_GLOBAL
18439 # define LT_DLGLOBAL DL_GLOBAL
18440 # else
18441 # define LT_DLGLOBAL 0
18442 # endif
18443 #endif
18445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18446 find out it does not work in some platform. */
18447 #ifndef LT_DLLAZY_OR_NOW
18448 # ifdef RTLD_LAZY
18449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18450 # else
18451 # ifdef DL_LAZY
18452 # define LT_DLLAZY_OR_NOW DL_LAZY
18453 # else
18454 # ifdef RTLD_NOW
18455 # define LT_DLLAZY_OR_NOW RTLD_NOW
18456 # else
18457 # ifdef DL_NOW
18458 # define LT_DLLAZY_OR_NOW DL_NOW
18459 # else
18460 # define LT_DLLAZY_OR_NOW 0
18461 # endif
18462 # endif
18463 # endif
18464 # endif
18465 #endif
18467 /* When -fvisbility=hidden is used, assume the code has been annotated
18468 correspondingly for the symbols needed. */
18469 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18470 void fnord () __attribute__((visibility("default")));
18471 #endif
18473 void fnord () { int i=42; }
18474 int main ()
18476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18477 int status = $lt_dlunknown;
18479 if (self)
18481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18482 else
18484 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18485 else puts (dlerror ());
18487 /* dlclose (self); */
18489 else
18490 puts (dlerror ());
18492 return status;
18494 _LT_EOF
18495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18496 (eval $ac_link) 2>&5
18497 ac_status=$?
18498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18499 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18500 (./conftest; exit; ) >&5 2>/dev/null
18501 lt_status=$?
18502 case x$lt_status in
18503 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18504 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18505 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18506 esac
18507 else :
18508 # compilation failed
18509 lt_cv_dlopen_self=no
18512 rm -fr conftest*
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18517 $as_echo "$lt_cv_dlopen_self" >&6; }
18519 if test "x$lt_cv_dlopen_self" = xyes; then
18520 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18522 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18523 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18524 $as_echo_n "(cached) " >&6
18525 else
18526 if test "$cross_compiling" = yes; then :
18527 lt_cv_dlopen_self_static=cross
18528 else
18529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18530 lt_status=$lt_dlunknown
18531 cat > conftest.$ac_ext <<_LT_EOF
18532 #line 18532 "configure"
18533 #include "confdefs.h"
18535 #if HAVE_DLFCN_H
18536 #include <dlfcn.h>
18537 #endif
18539 #include <stdio.h>
18541 #ifdef RTLD_GLOBAL
18542 # define LT_DLGLOBAL RTLD_GLOBAL
18543 #else
18544 # ifdef DL_GLOBAL
18545 # define LT_DLGLOBAL DL_GLOBAL
18546 # else
18547 # define LT_DLGLOBAL 0
18548 # endif
18549 #endif
18551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18552 find out it does not work in some platform. */
18553 #ifndef LT_DLLAZY_OR_NOW
18554 # ifdef RTLD_LAZY
18555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18556 # else
18557 # ifdef DL_LAZY
18558 # define LT_DLLAZY_OR_NOW DL_LAZY
18559 # else
18560 # ifdef RTLD_NOW
18561 # define LT_DLLAZY_OR_NOW RTLD_NOW
18562 # else
18563 # ifdef DL_NOW
18564 # define LT_DLLAZY_OR_NOW DL_NOW
18565 # else
18566 # define LT_DLLAZY_OR_NOW 0
18567 # endif
18568 # endif
18569 # endif
18570 # endif
18571 #endif
18573 /* When -fvisbility=hidden is used, assume the code has been annotated
18574 correspondingly for the symbols needed. */
18575 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18576 void fnord () __attribute__((visibility("default")));
18577 #endif
18579 void fnord () { int i=42; }
18580 int main ()
18582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18583 int status = $lt_dlunknown;
18585 if (self)
18587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18588 else
18590 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18591 else puts (dlerror ());
18593 /* dlclose (self); */
18595 else
18596 puts (dlerror ());
18598 return status;
18600 _LT_EOF
18601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18602 (eval $ac_link) 2>&5
18603 ac_status=$?
18604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18605 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18606 (./conftest; exit; ) >&5 2>/dev/null
18607 lt_status=$?
18608 case x$lt_status in
18609 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18610 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18611 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18612 esac
18613 else :
18614 # compilation failed
18615 lt_cv_dlopen_self_static=no
18618 rm -fr conftest*
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18623 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18626 CPPFLAGS="$save_CPPFLAGS"
18627 LDFLAGS="$save_LDFLAGS"
18628 LIBS="$save_LIBS"
18630 esac
18632 case $lt_cv_dlopen_self in
18633 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18634 *) enable_dlopen_self=unknown ;;
18635 esac
18637 case $lt_cv_dlopen_self_static in
18638 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18639 *) enable_dlopen_self_static=unknown ;;
18640 esac
18659 striplib=
18660 old_striplib=
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18662 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18663 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18664 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18665 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18667 $as_echo "yes" >&6; }
18668 else
18669 # FIXME - insert some real tests, host_os isn't really good enough
18670 case $host_os in
18671 darwin*)
18672 if test -n "$STRIP" ; then
18673 striplib="$STRIP -x"
18674 old_striplib="$STRIP -S"
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18676 $as_echo "yes" >&6; }
18677 else
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18679 $as_echo "no" >&6; }
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18684 $as_echo "no" >&6; }
18686 esac
18700 # Report which library types will actually be built
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18702 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18704 $as_echo "$can_build_shared" >&6; }
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18707 $as_echo_n "checking whether to build shared libraries... " >&6; }
18708 test "$can_build_shared" = "no" && enable_shared=no
18710 # On AIX, shared libraries and static libraries use the same namespace, and
18711 # are all built from PIC.
18712 case $host_os in
18713 aix3*)
18714 test "$enable_shared" = yes && enable_static=no
18715 if test -n "$RANLIB"; then
18716 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18717 postinstall_cmds='$RANLIB $lib'
18721 aix[4-9]*)
18722 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18723 test "$enable_shared" = yes && enable_static=no
18726 esac
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18728 $as_echo "$enable_shared" >&6; }
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18731 $as_echo_n "checking whether to build static libraries... " >&6; }
18732 # Make sure either enable_shared or enable_static is yes.
18733 test "$enable_shared" = yes || enable_static=yes
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18735 $as_echo "$enable_static" >&6; }
18741 ac_ext=cpp
18742 ac_cpp='$CXXCPP $CPPFLAGS'
18743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18747 CC="$lt_save_CC"
18749 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18750 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18751 (test "X$CXX" != "Xg++"))) ; then
18752 ac_ext=cpp
18753 ac_cpp='$CXXCPP $CPPFLAGS'
18754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18758 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18759 if test -z "$CXXCPP"; then
18760 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18761 $as_echo_n "(cached) " >&6
18762 else
18763 # Double quotes because CXXCPP needs to be expanded
18764 for CXXCPP in "$CXX -E" "/lib/cpp"
18766 ac_preproc_ok=false
18767 for ac_cxx_preproc_warn_flag in '' yes
18769 # Use a header file that comes with gcc, so configuring glibc
18770 # with a fresh cross-compiler works.
18771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18772 # <limits.h> exists even on freestanding compilers.
18773 # On the NeXT, cc -E runs the code through the compiler's parser,
18774 # not just through cpp. "Syntax error" is here to catch this case.
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18777 #ifdef __STDC__
18778 # include <limits.h>
18779 #else
18780 # include <assert.h>
18781 #endif
18782 Syntax error
18783 _ACEOF
18784 if ac_fn_cxx_try_cpp "$LINENO"; then :
18786 else
18787 # Broken: fails on valid input.
18788 continue
18790 rm -f conftest.err conftest.$ac_ext
18792 # OK, works on sane cases. Now check whether nonexistent headers
18793 # can be detected and how.
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 #include <ac_nonexistent.h>
18797 _ACEOF
18798 if ac_fn_cxx_try_cpp "$LINENO"; then :
18799 # Broken: success on invalid input.
18800 continue
18801 else
18802 # Passes both tests.
18803 ac_preproc_ok=:
18804 break
18806 rm -f conftest.err conftest.$ac_ext
18808 done
18809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18810 rm -f conftest.err conftest.$ac_ext
18811 if $ac_preproc_ok; then :
18812 break
18815 done
18816 ac_cv_prog_CXXCPP=$CXXCPP
18819 CXXCPP=$ac_cv_prog_CXXCPP
18820 else
18821 ac_cv_prog_CXXCPP=$CXXCPP
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18824 $as_echo "$CXXCPP" >&6; }
18825 ac_preproc_ok=false
18826 for ac_cxx_preproc_warn_flag in '' yes
18828 # Use a header file that comes with gcc, so configuring glibc
18829 # with a fresh cross-compiler works.
18830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18831 # <limits.h> exists even on freestanding compilers.
18832 # On the NeXT, cc -E runs the code through the compiler's parser,
18833 # not just through cpp. "Syntax error" is here to catch this case.
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18836 #ifdef __STDC__
18837 # include <limits.h>
18838 #else
18839 # include <assert.h>
18840 #endif
18841 Syntax error
18842 _ACEOF
18843 if ac_fn_cxx_try_cpp "$LINENO"; then :
18845 else
18846 # Broken: fails on valid input.
18847 continue
18849 rm -f conftest.err conftest.$ac_ext
18851 # OK, works on sane cases. Now check whether nonexistent headers
18852 # can be detected and how.
18853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854 /* end confdefs.h. */
18855 #include <ac_nonexistent.h>
18856 _ACEOF
18857 if ac_fn_cxx_try_cpp "$LINENO"; then :
18858 # Broken: success on invalid input.
18859 continue
18860 else
18861 # Passes both tests.
18862 ac_preproc_ok=:
18863 break
18865 rm -f conftest.err conftest.$ac_ext
18867 done
18868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18869 rm -f conftest.err conftest.$ac_ext
18870 if $ac_preproc_ok; then :
18872 else
18873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18875 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18876 See \`config.log' for more details." "$LINENO" 5; }
18879 ac_ext=cpp
18880 ac_cpp='$CXXCPP $CPPFLAGS'
18881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18885 else
18886 _lt_caught_CXX_error=yes
18889 ac_ext=cpp
18890 ac_cpp='$CXXCPP $CPPFLAGS'
18891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18895 archive_cmds_need_lc_CXX=no
18896 allow_undefined_flag_CXX=
18897 always_export_symbols_CXX=no
18898 archive_expsym_cmds_CXX=
18899 compiler_needs_object_CXX=no
18900 export_dynamic_flag_spec_CXX=
18901 hardcode_direct_CXX=no
18902 hardcode_direct_absolute_CXX=no
18903 hardcode_libdir_flag_spec_CXX=
18904 hardcode_libdir_flag_spec_ld_CXX=
18905 hardcode_libdir_separator_CXX=
18906 hardcode_minus_L_CXX=no
18907 hardcode_shlibpath_var_CXX=unsupported
18908 hardcode_automatic_CXX=no
18909 inherit_rpath_CXX=no
18910 module_cmds_CXX=
18911 module_expsym_cmds_CXX=
18912 link_all_deplibs_CXX=unknown
18913 old_archive_cmds_CXX=$old_archive_cmds
18914 reload_flag_CXX=$reload_flag
18915 reload_cmds_CXX=$reload_cmds
18916 no_undefined_flag_CXX=
18917 whole_archive_flag_spec_CXX=
18918 enable_shared_with_static_runtimes_CXX=no
18920 # Source file extension for C++ test sources.
18921 ac_ext=cpp
18923 # Object file extension for compiled C++ test sources.
18924 objext=o
18925 objext_CXX=$objext
18927 # No sense in running all these tests if we already determined that
18928 # the CXX compiler isn't working. Some variables (like enable_shared)
18929 # are currently assumed to apply to all compilers on this platform,
18930 # and will be corrupted by setting them based on a non-working compiler.
18931 if test "$_lt_caught_CXX_error" != yes; then
18932 # Code to be used in simple compile tests
18933 lt_simple_compile_test_code="int some_variable = 0;"
18935 # Code to be used in simple link tests
18936 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18938 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18945 # If no C compiler was specified, use CC.
18946 LTCC=${LTCC-"$CC"}
18948 # If no C compiler flags were specified, use CFLAGS.
18949 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18951 # Allow CC to be a program name with arguments.
18952 compiler=$CC
18955 # save warnings/boilerplate of simple test code
18956 ac_outfile=conftest.$ac_objext
18957 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18958 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18959 _lt_compiler_boilerplate=`cat conftest.err`
18960 $RM conftest*
18962 ac_outfile=conftest.$ac_objext
18963 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18964 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18965 _lt_linker_boilerplate=`cat conftest.err`
18966 $RM -r conftest*
18969 # Allow CC to be a program name with arguments.
18970 lt_save_CC=$CC
18971 lt_save_LD=$LD
18972 lt_save_GCC=$GCC
18973 GCC=$GXX
18974 lt_save_with_gnu_ld=$with_gnu_ld
18975 lt_save_path_LD=$lt_cv_path_LD
18976 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18977 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18978 else
18979 $as_unset lt_cv_prog_gnu_ld
18981 if test -n "${lt_cv_path_LDCXX+set}"; then
18982 lt_cv_path_LD=$lt_cv_path_LDCXX
18983 else
18984 $as_unset lt_cv_path_LD
18986 test -z "${LDCXX+set}" || LD=$LDCXX
18987 CC=${CXX-"c++"}
18988 compiler=$CC
18989 compiler_CXX=$CC
18990 for cc_temp in $compiler""; do
18991 case $cc_temp in
18992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18994 \-*) ;;
18995 *) break;;
18996 esac
18997 done
18998 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19001 if test -n "$compiler"; then
19002 # We don't want -fno-exception when compiling C++ code, so set the
19003 # no_builtin_flag separately
19004 if test "$GXX" = yes; then
19005 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19006 else
19007 lt_prog_compiler_no_builtin_flag_CXX=
19010 if test "$GXX" = yes; then
19011 # Set up default GNU C++ configuration
19015 # Check whether --with-gnu-ld was given.
19016 if test "${with_gnu_ld+set}" = set; then :
19017 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19018 else
19019 with_gnu_ld=no
19022 ac_prog=ld
19023 if test "$GCC" = yes; then
19024 # Check if gcc -print-prog-name=ld gives a path.
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19026 $as_echo_n "checking for ld used by $CC... " >&6; }
19027 case $host in
19028 *-*-mingw*)
19029 # gcc leaves a trailing carriage return which upsets mingw
19030 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19032 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19033 esac
19034 case $ac_prog in
19035 # Accept absolute paths.
19036 [\\/]* | ?:[\\/]*)
19037 re_direlt='/[^/][^/]*/\.\./'
19038 # Canonicalize the pathname of ld
19039 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19040 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19041 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19042 done
19043 test -z "$LD" && LD="$ac_prog"
19046 # If it fails, then pretend we aren't using GCC.
19047 ac_prog=ld
19050 # If it is relative, then search for the first ld in PATH.
19051 with_gnu_ld=unknown
19053 esac
19054 elif test "$with_gnu_ld" = yes; then
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19056 $as_echo_n "checking for GNU ld... " >&6; }
19057 else
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19059 $as_echo_n "checking for non-GNU ld... " >&6; }
19061 if test "${lt_cv_path_LD+set}" = set; then :
19062 $as_echo_n "(cached) " >&6
19063 else
19064 if test -z "$LD"; then
19065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19066 for ac_dir in $PATH; do
19067 IFS="$lt_save_ifs"
19068 test -z "$ac_dir" && ac_dir=.
19069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19070 lt_cv_path_LD="$ac_dir/$ac_prog"
19071 # Check to see if the program is GNU ld. I'd rather use --version,
19072 # but apparently some variants of GNU ld only accept -v.
19073 # Break only if it was the GNU/non-GNU ld that we prefer.
19074 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19075 *GNU* | *'with BFD'*)
19076 test "$with_gnu_ld" != no && break
19079 test "$with_gnu_ld" != yes && break
19081 esac
19083 done
19084 IFS="$lt_save_ifs"
19085 else
19086 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19090 LD="$lt_cv_path_LD"
19091 if test -n "$LD"; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19093 $as_echo "$LD" >&6; }
19094 else
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19098 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19100 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19101 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19102 $as_echo_n "(cached) " >&6
19103 else
19104 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19105 case `$LD -v 2>&1 </dev/null` in
19106 *GNU* | *'with BFD'*)
19107 lt_cv_prog_gnu_ld=yes
19110 lt_cv_prog_gnu_ld=no
19112 esac
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19115 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19116 with_gnu_ld=$lt_cv_prog_gnu_ld
19124 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19125 # archiving commands below assume that GNU ld is being used.
19126 if test "$with_gnu_ld" = yes; then
19127 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19128 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'
19130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19131 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19133 # If archive_cmds runs LD, not CC, wlarc should be empty
19134 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19135 # investigate it a little bit more. (MM)
19136 wlarc='${wl}'
19138 # ancient GNU ld didn't support --whole-archive et. al.
19139 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19140 $GREP 'no-whole-archive' > /dev/null; then
19141 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19142 else
19143 whole_archive_flag_spec_CXX=
19145 else
19146 with_gnu_ld=no
19147 wlarc=
19149 # A generic and very simple default shared library creation
19150 # command for GNU C++ for the case where it uses the native
19151 # linker, instead of GNU ld. If possible, this setting should
19152 # overridden to take advantage of the native linker features on
19153 # the platform it is being used on.
19154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19157 # Commands to make compiler produce verbose output that lists
19158 # what "hidden" libraries, object files and flags are used when
19159 # linking a shared library.
19160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19162 else
19163 GXX=no
19164 with_gnu_ld=no
19165 wlarc=
19168 # PORTME: fill in a description of your system's C++ link characteristics
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19170 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19171 ld_shlibs_CXX=yes
19172 case $host_os in
19173 aix3*)
19174 # FIXME: insert proper C++ library support
19175 ld_shlibs_CXX=no
19177 aix[4-9]*)
19178 if test "$host_cpu" = ia64; then
19179 # On IA64, the linker does run time linking by default, so we don't
19180 # have to do anything special.
19181 aix_use_runtimelinking=no
19182 exp_sym_flag='-Bexport'
19183 no_entry_flag=""
19184 else
19185 aix_use_runtimelinking=no
19187 # Test if we are trying to use run time linking or normal
19188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19189 # need to do runtime linking.
19190 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19191 for ld_flag in $LDFLAGS; do
19192 case $ld_flag in
19193 *-brtl*)
19194 aix_use_runtimelinking=yes
19195 break
19197 esac
19198 done
19200 esac
19202 exp_sym_flag='-bexport'
19203 no_entry_flag='-bnoentry'
19206 # When large executables or shared objects are built, AIX ld can
19207 # have problems creating the table of contents. If linking a library
19208 # or program results in "error TOC overflow" add -mminimal-toc to
19209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19212 archive_cmds_CXX=''
19213 hardcode_direct_CXX=yes
19214 hardcode_direct_absolute_CXX=yes
19215 hardcode_libdir_separator_CXX=':'
19216 link_all_deplibs_CXX=yes
19217 file_list_spec_CXX='${wl}-f,'
19219 if test "$GXX" = yes; then
19220 case $host_os in aix4.[012]|aix4.[012].*)
19221 # We only want to do this on AIX 4.2 and lower, the check
19222 # below for broken collect2 doesn't work under 4.3+
19223 collect2name=`${CC} -print-prog-name=collect2`
19224 if test -f "$collect2name" &&
19225 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19226 then
19227 # We have reworked collect2
19229 else
19230 # We have old collect2
19231 hardcode_direct_CXX=unsupported
19232 # It fails to find uninstalled libraries when the uninstalled
19233 # path is not listed in the libpath. Setting hardcode_minus_L
19234 # to unsupported forces relinking
19235 hardcode_minus_L_CXX=yes
19236 hardcode_libdir_flag_spec_CXX='-L$libdir'
19237 hardcode_libdir_separator_CXX=
19239 esac
19240 shared_flag='-shared'
19241 if test "$aix_use_runtimelinking" = yes; then
19242 shared_flag="$shared_flag "'${wl}-G'
19244 else
19245 # not using gcc
19246 if test "$host_cpu" = ia64; then
19247 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19248 # chokes on -Wl,-G. The following line is correct:
19249 shared_flag='-G'
19250 else
19251 if test "$aix_use_runtimelinking" = yes; then
19252 shared_flag='${wl}-G'
19253 else
19254 shared_flag='${wl}-bM:SRE'
19259 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19260 # It seems that -bexpall does not export symbols beginning with
19261 # underscore (_), so it is better to generate a list of symbols to
19262 # export.
19263 always_export_symbols_CXX=yes
19264 if test "$aix_use_runtimelinking" = yes; then
19265 # Warning - without using the other runtime loading flags (-brtl),
19266 # -berok will link without error, but may produce a broken library.
19267 allow_undefined_flag_CXX='-berok'
19268 # Determine the default libpath from the value encoded in an empty
19269 # executable.
19270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19271 /* end confdefs.h. */
19274 main ()
19278 return 0;
19280 _ACEOF
19281 if ac_fn_cxx_try_link "$LINENO"; then :
19283 lt_aix_libpath_sed='
19284 /Import File Strings/,/^$/ {
19285 /^0/ {
19286 s/^0 *\(.*\)$/\1/
19290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19291 # Check for a 64-bit object if we didn't find anything.
19292 if test -z "$aix_libpath"; then
19293 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19296 rm -f core conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
19298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19300 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19302 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"
19303 else
19304 if test "$host_cpu" = ia64; then
19305 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19306 allow_undefined_flag_CXX="-z nodefs"
19307 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"
19308 else
19309 # Determine the default libpath from the value encoded in an
19310 # empty executable.
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19315 main ()
19319 return 0;
19321 _ACEOF
19322 if ac_fn_cxx_try_link "$LINENO"; then :
19324 lt_aix_libpath_sed='
19325 /Import File Strings/,/^$/ {
19326 /^0/ {
19327 s/^0 *\(.*\)$/\1/
19331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19332 # Check for a 64-bit object if we didn't find anything.
19333 if test -z "$aix_libpath"; then
19334 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19337 rm -f core conftest.err conftest.$ac_objext \
19338 conftest$ac_exeext conftest.$ac_ext
19339 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19341 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19342 # Warning - without using the other run time loading flags,
19343 # -berok will link without error, but may produce a broken library.
19344 no_undefined_flag_CXX=' ${wl}-bernotok'
19345 allow_undefined_flag_CXX=' ${wl}-berok'
19346 if test "$with_gnu_ld" = yes; then
19347 # We only use this code for GNU lds that support --whole-archive.
19348 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19349 else
19350 # Exported symbols can be pulled into shared objects from archives
19351 whole_archive_flag_spec_CXX='$convenience'
19353 archive_cmds_need_lc_CXX=yes
19354 # This is similar to how AIX traditionally builds its shared
19355 # libraries.
19356 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'
19361 beos*)
19362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19363 allow_undefined_flag_CXX=unsupported
19364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19365 # support --undefined. This deserves some investigation. FIXME
19366 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19367 else
19368 ld_shlibs_CXX=no
19372 chorus*)
19373 case $cc_basename in
19375 # FIXME: insert proper C++ library support
19376 ld_shlibs_CXX=no
19378 esac
19381 cygwin* | mingw* | pw32* | cegcc*)
19382 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19383 # as there is no search path for DLLs.
19384 hardcode_libdir_flag_spec_CXX='-L$libdir'
19385 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19386 allow_undefined_flag_CXX=unsupported
19387 always_export_symbols_CXX=no
19388 enable_shared_with_static_runtimes_CXX=yes
19390 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19391 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'
19392 # If the export-symbols file already is a .def file (1st line
19393 # is EXPORTS), use it as is; otherwise, prepend...
19394 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19395 cp $export_symbols $output_objdir/$soname.def;
19396 else
19397 echo EXPORTS > $output_objdir/$soname.def;
19398 cat $export_symbols >> $output_objdir/$soname.def;
19400 $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'
19401 else
19402 ld_shlibs_CXX=no
19405 darwin* | rhapsody*)
19408 archive_cmds_need_lc_CXX=no
19409 hardcode_direct_CXX=no
19410 hardcode_automatic_CXX=yes
19411 hardcode_shlibpath_var_CXX=unsupported
19412 if test "$lt_cv_ld_force_load" = "yes"; then
19413 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\"`'
19414 else
19415 whole_archive_flag_spec_CXX=''
19417 link_all_deplibs_CXX=yes
19418 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19419 case $cc_basename in
19420 ifort*) _lt_dar_can_shared=yes ;;
19421 *) _lt_dar_can_shared=$GCC ;;
19422 esac
19423 if test "$_lt_dar_can_shared" = "yes"; then
19424 output_verbose_link_cmd=func_echo_all
19425 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}"
19426 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19427 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}"
19428 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}"
19429 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19430 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}"
19431 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}"
19434 else
19435 ld_shlibs_CXX=no
19440 dgux*)
19441 case $cc_basename in
19442 ec++*)
19443 # FIXME: insert proper C++ library support
19444 ld_shlibs_CXX=no
19446 ghcx*)
19447 # Green Hills C++ Compiler
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19452 # FIXME: insert proper C++ library support
19453 ld_shlibs_CXX=no
19455 esac
19458 freebsd2.*)
19459 # C++ shared libraries reported to be fairly broken before
19460 # switch to ELF
19461 ld_shlibs_CXX=no
19464 freebsd-elf*)
19465 archive_cmds_need_lc_CXX=no
19468 freebsd* | dragonfly*)
19469 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19470 # conventions
19471 ld_shlibs_CXX=yes
19474 gnu*)
19477 haiku*)
19478 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19479 link_all_deplibs_CXX=yes
19482 hpux9*)
19483 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19484 hardcode_libdir_separator_CXX=:
19485 export_dynamic_flag_spec_CXX='${wl}-E'
19486 hardcode_direct_CXX=yes
19487 hardcode_minus_L_CXX=yes # Not in the search PATH,
19488 # but as the default
19489 # location of the library.
19491 case $cc_basename in
19492 CC*)
19493 # FIXME: insert proper C++ library support
19494 ld_shlibs_CXX=no
19496 aCC*)
19497 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'
19498 # Commands to make compiler produce verbose output that lists
19499 # what "hidden" libraries, object files and flags are used when
19500 # linking a shared library.
19502 # There doesn't appear to be a way to prevent this compiler from
19503 # explicitly linking system object files so we need to strip them
19504 # from the output so that they don't get included in the library
19505 # dependencies.
19506 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"'
19509 if test "$GXX" = yes; then
19510 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'
19511 else
19512 # FIXME: insert proper C++ library support
19513 ld_shlibs_CXX=no
19516 esac
19519 hpux10*|hpux11*)
19520 if test $with_gnu_ld = no; then
19521 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19522 hardcode_libdir_separator_CXX=:
19524 case $host_cpu in
19525 hppa*64*|ia64*)
19528 export_dynamic_flag_spec_CXX='${wl}-E'
19530 esac
19532 case $host_cpu in
19533 hppa*64*|ia64*)
19534 hardcode_direct_CXX=no
19535 hardcode_shlibpath_var_CXX=no
19538 hardcode_direct_CXX=yes
19539 hardcode_direct_absolute_CXX=yes
19540 hardcode_minus_L_CXX=yes # Not in the search PATH,
19541 # but as the default
19542 # location of the library.
19544 esac
19546 case $cc_basename in
19547 CC*)
19548 # FIXME: insert proper C++ library support
19549 ld_shlibs_CXX=no
19551 aCC*)
19552 case $host_cpu in
19553 hppa*64*)
19554 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19556 ia64*)
19557 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19560 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19562 esac
19563 # Commands to make compiler produce verbose output that lists
19564 # what "hidden" libraries, object files and flags are used when
19565 # linking a shared library.
19567 # There doesn't appear to be a way to prevent this compiler from
19568 # explicitly linking system object files so we need to strip them
19569 # from the output so that they don't get included in the library
19570 # dependencies.
19571 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"'
19574 if test "$GXX" = yes; then
19575 if test $with_gnu_ld = no; then
19576 case $host_cpu in
19577 hppa*64*)
19578 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19580 ia64*)
19581 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19584 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'
19586 esac
19588 else
19589 # FIXME: insert proper C++ library support
19590 ld_shlibs_CXX=no
19593 esac
19596 interix[3-9]*)
19597 hardcode_direct_CXX=no
19598 hardcode_shlibpath_var_CXX=no
19599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19600 export_dynamic_flag_spec_CXX='${wl}-E'
19601 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19602 # Instead, shared libraries are loaded at an image base (0x10000000 by
19603 # default) and relocated if they conflict, which is a slow very memory
19604 # consuming and fragmenting process. To avoid this, we pick a random,
19605 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19606 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19607 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'
19608 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'
19610 irix5* | irix6*)
19611 case $cc_basename in
19612 CC*)
19613 # SGI C++
19614 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'
19616 # Archives containing C++ object files must be created using
19617 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19618 # necessary to make sure instantiated templates are included
19619 # in the archive.
19620 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19623 if test "$GXX" = yes; then
19624 if test "$with_gnu_ld" = no; then
19625 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'
19626 else
19627 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'
19630 link_all_deplibs_CXX=yes
19632 esac
19633 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19634 hardcode_libdir_separator_CXX=:
19635 inherit_rpath_CXX=yes
19638 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19639 case $cc_basename in
19640 KCC*)
19641 # Kuck and Associates, Inc. (KAI) C++ Compiler
19643 # KCC will only create a shared library if the output file
19644 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19645 # to its proper name (with version) after linking.
19646 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'
19647 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'
19648 # Commands to make compiler produce verbose output that lists
19649 # what "hidden" libraries, object files and flags are used when
19650 # linking a shared library.
19652 # There doesn't appear to be a way to prevent this compiler from
19653 # explicitly linking system object files so we need to strip them
19654 # from the output so that they don't get included in the library
19655 # dependencies.
19656 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"'
19658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19661 # Archives containing C++ object files must be created using
19662 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19663 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19665 icpc* | ecpc* )
19666 # Intel C++
19667 with_gnu_ld=yes
19668 # version 8.0 and above of icpc choke on multiply defined symbols
19669 # if we add $predep_objects and $postdep_objects, however 7.1 and
19670 # earlier do not add the objects themselves.
19671 case `$CC -V 2>&1` in
19672 *"Version 7."*)
19673 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19674 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'
19676 *) # Version 8.0 or newer
19677 tmp_idyn=
19678 case $host_cpu in
19679 ia64*) tmp_idyn=' -i_dynamic';;
19680 esac
19681 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19682 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'
19684 esac
19685 archive_cmds_need_lc_CXX=no
19686 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19687 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19688 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19690 pgCC* | pgcpp*)
19691 # Portland Group C++ compiler
19692 case `$CC -V` in
19693 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19694 prelink_cmds_CXX='tpldir=Template.dir~
19695 rm -rf $tpldir~
19696 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19697 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19698 old_archive_cmds_CXX='tpldir=Template.dir~
19699 rm -rf $tpldir~
19700 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19701 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19702 $RANLIB $oldlib'
19703 archive_cmds_CXX='tpldir=Template.dir~
19704 rm -rf $tpldir~
19705 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19706 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19707 archive_expsym_cmds_CXX='tpldir=Template.dir~
19708 rm -rf $tpldir~
19709 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19710 $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'
19712 *) # Version 6 and above use weak symbols
19713 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19714 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'
19716 esac
19718 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19720 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'
19722 cxx*)
19723 # Compaq C++
19724 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19725 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'
19727 runpath_var=LD_RUN_PATH
19728 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19729 hardcode_libdir_separator_CXX=:
19731 # Commands to make compiler produce verbose output that lists
19732 # what "hidden" libraries, object files and flags are used when
19733 # linking a shared library.
19735 # There doesn't appear to be a way to prevent this compiler from
19736 # explicitly linking system object files so we need to strip them
19737 # from the output so that they don't get included in the library
19738 # dependencies.
19739 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'
19741 xl* | mpixl* | bgxl*)
19742 # IBM XL 8.0 on PPC, with GNU ld
19743 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19745 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19746 if test "x$supports_anon_versioning" = xyes; then
19747 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19749 echo "local: *; };" >> $output_objdir/$libname.ver~
19750 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19754 case `$CC -V 2>&1 | sed 5q` in
19755 *Sun\ C*)
19756 # Sun C++ 5.9
19757 no_undefined_flag_CXX=' -zdefs'
19758 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19759 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'
19760 hardcode_libdir_flag_spec_CXX='-R$libdir'
19761 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'
19762 compiler_needs_object_CXX=yes
19764 # Not sure whether something based on
19765 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19766 # would be better.
19767 output_verbose_link_cmd='func_echo_all'
19769 # Archives containing C++ object files must be created using
19770 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19771 # necessary to make sure instantiated templates are included
19772 # in the archive.
19773 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19775 esac
19777 esac
19780 lynxos*)
19781 # FIXME: insert proper C++ library support
19782 ld_shlibs_CXX=no
19785 m88k*)
19786 # FIXME: insert proper C++ library support
19787 ld_shlibs_CXX=no
19790 mvs*)
19791 case $cc_basename in
19792 cxx*)
19793 # FIXME: insert proper C++ library support
19794 ld_shlibs_CXX=no
19797 # FIXME: insert proper C++ library support
19798 ld_shlibs_CXX=no
19800 esac
19803 netbsd*)
19804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19805 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19806 wlarc=
19807 hardcode_libdir_flag_spec_CXX='-R$libdir'
19808 hardcode_direct_CXX=yes
19809 hardcode_shlibpath_var_CXX=no
19811 # Workaround some broken pre-1.5 toolchains
19812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19815 *nto* | *qnx*)
19816 ld_shlibs_CXX=yes
19819 openbsd2*)
19820 # C++ shared libraries are fairly broken
19821 ld_shlibs_CXX=no
19824 openbsd*)
19825 if test -f /usr/libexec/ld.so; then
19826 hardcode_direct_CXX=yes
19827 hardcode_shlibpath_var_CXX=no
19828 hardcode_direct_absolute_CXX=yes
19829 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19832 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19833 export_dynamic_flag_spec_CXX='${wl}-E'
19834 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19836 output_verbose_link_cmd=func_echo_all
19837 else
19838 ld_shlibs_CXX=no
19842 osf3* | osf4* | osf5*)
19843 case $cc_basename in
19844 KCC*)
19845 # Kuck and Associates, Inc. (KAI) C++ Compiler
19847 # KCC will only create a shared library if the output file
19848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19849 # to its proper name (with version) after linking.
19850 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'
19852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19853 hardcode_libdir_separator_CXX=:
19855 # Archives containing C++ object files must be created using
19856 # the KAI C++ compiler.
19857 case $host in
19858 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19859 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19860 esac
19862 RCC*)
19863 # Rational C++ 2.4.1
19864 # FIXME: insert proper C++ library support
19865 ld_shlibs_CXX=no
19867 cxx*)
19868 case $host in
19869 osf3*)
19870 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19871 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'
19872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19875 allow_undefined_flag_CXX=' -expect_unresolved \*'
19876 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'
19877 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19878 echo "-hidden">> $lib.exp~
19879 $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~
19880 $RM $lib.exp'
19881 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19883 esac
19885 hardcode_libdir_separator_CXX=:
19887 # Commands to make compiler produce verbose output that lists
19888 # what "hidden" libraries, object files and flags are used when
19889 # linking a shared library.
19891 # There doesn't appear to be a way to prevent this compiler from
19892 # explicitly linking system object files so we need to strip them
19893 # from the output so that they don't get included in the library
19894 # dependencies.
19895 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"'
19898 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19899 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19900 case $host in
19901 osf3*)
19902 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'
19905 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'
19907 esac
19909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19910 hardcode_libdir_separator_CXX=:
19912 # Commands to make compiler produce verbose output that lists
19913 # what "hidden" libraries, object files and flags are used when
19914 # linking a shared library.
19915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19917 else
19918 # FIXME: insert proper C++ library support
19919 ld_shlibs_CXX=no
19922 esac
19925 psos*)
19926 # FIXME: insert proper C++ library support
19927 ld_shlibs_CXX=no
19930 sunos4*)
19931 case $cc_basename in
19932 CC*)
19933 # Sun C++ 4.x
19934 # FIXME: insert proper C++ library support
19935 ld_shlibs_CXX=no
19937 lcc*)
19938 # Lucid
19939 # FIXME: insert proper C++ library support
19940 ld_shlibs_CXX=no
19943 # FIXME: insert proper C++ library support
19944 ld_shlibs_CXX=no
19946 esac
19949 solaris*)
19950 case $cc_basename in
19951 CC*)
19952 # Sun C++ 4.2, 5.x and Centerline C++
19953 archive_cmds_need_lc_CXX=yes
19954 no_undefined_flag_CXX=' -zdefs'
19955 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19956 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19957 $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'
19959 hardcode_libdir_flag_spec_CXX='-R$libdir'
19960 hardcode_shlibpath_var_CXX=no
19961 case $host_os in
19962 solaris2.[0-5] | solaris2.[0-5].*) ;;
19964 # The compiler driver will combine and reorder linker options,
19965 # but understands `-z linker_flag'.
19966 # Supported since Solaris 2.6 (maybe 2.5.1?)
19967 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19969 esac
19970 link_all_deplibs_CXX=yes
19972 output_verbose_link_cmd='func_echo_all'
19974 # Archives containing C++ object files must be created using
19975 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19976 # necessary to make sure instantiated templates are included
19977 # in the archive.
19978 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19980 gcx*)
19981 # Green Hills C++ Compiler
19982 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19984 # The C++ compiler must be used to create the archive.
19985 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19988 # GNU C++ compiler with Solaris linker
19989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19990 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19991 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19992 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19993 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19994 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19996 # Commands to make compiler produce verbose output that lists
19997 # what "hidden" libraries, object files and flags are used when
19998 # linking a shared library.
19999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20000 else
20001 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20002 # platform.
20003 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20004 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20005 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20007 # Commands to make compiler produce verbose output that lists
20008 # what "hidden" libraries, object files and flags are used when
20009 # linking a shared library.
20010 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20013 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20014 case $host_os in
20015 solaris2.[0-5] | solaris2.[0-5].*) ;;
20017 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20019 esac
20022 esac
20025 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20026 no_undefined_flag_CXX='${wl}-z,text'
20027 archive_cmds_need_lc_CXX=no
20028 hardcode_shlibpath_var_CXX=no
20029 runpath_var='LD_RUN_PATH'
20031 case $cc_basename in
20032 CC*)
20033 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20034 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20037 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20038 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20040 esac
20043 sysv5* | sco3.2v5* | sco5v6*)
20044 # Note: We can NOT use -z defs as we might desire, because we do not
20045 # link with -lc, and that would cause any symbols used from libc to
20046 # always be unresolved, which means just about no library would
20047 # ever link correctly. If we're not using GNU ld we use -z text
20048 # though, which does catch some bad symbols but isn't as heavy-handed
20049 # as -z defs.
20050 no_undefined_flag_CXX='${wl}-z,text'
20051 allow_undefined_flag_CXX='${wl}-z,nodefs'
20052 archive_cmds_need_lc_CXX=no
20053 hardcode_shlibpath_var_CXX=no
20054 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20055 hardcode_libdir_separator_CXX=':'
20056 link_all_deplibs_CXX=yes
20057 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20058 runpath_var='LD_RUN_PATH'
20060 case $cc_basename in
20061 CC*)
20062 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20063 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20064 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20065 '"$old_archive_cmds_CXX"
20066 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20067 '"$reload_cmds_CXX"
20070 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20071 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20073 esac
20076 tandem*)
20077 case $cc_basename in
20078 NCC*)
20079 # NonStop-UX NCC 3.20
20080 # FIXME: insert proper C++ library support
20081 ld_shlibs_CXX=no
20084 # FIXME: insert proper C++ library support
20085 ld_shlibs_CXX=no
20087 esac
20090 vxworks*)
20091 # FIXME: insert proper C++ library support
20092 ld_shlibs_CXX=no
20096 # FIXME: insert proper C++ library support
20097 ld_shlibs_CXX=no
20099 esac
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20102 $as_echo "$ld_shlibs_CXX" >&6; }
20103 test "$ld_shlibs_CXX" = no && can_build_shared=no
20105 GCC_CXX="$GXX"
20106 LD_CXX="$LD"
20108 ## CAVEAT EMPTOR:
20109 ## There is no encapsulation within the following macros, do not change
20110 ## the running order or otherwise move them around unless you know exactly
20111 ## what you are doing...
20112 # Dependencies to place before and after the object being linked:
20113 predep_objects_CXX=
20114 postdep_objects_CXX=
20115 predeps_CXX=
20116 postdeps_CXX=
20117 compiler_lib_search_path_CXX=
20119 cat > conftest.$ac_ext <<_LT_EOF
20120 class Foo
20122 public:
20123 Foo (void) { a = 0; }
20124 private:
20125 int a;
20127 _LT_EOF
20129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20130 (eval $ac_compile) 2>&5
20131 ac_status=$?
20132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20133 test $ac_status = 0; }; then
20134 # Parse the compiler output and extract the necessary
20135 # objects, libraries and library flags.
20137 # Sentinel used to keep track of whether or not we are before
20138 # the conftest object file.
20139 pre_test_object_deps_done=no
20141 for p in `eval "$output_verbose_link_cmd"`; do
20142 case $p in
20144 -L* | -R* | -l*)
20145 # Some compilers place space between "-{L,R}" and the path.
20146 # Remove the space.
20147 if test $p = "-L" ||
20148 test $p = "-R"; then
20149 prev=$p
20150 continue
20151 else
20152 prev=
20155 if test "$pre_test_object_deps_done" = no; then
20156 case $p in
20157 -L* | -R*)
20158 # Internal compiler library paths should come after those
20159 # provided the user. The postdeps already come after the
20160 # user supplied libs so there is no need to process them.
20161 if test -z "$compiler_lib_search_path_CXX"; then
20162 compiler_lib_search_path_CXX="${prev}${p}"
20163 else
20164 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20167 # The "-l" case would never come before the object being
20168 # linked, so don't bother handling this case.
20169 esac
20170 else
20171 if test -z "$postdeps_CXX"; then
20172 postdeps_CXX="${prev}${p}"
20173 else
20174 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20179 *.$objext)
20180 # This assumes that the test object file only shows up
20181 # once in the compiler output.
20182 if test "$p" = "conftest.$objext"; then
20183 pre_test_object_deps_done=yes
20184 continue
20187 if test "$pre_test_object_deps_done" = no; then
20188 if test -z "$predep_objects_CXX"; then
20189 predep_objects_CXX="$p"
20190 else
20191 predep_objects_CXX="$predep_objects_CXX $p"
20193 else
20194 if test -z "$postdep_objects_CXX"; then
20195 postdep_objects_CXX="$p"
20196 else
20197 postdep_objects_CXX="$postdep_objects_CXX $p"
20202 *) ;; # Ignore the rest.
20204 esac
20205 done
20207 # Clean up.
20208 rm -f a.out a.exe
20209 else
20210 echo "libtool.m4: error: problem compiling CXX test program"
20213 $RM -f confest.$objext
20215 # PORTME: override above test on systems where it is broken
20216 case $host_os in
20217 interix[3-9]*)
20218 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20219 # hack all around it, let's just trust "g++" to DTRT.
20220 predep_objects_CXX=
20221 postdep_objects_CXX=
20222 postdeps_CXX=
20225 linux*)
20226 case `$CC -V 2>&1 | sed 5q` in
20227 *Sun\ C*)
20228 # Sun C++ 5.9
20230 # The more standards-conforming stlport4 library is
20231 # incompatible with the Cstd library. Avoid specifying
20232 # it if it's in CXXFLAGS. Ignore libCrun as
20233 # -library=stlport4 depends on it.
20234 case " $CXX $CXXFLAGS " in
20235 *" -library=stlport4 "*)
20236 solaris_use_stlport4=yes
20238 esac
20240 if test "$solaris_use_stlport4" != yes; then
20241 postdeps_CXX='-library=Cstd -library=Crun'
20244 esac
20247 solaris*)
20248 case $cc_basename in
20249 CC*)
20250 # The more standards-conforming stlport4 library is
20251 # incompatible with the Cstd library. Avoid specifying
20252 # it if it's in CXXFLAGS. Ignore libCrun as
20253 # -library=stlport4 depends on it.
20254 case " $CXX $CXXFLAGS " in
20255 *" -library=stlport4 "*)
20256 solaris_use_stlport4=yes
20258 esac
20260 # Adding this requires a known-good setup of shared libraries for
20261 # Sun compiler versions before 5.6, else PIC objects from an old
20262 # archive will be linked into the output, leading to subtle bugs.
20263 if test "$solaris_use_stlport4" != yes; then
20264 postdeps_CXX='-library=Cstd -library=Crun'
20267 esac
20269 esac
20272 case " $postdeps_CXX " in
20273 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20274 esac
20275 compiler_lib_search_dirs_CXX=
20276 if test -n "${compiler_lib_search_path_CXX}"; then
20277 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20310 lt_prog_compiler_wl_CXX=
20311 lt_prog_compiler_pic_CXX=
20312 lt_prog_compiler_static_CXX=
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20315 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20317 # C++ specific cases for pic, static, wl, etc.
20318 if test "$GXX" = yes; then
20319 lt_prog_compiler_wl_CXX='-Wl,'
20320 lt_prog_compiler_static_CXX='-static'
20322 case $host_os in
20323 aix*)
20324 # All AIX code is PIC.
20325 if test "$host_cpu" = ia64; then
20326 # AIX 5 now supports IA64 processor
20327 lt_prog_compiler_static_CXX='-Bstatic'
20329 lt_prog_compiler_pic_CXX='-fPIC'
20332 amigaos*)
20333 case $host_cpu in
20334 powerpc)
20335 # see comment about AmigaOS4 .so support
20336 lt_prog_compiler_pic_CXX='-fPIC'
20338 m68k)
20339 # FIXME: we need at least 68020 code to build shared libraries, but
20340 # adding the `-m68020' flag to GCC prevents building anything better,
20341 # like `-m68040'.
20342 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20344 esac
20347 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20348 # PIC is the default for these OSes.
20350 mingw* | cygwin* | os2* | pw32* | cegcc*)
20351 # This hack is so that the source file can tell whether it is being
20352 # built for inclusion in a dll (and should export symbols for example).
20353 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20354 # (--disable-auto-import) libraries
20355 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20357 darwin* | rhapsody*)
20358 # PIC is the default on this platform
20359 # Common symbols not allowed in MH_DYLIB files
20360 lt_prog_compiler_pic_CXX='-fno-common'
20362 *djgpp*)
20363 # DJGPP does not support shared libraries at all
20364 lt_prog_compiler_pic_CXX=
20366 haiku*)
20367 # PIC is the default for Haiku.
20368 # The "-static" flag exists, but is broken.
20369 lt_prog_compiler_static_CXX=
20371 interix[3-9]*)
20372 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20373 # Instead, we relocate shared libraries at runtime.
20375 sysv4*MP*)
20376 if test -d /usr/nec; then
20377 lt_prog_compiler_pic_CXX=-Kconform_pic
20380 hpux*)
20381 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20382 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20383 # sets the default TLS model and affects inlining.
20384 case $host_cpu in
20385 hppa*64*)
20388 lt_prog_compiler_pic_CXX='-fPIC'
20390 esac
20392 *qnx* | *nto*)
20393 # QNX uses GNU C++, but need to define -shared option too, otherwise
20394 # it will coredump.
20395 lt_prog_compiler_pic_CXX='-fPIC -shared'
20398 lt_prog_compiler_pic_CXX='-fPIC'
20400 esac
20401 else
20402 case $host_os in
20403 aix[4-9]*)
20404 # All AIX code is PIC.
20405 if test "$host_cpu" = ia64; then
20406 # AIX 5 now supports IA64 processor
20407 lt_prog_compiler_static_CXX='-Bstatic'
20408 else
20409 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20412 chorus*)
20413 case $cc_basename in
20414 cxch68*)
20415 # Green Hills C++ Compiler
20416 # _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"
20418 esac
20420 dgux*)
20421 case $cc_basename in
20422 ec++*)
20423 lt_prog_compiler_pic_CXX='-KPIC'
20425 ghcx*)
20426 # Green Hills C++ Compiler
20427 lt_prog_compiler_pic_CXX='-pic'
20431 esac
20433 freebsd* | dragonfly*)
20434 # FreeBSD uses GNU C++
20436 hpux9* | hpux10* | hpux11*)
20437 case $cc_basename in
20438 CC*)
20439 lt_prog_compiler_wl_CXX='-Wl,'
20440 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20441 if test "$host_cpu" != ia64; then
20442 lt_prog_compiler_pic_CXX='+Z'
20445 aCC*)
20446 lt_prog_compiler_wl_CXX='-Wl,'
20447 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20448 case $host_cpu in
20449 hppa*64*|ia64*)
20450 # +Z the default
20453 lt_prog_compiler_pic_CXX='+Z'
20455 esac
20459 esac
20461 interix*)
20462 # This is c89, which is MS Visual C++ (no shared libs)
20463 # Anyone wants to do a port?
20465 irix5* | irix6* | nonstopux*)
20466 case $cc_basename in
20467 CC*)
20468 lt_prog_compiler_wl_CXX='-Wl,'
20469 lt_prog_compiler_static_CXX='-non_shared'
20470 # CC pic flag -KPIC is the default.
20474 esac
20476 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20477 case $cc_basename in
20478 KCC*)
20479 # KAI C++ Compiler
20480 lt_prog_compiler_wl_CXX='--backend -Wl,'
20481 lt_prog_compiler_pic_CXX='-fPIC'
20483 ecpc* )
20484 # old Intel C++ for x86_64 which still supported -KPIC.
20485 lt_prog_compiler_wl_CXX='-Wl,'
20486 lt_prog_compiler_pic_CXX='-KPIC'
20487 lt_prog_compiler_static_CXX='-static'
20489 icpc* )
20490 # Intel C++, used to be incompatible with GCC.
20491 # ICC 10 doesn't accept -KPIC any more.
20492 lt_prog_compiler_wl_CXX='-Wl,'
20493 lt_prog_compiler_pic_CXX='-fPIC'
20494 lt_prog_compiler_static_CXX='-static'
20496 pgCC* | pgcpp*)
20497 # Portland Group C++ compiler
20498 lt_prog_compiler_wl_CXX='-Wl,'
20499 lt_prog_compiler_pic_CXX='-fpic'
20500 lt_prog_compiler_static_CXX='-Bstatic'
20502 cxx*)
20503 # Compaq C++
20504 # Make sure the PIC flag is empty. It appears that all Alpha
20505 # Linux and Compaq Tru64 Unix objects are PIC.
20506 lt_prog_compiler_pic_CXX=
20507 lt_prog_compiler_static_CXX='-non_shared'
20509 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20510 # IBM XL 8.0, 9.0 on PPC and BlueGene
20511 lt_prog_compiler_wl_CXX='-Wl,'
20512 lt_prog_compiler_pic_CXX='-qpic'
20513 lt_prog_compiler_static_CXX='-qstaticlink'
20516 case `$CC -V 2>&1 | sed 5q` in
20517 *Sun\ C*)
20518 # Sun C++ 5.9
20519 lt_prog_compiler_pic_CXX='-KPIC'
20520 lt_prog_compiler_static_CXX='-Bstatic'
20521 lt_prog_compiler_wl_CXX='-Qoption ld '
20523 esac
20525 esac
20527 lynxos*)
20529 m88k*)
20531 mvs*)
20532 case $cc_basename in
20533 cxx*)
20534 lt_prog_compiler_pic_CXX='-W c,exportall'
20538 esac
20540 netbsd*)
20542 *qnx* | *nto*)
20543 # QNX uses GNU C++, but need to define -shared option too, otherwise
20544 # it will coredump.
20545 lt_prog_compiler_pic_CXX='-fPIC -shared'
20547 osf3* | osf4* | osf5*)
20548 case $cc_basename in
20549 KCC*)
20550 lt_prog_compiler_wl_CXX='--backend -Wl,'
20552 RCC*)
20553 # Rational C++ 2.4.1
20554 lt_prog_compiler_pic_CXX='-pic'
20556 cxx*)
20557 # Digital/Compaq C++
20558 lt_prog_compiler_wl_CXX='-Wl,'
20559 # Make sure the PIC flag is empty. It appears that all Alpha
20560 # Linux and Compaq Tru64 Unix objects are PIC.
20561 lt_prog_compiler_pic_CXX=
20562 lt_prog_compiler_static_CXX='-non_shared'
20566 esac
20568 psos*)
20570 solaris*)
20571 case $cc_basename in
20572 CC*)
20573 # Sun C++ 4.2, 5.x and Centerline C++
20574 lt_prog_compiler_pic_CXX='-KPIC'
20575 lt_prog_compiler_static_CXX='-Bstatic'
20576 lt_prog_compiler_wl_CXX='-Qoption ld '
20578 gcx*)
20579 # Green Hills C++ Compiler
20580 lt_prog_compiler_pic_CXX='-PIC'
20584 esac
20586 sunos4*)
20587 case $cc_basename in
20588 CC*)
20589 # Sun C++ 4.x
20590 lt_prog_compiler_pic_CXX='-pic'
20591 lt_prog_compiler_static_CXX='-Bstatic'
20593 lcc*)
20594 # Lucid
20595 lt_prog_compiler_pic_CXX='-pic'
20599 esac
20601 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20602 case $cc_basename in
20603 CC*)
20604 lt_prog_compiler_wl_CXX='-Wl,'
20605 lt_prog_compiler_pic_CXX='-KPIC'
20606 lt_prog_compiler_static_CXX='-Bstatic'
20608 esac
20610 tandem*)
20611 case $cc_basename in
20612 NCC*)
20613 # NonStop-UX NCC 3.20
20614 lt_prog_compiler_pic_CXX='-KPIC'
20618 esac
20620 vxworks*)
20623 lt_prog_compiler_can_build_shared_CXX=no
20625 esac
20628 case $host_os in
20629 # For platforms which do not support PIC, -DPIC is meaningless:
20630 *djgpp*)
20631 lt_prog_compiler_pic_CXX=
20634 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20636 esac
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20638 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20643 # Check to make sure the PIC flag actually works.
20645 if test -n "$lt_prog_compiler_pic_CXX"; then
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20648 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20649 $as_echo_n "(cached) " >&6
20650 else
20651 lt_cv_prog_compiler_pic_works_CXX=no
20652 ac_outfile=conftest.$ac_objext
20653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20654 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20655 # Insert the option either (1) after the last *FLAGS variable, or
20656 # (2) before a word containing "conftest.", or (3) at the end.
20657 # Note that $ac_compile itself does not contain backslashes and begins
20658 # with a dollar sign (not a hyphen), so the echo should work correctly.
20659 # The option is referenced via a variable to avoid confusing sed.
20660 lt_compile=`echo "$ac_compile" | $SED \
20661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20663 -e 's:$: $lt_compiler_flag:'`
20664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20665 (eval "$lt_compile" 2>conftest.err)
20666 ac_status=$?
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 if (exit $ac_status) && test -s "$ac_outfile"; then
20670 # The compiler can only warn and ignore the option if not recognized
20671 # So say no if there are warnings other than the usual output.
20672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20675 lt_cv_prog_compiler_pic_works_CXX=yes
20678 $RM conftest*
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20682 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20684 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20685 case $lt_prog_compiler_pic_CXX in
20686 "" | " "*) ;;
20687 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20688 esac
20689 else
20690 lt_prog_compiler_pic_CXX=
20691 lt_prog_compiler_can_build_shared_CXX=no
20699 # Check to make sure the static flag actually works.
20701 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20704 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20705 $as_echo_n "(cached) " >&6
20706 else
20707 lt_cv_prog_compiler_static_works_CXX=no
20708 save_LDFLAGS="$LDFLAGS"
20709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20712 # The linker can only warn and ignore the option if not recognized
20713 # So say no if there are warnings
20714 if test -s conftest.err; then
20715 # Append any errors to the config.log.
20716 cat conftest.err 1>&5
20717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20719 if diff conftest.exp conftest.er2 >/dev/null; then
20720 lt_cv_prog_compiler_static_works_CXX=yes
20722 else
20723 lt_cv_prog_compiler_static_works_CXX=yes
20726 $RM -r conftest*
20727 LDFLAGS="$save_LDFLAGS"
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20731 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20733 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20735 else
20736 lt_prog_compiler_static_CXX=
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20744 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20745 $as_echo_n "(cached) " >&6
20746 else
20747 lt_cv_prog_compiler_c_o_CXX=no
20748 $RM -r conftest 2>/dev/null
20749 mkdir conftest
20750 cd conftest
20751 mkdir out
20752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20754 lt_compiler_flag="-o out/conftest2.$ac_objext"
20755 # Insert the option either (1) after the last *FLAGS variable, or
20756 # (2) before a word containing "conftest.", or (3) at the end.
20757 # Note that $ac_compile itself does not contain backslashes and begins
20758 # with a dollar sign (not a hyphen), so the echo should work correctly.
20759 lt_compile=`echo "$ac_compile" | $SED \
20760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20762 -e 's:$: $lt_compiler_flag:'`
20763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20764 (eval "$lt_compile" 2>out/conftest.err)
20765 ac_status=$?
20766 cat out/conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20769 then
20770 # The compiler can only warn and ignore the option if not recognized
20771 # So say no if there are warnings
20772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20775 lt_cv_prog_compiler_c_o_CXX=yes
20778 chmod u+w . 2>&5
20779 $RM conftest*
20780 # SGI C++ compiler will create directory out/ii_files/ for
20781 # template instantiation
20782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20783 $RM out/* && rmdir out
20784 cd ..
20785 $RM -r conftest
20786 $RM conftest*
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20790 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20796 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20797 $as_echo_n "(cached) " >&6
20798 else
20799 lt_cv_prog_compiler_c_o_CXX=no
20800 $RM -r conftest 2>/dev/null
20801 mkdir conftest
20802 cd conftest
20803 mkdir out
20804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20806 lt_compiler_flag="-o out/conftest2.$ac_objext"
20807 # Insert the option either (1) after the last *FLAGS variable, or
20808 # (2) before a word containing "conftest.", or (3) at the end.
20809 # Note that $ac_compile itself does not contain backslashes and begins
20810 # with a dollar sign (not a hyphen), so the echo should work correctly.
20811 lt_compile=`echo "$ac_compile" | $SED \
20812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20814 -e 's:$: $lt_compiler_flag:'`
20815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20816 (eval "$lt_compile" 2>out/conftest.err)
20817 ac_status=$?
20818 cat out/conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20821 then
20822 # The compiler can only warn and ignore the option if not recognized
20823 # So say no if there are warnings
20824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20827 lt_cv_prog_compiler_c_o_CXX=yes
20830 chmod u+w . 2>&5
20831 $RM conftest*
20832 # SGI C++ compiler will create directory out/ii_files/ for
20833 # template instantiation
20834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20835 $RM out/* && rmdir out
20836 cd ..
20837 $RM -r conftest
20838 $RM conftest*
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20842 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20847 hard_links="nottested"
20848 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20849 # do not overwrite the value of need_locks provided by the user
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20851 $as_echo_n "checking if we can lock with hard links... " >&6; }
20852 hard_links=yes
20853 $RM conftest*
20854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20855 touch conftest.a
20856 ln conftest.a conftest.b 2>&5 || hard_links=no
20857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20859 $as_echo "$hard_links" >&6; }
20860 if test "$hard_links" = no; then
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20862 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20863 need_locks=warn
20865 else
20866 need_locks=no
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20872 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20875 case $host_os in
20876 aix[4-9]*)
20877 # If we're using GNU nm, then we don't want the "-C" option.
20878 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20879 # Also, AIX nm treats weak defined symbols like other global defined
20880 # symbols, whereas GNU nm marks them as "W".
20881 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20882 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'
20883 else
20884 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20887 pw32*)
20888 export_symbols_cmds_CXX="$ltdll_cmds"
20890 cygwin* | mingw* | cegcc*)
20891 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'
20894 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20896 esac
20897 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20900 $as_echo "$ld_shlibs_CXX" >&6; }
20901 test "$ld_shlibs_CXX" = no && can_build_shared=no
20903 with_gnu_ld_CXX=$with_gnu_ld
20911 # Do we need to explicitly link libc?
20913 case "x$archive_cmds_need_lc_CXX" in
20914 x|xyes)
20915 # Assume -lc should be added
20916 archive_cmds_need_lc_CXX=yes
20918 if test "$enable_shared" = yes && test "$GCC" = yes; then
20919 case $archive_cmds_CXX in
20920 *'~'*)
20921 # FIXME: we may have to deal with multi-command sequences.
20923 '$CC '*)
20924 # Test whether the compiler implicitly links with -lc since on some
20925 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20926 # to ld, don't add -lc before -lgcc.
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20928 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20929 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20930 $as_echo_n "(cached) " >&6
20931 else
20932 $RM conftest*
20933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20936 (eval $ac_compile) 2>&5
20937 ac_status=$?
20938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20939 test $ac_status = 0; } 2>conftest.err; then
20940 soname=conftest
20941 lib=conftest
20942 libobjs=conftest.$ac_objext
20943 deplibs=
20944 wl=$lt_prog_compiler_wl_CXX
20945 pic_flag=$lt_prog_compiler_pic_CXX
20946 compiler_flags=-v
20947 linker_flags=-v
20948 verstring=
20949 output_objdir=.
20950 libname=conftest
20951 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20952 allow_undefined_flag_CXX=
20953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20954 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20955 ac_status=$?
20956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20957 test $ac_status = 0; }
20958 then
20959 lt_cv_archive_cmds_need_lc_CXX=no
20960 else
20961 lt_cv_archive_cmds_need_lc_CXX=yes
20963 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20964 else
20965 cat conftest.err 1>&5
20967 $RM conftest*
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20971 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20972 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20974 esac
20977 esac
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21043 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21045 library_names_spec=
21046 libname_spec='lib$name'
21047 soname_spec=
21048 shrext_cmds=".so"
21049 postinstall_cmds=
21050 postuninstall_cmds=
21051 finish_cmds=
21052 finish_eval=
21053 shlibpath_var=
21054 shlibpath_overrides_runpath=unknown
21055 version_type=none
21056 dynamic_linker="$host_os ld.so"
21057 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21058 need_lib_prefix=unknown
21059 hardcode_into_libs=no
21061 # when you set need_version to no, make sure it does not cause -set_version
21062 # flags to be left without arguments
21063 need_version=unknown
21065 case $host_os in
21066 aix3*)
21067 version_type=linux
21068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21069 shlibpath_var=LIBPATH
21071 # AIX 3 has no versioning support, so we append a major version to the name.
21072 soname_spec='${libname}${release}${shared_ext}$major'
21075 aix[4-9]*)
21076 version_type=linux
21077 need_lib_prefix=no
21078 need_version=no
21079 hardcode_into_libs=yes
21080 if test "$host_cpu" = ia64; then
21081 # AIX 5 supports IA64
21082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21083 shlibpath_var=LD_LIBRARY_PATH
21084 else
21085 # With GCC up to 2.95.x, collect2 would create an import file
21086 # for dependence libraries. The import file would start with
21087 # the line `#! .'. This would cause the generated library to
21088 # depend on `.', always an invalid library. This was fixed in
21089 # development snapshots of GCC prior to 3.0.
21090 case $host_os in
21091 aix4 | aix4.[01] | aix4.[01].*)
21092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21093 echo ' yes '
21094 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21096 else
21097 can_build_shared=no
21100 esac
21101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21102 # soname into executable. Probably we can add versioning support to
21103 # collect2, so additional links can be useful in future.
21104 if test "$aix_use_runtimelinking" = yes; then
21105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21106 # instead of lib<name>.a to let people know that these are not
21107 # typical AIX shared libraries.
21108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21109 else
21110 # We preserve .a as extension for shared libraries through AIX4.2
21111 # and later when we are not doing run time linking.
21112 library_names_spec='${libname}${release}.a $libname.a'
21113 soname_spec='${libname}${release}${shared_ext}$major'
21115 shlibpath_var=LIBPATH
21119 amigaos*)
21120 case $host_cpu in
21121 powerpc)
21122 # Since July 2007 AmigaOS4 officially supports .so libraries.
21123 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 m68k)
21127 library_names_spec='$libname.ixlibrary $libname.a'
21128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21129 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'
21131 esac
21134 beos*)
21135 library_names_spec='${libname}${shared_ext}'
21136 dynamic_linker="$host_os ld.so"
21137 shlibpath_var=LIBRARY_PATH
21140 bsdi[45]*)
21141 version_type=linux
21142 need_version=no
21143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21144 soname_spec='${libname}${release}${shared_ext}$major'
21145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21146 shlibpath_var=LD_LIBRARY_PATH
21147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21149 # the default ld.so.conf also contains /usr/contrib/lib and
21150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21151 # libtool to hard-code these into programs
21154 cygwin* | mingw* | pw32* | cegcc*)
21155 version_type=windows
21156 shrext_cmds=".dll"
21157 need_version=no
21158 need_lib_prefix=no
21160 case $GCC,$host_os in
21161 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21162 library_names_spec='$libname.dll.a'
21163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21164 postinstall_cmds='base_file=`basename \${file}`~
21165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21166 dldir=$destdir/`dirname \$dlpath`~
21167 test -d \$dldir || mkdir -p \$dldir~
21168 $install_prog $dir/$dlname \$dldir/$dlname~
21169 chmod a+x \$dldir/$dlname~
21170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21174 dlpath=$dir/\$dldll~
21175 $RM \$dlpath'
21176 shlibpath_overrides_runpath=yes
21178 case $host_os in
21179 cygwin*)
21180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21184 mingw* | cegcc*)
21185 # MinGW DLLs use traditional 'lib' prefix
21186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21188 pw32*)
21189 # pw32 DLLs use 'pw' prefix rather than 'lib'
21190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21192 esac
21196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21198 esac
21199 dynamic_linker='Win32 ld.exe'
21200 # FIXME: first we should search . and the directory the executable is in
21201 shlibpath_var=PATH
21204 darwin* | rhapsody*)
21205 dynamic_linker="$host_os dyld"
21206 version_type=darwin
21207 need_lib_prefix=no
21208 need_version=no
21209 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21210 soname_spec='${libname}${release}${major}$shared_ext'
21211 shlibpath_overrides_runpath=yes
21212 shlibpath_var=DYLD_LIBRARY_PATH
21213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21218 dgux*)
21219 version_type=linux
21220 need_lib_prefix=no
21221 need_version=no
21222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21223 soname_spec='${libname}${release}${shared_ext}$major'
21224 shlibpath_var=LD_LIBRARY_PATH
21227 freebsd* | dragonfly*)
21228 # DragonFly does not have aout. When/if they implement a new
21229 # versioning mechanism, adjust this.
21230 if test -x /usr/bin/objformat; then
21231 objformat=`/usr/bin/objformat`
21232 else
21233 case $host_os in
21234 freebsd[23].*) objformat=aout ;;
21235 *) objformat=elf ;;
21236 esac
21238 version_type=freebsd-$objformat
21239 case $version_type in
21240 freebsd-elf*)
21241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21242 need_version=no
21243 need_lib_prefix=no
21245 freebsd-*)
21246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21247 need_version=yes
21249 esac
21250 shlibpath_var=LD_LIBRARY_PATH
21251 case $host_os in
21252 freebsd2.*)
21253 shlibpath_overrides_runpath=yes
21255 freebsd3.[01]* | freebsdelf3.[01]*)
21256 shlibpath_overrides_runpath=yes
21257 hardcode_into_libs=yes
21259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21261 shlibpath_overrides_runpath=no
21262 hardcode_into_libs=yes
21264 *) # from 4.6 on, and DragonFly
21265 shlibpath_overrides_runpath=yes
21266 hardcode_into_libs=yes
21268 esac
21271 gnu*)
21272 version_type=linux
21273 need_lib_prefix=no
21274 need_version=no
21275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 shlibpath_var=LD_LIBRARY_PATH
21278 hardcode_into_libs=yes
21281 haiku*)
21282 version_type=linux
21283 need_lib_prefix=no
21284 need_version=no
21285 dynamic_linker="$host_os runtime_loader"
21286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21287 soname_spec='${libname}${release}${shared_ext}$major'
21288 shlibpath_var=LIBRARY_PATH
21289 shlibpath_overrides_runpath=yes
21290 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21291 hardcode_into_libs=yes
21294 hpux9* | hpux10* | hpux11*)
21295 # Give a soname corresponding to the major version so that dld.sl refuses to
21296 # link against other versions.
21297 version_type=sunos
21298 need_lib_prefix=no
21299 need_version=no
21300 case $host_cpu in
21301 ia64*)
21302 shrext_cmds='.so'
21303 hardcode_into_libs=yes
21304 dynamic_linker="$host_os dld.so"
21305 shlibpath_var=LD_LIBRARY_PATH
21306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21308 soname_spec='${libname}${release}${shared_ext}$major'
21309 if test "X$HPUX_IA64_MODE" = X32; then
21310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21311 else
21312 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21316 hppa*64*)
21317 shrext_cmds='.sl'
21318 hardcode_into_libs=yes
21319 dynamic_linker="$host_os dld.sl"
21320 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21323 soname_spec='${libname}${release}${shared_ext}$major'
21324 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21328 shrext_cmds='.sl'
21329 dynamic_linker="$host_os dld.sl"
21330 shlibpath_var=SHLIB_PATH
21331 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333 soname_spec='${libname}${release}${shared_ext}$major'
21335 esac
21336 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21337 postinstall_cmds='chmod 555 $lib'
21338 # or fails outright, so override atomically:
21339 install_override_mode=555
21342 interix[3-9]*)
21343 version_type=linux
21344 need_lib_prefix=no
21345 need_version=no
21346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21347 soname_spec='${libname}${release}${shared_ext}$major'
21348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21349 shlibpath_var=LD_LIBRARY_PATH
21350 shlibpath_overrides_runpath=no
21351 hardcode_into_libs=yes
21354 irix5* | irix6* | nonstopux*)
21355 case $host_os in
21356 nonstopux*) version_type=nonstopux ;;
21358 if test "$lt_cv_prog_gnu_ld" = yes; then
21359 version_type=linux
21360 else
21361 version_type=irix
21362 fi ;;
21363 esac
21364 need_lib_prefix=no
21365 need_version=no
21366 soname_spec='${libname}${release}${shared_ext}$major'
21367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21368 case $host_os in
21369 irix5* | nonstopux*)
21370 libsuff= shlibsuff=
21373 case $LD in # libtool.m4 will add one of these switches to LD
21374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21375 libsuff= shlibsuff= libmagic=32-bit;;
21376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21377 libsuff=32 shlibsuff=N32 libmagic=N32;;
21378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21380 *) libsuff= shlibsuff= libmagic=never-match;;
21381 esac
21383 esac
21384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21385 shlibpath_overrides_runpath=no
21386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21388 hardcode_into_libs=yes
21391 # No shared lib support for Linux oldld, aout, or coff.
21392 linux*oldld* | linux*aout* | linux*coff*)
21393 dynamic_linker=no
21396 # This must be Linux ELF.
21397 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21398 version_type=linux
21399 need_lib_prefix=no
21400 need_version=no
21401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21402 soname_spec='${libname}${release}${shared_ext}$major'
21403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21404 shlibpath_var=LD_LIBRARY_PATH
21405 shlibpath_overrides_runpath=no
21407 # Some binutils ld are patched to set DT_RUNPATH
21408 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21409 $as_echo_n "(cached) " >&6
21410 else
21411 lt_cv_shlibpath_overrides_runpath=no
21412 save_LDFLAGS=$LDFLAGS
21413 save_libdir=$libdir
21414 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21415 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21420 main ()
21424 return 0;
21426 _ACEOF
21427 if ac_fn_cxx_try_link "$LINENO"; then :
21428 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21429 lt_cv_shlibpath_overrides_runpath=yes
21432 rm -f core conftest.err conftest.$ac_objext \
21433 conftest$ac_exeext conftest.$ac_ext
21434 LDFLAGS=$save_LDFLAGS
21435 libdir=$save_libdir
21439 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21441 # This implies no fast_install, which is unacceptable.
21442 # Some rework will be needed to allow for fast_install
21443 # before this can be enabled.
21444 hardcode_into_libs=yes
21446 # Append ld.so.conf contents to the search path
21447 if test -f /etc/ld.so.conf; then
21448 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' ' '`
21449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21452 # We used to test for /lib/ld.so.1 and disable shared libraries on
21453 # powerpc, because MkLinux only supported shared libraries with the
21454 # GNU dynamic linker. Since this was broken with cross compilers,
21455 # most powerpc-linux boxes support dynamic linking these days and
21456 # people can always --disable-shared, the test was removed, and we
21457 # assume the GNU/Linux dynamic linker is in use.
21458 dynamic_linker='GNU/Linux ld.so'
21461 netbsd*)
21462 version_type=sunos
21463 need_lib_prefix=no
21464 need_version=no
21465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21468 dynamic_linker='NetBSD (a.out) ld.so'
21469 else
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 dynamic_linker='NetBSD ld.elf_so'
21474 shlibpath_var=LD_LIBRARY_PATH
21475 shlibpath_overrides_runpath=yes
21476 hardcode_into_libs=yes
21479 newsos6)
21480 version_type=linux
21481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21482 shlibpath_var=LD_LIBRARY_PATH
21483 shlibpath_overrides_runpath=yes
21486 *nto* | *qnx*)
21487 version_type=qnx
21488 need_lib_prefix=no
21489 need_version=no
21490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21491 soname_spec='${libname}${release}${shared_ext}$major'
21492 shlibpath_var=LD_LIBRARY_PATH
21493 shlibpath_overrides_runpath=no
21494 hardcode_into_libs=yes
21495 dynamic_linker='ldqnx.so'
21498 openbsd*)
21499 version_type=sunos
21500 sys_lib_dlsearch_path_spec="/usr/lib"
21501 need_lib_prefix=no
21502 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21503 case $host_os in
21504 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21505 *) need_version=no ;;
21506 esac
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21509 shlibpath_var=LD_LIBRARY_PATH
21510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21511 case $host_os in
21512 openbsd2.[89] | openbsd2.[89].*)
21513 shlibpath_overrides_runpath=no
21516 shlibpath_overrides_runpath=yes
21518 esac
21519 else
21520 shlibpath_overrides_runpath=yes
21524 os2*)
21525 libname_spec='$name'
21526 shrext_cmds=".dll"
21527 need_lib_prefix=no
21528 library_names_spec='$libname${shared_ext} $libname.a'
21529 dynamic_linker='OS/2 ld.exe'
21530 shlibpath_var=LIBPATH
21533 osf3* | osf4* | osf5*)
21534 version_type=osf
21535 need_lib_prefix=no
21536 need_version=no
21537 soname_spec='${libname}${release}${shared_ext}$major'
21538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21539 shlibpath_var=LD_LIBRARY_PATH
21540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21541 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21544 rdos*)
21545 dynamic_linker=no
21548 solaris*)
21549 version_type=linux
21550 need_lib_prefix=no
21551 need_version=no
21552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21553 soname_spec='${libname}${release}${shared_ext}$major'
21554 shlibpath_var=LD_LIBRARY_PATH
21555 shlibpath_overrides_runpath=yes
21556 hardcode_into_libs=yes
21557 # ldd complains unless libraries are executable
21558 postinstall_cmds='chmod +x $lib'
21561 sunos4*)
21562 version_type=sunos
21563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21564 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21565 shlibpath_var=LD_LIBRARY_PATH
21566 shlibpath_overrides_runpath=yes
21567 if test "$with_gnu_ld" = yes; then
21568 need_lib_prefix=no
21570 need_version=yes
21573 sysv4 | sysv4.3*)
21574 version_type=linux
21575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21576 soname_spec='${libname}${release}${shared_ext}$major'
21577 shlibpath_var=LD_LIBRARY_PATH
21578 case $host_vendor in
21579 sni)
21580 shlibpath_overrides_runpath=no
21581 need_lib_prefix=no
21582 runpath_var=LD_RUN_PATH
21584 siemens)
21585 need_lib_prefix=no
21587 motorola)
21588 need_lib_prefix=no
21589 need_version=no
21590 shlibpath_overrides_runpath=no
21591 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21593 esac
21596 sysv4*MP*)
21597 if test -d /usr/nec ;then
21598 version_type=linux
21599 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21600 soname_spec='$libname${shared_ext}.$major'
21601 shlibpath_var=LD_LIBRARY_PATH
21605 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21606 version_type=freebsd-elf
21607 need_lib_prefix=no
21608 need_version=no
21609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21610 soname_spec='${libname}${release}${shared_ext}$major'
21611 shlibpath_var=LD_LIBRARY_PATH
21612 shlibpath_overrides_runpath=yes
21613 hardcode_into_libs=yes
21614 if test "$with_gnu_ld" = yes; then
21615 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21616 else
21617 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21618 case $host_os in
21619 sco3.2v5*)
21620 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21622 esac
21624 sys_lib_dlsearch_path_spec='/usr/lib'
21627 tpf*)
21628 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21629 version_type=linux
21630 need_lib_prefix=no
21631 need_version=no
21632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21633 shlibpath_var=LD_LIBRARY_PATH
21634 shlibpath_overrides_runpath=no
21635 hardcode_into_libs=yes
21638 uts4*)
21639 version_type=linux
21640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21641 soname_spec='${libname}${release}${shared_ext}$major'
21642 shlibpath_var=LD_LIBRARY_PATH
21646 dynamic_linker=no
21648 esac
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21650 $as_echo "$dynamic_linker" >&6; }
21651 test "$dynamic_linker" = no && can_build_shared=no
21653 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21654 if test "$GCC" = yes; then
21655 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21658 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21659 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21661 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21662 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21703 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21704 hardcode_action_CXX=
21705 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21706 test -n "$runpath_var_CXX" ||
21707 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21709 # We can hardcode non-existent directories.
21710 if test "$hardcode_direct_CXX" != no &&
21711 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21712 # have to relink, otherwise we might link with an installed library
21713 # when we should be linking with a yet-to-be-installed one
21714 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21715 test "$hardcode_minus_L_CXX" != no; then
21716 # Linking always hardcodes the temporary library directory.
21717 hardcode_action_CXX=relink
21718 else
21719 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21720 hardcode_action_CXX=immediate
21722 else
21723 # We cannot hardcode anything, or else we can only hardcode existing
21724 # directories.
21725 hardcode_action_CXX=unsupported
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21728 $as_echo "$hardcode_action_CXX" >&6; }
21730 if test "$hardcode_action_CXX" = relink ||
21731 test "$inherit_rpath_CXX" = yes; then
21732 # Fast installation is not supported
21733 enable_fast_install=no
21734 elif test "$shlibpath_overrides_runpath" = yes ||
21735 test "$enable_shared" = no; then
21736 # Fast installation is not necessary
21737 enable_fast_install=needless
21746 fi # test -n "$compiler"
21748 CC=$lt_save_CC
21749 LDCXX=$LD
21750 LD=$lt_save_LD
21751 GCC=$lt_save_GCC
21752 with_gnu_ld=$lt_save_with_gnu_ld
21753 lt_cv_path_LDCXX=$lt_cv_path_LD
21754 lt_cv_path_LD=$lt_save_path_LD
21755 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21756 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21757 fi # test "$_lt_caught_CXX_error" != yes
21759 ac_ext=cpp
21760 ac_cpp='$CXXCPP $CPPFLAGS'
21761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21780 # Only expand once:
21786 # Identify the assembler which will work hand-in-glove with the newly
21787 # built GCC, so that we can examine its features. This is the assembler
21788 # which will be driven by the driver program.
21790 # If build != host, and we aren't building gas in-tree, we identify a
21791 # build->target assembler and hope that it will have the same features
21792 # as the host->target assembler we'll be using.
21793 gcc_cv_gas_major_version=
21794 gcc_cv_gas_minor_version=
21795 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21797 if test "${gcc_cv_as+set}" = set; then :
21799 else
21801 if test -x "$DEFAULT_ASSEMBLER"; then
21802 gcc_cv_as="$DEFAULT_ASSEMBLER"
21803 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21804 && test -f ../gas/Makefile \
21805 && test x$build = x$host; then
21806 gcc_cv_as=../gas/as-new$build_exeext
21807 elif test -x as$build_exeext; then
21808 # Build using assembler in the current directory.
21809 gcc_cv_as=./as$build_exeext
21810 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21811 gcc_cv_as="$AS_FOR_TARGET"
21812 else
21813 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21814 set dummy $AS_FOR_TARGET; ac_word=$2
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21816 $as_echo_n "checking for $ac_word... " >&6; }
21817 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21818 $as_echo_n "(cached) " >&6
21819 else
21820 case $gcc_cv_as in
21821 [\\/]* | ?:[\\/]*)
21822 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21826 for as_dir in $PATH
21828 IFS=$as_save_IFS
21829 test -z "$as_dir" && as_dir=.
21830 for ac_exec_ext in '' $ac_executable_extensions; do
21831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21832 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21834 break 2
21836 done
21837 done
21838 IFS=$as_save_IFS
21841 esac
21843 gcc_cv_as=$ac_cv_path_gcc_cv_as
21844 if test -n "$gcc_cv_as"; then
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21846 $as_echo "$gcc_cv_as" >&6; }
21847 else
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849 $as_echo "no" >&6; }
21856 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21858 case "$ORIGINAL_AS_FOR_TARGET" in
21859 ./as | ./as$build_exeext) ;;
21860 *) ac_config_files="$ac_config_files as:exec-tool.in"
21862 esac
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21865 $as_echo_n "checking what assembler to use... " >&6; }
21866 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21867 # Single tree build which includes gas. We want to prefer it
21868 # over whatever linker top-level may have detected, since
21869 # we'll use what we're building after installation anyway.
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21871 $as_echo "newly built gas" >&6; }
21872 in_tree_gas=yes
21873 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21874 for f in $gcc_cv_as_bfd_srcdir/configure \
21875 $gcc_cv_as_gas_srcdir/configure \
21876 $gcc_cv_as_gas_srcdir/configure.ac \
21877 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21878 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21879 if test x$gcc_cv_gas_version != x; then
21880 break
21882 done
21883 case $gcc_cv_gas_version in
21884 VERSION=[0-9]*) ;;
21885 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21886 esac
21887 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21888 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21889 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21890 case $gcc_cv_gas_patch_version in
21891 "") gcc_cv_gas_patch_version="0" ;;
21892 esac
21893 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21894 + $gcc_cv_gas_minor_version \) \* 1000 \
21895 + $gcc_cv_gas_patch_version`
21897 in_tree_gas_is_elf=no
21898 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21899 || (grep 'obj_format = multi' ../gas/Makefile \
21900 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21901 then
21902 in_tree_gas_is_elf=yes
21904 else
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21906 $as_echo "$gcc_cv_as" >&6; }
21907 in_tree_gas=no
21910 default_ld=
21911 # Check whether --enable-ld was given.
21912 if test "${enable_ld+set}" = set; then :
21913 enableval=$enable_ld; case "${enableval}" in
21915 default_ld=ld.gold
21917 esac
21921 install_gold_as_default=no
21922 # Check whether --enable-gold was given.
21923 if test "${enable_gold+set}" = set; then :
21924 enableval=$enable_gold; case "${enableval}" in
21925 default)
21926 install_gold_as_default=yes
21928 yes)
21929 if test x${default_ld} != x; then
21930 install_gold_as_default=yes
21936 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21938 esac
21942 # Identify the linker which will work hand-in-glove with the newly
21943 # built GCC, so that we can examine its features. This is the linker
21944 # which will be driven by the driver program.
21946 # If build != host, and we aren't building gas in-tree, we identify a
21947 # build->target linker and hope that it will have the same features
21948 # as the host->target linker we'll be using.
21949 gcc_cv_gld_major_version=
21950 gcc_cv_gld_minor_version=
21951 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21952 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21953 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21955 if test "${gcc_cv_ld+set}" = set; then :
21957 else
21959 if test -x "$DEFAULT_LINKER"; then
21960 gcc_cv_ld="$DEFAULT_LINKER"
21961 elif test $install_gold_as_default = yes \
21962 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21963 && test -f ../gold/Makefile \
21964 && test x$build = x$host; then
21965 gcc_cv_ld=../gold/ld-new$build_exeext
21966 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21967 && test -f ../ld/Makefile \
21968 && test x$build = x$host; then
21969 gcc_cv_ld=../ld/ld-new$build_exeext
21970 elif test -x collect-ld$build_exeext; then
21971 # Build using linker in the current directory.
21972 gcc_cv_ld=./collect-ld$build_exeext
21973 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21974 gcc_cv_ld="$LD_FOR_TARGET"
21975 else
21976 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21977 set dummy $LD_FOR_TARGET; ac_word=$2
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21979 $as_echo_n "checking for $ac_word... " >&6; }
21980 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21981 $as_echo_n "(cached) " >&6
21982 else
21983 case $gcc_cv_ld in
21984 [\\/]* | ?:[\\/]*)
21985 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21989 for as_dir in $PATH
21991 IFS=$as_save_IFS
21992 test -z "$as_dir" && as_dir=.
21993 for ac_exec_ext in '' $ac_executable_extensions; do
21994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21995 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21997 break 2
21999 done
22000 done
22001 IFS=$as_save_IFS
22004 esac
22006 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22007 if test -n "$gcc_cv_ld"; then
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22009 $as_echo "$gcc_cv_ld" >&6; }
22010 else
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22012 $as_echo "no" >&6; }
22019 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22020 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22021 # if the PLUGIN_LD is set ld-new, just have it as ld
22022 # as that is the installed named.
22023 if test x$PLUGIN_LD_SUFFIX = xld-new \
22024 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22025 PLUGIN_LD_SUFFIX=ld
22028 # Check whether --with-plugin-ld was given.
22029 if test "${with_plugin_ld+set}" = set; then :
22030 withval=$with_plugin_ld; if test x"$withval" != x; then
22031 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22032 PLUGIN_LD_SUFFIX="$withval"
22038 cat >>confdefs.h <<_ACEOF
22039 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22040 _ACEOF
22043 # Check to see if we are using gold instead of ld
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22045 $as_echo_n "checking whether we are using gold... " >&6; }
22046 ld_is_gold=no
22047 if test x$gcc_cv_ld != x; then
22048 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22049 | grep "GNU gold" > /dev/null; then
22050 ld_is_gold=yes
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22054 $as_echo "$ld_is_gold" >&6; }
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22057 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22058 # Check to see if default ld is not gold, but gold is
22059 # available and has support for split stack. If gcc was configured
22060 # with gold then no checking is done.
22062 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22064 # For platforms other than powerpc64*, enable as appropriate.
22066 gold_non_default=no
22067 ld_gold=`which ${gcc_cv_ld}.gold`
22068 # Make sure this gold has minimal split stack support
22069 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22070 ld_vers=`$ld_gold --version | sed 1q`
22071 gold_vers=`echo $ld_vers | sed -n \
22072 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22073 case $target in
22074 # check that the gold version contains the complete split stack support
22075 # on powerpc64 big and little endian
22076 powerpc64*-*-*)
22077 case "$gold_vers" in
22078 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22080 *) gold_non_default=no
22082 esac
22084 esac
22086 if test $gold_non_default = yes; then
22088 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22093 $as_echo "$gold_non_default" >&6; }
22095 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22097 case "$ORIGINAL_LD_FOR_TARGET" in
22098 ./collect-ld | ./collect-ld$build_exeext) ;;
22099 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22101 esac
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22104 $as_echo_n "checking what linker to use... " >&6; }
22105 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22106 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22107 # Single tree build which includes ld. We want to prefer it
22108 # over whatever linker top-level may have detected, since
22109 # we'll use what we're building after installation anyway.
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22111 $as_echo "newly built ld" >&6; }
22112 in_tree_ld=yes
22113 in_tree_ld_is_elf=no
22114 if (grep 'EMUL = .*elf' ../ld/Makefile \
22115 || grep 'EMUL = .*linux' ../ld/Makefile \
22116 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22117 in_tree_ld_is_elf=yes
22118 elif test "$ld_is_gold" = yes; then
22119 in_tree_ld_is_elf=yes
22121 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
22123 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22124 if test x$gcc_cv_gld_version != x; then
22125 break
22127 done
22128 case $gcc_cv_gld_version in
22129 VERSION=[0-9]*) ;;
22130 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22131 esac
22132 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22133 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22134 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22135 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22136 else
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22138 $as_echo "$gcc_cv_ld" >&6; }
22139 in_tree_ld=no
22140 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22141 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22142 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22148 # Figure out what nm we will be using.
22149 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22150 if test "${gcc_cv_nm+set}" = set; then :
22152 else
22154 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22155 && test -f ../binutils/Makefile \
22156 && test x$build = x$host; then
22157 gcc_cv_nm=../binutils/nm-new$build_exeext
22158 elif test -x nm$build_exeext; then
22159 gcc_cv_nm=./nm$build_exeext
22160 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22161 gcc_cv_nm="$NM_FOR_TARGET"
22162 else
22163 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22164 set dummy $NM_FOR_TARGET; ac_word=$2
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22166 $as_echo_n "checking for $ac_word... " >&6; }
22167 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22168 $as_echo_n "(cached) " >&6
22169 else
22170 case $gcc_cv_nm in
22171 [\\/]* | ?:[\\/]*)
22172 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22176 for as_dir in $PATH
22178 IFS=$as_save_IFS
22179 test -z "$as_dir" && as_dir=.
22180 for ac_exec_ext in '' $ac_executable_extensions; do
22181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22182 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22184 break 2
22186 done
22187 done
22188 IFS=$as_save_IFS
22191 esac
22193 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22194 if test -n "$gcc_cv_nm"; then
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22196 $as_echo "$gcc_cv_nm" >&6; }
22197 else
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22199 $as_echo "no" >&6; }
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22207 $as_echo_n "checking what nm to use... " >&6; }
22208 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22209 # Single tree build which includes binutils.
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22211 $as_echo "newly built nm" >&6; }
22212 in_tree_nm=yes
22213 else
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22215 $as_echo "$gcc_cv_nm" >&6; }
22216 in_tree_nm=no
22219 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22221 case "$ORIGINAL_NM_FOR_TARGET" in
22222 ./nm | ./nm$build_exeext) ;;
22223 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22225 esac
22228 # Figure out what objdump we will be using.
22229 if test "${gcc_cv_objdump+set}" = set; then :
22231 else
22233 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22234 && test -f ../binutils/Makefile \
22235 && test x$build = x$host; then
22236 # Single tree build which includes binutils.
22237 gcc_cv_objdump=../binutils/objdump$build_exeext
22238 elif test -x objdump$build_exeext; then
22239 gcc_cv_objdump=./objdump$build_exeext
22240 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22241 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22242 else
22243 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22244 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22246 $as_echo_n "checking for $ac_word... " >&6; }
22247 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22248 $as_echo_n "(cached) " >&6
22249 else
22250 case $gcc_cv_objdump in
22251 [\\/]* | ?:[\\/]*)
22252 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22256 for as_dir in $PATH
22258 IFS=$as_save_IFS
22259 test -z "$as_dir" && as_dir=.
22260 for ac_exec_ext in '' $ac_executable_extensions; do
22261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22262 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22264 break 2
22266 done
22267 done
22268 IFS=$as_save_IFS
22271 esac
22273 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22274 if test -n "$gcc_cv_objdump"; then
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22276 $as_echo "$gcc_cv_objdump" >&6; }
22277 else
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22279 $as_echo "no" >&6; }
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22287 $as_echo_n "checking what objdump to use... " >&6; }
22288 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22289 # Single tree build which includes binutils.
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22291 $as_echo "newly built objdump" >&6; }
22292 elif test x$gcc_cv_objdump = x; then
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22294 $as_echo "not found" >&6; }
22295 else
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22297 $as_echo "$gcc_cv_objdump" >&6; }
22300 # Figure out what readelf we will be using.
22301 if test "${gcc_cv_readelf+set}" = set; then :
22303 else
22305 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22306 && test -f ../binutils/Makefile \
22307 && test x$build = x$host; then
22308 # Single tree build which includes binutils.
22309 gcc_cv_readelf=../binutils/readelf$build_exeext
22310 elif test -x readelf$build_exeext; then
22311 gcc_cv_readelf=./readelf$build_exeext
22312 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22313 gcc_cv_readelf="$READELF_FOR_TARGET"
22314 else
22315 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22316 set dummy $READELF_FOR_TARGET; ac_word=$2
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22318 $as_echo_n "checking for $ac_word... " >&6; }
22319 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22320 $as_echo_n "(cached) " >&6
22321 else
22322 case $gcc_cv_readelf in
22323 [\\/]* | ?:[\\/]*)
22324 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22328 for as_dir in $PATH
22330 IFS=$as_save_IFS
22331 test -z "$as_dir" && as_dir=.
22332 for ac_exec_ext in '' $ac_executable_extensions; do
22333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22334 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22336 break 2
22338 done
22339 done
22340 IFS=$as_save_IFS
22343 esac
22345 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22346 if test -n "$gcc_cv_readelf"; then
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22348 $as_echo "$gcc_cv_readelf" >&6; }
22349 else
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351 $as_echo "no" >&6; }
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22359 $as_echo_n "checking what readelf to use... " >&6; }
22360 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22361 # Single tree build which includes binutils.
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22363 $as_echo "newly built readelf" >&6; }
22364 elif test x$gcc_cv_readelf = x; then
22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22366 $as_echo "not found" >&6; }
22367 else
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22369 $as_echo "$gcc_cv_readelf" >&6; }
22372 # Figure out what assembler alignment features are present.
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22374 $as_echo_n "checking assembler flags... " >&6; }
22375 if test "${gcc_cv_as_flags+set}" = set; then :
22376 $as_echo_n "(cached) " >&6
22377 else
22378 case "$target" in
22379 i[34567]86-*-linux*)
22380 gcc_cv_as_flags=--32
22382 x86_64-*-linux-gnux32)
22383 gcc_cv_as_flags=--x32
22385 x86_64-*-linux*)
22386 gcc_cv_as_flags=--64
22388 powerpc*-*-darwin*)
22389 gcc_cv_as_flags="-arch ppc"
22392 gcc_cv_as_flags=" "
22394 esac
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22397 $as_echo "$gcc_cv_as_flags" >&6; }
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22400 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22401 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22402 $as_echo_n "(cached) " >&6
22403 else
22404 gcc_cv_as_balign_and_p2align=no
22405 if test $in_tree_gas = yes; then
22406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22407 then gcc_cv_as_balign_and_p2align=yes
22409 elif test x$gcc_cv_as != x; then
22410 $as_echo '.balign 4
22411 .p2align 2' > conftest.s
22412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22414 (eval $ac_try) 2>&5
22415 ac_status=$?
22416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22417 test $ac_status = 0; }; }
22418 then
22419 gcc_cv_as_balign_and_p2align=yes
22420 else
22421 echo "configure: failed program was" >&5
22422 cat conftest.s >&5
22424 rm -f conftest.o conftest.s
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22428 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22429 if test $gcc_cv_as_balign_and_p2align = yes; then
22431 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22436 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22437 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22439 else
22440 gcc_cv_as_max_skip_p2align=no
22441 if test $in_tree_gas = yes; then
22442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22443 then gcc_cv_as_max_skip_p2align=yes
22445 elif test x$gcc_cv_as != x; then
22446 $as_echo '.p2align 4,,7' > conftest.s
22447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22449 (eval $ac_try) 2>&5
22450 ac_status=$?
22451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22452 test $ac_status = 0; }; }
22453 then
22454 gcc_cv_as_max_skip_p2align=yes
22455 else
22456 echo "configure: failed program was" >&5
22457 cat conftest.s >&5
22459 rm -f conftest.o conftest.s
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22463 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22464 if test $gcc_cv_as_max_skip_p2align = yes; then
22466 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22471 $as_echo_n "checking assembler for .literal16... " >&6; }
22472 if test "${gcc_cv_as_literal16+set}" = set; then :
22473 $as_echo_n "(cached) " >&6
22474 else
22475 gcc_cv_as_literal16=no
22476 if test $in_tree_gas = yes; then
22477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22478 then gcc_cv_as_literal16=yes
22480 elif test x$gcc_cv_as != x; then
22481 $as_echo '.literal16' > conftest.s
22482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22484 (eval $ac_try) 2>&5
22485 ac_status=$?
22486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22487 test $ac_status = 0; }; }
22488 then
22489 gcc_cv_as_literal16=yes
22490 else
22491 echo "configure: failed program was" >&5
22492 cat conftest.s >&5
22494 rm -f conftest.o conftest.s
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22498 $as_echo "$gcc_cv_as_literal16" >&6; }
22499 if test $gcc_cv_as_literal16 = yes; then
22501 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22506 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22507 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22508 $as_echo_n "(cached) " >&6
22509 else
22510 gcc_cv_as_subsection_m1=no
22511 if test $in_tree_gas = yes; then
22512 if test $in_tree_gas_is_elf = yes \
22513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22514 then gcc_cv_as_subsection_m1=yes
22516 elif test x$gcc_cv_as != x; then
22517 $as_echo 'conftest_label1: .word 0
22518 .subsection -1
22519 conftest_label2: .word 0
22520 .previous' > conftest.s
22521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22523 (eval $ac_try) 2>&5
22524 ac_status=$?
22525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22526 test $ac_status = 0; }; }
22527 then
22528 if test x$gcc_cv_nm != x; then
22529 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22530 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22531 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22532 then :
22533 else gcc_cv_as_subsection_m1=yes
22535 rm -f conftest.nm1 conftest.nm2
22537 else
22538 echo "configure: failed program was" >&5
22539 cat conftest.s >&5
22541 rm -f conftest.o conftest.s
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22545 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22546 if test $gcc_cv_as_subsection_m1 = yes; then
22548 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22553 $as_echo_n "checking assembler for .weak... " >&6; }
22554 if test "${gcc_cv_as_weak+set}" = set; then :
22555 $as_echo_n "(cached) " >&6
22556 else
22557 gcc_cv_as_weak=no
22558 if test $in_tree_gas = yes; then
22559 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22560 then gcc_cv_as_weak=yes
22562 elif test x$gcc_cv_as != x; then
22563 $as_echo ' .weak foobar' > conftest.s
22564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22566 (eval $ac_try) 2>&5
22567 ac_status=$?
22568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22569 test $ac_status = 0; }; }
22570 then
22571 gcc_cv_as_weak=yes
22572 else
22573 echo "configure: failed program was" >&5
22574 cat conftest.s >&5
22576 rm -f conftest.o conftest.s
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22580 $as_echo "$gcc_cv_as_weak" >&6; }
22581 if test $gcc_cv_as_weak = yes; then
22583 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22588 $as_echo_n "checking assembler for .weakref... " >&6; }
22589 if test "${gcc_cv_as_weakref+set}" = set; then :
22590 $as_echo_n "(cached) " >&6
22591 else
22592 gcc_cv_as_weakref=no
22593 if test $in_tree_gas = yes; then
22594 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22595 then gcc_cv_as_weakref=yes
22597 elif test x$gcc_cv_as != x; then
22598 $as_echo ' .weakref foobar, barfnot' > conftest.s
22599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22601 (eval $ac_try) 2>&5
22602 ac_status=$?
22603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22604 test $ac_status = 0; }; }
22605 then
22606 gcc_cv_as_weakref=yes
22607 else
22608 echo "configure: failed program was" >&5
22609 cat conftest.s >&5
22611 rm -f conftest.o conftest.s
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22615 $as_echo "$gcc_cv_as_weakref" >&6; }
22616 if test $gcc_cv_as_weakref = yes; then
22618 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22623 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22624 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22625 $as_echo_n "(cached) " >&6
22626 else
22627 gcc_cv_as_nsubspa_comdat=no
22628 if test $in_tree_gas = yes; then
22629 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22630 then gcc_cv_as_nsubspa_comdat=yes
22632 elif test x$gcc_cv_as != x; then
22633 $as_echo ' .SPACE $TEXT$
22634 .NSUBSPA $CODE$,COMDAT' > conftest.s
22635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22640 test $ac_status = 0; }; }
22641 then
22642 gcc_cv_as_nsubspa_comdat=yes
22643 else
22644 echo "configure: failed program was" >&5
22645 cat conftest.s >&5
22647 rm -f conftest.o conftest.s
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22651 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22652 if test $gcc_cv_as_nsubspa_comdat = yes; then
22654 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22658 # .hidden needs to be supported in both the assembler and the linker,
22659 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22660 # This is irritatingly difficult to feature test for; we have to check the
22661 # date string after the version number. If we've got an in-tree
22662 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22663 # to be safe.
22664 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22666 $as_echo_n "checking assembler for .hidden... " >&6; }
22667 if test "${gcc_cv_as_hidden+set}" = set; then :
22668 $as_echo_n "(cached) " >&6
22669 else
22670 gcc_cv_as_hidden=no
22671 if test $in_tree_gas = yes; then
22672 if test $in_tree_gas_is_elf = yes \
22673 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22674 then gcc_cv_as_hidden=yes
22676 elif test x$gcc_cv_as != x; then
22677 $as_echo ' .hidden foobar
22678 foobar:' > conftest.s
22679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22681 (eval $ac_try) 2>&5
22682 ac_status=$?
22683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22684 test $ac_status = 0; }; }
22685 then
22686 gcc_cv_as_hidden=yes
22687 else
22688 echo "configure: failed program was" >&5
22689 cat conftest.s >&5
22691 rm -f conftest.o conftest.s
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22695 $as_echo "$gcc_cv_as_hidden" >&6; }
22697 case "${target}" in
22698 *-*-darwin*)
22699 # Darwin as has some visibility support, though with a different syntax.
22700 gcc_cv_as_hidden=yes
22702 esac
22704 # gnu_indirect_function type is an extension proposed at
22705 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22706 # selection of function implementation
22707 # Check whether --enable-gnu-indirect-function was given.
22708 if test "${enable_gnu_indirect_function+set}" = set; then :
22709 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22710 yes | no) ;;
22711 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22712 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22713 esac
22714 else
22715 enable_gnu_indirect_function="$default_gnu_indirect_function"
22719 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22721 cat >>confdefs.h <<_ACEOF
22722 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22723 _ACEOF
22727 if test $in_tree_ld != yes ; then
22728 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22729 if echo "$ld_ver" | grep GNU > /dev/null; then
22730 if test x"$ld_is_gold" = xyes; then
22731 # GNU gold --version looks like this:
22733 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22735 # We extract the binutils version which is more familiar and specific
22736 # than the gold version.
22737 ld_vers=`echo $ld_ver | sed -n \
22738 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22739 else
22740 # GNU ld --version looks like this:
22742 # GNU ld (GNU Binutils) 2.21.51.20110225
22743 ld_vers=`echo $ld_ver | sed -n \
22744 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22746 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'`
22747 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22748 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22749 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22750 else
22751 case "${target}" in
22752 *-*-solaris2*)
22753 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22754 # format.
22756 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22757 # /usr/ccs/bin/ld has been configured.
22758 ld_ver=`$gcc_cv_ld -V 2>&1`
22759 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22760 ld_vers=`echo $ld_ver | sed -n \
22761 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22762 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22763 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22766 esac
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22771 $as_echo_n "checking linker for .hidden support... " >&6; }
22772 if test "${gcc_cv_ld_hidden+set}" = set; then :
22773 $as_echo_n "(cached) " >&6
22774 else
22775 if test $in_tree_ld = yes ; then
22776 gcc_cv_ld_hidden=no
22777 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 \
22778 && test $in_tree_ld_is_elf = yes; then
22779 gcc_cv_ld_hidden=yes
22781 else
22782 gcc_cv_ld_hidden=yes
22783 if test x"$ld_is_gold" = xyes; then
22785 elif echo "$ld_ver" | grep GNU > /dev/null; then
22786 case "${target}" in
22787 mmix-knuth-mmixware)
22788 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22789 gcc_cv_ld_hidden=no
22791 esac
22792 if test 0"$ld_date" -lt 20020404; then
22793 if test -n "$ld_date"; then
22794 # If there was date string, but was earlier than 2002-04-04, fail
22795 gcc_cv_ld_hidden=no
22796 elif test -z "$ld_vers"; then
22797 # If there was no date string nor ld version number, something is wrong
22798 gcc_cv_ld_hidden=no
22799 else
22800 test -z "$ld_vers_patch" && ld_vers_patch=0
22801 if test "$ld_vers_major" -lt 2; then
22802 gcc_cv_ld_hidden=no
22803 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22804 gcc_cv_ld_hidden="no"
22805 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22806 gcc_cv_ld_hidden=no
22810 else
22811 case "${target}" in
22812 *-*-darwin*)
22813 # Darwin ld has some visibility support.
22814 gcc_cv_ld_hidden=yes
22816 hppa64*-*-hpux* | ia64*-*-hpux*)
22817 gcc_cv_ld_hidden=yes
22819 *-*-solaris2.1[0-9]*)
22820 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22821 # .symbolic was only added in Solaris 9 12/02.
22822 gcc_cv_ld_hidden=yes
22825 gcc_cv_ld_hidden=no
22827 esac
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22832 $as_echo "$gcc_cv_ld_hidden" >&6; }
22833 libgcc_visibility=no
22836 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22837 libgcc_visibility=yes
22839 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22844 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22845 gcc_cv_ld_ro_rw_mix=unknown
22846 if test $in_tree_ld = yes ; then
22847 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 \
22848 && test $in_tree_ld_is_elf = yes; then
22849 gcc_cv_ld_ro_rw_mix=read-write
22851 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22852 echo '.section myfoosect, "a"' > conftest1.s
22853 echo '.section myfoosect, "aw"' > conftest2.s
22854 echo '.byte 1' >> conftest2.s
22855 echo '.section myfoosect, "a"' > conftest3.s
22856 echo '.byte 0' >> conftest3.s
22857 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22858 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22859 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22860 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22861 conftest2.o conftest3.o > /dev/null 2>&1; then
22862 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22863 | sed -e '/myfoosect/!d' -e N`
22864 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22865 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22866 gcc_cv_ld_ro_rw_mix=read-only
22867 else
22868 gcc_cv_ld_ro_rw_mix=read-write
22872 rm -f conftest.* conftest[123].*
22874 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22876 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22880 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22882 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22883 case "${target}" in
22884 *-*-solaris2*)
22886 # Solaris 2 ld -V output looks like this for a regular version:
22888 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22890 # but test versions add stuff at the end:
22892 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22894 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22895 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22896 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22897 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22898 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22899 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22902 esac
22905 # Check whether --enable-initfini-array was given.
22906 if test "${enable_initfini_array+set}" = set; then :
22907 enableval=$enable_initfini_array;
22908 else
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22911 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22912 if test "${gcc_cv_initfini_array+set}" = set; then :
22913 $as_echo_n "(cached) " >&6
22914 else
22915 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22916 case "${target}" in
22917 ia64-*)
22918 if test "$cross_compiling" = yes; then :
22919 gcc_cv_initfini_array=no
22920 else
22921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22922 /* end confdefs.h. */
22924 #ifndef __ELF__
22925 #error Not an ELF OS
22926 #endif
22927 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22928 if it can be used. */
22929 static int x = -1;
22930 int main (void) { return x; }
22931 int foo (void) { x = 0; }
22932 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22934 _ACEOF
22935 if ac_fn_cxx_try_run "$LINENO"; then :
22936 gcc_cv_initfini_array=yes
22937 else
22938 gcc_cv_initfini_array=no
22940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22941 conftest.$ac_objext conftest.beam conftest.$ac_ext
22945 gcc_cv_initfini_array=no
22946 if test $in_tree_ld = yes ; then
22947 if test "$gcc_cv_gld_major_version" -eq 2 \
22948 -a "$gcc_cv_gld_minor_version" -ge 22 \
22949 -o "$gcc_cv_gld_major_version" -gt 2 \
22950 && test $in_tree_ld_is_elf = yes; then
22951 gcc_cv_initfini_array=yes
22953 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22954 case $target:$gas in
22955 *:yes)
22956 sh_flags='"a"'
22957 sh_type='%progbits'
22959 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22960 sh_flags='"a"'
22961 sh_type='@progbits'
22963 sparc*-*-solaris2*:no)
22964 sh_flags='#alloc'
22965 sh_type='#progbits'
22966 sh_quote='"'
22968 esac
22969 case "$target:$gnu_ld" in
22970 *:yes)
22971 cat > conftest.s <<EOF
22972 .section .dtors,$sh_flags,$sh_type
22973 .balign 4
22974 .byte 'A', 'A', 'A', 'A'
22975 .section .ctors,$sh_flags,$sh_type
22976 .balign 4
22977 .byte 'B', 'B', 'B', 'B'
22978 .section .fini_array.65530,$sh_flags,$sh_type
22979 .balign 4
22980 .byte 'C', 'C', 'C', 'C'
22981 .section .init_array.65530,$sh_flags,$sh_type
22982 .balign 4
22983 .byte 'D', 'D', 'D', 'D'
22984 .section .dtors.64528,$sh_flags,$sh_type
22985 .balign 4
22986 .byte 'E', 'E', 'E', 'E'
22987 .section .ctors.64528,$sh_flags,$sh_type
22988 .balign 4
22989 .byte 'F', 'F', 'F', 'F'
22990 .section .fini_array.01005,$sh_flags,$sh_type
22991 .balign 4
22992 .byte 'G', 'G', 'G', 'G'
22993 .section .init_array.01005,$sh_flags,$sh_type
22994 .balign 4
22995 .byte 'H', 'H', 'H', 'H'
22996 .text
22997 .globl _start
22998 _start:
23000 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23001 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23002 && $gcc_cv_objdump -s -j .init_array conftest \
23003 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23004 && $gcc_cv_objdump -s -j .fini_array conftest \
23005 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23006 gcc_cv_initfini_array=yes
23009 *-*-solaris2*:no)
23010 # When Solaris ld added constructor priority support, it was
23011 # decided to only handle .init_array.N/.fini_array.N since
23012 # there was no need for backwards compatibility with
23013 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23014 # sections with correct execution order resp. to
23015 # .init_array/.fini_array, while gld merges them into
23016 # .init_array/.fini_array.
23017 cat > conftest.s <<EOF
23018 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23019 .align 4
23020 .byte 'C', 'C', 'C', 'C'
23021 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23022 .align 4
23023 .byte 'D', 'D', 'D', 'D'
23024 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23025 .align 4
23026 .byte 'G', 'G', 'G', 'G'
23027 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23028 .align 4
23029 .byte 'H', 'H', 'H', 'H'
23030 .text
23031 .globl _start
23032 _start:
23034 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23035 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23036 && $gcc_cv_objdump -s -j .init_array conftest \
23037 | grep HHHHDDDD > /dev/null 2>&1 \
23038 && $gcc_cv_objdump -s -j .fini_array conftest \
23039 | grep GGGGCCCC > /dev/null 2>&1; then
23040 gcc_cv_initfini_array=yes
23043 esac
23044 rm -f conftest conftest.*
23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047 /* end confdefs.h. */
23049 #ifndef __ELF__
23050 # error Not an ELF OS
23051 #endif
23052 #include <stdlib.h>
23053 #if defined __GLIBC_PREREQ
23054 # if __GLIBC_PREREQ (2, 4)
23055 # else
23056 # error GLIBC 2.4 required
23057 # endif
23058 #else
23059 # if defined __sun__ && defined __svr4__
23060 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23061 # else
23062 # error The C library not known to support .init_array/.fini_array
23063 # endif
23064 #endif
23066 _ACEOF
23067 if ac_fn_cxx_try_cpp "$LINENO"; then :
23069 else
23070 gcc_cv_initfini_array=no
23072 rm -f conftest.err conftest.$ac_ext;;
23073 esac
23074 else
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23076 $as_echo_n "checking cross compile... guessing... " >&6; }
23077 gcc_cv_initfini_array=no
23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23081 $as_echo "$gcc_cv_initfini_array" >&6; }
23082 enable_initfini_array=$gcc_cv_initfini_array
23087 cat >>confdefs.h <<_ACEOF
23088 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23089 _ACEOF
23093 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23095 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23096 if test "${gcc_cv_as_leb128+set}" = set; then :
23097 $as_echo_n "(cached) " >&6
23098 else
23099 gcc_cv_as_leb128=no
23100 if test $in_tree_gas = yes; then
23101 if test $in_tree_gas_is_elf = yes \
23102 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23103 then gcc_cv_as_leb128=yes
23105 elif test x$gcc_cv_as != x; then
23106 $as_echo ' .data
23107 .uleb128 L2 - L1
23109 .uleb128 1280
23110 .sleb128 -1010
23111 L2:' > 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 # GAS versions before 2.11 do not support uleb128,
23120 # despite appearing to.
23121 # ??? There exists an elf-specific test that will crash
23122 # the assembler. Perhaps it's better to figure out whether
23123 # arbitrary sections are supported and try the test.
23124 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23125 if echo "$as_ver" | grep GNU > /dev/null; then
23126 as_vers=`echo $as_ver | sed -n \
23127 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23128 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23129 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23130 if test $as_major -eq 2 && test $as_minor -lt 11
23131 then :
23132 else gcc_cv_as_leb128=yes
23135 else
23136 echo "configure: failed program was" >&5
23137 cat conftest.s >&5
23139 rm -f conftest.o conftest.s
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23143 $as_echo "$gcc_cv_as_leb128" >&6; }
23144 if test $gcc_cv_as_leb128 = yes; then
23146 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23150 # Check if we have assembler support for unwind directives.
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23152 $as_echo_n "checking assembler for cfi directives... " >&6; }
23153 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23154 $as_echo_n "(cached) " >&6
23155 else
23156 gcc_cv_as_cfi_directive=no
23157 if test x$gcc_cv_as != x; then
23158 $as_echo ' .text
23159 .cfi_startproc
23160 .cfi_offset 0, 0
23161 .cfi_same_value 1
23162 .cfi_def_cfa 1, 2
23163 .cfi_escape 1, 2, 3, 4, 5
23164 .cfi_endproc' > conftest.s
23165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23170 test $ac_status = 0; }; }
23171 then
23172 case "$target" in
23173 *-*-solaris*)
23174 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23175 # read-only and read-write sections, we need to make sure that the
23176 # assembler used emits read-write .eh_frame sections.
23177 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23178 if test "x$gcc_cv_objdump" != x; then
23179 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23180 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23181 gcc_cv_as_cfi_directive=no
23182 else
23183 case "$target" in
23184 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23185 # On Solaris/x86, make sure that GCC and assembler agree on using
23186 # read-only .eh_frame sections for 64-bit.
23187 if test x$gas = xyes; then
23188 as_ix86_64_opt="--64"
23189 else
23190 as_ix86_64_opt="-xarch=amd64"
23192 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23193 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23194 sed -e /.eh_frame/!d -e N | \
23195 grep READONLY > /dev/null; then
23196 gcc_cv_as_cfi_directive=yes
23197 else
23198 gcc_cv_as_cfi_directive=no
23202 gcc_cv_as_cfi_directive=yes
23204 esac
23206 else
23207 # no objdump, err on the side of caution
23208 gcc_cv_as_cfi_directive=no
23210 else
23211 gcc_cv_as_cfi_directive=yes
23214 *-*-*)
23215 gcc_cv_as_cfi_directive=yes
23217 esac
23218 else
23219 echo "configure: failed program was" >&5
23220 cat conftest.s >&5
23222 rm -f conftest.o conftest.s
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23226 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23228 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23230 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23231 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23232 $as_echo_n "(cached) " >&6
23233 else
23234 gcc_cv_as_cfi_advance_working=no
23235 if test x$gcc_cv_as != x; then
23236 $as_echo ' .text
23237 .cfi_startproc
23238 .cfi_adjust_cfa_offset 64
23239 .skip 75040, 0
23240 .cfi_adjust_cfa_offset 128
23241 .cfi_endproc' > conftest.s
23242 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23247 test $ac_status = 0; }; }
23248 then
23250 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23251 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23252 gcc_cv_as_cfi_advance_working=yes
23255 else
23256 echo "configure: failed program was" >&5
23257 cat conftest.s >&5
23259 rm -f conftest.o conftest.s
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23263 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23265 else
23266 # no objdump, err on the side of caution
23267 gcc_cv_as_cfi_advance_working=no
23271 cat >>confdefs.h <<_ACEOF
23272 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23273 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23274 _ACEOF
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23279 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23280 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23281 $as_echo_n "(cached) " >&6
23282 else
23283 gcc_cv_as_cfi_personality_directive=no
23284 if test x$gcc_cv_as != x; then
23285 $as_echo ' .text
23286 .cfi_startproc
23287 .cfi_personality 0, symbol
23288 .cfi_endproc' > conftest.s
23289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23291 (eval $ac_try) 2>&5
23292 ac_status=$?
23293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23294 test $ac_status = 0; }; }
23295 then
23296 gcc_cv_as_cfi_personality_directive=yes
23297 else
23298 echo "configure: failed program was" >&5
23299 cat conftest.s >&5
23301 rm -f conftest.o conftest.s
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23305 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23308 cat >>confdefs.h <<_ACEOF
23309 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23310 then echo 1; else echo 0; fi`
23311 _ACEOF
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23315 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23316 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23319 gcc_cv_as_cfi_sections_directive=no
23320 if test x$gcc_cv_as != x; then
23321 $as_echo ' .text
23322 .cfi_sections .debug_frame, .eh_frame
23323 .cfi_startproc
23324 .cfi_endproc' > conftest.s
23325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23327 (eval $ac_try) 2>&5
23328 ac_status=$?
23329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23330 test $ac_status = 0; }; }
23331 then
23332 case $target_os in
23333 win32 | pe | cygwin* | mingw32*)
23334 # Need to check that we generated the correct relocation for the
23335 # .debug_frame section. This was fixed for binutils 2.21.
23336 gcc_cv_as_cfi_sections_directive=no
23337 if test "x$gcc_cv_objdump" != x; then
23338 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23339 grep secrel > /dev/null; then
23340 gcc_cv_as_cfi_sections_directive=yes
23345 gcc_cv_as_cfi_sections_directive=yes
23347 esac
23348 else
23349 echo "configure: failed program was" >&5
23350 cat conftest.s >&5
23352 rm -f conftest.o conftest.s
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23356 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23360 cat >>confdefs.h <<_ACEOF
23361 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23362 then echo 1; else echo 0; fi`
23363 _ACEOF
23366 # GAS versions up to and including 2.11.0 may mis-optimize
23367 # .eh_frame data.
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23369 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23370 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23371 $as_echo_n "(cached) " >&6
23372 else
23373 gcc_cv_as_eh_frame=no
23374 if test $in_tree_gas = yes; then
23375 if test $in_tree_gas_is_elf = yes \
23376 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23377 then gcc_cv_as_eh_frame=yes
23379 elif test x$gcc_cv_as != x; then
23380 $as_echo ' .text
23381 .LFB1:
23382 .4byte 0
23383 .L1:
23384 .4byte 0
23385 .LFE1:
23386 .section .eh_frame,"aw",@progbits
23387 __FRAME_BEGIN__:
23388 .4byte .LECIE1-.LSCIE1
23389 .LSCIE1:
23390 .4byte 0x0
23391 .byte 0x1
23392 .ascii "z\0"
23393 .byte 0x1
23394 .byte 0x78
23395 .byte 0x1a
23396 .byte 0x0
23397 .byte 0x4
23398 .4byte 1
23399 .p2align 1
23400 .LECIE1:
23401 .LSFDE1:
23402 .4byte .LEFDE1-.LASFDE1
23403 .LASFDE1:
23404 .4byte .LASFDE1-__FRAME_BEGIN__
23405 .4byte .LFB1
23406 .4byte .LFE1-.LFB1
23407 .byte 0x4
23408 .4byte .LFE1-.LFB1
23409 .byte 0x4
23410 .4byte .L1-.LFB1
23411 .LEFDE1:' > conftest.s
23412 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23417 test $ac_status = 0; }; }
23418 then
23419 cat > conftest.lit <<EOF
23420 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23421 0010 01000000 12000000 18000000 00000000 ................
23422 0020 08000000 04080000 0044 .........D
23424 cat > conftest.big <<EOF
23425 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23426 0010 00000001 00000012 00000018 00000000 ................
23427 0020 00000008 04000000 0844 .........D
23429 # If the assembler didn't choke, and we can objdump,
23430 # and we got the correct data, then succeed.
23431 # The text in the here-document typically retains its unix-style line
23432 # endings, while the output of objdump will use host line endings.
23433 # Therefore, use diff -b for the comparisons.
23434 if test x$gcc_cv_objdump != x \
23435 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23436 | tail -3 > conftest.got \
23437 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23438 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23439 then
23440 gcc_cv_as_eh_frame=yes
23441 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23443 (eval $ac_try) 2>&5
23444 ac_status=$?
23445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23446 test $ac_status = 0; }; }; then
23447 gcc_cv_as_eh_frame=buggy
23448 else
23449 # Uh oh, what do we do now?
23450 gcc_cv_as_eh_frame=no
23452 else
23453 echo "configure: failed program was" >&5
23454 cat conftest.s >&5
23456 rm -f conftest.o conftest.s
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23460 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23463 if test $gcc_cv_as_eh_frame = buggy; then
23465 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23470 $as_echo_n "checking assembler for section merging support... " >&6; }
23471 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23472 $as_echo_n "(cached) " >&6
23473 else
23474 gcc_cv_as_shf_merge=no
23475 if test $in_tree_gas = yes; then
23476 if test $in_tree_gas_is_elf = yes \
23477 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23478 then gcc_cv_as_shf_merge=yes
23480 elif test x$gcc_cv_as != x; then
23481 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23487 test $ac_status = 0; }; }
23488 then
23489 gcc_cv_as_shf_merge=yes
23490 else
23491 echo "configure: failed program was" >&5
23492 cat conftest.s >&5
23494 rm -f conftest.o conftest.s
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23498 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23500 if test $gcc_cv_as_shf_merge = no; then
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23502 $as_echo_n "checking assembler for section merging support... " >&6; }
23503 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23504 $as_echo_n "(cached) " >&6
23505 else
23506 gcc_cv_as_shf_merge=no
23507 if test $in_tree_gas = yes; then
23508 if test $in_tree_gas_is_elf = yes \
23509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23510 then gcc_cv_as_shf_merge=yes
23512 elif test x$gcc_cv_as != x; then
23513 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23519 test $ac_status = 0; }; }
23520 then
23521 gcc_cv_as_shf_merge=yes
23522 else
23523 echo "configure: failed program was" >&5
23524 cat conftest.s >&5
23526 rm -f conftest.o conftest.s
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23530 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23534 cat >>confdefs.h <<_ACEOF
23535 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23536 _ACEOF
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23540 $as_echo_n "checking assembler for stabs directive... " >&6; }
23541 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23542 $as_echo_n "(cached) " >&6
23543 else
23544 gcc_cv_as_stabs_directive=no
23545 if test x$gcc_cv_as != x; then
23546 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; }
23553 then
23554 gcc_cv_as_stabs_directive=yes
23555 else
23556 echo "configure: failed program was" >&5
23557 cat conftest.s >&5
23559 rm -f conftest.o conftest.s
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23563 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23564 if test $gcc_cv_as_stabs_directive = yes; then
23566 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23571 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23572 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23573 $as_echo_n "(cached) " >&6
23574 else
23575 gcc_cv_as_comdat_group=no
23576 if test $in_tree_gas = yes; then
23577 if test $in_tree_gas_is_elf = yes \
23578 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23579 then gcc_cv_as_comdat_group=yes
23581 elif test x$gcc_cv_as != x; then
23582 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23585 (eval $ac_try) 2>&5
23586 ac_status=$?
23587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23588 test $ac_status = 0; }; }
23589 then
23590 gcc_cv_as_comdat_group=yes
23591 else
23592 echo "configure: failed program was" >&5
23593 cat conftest.s >&5
23595 rm -f conftest.o conftest.s
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23599 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23601 if test $gcc_cv_as_comdat_group = yes; then
23602 gcc_cv_as_comdat_group_percent=no
23603 gcc_cv_as_comdat_group_group=no
23604 else
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23606 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23607 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23608 $as_echo_n "(cached) " >&6
23609 else
23610 gcc_cv_as_comdat_group_percent=no
23611 if test $in_tree_gas = yes; then
23612 if test $in_tree_gas_is_elf = yes \
23613 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23614 then gcc_cv_as_comdat_group_percent=yes
23616 elif test x$gcc_cv_as != x; then
23617 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23620 (eval $ac_try) 2>&5
23621 ac_status=$?
23622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23623 test $ac_status = 0; }; }
23624 then
23625 gcc_cv_as_comdat_group_percent=yes
23626 else
23627 echo "configure: failed program was" >&5
23628 cat conftest.s >&5
23630 rm -f conftest.o conftest.s
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23634 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23636 if test $gcc_cv_as_comdat_group_percent = yes; then
23637 gcc_cv_as_comdat_group_group=no
23638 else
23639 case "${target}" in
23640 # Sun as uses a completely different syntax.
23641 *-*-solaris2*)
23642 case "${target}" in
23643 sparc*-*-solaris2*)
23644 conftest_s='
23645 .group foo,".text%foo",#comdat
23646 .section ".text%foo", #alloc,#execinstr,#progbits
23647 .globl foo
23648 foo:
23651 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23652 conftest_s='
23653 .group foo,.text%foo,#comdat
23654 .section .text%foo, "ax", @progbits
23655 .globl foo
23656 foo:
23659 esac
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23661 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23662 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23663 $as_echo_n "(cached) " >&6
23664 else
23665 gcc_cv_as_comdat_group_group=no
23666 if test x$gcc_cv_as != x; then
23667 $as_echo "$conftest_s" > conftest.s
23668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23670 (eval $ac_try) 2>&5
23671 ac_status=$?
23672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23673 test $ac_status = 0; }; }
23674 then
23675 gcc_cv_as_comdat_group_group=yes
23676 else
23677 echo "configure: failed program was" >&5
23678 cat conftest.s >&5
23680 rm -f conftest.o conftest.s
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23684 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23687 esac
23688 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23689 gcc_cv_as_comdat_group_group=no
23693 if test x"$ld_is_gold" = xyes; then
23694 comdat_group=yes
23695 elif test $in_tree_ld = yes ; then
23696 comdat_group=no
23697 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 \
23698 && test $in_tree_ld_is_elf = yes; then
23699 comdat_group=yes
23701 elif echo "$ld_ver" | grep GNU > /dev/null; then
23702 comdat_group=yes
23703 if test 0"$ld_date" -lt 20050308; then
23704 if test -n "$ld_date"; then
23705 # If there was date string, but was earlier than 2005-03-08, fail
23706 comdat_group=no
23707 elif test "$ld_vers_major" -lt 2; then
23708 comdat_group=no
23709 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23710 comdat_group=no
23713 else
23714 case "${target}" in
23715 *-*-solaris2.1[1-9]*)
23716 comdat_group=no
23717 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23718 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23719 # version 1.688.
23721 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23722 # least ld version 1.2267.
23723 if test "$ld_vers_major" -gt 1; then
23724 comdat_group=yes
23725 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23726 comdat_group=yes
23727 elif test "$ld_vers_minor" -ge 2267; then
23728 comdat_group=yes
23732 # Assume linkers other than GNU ld don't support COMDAT group.
23733 comdat_group=no
23735 esac
23737 # Allow overriding the automatic COMDAT group tests above.
23738 # Check whether --enable-comdat was given.
23739 if test "${enable_comdat+set}" = set; then :
23740 enableval=$enable_comdat; comdat_group="$enable_comdat"
23743 if test $comdat_group = no; then
23744 gcc_cv_as_comdat_group=no
23745 gcc_cv_as_comdat_group_percent=no
23746 gcc_cv_as_comdat_group_group=no
23749 cat >>confdefs.h <<_ACEOF
23750 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23751 || test $gcc_cv_as_comdat_group_percent = yes \
23752 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23753 _ACEOF
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23757 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23758 if test "${gcc_cv_as_discriminator+set}" = set; then :
23759 $as_echo_n "(cached) " >&6
23760 else
23761 gcc_cv_as_discriminator=no
23762 if test $in_tree_gas = yes; then
23763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23764 then gcc_cv_as_discriminator=yes
23766 elif test x$gcc_cv_as != x; then
23767 $as_echo ' .text
23768 .file 1 "conf.c"
23769 .loc 1 1 0 discriminator 1' > conftest.s
23770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23776 then
23777 gcc_cv_as_discriminator=yes
23778 else
23779 echo "configure: failed program was" >&5
23780 cat conftest.s >&5
23782 rm -f conftest.o conftest.s
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23786 $as_echo "$gcc_cv_as_discriminator" >&6; }
23787 if test $gcc_cv_as_discriminator = yes; then
23789 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23793 # Thread-local storage - the check is heavily parameterized.
23794 conftest_s=
23795 tls_first_major=
23796 tls_first_minor=
23797 tls_as_opt=
23798 case "$target" in
23799 alpha*-*-*)
23800 conftest_s='
23801 .section ".tdata","awT",@progbits
23802 foo: .long 25
23803 .text
23804 ldq $27,__tls_get_addr($29) !literal!1
23805 lda $16,foo($29) !tlsgd!1
23806 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23807 ldq $27,__tls_get_addr($29) !literal!2
23808 lda $16,foo($29) !tlsldm!2
23809 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23810 ldq $1,foo($29) !gotdtprel
23811 ldah $2,foo($29) !dtprelhi
23812 lda $3,foo($2) !dtprello
23813 lda $4,foo($29) !dtprel
23814 ldq $1,foo($29) !gottprel
23815 ldah $2,foo($29) !tprelhi
23816 lda $3,foo($2) !tprello
23817 lda $4,foo($29) !tprel'
23818 tls_first_major=2
23819 tls_first_minor=13
23820 tls_as_opt=--fatal-warnings
23822 arc*-*-*)
23823 conftest_s='
23824 add_s r0,r0, @foo@tpoff'
23825 tls_first_major=2
23826 tls_first_minor=23
23828 cris-*-*|crisv32-*-*)
23829 conftest_s='
23830 .section ".tdata","awT",@progbits
23831 x: .long 25
23832 .text
23833 move.d x:IE,$r10
23834 nop'
23835 tls_first_major=2
23836 tls_first_minor=20
23837 tls_as_opt=--fatal-warnings
23839 frv*-*-*)
23840 conftest_s='
23841 .section ".tdata","awT",@progbits
23842 x: .long 25
23843 .text
23844 call #gettlsoff(x)'
23845 tls_first_major=2
23846 tls_first_minor=14
23848 hppa*-*-linux*)
23849 conftest_s='
23850 t1: .reg %r20
23851 t2: .reg %r21
23852 gp: .reg %r19
23853 .section ".tdata","awT",@progbits
23854 foo: .long 25
23855 .text
23856 .align 4
23857 addil LT%foo-$tls_gdidx$,gp
23858 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23859 b __tls_get_addr
23861 addil LT%foo-$tls_ldidx$,gp
23862 b __tls_get_addr
23863 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23864 addil LR%foo-$tls_dtpoff$,%ret0
23865 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23866 mfctl %cr27,%t1
23867 addil LT%foo-$tls_ieoff$,gp
23868 ldw RT%foo-$tls_ieoff$(%r1),%t2
23869 add %t1,%t2,%t3
23870 mfctl %cr27,%t1
23871 addil LR%foo-$tls_leoff$,%t1
23872 ldo RR%foo-$tls_leoff$(%r1),%t2'
23873 tls_first_major=2
23874 tls_first_minor=15
23875 tls_as_opt=--fatal-warnings
23877 arm*-*-*)
23878 conftest_s='
23879 .section ".tdata","awT",%progbits
23880 foo: .long 25
23881 .text
23882 .word foo(gottpoff)
23883 .word foo(tpoff)
23884 .word foo(tlsgd)
23885 .word foo(tlsldm)
23886 .word foo(tlsldo)'
23887 tls_first_major=2
23888 tls_first_minor=17
23890 i[34567]86-*-* | x86_64-*-*)
23891 case "$target" in
23892 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23893 on_solaris=yes
23896 on_solaris=no
23898 esac
23899 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23900 conftest_s='
23901 .section .tdata,"awt",@progbits'
23902 tls_first_major=0
23903 tls_first_minor=0
23904 tls_section_flag=t
23906 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23908 else
23909 conftest_s='
23910 .section ".tdata","awT",@progbits'
23911 tls_first_major=2
23912 tls_first_minor=14
23913 tls_section_flag=T
23914 tls_as_opt="--fatal-warnings"
23916 case "$target" in
23917 i[34567]86-*-*)
23918 conftest_s="$conftest_s
23919 foo: .long 25
23920 .text
23921 movl %gs:0, %eax
23922 leal foo@tlsgd(,%ebx,1), %eax
23923 leal foo@tlsldm(%ebx), %eax
23924 leal foo@dtpoff(%eax), %edx
23925 movl foo@gottpoff(%ebx), %eax
23926 subl foo@gottpoff(%ebx), %eax
23927 addl foo@gotntpoff(%ebx), %eax
23928 movl foo@indntpoff, %eax
23929 movl \$foo@tpoff, %eax
23930 subl \$foo@tpoff, %eax
23931 leal foo@ntpoff(%ecx), %eax"
23933 x86_64-*-*)
23934 if test x$on_solaris = xyes; then
23935 case $gas_flag in
23936 yes) tls_as_opt="$tls_as_opt --64" ;;
23937 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23938 esac
23940 conftest_s="$conftest_s
23941 foo: .long 25
23942 .text
23943 movq %fs:0, %rax
23944 leaq foo@tlsgd(%rip), %rdi
23945 leaq foo@tlsld(%rip), %rdi
23946 leaq foo@dtpoff(%rax), %rdx
23947 movq foo@gottpoff(%rip), %rax
23948 movq \$foo@tpoff, %rax"
23950 esac
23952 ia64-*-*)
23953 conftest_s='
23954 .section ".tdata","awT",@progbits
23955 foo: data8 25
23956 .text
23957 addl r16 = @ltoff(@dtpmod(foo#)), gp
23958 addl r17 = @ltoff(@dtprel(foo#)), gp
23959 addl r18 = @ltoff(@tprel(foo#)), gp
23960 addl r19 = @dtprel(foo#), gp
23961 adds r21 = @dtprel(foo#), r13
23962 movl r23 = @dtprel(foo#)
23963 addl r20 = @tprel(foo#), gp
23964 adds r22 = @tprel(foo#), r13
23965 movl r24 = @tprel(foo#)'
23966 tls_first_major=2
23967 tls_first_minor=13
23968 tls_as_opt=--fatal-warnings
23970 microblaze*-*-*)
23971 conftest_s='
23972 .section .tdata,"awT",@progbits
23974 .word 2
23975 .text
23976 addik r5,r20,x@TLSGD
23977 addik r5,r20,x@TLSLDM'
23978 tls_first_major=2
23979 tls_first_minor=20
23980 tls_as_opt='--fatal-warnings'
23982 mips*-*-*)
23983 conftest_s='
23984 .section .tdata,"awT",@progbits
23986 .word 2
23987 .text
23988 addiu $4, $28, %tlsgd(x)
23989 addiu $4, $28, %tlsldm(x)
23990 lui $4, %dtprel_hi(x)
23991 addiu $4, $4, %dtprel_lo(x)
23992 lw $4, %gottprel(x)($28)
23993 lui $4, %tprel_hi(x)
23994 addiu $4, $4, %tprel_lo(x)'
23995 tls_first_major=2
23996 tls_first_minor=16
23997 tls_as_opt='-32 --fatal-warnings'
23999 m68k-*-*)
24000 conftest_s='
24001 .section .tdata,"awT",@progbits
24003 .word 2
24004 .text
24005 foo:
24006 move.l x@TLSGD(%a5),%a0
24007 move.l x@TLSLDM(%a5),%a0
24008 move.l x@TLSLDO(%a5),%a0
24009 move.l x@TLSIE(%a5),%a0
24010 move.l x@TLSLE(%a5),%a0'
24011 tls_first_major=2
24012 tls_first_minor=19
24013 tls_as_opt='--fatal-warnings'
24015 nios2-*-*)
24016 conftest_s='
24017 .section ".tdata","awT",@progbits'
24018 tls_first_major=2
24019 tls_first_minor=23
24020 tls_as_opt="--fatal-warnings"
24022 aarch64*-*-*)
24023 conftest_s='
24024 .section ".tdata","awT",%progbits
24025 foo: .long 25
24026 .text
24027 adrp x0, :tlsgd:x
24028 add x0, x0, #:tlsgd_lo12:x
24029 bl __tls_get_addr
24030 nop'
24031 tls_first_major=2
24032 tls_first_minor=20
24033 tls_as_opt='--fatal-warnings'
24035 powerpc-ibm-aix*)
24036 conftest_s='
24037 .extern __get_tpointer
24038 .toc
24039 LC..1:
24040 .tc a[TC],a[TL]@le
24041 .csect .text[PR]
24042 .tlstest:
24043 lwz 9,LC..1(2)
24044 bla __get_tpointer
24045 lwzx 3,9,3
24046 .globl a
24047 .csect a[TL],4
24049 .space 4'
24050 tls_first_major=0
24051 tls_first_minor=0
24053 powerpc64*-*-*)
24054 conftest_s='
24055 .section ".tdata","awT",@progbits
24056 .align 3
24057 ld0: .space 8
24058 ld1: .space 8
24059 x1: .space 8
24060 x2: .space 8
24061 x3: .space 8
24062 .text
24063 addi 3,2,ld0@got@tlsgd
24064 bl .__tls_get_addr
24066 addi 3,2,ld1@toc
24067 bl .__tls_get_addr
24069 addi 3,2,x1@got@tlsld
24070 bl .__tls_get_addr
24072 addi 9,3,x1@dtprel
24073 bl .__tls_get_addr
24075 addis 9,3,x2@dtprel@ha
24076 addi 9,9,x2@dtprel@l
24077 bl .__tls_get_addr
24079 ld 9,x3@got@dtprel(2)
24080 add 9,9,3
24081 bl .__tls_get_addr
24082 nop'
24083 tls_first_major=2
24084 tls_first_minor=14
24085 tls_as_opt="-a64 --fatal-warnings"
24087 powerpc*-*-*)
24088 conftest_s='
24089 .section ".tdata","awT",@progbits
24090 .align 2
24091 ld0: .space 4
24092 ld1: .space 4
24093 x1: .space 4
24094 x2: .space 4
24095 x3: .space 4
24096 .text
24097 addi 3,31,ld0@got@tlsgd
24098 bl __tls_get_addr
24099 addi 3,31,x1@got@tlsld
24100 bl __tls_get_addr
24101 addi 9,3,x1@dtprel
24102 addis 9,3,x2@dtprel@ha
24103 addi 9,9,x2@dtprel@l
24104 lwz 9,x3@got@tprel(31)
24105 add 9,9,x@tls
24106 addi 9,2,x1@tprel
24107 addis 9,2,x2@tprel@ha
24108 addi 9,9,x2@tprel@l'
24109 tls_first_major=2
24110 tls_first_minor=14
24111 tls_as_opt="-a32 --fatal-warnings"
24113 s390-*-*)
24114 conftest_s='
24115 .section ".tdata","awT",@progbits
24116 foo: .long 25
24117 .text
24118 .long foo@TLSGD
24119 .long foo@TLSLDM
24120 .long foo@DTPOFF
24121 .long foo@NTPOFF
24122 .long foo@GOTNTPOFF
24123 .long foo@INDNTPOFF
24124 l %r1,foo@GOTNTPOFF(%r12)
24125 l %r1,0(%r1):tls_load:foo
24126 bas %r14,0(%r1,%r13):tls_gdcall:foo
24127 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24128 tls_first_major=2
24129 tls_first_minor=14
24130 tls_as_opt="-m31 --fatal-warnings"
24132 s390x-*-*)
24133 conftest_s='
24134 .section ".tdata","awT",@progbits
24135 foo: .long 25
24136 .text
24137 .quad foo@TLSGD
24138 .quad foo@TLSLDM
24139 .quad foo@DTPOFF
24140 .quad foo@NTPOFF
24141 .quad foo@GOTNTPOFF
24142 lg %r1,foo@GOTNTPOFF(%r12)
24143 larl %r1,foo@INDNTPOFF
24144 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24145 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24146 tls_first_major=2
24147 tls_first_minor=14
24148 tls_as_opt="-m64 -Aesame --fatal-warnings"
24150 sh-*-* | sh[123456789lbe]*-*-*)
24151 conftest_s='
24152 .section ".tdata","awT",@progbits
24153 foo: .long 25
24154 .text
24155 .long foo@TLSGD
24156 .long foo@TLSLDM
24157 .long foo@DTPOFF
24158 .long foo@GOTTPOFF
24159 .long foo@TPOFF'
24160 tls_first_major=2
24161 tls_first_minor=13
24162 tls_as_opt=--fatal-warnings
24164 sparc*-*-*)
24165 case "$target" in
24166 sparc*-sun-solaris2.*)
24167 on_solaris=yes
24170 on_solaris=no
24172 esac
24173 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24174 conftest_s='
24175 .section ".tdata",#alloc,#write,#tls'
24176 tls_first_major=0
24177 tls_first_minor=0
24178 else
24179 conftest_s='
24180 .section ".tdata","awT",@progbits'
24181 tls_first_major=2
24182 tls_first_minor=14
24183 tls_as_opt="-32 --fatal-warnings"
24185 conftest_s="$conftest_s
24186 foo: .long 25
24187 .text
24188 sethi %tgd_hi22(foo), %o0
24189 add %o0, %tgd_lo10(foo), %o1
24190 add %l7, %o1, %o0, %tgd_add(foo)
24191 call __tls_get_addr, %tgd_call(foo)
24192 sethi %tldm_hi22(foo), %l1
24193 add %l1, %tldm_lo10(foo), %l2
24194 add %l7, %l2, %o0, %tldm_add(foo)
24195 call __tls_get_addr, %tldm_call(foo)
24196 sethi %tldo_hix22(foo), %l3
24197 xor %l3, %tldo_lox10(foo), %l4
24198 add %o0, %l4, %l5, %tldo_add(foo)
24199 sethi %tie_hi22(foo), %o3
24200 add %o3, %tie_lo10(foo), %o3
24201 ld [%l7 + %o3], %o2, %tie_ld(foo)
24202 add %g7, %o2, %o4, %tie_add(foo)
24203 sethi %tle_hix22(foo), %l1
24204 xor %l1, %tle_lox10(foo), %o5
24205 ld [%g7 + %o5], %o1"
24207 tilepro*-*-*)
24208 conftest_s='
24209 .section ".tdata","awT",@progbits
24210 foo: .long 25
24211 .text
24212 addli r0, zero, tls_gd(foo)
24213 auli r0, zero, tls_gd_ha16(foo)
24214 addli r0, r0, tls_gd_lo16(foo)
24215 jal __tls_get_addr
24216 addli r0, zero, tls_ie(foo)
24217 auli r0, r0, tls_ie_ha16(foo)
24218 addli r0, r0, tls_ie_lo16(foo)'
24219 tls_first_major=2
24220 tls_first_minor=22
24221 tls_as_opt="--fatal-warnings"
24223 tilegx*-*-*)
24224 conftest_s='
24225 .section ".tdata","awT",@progbits
24226 foo: .long 25
24227 .text
24228 shl16insli r0, zero, hw0_last_tls_gd(foo)
24229 shl16insli r0, zero, hw1_last_tls_gd(foo)
24230 shl16insli r0, r0, hw0_tls_gd(foo)
24231 jal __tls_get_addr
24232 shl16insli r0, zero, hw1_last_tls_ie(foo)
24233 shl16insli r0, r0, hw0_tls_ie(foo)'
24234 tls_first_major=2
24235 tls_first_minor=22
24236 tls_as_opt="--fatal-warnings"
24238 xtensa*-*-*)
24239 conftest_s='
24240 .section ".tdata","awT",@progbits
24241 foo: .long 25
24242 .text
24243 movi a8, foo@TLSFUNC
24244 movi a10, foo@TLSARG
24245 callx8.tls a8, foo@TLSCALL'
24246 tls_first_major=2
24247 tls_first_minor=19
24249 esac
24250 set_have_as_tls=no
24251 if test "x$enable_tls" = xno ; then
24252 : # TLS explicitly disabled.
24253 elif test "x$enable_tls" = xyes ; then
24254 set_have_as_tls=yes # TLS explicitly enabled.
24255 elif test -z "$tls_first_major"; then
24256 : # If we don't have a check, assume no support.
24257 else
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24259 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24260 if test "${gcc_cv_as_tls+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
24262 else
24263 gcc_cv_as_tls=no
24264 if test $in_tree_gas = yes; then
24265 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24266 then gcc_cv_as_tls=yes
24268 elif test x$gcc_cv_as != x; then
24269 $as_echo "$conftest_s" > conftest.s
24270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24273 ac_status=$?
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; }
24276 then
24277 gcc_cv_as_tls=yes
24278 else
24279 echo "configure: failed program was" >&5
24280 cat conftest.s >&5
24282 rm -f conftest.o conftest.s
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24286 $as_echo "$gcc_cv_as_tls" >&6; }
24287 if test $gcc_cv_as_tls = yes; then
24288 set_have_as_tls=yes
24291 if test $set_have_as_tls = yes ; then
24293 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24297 # Target-specific assembler checks.
24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24300 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24301 gcc_cv_ld_static_dynamic=no
24302 gcc_cv_ld_static_option='-Bstatic'
24303 gcc_cv_ld_dynamic_option='-Bdynamic'
24304 if test $in_tree_ld = yes ; then
24305 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
24306 gcc_cv_ld_static_dynamic=yes
24308 elif test x$gcc_cv_ld != x; then
24309 # Check if linker supports -Bstatic/-Bdynamic option
24310 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24311 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24312 gcc_cv_ld_static_dynamic=yes
24313 else
24314 case "$target" in
24315 # AIX ld uses -b flags
24316 *-*-aix4.[23]* | *-*-aix[5-9]*)
24317 gcc_cv_ld_static_dynamic=yes
24318 gcc_cv_ld_static_option="-bstatic"
24319 gcc_cv_ld_dynamic_option="-bdynamic"
24321 # HP-UX ld uses -a flags to select between shared and archive.
24322 *-*-hpux*)
24323 if test x"$gnu_ld" = xno; then
24324 gcc_cv_ld_static_dynamic=yes
24325 gcc_cv_ld_static_option="-aarchive_shared"
24326 gcc_cv_ld_dynamic_option="-adefault"
24329 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24330 *-*-solaris2*)
24331 gcc_cv_ld_static_dynamic=yes
24333 esac
24336 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24338 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24341 cat >>confdefs.h <<_ACEOF
24342 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24343 _ACEOF
24346 cat >>confdefs.h <<_ACEOF
24347 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24348 _ACEOF
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24352 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24354 if test x"$demangler_in_ld" = xyes; then
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24356 $as_echo_n "checking linker --demangle support... " >&6; }
24357 gcc_cv_ld_demangle=no
24358 if test $in_tree_ld = yes; then
24359 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 \
24360 gcc_cv_ld_demangle=yes
24362 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24363 # Check if the GNU linker supports --demangle option
24364 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24365 gcc_cv_ld_demangle=yes
24368 if test x"$gcc_cv_ld_demangle" = xyes; then
24370 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24374 $as_echo "$gcc_cv_ld_demangle" >&6; }
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24378 $as_echo_n "checking linker plugin support... " >&6; }
24379 gcc_cv_lto_plugin=0
24380 if test -f liblto_plugin.la; then
24381 save_ld_ver="$ld_ver"
24382 save_ld_vers_major="$ld_vers_major"
24383 save_ld_vers_minor="$ld_vers_minor"
24384 save_ld_is_gold="$ld_is_gold"
24386 ld_is_gold=no
24388 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24389 ld_ver="GNU ld"
24390 # FIXME: ld_is_gold?
24391 ld_vers_major="$gcc_cv_gld_major_version"
24392 ld_vers_minor="$gcc_cv_gld_minor_version"
24393 else
24394 # Determine plugin linker version.
24395 # FIXME: Partial duplicate from above, generalize.
24396 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24397 if echo "$ld_ver" | grep GNU > /dev/null; then
24398 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24399 ld_is_gold=yes
24400 ld_vers=`echo $ld_ver | sed -n \
24401 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24402 else
24403 ld_vers=`echo $ld_ver | sed -n \
24404 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24406 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24407 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24411 # Determine plugin support.
24412 if echo "$ld_ver" | grep GNU > /dev/null; then
24413 # Require GNU ld or gold 2.21+ for plugin support by default.
24414 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24415 gcc_cv_lto_plugin=2
24416 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24417 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24418 gcc_cv_lto_plugin=1
24422 ld_ver="$save_ld_ver"
24423 ld_vers_major="$save_ld_vers_major"
24424 ld_vers_minor="$save_ld_vers_minor"
24425 ld_is_gold="$save_ld_is_gold"
24428 cat >>confdefs.h <<_ACEOF
24429 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24430 _ACEOF
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24433 $as_echo "$gcc_cv_lto_plugin" >&6; }
24435 case "$target" in
24436 aarch64*-*-*)
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24438 $as_echo_n "checking assembler for -mabi option... " >&6; }
24439 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24441 else
24442 gcc_cv_as_aarch64_mabi=no
24443 if test x$gcc_cv_as != x; then
24444 $as_echo '.text' > conftest.s
24445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24448 ac_status=$?
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; }
24451 then
24452 gcc_cv_as_aarch64_mabi=yes
24453 else
24454 echo "configure: failed program was" >&5
24455 cat conftest.s >&5
24457 rm -f conftest.o conftest.s
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24461 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24463 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24465 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24467 else
24468 if test x$with_abi = xilp32; then
24469 as_fn_error "Assembler does not support -mabi=ilp32.\
24470 Upgrade the Assembler." "$LINENO" 5
24472 if test x"$with_multilib_list" = xdefault; then
24473 TM_MULTILIB_CONFIG=lp64
24474 else
24475 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24476 for aarch64_multilib in ${aarch64_multilibs}; do
24477 case ${aarch64_multilib} in
24478 ilp32)
24479 as_fn_error "Assembler does not support -mabi=ilp32.\
24480 Upgrade the Assembler." "$LINENO" 5
24484 esac
24485 done
24488 # Check if we have binutils support for relocations types needed by -fpic
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24490 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24491 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24493 else
24494 gcc_cv_as_aarch64_picreloc=no
24495 if test x$gcc_cv_as != x; then
24496 $as_echo '
24497 .text
24498 ldr x0, [x2, #:gotpage_lo15:globalsym]
24499 ' > conftest.s
24500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24502 (eval $ac_try) 2>&5
24503 ac_status=$?
24504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24505 test $ac_status = 0; }; }
24506 then
24507 gcc_cv_as_aarch64_picreloc=yes
24508 else
24509 echo "configure: failed program was" >&5
24510 cat conftest.s >&5
24512 rm -f conftest.o conftest.s
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24516 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24517 if test $gcc_cv_as_aarch64_picreloc = yes; then
24519 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24522 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24523 # Check whether --enable-fix-cortex-a53-835769 was given.
24524 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24525 enableval=$enable_fix_cortex_a53_835769;
24526 case $enableval in
24527 yes)
24528 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24533 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24534 Valid choices are 'yes' and 'no'." "$LINENO" 5
24537 esac
24541 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24542 # Check whether --enable-fix-cortex-a53-843419 was given.
24543 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24544 enableval=$enable_fix_cortex_a53_843419;
24545 case $enableval in
24546 yes)
24547 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24552 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24553 Valid choices are 'yes' and 'no'." "$LINENO" 5
24556 esac
24562 # All TARGET_ABI_OSF targets.
24563 alpha*-*-linux* | alpha*-*-*bsd*)
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24565 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24566 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24567 $as_echo_n "(cached) " >&6
24568 else
24569 gcc_cv_as_alpha_explicit_relocs=no
24570 if test $in_tree_gas = yes; then
24571 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24572 then gcc_cv_as_alpha_explicit_relocs=yes
24574 elif test x$gcc_cv_as != x; then
24575 $as_echo ' .set nomacro
24576 .text
24577 extbl $3, $2, $3 !lituse_bytoff!1
24578 ldq $2, a($29) !literal!1
24579 ldq $4, b($29) !literal!2
24580 ldq_u $3, 0($2) !lituse_base!1
24581 ldq $27, f($29) !literal!5
24582 jsr $26, ($27), f !lituse_jsr!5
24583 ldah $29, 0($26) !gpdisp!3
24584 lda $0, c($29) !gprel
24585 ldah $1, d($29) !gprelhigh
24586 lda $1, d($1) !gprellow
24587 lda $29, 0($29) !gpdisp!3' > conftest.s
24588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24590 (eval $ac_try) 2>&5
24591 ac_status=$?
24592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24593 test $ac_status = 0; }; }
24594 then
24595 gcc_cv_as_alpha_explicit_relocs=yes
24596 else
24597 echo "configure: failed program was" >&5
24598 cat conftest.s >&5
24600 rm -f conftest.o conftest.s
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24604 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24605 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24607 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24611 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24612 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24613 $as_echo_n "(cached) " >&6
24614 else
24615 gcc_cv_as_alpha_jsrdirect_relocs=no
24616 if test $in_tree_gas = yes; then
24617 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24618 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24620 elif test x$gcc_cv_as != x; then
24621 $as_echo ' .set nomacro
24622 .text
24623 ldq $27, a($29) !literal!1
24624 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24630 test $ac_status = 0; }; }
24631 then
24632 gcc_cv_as_alpha_jsrdirect_relocs=yes
24633 else
24634 echo "configure: failed program was" >&5
24635 cat conftest.s >&5
24637 rm -f conftest.o conftest.s
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24641 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24642 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24644 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24649 avr-*-*)
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24651 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24652 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24653 $as_echo_n "(cached) " >&6
24654 else
24655 gcc_cv_as_avr_mlink_relax=no
24656 if test x$gcc_cv_as != x; then
24657 $as_echo '.text' > conftest.s
24658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24660 (eval $ac_try) 2>&5
24661 ac_status=$?
24662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24663 test $ac_status = 0; }; }
24664 then
24665 gcc_cv_as_avr_mlink_relax=yes
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_avr_mlink_relax" >&5
24674 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24675 if test $gcc_cv_as_avr_mlink_relax = yes; then
24677 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24682 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24683 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24685 else
24686 gcc_cv_as_avr_mrmw=no
24687 if test x$gcc_cv_as != x; then
24688 $as_echo '.text' > conftest.s
24689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24691 (eval $ac_try) 2>&5
24692 ac_status=$?
24693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24694 test $ac_status = 0; }; }
24695 then
24696 gcc_cv_as_avr_mrmw=yes
24697 else
24698 echo "configure: failed program was" >&5
24699 cat conftest.s >&5
24701 rm -f conftest.o conftest.s
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24705 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24706 if test $gcc_cv_as_avr_mrmw = yes; then
24708 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24713 cris-*-*)
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24715 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24716 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24717 $as_echo_n "(cached) " >&6
24718 else
24719 gcc_cv_as_cris_no_mul_bug=no
24720 if test $in_tree_gas = yes; then
24721 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24722 then gcc_cv_as_cris_no_mul_bug=yes
24724 elif test x$gcc_cv_as != x; then
24725 $as_echo '.text' > conftest.s
24726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24732 then
24733 gcc_cv_as_cris_no_mul_bug=yes
24734 else
24735 echo "configure: failed program was" >&5
24736 cat conftest.s >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24742 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24743 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24745 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24750 sparc*-*-*)
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24752 $as_echo_n "checking assembler for .register... " >&6; }
24753 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24755 else
24756 gcc_cv_as_sparc_register_op=no
24757 if test x$gcc_cv_as != x; then
24758 $as_echo '.register %g2, #scratch' > conftest.s
24759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24765 then
24766 gcc_cv_as_sparc_register_op=yes
24767 else
24768 echo "configure: failed program was" >&5
24769 cat conftest.s >&5
24771 rm -f conftest.o conftest.s
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24775 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24776 if test $gcc_cv_as_sparc_register_op = yes; then
24778 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24783 $as_echo_n "checking assembler for -relax option... " >&6; }
24784 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24785 $as_echo_n "(cached) " >&6
24786 else
24787 gcc_cv_as_sparc_relax=no
24788 if test x$gcc_cv_as != x; then
24789 $as_echo '.text' > conftest.s
24790 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; }
24796 then
24797 gcc_cv_as_sparc_relax=yes
24798 else
24799 echo "configure: failed program was" >&5
24800 cat conftest.s >&5
24802 rm -f conftest.o conftest.s
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24806 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24807 if test $gcc_cv_as_sparc_relax = yes; then
24809 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24814 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24815 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24817 else
24818 gcc_cv_as_sparc_gotdata_op=no
24819 if test x$gcc_cv_as != x; then
24820 $as_echo '.text
24821 .align 4
24822 foo:
24824 bar:
24825 sethi %gdop_hix22(foo), %g1
24826 xor %g1, %gdop_lox10(foo), %g1
24827 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830 (eval $ac_try) 2>&5
24831 ac_status=$?
24832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833 test $ac_status = 0; }; }
24834 then
24835 if test x$gcc_cv_ld != x \
24836 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24837 if test x$gcc_cv_objdump != x; then
24838 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24839 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24840 gcc_cv_as_sparc_gotdata_op=no
24841 else
24842 gcc_cv_as_sparc_gotdata_op=yes
24846 rm -f conftest
24847 else
24848 echo "configure: failed program was" >&5
24849 cat conftest.s >&5
24851 rm -f conftest.o conftest.s
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24855 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24856 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24858 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24863 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24864 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24865 $as_echo_n "(cached) " >&6
24866 else
24867 gcc_cv_as_sparc_ua_pcrel=no
24868 if test x$gcc_cv_as != x; then
24869 $as_echo '.text
24870 foo:
24872 .data
24873 .align 4
24874 .byte 0
24875 .uaword %r_disp32(foo)' > conftest.s
24876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24878 (eval $ac_try) 2>&5
24879 ac_status=$?
24880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24881 test $ac_status = 0; }; }
24882 then
24883 if test x$gcc_cv_ld != x \
24884 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24885 gcc_cv_as_sparc_ua_pcrel=yes
24887 rm -f conftest
24888 else
24889 echo "configure: failed program was" >&5
24890 cat conftest.s >&5
24892 rm -f conftest.o conftest.s
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24896 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24897 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24899 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24903 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24904 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24905 $as_echo_n "(cached) " >&6
24906 else
24907 gcc_cv_as_sparc_ua_pcrel_hidden=no
24908 if test x$gcc_cv_as != x; then
24909 $as_echo '.data
24910 .align 4
24911 .byte 0x31
24912 .uaword %r_disp32(foo)
24913 .byte 0x32, 0x33, 0x34
24914 .global foo
24915 .hidden foo
24916 foo:
24917 .skip 4' > conftest.s
24918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24920 (eval $ac_try) 2>&5
24921 ac_status=$?
24922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24923 test $ac_status = 0; }; }
24924 then
24925 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24926 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24927 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24928 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24929 if $gcc_cv_objdump -R conftest 2> /dev/null \
24930 | grep 'DISP32' > /dev/null 2>&1; then
24932 else
24933 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24936 rm -f conftest
24937 else
24938 echo "configure: failed program was" >&5
24939 cat conftest.s >&5
24941 rm -f conftest.o conftest.s
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24945 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24946 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24948 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24952 fi # unaligned pcrel relocs
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24955 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24956 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24957 $as_echo_n "(cached) " >&6
24958 else
24959 gcc_cv_as_sparc_offsetable_lo10=no
24960 if test x$gcc_cv_as != x; then
24961 $as_echo '.text
24962 or %g1, %lo(ab) + 12, %g1
24963 or %g1, %lo(ab + 12), %g1' > conftest.s
24964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24966 (eval $ac_try) 2>&5
24967 ac_status=$?
24968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24969 test $ac_status = 0; }; }
24970 then
24971 if test x$gcc_cv_objdump != x \
24972 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24973 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24974 gcc_cv_as_sparc_offsetable_lo10=yes
24976 else
24977 echo "configure: failed program was" >&5
24978 cat conftest.s >&5
24980 rm -f conftest.o conftest.s
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24984 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24985 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24987 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24992 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24993 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24994 $as_echo_n "(cached) " >&6
24995 else
24996 gcc_cv_as_sparc_fmaf=no
24997 if test x$gcc_cv_as != x; then
24998 $as_echo '.text
24999 .register %g2, #scratch
25000 .register %g3, #scratch
25001 .align 4
25002 fmaddd %f0, %f2, %f4, %f6
25003 addxccc %g1, %g2, %g3
25004 fsrl32 %f2, %f4, %f8
25005 fnaddd %f10, %f12, %f14' > conftest.s
25006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25008 (eval $ac_try) 2>&5
25009 ac_status=$?
25010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25011 test $ac_status = 0; }; }
25012 then
25013 gcc_cv_as_sparc_fmaf=yes
25014 else
25015 echo "configure: failed program was" >&5
25016 cat conftest.s >&5
25018 rm -f conftest.o conftest.s
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25022 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25023 if test $gcc_cv_as_sparc_fmaf = yes; then
25025 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25030 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25031 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25032 $as_echo_n "(cached) " >&6
25033 else
25034 gcc_cv_as_sparc_sparc4=no
25035 if test x$gcc_cv_as != x; then
25036 $as_echo '.text
25037 .register %g2, #scratch
25038 .register %g3, #scratch
25039 .align 4
25040 cxbe %g2, %g3, 1f
25041 1: cwbneg %g2, %g3, 1f
25042 1: sha1
25044 aes_kexpand0 %f4, %f6, %f8
25045 des_round %f38, %f40, %f42, %f44
25046 camellia_f %f54, %f56, %f58, %f60
25047 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25048 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25050 (eval $ac_try) 2>&5
25051 ac_status=$?
25052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25053 test $ac_status = 0; }; }
25054 then
25055 gcc_cv_as_sparc_sparc4=yes
25056 else
25057 echo "configure: failed program was" >&5
25058 cat conftest.s >&5
25060 rm -f conftest.o conftest.s
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25064 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25065 if test $gcc_cv_as_sparc_sparc4 = yes; then
25067 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25072 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25073 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25074 $as_echo_n "(cached) " >&6
25075 else
25076 gcc_cv_as_sparc_sparc5=no
25077 if test x$gcc_cv_as != x; then
25078 $as_echo '.text
25079 .register %g2, #scratch
25080 .register %g3, #scratch
25081 .align 4
25082 subxc %g1, %g2, %g3
25083 fpadd8 %f0, %f2, %f4' > conftest.s
25084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25086 (eval $ac_try) 2>&5
25087 ac_status=$?
25088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25089 test $ac_status = 0; }; }
25090 then
25091 gcc_cv_as_sparc_sparc5=yes
25092 else
25093 echo "configure: failed program was" >&5
25094 cat conftest.s >&5
25096 rm -f conftest.o conftest.s
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25100 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25101 if test $gcc_cv_as_sparc_sparc5 = yes; then
25103 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25108 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25109 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25110 $as_echo_n "(cached) " >&6
25111 else
25112 gcc_cv_as_sparc_leon=no
25113 if test x$gcc_cv_as != x; then
25114 $as_echo '.text
25115 .register %g2, #scratch
25116 .register %g3, #scratch
25117 .align 4
25118 smac %g2, %g3, %g1
25119 umac %g2, %g3, %g1
25120 casa [%g2] 0xb, %g3, %g1' > conftest.s
25121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25123 (eval $ac_try) 2>&5
25124 ac_status=$?
25125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25126 test $ac_status = 0; }; }
25127 then
25128 gcc_cv_as_sparc_leon=yes
25129 else
25130 echo "configure: failed program was" >&5
25131 cat conftest.s >&5
25133 rm -f conftest.o conftest.s
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25137 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25138 if test $gcc_cv_as_sparc_leon = yes; then
25140 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25145 i[34567]86-*-* | x86_64-*-*)
25146 case $target_os in
25147 cygwin*)
25148 # Full C++ conformance when using a shared libstdc++-v3 requires some
25149 # support from the Cygwin DLL, which in more recent versions exports
25150 # wrappers to aid in interposing and redirecting operators new, delete,
25151 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25152 # are configuring for a version of Cygwin that exports the wrappers.
25153 if test x$host = x$target && test x$host_cpu = xi686; then
25154 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25155 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25156 gcc_ac_cygwin_dll_wrappers=yes
25157 else
25158 gcc_ac_cygwin_dll_wrappers=no
25161 else
25162 # Can't check presence of libc functions during cross-compile, so
25163 # we just have to assume we're building for an up-to-date target.
25164 gcc_ac_cygwin_dll_wrappers=yes
25167 cat >>confdefs.h <<_ACEOF
25168 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25169 _ACEOF
25171 esac
25172 case $target_os in
25173 cygwin* | pe | mingw32*)
25174 # Recent binutils allows the three-operand form of ".comm" on PE. This
25175 # definition is used unconditionally to initialise the default state of
25176 # the target option variable that governs usage of the feature.
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25178 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25179 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 gcc_cv_as_comm_has_align=no
25183 if test $in_tree_gas = yes; then
25184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25185 then gcc_cv_as_comm_has_align=yes
25187 elif test x$gcc_cv_as != x; then
25188 $as_echo '.comm foo,1,32' > conftest.s
25189 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25194 test $ac_status = 0; }; }
25195 then
25196 gcc_cv_as_comm_has_align=yes
25197 else
25198 echo "configure: failed program was" >&5
25199 cat conftest.s >&5
25201 rm -f conftest.o conftest.s
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25205 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25208 cat >>confdefs.h <<_ACEOF
25209 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25210 _ACEOF
25212 # Used for DWARF 2 in PE
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25214 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25215 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25216 $as_echo_n "(cached) " >&6
25217 else
25218 gcc_cv_as_ix86_pe_secrel32=no
25219 if test $in_tree_gas = yes; then
25220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25221 then gcc_cv_as_ix86_pe_secrel32=yes
25223 elif test x$gcc_cv_as != x; then
25224 $as_echo '.text
25225 foo: nop
25226 .data
25227 .secrel32 foo' > conftest.s
25228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25233 test $ac_status = 0; }; }
25234 then
25235 if test x$gcc_cv_ld != x \
25236 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25237 gcc_cv_as_ix86_pe_secrel32=yes
25239 rm -f conftest
25240 else
25241 echo "configure: failed program was" >&5
25242 cat conftest.s >&5
25244 rm -f conftest.o conftest.s
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25248 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25249 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25251 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25254 # Test if the assembler supports the extended form of the .section
25255 # directive that specifies section alignment. LTO support uses this,
25256 # but normally only after installation, so we warn but don't fail the
25257 # configure if LTO is enabled but the assembler does not support it.
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25259 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25260 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25261 $as_echo_n "(cached) " >&6
25262 else
25263 gcc_cv_as_section_has_align=no
25264 if test $in_tree_gas = yes; then
25265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25266 then gcc_cv_as_section_has_align=yes
25268 elif test x$gcc_cv_as != x; then
25269 $as_echo '.section lto_test,"dr0"' > conftest.s
25270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25272 (eval $ac_try) 2>&5
25273 ac_status=$?
25274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25275 test $ac_status = 0; }; }
25276 then
25277 gcc_cv_as_section_has_align=yes
25278 else
25279 echo "configure: failed program was" >&5
25280 cat conftest.s >&5
25282 rm -f conftest.o conftest.s
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25286 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25288 if test x$gcc_cv_as_section_has_align != xyes; then
25289 case ",$enable_languages," in
25290 *,lto,*)
25291 { $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
25292 $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;}
25294 esac
25297 esac
25299 # Test if the assembler supports the section flag 'e' for specifying
25300 # an excluded section.
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25302 $as_echo_n "checking assembler for .section with e... " >&6; }
25303 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25305 else
25306 gcc_cv_as_section_has_e=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25309 then gcc_cv_as_section_has_e=yes
25311 elif test x$gcc_cv_as != x; then
25312 $as_echo '.section foo1,"e"
25313 .byte 0,0,0,0' > conftest.s
25314 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25316 (eval $ac_try) 2>&5
25317 ac_status=$?
25318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25319 test $ac_status = 0; }; }
25320 then
25321 gcc_cv_as_section_has_e=yes
25322 else
25323 echo "configure: failed program was" >&5
25324 cat conftest.s >&5
25326 rm -f conftest.o conftest.s
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25330 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25333 cat >>confdefs.h <<_ACEOF
25334 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25335 _ACEOF
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25339 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25340 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25342 else
25343 gcc_cv_as_ix86_filds=no
25344 if test x$gcc_cv_as != x; then
25345 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25348 (eval $ac_try) 2>&5
25349 ac_status=$?
25350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25351 test $ac_status = 0; }; }
25352 then
25353 gcc_cv_as_ix86_filds=yes
25354 else
25355 echo "configure: failed program was" >&5
25356 cat conftest.s >&5
25358 rm -f conftest.o conftest.s
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25362 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25363 if test $gcc_cv_as_ix86_filds = yes; then
25365 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25370 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25371 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25372 $as_echo_n "(cached) " >&6
25373 else
25374 gcc_cv_as_ix86_fildq=no
25375 if test x$gcc_cv_as != x; then
25376 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25379 (eval $ac_try) 2>&5
25380 ac_status=$?
25381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25382 test $ac_status = 0; }; }
25383 then
25384 gcc_cv_as_ix86_fildq=yes
25385 else
25386 echo "configure: failed program was" >&5
25387 cat conftest.s >&5
25389 rm -f conftest.o conftest.s
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25393 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25394 if test $gcc_cv_as_ix86_fildq = yes; then
25396 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25401 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25402 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25403 $as_echo_n "(cached) " >&6
25404 else
25405 gcc_cv_as_ix86_cmov_sun_syntax=no
25406 if test x$gcc_cv_as != x; then
25407 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25410 (eval $ac_try) 2>&5
25411 ac_status=$?
25412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25413 test $ac_status = 0; }; }
25414 then
25415 gcc_cv_as_ix86_cmov_sun_syntax=yes
25416 else
25417 echo "configure: failed program was" >&5
25418 cat conftest.s >&5
25420 rm -f conftest.o conftest.s
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25424 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25425 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25427 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25432 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25433 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25434 $as_echo_n "(cached) " >&6
25435 else
25436 gcc_cv_as_ix86_ffreep=no
25437 if test x$gcc_cv_as != x; then
25438 $as_echo 'ffreep %st(1)' > conftest.s
25439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25442 ac_status=$?
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25445 then
25446 gcc_cv_as_ix86_ffreep=yes
25447 else
25448 echo "configure: failed program was" >&5
25449 cat conftest.s >&5
25451 rm -f conftest.o conftest.s
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25455 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25456 if test $gcc_cv_as_ix86_ffreep = yes; then
25458 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25463 $as_echo_n "checking assembler for .quad directive... " >&6; }
25464 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25465 $as_echo_n "(cached) " >&6
25466 else
25467 gcc_cv_as_ix86_quad=no
25468 if test x$gcc_cv_as != x; then
25469 $as_echo '.quad 0' > conftest.s
25470 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25472 (eval $ac_try) 2>&5
25473 ac_status=$?
25474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25475 test $ac_status = 0; }; }
25476 then
25477 gcc_cv_as_ix86_quad=yes
25478 else
25479 echo "configure: failed program was" >&5
25480 cat conftest.s >&5
25482 rm -f conftest.o conftest.s
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25486 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25487 if test $gcc_cv_as_ix86_quad = yes; then
25489 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25494 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25495 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25496 $as_echo_n "(cached) " >&6
25497 else
25498 gcc_cv_as_ix86_sahf=no
25499 if test x$gcc_cv_as != x; then
25500 $as_echo '.code64
25501 sahf' > conftest.s
25502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25504 (eval $ac_try) 2>&5
25505 ac_status=$?
25506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25507 test $ac_status = 0; }; }
25508 then
25509 gcc_cv_as_ix86_sahf=yes
25510 else
25511 echo "configure: failed program was" >&5
25512 cat conftest.s >&5
25514 rm -f conftest.o conftest.s
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25518 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25519 if test $gcc_cv_as_ix86_sahf = yes; then
25521 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25526 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25527 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25528 $as_echo_n "(cached) " >&6
25529 else
25530 gcc_cv_as_ix86_interunit_movq=no
25531 if test x$gcc_cv_as != x; then
25532 $as_echo '.code64
25533 movq %mm0, %rax
25534 movq %rax, %xmm0' > conftest.s
25535 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25537 (eval $ac_try) 2>&5
25538 ac_status=$?
25539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25540 test $ac_status = 0; }; }
25541 then
25542 gcc_cv_as_ix86_interunit_movq=yes
25543 else
25544 echo "configure: failed program was" >&5
25545 cat conftest.s >&5
25547 rm -f conftest.o conftest.s
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25551 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25554 cat >>confdefs.h <<_ACEOF
25555 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25556 _ACEOF
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25560 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25561 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25562 $as_echo_n "(cached) " >&6
25563 else
25564 gcc_cv_as_ix86_hle=no
25565 if test x$gcc_cv_as != x; then
25566 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25572 test $ac_status = 0; }; }
25573 then
25574 gcc_cv_as_ix86_hle=yes
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_hle" >&5
25583 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25584 if test $gcc_cv_as_ix86_hle = yes; then
25586 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25591 $as_echo_n "checking assembler for swap suffix... " >&6; }
25592 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25593 $as_echo_n "(cached) " >&6
25594 else
25595 gcc_cv_as_ix86_swap=no
25596 if test x$gcc_cv_as != x; then
25597 $as_echo 'movl.s %esp, %ebp' > conftest.s
25598 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25600 (eval $ac_try) 2>&5
25601 ac_status=$?
25602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25603 test $ac_status = 0; }; }
25604 then
25605 gcc_cv_as_ix86_swap=yes
25606 else
25607 echo "configure: failed program was" >&5
25608 cat conftest.s >&5
25610 rm -f conftest.o conftest.s
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25614 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25615 if test $gcc_cv_as_ix86_swap = yes; then
25617 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25622 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25623 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25624 $as_echo_n "(cached) " >&6
25625 else
25626 gcc_cv_as_ix86_diff_sect_delta=no
25627 if test x$gcc_cv_as != x; then
25628 $as_echo '.section .rodata
25629 .L1:
25630 .long .L2-.L1
25631 .long .L3-.L1
25632 .text
25633 .L3: nop
25634 .L2: nop' > conftest.s
25635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25637 (eval $ac_try) 2>&5
25638 ac_status=$?
25639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25640 test $ac_status = 0; }; }
25641 then
25642 gcc_cv_as_ix86_diff_sect_delta=yes
25643 else
25644 echo "configure: failed program was" >&5
25645 cat conftest.s >&5
25647 rm -f conftest.o conftest.s
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25651 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25652 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25654 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25659 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25660 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25661 $as_echo_n "(cached) " >&6
25662 else
25663 gcc_cv_as_ix86_rep_lock_prefix=no
25664 if test x$gcc_cv_as != x; then
25665 $as_echo 'rep movsl
25666 rep ret
25667 rep nop
25668 rep bsf %ecx, %eax
25669 rep bsr %ecx, %eax
25670 lock addl %edi, (%eax,%esi)
25671 lock orl $0, (%esp)' > conftest.s
25672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25677 test $ac_status = 0; }; }
25678 then
25679 gcc_cv_as_ix86_rep_lock_prefix=yes
25680 else
25681 echo "configure: failed program was" >&5
25682 cat conftest.s >&5
25684 rm -f conftest.o conftest.s
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25688 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25689 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25691 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25696 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25697 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25698 $as_echo_n "(cached) " >&6
25699 else
25700 gcc_cv_as_ix86_ud2=no
25701 if test x$gcc_cv_as != x; then
25702 $as_echo 'ud2' > conftest.s
25703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25709 then
25710 gcc_cv_as_ix86_ud2=yes
25711 else
25712 echo "configure: failed program was" >&5
25713 cat conftest.s >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25719 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25720 if test $gcc_cv_as_ix86_ud2 = yes; then
25722 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25726 # Enforce 32-bit output with gas and gld.
25727 if test x$gas = xyes; then
25728 as_ix86_gas_32_opt="--32"
25730 if echo "$ld_ver" | grep GNU > /dev/null; then
25731 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25732 ld_ix86_gld_32_opt="-melf_i386_sol2"
25733 else
25734 ld_ix86_gld_32_opt="-melf_i386"
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25739 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25740 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25742 else
25743 gcc_cv_as_ix86_tlsgdplt=no
25744 if test x$gcc_cv_as != x; then
25745 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25751 test $ac_status = 0; }; }
25752 then
25753 if test x$gcc_cv_ld != x \
25754 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25755 gcc_cv_as_ix86_tlsgdplt=yes
25757 rm -f conftest
25758 else
25759 echo "configure: failed program was" >&5
25760 cat conftest.s >&5
25762 rm -f conftest.o conftest.s
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25766 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25767 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25769 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25773 conftest_s='
25774 .section .tdata,"aw'$tls_section_flag'",@progbits
25775 tls_ld:
25776 .section .text,"ax",@progbits
25777 call tls_ld@tlsldmplt'
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25780 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25781 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25783 else
25784 gcc_cv_as_ix86_tlsldmplt=no
25785 if test x$gcc_cv_as != x; then
25786 $as_echo "$conftest_s" > conftest.s
25787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25789 (eval $ac_try) 2>&5
25790 ac_status=$?
25791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25792 test $ac_status = 0; }; }
25793 then
25794 if test x$gcc_cv_ld != x \
25795 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25796 gcc_cv_as_ix86_tlsldmplt=yes
25798 rm -f conftest
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_ix86_tlsldmplt" >&5
25807 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25810 cat >>confdefs.h <<_ACEOF
25811 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25812 _ACEOF
25815 conftest_s='
25816 .section .text,"ax",@progbits
25817 .globl _start
25818 .type _start, @function
25819 _start:
25820 leal value@tlsldm(%ebx), %eax
25821 call ___tls_get_addr@plt
25823 .section .tdata,"aw'$tls_section_flag'",@progbits
25824 .type value, @object
25825 value:'
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25827 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25828 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25829 $as_echo_n "(cached) " >&6
25830 else
25831 gcc_cv_as_ix86_tlsldm=no
25832 if test x$gcc_cv_as != x; then
25833 $as_echo "$conftest_s" > conftest.s
25834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25836 (eval $ac_try) 2>&5
25837 ac_status=$?
25838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25839 test $ac_status = 0; }; }
25840 then
25841 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25842 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25843 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25844 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25845 gcc_cv_as_ix86_tlsldm=yes
25848 rm -f conftest
25849 else
25850 echo "configure: failed program was" >&5
25851 cat conftest.s >&5
25853 rm -f conftest.o conftest.s
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25857 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25860 cat >>confdefs.h <<_ACEOF
25861 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25862 _ACEOF
25865 conftest_s='
25866 .data
25867 bar:
25868 .byte 1
25869 .text
25870 .global _start
25871 _start:
25872 cmpl $0, bar@GOT
25873 jmp *_start@GOT'
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25875 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25876 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25877 $as_echo_n "(cached) " >&6
25878 else
25879 gcc_cv_as_ix86_got32x=no
25880 if test x$gcc_cv_as != x; then
25881 $as_echo "$conftest_s" > conftest.s
25882 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; }
25888 then
25889 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25890 && test x$gcc_cv_readelf != x \
25891 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
25892 | grep R_386_GOT32X > /dev/null 2>&1 \
25893 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25894 if $gcc_cv_objdump -dw conftest 2>&1 \
25895 | grep 0xffffff > /dev/null 2>&1; then
25896 gcc_cv_as_ix86_got32x=no
25897 else
25898 gcc_cv_as_ix86_got32x=yes
25901 rm -f conftest
25902 else
25903 echo "configure: failed program was" >&5
25904 cat conftest.s >&5
25906 rm -f conftest.o conftest.s
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
25910 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
25913 cat >>confdefs.h <<_ACEOF
25914 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
25915 _ACEOF
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25919 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25920 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25921 $as_echo_n "(cached) " >&6
25922 else
25923 gcc_cv_as_ix86_gotoff_in_data=no
25924 if test $in_tree_gas = yes; then
25925 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25926 then gcc_cv_as_ix86_gotoff_in_data=yes
25928 elif test x$gcc_cv_as != x; then
25929 $as_echo ' .text
25930 .L0:
25932 .data
25933 .long .L0@GOTOFF' > conftest.s
25934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25940 then
25941 gcc_cv_as_ix86_gotoff_in_data=yes
25942 else
25943 echo "configure: failed program was" >&5
25944 cat conftest.s >&5
25946 rm -f conftest.o conftest.s
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25950 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25953 cat >>confdefs.h <<_ACEOF
25954 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25955 _ACEOF
25958 conftest_s='
25959 .section .text,"ax",@progbits
25960 .globl _start
25961 .type _start, @function
25962 _start:
25963 leal ld@tlsldm(%ecx), %eax
25964 call *___tls_get_addr@GOT(%ecx)
25965 leal gd@tlsgd(%ecx), %eax
25966 call *___tls_get_addr@GOT(%ecx)
25968 .section .tdata,"aw'$tls_section_flag'",@progbits
25969 .type ld, @object
25971 .byte 0
25972 .globl gd
25973 .type gd, @object
25975 .byte 0'
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
25977 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
25978 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
25979 $as_echo_n "(cached) " >&6
25980 else
25981 gcc_cv_as_ix86_tls_get_addr_via_got=no
25982 if test x$gcc_cv_as != x; then
25983 $as_echo "$conftest_s" > conftest.s
25984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25986 (eval $ac_try) 2>&5
25987 ac_status=$?
25988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25989 test $ac_status = 0; }; }
25990 then
25991 if test x$gcc_cv_ld != x \
25992 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25993 gcc_cv_as_ix86_tls_get_addr_via_got=yes
25995 rm -f conftest
25996 else
25997 echo "configure: failed program was" >&5
25998 cat conftest.s >&5
26000 rm -f conftest.o conftest.s
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26004 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26007 cat >>confdefs.h <<_ACEOF
26008 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26009 _ACEOF
26013 ia64*-*-*)
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26015 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26016 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26017 $as_echo_n "(cached) " >&6
26018 else
26019 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26020 if test $in_tree_gas = yes; then
26021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26022 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26024 elif test x$gcc_cv_as != x; then
26025 $as_echo ' .text
26026 addl r15 = @ltoffx(x#), gp
26028 ld8.mov r16 = [r15], x#' > conftest.s
26029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26031 (eval $ac_try) 2>&5
26032 ac_status=$?
26033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26034 test $ac_status = 0; }; }
26035 then
26036 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26037 else
26038 echo "configure: failed program was" >&5
26039 cat conftest.s >&5
26041 rm -f conftest.o conftest.s
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26045 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26046 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26048 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26054 powerpc*-*-*)
26056 case $target in
26057 *-*-darwin*)
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26059 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26060 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26061 $as_echo_n "(cached) " >&6
26062 else
26063 gcc_cv_as_machine_directive=no
26064 if test x$gcc_cv_as != x; then
26065 $as_echo ' .machine ppc7400' > conftest.s
26066 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26068 (eval $ac_try) 2>&5
26069 ac_status=$?
26070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26071 test $ac_status = 0; }; }
26072 then
26073 gcc_cv_as_machine_directive=yes
26074 else
26075 echo "configure: failed program was" >&5
26076 cat conftest.s >&5
26078 rm -f conftest.o conftest.s
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26082 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26084 if test x$gcc_cv_as_machine_directive != xyes; then
26085 echo "*** This target requires an assembler supporting \".machine\"" >&2
26086 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26087 test x$build = x$target && exit 1
26090 esac
26092 case $target in
26093 *-*-aix*) conftest_s=' .machine "pwr5"
26094 .csect .text[PR]
26095 mfcr 3,128';;
26096 *-*-darwin*) conftest_s=' .text
26097 mfcr r3,128';;
26098 *) conftest_s=' .machine power4
26099 .text
26100 mfcr 3,128';;
26101 esac
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26104 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26105 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26108 gcc_cv_as_powerpc_mfcrf=no
26109 if test $in_tree_gas = yes; then
26110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26111 then gcc_cv_as_powerpc_mfcrf=yes
26113 elif test x$gcc_cv_as != x; then
26114 $as_echo "$conftest_s" > conftest.s
26115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; }
26121 then
26122 gcc_cv_as_powerpc_mfcrf=yes
26123 else
26124 echo "configure: failed program was" >&5
26125 cat conftest.s >&5
26127 rm -f conftest.o conftest.s
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26131 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26132 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26134 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26138 case $target in
26139 *-*-aix*) conftest_s=' .machine "pwr5"
26140 .csect .text[PR]
26141 popcntb 3,3';;
26142 *) conftest_s=' .machine power5
26143 .text
26144 popcntb 3,3';;
26145 esac
26147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26148 $as_echo_n "checking assembler for popcntb support... " >&6; }
26149 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26150 $as_echo_n "(cached) " >&6
26151 else
26152 gcc_cv_as_powerpc_popcntb=no
26153 if test $in_tree_gas = yes; then
26154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26155 then gcc_cv_as_powerpc_popcntb=yes
26157 elif test x$gcc_cv_as != x; then
26158 $as_echo "$conftest_s" > conftest.s
26159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26161 (eval $ac_try) 2>&5
26162 ac_status=$?
26163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26164 test $ac_status = 0; }; }
26165 then
26166 gcc_cv_as_powerpc_popcntb=yes
26167 else
26168 echo "configure: failed program was" >&5
26169 cat conftest.s >&5
26171 rm -f conftest.o conftest.s
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26175 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26176 if test $gcc_cv_as_powerpc_popcntb = yes; then
26178 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26182 case $target in
26183 *-*-aix*) conftest_s=' .machine "pwr5x"
26184 .csect .text[PR]
26185 frin 1,1';;
26186 *) conftest_s=' .machine power5
26187 .text
26188 frin 1,1';;
26189 esac
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26192 $as_echo_n "checking assembler for fp round support... " >&6; }
26193 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26194 $as_echo_n "(cached) " >&6
26195 else
26196 gcc_cv_as_powerpc_fprnd=no
26197 if test $in_tree_gas = yes; then
26198 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26199 then gcc_cv_as_powerpc_fprnd=yes
26201 elif test x$gcc_cv_as != x; then
26202 $as_echo "$conftest_s" > conftest.s
26203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26205 (eval $ac_try) 2>&5
26206 ac_status=$?
26207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26208 test $ac_status = 0; }; }
26209 then
26210 gcc_cv_as_powerpc_fprnd=yes
26211 else
26212 echo "configure: failed program was" >&5
26213 cat conftest.s >&5
26215 rm -f conftest.o conftest.s
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26219 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26220 if test $gcc_cv_as_powerpc_fprnd = yes; then
26222 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26226 case $target in
26227 *-*-aix*) conftest_s=' .machine "pwr6"
26228 .csect .text[PR]
26229 mffgpr 1,3';;
26230 *) conftest_s=' .machine power6
26231 .text
26232 mffgpr 1,3';;
26233 esac
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26236 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26237 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26238 $as_echo_n "(cached) " >&6
26239 else
26240 gcc_cv_as_powerpc_mfpgpr=no
26241 if test $in_tree_gas = yes; then
26242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26243 then gcc_cv_as_powerpc_mfpgpr=yes
26245 elif test x$gcc_cv_as != x; then
26246 $as_echo "$conftest_s" > conftest.s
26247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26249 (eval $ac_try) 2>&5
26250 ac_status=$?
26251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26252 test $ac_status = 0; }; }
26253 then
26254 gcc_cv_as_powerpc_mfpgpr=yes
26255 else
26256 echo "configure: failed program was" >&5
26257 cat conftest.s >&5
26259 rm -f conftest.o conftest.s
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26263 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26264 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26266 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26270 case $target in
26271 *-*-aix*) conftest_s=' .csect .text[PR]
26272 LCF..0:
26273 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26274 *-*-darwin*)
26275 conftest_s=' .text
26276 LCF0:
26277 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26278 *) conftest_s=' .text
26279 .LCF0:
26280 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26281 esac
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26284 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26285 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26286 $as_echo_n "(cached) " >&6
26287 else
26288 gcc_cv_as_powerpc_rel16=no
26289 if test $in_tree_gas = yes; then
26290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26291 then gcc_cv_as_powerpc_rel16=yes
26293 elif test x$gcc_cv_as != x; then
26294 $as_echo "$conftest_s" > conftest.s
26295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26297 (eval $ac_try) 2>&5
26298 ac_status=$?
26299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26300 test $ac_status = 0; }; }
26301 then
26302 gcc_cv_as_powerpc_rel16=yes
26303 else
26304 echo "configure: failed program was" >&5
26305 cat conftest.s >&5
26307 rm -f conftest.o conftest.s
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26311 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26312 if test $gcc_cv_as_powerpc_rel16 = yes; then
26314 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26318 case $target in
26319 *-*-aix*) conftest_s=' .machine "pwr6"
26320 .csect .text[PR]
26321 cmpb 3,4,5';;
26322 *) conftest_s=' .machine power6
26323 .text
26324 cmpb 3,4,5';;
26325 esac
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26328 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26329 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26330 $as_echo_n "(cached) " >&6
26331 else
26332 gcc_cv_as_powerpc_cmpb=no
26333 if test $in_tree_gas = yes; then
26334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26335 then gcc_cv_as_powerpc_cmpb=yes
26337 elif test x$gcc_cv_as != x; then
26338 $as_echo "$conftest_s" > conftest.s
26339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26344 test $ac_status = 0; }; }
26345 then
26346 gcc_cv_as_powerpc_cmpb=yes
26347 else
26348 echo "configure: failed program was" >&5
26349 cat conftest.s >&5
26351 rm -f conftest.o conftest.s
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26355 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26356 if test $gcc_cv_as_powerpc_cmpb = yes; then
26358 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26362 case $target in
26363 *-*-aix*) conftest_s=' .machine "pwr6"
26364 .csect .text[PR]
26365 dadd 1,2,3';;
26366 *) conftest_s=' .machine power6
26367 .text
26368 dadd 1,2,3';;
26369 esac
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26372 $as_echo_n "checking assembler for decimal float support... " >&6; }
26373 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26374 $as_echo_n "(cached) " >&6
26375 else
26376 gcc_cv_as_powerpc_dfp=no
26377 if test $in_tree_gas = yes; then
26378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26379 then gcc_cv_as_powerpc_dfp=yes
26381 elif test x$gcc_cv_as != x; then
26382 $as_echo "$conftest_s" > conftest.s
26383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }
26389 then
26390 gcc_cv_as_powerpc_dfp=yes
26391 else
26392 echo "configure: failed program was" >&5
26393 cat conftest.s >&5
26395 rm -f conftest.o conftest.s
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26399 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26400 if test $gcc_cv_as_powerpc_dfp = yes; then
26402 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26406 case $target in
26407 *-*-aix*) conftest_s=' .machine "pwr7"
26408 .csect .text[PR]
26409 lxvd2x 1,2,3';;
26410 *) conftest_s=' .machine power7
26411 .text
26412 lxvd2x 1,2,3';;
26413 esac
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26416 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26417 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26418 $as_echo_n "(cached) " >&6
26419 else
26420 gcc_cv_as_powerpc_vsx=no
26421 if test $in_tree_gas = yes; then
26422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26423 then gcc_cv_as_powerpc_vsx=yes
26425 elif test x$gcc_cv_as != x; then
26426 $as_echo "$conftest_s" > conftest.s
26427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; }
26433 then
26434 gcc_cv_as_powerpc_vsx=yes
26435 else
26436 echo "configure: failed program was" >&5
26437 cat conftest.s >&5
26439 rm -f conftest.o conftest.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26443 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26444 if test $gcc_cv_as_powerpc_vsx = yes; then
26446 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26450 case $target in
26451 *-*-aix*) conftest_s=' .machine "pwr7"
26452 .csect .text[PR]
26453 popcntd 3,3';;
26454 *) conftest_s=' .machine power7
26455 .text
26456 popcntd 3,3';;
26457 esac
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26460 $as_echo_n "checking assembler for popcntd support... " >&6; }
26461 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26462 $as_echo_n "(cached) " >&6
26463 else
26464 gcc_cv_as_powerpc_popcntd=no
26465 if test $in_tree_gas = yes; then
26466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26467 then gcc_cv_as_powerpc_popcntd=yes
26469 elif test x$gcc_cv_as != x; then
26470 $as_echo "$conftest_s" > conftest.s
26471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26474 ac_status=$?
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }
26477 then
26478 gcc_cv_as_powerpc_popcntd=yes
26479 else
26480 echo "configure: failed program was" >&5
26481 cat conftest.s >&5
26483 rm -f conftest.o conftest.s
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26487 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26488 if test $gcc_cv_as_powerpc_popcntd = yes; then
26490 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26494 case $target in
26495 *-*-aix*) conftest_s=' .machine "pwr8"
26496 .csect .text[PR]';;
26497 *) conftest_s=' .machine power8
26498 .text';;
26499 esac
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26502 $as_echo_n "checking assembler for power8 support... " >&6; }
26503 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26504 $as_echo_n "(cached) " >&6
26505 else
26506 gcc_cv_as_powerpc_power8=no
26507 if test $in_tree_gas = yes; then
26508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26509 then gcc_cv_as_powerpc_power8=yes
26511 elif test x$gcc_cv_as != x; then
26512 $as_echo "$conftest_s" > conftest.s
26513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26515 (eval $ac_try) 2>&5
26516 ac_status=$?
26517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26518 test $ac_status = 0; }; }
26519 then
26520 gcc_cv_as_powerpc_power8=yes
26521 else
26522 echo "configure: failed program was" >&5
26523 cat conftest.s >&5
26525 rm -f conftest.o conftest.s
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26529 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26530 if test $gcc_cv_as_powerpc_power8 = yes; then
26532 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26536 case $target in
26537 *-*-aix*) conftest_s=' .machine "pwr9"
26538 .csect .text[PR]';;
26539 *) conftest_s=' .machine power9
26540 .text';;
26541 esac
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26544 $as_echo_n "checking assembler for power9 support... " >&6; }
26545 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26546 $as_echo_n "(cached) " >&6
26547 else
26548 gcc_cv_as_powerpc_power9=no
26549 if test $in_tree_gas = yes; then
26550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26551 then gcc_cv_as_powerpc_power9=yes
26553 elif test x$gcc_cv_as != x; then
26554 $as_echo "$conftest_s" > conftest.s
26555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26557 (eval $ac_try) 2>&5
26558 ac_status=$?
26559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26560 test $ac_status = 0; }; }
26561 then
26562 gcc_cv_as_powerpc_power9=yes
26563 else
26564 echo "configure: failed program was" >&5
26565 cat conftest.s >&5
26567 rm -f conftest.o conftest.s
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26571 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26572 if test $gcc_cv_as_powerpc_power9 = yes; then
26574 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26578 case $target in
26579 *-*-aix*) conftest_s=' .csect .text[PR]
26580 lwsync';;
26581 *) conftest_s=' .text
26582 lwsync';;
26583 esac
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26586 $as_echo_n "checking assembler for lwsync support... " >&6; }
26587 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26589 else
26590 gcc_cv_as_powerpc_lwsync=no
26591 if test $in_tree_gas = yes; then
26592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26593 then gcc_cv_as_powerpc_lwsync=yes
26595 elif test x$gcc_cv_as != x; then
26596 $as_echo "$conftest_s" > conftest.s
26597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26602 test $ac_status = 0; }; }
26603 then
26604 gcc_cv_as_powerpc_lwsync=yes
26605 else
26606 echo "configure: failed program was" >&5
26607 cat conftest.s >&5
26609 rm -f conftest.o conftest.s
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26613 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26614 if test $gcc_cv_as_powerpc_lwsync = yes; then
26616 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26620 case $target in
26621 *-*-aix*) conftest_s=' .machine "476"
26622 .csect .text[PR]
26623 dci 0';;
26624 *) conftest_s=' .machine "476"
26625 .text
26626 dci 0';;
26627 esac
26629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26630 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26631 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26632 $as_echo_n "(cached) " >&6
26633 else
26634 gcc_cv_as_powerpc_dci=no
26635 if test $in_tree_gas = yes; then
26636 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26637 then gcc_cv_as_powerpc_dci=yes
26639 elif test x$gcc_cv_as != x; then
26640 $as_echo "$conftest_s" > conftest.s
26641 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_dci=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_powerpc_dci" >&5
26657 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26658 if test $gcc_cv_as_powerpc_dci = yes; then
26660 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26665 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26666 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26667 $as_echo_n "(cached) " >&6
26668 else
26669 gcc_cv_as_powerpc_gnu_attribute=no
26670 if test $in_tree_gas = yes; then
26671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26672 then gcc_cv_as_powerpc_gnu_attribute=yes
26674 elif test x$gcc_cv_as != x; then
26675 $as_echo '.gnu_attribute 4,1' > conftest.s
26676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26678 (eval $ac_try) 2>&5
26679 ac_status=$?
26680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26681 test $ac_status = 0; }; }
26682 then
26683 gcc_cv_as_powerpc_gnu_attribute=yes
26684 else
26685 echo "configure: failed program was" >&5
26686 cat conftest.s >&5
26688 rm -f conftest.o conftest.s
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26692 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26693 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26695 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26700 $as_echo_n "checking assembler for tls marker support... " >&6; }
26701 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26702 $as_echo_n "(cached) " >&6
26703 else
26704 gcc_cv_as_powerpc_tls_markers=no
26705 if test $in_tree_gas = yes; then
26706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26707 then gcc_cv_as_powerpc_tls_markers=yes
26709 elif test x$gcc_cv_as != x; then
26710 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26717 then
26718 gcc_cv_as_powerpc_tls_markers=yes
26719 else
26720 echo "configure: failed program was" >&5
26721 cat conftest.s >&5
26723 rm -f conftest.o conftest.s
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26727 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26728 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26730 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26735 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26736 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26737 $as_echo_n "(cached) " >&6
26738 else
26739 gcc_cv_as_powerpc_entry_markers=no
26740 if test $in_tree_gas = yes; then
26741 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26742 then gcc_cv_as_powerpc_entry_markers=yes
26744 elif test x$gcc_cv_as != x; then
26745 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26748 (eval $ac_try) 2>&5
26749 ac_status=$?
26750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26751 test $ac_status = 0; }; }
26752 then
26753 gcc_cv_as_powerpc_entry_markers=yes
26754 else
26755 echo "configure: failed program was" >&5
26756 cat conftest.s >&5
26758 rm -f conftest.o conftest.s
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26762 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26763 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26765 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26769 case $target in
26770 *-*-aix*)
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26772 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26773 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26774 $as_echo_n "(cached) " >&6
26775 else
26776 gcc_cv_as_aix_ref=no
26777 if test $in_tree_gas = yes; then
26778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26779 then gcc_cv_as_aix_ref=yes
26781 elif test x$gcc_cv_as != x; then
26782 $as_echo ' .csect stuff[rw]
26783 stuff:
26784 .long 1
26785 .extern sym
26786 .ref sym
26787 ' > conftest.s
26788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26790 (eval $ac_try) 2>&5
26791 ac_status=$?
26792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26793 test $ac_status = 0; }; }
26794 then
26795 gcc_cv_as_aix_ref=yes
26796 else
26797 echo "configure: failed program was" >&5
26798 cat conftest.s >&5
26800 rm -f conftest.o conftest.s
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26804 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26805 if test $gcc_cv_as_aix_ref = yes; then
26807 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26812 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26813 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26814 $as_echo_n "(cached) " >&6
26815 else
26816 gcc_cv_as_aix_dwloc=no
26817 if test $in_tree_gas = yes; then
26818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26819 then gcc_cv_as_aix_dwloc=yes
26821 elif test x$gcc_cv_as != x; then
26822 $as_echo ' .dwsect 0xA0000
26823 Lframe..0:
26824 .vbyte 4,Lframe..0
26825 ' > conftest.s
26826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26828 (eval $ac_try) 2>&5
26829 ac_status=$?
26830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26831 test $ac_status = 0; }; }
26832 then
26833 gcc_cv_as_aix_dwloc=yes
26834 else
26835 echo "configure: failed program was" >&5
26836 cat conftest.s >&5
26838 rm -f conftest.o conftest.s
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26842 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26843 if test $gcc_cv_as_aix_dwloc = yes; then
26845 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26849 esac
26852 mips*-*-*)
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26854 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26855 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26856 $as_echo_n "(cached) " >&6
26857 else
26858 gcc_cv_as_mips_explicit_relocs=no
26859 if test $in_tree_gas = yes; then
26860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26861 then gcc_cv_as_mips_explicit_relocs=yes
26863 elif test x$gcc_cv_as != x; then
26864 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }
26871 then
26872 gcc_cv_as_mips_explicit_relocs=yes
26873 else
26874 echo "configure: failed program was" >&5
26875 cat conftest.s >&5
26877 rm -f conftest.o conftest.s
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26881 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26882 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26883 if test x$target_cpu_default = x
26884 then target_cpu_default=MASK_EXPLICIT_RELOCS
26885 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26890 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26891 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26892 $as_echo_n "(cached) " >&6
26893 else
26894 gcc_cv_as_mips_no_shared=no
26895 if test $in_tree_gas = yes; then
26896 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26897 then gcc_cv_as_mips_no_shared=yes
26899 elif test x$gcc_cv_as != x; then
26900 $as_echo 'nop' > conftest.s
26901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26903 (eval $ac_try) 2>&5
26904 ac_status=$?
26905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26906 test $ac_status = 0; }; }
26907 then
26908 gcc_cv_as_mips_no_shared=yes
26909 else
26910 echo "configure: failed program was" >&5
26911 cat conftest.s >&5
26913 rm -f conftest.o conftest.s
26916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26917 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26918 if test $gcc_cv_as_mips_no_shared = yes; then
26920 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26925 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26926 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26927 $as_echo_n "(cached) " >&6
26928 else
26929 gcc_cv_as_mips_gnu_attribute=no
26930 if test $in_tree_gas = yes; then
26931 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26932 then gcc_cv_as_mips_gnu_attribute=yes
26934 elif test x$gcc_cv_as != x; then
26935 $as_echo '.gnu_attribute 4,1' > conftest.s
26936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26938 (eval $ac_try) 2>&5
26939 ac_status=$?
26940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26941 test $ac_status = 0; }; }
26942 then
26943 gcc_cv_as_mips_gnu_attribute=yes
26944 else
26945 echo "configure: failed program was" >&5
26946 cat conftest.s >&5
26948 rm -f conftest.o conftest.s
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26952 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26953 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26955 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26960 $as_echo_n "checking assembler for .module support... " >&6; }
26961 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26962 $as_echo_n "(cached) " >&6
26963 else
26964 gcc_cv_as_mips_dot_module=no
26965 if test x$gcc_cv_as != x; then
26966 $as_echo '.module mips2
26967 .module fp=xx' > conftest.s
26968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26970 (eval $ac_try) 2>&5
26971 ac_status=$?
26972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26973 test $ac_status = 0; }; }
26974 then
26975 gcc_cv_as_mips_dot_module=yes
26976 else
26977 echo "configure: failed program was" >&5
26978 cat conftest.s >&5
26980 rm -f conftest.o conftest.s
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26984 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26985 if test $gcc_cv_as_mips_dot_module = yes; then
26987 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26990 if test x$gcc_cv_as_mips_dot_module = xno \
26991 && test x$with_fp_32 != x; then
26992 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26996 $as_echo_n "checking assembler for .micromips support... " >&6; }
26997 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26998 $as_echo_n "(cached) " >&6
26999 else
27000 gcc_cv_as_micromips_support=no
27001 if test x$gcc_cv_as != x; then
27002 $as_echo '.set micromips' > conftest.s
27003 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27005 (eval $ac_try) 2>&5
27006 ac_status=$?
27007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27008 test $ac_status = 0; }; }
27009 then
27010 gcc_cv_as_micromips_support=yes
27011 else
27012 echo "configure: failed program was" >&5
27013 cat conftest.s >&5
27015 rm -f conftest.o conftest.s
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27019 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27020 if test $gcc_cv_as_micromips_support = yes; then
27022 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27027 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27028 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27029 $as_echo_n "(cached) " >&6
27030 else
27031 gcc_cv_as_mips_dtprelword=no
27032 if test $in_tree_gas = yes; then
27033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27034 then gcc_cv_as_mips_dtprelword=yes
27036 elif test x$gcc_cv_as != x; then
27037 $as_echo '.section .tdata,"awT",@progbits
27039 .word 2
27040 .text
27041 .dtprelword x+0x8000' > conftest.s
27042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27044 (eval $ac_try) 2>&5
27045 ac_status=$?
27046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27047 test $ac_status = 0; }; }
27048 then
27049 gcc_cv_as_mips_dtprelword=yes
27050 else
27051 echo "configure: failed program was" >&5
27052 cat conftest.s >&5
27054 rm -f conftest.o conftest.s
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27058 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27059 if test $gcc_cv_as_mips_dtprelword = yes; then
27061 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27066 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27067 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27068 $as_echo_n "(cached) " >&6
27069 else
27070 gcc_cv_as_mips_dspr1_mult=no
27071 if test x$gcc_cv_as != x; then
27072 $as_echo ' .set mips32r2
27073 .set nodspr2
27074 .set dsp
27075 madd $ac3,$4,$5
27076 maddu $ac3,$4,$5
27077 msub $ac3,$4,$5
27078 msubu $ac3,$4,$5
27079 mult $ac3,$4,$5
27080 multu $ac3,$4,$5' > conftest.s
27081 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27086 test $ac_status = 0; }; }
27087 then
27088 gcc_cv_as_mips_dspr1_mult=yes
27089 else
27090 echo "configure: failed program was" >&5
27091 cat conftest.s >&5
27093 rm -f conftest.o conftest.s
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27097 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27098 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27100 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27105 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27106 gcc_cv_as_ld_jalr_reloc=no
27107 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27108 if test $in_tree_ld = yes ; then
27109 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 \
27110 && test $in_tree_ld_is_elf = yes; then
27111 gcc_cv_as_ld_jalr_reloc=yes
27113 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27114 echo ' .ent x' > conftest.s
27115 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27116 echo ' lw $25,%call16(y)($28)' >> conftest.s
27117 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27118 echo '1: jalr $25' >> conftest.s
27119 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27120 echo '1: jalr $25' >> conftest.s
27121 echo ' .end x' >> conftest.s
27122 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27123 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27124 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27125 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27126 gcc_cv_as_ld_jalr_reloc=yes
27129 rm -f conftest.*
27132 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27133 if test x$target_cpu_default = x; then
27134 target_cpu_default=MASK_RELAX_PIC_CALLS
27135 else
27136 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27140 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27143 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27144 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27145 $as_echo_n "(cached) " >&6
27146 else
27147 gcc_cv_ld_mips_personality_relaxation=no
27148 if test $in_tree_ld = yes ; then
27149 if test "$gcc_cv_gld_major_version" -eq 2 \
27150 -a "$gcc_cv_gld_minor_version" -ge 21 \
27151 -o "$gcc_cv_gld_major_version" -gt 2; then
27152 gcc_cv_ld_mips_personality_relaxation=yes
27154 elif test x$gcc_cv_as != x \
27155 -a x$gcc_cv_ld != x \
27156 -a x$gcc_cv_readelf != x ; then
27157 cat > conftest.s <<EOF
27158 .cfi_startproc
27159 .cfi_personality 0x80,indirect_ptr
27160 .ent test
27161 test:
27163 .end test
27164 .cfi_endproc
27166 .section .data,"aw",@progbits
27167 indirect_ptr:
27168 .dc.a personality
27170 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27171 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27172 if $gcc_cv_readelf -d conftest 2>&1 \
27173 | grep TEXTREL > /dev/null 2>&1; then
27175 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27176 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27178 else
27179 gcc_cv_ld_mips_personality_relaxation=yes
27183 rm -f conftest.s conftest.o conftest
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27186 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27187 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27189 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27194 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27195 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27196 $as_echo_n "(cached) " >&6
27197 else
27198 gcc_cv_as_mips_nan=no
27199 if test x$gcc_cv_as != x; then
27200 $as_echo '' > conftest.s
27201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27206 test $ac_status = 0; }; }
27207 then
27208 gcc_cv_as_mips_nan=yes
27209 else
27210 echo "configure: failed program was" >&5
27211 cat conftest.s >&5
27213 rm -f conftest.o conftest.s
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27217 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27218 if test $gcc_cv_as_mips_nan = yes; then
27220 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27223 if test x$gcc_cv_as_mips_nan = xno \
27224 && test x$with_nan != x; then
27225 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27228 s390*-*-*)
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27230 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27231 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27232 $as_echo_n "(cached) " >&6
27233 else
27234 gcc_cv_as_s390_gnu_attribute=no
27235 if test $in_tree_gas = yes; then
27236 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27237 then gcc_cv_as_s390_gnu_attribute=yes
27239 elif test x$gcc_cv_as != x; then
27240 $as_echo '.gnu_attribute 8,1' > conftest.s
27241 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27243 (eval $ac_try) 2>&5
27244 ac_status=$?
27245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27246 test $ac_status = 0; }; }
27247 then
27248 gcc_cv_as_s390_gnu_attribute=yes
27249 else
27250 echo "configure: failed program was" >&5
27251 cat conftest.s >&5
27253 rm -f conftest.o conftest.s
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27257 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27258 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27260 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27264 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27265 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27266 $as_echo_n "(cached) " >&6
27267 else
27268 gcc_cv_as_s390_machine_machinemode=no
27269 if test $in_tree_gas = yes; then
27270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27271 then gcc_cv_as_s390_machine_machinemode=yes
27273 elif test x$gcc_cv_as != x; then
27274 $as_echo ' .machinemode push
27275 .machinemode pop
27276 .machine push
27277 .machine pop' > conftest.s
27278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27280 (eval $ac_try) 2>&5
27281 ac_status=$?
27282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27283 test $ac_status = 0; }; }
27284 then
27285 gcc_cv_as_s390_machine_machinemode=yes
27286 else
27287 echo "configure: failed program was" >&5
27288 cat conftest.s >&5
27290 rm -f conftest.o conftest.s
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27294 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27295 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27297 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27301 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27302 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27303 $as_echo_n "(cached) " >&6
27304 else
27305 gcc_cv_as_s390_architecture_modifiers=no
27306 if test $in_tree_gas = yes; then
27307 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27308 then gcc_cv_as_s390_architecture_modifiers=yes
27310 elif test x$gcc_cv_as != x; then
27311 $as_echo ' .machine z13+vx ' > conftest.s
27312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27314 (eval $ac_try) 2>&5
27315 ac_status=$?
27316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27317 test $ac_status = 0; }; }
27318 then
27319 gcc_cv_as_s390_architecture_modifiers=yes
27320 else
27321 echo "configure: failed program was" >&5
27322 cat conftest.s >&5
27324 rm -f conftest.o conftest.s
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27328 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27329 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27331 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27335 esac
27337 # Mips and HP-UX need the GNU assembler.
27338 # Linux on IA64 might be able to use the Intel assembler.
27340 case "$target" in
27341 mips*-*-* | *-*-hpux* )
27342 if test x$gas_flag = xyes \
27343 || test x"$host" != x"$build" \
27344 || test ! -x "$gcc_cv_as" \
27345 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27347 else
27348 echo "*** This configuration requires the GNU assembler" >&2
27349 exit 1
27352 esac
27354 # ??? Not all targets support dwarf2 debug_line, even within a version
27355 # of gas. Moreover, we need to emit a valid instruction to trigger any
27356 # info to the output file. So, as supported targets are added to gas 2.11,
27357 # add some instruction here to (also) show we expect this might work.
27358 # ??? Once 2.11 is released, probably need to add first known working
27359 # version to the per-target configury.
27360 case "$cpu_type" in
27361 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27362 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27363 | visium | xstormy16 | xtensa)
27364 insn="nop"
27366 ia64 | s390)
27367 insn="nop 0"
27369 mmix)
27370 insn="swym 0"
27372 esac
27373 if test x"$insn" != x; then
27374 conftest_s="\
27375 .file 1 \"conftest.s\"
27376 .loc 1 3 0
27377 $insn"
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27379 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27380 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27381 $as_echo_n "(cached) " >&6
27382 else
27383 gcc_cv_as_dwarf2_debug_line=no
27384 if test $in_tree_gas = yes; then
27385 if test $in_tree_gas_is_elf = yes \
27386 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27387 then gcc_cv_as_dwarf2_debug_line=yes
27389 elif test x$gcc_cv_as != x; then
27390 $as_echo "$conftest_s" > conftest.s
27391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27393 (eval $ac_try) 2>&5
27394 ac_status=$?
27395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27396 test $ac_status = 0; }; }
27397 then
27398 if test x$gcc_cv_objdump != x \
27399 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27400 | grep debug_line > /dev/null 2>&1; then
27401 gcc_cv_as_dwarf2_debug_line=yes
27403 else
27404 echo "configure: failed program was" >&5
27405 cat conftest.s >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27411 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27414 # The .debug_line file table must be in the exact order that
27415 # we specified the files, since these indices are also used
27416 # by DW_AT_decl_file. Approximate this test by testing if
27417 # the assembler bitches if the same index is assigned twice.
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27419 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27420 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27421 $as_echo_n "(cached) " >&6
27422 else
27423 gcc_cv_as_dwarf2_file_buggy=no
27424 if test x$gcc_cv_as != x; then
27425 $as_echo ' .file 1 "foo.s"
27426 .file 1 "bar.s"' > conftest.s
27427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27429 (eval $ac_try) 2>&5
27430 ac_status=$?
27431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27432 test $ac_status = 0; }; }
27433 then
27434 gcc_cv_as_dwarf2_file_buggy=yes
27435 else
27436 echo "configure: failed program was" >&5
27437 cat conftest.s >&5
27439 rm -f conftest.o conftest.s
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27443 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27446 if test $gcc_cv_as_dwarf2_debug_line = yes \
27447 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27449 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27454 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27455 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27456 $as_echo_n "(cached) " >&6
27457 else
27458 gcc_cv_as_gdwarf2_flag=no
27459 if test $in_tree_gas = yes; then
27460 if test $in_tree_gas_is_elf = yes \
27461 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27462 then gcc_cv_as_gdwarf2_flag=yes
27464 elif test x$gcc_cv_as != x; then
27465 $as_echo "$insn" > conftest.s
27466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27468 (eval $ac_try) 2>&5
27469 ac_status=$?
27470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27471 test $ac_status = 0; }; }
27472 then
27473 gcc_cv_as_gdwarf2_flag=yes
27474 else
27475 echo "configure: failed program was" >&5
27476 cat conftest.s >&5
27478 rm -f conftest.o conftest.s
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27482 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27483 if test $gcc_cv_as_gdwarf2_flag = yes; then
27485 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27490 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27491 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27492 $as_echo_n "(cached) " >&6
27493 else
27494 gcc_cv_as_gstabs_flag=no
27495 if test $in_tree_gas = yes; then
27496 if test $in_tree_gas_is_elf = yes \
27497 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27498 then gcc_cv_as_gstabs_flag=yes
27500 elif test x$gcc_cv_as != x; then
27501 $as_echo "$insn" > conftest.s
27502 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27504 (eval $ac_try) 2>&5
27505 ac_status=$?
27506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27507 test $ac_status = 0; }; }
27508 then
27509 gcc_cv_as_gstabs_flag=yes
27510 else
27511 echo "configure: failed program was" >&5
27512 cat conftest.s >&5
27514 rm -f conftest.o conftest.s
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27518 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27519 if test $gcc_cv_as_gstabs_flag = yes; then
27521 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27526 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27527 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27528 $as_echo_n "(cached) " >&6
27529 else
27530 gcc_cv_as_debug_prefix_map_flag=no
27531 if test $in_tree_gas = yes; then
27532 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27533 then gcc_cv_as_debug_prefix_map_flag=yes
27535 elif test x$gcc_cv_as != x; then
27536 $as_echo "$insn" > conftest.s
27537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27543 then
27544 gcc_cv_as_debug_prefix_map_flag=yes
27545 else
27546 echo "configure: failed program was" >&5
27547 cat conftest.s >&5
27549 rm -f conftest.o conftest.s
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27553 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27554 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27556 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27562 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27563 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27564 $as_echo_n "(cached) " >&6
27565 else
27566 gcc_cv_as_compress_debug=no
27567 if test x$gcc_cv_as != x; then
27568 $as_echo '' > conftest.s
27569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; }
27575 then
27576 # gas compiled without zlib cannot compress debug sections and warns
27577 # about it, but still exits successfully. So check for this, too.
27578 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27579 then
27580 gcc_cv_as_compress_debug=0
27581 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27582 # defaulting to the ELF gABI format.
27583 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27584 then
27585 gcc_cv_as_compress_debug=2
27586 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27587 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27588 # Before binutils 2.26, gas only supported --compress-debug-options and
27589 # emitted the traditional GNU format.
27590 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27591 then
27592 gcc_cv_as_compress_debug=1
27593 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27594 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27595 else
27596 gcc_cv_as_compress_debug=0
27598 else
27599 echo "configure: failed program was" >&5
27600 cat conftest.s >&5
27602 rm -f conftest.o conftest.s
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27606 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27609 cat >>confdefs.h <<_ACEOF
27610 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27611 _ACEOF
27614 cat >>confdefs.h <<_ACEOF
27615 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27616 _ACEOF
27619 cat >>confdefs.h <<_ACEOF
27620 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27621 _ACEOF
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27625 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27626 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27627 $as_echo_n "(cached) " >&6
27628 else
27629 gcc_cv_as_lcomm_with_alignment=no
27630 if test x$gcc_cv_as != x; then
27631 $as_echo '.lcomm bar,4,16' > conftest.s
27632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27634 (eval $ac_try) 2>&5
27635 ac_status=$?
27636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27637 test $ac_status = 0; }; }
27638 then
27639 gcc_cv_as_lcomm_with_alignment=yes
27640 else
27641 echo "configure: failed program was" >&5
27642 cat conftest.s >&5
27644 rm -f conftest.o conftest.s
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27648 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27649 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27651 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27655 if test x$with_sysroot = x && test x$host = x$target \
27656 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27657 && test "$prefix" != "NONE"; then
27659 cat >>confdefs.h <<_ACEOF
27660 #define PREFIX_INCLUDE_DIR "$prefix/include"
27661 _ACEOF
27665 # Determine the version of glibc, if any, used on the target.
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27667 $as_echo_n "checking for target glibc version... " >&6; }
27669 # Check whether --with-glibc-version was given.
27670 if test "${with_glibc_version+set}" = set; then :
27671 withval=$with_glibc_version;
27672 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27673 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27674 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27675 else
27676 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27678 else
27680 glibc_version_major=0
27681 glibc_version_minor=0
27682 if test -f $target_header_dir/features.h \
27683 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27684 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27685 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27686 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27691 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27693 cat >>confdefs.h <<_ACEOF
27694 #define TARGET_GLIBC_MAJOR $glibc_version_major
27695 _ACEOF
27698 cat >>confdefs.h <<_ACEOF
27699 #define TARGET_GLIBC_MINOR $glibc_version_minor
27700 _ACEOF
27703 # Check whether --enable-gnu-unique-object was given.
27704 if test "${enable_gnu_unique_object+set}" = set; then :
27705 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27706 yes | no) ;;
27707 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27708 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27709 esac
27710 else
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27712 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27713 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27714 $as_echo_n "(cached) " >&6
27715 else
27716 gcc_cv_as_gnu_unique_object=no
27717 if test $in_tree_gas = yes; then
27718 if test $in_tree_gas_is_elf = yes \
27719 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27720 then gcc_cv_as_gnu_unique_object=yes
27722 elif test x$gcc_cv_as != x; then
27723 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27726 (eval $ac_try) 2>&5
27727 ac_status=$?
27728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27729 test $ac_status = 0; }; }
27730 then
27731 gcc_cv_as_gnu_unique_object=yes
27732 else
27733 echo "configure: failed program was" >&5
27734 cat conftest.s >&5
27736 rm -f conftest.o conftest.s
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27740 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27741 if test $gcc_cv_as_gnu_unique_object = yes; then
27742 # We need to unquote above to to use the definition from config.gcc.
27743 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27745 if test $glibc_version_major -gt 2 \
27746 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27747 enable_gnu_unique_object=yes
27753 if test x$enable_gnu_unique_object = xyes; then
27755 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27760 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27761 if test "${gcc_cv_as_line_zero+set}" = set; then :
27762 $as_echo_n "(cached) " >&6
27763 else
27764 gcc_cv_as_line_zero=no
27765 if test $in_tree_gas = yes; then
27766 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27767 then gcc_cv_as_line_zero=yes
27769 elif test "x$gcc_cv_as" != x; then
27770 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27771 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27773 (eval $ac_try) 2>&5
27774 ac_status=$?
27775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27776 test $ac_status = 0; }; } &&
27777 test "x`cat conftest.out`" = x
27778 then
27779 gcc_cv_as_line_zero=yes
27780 else
27781 echo "configure: failed program was" >&5
27782 cat conftest.s >&5
27783 echo "configure: error output was" >&5
27784 cat conftest.out >&5
27786 rm -f conftest.o conftest.s conftest.out
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27790 $as_echo "$gcc_cv_as_line_zero" >&6; }
27791 if test "x$gcc_cv_as_line_zero" = xyes; then
27793 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27798 $as_echo_n "checking support for thin archives... " >&6; }
27799 thin_archive_support=no
27800 echo 'int main (void) { return 0; }' > conftest.c
27801 if ($AR --version | sed 1q | grep "GNU ar" \
27802 && $CC $CFLAGS -c conftest.c \
27803 && $AR rcT conftest.a conftest.o \
27804 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27805 thin_archive_support=yes
27807 rm -f conftest.c conftest.o conftest.a conftest
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27809 $as_echo "$thin_archive_support" >&6; }
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27813 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27814 gcc_cv_ld_eh_frame_hdr=no
27815 if test $in_tree_ld = yes ; then
27816 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 \
27817 && test $in_tree_ld_is_elf = yes; then
27818 gcc_cv_ld_eh_frame_hdr=yes
27820 elif test x$gcc_cv_ld != x; then
27821 if echo "$ld_ver" | grep GNU > /dev/null; then
27822 # Check if linker supports --eh-frame-hdr option
27823 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27824 gcc_cv_ld_eh_frame_hdr=yes
27826 else
27827 case "$target" in
27828 *-*-solaris2*)
27829 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27830 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27831 gcc_cv_ld_eh_frame_hdr=yes
27834 esac
27838 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27840 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27844 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27847 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27848 gcc_cv_ld_eh_frame_ciev3=no
27849 if test $in_tree_ld = yes ; then
27850 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
27851 && test $in_tree_ld_is_elf = yes; then
27852 gcc_cv_ld_eh_frame_ciev3=yes
27854 elif test x$gcc_cv_ld != x; then
27855 if echo "$ld_ver" | grep GNU > /dev/null; then
27856 gcc_cv_ld_eh_frame_ciev3=yes
27857 if test 0"$ld_date" -lt 20040513; then
27858 if test -n "$ld_date"; then
27859 # If there was date string, but was earlier than 2004-05-13, fail
27860 gcc_cv_ld_eh_frame_ciev3=no
27861 elif test "$ld_vers_major" -lt 2; then
27862 gcc_cv_ld_eh_frame_ciev3=no
27863 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27864 gcc_cv_ld_eh_frame_ciev3=no
27867 else
27868 case "$target" in
27869 *-*-solaris2*)
27870 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27871 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27872 gcc_cv_ld_eh_frame_ciev3=yes
27875 esac
27879 cat >>confdefs.h <<_ACEOF
27880 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27881 _ACEOF
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27884 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27887 $as_echo_n "checking linker position independent executable support... " >&6; }
27888 gcc_cv_ld_pie=no
27889 if test $in_tree_ld = yes ; then
27890 case "$target" in
27891 # Full PIE support on Solaris was only introduced in gld 2.26.
27892 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27893 *) gcc_gld_pie_min_version=15 ;;
27894 esac
27895 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
27896 && test $in_tree_ld_is_elf = yes; then
27897 gcc_cv_ld_pie=yes
27899 elif test x$gcc_cv_ld != x; then
27900 # Check if linker supports -pie option
27901 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27902 gcc_cv_ld_pie=yes
27903 case "$target" in
27904 *-*-solaris2*)
27905 if echo "$ld_ver" | grep GNU > /dev/null \
27906 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27907 gcc_cv_ld_pie=no
27910 esac
27911 else
27912 case "$target" in
27913 *-*-solaris2.1[1-9]*)
27914 # Solaris 11.x and Solaris 12 added PIE support.
27915 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27916 gcc_cv_ld_pie=yes
27919 esac
27922 if test x"$gcc_cv_ld_pie" = xyes; then
27924 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27928 $as_echo "$gcc_cv_ld_pie" >&6; }
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27931 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27932 gcc_cv_ld_pie_copyreloc=no
27933 if test $gcc_cv_ld_pie = yes ; then
27934 if test $in_tree_ld = yes ; then
27935 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
27936 gcc_cv_ld_pie_copyreloc=yes
27938 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27939 # Check if linker supports -pie option with copy reloc
27940 case "$target" in
27941 i?86-*-linux* | x86_64-*-linux*)
27942 cat > conftest1.s <<EOF
27943 .globl a_glob
27944 .data
27945 .type a_glob, @object
27946 .size a_glob, 4
27947 a_glob:
27948 .long 2
27950 cat > conftest2.s <<EOF
27951 .text
27952 .globl main
27953 .type main, @function
27954 main:
27955 movl %eax, a_glob(%rip)
27956 .size main, .-main
27957 .globl ptr
27958 .section .data.rel,"aw",@progbits
27959 .type ptr, @object
27960 ptr:
27961 .quad a_glob
27963 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27964 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27965 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27966 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27967 gcc_cv_ld_pie_copyreloc=yes
27969 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27971 esac
27975 cat >>confdefs.h <<_ACEOF
27976 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27977 _ACEOF
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27980 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27983 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27984 gcc_cv_ld_eh_gc_sections=no
27985 if test $in_tree_ld = yes ; then
27986 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 \
27987 && test $in_tree_ld_is_elf = yes; then
27988 gcc_cv_ld_eh_gc_sections=yes
27990 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27991 cat > conftest.s <<EOF
27992 .section .text
27993 .globl _start
27994 .type _start, @function
27995 _start:
27996 .long foo
27997 .size _start, .-_start
27998 .section .text.foo,"ax",@progbits
27999 .type foo, @function
28000 foo:
28001 .long 0
28002 .size foo, .-foo
28003 .section .gcc_except_table.foo,"a",@progbits
28004 .L0:
28005 .long 0
28006 .section .eh_frame,"a",@progbits
28007 .long .L0
28009 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28010 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28011 | grep "gc-sections option ignored" > /dev/null; then
28012 gcc_cv_ld_eh_gc_sections=no
28013 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28014 | grep gcc_except_table > /dev/null; then
28015 gcc_cv_ld_eh_gc_sections=yes
28016 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28017 if test x$gcc_cv_as_comdat_group != xyes; then
28018 gcc_cv_ld_eh_gc_sections=no
28019 cat > conftest.s <<EOF
28020 .section .text
28021 .globl _start
28022 .type _start, @function
28023 _start:
28024 .long foo
28025 .size _start, .-_start
28026 .section .gnu.linkonce.t.foo,"ax",@progbits
28027 .type foo, @function
28028 foo:
28029 .long 0
28030 .size foo, .-foo
28031 .section .gcc_except_table.foo,"a",@progbits
28032 .L0:
28033 .long 0
28034 .section .eh_frame,"a",@progbits
28035 .long .L0
28037 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28038 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28039 | grep "gc-sections option ignored" > /dev/null; then
28040 gcc_cv_ld_eh_gc_sections=no
28041 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28042 | grep gcc_except_table > /dev/null; then
28043 gcc_cv_ld_eh_gc_sections=yes
28049 rm -f conftest.s conftest.o conftest
28051 case "$target" in
28052 hppa*-*-linux*)
28053 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28054 gcc_cv_ld_eh_gc_sections=no
28056 esac
28057 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28059 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28063 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28066 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28067 gcc_cv_ld_eh_gc_sections_bug=no
28068 if test $in_tree_ld = yes ; then
28069 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 \
28070 && test $in_tree_ld_is_elf = yes; then
28071 gcc_cv_ld_eh_gc_sections_bug=yes
28073 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
28074 gcc_cv_ld_eh_gc_sections_bug=yes
28075 cat > conftest.s <<EOF
28076 .section .text
28077 .globl _start
28078 .type _start, @function
28079 _start:
28080 .long foo
28081 .size _start, .-_start
28082 .section .text.startup.foo,"ax",@progbits
28083 .type foo, @function
28084 foo:
28085 .long 0
28086 .size foo, .-foo
28087 .section .gcc_except_table.foo,"a",@progbits
28088 .L0:
28089 .long 0
28090 .section .eh_frame,"a",@progbits
28091 .long .L0
28093 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28094 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28095 | grep "gc-sections option ignored" > /dev/null; then
28097 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28098 | grep gcc_except_table > /dev/null; then
28099 gcc_cv_ld_eh_gc_sections_bug=no
28102 rm -f conftest.s conftest.o conftest
28104 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28106 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28110 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28113 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28114 # gold/gld support compressed debug sections since binutils 2.19/2.21
28115 # In binutils 2.26, gld gained support for the ELF gABI format.
28116 if test $in_tree_ld = yes ; then
28117 gcc_cv_ld_compress_debug=0
28118 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 \
28119 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28120 gcc_cv_ld_compress_debug=2
28121 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28122 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28123 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28124 gcc_cv_ld_compress_debug=3
28125 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28126 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 \
28127 && test $in_tree_ld_is_elf = yes; then
28128 gcc_cv_ld_compress_debug=1
28130 elif echo "$ld_ver" | grep GNU > /dev/null; then
28131 if test "$ld_vers_major" -lt 2 \
28132 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28133 gcc_cv_ld_compress_debug=0
28134 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28135 gcc_cv_ld_compress_debug=1
28136 else
28137 gcc_cv_ld_compress_debug=3
28138 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28140 if test $ld_is_gold = yes; then
28141 gcc_cv_ld_compress_debug=2
28142 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28144 else
28145 case "${target}" in
28146 *-*-solaris2*)
28147 # Introduced in Solaris 11.2.
28148 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28149 gcc_cv_ld_compress_debug=3
28150 gcc_cv_ld_compress_debug_option="-z compress-sections"
28151 else
28152 gcc_cv_ld_compress_debug=0
28156 # Assume linkers other than GNU ld don't support compessed debug
28157 # sections.
28158 gcc_cv_ld_compress_debug=0
28160 esac
28163 cat >>confdefs.h <<_ACEOF
28164 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28165 _ACEOF
28168 cat >>confdefs.h <<_ACEOF
28169 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28170 _ACEOF
28172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28173 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28175 # --------
28176 # UNSORTED
28177 # --------
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28180 $as_echo_n "checking linker --as-needed support... " >&6; }
28181 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28182 $as_echo_n "(cached) " >&6
28183 else
28184 gcc_cv_ld_as_needed=no
28185 gcc_cv_ld_as_needed_option='--as-needed'
28186 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28187 if test $in_tree_ld = yes ; then
28188 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 \
28189 && test $in_tree_ld_is_elf = yes; then
28190 gcc_cv_ld_as_needed=yes
28192 elif test x$gcc_cv_ld != x; then
28193 # Check if linker supports --as-needed and --no-as-needed options
28194 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28195 gcc_cv_ld_as_needed=yes
28196 else
28197 case "$target" in
28198 # Solaris 2 ld always supports -z ignore/-z record.
28199 *-*-solaris2*)
28200 gcc_cv_ld_as_needed=yes
28201 gcc_cv_ld_as_needed_option="-z ignore"
28202 gcc_cv_ld_no_as_needed_option="-z record"
28204 esac
28207 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28208 # dl_iterate_phdr, i.e. since Solaris 11.
28209 case "$target" in
28210 *-*-solaris2.1[1-9]*)
28211 case "$target" in
28212 i?86-*-* | x86_64-*-*)
28213 if echo "$ld_ver" | grep GNU > /dev/null; then
28214 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28215 gcc_cv_ld_as_needed=no
28218 esac
28220 *-*-solaris2*)
28221 gcc_cv_ld_as_needed=no
28223 esac
28226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28227 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28228 if test x"$gcc_cv_ld_as_needed" = xyes; then
28230 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28233 cat >>confdefs.h <<_ACEOF
28234 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28235 _ACEOF
28238 cat >>confdefs.h <<_ACEOF
28239 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28240 _ACEOF
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28245 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28246 saved_LDFLAGS="$LDFLAGS"
28247 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28248 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28250 /* end confdefs.h. */
28251 int main(void) {return 0;}
28252 _ACEOF
28253 if ac_fn_cxx_try_link "$LINENO"; then :
28254 gcc_cv_ld_clearcap=yes; break
28255 else
28256 gcc_cv_ld_clearcap=no
28258 rm -f core conftest.err conftest.$ac_objext \
28259 conftest$ac_exeext conftest.$ac_ext
28260 done
28261 LDFLAGS="$saved_LDFLAGS"
28262 if test "x$gcc_cv_ld_clearcap" = xyes; then
28264 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28266 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28270 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28272 case "$target" in
28273 powerpc*-*-*)
28274 case "$target" in
28275 *le-*-linux*)
28276 emul_name="-melf32lppc"
28279 emul_name="-melf32ppc"
28281 esac
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28283 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28284 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28285 $as_echo_n "(cached) " >&6
28286 else
28287 gcc_cv_ld_ppc_attr=no
28288 if test x"$ld_is_gold" = xyes; then
28289 gcc_cv_ld_ppc_attr=yes
28290 elif test $in_tree_ld = yes ; then
28291 if test "$gcc_cv_gld_major_version" -eq 2 \
28292 -a "$gcc_cv_gld_minor_version" -ge 28 \
28293 -o "$gcc_cv_gld_major_version" -gt 2; then
28294 gcc_cv_ld_ppc_attr=yes
28296 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28297 # check that merging the long double .gnu_attribute doesn't warn
28298 cat > conftest1.s <<EOF
28299 .gnu_attribute 4,1
28301 cat > conftest2.s <<EOF
28302 .gnu_attribute 4,9
28304 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28305 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28306 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28307 && test ! -s conftest.err; then
28308 gcc_cv_ld_ppc_attr=yes
28310 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28315 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28316 if test x$gcc_cv_ld_ppc_attr = xyes; then
28318 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28322 esac
28324 case "$target:$tm_file" in
28325 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28326 case "$target" in
28327 *le-*-linux*)
28328 emul_name="-melf64lppc"
28330 *-*-linux*)
28331 emul_name="-melf64ppc"
28333 *-*-freebsd*)
28334 emul_name="-melf64ppc_fbsd"
28336 esac
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28338 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28339 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28340 $as_echo_n "(cached) " >&6
28341 else
28342 gcc_cv_ld_no_dot_syms=no
28343 if test x"$ld_is_gold" = xyes; then
28344 gcc_cv_ld_no_dot_syms=yes
28345 elif test $in_tree_ld = yes ; then
28346 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
28347 gcc_cv_ld_no_dot_syms=yes
28349 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28350 cat > conftest1.s <<EOF
28351 .text
28352 bl .foo
28354 cat > conftest2.s <<EOF
28355 .section ".opd","aw"
28356 .align 3
28357 .globl foo
28358 .type foo,@function
28359 foo:
28360 .quad .LEfoo,.TOC.@tocbase,0
28361 .text
28362 .LEfoo:
28364 .size foo,.-.LEfoo
28366 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28367 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28368 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28369 gcc_cv_ld_no_dot_syms=yes
28371 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28376 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28377 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28379 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28384 $as_echo_n "checking linker large toc support... " >&6; }
28385 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28386 $as_echo_n "(cached) " >&6
28387 else
28388 gcc_cv_ld_large_toc=no
28389 if test x"$ld_is_gold" = xyes; then
28390 gcc_cv_ld_large_toc=yes
28391 elif test $in_tree_ld = yes ; then
28392 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
28393 gcc_cv_ld_large_toc=yes
28395 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28396 cat > conftest.s <<EOF
28397 .section ".tbss","awT",@nobits
28398 .align 3
28399 ie0: .space 8
28400 .global _start
28401 .text
28402 _start:
28403 addis 9,13,ie0@got@tprel@ha
28404 ld 9,ie0@got@tprel@l(9)
28406 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28407 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28408 gcc_cv_ld_large_toc=yes
28410 rm -f conftest conftest.o conftest.s
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28415 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28416 if test x"$gcc_cv_ld_large_toc" = xyes; then
28418 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28423 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28424 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28425 $as_echo_n "(cached) " >&6
28426 else
28427 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28428 cat > conftest.s <<EOF
28429 .global _start
28430 .text
28431 _start:
28432 addis 9,2,x@got@ha
28433 .section .data.rel.ro,"aw",@progbits
28434 .p2align 16
28435 .space 32768
28436 x: .quad .TOC.
28438 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28439 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28440 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)) }'`
28442 rm -f conftest conftest.o conftest.s
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28447 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28448 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28450 cat >>confdefs.h <<_ACEOF
28451 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28452 _ACEOF
28456 esac
28458 case "$target" in
28459 *-*-aix*)
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28461 $as_echo_n "checking linker large toc support... " >&6; }
28462 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28463 $as_echo_n "(cached) " >&6
28464 else
28465 gcc_cv_ld_large_toc=no
28466 if test x$gcc_cv_as != x ; then
28467 cat > conftest.s <<EOF
28468 .toc
28469 LC..1:
28470 .tc a[TC],a[RW]
28471 .extern a[RW]
28472 .csect .text[PR]
28473 .largetoctest:
28474 addis 9,LC..1@u(2)
28475 ld 3,LC..1@l(9)
28477 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28478 gcc_cv_ld_large_toc=yes
28480 rm -f conftest conftest.o conftest.s
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28485 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28486 if test x"$gcc_cv_ld_large_toc" = xyes; then
28488 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28492 esac
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28495 $as_echo_n "checking linker --build-id support... " >&6; }
28496 if test "${gcc_cv_ld_buildid+set}" = set; then :
28497 $as_echo_n "(cached) " >&6
28498 else
28499 gcc_cv_ld_buildid=no
28500 if test $in_tree_ld = yes ; then
28501 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28502 "$gcc_cv_gld_minor_version" -ge 18 -o \
28503 "$gcc_cv_gld_major_version" -gt 2 \
28504 && test $in_tree_ld_is_elf = yes; then
28505 gcc_cv_ld_buildid=yes
28507 elif test x$gcc_cv_ld != x; then
28508 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28509 gcc_cv_ld_buildid=yes
28513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28514 $as_echo "$gcc_cv_ld_buildid" >&6; }
28515 if test x"$gcc_cv_ld_buildid" = xyes; then
28517 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28521 # Check whether --enable-linker-build-id was given.
28522 if test "${enable_linker_build_id+set}" = set; then :
28523 enableval=$enable_linker_build_id;
28524 else
28525 enable_linker_build_id=no
28529 if test x"$enable_linker_build_id" = xyes; then
28530 if test x"$gcc_cv_ld_buildid" = xyes; then
28532 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28534 else
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28536 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28540 # In binutils 2.21, GNU ld gained support for new emulations fully
28541 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28543 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28544 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28545 $as_echo_n "(cached) " >&6
28546 else
28547 gcc_cv_ld_sol2_emulation=no
28548 if test $in_tree_ld = yes ; then
28549 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28550 "$gcc_cv_gld_minor_version" -ge 21 -o \
28551 "$gcc_cv_gld_major_version" -gt 2 \
28552 && test $in_tree_ld_is_elf = yes; then
28553 gcc_cv_ld_sol2_emulation=yes
28555 elif test x$gcc_cv_ld != x; then
28556 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28557 grep _sol2 > /dev/null; then
28558 gcc_cv_ld_sol2_emulation=yes
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28563 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28564 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28566 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28571 $as_echo_n "checking linker --sysroot support... " >&6; }
28572 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28573 $as_echo_n "(cached) " >&6
28574 else
28575 gcc_cv_ld_sysroot=no
28576 if test $in_tree_ld = yes ; then
28577 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
28578 gcc_cv_ld_sysroot=yes
28580 elif test x$gcc_cv_ld != x; then
28581 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28582 gcc_cv_ld_sysroot=yes
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28587 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28588 if test x"$gcc_cv_ld_sysroot" = xyes; then
28590 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28594 case $target in
28595 *-*-solaris2*)
28596 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28598 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28599 if test "${gcc_cv_solaris_crts+set}" = set; then :
28600 $as_echo_n "(cached) " >&6
28601 else
28602 gcc_cv_solaris_crts=no
28603 if test x$host != x$target; then
28604 if test "x$with_sysroot" = xyes; then
28605 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28606 else
28607 target_sysroot="${with_sysroot}"
28610 target_libdir="$target_sysroot/usr/lib"
28611 # At the time they were added, gcrt1.o became a symlink for backwards
28612 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28613 case $target in
28614 i?86-*-solaris2* | x86_64-*-solaris2*)
28615 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28617 sparc*-*-solaris2*)
28618 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28620 esac
28622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28623 $as_echo "$gcc_cv_solaris_crts" >&6; }
28625 esac
28626 if test x$gcc_cv_solaris_crts = xyes; then
28628 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28632 # Test for stack protector support in target C library.
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28634 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28635 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28636 $as_echo_n "(cached) " >&6
28637 else
28638 gcc_cv_libc_provides_ssp=no
28639 case "$target" in
28640 *-*-musl*)
28641 # All versions of musl provide stack protector
28642 gcc_cv_libc_provides_ssp=yes;;
28643 *-*-linux* | *-*-kfreebsd*-gnu)
28644 # glibc 2.4 and later provides __stack_chk_fail and
28645 # either __stack_chk_guard, or TLS access to stack guard canary.
28647 if test $glibc_version_major -gt 2 \
28648 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28649 gcc_cv_libc_provides_ssp=yes
28650 else
28652 if test -f $target_header_dir/features.h \
28653 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28654 $target_header_dir/features.h > /dev/null; then
28655 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28656 $target_header_dir/features.h > /dev/null && \
28657 test -f $target_header_dir/bits/uClibc_config.h && \
28658 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28659 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28660 gcc_cv_libc_provides_ssp=yes
28662 # all versions of Bionic support stack protector
28663 elif test -f $target_header_dir/sys/cdefs.h \
28664 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28665 $target_header_dir/sys/cdefs.h > /dev/null; then
28666 gcc_cv_libc_provides_ssp=yes
28670 *-*-gnu*)
28671 # Avoid complicated tests (see
28672 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28673 # simply assert that glibc does provide this, which is true for all
28674 # realistically usable GNU/Hurd configurations.
28675 # All supported versions of musl provide it as well
28676 gcc_cv_libc_provides_ssp=yes;;
28677 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28678 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28679 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28680 gcc_cv_libc_provides_ssp=yes
28681 else
28682 echo "no __stack_chk_fail on this target"
28686 *) gcc_cv_libc_provides_ssp=no ;;
28687 esac
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28690 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28692 if test x$gcc_cv_libc_provides_ssp = xyes; then
28694 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28698 # Check whether --enable-default-ssp was given.
28699 # Check whether --enable-default-ssp was given.
28700 if test "${enable_default_ssp+set}" = set; then :
28701 enableval=$enable_default_ssp;
28702 if test x$gcc_cv_libc_provides_ssp = xyes; then
28703 case "$target" in
28704 ia64*-*-*) enable_default_ssp=no ;;
28705 *) enable_default_ssp=$enableval ;;
28706 esac
28707 else
28708 enable_default_ssp=no
28710 else
28711 enable_default_ssp=no
28714 if test x$enable_default_ssp = xyes ; then
28716 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28721 # Test for <sys/sdt.h> on the target.
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28724 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28725 have_sys_sdt_h=no
28726 if test -f $target_header_dir/sys/sdt.h; then
28727 have_sys_sdt_h=yes
28729 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28733 $as_echo "$have_sys_sdt_h" >&6; }
28735 # Check if TFmode long double should be used by default or not.
28736 # Some glibc targets used DFmode long double, but with glibc 2.4
28737 # and later they can use TFmode.
28738 case "$target" in
28739 powerpc*-*-linux* | \
28740 sparc*-*-linux* | \
28741 s390*-*-linux* | \
28742 alpha*-*-linux*)
28744 # Check whether --with-long-double-128 was given.
28745 if test "${with_long_double_128+set}" = set; then :
28746 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28747 else
28749 if test $glibc_version_major -gt 2 \
28750 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28751 gcc_cv_target_ldbl128=yes
28752 else
28754 gcc_cv_target_ldbl128=no
28755 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28756 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28757 && gcc_cv_target_ldbl128=yes
28763 esac
28764 if test x$gcc_cv_target_ldbl128 = xyes; then
28766 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28770 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28771 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28772 gcc_cv_libc_provides_hwcap_in_tcb=no
28773 case "$target" in
28774 powerpc*-*-linux*)
28776 if test $glibc_version_major -gt 2 \
28777 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28778 gcc_cv_libc_provides_hwcap_in_tcb=yes
28781 esac
28782 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28784 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28789 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28790 gcc_cv_target_dl_iterate_phdr=unknown
28791 case "$target" in
28792 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28793 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28794 # libdl there, both complicating its use and breaking compatibility
28795 # between Solaris 10 updates.
28796 *-*-solaris2.1[1-9]*)
28797 # <link.h> needs both a dl_iterate_phdr declaration and support for
28798 # compilation with largefile support.
28799 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28800 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28801 gcc_cv_target_dl_iterate_phdr=yes
28802 else
28803 gcc_cv_target_dl_iterate_phdr=no
28806 *-*-dragonfly* | *-*-freebsd*)
28807 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28808 gcc_cv_target_dl_iterate_phdr=yes
28809 else
28810 gcc_cv_target_dl_iterate_phdr=no
28813 *-linux-musl*)
28814 gcc_cv_target_dl_iterate_phdr=yes
28816 esac
28818 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28820 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28824 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28826 # We no longer support different GC mechanisms. Emit an error if
28827 # the user configures with --with-gc.
28829 # Check whether --with-gc was given.
28830 if test "${with_gc+set}" = set; then :
28831 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28835 # Libraries to use on the host. This will normally be set by the top
28836 # level Makefile. Here we simply capture the value for our Makefile.
28837 if test -z "${HOST_LIBS+set}"; then
28838 HOST_LIBS=
28842 # Use the system's zlib library.
28844 # Use the system's zlib library.
28845 zlibdir="-L\$(top_builddir)/../zlib"
28846 zlibinc="-I\$(top_srcdir)/../zlib"
28848 # Check whether --with-system-zlib was given.
28849 if test "${with_system_zlib+set}" = set; then :
28850 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28851 zlibdir=
28852 zlibinc=
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28863 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28864 # Check whether --enable-maintainer-mode was given.
28865 if test "${enable_maintainer_mode+set}" = set; then :
28866 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28867 else
28868 maintainer_mode=no
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28873 $as_echo "$maintainer_mode" >&6; }
28875 if test "$maintainer_mode" = "yes"; then
28876 MAINT=''
28877 else
28878 MAINT='#'
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28883 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28884 # Check whether --enable-link-mutex was given.
28885 if test "${enable_link_mutex+set}" = set; then :
28886 enableval=$enable_link_mutex; do_link_mutex=$enableval
28887 else
28888 do_link_mutex=no
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28892 $as_echo "$do_link_mutex" >&6; }
28894 if test "$do_link_mutex" = "yes"; then
28895 DO_LINK_MUTEX=true
28896 else
28897 DO_LINK_MUTEX=false
28901 # --------------
28902 # Language hooks
28903 # --------------
28905 # Make empty files to contain the specs and options for each language.
28906 # Then add #include lines to for a compiler that has specs and/or options.
28908 subdirs=
28909 lang_opt_files=
28910 lang_specs_files=
28911 lang_tree_files=
28912 # These (without "all_") are set in each config-lang.in.
28913 # `language' must be a single word so is spelled singularly.
28914 all_languages=
28915 all_compilers=
28916 all_outputs='Makefile'
28917 # List of language makefile fragments.
28918 all_lang_makefrags=
28919 # Additional files for gengtype
28920 all_gtfiles="$target_gtfiles"
28922 # These are the languages that are set in --enable-languages,
28923 # and are available in the GCC tree.
28924 all_selected_languages=
28926 # Add the language fragments.
28927 # Languages are added via two mechanisms. Some information must be
28928 # recorded in makefile variables, these are defined in config-lang.in.
28929 # We accumulate them and plug them into the main Makefile.
28930 # The other mechanism is a set of hooks for each of the main targets
28931 # like `clean', `install', etc.
28933 language_hooks="Make-hooks"
28935 for lang in ${srcdir}/*/config-lang.in
28937 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28939 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28940 if test "x$lang_alias" = x
28941 then
28942 echo "$lang doesn't set \$language." 1>&2
28943 exit 1
28945 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28946 subdirs="$subdirs $subdir"
28948 # $gcc_subdir is where the gcc integration files are to be found
28949 # for a language, both for internal compiler purposes (compiler
28950 # sources implementing front-end to GCC tree converters), and for
28951 # build infrastructure purposes (Make-lang.in, etc.)
28953 # This will be <subdir> (relative to $srcdir) if a line like
28954 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28955 # is found in <langdir>/config-lang.in, and will remain <langdir>
28956 # otherwise.
28958 # Except for the language alias (fetched above), the regular
28959 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28960 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28961 # only this and the language alias.
28963 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28964 if [ "$gcc_subdir" = "" ]; then
28965 gcc_subdir="$subdir"
28968 case ",$enable_languages," in
28969 *,$lang_alias,*)
28970 all_selected_languages="$all_selected_languages $lang_alias"
28971 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28972 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28975 esac
28977 language=
28978 boot_language=
28979 compilers=
28980 outputs=
28981 gtfiles=
28982 subdir_requires=
28983 . ${srcdir}/$gcc_subdir/config-lang.in
28984 if test "x$language" = x
28985 then
28986 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28987 exit 1
28990 ok=:
28991 case ",$enable_languages," in
28992 *,$lang_alias,*) ;;
28994 for i in $subdir_requires; do
28995 test -f "${srcdir}/$i/config-lang.in" && continue
28996 ok=false
28997 break
28998 done
29000 esac
29001 $ok || continue
29003 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29004 if test -f $srcdir/$gcc_subdir/lang.opt; then
29005 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29006 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29008 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29009 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29011 all_languages="$all_languages $language"
29012 all_compilers="$all_compilers $compilers"
29013 all_outputs="$all_outputs $outputs"
29014 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29015 case ",$enable_languages," in
29016 *,lto,*)
29018 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29020 enable_lto=yes
29023 *) ;;
29024 esac
29025 done
29027 check_languages=
29028 for language in $all_selected_languages
29030 check_languages="$check_languages check-$language"
29031 done
29033 # We link each language in with a set of hooks, reached indirectly via
29034 # lang.${target}. Only do so for selected languages.
29036 rm -f Make-hooks
29037 touch Make-hooks
29038 target_list="all.cross start.encap rest.encap tags \
29039 install-common install-man install-info install-pdf install-html dvi \
29040 pdf html uninstall info man srcextra srcman srcinfo \
29041 mostlyclean clean distclean maintainer-clean install-plugin"
29043 for t in $target_list
29046 for lang in $all_selected_languages
29048 x="$x $lang.$t"
29049 done
29050 echo "lang.$t: $x" >> Make-hooks
29051 done
29053 # --------
29054 # Option include files
29055 # --------
29057 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29058 option_includes="option-includes.mk"
29061 # --------
29062 # UNSORTED
29063 # --------
29065 # Create .gdbinit.
29067 echo "dir ." > .gdbinit
29068 echo "dir ${srcdir}" >> .gdbinit
29069 if test x$gdb_needs_out_file_path = xyes
29070 then
29071 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29073 if test "x$subdirs" != x; then
29074 for s in $subdirs
29076 echo "dir ${srcdir}/$s" >> .gdbinit
29077 done
29079 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29080 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29082 # Put a breakpoint on __asan_report_error to help with debugging buffer
29083 # overflow.
29084 case "$CFLAGS" in
29085 *-fsanitize=address*)
29086 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29088 esac
29090 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29094 # Find a directory in which to install a shared libgcc.
29096 # Check whether --enable-version-specific-runtime-libs was given.
29097 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29098 enableval=$enable_version_specific_runtime_libs;
29102 # Substitute configuration variables
29165 # Echo link setup.
29166 if test x${build} = x${host} ; then
29167 if test x${host} = x${target} ; then
29168 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29169 else
29170 echo "Links are now set up to build a cross-compiler" 1>&2
29171 echo " from ${host} to ${target}." 1>&2
29173 else
29174 if test x${host} = x${target} ; then
29175 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29176 echo " for ${target}." 1>&2
29177 else
29178 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29179 echo " from ${host} to ${target}." 1>&2
29188 if test "x${ISLLIBS}" != "x" ; then
29190 $as_echo "#define HAVE_isl 1" >>confdefs.h
29194 # Check whether isl_options_set_schedule_serialize_sccs is available;
29195 # it's new in isl 0.15.
29196 if test "x${ISLLIBS}" != "x" ; then
29197 saved_CXXFLAGS="$CXXFLAGS"
29198 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29199 saved_LIBS="$LIBS"
29200 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29203 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29205 /* end confdefs.h. */
29206 #include <isl/schedule.h>
29208 main ()
29210 isl_options_set_schedule_serialize_sccs (NULL, 0);
29212 return 0;
29214 _ACEOF
29215 if ac_fn_cxx_try_link "$LINENO"; then :
29216 ac_has_isl_options_set_schedule_serialize_sccs=yes
29217 else
29218 ac_has_isl_options_set_schedule_serialize_sccs=no
29220 rm -f core conftest.err conftest.$ac_objext \
29221 conftest$ac_exeext conftest.$ac_ext
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29223 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29225 LIBS="$saved_LIBS"
29226 CXXFLAGS="$saved_CXXFLAGS"
29228 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29230 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29235 # Check for plugin support
29236 # Check whether --enable-plugin was given.
29237 if test "${enable_plugin+set}" = set; then :
29238 enableval=$enable_plugin; enable_plugin=$enableval
29239 else
29240 enable_plugin=yes; default_plugin=yes
29244 pluginlibs=
29246 case "${host}" in
29247 *-*-darwin*)
29248 if test x$build = x$host; then
29249 export_sym_check="nm${exeext} -g"
29250 elif test x$host = x$target; then
29251 export_sym_check="$gcc_cv_nm -g"
29252 else
29253 export_sym_check=
29257 if test x$build = x$host; then
29258 export_sym_check="objdump${exeext} -T"
29259 elif test x$host = x$target; then
29260 export_sym_check="$gcc_cv_objdump -T"
29261 else
29262 export_sym_check=
29265 esac
29267 if test x"$enable_plugin" = x"yes"; then
29269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29270 $as_echo_n "checking for exported symbols... " >&6; }
29271 if test "x$export_sym_check" != x; then
29272 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29273 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29274 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29275 : # No need to use a flag
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29277 $as_echo "yes" >&6; }
29278 else
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29280 $as_echo "yes" >&6; }
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29282 $as_echo_n "checking for -rdynamic... " >&6; }
29283 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29284 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29285 plugin_rdynamic=yes
29286 pluginlibs="-rdynamic"
29287 else
29288 plugin_rdynamic=no
29289 enable_plugin=no
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29292 $as_echo "$plugin_rdynamic" >&6; }
29294 else
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29296 $as_echo "unable to check" >&6; }
29299 # Check -ldl
29300 saved_LIBS="$LIBS"
29301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29302 $as_echo_n "checking for library containing dlopen... " >&6; }
29303 if test "${ac_cv_search_dlopen+set}" = set; then :
29304 $as_echo_n "(cached) " >&6
29305 else
29306 ac_func_search_save_LIBS=$LIBS
29307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29308 /* end confdefs.h. */
29310 /* Override any GCC internal prototype to avoid an error.
29311 Use char because int might match the return type of a GCC
29312 builtin and then its argument prototype would still apply. */
29313 #ifdef __cplusplus
29314 extern "C"
29315 #endif
29316 char dlopen ();
29318 main ()
29320 return dlopen ();
29322 return 0;
29324 _ACEOF
29325 for ac_lib in '' dl; do
29326 if test -z "$ac_lib"; then
29327 ac_res="none required"
29328 else
29329 ac_res=-l$ac_lib
29330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29332 if ac_fn_cxx_try_link "$LINENO"; then :
29333 ac_cv_search_dlopen=$ac_res
29335 rm -f core conftest.err conftest.$ac_objext \
29336 conftest$ac_exeext
29337 if test "${ac_cv_search_dlopen+set}" = set; then :
29338 break
29340 done
29341 if test "${ac_cv_search_dlopen+set}" = set; then :
29343 else
29344 ac_cv_search_dlopen=no
29346 rm conftest.$ac_ext
29347 LIBS=$ac_func_search_save_LIBS
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29350 $as_echo "$ac_cv_search_dlopen" >&6; }
29351 ac_res=$ac_cv_search_dlopen
29352 if test "$ac_res" != no; then :
29353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29357 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29358 pluginlibs="$pluginlibs -ldl"
29360 LIBS="$saved_LIBS"
29362 # Check that we can build shared objects with -fPIC -shared
29363 saved_LDFLAGS="$LDFLAGS"
29364 saved_CFLAGS="$CFLAGS"
29365 case "${host}" in
29366 *-*-darwin*)
29367 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29368 CFLAGS="$CFLAGS -fPIC"
29369 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29372 CFLAGS="$CFLAGS -fPIC"
29373 LDFLAGS="$LDFLAGS -fPIC -shared"
29375 esac
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29377 $as_echo_n "checking for -fPIC -shared... " >&6; }
29378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29379 /* end confdefs.h. */
29380 extern int X;
29382 main ()
29384 return X == 0;
29386 return 0;
29388 _ACEOF
29389 if ac_fn_cxx_try_link "$LINENO"; then :
29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29391 $as_echo "yes" >&6; }; have_pic_shared=yes
29392 else
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29394 $as_echo "no" >&6; }; have_pic_shared=no
29396 rm -f core conftest.err conftest.$ac_objext \
29397 conftest$ac_exeext conftest.$ac_ext
29398 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29399 pluginlibs=
29400 enable_plugin=no
29402 LDFLAGS="$saved_LDFLAGS"
29403 CFLAGS="$saved_CFLAGS"
29405 # If plugin support had been requested but not available, fail.
29406 if test x"$enable_plugin" = x"no" ; then
29407 if test x"$default_plugin" != x"yes"; then
29408 as_fn_error "
29409 Building GCC with plugin support requires a host that supports
29410 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29417 if test x"$enable_plugin" = x"yes"; then
29419 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29424 # Enable --enable-host-shared
29425 # Check whether --enable-host-shared was given.
29426 if test "${enable_host_shared+set}" = set; then :
29427 enableval=$enable_host_shared; PICFLAG=-fPIC
29428 else
29429 PICFLAG=
29436 # Check whether --enable-libquadmath-support was given.
29437 if test "${enable_libquadmath_support+set}" = set; then :
29438 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29439 else
29440 ENABLE_LIBQUADMATH_SUPPORT=yes
29443 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29445 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29450 # Specify what hash style to use by default.
29452 # Check whether --with-linker-hash-style was given.
29453 if test "${with_linker_hash_style+set}" = set; then :
29454 withval=$with_linker_hash_style; case x"$withval" in
29455 xsysv)
29456 LINKER_HASH_STYLE=sysv
29458 xgnu)
29459 LINKER_HASH_STYLE=gnu
29461 xboth)
29462 LINKER_HASH_STYLE=both
29465 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29467 esac
29468 else
29469 LINKER_HASH_STYLE=''
29472 if test x"${LINKER_HASH_STYLE}" != x; then
29474 cat >>confdefs.h <<_ACEOF
29475 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29476 _ACEOF
29480 # Specify what should be the default of -fdiagnostics-color option.
29482 # Check whether --with-diagnostics-color was given.
29483 if test "${with_diagnostics_color+set}" = set; then :
29484 withval=$with_diagnostics_color; case x"$withval" in
29485 xnever)
29486 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29488 xauto)
29489 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29491 xauto-if-env)
29492 DIAGNOSTICS_COLOR_DEFAULT=-1
29494 xalways)
29495 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29498 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29500 esac
29501 else
29502 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29506 cat >>confdefs.h <<_ACEOF
29507 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29508 _ACEOF
29511 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29512 # of jit/jit-playback.c.
29513 cat > gcc-driver-name.h <<EOF
29514 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29517 # Check whether --enable-default-pie was given.
29518 # Check whether --enable-default-pie was given.
29519 if test "${enable_default_pie+set}" = set; then :
29520 enableval=$enable_default_pie; enable_default_pie=$enableval
29521 else
29522 enable_default_pie=no
29525 if test x$enable_default_pie = xyes ; then
29527 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29532 # Check if -fno-PIE works.
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29534 $as_echo_n "checking for -fno-PIE option... " >&6; }
29535 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29536 $as_echo_n "(cached) " >&6
29537 else
29538 saved_CXXFLAGS="$CXXFLAGS"
29539 CXXFLAGS="$CXXFLAGS -fno-PIE"
29540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29541 /* end confdefs.h. */
29542 int main(void) {return 0;}
29543 _ACEOF
29544 if ac_fn_cxx_try_compile "$LINENO"; then :
29545 gcc_cv_c_no_fpie=yes
29546 else
29547 gcc_cv_c_no_fpie=no
29549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29550 CXXFLAGS="$saved_CXXFLAGS"
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29553 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29554 if test "$gcc_cv_c_no_fpie" = "yes"; then
29555 NO_PIE_CFLAGS="-fno-PIE"
29559 # Check if -no-pie works.
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29561 $as_echo_n "checking for -no-pie option... " >&6; }
29562 if test "${gcc_cv_no_pie+set}" = set; then :
29563 $as_echo_n "(cached) " >&6
29564 else
29565 saved_LDFLAGS="$LDFLAGS"
29566 LDFLAGS="$LDFLAGS -no-pie"
29567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29568 /* end confdefs.h. */
29569 int main(void) {return 0;}
29570 _ACEOF
29571 if ac_fn_cxx_try_link "$LINENO"; then :
29572 gcc_cv_no_pie=yes
29573 else
29574 gcc_cv_no_pie=no
29576 rm -f core conftest.err conftest.$ac_objext \
29577 conftest$ac_exeext conftest.$ac_ext
29578 LDFLAGS="$saved_LDFLAGS"
29580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29581 $as_echo "$gcc_cv_no_pie" >&6; }
29582 if test "$gcc_cv_no_pie" = "yes"; then
29583 NO_PIE_FLAG="-no-pie"
29587 # Check linker supports '-z bndplt'
29588 ld_bndplt_support=no
29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29590 $as_echo_n "checking linker -z bndplt option... " >&6; }
29591 if test x"$ld_is_gold" = xno; then
29592 if test $in_tree_ld = yes ; then
29593 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
29594 ld_bndplt_support=yes
29596 elif test x$gcc_cv_ld != x; then
29597 # Check if linker supports -a bndplt option
29598 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29599 ld_bndplt_support=yes
29603 if test x"$ld_bndplt_support" = xyes; then
29605 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29609 $as_echo "$ld_bndplt_support" >&6; }
29611 # Check linker supports '--push-state'/'--pop-state'
29612 ld_pushpopstate_support=no
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29614 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29615 if test x"$ld_is_gold" = xno; then
29616 if test $in_tree_ld = yes ; then
29617 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
29618 ld_pushpopstate_support=yes
29620 elif test x$gcc_cv_ld != x; then
29621 # Check if linker supports --push-state/--pop-state options
29622 if $gcc_cv_ld --help 2>/dev/null | grep -- '--push-state' > /dev/null; then
29623 ld_pushpopstate_support=yes
29627 if test x"$ld_pushpopstate_support" = xyes; then
29629 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29633 $as_echo "$ld_pushpopstate_support" >&6; }
29635 # Configure the subdirectories
29636 # AC_CONFIG_SUBDIRS($subdirs)
29638 # Create the Makefile
29639 # and configure language subdirectories
29640 ac_config_files="$ac_config_files $all_outputs"
29643 ac_config_commands="$ac_config_commands default"
29645 cat >confcache <<\_ACEOF
29646 # This file is a shell script that caches the results of configure
29647 # tests run on this system so they can be shared between configure
29648 # scripts and configure runs, see configure's option --config-cache.
29649 # It is not useful on other systems. If it contains results you don't
29650 # want to keep, you may remove or edit it.
29652 # config.status only pays attention to the cache file if you give it
29653 # the --recheck option to rerun configure.
29655 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29656 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29657 # following values.
29659 _ACEOF
29661 # The following way of writing the cache mishandles newlines in values,
29662 # but we know of no workaround that is simple, portable, and efficient.
29663 # So, we kill variables containing newlines.
29664 # Ultrix sh set writes to stderr and can't be redirected directly,
29665 # and sets the high bit in the cache file unless we assign to the vars.
29667 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29668 eval ac_val=\$$ac_var
29669 case $ac_val in #(
29670 *${as_nl}*)
29671 case $ac_var in #(
29672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29673 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29674 esac
29675 case $ac_var in #(
29676 _ | IFS | as_nl) ;; #(
29677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29678 *) { eval $ac_var=; unset $ac_var;} ;;
29679 esac ;;
29680 esac
29681 done
29683 (set) 2>&1 |
29684 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29685 *${as_nl}ac_space=\ *)
29686 # `set' does not quote correctly, so add quotes: double-quote
29687 # substitution turns \\\\ into \\, and sed turns \\ into \.
29688 sed -n \
29689 "s/'/'\\\\''/g;
29690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29691 ;; #(
29693 # `set' quotes correctly as required by POSIX, so do not add quotes.
29694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29696 esac |
29697 sort
29699 sed '
29700 /^ac_cv_env_/b end
29701 t clear
29702 :clear
29703 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29704 t end
29705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29706 :end' >>confcache
29707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29708 if test -w "$cache_file"; then
29709 test "x$cache_file" != "x/dev/null" &&
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29711 $as_echo "$as_me: updating cache $cache_file" >&6;}
29712 cat confcache >$cache_file
29713 else
29714 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29715 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29718 rm -f confcache
29720 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29721 # Let make expand exec_prefix.
29722 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29724 DEFS=-DHAVE_CONFIG_H
29726 ac_libobjs=
29727 ac_ltlibobjs=
29728 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29729 # 1. Remove the extension, and $U if already installed.
29730 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29731 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29732 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29733 # will be set to the directory where LIBOBJS objects are built.
29734 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29735 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29736 done
29737 LIBOBJS=$ac_libobjs
29739 LTLIBOBJS=$ac_ltlibobjs
29744 : ${CONFIG_STATUS=./config.status}
29745 ac_write_fail=0
29746 ac_clean_files_save=$ac_clean_files
29747 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29749 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29750 as_write_fail=0
29751 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29752 #! $SHELL
29753 # Generated by $as_me.
29754 # Run this file to recreate the current configuration.
29755 # Compiler output produced by configure, useful for debugging
29756 # configure, is in config.log if it exists.
29758 debug=false
29759 ac_cs_recheck=false
29760 ac_cs_silent=false
29762 SHELL=\${CONFIG_SHELL-$SHELL}
29763 export SHELL
29764 _ASEOF
29765 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29766 ## -------------------- ##
29767 ## M4sh Initialization. ##
29768 ## -------------------- ##
29770 # Be more Bourne compatible
29771 DUALCASE=1; export DUALCASE # for MKS sh
29772 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29773 emulate sh
29774 NULLCMD=:
29775 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29776 # is contrary to our usage. Disable this feature.
29777 alias -g '${1+"$@"}'='"$@"'
29778 setopt NO_GLOB_SUBST
29779 else
29780 case `(set -o) 2>/dev/null` in #(
29781 *posix*) :
29782 set -o posix ;; #(
29783 *) :
29785 esac
29789 as_nl='
29791 export as_nl
29792 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29793 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29796 # Prefer a ksh shell builtin over an external printf program on Solaris,
29797 # but without wasting forks for bash or zsh.
29798 if test -z "$BASH_VERSION$ZSH_VERSION" \
29799 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29800 as_echo='print -r --'
29801 as_echo_n='print -rn --'
29802 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29803 as_echo='printf %s\n'
29804 as_echo_n='printf %s'
29805 else
29806 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29807 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29808 as_echo_n='/usr/ucb/echo -n'
29809 else
29810 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29811 as_echo_n_body='eval
29812 arg=$1;
29813 case $arg in #(
29814 *"$as_nl"*)
29815 expr "X$arg" : "X\\(.*\\)$as_nl";
29816 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29817 esac;
29818 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29820 export as_echo_n_body
29821 as_echo_n='sh -c $as_echo_n_body as_echo'
29823 export as_echo_body
29824 as_echo='sh -c $as_echo_body as_echo'
29827 # The user is always right.
29828 if test "${PATH_SEPARATOR+set}" != set; then
29829 PATH_SEPARATOR=:
29830 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29831 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29832 PATH_SEPARATOR=';'
29837 # IFS
29838 # We need space, tab and new line, in precisely that order. Quoting is
29839 # there to prevent editors from complaining about space-tab.
29840 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29841 # splitting by setting IFS to empty value.)
29842 IFS=" "" $as_nl"
29844 # Find who we are. Look in the path if we contain no directory separator.
29845 case $0 in #((
29846 *[\\/]* ) as_myself=$0 ;;
29847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29848 for as_dir in $PATH
29850 IFS=$as_save_IFS
29851 test -z "$as_dir" && as_dir=.
29852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29853 done
29854 IFS=$as_save_IFS
29857 esac
29858 # We did not find ourselves, most probably we were run as `sh COMMAND'
29859 # in which case we are not to be found in the path.
29860 if test "x$as_myself" = x; then
29861 as_myself=$0
29863 if test ! -f "$as_myself"; then
29864 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29865 exit 1
29868 # Unset variables that we do not need and which cause bugs (e.g. in
29869 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29870 # suppresses any "Segmentation fault" message there. '((' could
29871 # trigger a bug in pdksh 5.2.14.
29872 for as_var in BASH_ENV ENV MAIL MAILPATH
29873 do eval test x\${$as_var+set} = xset \
29874 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29875 done
29876 PS1='$ '
29877 PS2='> '
29878 PS4='+ '
29880 # NLS nuisances.
29881 LC_ALL=C
29882 export LC_ALL
29883 LANGUAGE=C
29884 export LANGUAGE
29886 # CDPATH.
29887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29890 # as_fn_error ERROR [LINENO LOG_FD]
29891 # ---------------------------------
29892 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29893 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29894 # script with status $?, using 1 if that was 0.
29895 as_fn_error ()
29897 as_status=$?; test $as_status -eq 0 && as_status=1
29898 if test "$3"; then
29899 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29900 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29902 $as_echo "$as_me: error: $1" >&2
29903 as_fn_exit $as_status
29904 } # as_fn_error
29907 # as_fn_set_status STATUS
29908 # -----------------------
29909 # Set $? to STATUS, without forking.
29910 as_fn_set_status ()
29912 return $1
29913 } # as_fn_set_status
29915 # as_fn_exit STATUS
29916 # -----------------
29917 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29918 as_fn_exit ()
29920 set +e
29921 as_fn_set_status $1
29922 exit $1
29923 } # as_fn_exit
29925 # as_fn_unset VAR
29926 # ---------------
29927 # Portably unset VAR.
29928 as_fn_unset ()
29930 { eval $1=; unset $1;}
29932 as_unset=as_fn_unset
29933 # as_fn_append VAR VALUE
29934 # ----------------------
29935 # Append the text in VALUE to the end of the definition contained in VAR. Take
29936 # advantage of any shell optimizations that allow amortized linear growth over
29937 # repeated appends, instead of the typical quadratic growth present in naive
29938 # implementations.
29939 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29940 eval 'as_fn_append ()
29942 eval $1+=\$2
29944 else
29945 as_fn_append ()
29947 eval $1=\$$1\$2
29949 fi # as_fn_append
29951 # as_fn_arith ARG...
29952 # ------------------
29953 # Perform arithmetic evaluation on the ARGs, and store the result in the
29954 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29955 # must be portable across $(()) and expr.
29956 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29957 eval 'as_fn_arith ()
29959 as_val=$(( $* ))
29961 else
29962 as_fn_arith ()
29964 as_val=`expr "$@" || test $? -eq 1`
29966 fi # as_fn_arith
29969 if expr a : '\(a\)' >/dev/null 2>&1 &&
29970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29971 as_expr=expr
29972 else
29973 as_expr=false
29976 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29977 as_basename=basename
29978 else
29979 as_basename=false
29982 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29983 as_dirname=dirname
29984 else
29985 as_dirname=false
29988 as_me=`$as_basename -- "$0" ||
29989 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29990 X"$0" : 'X\(//\)$' \| \
29991 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29992 $as_echo X/"$0" |
29993 sed '/^.*\/\([^/][^/]*\)\/*$/{
29994 s//\1/
29997 /^X\/\(\/\/\)$/{
29998 s//\1/
30001 /^X\/\(\/\).*/{
30002 s//\1/
30005 s/.*/./; q'`
30007 # Avoid depending upon Character Ranges.
30008 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30009 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30010 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30011 as_cr_digits='0123456789'
30012 as_cr_alnum=$as_cr_Letters$as_cr_digits
30014 ECHO_C= ECHO_N= ECHO_T=
30015 case `echo -n x` in #(((((
30016 -n*)
30017 case `echo 'xy\c'` in
30018 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30019 xy) ECHO_C='\c';;
30020 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30021 ECHO_T=' ';;
30022 esac;;
30024 ECHO_N='-n';;
30025 esac
30027 rm -f conf$$ conf$$.exe conf$$.file
30028 if test -d conf$$.dir; then
30029 rm -f conf$$.dir/conf$$.file
30030 else
30031 rm -f conf$$.dir
30032 mkdir conf$$.dir 2>/dev/null
30034 if (echo >conf$$.file) 2>/dev/null; then
30035 if ln -s conf$$.file conf$$ 2>/dev/null; then
30036 as_ln_s='ln -s'
30037 # ... but there are two gotchas:
30038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30040 # In both cases, we have to default to `cp -p'.
30041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30042 as_ln_s='cp -p'
30043 elif ln conf$$.file conf$$ 2>/dev/null; then
30044 as_ln_s=ln
30045 else
30046 as_ln_s='cp -p'
30048 else
30049 as_ln_s='cp -p'
30051 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30052 rmdir conf$$.dir 2>/dev/null
30055 # as_fn_mkdir_p
30056 # -------------
30057 # Create "$as_dir" as a directory, including parents if necessary.
30058 as_fn_mkdir_p ()
30061 case $as_dir in #(
30062 -*) as_dir=./$as_dir;;
30063 esac
30064 test -d "$as_dir" || eval $as_mkdir_p || {
30065 as_dirs=
30066 while :; do
30067 case $as_dir in #(
30068 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30069 *) as_qdir=$as_dir;;
30070 esac
30071 as_dirs="'$as_qdir' $as_dirs"
30072 as_dir=`$as_dirname -- "$as_dir" ||
30073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30074 X"$as_dir" : 'X\(//\)[^/]' \| \
30075 X"$as_dir" : 'X\(//\)$' \| \
30076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30077 $as_echo X"$as_dir" |
30078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30079 s//\1/
30082 /^X\(\/\/\)[^/].*/{
30083 s//\1/
30086 /^X\(\/\/\)$/{
30087 s//\1/
30090 /^X\(\/\).*/{
30091 s//\1/
30094 s/.*/./; q'`
30095 test -d "$as_dir" && break
30096 done
30097 test -z "$as_dirs" || eval "mkdir $as_dirs"
30098 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30101 } # as_fn_mkdir_p
30102 if mkdir -p . 2>/dev/null; then
30103 as_mkdir_p='mkdir -p "$as_dir"'
30104 else
30105 test -d ./-p && rmdir ./-p
30106 as_mkdir_p=false
30109 if test -x / >/dev/null 2>&1; then
30110 as_test_x='test -x'
30111 else
30112 if ls -dL / >/dev/null 2>&1; then
30113 as_ls_L_option=L
30114 else
30115 as_ls_L_option=
30117 as_test_x='
30118 eval sh -c '\''
30119 if test -d "$1"; then
30120 test -d "$1/.";
30121 else
30122 case $1 in #(
30123 -*)set "./$1";;
30124 esac;
30125 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30126 ???[sx]*):;;*)false;;esac;fi
30127 '\'' sh
30130 as_executable_p=$as_test_x
30132 # Sed expression to map a string onto a valid CPP name.
30133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30135 # Sed expression to map a string onto a valid variable name.
30136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30139 exec 6>&1
30140 ## ----------------------------------- ##
30141 ## Main body of $CONFIG_STATUS script. ##
30142 ## ----------------------------------- ##
30143 _ASEOF
30144 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30147 # Save the log message, to keep $0 and so on meaningful, and to
30148 # report actual input values of CONFIG_FILES etc. instead of their
30149 # values after options handling.
30150 ac_log="
30151 This file was extended by $as_me, which was
30152 generated by GNU Autoconf 2.64. Invocation command line was
30154 CONFIG_FILES = $CONFIG_FILES
30155 CONFIG_HEADERS = $CONFIG_HEADERS
30156 CONFIG_LINKS = $CONFIG_LINKS
30157 CONFIG_COMMANDS = $CONFIG_COMMANDS
30158 $ $0 $@
30160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30163 _ACEOF
30165 case $ac_config_files in *"
30166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30167 esac
30169 case $ac_config_headers in *"
30170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30171 esac
30174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30175 # Files that config.status was made for.
30176 config_files="$ac_config_files"
30177 config_headers="$ac_config_headers"
30178 config_links="$ac_config_links"
30179 config_commands="$ac_config_commands"
30181 _ACEOF
30183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30184 ac_cs_usage="\
30185 \`$as_me' instantiates files and other configuration actions
30186 from templates according to the current configuration. Unless the files
30187 and actions are specified as TAGs, all are instantiated by default.
30189 Usage: $0 [OPTION]... [TAG]...
30191 -h, --help print this help, then exit
30192 -V, --version print version number and configuration settings, then exit
30193 -q, --quiet, --silent
30194 do not print progress messages
30195 -d, --debug don't remove temporary files
30196 --recheck update $as_me by reconfiguring in the same conditions
30197 --file=FILE[:TEMPLATE]
30198 instantiate the configuration file FILE
30199 --header=FILE[:TEMPLATE]
30200 instantiate the configuration header FILE
30202 Configuration files:
30203 $config_files
30205 Configuration headers:
30206 $config_headers
30208 Configuration links:
30209 $config_links
30211 Configuration commands:
30212 $config_commands
30214 Report bugs to the package provider."
30216 _ACEOF
30217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30218 ac_cs_version="\\
30219 config.status
30220 configured by $0, generated by GNU Autoconf 2.64,
30221 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30223 Copyright (C) 2009 Free Software Foundation, Inc.
30224 This config.status script is free software; the Free Software Foundation
30225 gives unlimited permission to copy, distribute and modify it."
30227 ac_pwd='$ac_pwd'
30228 srcdir='$srcdir'
30229 AWK='$AWK'
30230 test -n "\$AWK" || AWK=awk
30231 _ACEOF
30233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30234 # The default lists apply if the user does not specify any file.
30235 ac_need_defaults=:
30236 while test $# != 0
30238 case $1 in
30239 --*=*)
30240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30241 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30242 ac_shift=:
30245 ac_option=$1
30246 ac_optarg=$2
30247 ac_shift=shift
30249 esac
30251 case $ac_option in
30252 # Handling of the options.
30253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30254 ac_cs_recheck=: ;;
30255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30256 $as_echo "$ac_cs_version"; exit ;;
30257 --debug | --debu | --deb | --de | --d | -d )
30258 debug=: ;;
30259 --file | --fil | --fi | --f )
30260 $ac_shift
30261 case $ac_optarg in
30262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30263 esac
30264 as_fn_append CONFIG_FILES " '$ac_optarg'"
30265 ac_need_defaults=false;;
30266 --header | --heade | --head | --hea )
30267 $ac_shift
30268 case $ac_optarg in
30269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30270 esac
30271 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30272 ac_need_defaults=false;;
30273 --he | --h)
30274 # Conflict between --help and --header
30275 as_fn_error "ambiguous option: \`$1'
30276 Try \`$0 --help' for more information.";;
30277 --help | --hel | -h )
30278 $as_echo "$ac_cs_usage"; exit ;;
30279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30280 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30281 ac_cs_silent=: ;;
30283 # This is an error.
30284 -*) as_fn_error "unrecognized option: \`$1'
30285 Try \`$0 --help' for more information." ;;
30287 *) as_fn_append ac_config_targets " $1"
30288 ac_need_defaults=false ;;
30290 esac
30291 shift
30292 done
30294 ac_configure_extra_args=
30296 if $ac_cs_silent; then
30297 exec 6>/dev/null
30298 ac_configure_extra_args="$ac_configure_extra_args --silent"
30301 _ACEOF
30302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30303 if \$ac_cs_recheck; then
30304 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30305 shift
30306 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30307 CONFIG_SHELL='$SHELL'
30308 export CONFIG_SHELL
30309 exec "\$@"
30312 _ACEOF
30313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30314 exec 5>>config.log
30316 echo
30317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30318 ## Running $as_me. ##
30319 _ASBOX
30320 $as_echo "$ac_log"
30321 } >&5
30323 _ACEOF
30324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30326 # INIT-COMMANDS
30328 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30329 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30330 subdirs='$subdirs'
30332 _ACEOF
30334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30336 # Handling of arguments.
30337 for ac_config_target in $ac_config_targets
30339 case $ac_config_target in
30340 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30341 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30342 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30343 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30344 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30345 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30346 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30347 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30348 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30350 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30351 esac
30352 done
30355 # If the user did not use the arguments to specify the items to instantiate,
30356 # then the envvar interface is used. Set only those that are not.
30357 # We use the long form for the default assignment because of an extremely
30358 # bizarre bug on SunOS 4.1.3.
30359 if $ac_need_defaults; then
30360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30362 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30366 # Have a temporary directory for convenience. Make it in the build tree
30367 # simply because there is no reason against having it here, and in addition,
30368 # creating and moving files from /tmp can sometimes cause problems.
30369 # Hook for its removal unless debugging.
30370 # Note that there is a small window in which the directory will not be cleaned:
30371 # after its creation but before its name has been assigned to `$tmp'.
30372 $debug ||
30374 tmp=
30375 trap 'exit_status=$?
30376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30378 trap 'as_fn_exit 1' 1 2 13 15
30380 # Create a (secure) tmp directory for tmp files.
30383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30384 test -n "$tmp" && test -d "$tmp"
30385 } ||
30387 tmp=./conf$$-$RANDOM
30388 (umask 077 && mkdir "$tmp")
30389 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30391 # Set up the scripts for CONFIG_FILES section.
30392 # No need to generate them if there are no CONFIG_FILES.
30393 # This happens for instance with `./config.status config.h'.
30394 if test -n "$CONFIG_FILES"; then
30396 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30397 ac_cs_awk_getline=:
30398 ac_cs_awk_pipe_init=
30399 ac_cs_awk_read_file='
30400 while ((getline aline < (F[key])) > 0)
30401 print(aline)
30402 close(F[key])'
30403 ac_cs_awk_pipe_fini=
30404 else
30405 ac_cs_awk_getline=false
30406 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30407 ac_cs_awk_read_file='
30408 print "|#_!!_#|"
30409 print "cat " F[key] " &&"
30410 '$ac_cs_awk_pipe_init
30411 # The final `:' finishes the AND list.
30412 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30414 ac_cr=`echo X | tr X '\015'`
30415 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30416 # But we know of no other shell where ac_cr would be empty at this
30417 # point, so we can use a bashism as a fallback.
30418 if test "x$ac_cr" = x; then
30419 eval ac_cr=\$\'\\r\'
30421 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30422 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30423 ac_cs_awk_cr='\r'
30424 else
30425 ac_cs_awk_cr=$ac_cr
30428 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30429 _ACEOF
30431 # Create commands to substitute file output variables.
30433 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30434 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30435 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30436 echo "_ACAWK" &&
30437 echo "_ACEOF"
30438 } >conf$$files.sh &&
30439 . ./conf$$files.sh ||
30440 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30441 rm -f conf$$files.sh
30444 echo "cat >conf$$subs.awk <<_ACEOF" &&
30445 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30446 echo "_ACEOF"
30447 } >conf$$subs.sh ||
30448 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30449 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30450 ac_delim='%!_!# '
30451 for ac_last_try in false false false false false :; do
30452 . ./conf$$subs.sh ||
30453 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30455 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30456 if test $ac_delim_n = $ac_delim_num; then
30457 break
30458 elif $ac_last_try; then
30459 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30460 else
30461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30463 done
30464 rm -f conf$$subs.sh
30466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30467 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30468 _ACEOF
30469 sed -n '
30471 s/^/S["/; s/!.*/"]=/
30474 s/^[^!]*!//
30475 :repl
30476 t repl
30477 s/'"$ac_delim"'$//
30478 t delim
30481 s/\(.\{148\}\).*/\1/
30482 t more1
30483 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30486 b repl
30487 :more1
30488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30491 s/.\{148\}//
30492 t nl
30493 :delim
30495 s/\(.\{148\}\).*/\1/
30496 t more2
30497 s/["\\]/\\&/g; s/^/"/; s/$/"/
30500 :more2
30501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30504 s/.\{148\}//
30505 t delim
30506 ' <conf$$subs.awk | sed '
30507 /^[^""]/{
30509 s/\n//
30511 ' >>$CONFIG_STATUS || ac_write_fail=1
30512 rm -f conf$$subs.awk
30513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30514 _ACAWK
30515 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30516 for (key in S) S_is_set[key] = 1
30517 FS = "\a"
30518 \$ac_cs_awk_pipe_init
30521 line = $ 0
30522 nfields = split(line, field, "@")
30523 substed = 0
30524 len = length(field[1])
30525 for (i = 2; i < nfields; i++) {
30526 key = field[i]
30527 keylen = length(key)
30528 if (S_is_set[key]) {
30529 value = S[key]
30530 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30531 len += length(value) + length(field[++i])
30532 substed = 1
30533 } else
30534 len += 1 + keylen
30536 if (nfields == 3 && !substed) {
30537 key = field[2]
30538 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30539 \$ac_cs_awk_read_file
30540 next
30543 print line
30545 \$ac_cs_awk_pipe_fini
30546 _ACAWK
30547 _ACEOF
30548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30549 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30550 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30551 else
30553 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30554 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30555 _ACEOF
30557 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30558 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30559 # trailing colons and then remove the whole line if VPATH becomes empty
30560 # (actually we leave an empty line to preserve line numbers).
30561 if test "x$srcdir" = x.; then
30562 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30563 s/:*\$(srcdir):*/:/
30564 s/:*\${srcdir}:*/:/
30565 s/:*@srcdir@:*/:/
30566 s/^\([^=]*=[ ]*\):*/\1/
30567 s/:*$//
30568 s/^[^=]*=[ ]*$//
30572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30573 fi # test -n "$CONFIG_FILES"
30575 # Set up the scripts for CONFIG_HEADERS section.
30576 # No need to generate them if there are no CONFIG_HEADERS.
30577 # This happens for instance with `./config.status Makefile'.
30578 if test -n "$CONFIG_HEADERS"; then
30579 cat >"$tmp/defines.awk" <<\_ACAWK ||
30580 BEGIN {
30581 _ACEOF
30583 # Transform confdefs.h into an awk script `defines.awk', embedded as
30584 # here-document in config.status, that substitutes the proper values into
30585 # config.h.in to produce config.h.
30587 # Create a delimiter string that does not exist in confdefs.h, to ease
30588 # handling of long lines.
30589 ac_delim='%!_!# '
30590 for ac_last_try in false false :; do
30591 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30592 if test -z "$ac_t"; then
30593 break
30594 elif $ac_last_try; then
30595 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30596 else
30597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30599 done
30601 # For the awk script, D is an array of macro values keyed by name,
30602 # likewise P contains macro parameters if any. Preserve backslash
30603 # newline sequences.
30605 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30606 sed -n '
30607 s/.\{148\}/&'"$ac_delim"'/g
30608 t rset
30609 :rset
30610 s/^[ ]*#[ ]*define[ ][ ]*/ /
30611 t def
30613 :def
30614 s/\\$//
30615 t bsnl
30616 s/["\\]/\\&/g
30617 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30618 D["\1"]=" \3"/p
30619 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30621 :bsnl
30622 s/["\\]/\\&/g
30623 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30624 D["\1"]=" \3\\\\\\n"\\/p
30625 t cont
30626 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30627 t cont
30629 :cont
30631 s/.\{148\}/&'"$ac_delim"'/g
30632 t clear
30633 :clear
30634 s/\\$//
30635 t bsnlc
30636 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30638 :bsnlc
30639 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30640 b cont
30641 ' <confdefs.h | sed '
30642 s/'"$ac_delim"'/"\\\
30643 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30646 for (key in D) D_is_set[key] = 1
30647 FS = "\a"
30649 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30650 line = \$ 0
30651 split(line, arg, " ")
30652 if (arg[1] == "#") {
30653 defundef = arg[2]
30654 mac1 = arg[3]
30655 } else {
30656 defundef = substr(arg[1], 2)
30657 mac1 = arg[2]
30659 split(mac1, mac2, "(") #)
30660 macro = mac2[1]
30661 prefix = substr(line, 1, index(line, defundef) - 1)
30662 if (D_is_set[macro]) {
30663 # Preserve the white space surrounding the "#".
30664 print prefix "define", macro P[macro] D[macro]
30665 next
30666 } else {
30667 # Replace #undef with comments. This is necessary, for example,
30668 # in the case of _POSIX_SOURCE, which is predefined and required
30669 # on some systems where configure will not decide to define it.
30670 if (defundef == "undef") {
30671 print "/*", prefix defundef, macro, "*/"
30672 next
30676 { print }
30677 _ACAWK
30678 _ACEOF
30679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30680 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30681 fi # test -n "$CONFIG_HEADERS"
30684 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30685 shift
30686 for ac_tag
30688 case $ac_tag in
30689 :[FHLC]) ac_mode=$ac_tag; continue;;
30690 esac
30691 case $ac_mode$ac_tag in
30692 :[FHL]*:*);;
30693 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30694 :[FH]-) ac_tag=-:-;;
30695 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30696 esac
30697 ac_save_IFS=$IFS
30698 IFS=:
30699 set x $ac_tag
30700 IFS=$ac_save_IFS
30701 shift
30702 ac_file=$1
30703 shift
30705 case $ac_mode in
30706 :L) ac_source=$1;;
30707 :[FH])
30708 ac_file_inputs=
30709 for ac_f
30711 case $ac_f in
30712 -) ac_f="$tmp/stdin";;
30713 *) # Look for the file first in the build tree, then in the source tree
30714 # (if the path is not absolute). The absolute path cannot be DOS-style,
30715 # because $ac_f cannot contain `:'.
30716 test -f "$ac_f" ||
30717 case $ac_f in
30718 [\\/$]*) false;;
30719 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30720 esac ||
30721 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30722 esac
30723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30724 as_fn_append ac_file_inputs " '$ac_f'"
30725 done
30727 # Let's still pretend it is `configure' which instantiates (i.e., don't
30728 # use $as_me), people would be surprised to read:
30729 # /* config.h. Generated by config.status. */
30730 configure_input='Generated from '`
30731 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30732 `' by configure.'
30733 if test x"$ac_file" != x-; then
30734 configure_input="$ac_file. $configure_input"
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30736 $as_echo "$as_me: creating $ac_file" >&6;}
30738 # Neutralize special characters interpreted by sed in replacement strings.
30739 case $configure_input in #(
30740 *\&* | *\|* | *\\* )
30741 ac_sed_conf_input=`$as_echo "$configure_input" |
30742 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30743 *) ac_sed_conf_input=$configure_input;;
30744 esac
30746 case $ac_tag in
30747 *:-:* | *:-) cat >"$tmp/stdin" \
30748 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30749 esac
30751 esac
30753 ac_dir=`$as_dirname -- "$ac_file" ||
30754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30755 X"$ac_file" : 'X\(//\)[^/]' \| \
30756 X"$ac_file" : 'X\(//\)$' \| \
30757 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30758 $as_echo X"$ac_file" |
30759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30760 s//\1/
30763 /^X\(\/\/\)[^/].*/{
30764 s//\1/
30767 /^X\(\/\/\)$/{
30768 s//\1/
30771 /^X\(\/\).*/{
30772 s//\1/
30775 s/.*/./; q'`
30776 as_dir="$ac_dir"; as_fn_mkdir_p
30777 ac_builddir=.
30779 case "$ac_dir" in
30780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30783 # A ".." for each directory in $ac_dir_suffix.
30784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30785 case $ac_top_builddir_sub in
30786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30788 esac ;;
30789 esac
30790 ac_abs_top_builddir=$ac_pwd
30791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30792 # for backward compatibility:
30793 ac_top_builddir=$ac_top_build_prefix
30795 case $srcdir in
30796 .) # We are building in place.
30797 ac_srcdir=.
30798 ac_top_srcdir=$ac_top_builddir_sub
30799 ac_abs_top_srcdir=$ac_pwd ;;
30800 [\\/]* | ?:[\\/]* ) # Absolute name.
30801 ac_srcdir=$srcdir$ac_dir_suffix;
30802 ac_top_srcdir=$srcdir
30803 ac_abs_top_srcdir=$srcdir ;;
30804 *) # Relative name.
30805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30806 ac_top_srcdir=$ac_top_build_prefix$srcdir
30807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30808 esac
30809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30812 case $ac_mode in
30815 # CONFIG_FILE
30818 _ACEOF
30820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30821 # If the template does not know about datarootdir, expand it.
30822 # FIXME: This hack should be removed a few years after 2.60.
30823 ac_datarootdir_hack=; ac_datarootdir_seen=
30824 ac_sed_dataroot='
30825 /datarootdir/ {
30829 /@datadir@/p
30830 /@docdir@/p
30831 /@infodir@/p
30832 /@localedir@/p
30833 /@mandir@/p'
30834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30835 *datarootdir*) ac_datarootdir_seen=yes;;
30836 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30839 _ACEOF
30840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30841 ac_datarootdir_hack='
30842 s&@datadir@&$datadir&g
30843 s&@docdir@&$docdir&g
30844 s&@infodir@&$infodir&g
30845 s&@localedir@&$localedir&g
30846 s&@mandir@&$mandir&g
30847 s&\\\${datarootdir}&$datarootdir&g' ;;
30848 esac
30849 _ACEOF
30851 # Neutralize VPATH when `$srcdir' = `.'.
30852 # Shell code in configure.ac might set extrasub.
30853 # FIXME: do we really want to maintain this feature?
30854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30855 ac_sed_extra="$ac_vpsub
30856 $extrasub
30857 _ACEOF
30858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30861 s|@configure_input@|$ac_sed_conf_input|;t t
30862 s&@top_builddir@&$ac_top_builddir_sub&;t t
30863 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30864 s&@srcdir@&$ac_srcdir&;t t
30865 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30866 s&@top_srcdir@&$ac_top_srcdir&;t t
30867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30868 s&@builddir@&$ac_builddir&;t t
30869 s&@abs_builddir@&$ac_abs_builddir&;t t
30870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30871 $ac_datarootdir_hack
30873 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30874 if $ac_cs_awk_getline; then
30875 $AWK -f "$tmp/subs.awk"
30876 else
30877 $AWK -f "$tmp/subs.awk" | $SHELL
30878 fi >$tmp/out \
30879 || as_fn_error "could not create $ac_file" "$LINENO" 5
30881 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30882 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30883 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30885 which seems to be undefined. Please make sure it is defined." >&5
30886 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30887 which seems to be undefined. Please make sure it is defined." >&2;}
30889 rm -f "$tmp/stdin"
30890 case $ac_file in
30891 -) cat "$tmp/out" && rm -f "$tmp/out";;
30892 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30893 esac \
30894 || as_fn_error "could not create $ac_file" "$LINENO" 5
30898 # CONFIG_HEADER
30900 if test x"$ac_file" != x-; then
30902 $as_echo "/* $configure_input */" \
30903 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30904 } >"$tmp/config.h" \
30905 || as_fn_error "could not create $ac_file" "$LINENO" 5
30906 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30908 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30909 else
30910 rm -f "$ac_file"
30911 mv "$tmp/config.h" "$ac_file" \
30912 || as_fn_error "could not create $ac_file" "$LINENO" 5
30914 else
30915 $as_echo "/* $configure_input */" \
30916 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30917 || as_fn_error "could not create -" "$LINENO" 5
30922 # CONFIG_LINK
30925 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30927 else
30928 # Prefer the file from the source tree if names are identical.
30929 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30930 ac_source=$srcdir/$ac_source
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30934 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30936 if test ! -r "$ac_source"; then
30937 as_fn_error "$ac_source: file not found" "$LINENO" 5
30939 rm -f "$ac_file"
30941 # Try a relative symlink, then a hard link, then a copy.
30942 case $srcdir in
30943 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30944 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30945 esac
30946 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30947 ln "$ac_source" "$ac_file" 2>/dev/null ||
30948 cp -p "$ac_source" "$ac_file" ||
30949 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30952 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30953 $as_echo "$as_me: executing $ac_file commands" >&6;}
30955 esac
30958 case $ac_file$ac_mode in
30959 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30960 "gccdepdir":C)
30961 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30962 for lang in $subdirs c-family common
30964 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30965 done ;;
30966 "as":F) chmod +x as ;;
30967 "collect-ld":F) chmod +x collect-ld ;;
30968 "nm":F) chmod +x nm ;;
30969 "default":C)
30970 case ${CONFIG_HEADERS} in
30971 *auto-host.h:config.in*)
30972 echo > cstamp-h ;;
30973 esac
30974 # Make sure all the subdirs exist.
30975 for d in $subdirs doc build common c-family
30977 test -d $d || mkdir $d
30978 done
30981 esac
30982 done # for ac_tag
30985 as_fn_exit 0
30986 _ACEOF
30987 ac_clean_files=$ac_clean_files_save
30989 test $ac_write_fail = 0 ||
30990 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30993 # configure is writing to config.log, and then calls config.status.
30994 # config.status does its own redirection, appending to config.log.
30995 # Unfortunately, on DOS this fails, as config.log is still kept open
30996 # by configure, so config.status won't be able to write to it; its
30997 # output is simply discarded. So we exec the FD to /dev/null,
30998 # effectively closing config.log, so it can be properly (re)opened and
30999 # appended to by config.status. When coming back to configure, we
31000 # need to make the FD available again.
31001 if test "$no_create" != yes; then
31002 ac_cs_success=:
31003 ac_config_status_args=
31004 test "$silent" = yes &&
31005 ac_config_status_args="$ac_config_status_args --quiet"
31006 exec 5>/dev/null
31007 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31008 exec 5>>config.log
31009 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31010 # would make configure fail if this is the last instruction.
31011 $ac_cs_success || as_fn_exit $?
31013 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31015 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}