configure.ac: Remove extraneous ;;.
[official-gcc.git] / gcc / configure
blobc2b630e1e632e63c6b34cdfbaff6e13756ab6225
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CXXFLAGS
713 BUILD_CFLAGS
714 CXX_FOR_BUILD
715 CC_FOR_BUILD
716 inhibit_libc
717 SYSTEM_HEADER_DIR
719 CROSS
720 CATOBJEXT
721 GENCAT
722 INSTOBJEXT
723 DATADIRNAME
724 CATALOGS
725 POSUB
726 GMSGFMT
727 XGETTEXT
728 INCINTL
729 LIBINTL_DEP
730 LIBINTL
731 USE_NLS
732 extra_opt_files
733 extra_modes_file
734 NATIVE_SYSTEM_HEADER_DIR
735 objext
736 manext
737 LIBICONV_DEP
738 LTLIBICONV
739 LIBICONV
740 LDEXP_LIB
741 EXTRA_GCC_LIBS
742 GNAT_LIBEXC
743 COLLECT2_LIBS
744 CXXDEPMODE
745 DEPDIR
746 am__leading_dot
747 doc_build_sys
750 BISON
751 FLEX
752 GENERATED_MANPAGES
753 BUILD_INFO
754 MAKEINFO
755 have_mktemp_command
756 make_compare_target
757 INSTALL_DATA
758 INSTALL_PROGRAM
759 INSTALL
760 ranlib_flags
761 RANLIB
763 LN_S
765 SET_MAKE
766 accel_dir_suffix
767 real_target_noncanonical
768 enable_as_accelerator
769 REPORT_BUGS_TEXI
770 REPORT_BUGS_TO
771 PKGVERSION
772 CONFIGURE_SPECS
773 enable_shared
774 enable_fixed_point
775 enable_decimal_float
776 with_float
777 with_cpu
778 enable_multiarch
779 enable_multilib
780 coverage_flags
781 valgrind_command
782 valgrind_path_defines
783 valgrind_path
784 TREECHECKING
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 aliasing_flags
795 EGREP
796 GREP
797 CXXCPP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
811 GENINSRC
812 CROSS_SYSTEM_HEADER_DIR
813 TARGET_SYSTEM_ROOT_DEFINE
814 TARGET_SYSTEM_ROOT
815 SYSROOT_CFLAGS_FOR_TARGET
816 target_subdir
817 host_subdir
818 build_subdir
819 build_libsubdir
820 target_noncanonical
821 target_os
822 target_vendor
823 target_cpu
824 target
825 host_os
826 host_vendor
827 host_cpu
828 host
829 build_os
830 build_vendor
831 build_cpu
832 build
833 target_alias
834 host_alias
835 build_alias
836 LIBS
837 ECHO_T
838 ECHO_N
839 ECHO_C
840 DEFS
841 mandir
842 localedir
843 libdir
844 psdir
845 pdfdir
846 dvidir
847 htmldir
848 infodir
849 docdir
850 oldincludedir
851 includedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL'
871 ac_subst_files='option_includes
872 language_hooks'
873 ac_user_opts='
874 enable_option_checking
875 with_build_libsubdir
876 with_local_prefix
877 with_native_system_header_dir
878 with_build_sysroot
879 with_sysroot
880 with_gxx_include_dir
881 with_cpp_install_dir
882 enable_generated_files_in_srcdir
883 with_gnu_ld
884 with_ld
885 with_demangler_in_ld
886 with_gnu_as
887 with_as
888 enable_largefile
889 enable_build_format_warnings
890 enable_werror_always
891 enable_checking
892 enable_coverage
893 enable_gather_detailed_mem_stats
894 enable_valgrind_annotations
895 with_stabs
896 enable_multilib
897 enable_multiarch
898 enable___cxa_atexit
899 enable_decimal_float
900 enable_fixed_point
901 enable_threads
902 enable_tls
903 enable_objc_gc
904 with_dwarf2
905 enable_shared
906 with_specs
907 with_pkgversion
908 with_bugurl
909 enable_languages
910 with_multilib_list
911 enable_rpath
912 with_libiconv_prefix
913 enable_sjlj_exceptions
914 enable_secureplt
915 enable_leading_mingw64_underscores
916 enable_cld
917 enable_frame_pointer
918 enable_win32_registry
919 enable_static
920 with_pic
921 enable_fast_install
922 enable_libtool_lock
923 enable_ld
924 enable_gold
925 with_plugin_ld
926 enable_gnu_indirect_function
927 enable_initfini_array
928 enable_comdat
929 enable_fix_cortex_a53_835769
930 enable_fix_cortex_a53_843419
931 with_glibc_version
932 enable_gnu_unique_object
933 enable_linker_build_id
934 enable_default_ssp
935 with_long_double_128
936 with_gc
937 with_system_zlib
938 enable_maintainer_mode
939 enable_link_mutex
940 enable_version_specific_runtime_libs
941 enable_plugin
942 enable_host_shared
943 enable_libquadmath_support
944 with_linker_hash_style
945 with_diagnostics_color
946 enable_default_pie
948 ac_precious_vars='build_alias
949 host_alias
950 target_alias
952 CFLAGS
953 LDFLAGS
954 LIBS
955 CPPFLAGS
957 CXXFLAGS
959 CXXCPP
961 GMPLIBS
962 GMPINC
963 ISLLIBS
964 ISLINC'
967 # Initialize some variables set by options.
968 ac_init_help=
969 ac_init_version=false
970 ac_unrecognized_opts=
971 ac_unrecognized_sep=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
974 cache_file=/dev/null
975 exec_prefix=NONE
976 no_create=
977 no_recursion=
978 prefix=NONE
979 program_prefix=NONE
980 program_suffix=NONE
981 program_transform_name=s,x,x,
982 silent=
983 site=
984 srcdir=
985 verbose=
986 x_includes=NONE
987 x_libraries=NONE
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir='${exec_prefix}/bin'
996 sbindir='${exec_prefix}/sbin'
997 libexecdir='${exec_prefix}/libexec'
998 datarootdir='${prefix}/share'
999 datadir='${datarootdir}'
1000 sysconfdir='${prefix}/etc'
1001 sharedstatedir='${prefix}/com'
1002 localstatedir='${prefix}/var'
1003 includedir='${prefix}/include'
1004 oldincludedir='/usr/include'
1005 docdir='${datarootdir}/doc/${PACKAGE}'
1006 infodir='${datarootdir}/info'
1007 htmldir='${docdir}'
1008 dvidir='${docdir}'
1009 pdfdir='${docdir}'
1010 psdir='${docdir}'
1011 libdir='${exec_prefix}/lib'
1012 localedir='${datarootdir}/locale'
1013 mandir='${datarootdir}/man'
1015 ac_prev=
1016 ac_dashdash=
1017 for ac_option
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\$ac_option
1022 ac_prev=
1023 continue
1026 case $ac_option in
1027 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 *) ac_optarg=yes ;;
1029 esac
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1033 case $ac_dashdash$ac_option in
1035 ac_dashdash=yes ;;
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 ac_prev=bindir ;;
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1040 bindir=$ac_optarg ;;
1042 -build | --build | --buil | --bui | --bu)
1043 ac_prev=build_alias ;;
1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1045 build_alias=$ac_optarg ;;
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 ac_prev=cache_file ;;
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1052 cache_file=$ac_optarg ;;
1054 --config-cache | -C)
1055 cache_file=config.cache ;;
1057 -datadir | --datadir | --datadi | --datad)
1058 ac_prev=datadir ;;
1059 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1060 datadir=$ac_optarg ;;
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063 | --dataroo | --dataro | --datar)
1064 ac_prev=datarootdir ;;
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067 datarootdir=$ac_optarg ;;
1069 -disable-* | --disable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=no ;;
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1095 -enable-* | --enable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1189 no_create=yes ;;
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 ac_prev=sbindir ;;
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 | --sbi=* | --sb=*)
1258 sbindir=$ac_optarg ;;
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1263 | --sha | --sh)
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 | --sha=* | --sh=*)
1269 sharedstatedir=$ac_optarg ;;
1271 -site | --site | --sit)
1272 ac_prev=site ;;
1273 -site=* | --site=* | --sit=*)
1274 site=$ac_optarg ;;
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 ac_prev=srcdir ;;
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 verbose=yes ;;
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1299 -with-* | --with-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=\$ac_optarg ;;
1315 -without-* | --without-*)
1316 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1319 as_fn_error "invalid package name: $ac_useropt"
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1324 "with_$ac_useropt"
1325 "*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
1328 esac
1329 eval with_$ac_useropt=no ;;
1331 --x)
1332 # Obsolete; use --with-x.
1333 with_x=yes ;;
1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1336 | --x-incl | --x-inc | --x-in | --x-i)
1337 ac_prev=x_includes ;;
1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1340 x_includes=$ac_optarg ;;
1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1344 ac_prev=x_libraries ;;
1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1347 x_libraries=$ac_optarg ;;
1349 -*) as_fn_error "unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information."
1353 *=*)
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' | [0-9]* | *[!_$as_cr_alnum]* )
1358 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1359 esac
1360 eval $ac_envvar=\$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371 esac
1372 done
1374 if test -n "$ac_prev"; then
1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error "missing argument to $ac_option"
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1381 no) ;;
1382 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 esac
1387 # Check all directory arguments for consistency.
1388 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val=\$$ac_var
1394 # Remove trailing slashes.
1395 case $ac_val in
1396 */ )
1397 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\$ac_val;;
1399 esac
1400 # Be sure to have absolute directory names.
1401 case $ac_val in
1402 [\\/$]* | ?:[\\/]* ) continue;;
1403 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1404 esac
1405 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1406 done
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1411 build=$build_alias
1412 host=$host_alias
1413 target=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x; then
1417 if test "x$build_alias" = x; then
1418 cross_compiling=maybe
1419 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1420 If a cross compiler is detected then cross compile mode will be used." >&2
1421 elif test "x$build_alias" != "x$host_alias"; then
1422 cross_compiling=yes
1426 ac_tool_prefix=
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429 test "$silent" = yes && exec 6>/dev/null
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error "working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error "pwd does not report name of working directory"
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 s//\1/
1454 /^X\(\/\/\)[^/].*/{
1455 s//\1/
1458 /^X\(\/\/\)$/{
1459 s//\1/
1462 /^X\(\/\).*/{
1463 s//\1/
1466 s/.*/./; q'`
1467 srcdir=$ac_confdir
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 srcdir=..
1471 else
1472 ac_srcdir_defaulted=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479 ac_abs_confdir=`(
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1481 pwd)`
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 srcdir=.
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1489 case $srcdir in
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 esac
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 done
1500 # Report the --help message.
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1505 cat <<_ACEOF
1506 \`configure' configures this package to adapt to many kinds of systems.
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1513 Defaults for the options are specified in brackets.
1515 Configuration:
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 [PREFIX]
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1537 For better control, use the options below.
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1559 _ACEOF
1561 cat <<\_ACEOF
1563 Program names:
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1568 System types:
1569 --build=BUILD configure for building on BUILD [guessed]
1570 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1571 --target=TARGET configure for building compilers for TARGET [HOST]
1572 _ACEOF
1575 if test -n "$ac_init_help"; then
1577 cat <<\_ACEOF
1579 Optional Features:
1580 --disable-option-checking ignore unrecognized --enable/--with options
1581 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1582 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1583 --enable-generated-files-in-srcdir
1584 put copies of generated files in source dir intended
1585 for creating source tarballs for users without
1586 texinfo bison or flex
1587 --disable-largefile omit support for large files
1588 --disable-build-format-warnings
1589 don't use -Wformat while building GCC
1590 --enable-werror-always enable -Werror despite compiler version
1591 --enable-checking[=LIST]
1592 enable expensive run-time checks. With LIST, enable
1593 only specific categories of checks. Categories are:
1594 yes,no,all,none,release. Flags are:
1595 assert,df,fold,gc,gcac,gimple,misc,
1596 rtlflag,rtl,runtime,tree,valgrind,types
1597 --enable-coverage[=LEVEL]
1598 enable compiler's code coverage collection. Use to
1599 measure compiler performance and locate unused parts
1600 of the compiler. With LEVEL, specify optimization.
1601 Values are opt, noopt, default is noopt
1602 --enable-gather-detailed-mem-stats
1603 enable detailed memory allocation stats gathering
1604 --enable-valgrind-annotations
1605 enable valgrind runtime interaction
1606 --enable-multilib enable library support for multiple ABIs
1607 --enable-multiarch enable support for multiarch paths
1608 --enable-__cxa_atexit enable __cxa_atexit for C++
1609 --enable-decimal-float={no,yes,bid,dpd}
1610 enable decimal float extension to C. Selecting 'bid'
1611 or 'dpd' choses which decimal floating point format
1612 to use
1613 --enable-fixed-point enable fixed-point arithmetic extension to C
1614 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1615 package
1616 --enable-tls enable or disable generation of tls code overriding
1617 the assembler check for tls support
1618 --enable-objc-gc enable the use of Boehm's garbage collector with the
1619 GNU Objective-C runtime
1620 --disable-shared don't provide a shared libgcc
1621 --enable-languages=LIST specify which front-ends to build
1622 --disable-rpath do not hardcode runtime library paths
1623 --enable-sjlj-exceptions
1624 arrange to use setjmp/longjmp exception handling
1625 --enable-secureplt enable -msecure-plt by default for PowerPC
1626 --enable-leading-mingw64-underscores
1627 enable leading underscores on 64 bit mingw targets
1628 --enable-cld enable -mcld by default for 32bit x86
1629 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1631 --disable-win32-registry
1632 disable lookup of installation paths in the Registry
1633 on Windows hosts
1634 --enable-win32-registry enable registry lookup (default)
1635 --enable-win32-registry=KEY
1636 use KEY instead of GCC version as the last portion
1637 of the registry key
1638 --enable-shared[=PKGS] build shared libraries [default=yes]
1639 --enable-static[=PKGS] build static libraries [default=yes]
1640 --enable-fast-install[=PKGS]
1641 optimize for fast installation [default=yes]
1642 --disable-libtool-lock avoid locking (might break parallel builds)
1643 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1644 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1645 --enable-gnu-indirect-function
1646 enable the use of the @gnu_indirect_function to
1647 glibc systems
1648 --enable-initfini-array use .init_array/.fini_array sections
1649 --enable-comdat enable COMDAT group support
1651 --enable-fix-cortex-a53-835769
1652 enable workaround for AArch64 Cortex-A53 erratum
1653 835769 by default
1654 --disable-fix-cortex-a53-835769
1655 disable workaround for AArch64 Cortex-A53 erratum
1656 835769 by default
1659 --enable-fix-cortex-a53-843419
1660 enable workaround for AArch64 Cortex-A53 erratum
1661 843419 by default
1662 --disable-fix-cortex-a53-843419
1663 disable workaround for AArch64 Cortex-A53 erratum
1664 843419 by default
1666 --enable-gnu-unique-object
1667 enable the use of the @gnu_unique_object ELF
1668 extension on glibc systems
1669 --enable-linker-build-id
1670 compiler will always pass --build-id to linker
1671 --enable-default-ssp enable Stack Smashing Protection as default
1672 --enable-maintainer-mode
1673 enable make rules and dependencies not useful (and
1674 sometimes confusing) to the casual installer
1675 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1676 thrashing on the build machine
1677 --enable-version-specific-runtime-libs
1678 specify that runtime libraries should be installed
1679 in a compiler-specific directory
1680 --enable-plugin enable plugin support
1681 --enable-host-shared build host code as shared libraries
1682 --disable-libquadmath-support
1683 disable libquadmath support for Fortran
1684 --enable-default-pie enable Position Independent Executable as default
1686 Optional Packages:
1687 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1688 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1689 --with-build-libsubdir=DIR Directory where to find libraries for build system
1690 --with-local-prefix=DIR specifies directory to put local include
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to look for standard
1693 system header files in. Defaults to /usr/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1697 --with-gxx-include-dir=DIR
1698 specifies directory to put g++ header files
1699 --with-cpp-install-dir=DIR
1700 install the user visible C preprocessor in DIR
1701 (relative to PREFIX) as well as PREFIX/bin
1702 --with-gnu-ld arrange to work with GNU ld
1703 --with-ld arrange to use the specified ld (full pathname)
1704 --with-demangler-in-ld try to use demangler in GNU ld
1705 --with-gnu-as arrange to work with GNU as
1706 --with-as arrange to use the specified as (full pathname)
1707 --with-stabs arrange to use stabs instead of host debug format
1708 --with-dwarf2 force the default debug format to be DWARF 2
1709 --with-specs=SPECS add SPECS to driver command-line processing
1710 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1711 --with-bugurl=URL Direct users to URL to report a bug
1712 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1713 --with-gnu-ld assume the C compiler uses GNU ld default=no
1714 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1715 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1716 --with-pic try to use only PIC/non-PIC objects [default=use
1717 both]
1718 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1719 --with-plugin-ld=[ARG] specify the plugin linker
1720 --with-glibc-version=M.N
1721 assume GCC used with glibc version M.N or later
1722 --with-long-double-128 use 128-bit long double by default
1723 --with-gc={page,zone} this option is not supported anymore. It used to
1724 choose the garbage collection mechanism to use with
1725 the compiler
1726 --with-system-zlib use installed libz
1727 --with-linker-hash-style={sysv,gnu,both}
1728 specify the linker hash style
1729 --with-diagnostics-color={never,auto,auto-if-env,always}
1730 specify the default of -fdiagnostics-color option
1731 auto-if-env stands for -fdiagnostics-color=auto if
1732 GCC_COLOR environment variable is present and
1733 -fdiagnostics-color=never otherwise
1735 Some influential environment variables:
1736 CC C compiler command
1737 CFLAGS C compiler flags
1738 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1739 nonstandard directory <lib dir>
1740 LIBS libraries to pass to the linker, e.g. -l<library>
1741 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1742 you have headers in a nonstandard directory <include dir>
1743 CXX C++ compiler command
1744 CXXFLAGS C++ compiler flags
1745 CXXCPP C++ preprocessor
1746 CPP C preprocessor
1747 GMPLIBS How to link GMP
1748 GMPINC How to find GMP include files
1749 ISLLIBS How to link ISL
1750 ISLINC How to find ISL include files
1752 Use these variables to override the choices made by `configure' or to help
1753 it to find libraries and programs with nonstandard names/locations.
1755 Report bugs to the package provider.
1756 _ACEOF
1757 ac_status=$?
1760 if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1765 continue
1766 ac_builddir=.
1768 case "$ac_dir" in
1769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1777 esac ;;
1778 esac
1779 ac_abs_top_builddir=$ac_pwd
1780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir=$ac_top_build_prefix
1784 case $srcdir in
1785 .) # We are building in place.
1786 ac_srcdir=.
1787 ac_top_srcdir=$ac_top_builddir_sub
1788 ac_abs_top_srcdir=$ac_pwd ;;
1789 [\\/]* | ?:[\\/]* ) # Absolute name.
1790 ac_srcdir=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir=$srcdir
1792 ac_abs_top_srcdir=$srcdir ;;
1793 *) # Relative name.
1794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1797 esac
1798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1800 cd "$ac_dir" || { ac_status=$?; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1806 echo &&
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1808 else
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1810 fi || ac_status=$?
1811 cd "$ac_pwd" || { ac_status=$?; break; }
1812 done
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1817 cat <<\_ACEOF
1818 configure
1819 generated by GNU Autoconf 2.64
1821 Copyright (C) 2009 Free Software Foundation, Inc.
1822 This configure script is free software; the Free Software Foundation
1823 gives unlimited permission to copy, distribute and modify it.
1824 _ACEOF
1825 exit
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 return $ac_retval
1868 } # ac_fn_c_try_compile
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1906 } # ac_fn_cxx_try_compile
1908 # ac_fn_cxx_try_cpp LINENO
1909 # ------------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_cpp ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_cpp conftest.$ac_ext"
1915 case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } >/dev/null && {
1930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1932 }; then :
1933 ac_retval=0
1934 else
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 ac_retval=1
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 return $ac_retval
1943 } # ac_fn_cxx_try_cpp
1945 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # ---------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1949 # accordingly.
1950 ac_fn_cxx_check_header_mongrel ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 else
1963 # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_cxx_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1973 else
1974 ac_header_compiler=no
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1985 #include <$2>
1986 _ACEOF
1987 if ac_fn_cxx_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1989 else
1990 ac_header_preproc=no
1992 rm -f conftest.err conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1996 # So? What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1998 yes:no: )
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 no:yes:* )
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2016 esac
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 eval "$3=\$ac_header_compiler"
2024 eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_cxx_check_header_mongrel
2032 # ac_fn_cxx_try_run LINENO
2033 # ------------------------
2034 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2035 # that executables *can* be run.
2036 ac_fn_cxx_try_run ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if { { ac_try="$ac_link"
2040 case "(($ac_try" in
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_link") 2>&5
2047 ac_status=$?
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2050 { { case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_try") 2>&5
2057 ac_status=$?
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; }; }; then :
2060 ac_retval=0
2061 else
2062 $as_echo "$as_me: program exited with status $ac_status" >&5
2063 $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2066 ac_retval=$ac_status
2068 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 return $ac_retval
2072 } # ac_fn_cxx_try_run
2074 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2075 # ---------------------------------------------------------
2076 # Tests whether HEADER exists and can be compiled using the include files in
2077 # INCLUDES, setting the cache variable VAR accordingly.
2078 ac_fn_cxx_check_header_compile ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2089 #include <$2>
2090 _ACEOF
2091 if ac_fn_cxx_try_compile "$LINENO"; then :
2092 eval "$3=yes"
2093 else
2094 eval "$3=no"
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_cxx_check_header_compile
2105 # ac_fn_c_try_cpp LINENO
2106 # ----------------------
2107 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_c_try_cpp ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_cpp conftest.$ac_ext"
2112 case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115 esac
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2119 ac_status=$?
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } >/dev/null && {
2127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2129 }; then :
2130 ac_retval=0
2131 else
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2135 ac_retval=1
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 return $ac_retval
2140 } # ac_fn_c_try_cpp
2142 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2143 # ----------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 # computed
2147 ac_fn_cxx_compute_int ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 main ()
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2159 test_array [0] = 0
2162 return 0;
2164 _ACEOF
2165 if ac_fn_cxx_try_compile "$LINENO"; then :
2166 ac_lo=0 ac_mid=0
2167 while :; do
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0
2178 return 0;
2180 _ACEOF
2181 if ac_fn_cxx_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid; break
2183 else
2184 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2185 if test $ac_lo -le $ac_mid; then
2186 ac_lo= ac_hi=
2187 break
2189 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 done
2193 else
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2198 main ()
2200 static int test_array [1 - 2 * !(($2) < 0)];
2201 test_array [0] = 0
2204 return 0;
2206 _ACEOF
2207 if ac_fn_cxx_try_compile "$LINENO"; then :
2208 ac_hi=-1 ac_mid=-1
2209 while :; do
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2214 main ()
2216 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2217 test_array [0] = 0
2220 return 0;
2222 _ACEOF
2223 if ac_fn_cxx_try_compile "$LINENO"; then :
2224 ac_lo=$ac_mid; break
2225 else
2226 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2227 if test $ac_mid -le $ac_hi; then
2228 ac_lo= ac_hi=
2229 break
2231 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 done
2235 else
2236 ac_lo= ac_hi=
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 # Binary search between lo and hi bounds.
2242 while test "x$ac_lo" != "x$ac_hi"; do
2243 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2248 main ()
2250 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2251 test_array [0] = 0
2254 return 0;
2256 _ACEOF
2257 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 ac_hi=$ac_mid
2259 else
2260 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 done
2264 case $ac_lo in #((
2265 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2266 '') ac_retval=1 ;;
2267 esac
2268 else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2274 #include <stdio.h>
2275 #include <stdlib.h>
2277 main ()
2280 FILE *f = fopen ("conftest.val", "w");
2281 if (! f)
2282 return 1;
2283 if (($2) < 0)
2285 long int i = longval ();
2286 if (i != ($2))
2287 return 1;
2288 fprintf (f, "%ld", i);
2290 else
2292 unsigned long int i = ulongval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%lu", i);
2297 /* Do not output a trailing newline, as this causes \r\n confusion
2298 on some platforms. */
2299 return ferror (f) || fclose (f) != 0;
2302 return 0;
2304 _ACEOF
2305 if ac_fn_cxx_try_run "$LINENO"; then :
2306 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2307 else
2308 ac_retval=1
2310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2311 conftest.$ac_objext conftest.beam conftest.$ac_ext
2312 rm -f conftest.val
2315 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316 return $ac_retval
2318 } # ac_fn_cxx_compute_int
2320 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether TYPE exists after having included INCLUDES, setting cache
2323 # variable VAR accordingly.
2324 ac_fn_cxx_check_type ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 eval "$3=no"
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2337 main ()
2339 if (sizeof ($2))
2340 return 0;
2342 return 0;
2344 _ACEOF
2345 if ac_fn_cxx_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2350 main ()
2352 if (sizeof (($2)))
2353 return 0;
2355 return 0;
2357 _ACEOF
2358 if ac_fn_cxx_try_compile "$LINENO"; then :
2360 else
2361 eval "$3=yes"
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2367 eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2372 } # ac_fn_cxx_check_type
2374 # ac_fn_c_find_intX_t LINENO BITS VAR
2375 # -----------------------------------
2376 # Finds a signed integer type with width BITS, setting cache variable VAR
2377 # accordingly.
2378 ac_fn_c_find_intX_t ()
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2382 $as_echo_n "checking for int$2_t... " >&6; }
2383 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2384 $as_echo_n "(cached) " >&6
2385 else
2386 eval "$3=no"
2387 for ac_type in int$2_t 'int' 'long int' \
2388 'long long int' 'short int' 'signed char'; do
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2391 $ac_includes_default
2393 main ()
2395 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2396 test_array [0] = 0
2399 return 0;
2401 _ACEOF
2402 if ac_fn_cxx_try_compile "$LINENO"; then :
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2407 main ()
2409 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2410 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2411 test_array [0] = 0
2414 return 0;
2416 _ACEOF
2417 if ac_fn_cxx_try_compile "$LINENO"; then :
2419 else
2420 case $ac_type in #(
2421 int$2_t) :
2422 eval "$3=yes" ;; #(
2423 *) :
2424 eval "$3=\$ac_type" ;;
2425 esac
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 eval as_val=\$$3
2431 if test "x$as_val" = x""no; then :
2433 else
2434 break
2436 done
2438 eval ac_res=\$$3
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443 } # ac_fn_c_find_intX_t
2445 # ac_fn_cxx_try_link LINENO
2446 # -------------------------
2447 # Try to link conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_cxx_try_link ()
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { { ac_try="$ac_link"
2453 case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456 esac
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2460 ac_status=$?
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2473 }; then :
2474 ac_retval=0
2475 else
2476 $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2479 ac_retval=1
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487 return $ac_retval
2489 } # ac_fn_cxx_try_link
2491 # ac_fn_c_find_uintX_t LINENO BITS VAR
2492 # ------------------------------------
2493 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2494 # accordingly.
2495 ac_fn_c_find_uintX_t ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2499 $as_echo_n "checking for uint$2_t... " >&6; }
2500 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 eval "$3=no"
2504 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2505 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 $ac_includes_default
2510 main ()
2512 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2513 test_array [0] = 0
2516 return 0;
2518 _ACEOF
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2520 case $ac_type in #(
2521 uint$2_t) :
2522 eval "$3=yes" ;; #(
2523 *) :
2524 eval "$3=\$ac_type" ;;
2525 esac
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528 eval as_val=\$$3
2529 if test "x$as_val" = x""no; then :
2531 else
2532 break
2534 done
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 } # ac_fn_c_find_uintX_t
2543 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2544 # ------------------------------------------------
2545 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2546 ac_fn_cxx_check_header_preproc ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 #include <$2>
2557 _ACEOF
2558 if ac_fn_cxx_try_cpp "$LINENO"; then :
2559 eval "$3=yes"
2560 else
2561 eval "$3=no"
2563 rm -f conftest.err conftest.$ac_ext
2565 eval ac_res=\$$3
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2570 } # ac_fn_cxx_check_header_preproc
2572 # ac_fn_cxx_check_func LINENO FUNC VAR
2573 # ------------------------------------
2574 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2575 ac_fn_cxx_check_func ()
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2579 $as_echo_n "checking for $2... " >&6; }
2580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2585 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2587 #define $2 innocuous_$2
2589 /* System header to define __stub macros and hopefully few prototypes,
2590 which can conflict with char $2 (); below.
2591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2592 <limits.h> exists even on freestanding compilers. */
2594 #ifdef __STDC__
2595 # include <limits.h>
2596 #else
2597 # include <assert.h>
2598 #endif
2600 #undef $2
2602 /* Override any GCC internal prototype to avoid an error.
2603 Use char because int might match the return type of a GCC
2604 builtin and then its argument prototype would still apply. */
2605 #ifdef __cplusplus
2606 extern "C"
2607 #endif
2608 char $2 ();
2609 /* The GNU C library defines this for functions which it implements
2610 to always fail with ENOSYS. Some functions are actually named
2611 something starting with __ and the normal name is an alias. */
2612 #if defined __stub_$2 || defined __stub___$2
2613 choke me
2614 #endif
2617 main ()
2619 return $2 ();
2621 return 0;
2623 _ACEOF
2624 if ac_fn_cxx_try_link "$LINENO"; then :
2625 eval "$3=yes"
2626 else
2627 eval "$3=no"
2629 rm -f core conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2632 eval ac_res=\$$3
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634 $as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2637 } # ac_fn_cxx_check_func
2639 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2640 # --------------------------------------
2641 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2642 ac_fn_cxx_check_decl ()
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 as_decl_name=`echo $2|sed 's/ *(.*//'`
2646 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2648 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2656 main ()
2658 #ifndef $as_decl_name
2659 #ifdef __cplusplus
2660 (void) $as_decl_use;
2661 #else
2662 (void) $as_decl_name;
2663 #endif
2664 #endif
2667 return 0;
2669 _ACEOF
2670 if ac_fn_cxx_try_compile "$LINENO"; then :
2671 eval "$3=yes"
2672 else
2673 eval "$3=no"
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 eval ac_res=\$$3
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2682 } # ac_fn_cxx_check_decl
2684 # ac_fn_c_try_link LINENO
2685 # -----------------------
2686 # Try to link conftest.$ac_ext, and return whether this succeeded.
2687 ac_fn_c_try_link ()
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 rm -f conftest.$ac_objext conftest$ac_exeext
2691 if { { ac_try="$ac_link"
2692 case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698 (eval "$ac_link") 2>conftest.err
2699 ac_status=$?
2700 if test -s conftest.err; then
2701 grep -v '^ *+' conftest.err >conftest.er1
2702 cat conftest.er1 >&5
2703 mv -f conftest.er1 conftest.err
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest$ac_exeext && {
2710 test "$cross_compiling" = yes ||
2711 $as_test_x conftest$ac_exeext
2712 }; then :
2713 ac_retval=0
2714 else
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 ac_retval=1
2720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2722 # interfere with the next link command; also delete a directory that is
2723 # left behind by Apple's compiler. We do this before executing the actions.
2724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2726 return $ac_retval
2728 } # ac_fn_c_try_link
2730 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2731 # ----------------------------------------------
2732 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2733 ac_fn_c_check_header_preproc ()
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2737 $as_echo_n "checking for $2... " >&6; }
2738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2743 #include <$2>
2744 _ACEOF
2745 if ac_fn_c_try_cpp "$LINENO"; then :
2746 eval "$3=yes"
2747 else
2748 eval "$3=no"
2750 rm -f conftest.err conftest.$ac_ext
2752 eval ac_res=\$$3
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754 $as_echo "$ac_res" >&6; }
2755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2757 } # ac_fn_c_check_header_preproc
2759 # ac_fn_c_check_func LINENO FUNC VAR
2760 # ----------------------------------
2761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2762 ac_fn_c_check_func ()
2764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2766 $as_echo_n "checking for $2... " >&6; }
2767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2774 #define $2 innocuous_$2
2776 /* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char $2 (); below.
2778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2779 <limits.h> exists even on freestanding compilers. */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2787 #undef $2
2789 /* Override any GCC internal prototype to avoid an error.
2790 Use char because int might match the return type of a GCC
2791 builtin and then its argument prototype would still apply. */
2792 #ifdef __cplusplus
2793 extern "C"
2794 #endif
2795 char $2 ();
2796 /* The GNU C library defines this for functions which it implements
2797 to always fail with ENOSYS. Some functions are actually named
2798 something starting with __ and the normal name is an alias. */
2799 #if defined __stub_$2 || defined __stub___$2
2800 choke me
2801 #endif
2804 main ()
2806 return $2 ();
2808 return 0;
2810 _ACEOF
2811 if ac_fn_c_try_link "$LINENO"; then :
2812 eval "$3=yes"
2813 else
2814 eval "$3=no"
2816 rm -f core conftest.err conftest.$ac_objext \
2817 conftest$ac_exeext conftest.$ac_ext
2819 eval ac_res=\$$3
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2821 $as_echo "$ac_res" >&6; }
2822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2824 } # ac_fn_c_check_func
2825 cat >config.log <<_ACEOF
2826 This file contains any messages produced by compilers while
2827 running configure, to aid debugging if configure makes a mistake.
2829 It was created by $as_me, which was
2830 generated by GNU Autoconf 2.64. Invocation command line was
2832 $ $0 $@
2834 _ACEOF
2835 exec 5>>config.log
2837 cat <<_ASUNAME
2838 ## --------- ##
2839 ## Platform. ##
2840 ## --------- ##
2842 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2843 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2844 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2845 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2846 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2848 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2849 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2851 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2852 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2853 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2854 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2855 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2856 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2857 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2859 _ASUNAME
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 $as_echo "PATH: $as_dir"
2867 done
2868 IFS=$as_save_IFS
2870 } >&5
2872 cat >&5 <<_ACEOF
2875 ## ----------- ##
2876 ## Core tests. ##
2877 ## ----------- ##
2879 _ACEOF
2882 # Keep a trace of the command line.
2883 # Strip out --no-create and --no-recursion so they do not pile up.
2884 # Strip out --silent because we don't want to record it for future runs.
2885 # Also quote any args containing shell meta-characters.
2886 # Make two passes to allow for proper duplicate-argument suppression.
2887 ac_configure_args=
2888 ac_configure_args0=
2889 ac_configure_args1=
2890 ac_must_keep_next=false
2891 for ac_pass in 1 2
2893 for ac_arg
2895 case $ac_arg in
2896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2898 | -silent | --silent | --silen | --sile | --sil)
2899 continue ;;
2900 *\'*)
2901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2902 esac
2903 case $ac_pass in
2904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2906 as_fn_append ac_configure_args1 " '$ac_arg'"
2907 if test $ac_must_keep_next = true; then
2908 ac_must_keep_next=false # Got value, back to normal.
2909 else
2910 case $ac_arg in
2911 *=* | --config-cache | -C | -disable-* | --disable-* \
2912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2914 | -with-* | --with-* | -without-* | --without-* | --x)
2915 case "$ac_configure_args0 " in
2916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2917 esac
2919 -* ) ac_must_keep_next=true ;;
2920 esac
2922 as_fn_append ac_configure_args " '$ac_arg'"
2924 esac
2925 done
2926 done
2927 { ac_configure_args0=; unset ac_configure_args0;}
2928 { ac_configure_args1=; unset ac_configure_args1;}
2930 # When interrupted or exit'd, cleanup temporary files, and complete
2931 # config.log. We remove comments because anyway the quotes in there
2932 # would cause problems or look ugly.
2933 # WARNING: Use '\'' to represent an apostrophe within the trap.
2934 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2935 trap 'exit_status=$?
2936 # Save into config.log some information that might help in debugging.
2938 echo
2940 cat <<\_ASBOX
2941 ## ---------------- ##
2942 ## Cache variables. ##
2943 ## ---------------- ##
2944 _ASBOX
2945 echo
2946 # The following way of writing the cache mishandles newlines in values,
2948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2949 eval ac_val=\$$ac_var
2950 case $ac_val in #(
2951 *${as_nl}*)
2952 case $ac_var in #(
2953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2955 esac
2956 case $ac_var in #(
2957 _ | IFS | as_nl) ;; #(
2958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2959 *) { eval $ac_var=; unset $ac_var;} ;;
2960 esac ;;
2961 esac
2962 done
2963 (set) 2>&1 |
2964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2965 *${as_nl}ac_space=\ *)
2966 sed -n \
2967 "s/'\''/'\''\\\\'\'''\''/g;
2968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2969 ;; #(
2971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2973 esac |
2974 sort
2976 echo
2978 cat <<\_ASBOX
2979 ## ----------------- ##
2980 ## Output variables. ##
2981 ## ----------------- ##
2982 _ASBOX
2983 echo
2984 for ac_var in $ac_subst_vars
2986 eval ac_val=\$$ac_var
2987 case $ac_val in
2988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2989 esac
2990 $as_echo "$ac_var='\''$ac_val'\''"
2991 done | sort
2992 echo
2994 if test -n "$ac_subst_files"; then
2995 cat <<\_ASBOX
2996 ## ------------------- ##
2997 ## File substitutions. ##
2998 ## ------------------- ##
2999 _ASBOX
3000 echo
3001 for ac_var in $ac_subst_files
3003 eval ac_val=\$$ac_var
3004 case $ac_val in
3005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3006 esac
3007 $as_echo "$ac_var='\''$ac_val'\''"
3008 done | sort
3009 echo
3012 if test -s confdefs.h; then
3013 cat <<\_ASBOX
3014 ## ----------- ##
3015 ## confdefs.h. ##
3016 ## ----------- ##
3017 _ASBOX
3018 echo
3019 cat confdefs.h
3020 echo
3022 test "$ac_signal" != 0 &&
3023 $as_echo "$as_me: caught signal $ac_signal"
3024 $as_echo "$as_me: exit $exit_status"
3025 } >&5
3026 rm -f core *.core core.conftest.* &&
3027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3028 exit $exit_status
3030 for ac_signal in 1 2 13 15; do
3031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3032 done
3033 ac_signal=0
3035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3036 rm -f -r conftest* confdefs.h
3038 $as_echo "/* confdefs.h */" > confdefs.h
3040 # Predefined preprocessor variables.
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_NAME "$PACKAGE_NAME"
3044 _ACEOF
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3048 _ACEOF
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_STRING "$PACKAGE_STRING"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_URL "$PACKAGE_URL"
3064 _ACEOF
3067 # Let the site file select an alternate cache file if it wants to.
3068 # Prefer an explicitly selected file to automatically selected ones.
3069 ac_site_file1=NONE
3070 ac_site_file2=NONE
3071 if test -n "$CONFIG_SITE"; then
3072 ac_site_file1=$CONFIG_SITE
3073 elif test "x$prefix" != xNONE; then
3074 ac_site_file1=$prefix/share/config.site
3075 ac_site_file2=$prefix/etc/config.site
3076 else
3077 ac_site_file1=$ac_default_prefix/share/config.site
3078 ac_site_file2=$ac_default_prefix/etc/config.site
3080 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3082 test "x$ac_site_file" = xNONE && continue
3083 if test -r "$ac_site_file"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3086 sed 's/^/| /' "$ac_site_file" >&5
3087 . "$ac_site_file"
3089 done
3091 if test -r "$cache_file"; then
3092 # Some versions of bash will fail to source /dev/null (special
3093 # files actually), so we avoid doing that.
3094 if test -f "$cache_file"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3096 $as_echo "$as_me: loading cache $cache_file" >&6;}
3097 case $cache_file in
3098 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3099 *) . "./$cache_file";;
3100 esac
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3104 $as_echo "$as_me: creating cache $cache_file" >&6;}
3105 >$cache_file
3108 # Check that the precious variables saved in the cache have kept the same
3109 # value.
3110 ac_cache_corrupted=false
3111 for ac_var in $ac_precious_vars; do
3112 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3113 eval ac_new_set=\$ac_env_${ac_var}_set
3114 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3115 eval ac_new_val=\$ac_env_${ac_var}_value
3116 case $ac_old_set,$ac_new_set in
3117 set,)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3120 ac_cache_corrupted=: ;;
3121 ,set)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,);;
3127 if test "x$ac_old_val" != "x$ac_new_val"; then
3128 # differences in whitespace do not lead to failure.
3129 ac_old_val_w=`echo x $ac_old_val`
3130 ac_new_val_w=`echo x $ac_new_val`
3131 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3134 ac_cache_corrupted=:
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3138 eval $ac_var=\$ac_old_val
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3144 fi;;
3145 esac
3146 # Pass precious variables to config.status.
3147 if test "$ac_new_set" = set; then
3148 case $ac_new_val in
3149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3150 *) ac_arg=$ac_var=$ac_new_val ;;
3151 esac
3152 case " $ac_configure_args " in
3153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3154 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3155 esac
3157 done
3158 if $ac_cache_corrupted; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3163 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3165 ## -------------------- ##
3166 ## Main body of script. ##
3167 ## -------------------- ##
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3183 gcc_version=`cat $srcdir/BASE-VER`
3185 # Determine the host, build, and target systems
3186 ac_aux_dir=
3187 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3188 for ac_t in install-sh install.sh shtool; do
3189 if test -f "$ac_dir/$ac_t"; then
3190 ac_aux_dir=$ac_dir
3191 ac_install_sh="$ac_aux_dir/$ac_t -c"
3192 break 2
3194 done
3195 done
3196 if test -z "$ac_aux_dir"; then
3197 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3200 # These three variables are undocumented and unsupported,
3201 # and are intended to be withdrawn in a future Autoconf release.
3202 # They can cause serious problems if a builder's source tree is in a directory
3203 # whose full name contains unusual characters.
3204 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3205 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3206 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3209 # Make sure we can run config.sub.
3210 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3211 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3214 $as_echo_n "checking build system type... " >&6; }
3215 if test "${ac_cv_build+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 ac_build_alias=$build_alias
3219 test "x$ac_build_alias" = x &&
3220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3221 test "x$ac_build_alias" = x &&
3222 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3223 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3224 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3228 $as_echo "$ac_cv_build" >&6; }
3229 case $ac_cv_build in
3230 *-*-*) ;;
3231 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3232 esac
3233 build=$ac_cv_build
3234 ac_save_IFS=$IFS; IFS='-'
3235 set x $ac_cv_build
3236 shift
3237 build_cpu=$1
3238 build_vendor=$2
3239 shift; shift
3240 # Remember, the first character of IFS is used to create $*,
3241 # except with old shells:
3242 build_os=$*
3243 IFS=$ac_save_IFS
3244 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3248 $as_echo_n "checking host system type... " >&6; }
3249 if test "${ac_cv_host+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test "x$host_alias" = x; then
3253 ac_cv_host=$ac_cv_build
3254 else
3255 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3256 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3261 $as_echo "$ac_cv_host" >&6; }
3262 case $ac_cv_host in
3263 *-*-*) ;;
3264 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3265 esac
3266 host=$ac_cv_host
3267 ac_save_IFS=$IFS; IFS='-'
3268 set x $ac_cv_host
3269 shift
3270 host_cpu=$1
3271 host_vendor=$2
3272 shift; shift
3273 # Remember, the first character of IFS is used to create $*,
3274 # except with old shells:
3275 host_os=$*
3276 IFS=$ac_save_IFS
3277 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3281 $as_echo_n "checking target system type... " >&6; }
3282 if test "${ac_cv_target+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test "x$target_alias" = x; then
3286 ac_cv_target=$ac_cv_host
3287 else
3288 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3289 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3294 $as_echo "$ac_cv_target" >&6; }
3295 case $ac_cv_target in
3296 *-*-*) ;;
3297 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3298 esac
3299 target=$ac_cv_target
3300 ac_save_IFS=$IFS; IFS='-'
3301 set x $ac_cv_target
3302 shift
3303 target_cpu=$1
3304 target_vendor=$2
3305 shift; shift
3306 # Remember, the first character of IFS is used to create $*,
3307 # except with old shells:
3308 target_os=$*
3309 IFS=$ac_save_IFS
3310 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3313 # The aliases save the names the user supplied, while $host etc.
3314 # will get canonicalized.
3315 test -n "$target_alias" &&
3316 test "$program_prefix$program_suffix$program_transform_name" = \
3317 NONENONEs,x,x, &&
3318 program_prefix=${target_alias}-
3320 # Determine the noncanonical target name, for directory use.
3321 case ${build_alias} in
3322 "") build_noncanonical=${build} ;;
3323 *) build_noncanonical=${build_alias} ;;
3324 esac
3326 case ${host_alias} in
3327 "") host_noncanonical=${build_noncanonical} ;;
3328 *) host_noncanonical=${host_alias} ;;
3329 esac
3331 case ${target_alias} in
3332 "") target_noncanonical=${host_noncanonical} ;;
3333 *) target_noncanonical=${target_alias} ;;
3334 esac
3339 # Used for constructing correct paths for offload compilers.
3340 real_target_noncanonical=${target_noncanonical}
3341 accel_dir_suffix=
3343 # Determine the target- and build-specific subdirectories
3345 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3346 # have matching libraries, they should use host libraries: Makefile.tpl
3347 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3348 # However, they still use the build modules, because the corresponding
3349 # host modules (e.g. bison) are only built for the host when bootstrap
3350 # finishes. So:
3351 # - build_subdir is where we find build modules, and never changes.
3352 # - build_libsubdir is where we find build libraries, and can be overridden.
3354 # Prefix 'build-' so this never conflicts with target_subdir.
3355 build_subdir="build-${build_noncanonical}"
3357 # Check whether --with-build-libsubdir was given.
3358 if test "${with_build_libsubdir+set}" = set; then :
3359 withval=$with_build_libsubdir; build_libsubdir="$withval"
3360 else
3361 build_libsubdir="$build_subdir"
3364 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3365 if ( test $srcdir = . && test -d gcc ) \
3366 || test -d $srcdir/../host-${host_noncanonical}; then
3367 host_subdir="host-${host_noncanonical}"
3368 else
3369 host_subdir=.
3371 # No prefix.
3372 target_subdir=${target_noncanonical}
3375 # Set program_transform_name
3376 test "$program_prefix" != NONE &&
3377 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3378 # Use a double $ so make ignores it.
3379 test "$program_suffix" != NONE &&
3380 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3381 # Double any \ or $.
3382 # By default was `s,x,x', remove it if useless.
3383 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3384 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3387 # Check for bogus environment variables.
3388 # Test if LIBRARY_PATH contains the notation for the current directory
3389 # since this would lead to problems installing/building glibc.
3390 # LIBRARY_PATH contains the current directory if one of the following
3391 # is true:
3392 # - one of the terminals (":" and ";") is the first or last sign
3393 # - two terminals occur directly after each other
3394 # - the path contains an element with a dot in it
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3396 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3397 case ${LIBRARY_PATH} in
3398 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3399 library_path_setting="contains current directory"
3402 library_path_setting="ok"
3404 esac
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3406 $as_echo "$library_path_setting" >&6; }
3407 if test "$library_path_setting" != "ok"; then
3408 as_fn_error "
3409 *** LIBRARY_PATH shouldn't contain the current directory when
3410 *** building gcc. Please change the environment variable
3411 *** and run configure again." "$LINENO" 5
3414 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3415 # since this would lead to problems installing/building glibc.
3416 # GCC_EXEC_PREFIX contains the current directory if one of the following
3417 # is true:
3418 # - one of the terminals (":" and ";") is the first or last sign
3419 # - two terminals occur directly after each other
3420 # - the path contains an element with a dot in it
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3422 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3423 case ${GCC_EXEC_PREFIX} in
3424 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3425 gcc_exec_prefix_setting="contains current directory"
3428 gcc_exec_prefix_setting="ok"
3430 esac
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3432 $as_echo "$gcc_exec_prefix_setting" >&6; }
3433 if test "$gcc_exec_prefix_setting" != "ok"; then
3434 as_fn_error "
3435 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3436 *** building gcc. Please change the environment variable
3437 *** and run configure again." "$LINENO" 5
3440 # -----------
3441 # Directories
3442 # -----------
3444 # Specify the local prefix
3445 local_prefix=
3447 # Check whether --with-local-prefix was given.
3448 if test "${with_local_prefix+set}" = set; then :
3449 withval=$with_local_prefix; case "${withval}" in
3450 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3451 no) ;;
3452 *) local_prefix=$with_local_prefix ;;
3453 esac
3457 # Default local prefix if it is empty
3458 if test x$local_prefix = x; then
3459 local_prefix=/usr/local
3463 # Check whether --with-native-system-header-dir was given.
3464 if test "${with_native_system_header_dir+set}" = set; then :
3465 withval=$with_native_system_header_dir;
3466 case ${with_native_system_header_dir} in
3467 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3468 /* | [A-Za-z]:[\\/]*) ;;
3469 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3470 esac
3471 configured_native_system_header_dir="${withval}"
3473 else
3474 configured_native_system_header_dir=
3479 # Check whether --with-build-sysroot was given.
3480 if test "${with_build_sysroot+set}" = set; then :
3481 withval=$with_build_sysroot; if test x"$withval" != x ; then
3482 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3484 else
3485 SYSROOT_CFLAGS_FOR_TARGET=
3490 if test "x$prefix" = xNONE; then
3491 test_prefix=/usr/local
3492 else
3493 test_prefix=$prefix
3495 if test "x$exec_prefix" = xNONE; then
3496 test_exec_prefix=$test_prefix
3497 else
3498 test_exec_prefix=$exec_prefix
3502 # Check whether --with-sysroot was given.
3503 if test "${with_sysroot+set}" = set; then :
3504 withval=$with_sysroot;
3505 case ${with_sysroot} in
3506 /) ;;
3507 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3508 esac
3509 case ${with_sysroot} in
3510 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3511 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3512 esac
3514 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3515 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3517 case ${TARGET_SYSTEM_ROOT} in
3518 "${test_prefix}"|"${test_prefix}/"*|\
3519 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3520 '${prefix}'|'${prefix}/'*|\
3521 '${exec_prefix}'|'${exec_prefix}/'*)
3522 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3523 TARGET_SYSTEM_ROOT_DEFINE="$t"
3525 esac
3527 else
3529 TARGET_SYSTEM_ROOT=
3530 TARGET_SYSTEM_ROOT_DEFINE=
3531 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3539 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3540 # passed in by the toplevel make and thus we'd get different behavior
3541 # depending on where we built the sources.
3542 gcc_gxx_include_dir=
3543 # Specify the g++ header file directory
3545 # Check whether --with-gxx-include-dir was given.
3546 if test "${with_gxx_include_dir+set}" = set; then :
3547 withval=$with_gxx_include_dir; case "${withval}" in
3548 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3549 no) ;;
3550 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3551 esac
3555 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3556 if test x${gcc_gxx_include_dir} = x; then
3557 if test x${enable_version_specific_runtime_libs} = xyes; then
3558 gcc_gxx_include_dir='${libsubdir}/include/c++'
3559 else
3560 libstdcxx_incdir='include/c++/$(version)'
3561 if test x$host != x$target; then
3562 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3564 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3568 gcc_gxx_include_dir_add_sysroot=0
3569 if test "${with_sysroot+set}" = set; then
3570 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3571 if test "${gcc_gxx_without_sysroot}"; then
3572 if test x${with_sysroot} != x/; then
3573 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3575 gcc_gxx_include_dir_add_sysroot=1
3580 # Check whether --with-cpp_install_dir was given.
3581 if test "${with_cpp_install_dir+set}" = set; then :
3582 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3583 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3584 elif test x$withval != xno; then
3585 cpp_install_dir=$withval
3590 # We would like to our source tree to be readonly. However when releases or
3591 # pre-releases are generated, the flex/bison generated files as well as the
3592 # various formats of manuals need to be included along with the rest of the
3593 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3594 # just that.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3597 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3598 # Check whether --enable-generated-files-in-srcdir was given.
3599 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3600 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3601 else
3602 generated_files_in_srcdir=no
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3607 $as_echo "$generated_files_in_srcdir" >&6; }
3609 if test "$generated_files_in_srcdir" = "yes"; then
3610 GENINSRC=''
3611 else
3612 GENINSRC='#'
3616 # -------------------
3617 # Find default linker
3618 # -------------------
3620 # With GNU ld
3622 # Check whether --with-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then :
3624 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3625 else
3626 gnu_ld_flag=no
3630 # With pre-defined ld
3632 # Check whether --with-ld was given.
3633 if test "${with_ld+set}" = set; then :
3634 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3637 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3638 if test ! -x "$DEFAULT_LINKER"; then
3639 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3640 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3641 gnu_ld_flag=yes
3644 cat >>confdefs.h <<_ACEOF
3645 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3646 _ACEOF
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3651 $as_echo_n "checking whether a default linker was specified... " >&6; }
3652 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3653 if test x"$gnu_ld_flag" = x"no"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3658 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3665 # With demangler in GNU ld
3667 # Check whether --with-demangler-in-ld was given.
3668 if test "${with_demangler_in_ld+set}" = set; then :
3669 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3670 else
3671 demangler_in_ld=yes
3675 # ----------------------
3676 # Find default assembler
3677 # ----------------------
3679 # With GNU as
3681 # Check whether --with-gnu-as was given.
3682 if test "${with_gnu_as+set}" = set; then :
3683 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3684 else
3685 gas_flag=no
3690 # Check whether --with-as was given.
3691 if test "${with_as+set}" = set; then :
3692 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3695 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3696 if test ! -x "$DEFAULT_ASSEMBLER"; then
3697 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3698 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3699 gas_flag=yes
3702 cat >>confdefs.h <<_ACEOF
3703 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3704 _ACEOF
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3709 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3710 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3711 if test x"$gas_flag" = x"no"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3716 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3723 # ---------------
3724 # Find C compiler
3725 # ---------------
3727 # If a non-executable a.out is present (e.g. created by GNU as above even if
3728 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3729 # file, even when creating an executable, so an execution test fails.
3730 # Remove possible default executable files to avoid this.
3732 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3733 # Autoconf includes it.
3734 rm -f a.out a.exe b.out
3736 # Find the native compiler
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3781 if test -z "$ac_cv_prog_CC"; then
3782 ac_ct_CC=$CC
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_ac_ct_CC="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3804 done
3805 done
3806 IFS=$as_save_IFS
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3819 if test "x$ac_ct_CC" = x; then
3820 CC=""
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 CC=$ac_ct_CC
3830 else
3831 CC="$ac_cv_prog_CC"
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3857 done
3858 done
3859 IFS=$as_save_IFS
3863 CC=$ac_cv_prog_CC
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3875 if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 ac_prog_rejected=no
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected=yes
3896 continue
3898 ac_cv_prog_CC="cc"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3904 IFS=$as_save_IFS
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy $ac_cv_prog_CC
3909 shift
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3914 shift
3915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in cl.exe
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_CC+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 break 2
3956 done
3957 done
3958 IFS=$as_save_IFS
3962 CC=$ac_cv_prog_CC
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3966 else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3972 test -n "$CC" && break
3973 done
3975 if test -z "$CC"; then
3976 ac_ct_CC=$CC
3977 for ac_prog in cl.exe
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_ac_ct_CC="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
4000 done
4001 done
4002 IFS=$as_save_IFS
4006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$ac_ct_CC" && break
4017 done
4019 if test "x$ac_ct_CC" = x; then
4020 CC=""
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023 yes:)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4027 esac
4028 CC=$ac_ct_CC
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error "no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details." "$LINENO" 5; }
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4042 set X $ac_compile
4043 ac_compiler=$2
4044 for ac_option in --version -v -V -qversion; do
4045 { { ac_try="$ac_compiler $ac_option >&5"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4053 ac_status=$?
4054 if test -s conftest.err; then
4055 sed '10a\
4056 ... rest of stderr output deleted ...
4057 10q' conftest.err >conftest.er1
4058 cat conftest.er1 >&5
4059 rm -f conftest.er1 conftest.err
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4063 done
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4069 main ()
4073 return 0;
4075 _ACEOF
4076 ac_clean_files_save=$ac_clean_files
4077 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4078 # Try to create an executable without -o first, disregard a.out.
4079 # It will help us diagnose broken compilers, and finding out an intuition
4080 # of exeext.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4082 $as_echo_n "checking for C compiler default output file name... " >&6; }
4083 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4085 # The possible output files:
4086 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4088 ac_rmfiles=
4089 for ac_file in $ac_files
4091 case $ac_file in
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4093 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4094 esac
4095 done
4096 rm -f $ac_rmfiles
4098 if { { ac_try="$ac_link_default"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_link_default") 2>&5
4106 ac_status=$?
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; then :
4109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4110 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4111 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4112 # so that the user can short-circuit this test for compilers unknown to
4113 # Autoconf.
4114 for ac_file in $ac_files ''
4116 test -f "$ac_file" || continue
4117 case $ac_file in
4118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4120 [ab].out )
4121 # We found the default executable, but exeext='' is most
4122 # certainly right.
4123 break;;
4124 *.* )
4125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4126 then :; else
4127 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4129 # We set ac_cv_exeext here because the later test for it is not
4130 # safe: cross compilers may not add the suffix if given an `-o'
4131 # argument, so we may need to know it at that point already.
4132 # Even if this section looks crufty: it has the advantage of
4133 # actually working.
4134 break;;
4136 break;;
4137 esac
4138 done
4139 test "$ac_cv_exeext" = no && ac_cv_exeext=
4141 else
4142 ac_file=''
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4145 $as_echo "$ac_file" >&6; }
4146 if test -z "$ac_file"; then :
4147 $as_echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 { as_fn_set_status 77
4153 as_fn_error "C compiler cannot create executables
4154 See \`config.log' for more details." "$LINENO" 5; }; }
4156 ac_exeext=$ac_cv_exeext
4158 # Check that the compiler produces executables we can run. If not, either
4159 # the compiler is broken, or we cross compile.
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4161 $as_echo_n "checking whether the C compiler works... " >&6; }
4162 # If not cross compiling, check that we can run a simple program.
4163 if test "$cross_compiling" != yes; then
4164 if { ac_try='./$ac_file'
4165 { { case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4170 $as_echo "$ac_try_echo"; } >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }; }; then
4175 cross_compiling=no
4176 else
4177 if test "$cross_compiling" = maybe; then
4178 cross_compiling=yes
4179 else
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error "cannot run C compiled programs.
4183 If you meant to cross compile, use \`--host'.
4184 See \`config.log' for more details." "$LINENO" 5; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4191 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4192 ac_clean_files=$ac_clean_files_save
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4198 $as_echo "$cross_compiling" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4201 $as_echo_n "checking for suffix of executables... " >&6; }
4202 if { { ac_try="$ac_link"
4203 case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_link") 2>&5
4210 ac_status=$?
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; then :
4213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4215 # work properly (i.e., refer to `conftest.exe'), while it won't with
4216 # `rm'.
4217 for ac_file in conftest.exe conftest conftest.*; do
4218 test -f "$ac_file" || continue
4219 case $ac_file in
4220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4222 break;;
4223 * ) break;;
4224 esac
4225 done
4226 else
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error "cannot compute suffix of executables: cannot compile and link
4230 See \`config.log' for more details." "$LINENO" 5; }
4232 rm -f conftest$ac_cv_exeext
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4234 $as_echo "$ac_cv_exeext" >&6; }
4236 rm -f conftest.$ac_ext
4237 EXEEXT=$ac_cv_exeext
4238 ac_exeext=$EXEEXT
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4240 $as_echo_n "checking for suffix of object files... " >&6; }
4241 if test "${ac_cv_objext+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4248 main ()
4252 return 0;
4254 _ACEOF
4255 rm -f conftest.o conftest.obj
4256 if { { ac_try="$ac_compile"
4257 case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263 (eval "$ac_compile") 2>&5
4264 ac_status=$?
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }; then :
4267 for ac_file in conftest.o conftest.obj conftest.*; do
4268 test -f "$ac_file" || continue;
4269 case $ac_file in
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4272 break;;
4273 esac
4274 done
4275 else
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error "cannot compute suffix of object files: cannot compile
4282 See \`config.log' for more details." "$LINENO" 5; }
4284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4287 $as_echo "$ac_cv_objext" >&6; }
4288 OBJEXT=$ac_cv_objext
4289 ac_objext=$OBJEXT
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4299 main ()
4301 #ifndef __GNUC__
4302 choke me
4303 #endif
4306 return 0;
4308 _ACEOF
4309 if ac_fn_c_try_compile "$LINENO"; then :
4310 ac_compiler_gnu=yes
4311 else
4312 ac_compiler_gnu=no
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320 if test $ac_compiler_gnu = yes; then
4321 GCC=yes
4322 else
4323 GCC=
4325 ac_test_CFLAGS=${CFLAGS+set}
4326 ac_save_CFLAGS=$CFLAGS
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4329 if test "${ac_cv_prog_cc_g+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4334 ac_cv_prog_cc_g=no
4335 CFLAGS="-g"
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4340 main ()
4344 return 0;
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_prog_cc_g=yes
4349 else
4350 CFLAGS=""
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4355 main ()
4359 return 0;
4361 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4364 else
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4366 CFLAGS="-g"
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4371 main ()
4375 return 0;
4377 _ACEOF
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_prog_cc_g=yes
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 $as_echo "$ac_cv_prog_cc_g" >&6; }
4390 if test "$ac_test_CFLAGS" = set; then
4391 CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4394 CFLAGS="-g -O2"
4395 else
4396 CFLAGS="-g"
4398 else
4399 if test "$GCC" = yes; then
4400 CFLAGS="-O2"
4401 else
4402 CFLAGS=
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 ac_cv_prog_cc_c89=no
4411 ac_save_CC=$CC
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4414 #include <stdarg.h>
4415 #include <stdio.h>
4416 #include <sys/types.h>
4417 #include <sys/stat.h>
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4422 char **p;
4423 int i;
4425 return p[i];
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4429 char *s;
4430 va_list v;
4431 va_start (v,p);
4432 s = g (p, va_arg (v,int));
4433 va_end (v);
4434 return s;
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
4440 as 'x'. The following induces an error, until -std is added to get
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
4443 that's true only with -std. */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4448 #define FOO(x) 'x'
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455 int argc;
4456 char **argv;
4458 main ()
4460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4462 return 0;
4464 _ACEOF
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4468 CC="$ac_save_CC $ac_arg"
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
4472 rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
4474 done
4475 rm -f conftest.$ac_ext
4476 CC=$ac_save_CC
4479 # AC_CACHE_VAL
4480 case "x$ac_cv_prog_cc_c89" in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4484 xno)
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4491 esac
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4496 ac_ext=c
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 ac_ext=cpp
4503 ac_cpp='$CXXCPP $CPPFLAGS'
4504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4507 if test -z "$CXX"; then
4508 if test -n "$CCC"; then
4509 CXX=$CCC
4510 else
4511 if test -n "$ac_tool_prefix"; then
4512 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_CXX+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$CXX"; then
4522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4537 IFS=$as_save_IFS
4541 CXX=$ac_cv_prog_CXX
4542 if test -n "$CXX"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4544 $as_echo "$CXX" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4551 test -n "$CXX" && break
4552 done
4554 if test -z "$CXX"; then
4555 ac_ct_CXX=$CXX
4556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564 else
4565 if test -n "$ac_ct_CXX"; then
4566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_ac_ct_CXX="$ac_prog"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4579 done
4580 done
4581 IFS=$as_save_IFS
4585 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4586 if test -n "$ac_ct_CXX"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4588 $as_echo "$ac_ct_CXX" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4595 test -n "$ac_ct_CXX" && break
4596 done
4598 if test "x$ac_ct_CXX" = x; then
4599 CXX="g++"
4600 else
4601 case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4606 esac
4607 CXX=$ac_ct_CXX
4613 # Provide some information about the compiler.
4614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4615 set X $ac_compile
4616 ac_compiler=$2
4617 for ac_option in --version -v -V -qversion; do
4618 { { ac_try="$ac_compiler $ac_option >&5"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4626 ac_status=$?
4627 if test -s conftest.err; then
4628 sed '10a\
4629 ... rest of stderr output deleted ...
4630 10q' conftest.err >conftest.er1
4631 cat conftest.er1 >&5
4632 rm -f conftest.er1 conftest.err
4634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4635 test $ac_status = 0; }
4636 done
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4639 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4640 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4647 main ()
4649 #ifndef __GNUC__
4650 choke me
4651 #endif
4654 return 0;
4656 _ACEOF
4657 if ac_fn_cxx_try_compile "$LINENO"; then :
4658 ac_compiler_gnu=yes
4659 else
4660 ac_compiler_gnu=no
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4667 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4668 if test $ac_compiler_gnu = yes; then
4669 GXX=yes
4670 else
4671 GXX=
4673 ac_test_CXXFLAGS=${CXXFLAGS+set}
4674 ac_save_CXXFLAGS=$CXXFLAGS
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4676 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4677 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4681 ac_cxx_werror_flag=yes
4682 ac_cv_prog_cxx_g=no
4683 CXXFLAGS="-g"
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4688 main ()
4692 return 0;
4694 _ACEOF
4695 if ac_fn_cxx_try_compile "$LINENO"; then :
4696 ac_cv_prog_cxx_g=yes
4697 else
4698 CXXFLAGS=""
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4703 main ()
4707 return 0;
4709 _ACEOF
4710 if ac_fn_cxx_try_compile "$LINENO"; then :
4712 else
4713 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4714 CXXFLAGS="-g"
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4719 main ()
4723 return 0;
4725 _ACEOF
4726 if ac_fn_cxx_try_compile "$LINENO"; then :
4727 ac_cv_prog_cxx_g=yes
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4737 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4738 if test "$ac_test_CXXFLAGS" = set; then
4739 CXXFLAGS=$ac_save_CXXFLAGS
4740 elif test $ac_cv_prog_cxx_g = yes; then
4741 if test "$GXX" = yes; then
4742 CXXFLAGS="-g -O2"
4743 else
4744 CXXFLAGS="-g"
4746 else
4747 if test "$GXX" = yes; then
4748 CXXFLAGS="-O2"
4749 else
4750 CXXFLAGS=
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4764 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$GNATBIND"; then
4771 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4790 GNATBIND=$ac_cv_prog_GNATBIND
4791 if test -n "$GNATBIND"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4793 $as_echo "$GNATBIND" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4801 if test -z "$ac_cv_prog_GNATBIND"; then
4802 ac_ct_GNATBIND=$GNATBIND
4803 # Extract the first word of "gnatbind", so it can be a program name with args.
4804 set dummy gnatbind; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$ac_ct_GNATBIND"; then
4811 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4824 done
4825 done
4826 IFS=$as_save_IFS
4830 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4831 if test -n "$ac_ct_GNATBIND"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4833 $as_echo "$ac_ct_GNATBIND" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4839 if test "x$ac_ct_GNATBIND" = x; then
4840 GNATBIND="no"
4841 else
4842 case $cross_compiling:$ac_tool_warned in
4843 yes:)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned=yes ;;
4847 esac
4848 GNATBIND=$ac_ct_GNATBIND
4850 else
4851 GNATBIND="$ac_cv_prog_GNATBIND"
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$GNATMAKE"; then
4863 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4876 done
4877 done
4878 IFS=$as_save_IFS
4882 GNATMAKE=$ac_cv_prog_GNATMAKE
4883 if test -n "$GNATMAKE"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4885 $as_echo "$GNATMAKE" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4893 if test -z "$ac_cv_prog_GNATMAKE"; then
4894 ac_ct_GNATMAKE=$GNATMAKE
4895 # Extract the first word of "gnatmake", so it can be a program name with args.
4896 set dummy gnatmake; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_GNATMAKE"; then
4903 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4923 if test -n "$ac_ct_GNATMAKE"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4925 $as_echo "$ac_ct_GNATMAKE" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4931 if test "x$ac_ct_GNATMAKE" = x; then
4932 GNATMAKE="no"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935 yes:)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940 GNATMAKE=$ac_ct_GNATMAKE
4942 else
4943 GNATMAKE="$ac_cv_prog_GNATMAKE"
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4947 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4948 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 cat >conftest.adb <<EOF
4952 procedure conftest is begin null; end conftest;
4954 acx_cv_cc_gcc_supports_ada=no
4955 # There is a bug in old released versions of GCC which causes the
4956 # driver to exit successfully when the appropriate language module
4957 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4958 # Therefore we must check for the error message as well as an
4959 # unsuccessful exit.
4960 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4961 # given a .adb file, but produce no object file. So we must check
4962 # if an object file was really produced to guard against this.
4963 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4964 if test x"$errors" = x && test -f conftest.$ac_objext; then
4965 acx_cv_cc_gcc_supports_ada=yes
4967 rm -f conftest.*
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4970 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4972 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4973 have_gnat=yes
4974 else
4975 have_gnat=no
4979 # Do configure tests with the C++ compiler, since that's what we build with.
4980 ac_ext=cpp
4981 ac_cpp='$CXXCPP $CPPFLAGS'
4982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4987 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4988 # optimizations to be activated explicitly by the toplevel.
4989 case "$CC" in
4990 */prev-gcc/xgcc*) ;;
4991 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4992 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4993 esac
4997 # Determine PICFLAG for target gnatlib.
5002 case "${target}" in
5003 # PIC is the default on some targets or must not be used.
5004 *-*-darwin*)
5005 # For darwin, common symbols are not allowed in MH_DYLIB files
5006 case "${CFLAGS}" in
5007 # If we are using a compiler supporting mdynamic-no-pic
5008 # and the option has been tested as safe to add, then cancel
5009 # it here, since the code generated is incompatible with shared
5010 # libs.
5011 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5012 *) PICFLAG_FOR_TARGET=-fno-common ;;
5013 esac
5015 alpha*-dec-osf5*)
5016 # PIC is the default.
5018 hppa*64*-*-hpux*)
5019 # PIC is the default for 64-bit PA HP-UX.
5021 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5023 i[34567]86-*-mingw* | x86_64-*-mingw*)
5025 i[34567]86-*-interix[3-9]*)
5026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5027 # Instead, we relocate shared libraries at runtime.
5029 i[34567]86-*-nto-qnx*)
5030 # QNX uses GNU C++, but need to define -shared option too, otherwise
5031 # it will coredump.
5032 PICFLAG_FOR_TARGET='-fPIC -shared'
5034 i[34567]86-pc-msdosdjgpp*)
5035 # DJGPP does not support shared libraries at all.
5037 ia64*-*-hpux*)
5038 # On IA64 HP-UX, PIC is the default but the pic flag
5039 # sets the default TLS model and affects inlining.
5040 PICFLAG_FOR_TARGET=-fPIC
5042 mips-sgi-irix6*)
5043 # PIC is the default.
5045 rs6000-ibm-aix* | powerpc-ibm-aix*)
5046 # All AIX code is PIC.
5049 # Some targets support both -fPIC and -fpic, but prefer the latter.
5050 # FIXME: Why?
5051 i[34567]86-*-* | x86_64-*-*)
5052 PICFLAG_FOR_TARGET=-fpic
5054 # FIXME: Override -fPIC default in libgcc only?
5055 sh-*-linux* | sh[2346lbe]*-*-linux*)
5056 PICFLAG_FOR_TARGET=-fpic
5058 # FIXME: Simplify to sh*-*-netbsd*?
5059 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5060 sh64-*-netbsd* | sh64l*-*-netbsd*)
5061 PICFLAG_FOR_TARGET=-fpic
5063 # Default to -fPIC unless specified otherwise.
5065 PICFLAG_FOR_TARGET=-fPIC
5067 esac
5069 # If the user explicitly uses -fpic/-fPIC, keep that.
5070 case "${CFLAGS_FOR_TARGET}" in
5071 *-fpic*)
5072 PICFLAG_FOR_TARGET=-fpic
5074 *-fPIC*)
5075 PICFLAG_FOR_TARGET=-fPIC
5077 esac
5081 # -------------------------
5082 # Check C compiler features
5083 # -------------------------
5086 ac_ext=cpp
5087 ac_cpp='$CXXCPP $CPPFLAGS'
5088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5092 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5093 if test -z "$CXXCPP"; then
5094 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 # Double quotes because CXXCPP needs to be expanded
5098 for CXXCPP in "$CXX -E" "/lib/cpp"
5100 ac_preproc_ok=false
5101 for ac_cxx_preproc_warn_flag in '' yes
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #ifdef __STDC__
5112 # include <limits.h>
5113 #else
5114 # include <assert.h>
5115 #endif
5116 Syntax error
5117 _ACEOF
5118 if ac_fn_cxx_try_cpp "$LINENO"; then :
5120 else
5121 # Broken: fails on valid input.
5122 continue
5124 rm -f conftest.err conftest.$ac_ext
5126 # OK, works on sane cases. Now check whether nonexistent headers
5127 # can be detected and how.
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <ac_nonexistent.h>
5131 _ACEOF
5132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5133 # Broken: success on invalid input.
5134 continue
5135 else
5136 # Passes both tests.
5137 ac_preproc_ok=:
5138 break
5140 rm -f conftest.err conftest.$ac_ext
5142 done
5143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144 rm -f conftest.err conftest.$ac_ext
5145 if $ac_preproc_ok; then :
5146 break
5149 done
5150 ac_cv_prog_CXXCPP=$CXXCPP
5153 CXXCPP=$ac_cv_prog_CXXCPP
5154 else
5155 ac_cv_prog_CXXCPP=$CXXCPP
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5158 $as_echo "$CXXCPP" >&6; }
5159 ac_preproc_ok=false
5160 for ac_cxx_preproc_warn_flag in '' yes
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 #ifdef __STDC__
5171 # include <limits.h>
5172 #else
5173 # include <assert.h>
5174 #endif
5175 Syntax error
5176 _ACEOF
5177 if ac_fn_cxx_try_cpp "$LINENO"; then :
5179 else
5180 # Broken: fails on valid input.
5181 continue
5183 rm -f conftest.err conftest.$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <ac_nonexistent.h>
5190 _ACEOF
5191 if ac_fn_cxx_try_cpp "$LINENO"; then :
5192 # Broken: success on invalid input.
5193 continue
5194 else
5195 # Passes both tests.
5196 ac_preproc_ok=:
5197 break
5199 rm -f conftest.err conftest.$ac_ext
5201 done
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.err conftest.$ac_ext
5204 if $ac_preproc_ok; then :
5206 else
5207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5209 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5210 See \`config.log' for more details." "$LINENO" 5; }
5213 ac_ext=cpp
5214 ac_cpp='$CXXCPP $CPPFLAGS'
5215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5222 if test "${ac_cv_path_GREP+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 if test -z "$GREP"; then
5226 ac_path_GREP_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_prog in grep ggrep; do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5237 # Check for GNU ac_path_GREP and select it if it is found.
5238 # Check for GNU $ac_path_GREP
5239 case `"$ac_path_GREP" --version 2>&1` in
5240 *GNU*)
5241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5243 ac_count=0
5244 $as_echo_n 0123456789 >"conftest.in"
5245 while :
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'GREP' >> "conftest.nl"
5251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253 as_fn_arith $ac_count + 1 && ac_count=$as_val
5254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_GREP="$ac_path_GREP"
5257 ac_path_GREP_max=$ac_count
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5261 done
5262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5263 esac
5265 $ac_path_GREP_found && break 3
5266 done
5267 done
5268 done
5269 IFS=$as_save_IFS
5270 if test -z "$ac_cv_path_GREP"; then
5271 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273 else
5274 ac_cv_path_GREP=$GREP
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5279 $as_echo "$ac_cv_path_GREP" >&6; }
5280 GREP="$ac_cv_path_GREP"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5284 $as_echo_n "checking for egrep... " >&6; }
5285 if test "${ac_cv_path_EGREP+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5289 then ac_cv_path_EGREP="$GREP -E"
5290 else
5291 if test -z "$EGREP"; then
5292 ac_path_EGREP_found=false
5293 # Loop through the user's path and test for each of PROGNAME-LIST
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_prog in egrep; do
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5303 # Check for GNU ac_path_EGREP and select it if it is found.
5304 # Check for GNU $ac_path_EGREP
5305 case `"$ac_path_EGREP" --version 2>&1` in
5306 *GNU*)
5307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5309 ac_count=0
5310 $as_echo_n 0123456789 >"conftest.in"
5311 while :
5313 cat "conftest.in" "conftest.in" >"conftest.tmp"
5314 mv "conftest.tmp" "conftest.in"
5315 cp "conftest.in" "conftest.nl"
5316 $as_echo 'EGREP' >> "conftest.nl"
5317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5319 as_fn_arith $ac_count + 1 && ac_count=$as_val
5320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5321 # Best one so far, save it but keep looking for a better one
5322 ac_cv_path_EGREP="$ac_path_EGREP"
5323 ac_path_EGREP_max=$ac_count
5325 # 10*(2^10) chars as input seems more than enough
5326 test $ac_count -gt 10 && break
5327 done
5328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5329 esac
5331 $ac_path_EGREP_found && break 3
5332 done
5333 done
5334 done
5335 IFS=$as_save_IFS
5336 if test -z "$ac_cv_path_EGREP"; then
5337 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5339 else
5340 ac_cv_path_EGREP=$EGREP
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5346 $as_echo "$ac_cv_path_EGREP" >&6; }
5347 EGREP="$ac_cv_path_EGREP"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5351 $as_echo_n "checking for ANSI C header files... " >&6; }
5352 if test "${ac_cv_header_stdc+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #include <stdlib.h>
5358 #include <stdarg.h>
5359 #include <string.h>
5360 #include <float.h>
5363 main ()
5367 return 0;
5369 _ACEOF
5370 if ac_fn_cxx_try_compile "$LINENO"; then :
5371 ac_cv_header_stdc=yes
5372 else
5373 ac_cv_header_stdc=no
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 if test $ac_cv_header_stdc = yes; then
5378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381 #include <string.h>
5383 _ACEOF
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 $EGREP "memchr" >/dev/null 2>&1; then :
5387 else
5388 ac_cv_header_stdc=no
5390 rm -f conftest*
5394 if test $ac_cv_header_stdc = yes; then
5395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <stdlib.h>
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev/null 2>&1; then :
5404 else
5405 ac_cv_header_stdc=no
5407 rm -f conftest*
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then :
5415 else
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #include <ctype.h>
5419 #include <stdlib.h>
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5423 #else
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5429 #endif
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5433 main ()
5435 int i;
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5439 return 2;
5440 return 0;
5442 _ACEOF
5443 if ac_fn_cxx_try_run "$LINENO"; then :
5445 else
5446 ac_cv_header_stdc=no
5448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5449 conftest.$ac_objext conftest.beam conftest.$ac_ext
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5455 $as_echo "$ac_cv_header_stdc" >&6; }
5456 if test $ac_cv_header_stdc = yes; then
5458 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5463 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5464 inttypes.h stdint.h unistd.h
5465 do :
5466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5469 eval as_val=\$$as_ac_Header
5470 if test "x$as_val" = x""yes; then :
5471 cat >>confdefs.h <<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473 _ACEOF
5477 done
5481 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5482 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5483 MINIX=yes
5484 else
5485 MINIX=
5489 if test "$MINIX" = yes; then
5491 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5494 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5497 $as_echo "#define _MINIX 1" >>confdefs.h
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5503 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5504 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 # define __EXTENSIONS__ 1
5511 $ac_includes_default
5513 main ()
5517 return 0;
5519 _ACEOF
5520 if ac_fn_cxx_try_compile "$LINENO"; then :
5521 ac_cv_safe_to_define___extensions__=yes
5522 else
5523 ac_cv_safe_to_define___extensions__=no
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5528 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5529 test $ac_cv_safe_to_define___extensions__ = yes &&
5530 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5532 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5534 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5536 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5538 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5541 ac_ext=c
5542 ac_cpp='$CPP $CPPFLAGS'
5543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5547 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5548 # On Suns, sometimes $CPP names a directory.
5549 if test -n "$CPP" && test -d "$CPP"; then
5550 CPP=
5552 if test -z "$CPP"; then
5553 if test "${ac_cv_prog_CPP+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 # Double quotes because CPP needs to be expanded
5557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5559 ac_preproc_ok=false
5560 for ac_c_preproc_warn_flag in '' yes
5562 # Use a header file that comes with gcc, so configuring glibc
5563 # with a fresh cross-compiler works.
5564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 # <limits.h> exists even on freestanding compilers.
5566 # On the NeXT, cc -E runs the code through the compiler's parser,
5567 # not just through cpp. "Syntax error" is here to catch this case.
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #ifdef __STDC__
5571 # include <limits.h>
5572 #else
5573 # include <assert.h>
5574 #endif
5575 Syntax error
5576 _ACEOF
5577 if ac_fn_c_try_cpp "$LINENO"; then :
5579 else
5580 # Broken: fails on valid input.
5581 continue
5583 rm -f conftest.err conftest.$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5590 _ACEOF
5591 if ac_fn_c_try_cpp "$LINENO"; then :
5592 # Broken: success on invalid input.
5593 continue
5594 else
5595 # Passes both tests.
5596 ac_preproc_ok=:
5597 break
5599 rm -f conftest.err conftest.$ac_ext
5601 done
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.err conftest.$ac_ext
5604 if $ac_preproc_ok; then :
5605 break
5608 done
5609 ac_cv_prog_CPP=$CPP
5612 CPP=$ac_cv_prog_CPP
5613 else
5614 ac_cv_prog_CPP=$CPP
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5617 $as_echo "$CPP" >&6; }
5618 ac_preproc_ok=false
5619 for ac_c_preproc_warn_flag in '' yes
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #ifdef __STDC__
5630 # include <limits.h>
5631 #else
5632 # include <assert.h>
5633 #endif
5634 Syntax error
5635 _ACEOF
5636 if ac_fn_c_try_cpp "$LINENO"; then :
5638 else
5639 # Broken: fails on valid input.
5640 continue
5642 rm -f conftest.err conftest.$ac_ext
5644 # OK, works on sane cases. Now check whether nonexistent headers
5645 # can be detected and how.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <ac_nonexistent.h>
5649 _ACEOF
5650 if ac_fn_c_try_cpp "$LINENO"; then :
5651 # Broken: success on invalid input.
5652 continue
5653 else
5654 # Passes both tests.
5655 ac_preproc_ok=:
5656 break
5658 rm -f conftest.err conftest.$ac_ext
5660 done
5661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5662 rm -f conftest.err conftest.$ac_ext
5663 if $ac_preproc_ok; then :
5665 else
5666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5668 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5669 See \`config.log' for more details." "$LINENO" 5; }
5672 ac_ext=cpp
5673 ac_cpp='$CXXCPP $CPPFLAGS'
5674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5679 $as_echo_n "checking for inline... " >&6; }
5680 if test "${ac_cv_c_inline+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 ac_cv_c_inline=no
5684 for ac_kw in inline __inline__ __inline; do
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #ifndef __cplusplus
5688 typedef int foo_t;
5689 static $ac_kw foo_t static_foo () {return 0; }
5690 $ac_kw foo_t foo () {return 0; }
5691 #endif
5693 _ACEOF
5694 if ac_fn_cxx_try_compile "$LINENO"; then :
5695 ac_cv_c_inline=$ac_kw
5697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 test "$ac_cv_c_inline" != no && break
5699 done
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5703 $as_echo "$ac_cv_c_inline" >&6; }
5705 case $ac_cv_c_inline in
5706 inline | yes) ;;
5708 case $ac_cv_c_inline in
5709 no) ac_val=;;
5710 *) ac_val=$ac_cv_c_inline;;
5711 esac
5712 cat >>confdefs.h <<_ACEOF
5713 #ifndef __cplusplus
5714 #define inline $ac_val
5715 #endif
5716 _ACEOF
5718 esac
5721 # Check whether --enable-largefile was given.
5722 if test "${enable_largefile+set}" = set; then :
5723 enableval=$enable_largefile;
5726 if test "$enable_largefile" != no; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5729 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5730 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 ac_cv_sys_largefile_CC=no
5734 if test "$GCC" != yes; then
5735 ac_save_CC=$CC
5736 while :; do
5737 # IRIX 6.2 and later do not support large files by default,
5738 # so use the C compiler's -n32 option if that helps.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <sys/types.h>
5742 /* Check that off_t can represent 2**63 - 1 correctly.
5743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5744 since some C++ compilers masquerading as C compilers
5745 incorrectly reject 9223372036854775807. */
5746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5748 && LARGE_OFF_T % 2147483647 == 1)
5749 ? 1 : -1];
5751 main ()
5755 return 0;
5757 _ACEOF
5758 if ac_fn_cxx_try_compile "$LINENO"; then :
5759 break
5761 rm -f core conftest.err conftest.$ac_objext
5762 CC="$CC -n32"
5763 if ac_fn_cxx_try_compile "$LINENO"; then :
5764 ac_cv_sys_largefile_CC=' -n32'; break
5766 rm -f core conftest.err conftest.$ac_objext
5767 break
5768 done
5769 CC=$ac_save_CC
5770 rm -f conftest.$ac_ext
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5774 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5775 if test "$ac_cv_sys_largefile_CC" != no; then
5776 CC=$CC$ac_cv_sys_largefile_CC
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5780 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5781 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 while :; do
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5795 ? 1 : -1];
5797 main ()
5801 return 0;
5803 _ACEOF
5804 if ac_fn_cxx_try_compile "$LINENO"; then :
5805 ac_cv_sys_file_offset_bits=no; break
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #define _FILE_OFFSET_BITS 64
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5819 ? 1 : -1];
5821 main ()
5825 return 0;
5827 _ACEOF
5828 if ac_fn_cxx_try_compile "$LINENO"; then :
5829 ac_cv_sys_file_offset_bits=64; break
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_sys_file_offset_bits=unknown
5833 break
5834 done
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5837 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5838 case $ac_cv_sys_file_offset_bits in #(
5839 no | unknown) ;;
5841 cat >>confdefs.h <<_ACEOF
5842 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5843 _ACEOF
5845 esac
5846 rm -rf conftest*
5847 if test $ac_cv_sys_file_offset_bits = unknown; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5849 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5850 if test "${ac_cv_sys_large_files+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 while :; do
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5864 ? 1 : -1];
5866 main ()
5870 return 0;
5872 _ACEOF
5873 if ac_fn_cxx_try_compile "$LINENO"; then :
5874 ac_cv_sys_large_files=no; break
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #define _LARGE_FILES 1
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5888 ? 1 : -1];
5890 main ()
5894 return 0;
5896 _ACEOF
5897 if ac_fn_cxx_try_compile "$LINENO"; then :
5898 ac_cv_sys_large_files=1; break
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 ac_cv_sys_large_files=unknown
5902 break
5903 done
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5906 $as_echo "$ac_cv_sys_large_files" >&6; }
5907 case $ac_cv_sys_large_files in #(
5908 no | unknown) ;;
5910 cat >>confdefs.h <<_ACEOF
5911 #define _LARGE_FILES $ac_cv_sys_large_files
5912 _ACEOF
5914 esac
5915 rm -rf conftest*
5920 # sizeof(char) is 1 by definition.
5921 # The cast to long int works around a bug in the HP C Compiler
5922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5924 # This bug is HP SR number 8606223364.
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5926 $as_echo_n "checking size of void *... " >&6; }
5927 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5932 else
5933 if test "$ac_cv_type_void_p" = yes; then
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 { as_fn_set_status 77
5937 as_fn_error "cannot compute sizeof (void *)
5938 See \`config.log' for more details." "$LINENO" 5; }; }
5939 else
5940 ac_cv_sizeof_void_p=0
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5946 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5950 cat >>confdefs.h <<_ACEOF
5951 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5952 _ACEOF
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5960 $as_echo_n "checking size of short... " >&6; }
5961 if test "${ac_cv_sizeof_short+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5966 else
5967 if test "$ac_cv_type_short" = yes; then
5968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { as_fn_set_status 77
5971 as_fn_error "cannot compute sizeof (short)
5972 See \`config.log' for more details." "$LINENO" 5; }; }
5973 else
5974 ac_cv_sizeof_short=0
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5980 $as_echo "$ac_cv_sizeof_short" >&6; }
5984 cat >>confdefs.h <<_ACEOF
5985 #define SIZEOF_SHORT $ac_cv_sizeof_short
5986 _ACEOF
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5994 $as_echo_n "checking size of int... " >&6; }
5995 if test "${ac_cv_sizeof_int+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6000 else
6001 if test "$ac_cv_type_int" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status 77
6005 as_fn_error "cannot compute sizeof (int)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6007 else
6008 ac_cv_sizeof_int=0
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6014 $as_echo "$ac_cv_sizeof_int" >&6; }
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF_INT $ac_cv_sizeof_int
6020 _ACEOF
6023 # The cast to long int works around a bug in the HP C Compiler
6024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6026 # This bug is HP SR number 8606223364.
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6028 $as_echo_n "checking size of long... " >&6; }
6029 if test "${ac_cv_sizeof_long+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6034 else
6035 if test "$ac_cv_type_long" = yes; then
6036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038 { as_fn_set_status 77
6039 as_fn_error "cannot compute sizeof (long)
6040 See \`config.log' for more details." "$LINENO" 5; }; }
6041 else
6042 ac_cv_sizeof_long=0
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6048 $as_echo "$ac_cv_sizeof_long" >&6; }
6052 cat >>confdefs.h <<_ACEOF
6053 #define SIZEOF_LONG $ac_cv_sizeof_long
6054 _ACEOF
6057 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6058 if test "x$ac_cv_type_long_long" = x""yes; then :
6060 cat >>confdefs.h <<_ACEOF
6061 #define HAVE_LONG_LONG 1
6062 _ACEOF
6064 # The cast to long int works around a bug in the HP C Compiler
6065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6067 # This bug is HP SR number 8606223364.
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6069 $as_echo_n "checking size of long long... " >&6; }
6070 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6075 else
6076 if test "$ac_cv_type_long_long" = yes; then
6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6079 { as_fn_set_status 77
6080 as_fn_error "cannot compute sizeof (long long)
6081 See \`config.log' for more details." "$LINENO" 5; }; }
6082 else
6083 ac_cv_sizeof_long_long=0
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6089 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6093 cat >>confdefs.h <<_ACEOF
6094 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6095 _ACEOF
6100 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6101 case $ac_cv_c_int8_t in #(
6102 no|yes) ;; #(
6105 cat >>confdefs.h <<_ACEOF
6106 #define int8_t $ac_cv_c_int8_t
6107 _ACEOF
6109 esac
6111 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6112 case $ac_cv_c_int16_t in #(
6113 no|yes) ;; #(
6116 cat >>confdefs.h <<_ACEOF
6117 #define int16_t $ac_cv_c_int16_t
6118 _ACEOF
6120 esac
6122 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6123 case $ac_cv_c_int32_t in #(
6124 no|yes) ;; #(
6127 cat >>confdefs.h <<_ACEOF
6128 #define int32_t $ac_cv_c_int32_t
6129 _ACEOF
6131 esac
6133 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6134 case $ac_cv_c_int64_t in #(
6135 no|yes) ;; #(
6138 cat >>confdefs.h <<_ACEOF
6139 #define int64_t $ac_cv_c_int64_t
6140 _ACEOF
6142 esac
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6146 $as_echo_n "checking for long long int... " >&6; }
6147 if test "${ac_cv_type_long_long_int+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6153 /* For now, do not test the preprocessor; as of 2007 there are too many
6154 implementations with broken preprocessors. Perhaps this can
6155 be revisited in 2012. In the meantime, code should not expect
6156 #if to work with literals wider than 32 bits. */
6157 /* Test literals. */
6158 long long int ll = 9223372036854775807ll;
6159 long long int nll = -9223372036854775807LL;
6160 unsigned long long int ull = 18446744073709551615ULL;
6161 /* Test constant expressions. */
6162 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6163 ? 1 : -1)];
6164 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6165 ? 1 : -1)];
6166 int i = 63;
6168 main ()
6170 /* Test availability of runtime routines for shift and division. */
6171 long long int llmax = 9223372036854775807ll;
6172 unsigned long long int ullmax = 18446744073709551615ull;
6173 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6174 | (llmax / ll) | (llmax % ll)
6175 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6176 | (ullmax / ull) | (ullmax % ull));
6178 return 0;
6181 _ACEOF
6182 if ac_fn_cxx_try_link "$LINENO"; then :
6183 if test "$cross_compiling" = yes; then :
6184 ac_cv_type_long_long_int=yes
6185 else
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 #include <limits.h>
6189 #ifndef LLONG_MAX
6190 # define HALF \
6191 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6192 # define LLONG_MAX (HALF - 1 + HALF)
6193 #endif
6195 main ()
6197 long long int n = 1;
6198 int i;
6199 for (i = 0; ; i++)
6201 long long int m = n << i;
6202 if (m >> i != n)
6203 return 1;
6204 if (LLONG_MAX / 2 < m)
6205 break;
6207 return 0;
6209 return 0;
6211 _ACEOF
6212 if ac_fn_cxx_try_run "$LINENO"; then :
6213 ac_cv_type_long_long_int=yes
6214 else
6215 ac_cv_type_long_long_int=no
6217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6218 conftest.$ac_objext conftest.beam conftest.$ac_ext
6221 else
6222 ac_cv_type_long_long_int=no
6224 rm -f core conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6228 $as_echo "$ac_cv_type_long_long_int" >&6; }
6229 if test $ac_cv_type_long_long_int = yes; then
6231 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6237 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6238 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6240 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6242 else
6243 test $ac_cv_type_long_long_int = yes \
6244 && ac_type='long long int' \
6245 || ac_type='long int'
6247 cat >>confdefs.h <<_ACEOF
6248 #define intmax_t $ac_type
6249 _ACEOF
6255 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6256 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6258 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6260 else
6261 for ac_type in 'int' 'long int' 'long long int'; do
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 $ac_includes_default
6266 main ()
6268 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6269 test_array [0] = 0
6272 return 0;
6274 _ACEOF
6275 if ac_fn_cxx_try_compile "$LINENO"; then :
6277 cat >>confdefs.h <<_ACEOF
6278 #define intptr_t $ac_type
6279 _ACEOF
6281 ac_type=
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 test -z "$ac_type" && break
6285 done
6289 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6290 case $ac_cv_c_uint8_t in #(
6291 no|yes) ;; #(
6294 $as_echo "#define _UINT8_T 1" >>confdefs.h
6297 cat >>confdefs.h <<_ACEOF
6298 #define uint8_t $ac_cv_c_uint8_t
6299 _ACEOF
6301 esac
6303 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6304 case $ac_cv_c_uint16_t in #(
6305 no|yes) ;; #(
6309 cat >>confdefs.h <<_ACEOF
6310 #define uint16_t $ac_cv_c_uint16_t
6311 _ACEOF
6313 esac
6315 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6316 case $ac_cv_c_uint32_t in #(
6317 no|yes) ;; #(
6320 $as_echo "#define _UINT32_T 1" >>confdefs.h
6323 cat >>confdefs.h <<_ACEOF
6324 #define uint32_t $ac_cv_c_uint32_t
6325 _ACEOF
6327 esac
6329 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6330 case $ac_cv_c_uint64_t in #(
6331 no|yes) ;; #(
6334 $as_echo "#define _UINT64_T 1" >>confdefs.h
6337 cat >>confdefs.h <<_ACEOF
6338 #define uint64_t $ac_cv_c_uint64_t
6339 _ACEOF
6341 esac
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6345 $as_echo_n "checking for unsigned long long int... " >&6; }
6346 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6352 /* For now, do not test the preprocessor; as of 2007 there are too many
6353 implementations with broken preprocessors. Perhaps this can
6354 be revisited in 2012. In the meantime, code should not expect
6355 #if to work with literals wider than 32 bits. */
6356 /* Test literals. */
6357 long long int ll = 9223372036854775807ll;
6358 long long int nll = -9223372036854775807LL;
6359 unsigned long long int ull = 18446744073709551615ULL;
6360 /* Test constant expressions. */
6361 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6362 ? 1 : -1)];
6363 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6364 ? 1 : -1)];
6365 int i = 63;
6367 main ()
6369 /* Test availability of runtime routines for shift and division. */
6370 long long int llmax = 9223372036854775807ll;
6371 unsigned long long int ullmax = 18446744073709551615ull;
6372 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6373 | (llmax / ll) | (llmax % ll)
6374 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6375 | (ullmax / ull) | (ullmax % ull));
6377 return 0;
6380 _ACEOF
6381 if ac_fn_cxx_try_link "$LINENO"; then :
6382 ac_cv_type_unsigned_long_long_int=yes
6383 else
6384 ac_cv_type_unsigned_long_long_int=no
6386 rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6390 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6391 if test $ac_cv_type_unsigned_long_long_int = yes; then
6393 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6399 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6400 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6402 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6404 else
6405 test $ac_cv_type_unsigned_long_long_int = yes \
6406 && ac_type='unsigned long long int' \
6407 || ac_type='unsigned long int'
6409 cat >>confdefs.h <<_ACEOF
6410 #define uintmax_t $ac_type
6411 _ACEOF
6417 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6420 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6422 else
6423 for ac_type in 'unsigned int' 'unsigned long int' \
6424 'unsigned long long int'; do
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 $ac_includes_default
6429 main ()
6431 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6432 test_array [0] = 0
6435 return 0;
6437 _ACEOF
6438 if ac_fn_cxx_try_compile "$LINENO"; then :
6440 cat >>confdefs.h <<_ACEOF
6441 #define uintptr_t $ac_type
6442 _ACEOF
6444 ac_type=
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 test -z "$ac_type" && break
6448 done
6464 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6465 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6468 # check what underlying integer type int64_t uses
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6470 $as_echo_n "checking for int64_t underlying type... " >&6; }
6471 if test "${ac_cv_int64_t_type+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6478 #ifdef HAVE_STDINT_H
6479 #include <stdint.h>
6480 #endif
6481 template <typename T> struct X { };
6482 template <>
6483 struct X<long> { typedef long t; };
6486 main ()
6488 X<int64_t>::t x;
6490 return 0;
6492 _ACEOF
6493 if ac_fn_cxx_try_compile "$LINENO"; then :
6494 ac_cv_int64_t_type=long
6495 else
6496 ac_cv_int64_t_type="long long"
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6501 $as_echo "$ac_cv_int64_t_type" >&6; }
6502 if test "$ac_cv_int64_t_type" = "long"; then
6504 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6506 else
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 #ifdef HAVE_STDINT_H
6511 #include <stdint.h>
6512 #endif
6513 template <typename T> struct X { };
6514 template <>
6515 struct X<long long> { typedef long long t; };
6518 main ()
6520 X<int64_t>::t x;
6522 return 0;
6524 _ACEOF
6525 if ac_fn_cxx_try_compile "$LINENO"; then :
6527 else
6528 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6534 # If the host compiler is affected by the bug, and we build with optimization
6535 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6536 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6537 # Since there is no reliable feature check for the presence of this bug,
6538 # we simply use a GCC version number check. (This should never trigger for
6539 # stages 2 or 3 of a native bootstrap.)
6540 aliasing_flags=
6541 if test "$GCC" = yes; then
6542 saved_CXXFLAGS="$CXXFLAGS"
6544 # The following test compilation will succeed if and only if $CXX accepts
6545 # -fno-strict-aliasing *and* is older than GCC 4.3.
6546 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6548 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6552 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6553 #error compiler not affected by placement new aliasing bug
6554 #endif
6556 _ACEOF
6557 if ac_fn_cxx_try_compile "$LINENO"; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6559 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6560 else
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 CXXFLAGS="$saved_CXXFLAGS"
6572 # ---------------------
6573 # Warnings and checking
6574 # ---------------------
6576 # Check $CC warning features (if it's GCC).
6577 # We want to use -pedantic, but we don't want warnings about
6578 # * 'long long'
6579 # * variadic macros
6580 # * overlong strings
6581 # * C++11 narrowing conversions in { }
6582 # So, we only use -pedantic if we can disable those warnings.
6584 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6585 # Check whether --enable-build-format-warnings was given.
6586 if test "${enable_build_format_warnings+set}" = set; then :
6587 enableval=$enable_build_format_warnings;
6588 else
6589 enable_build_format_warnings=yes
6592 if test $enable_build_format_warnings = no; then :
6593 wf_opt=-Wno-format
6594 else
6595 wf_opt=
6597 ac_ext=cpp
6598 ac_cpp='$CXXCPP $CPPFLAGS'
6599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6603 loose_warn=
6604 save_CXXFLAGS="$CXXFLAGS"
6605 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6606 # Do the check with the no- prefix removed since gcc silently
6607 # accepts any -Wno-* option on purpose
6608 case $real_option in
6609 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6610 *) option=$real_option ;;
6611 esac
6612 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6615 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6616 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 CXXFLAGS="$option"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6624 main ()
6628 return 0;
6630 _ACEOF
6631 if ac_fn_cxx_try_compile "$LINENO"; then :
6632 eval "$as_acx_Woption=yes"
6633 else
6634 eval "$as_acx_Woption=no"
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 eval ac_res=\$$as_acx_Woption
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6641 $as_echo "$ac_res" >&6; }
6642 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6643 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6645 done
6646 CXXFLAGS="$save_CXXFLAGS"
6647 ac_ext=cpp
6648 ac_cpp='$CXXCPP $CPPFLAGS'
6649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6655 ac_ext=c
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6661 c_loose_warn=
6662 save_CFLAGS="$CFLAGS"
6663 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6664 # Do the check with the no- prefix removed since gcc silently
6665 # accepts any -Wno-* option on purpose
6666 case $real_option in
6667 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6668 *) option=$real_option ;;
6669 esac
6670 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6673 $as_echo_n "checking whether $CC supports $option... " >&6; }
6674 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 CFLAGS="$option"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6682 main ()
6686 return 0;
6688 _ACEOF
6689 if ac_fn_c_try_compile "$LINENO"; then :
6690 eval "$as_acx_Woption=yes"
6691 else
6692 eval "$as_acx_Woption=no"
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 eval ac_res=\$$as_acx_Woption
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699 $as_echo "$ac_res" >&6; }
6700 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6701 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6703 done
6704 CFLAGS="$save_CFLAGS"
6705 ac_ext=cpp
6706 ac_cpp='$CXXCPP $CPPFLAGS'
6707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6712 ac_ext=cpp
6713 ac_cpp='$CXXCPP $CPPFLAGS'
6714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6718 strict_warn=
6719 save_CXXFLAGS="$CXXFLAGS"
6720 for real_option in -Wmissing-format-attribute; do
6721 # Do the check with the no- prefix removed since gcc silently
6722 # accepts any -Wno-* option on purpose
6723 case $real_option in
6724 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6725 *) option=$real_option ;;
6726 esac
6727 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6730 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6731 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 CXXFLAGS="$option"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6739 main ()
6743 return 0;
6745 _ACEOF
6746 if ac_fn_cxx_try_compile "$LINENO"; then :
6747 eval "$as_acx_Woption=yes"
6748 else
6749 eval "$as_acx_Woption=no"
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 eval ac_res=\$$as_acx_Woption
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6756 $as_echo "$ac_res" >&6; }
6757 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6758 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6760 done
6761 CXXFLAGS="$save_CXXFLAGS"
6762 ac_ext=cpp
6763 ac_cpp='$CXXCPP $CPPFLAGS'
6764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6769 ac_ext=cpp
6770 ac_cpp='$CXXCPP $CPPFLAGS'
6771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6775 save_CXXFLAGS="$CXXFLAGS"
6776 for real_option in -Woverloaded-virtual; do
6777 # Do the check with the no- prefix removed since gcc silently
6778 # accepts any -Wno-* option on purpose
6779 case $real_option in
6780 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6781 *) option=$real_option ;;
6782 esac
6783 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6786 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6787 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6788 $as_echo_n "(cached) " >&6
6789 else
6790 CXXFLAGS="$option"
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6795 main ()
6799 return 0;
6801 _ACEOF
6802 if ac_fn_cxx_try_compile "$LINENO"; then :
6803 eval "$as_acx_Woption=yes"
6804 else
6805 eval "$as_acx_Woption=no"
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 eval ac_res=\$$as_acx_Woption
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6812 $as_echo "$ac_res" >&6; }
6813 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6814 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6816 done
6817 CXXFLAGS="$save_CXXFLAGS"
6818 ac_ext=cpp
6819 ac_cpp='$CXXCPP $CPPFLAGS'
6820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6825 ac_ext=c
6826 ac_cpp='$CPP $CPPFLAGS'
6827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6831 c_strict_warn=
6832 save_CFLAGS="$CFLAGS"
6833 for real_option in -Wold-style-definition -Wc++-compat; do
6834 # Do the check with the no- prefix removed since gcc silently
6835 # accepts any -Wno-* option on purpose
6836 case $real_option in
6837 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6838 *) option=$real_option ;;
6839 esac
6840 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6843 $as_echo_n "checking whether $CC supports $option... " >&6; }
6844 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 CFLAGS="$option"
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6852 main ()
6856 return 0;
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"; then :
6860 eval "$as_acx_Woption=yes"
6861 else
6862 eval "$as_acx_Woption=no"
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 eval ac_res=\$$as_acx_Woption
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6871 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6873 done
6874 CFLAGS="$save_CFLAGS"
6875 ac_ext=cpp
6876 ac_cpp='$CXXCPP $CPPFLAGS'
6877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6882 ac_ext=cpp
6883 ac_cpp='$CXXCPP $CPPFLAGS'
6884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6888 # Do the check with the no- prefix removed from the warning options
6889 # since gcc silently accepts any -Wno-* option on purpose
6890 if test "$GXX" = yes; then :
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6892 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6893 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 save_CXXFLAGS="$CXXFLAGS"
6897 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6902 main ()
6906 return 0;
6908 _ACEOF
6909 if ac_fn_cxx_try_compile "$LINENO"; then :
6910 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6911 else
6912 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 CXXFLAGS="$save_CXXFLAGS"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6918 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6919 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6920 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6924 ac_ext=cpp
6925 ac_cpp='$CXXCPP $CPPFLAGS'
6926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6931 ac_ext=cpp
6932 ac_cpp='$CXXCPP $CPPFLAGS'
6933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6937 # Check whether --enable-werror-always was given.
6938 if test "${enable_werror_always+set}" = set; then :
6939 enableval=$enable_werror_always;
6940 else
6941 enable_werror_always=no
6944 if test $enable_werror_always = yes; then :
6945 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6948 ac_ext=cpp
6949 ac_cpp='$CXXCPP $CPPFLAGS'
6950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6956 # The above macros do nothing if the compiler is not GCC. However, the
6957 # Makefile has more goo to add other flags, so these variables are used
6958 # to enable warnings only for GCC.
6959 warn_cflags=
6960 warn_cxxflags=
6961 if test "x$GCC" = "xyes"; then
6962 warn_cflags='$(GCC_WARN_CFLAGS)'
6963 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6968 # Disable exceptions and RTTI if building with g++
6969 ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975 noexception_flags=
6976 save_CFLAGS="$CFLAGS"
6977 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6978 # Do the check with the no- prefix removed since gcc silently
6979 # accepts any -Wno-* option on purpose
6980 case $real_option in
6981 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6982 *) option=$real_option ;;
6983 esac
6984 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6987 $as_echo_n "checking whether $CC supports $option... " >&6; }
6988 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 CFLAGS="$option"
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6996 main ()
7000 return 0;
7002 _ACEOF
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 eval "$as_acx_Woption=yes"
7005 else
7006 eval "$as_acx_Woption=no"
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011 eval ac_res=\$$as_acx_Woption
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7013 $as_echo "$ac_res" >&6; }
7014 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7015 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7017 done
7018 CFLAGS="$save_CFLAGS"
7019 ac_ext=cpp
7020 ac_cpp='$CXXCPP $CPPFLAGS'
7021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7027 # Enable expensive internal checks
7028 is_release=
7029 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7030 is_release=yes
7033 # Check whether --enable-checking was given.
7034 if test "${enable_checking+set}" = set; then :
7035 enableval=$enable_checking; ac_checking_flags="${enableval}"
7036 else
7038 # Determine the default checks.
7039 if test x$is_release = x ; then
7040 ac_checking_flags=yes
7041 else
7042 ac_checking_flags=release
7046 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7047 for check in release $ac_checking_flags
7049 case $check in
7050 # these set all the flags to specific states
7051 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7052 ac_fold_checking= ; ac_gc_checking=1 ;
7053 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7054 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7055 ac_tree_checking=1 ; ac_valgrind_checking= ;
7056 ac_types_checking=1 ;;
7057 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7058 ac_fold_checking= ; ac_gc_checking= ;
7059 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7060 ac_rtlflag_checking= ; ac_runtime_checking= ;
7061 ac_tree_checking= ; ac_valgrind_checking= ;
7062 ac_types_checking= ;;
7063 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7064 ac_fold_checking=1 ; ac_gc_checking=1 ;
7065 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7066 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7067 ac_tree_checking=1 ; ac_valgrind_checking= ;
7068 ac_types_checking=1 ;;
7069 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7070 ac_fold_checking= ; ac_gc_checking= ;
7071 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7072 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7073 ac_tree_checking= ; ac_valgrind_checking= ;
7074 ac_types_checking= ;;
7075 # these enable particular checks
7076 assert) ac_assert_checking=1 ;;
7077 df) ac_df_checking=1 ;;
7078 fold) ac_fold_checking=1 ;;
7079 gc) ac_gc_checking=1 ;;
7080 gcac) ac_gc_always_collect=1 ;;
7081 gimple) ac_gimple_checking=1 ;;
7082 misc) ac_checking=1 ;;
7083 rtl) ac_rtl_checking=1 ;;
7084 rtlflag) ac_rtlflag_checking=1 ;;
7085 runtime) ac_runtime_checking=1 ;;
7086 tree) ac_tree_checking=1 ;;
7087 types) ac_types_checking=1 ;;
7088 valgrind) ac_valgrind_checking=1 ;;
7089 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7090 esac
7091 done
7092 IFS="$ac_save_IFS"
7094 nocommon_flag=""
7095 if test x$ac_checking != x ; then
7097 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7099 nocommon_flag=-fno-common
7102 if test x$ac_df_checking != x ; then
7104 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7107 if test x$ac_assert_checking != x ; then
7109 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7112 if test x$ac_gimple_checking != x ; then
7114 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7118 if test x$ac_runtime_checking != x ; then
7120 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7123 if test x$ac_tree_checking != x ; then
7125 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7127 TREECHECKING=yes
7129 if test x$ac_types_checking != x ; then
7131 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7135 if test x$ac_rtl_checking != x ; then
7137 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7140 if test x$ac_rtlflag_checking != x ; then
7142 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7145 if test x$ac_gc_checking != x ; then
7147 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7150 if test x$ac_gc_always_collect != x ; then
7152 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7155 if test x$ac_fold_checking != x ; then
7157 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7160 valgrind_path_defines=
7161 valgrind_command=
7163 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7164 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7165 have_valgrind_h=yes
7166 else
7167 have_valgrind_h=no
7172 # It is certainly possible that there's valgrind but no valgrind.h.
7173 # GCC relies on making annotations so we must have both.
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7175 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 #include <valgrind/memcheck.h>
7179 #ifndef VALGRIND_DISCARD
7180 #error VALGRIND_DISCARD not defined
7181 #endif
7182 _ACEOF
7183 if ac_fn_cxx_try_cpp "$LINENO"; then :
7184 gcc_cv_header_valgrind_memcheck_h=yes
7185 else
7186 gcc_cv_header_valgrind_memcheck_h=no
7188 rm -f conftest.err conftest.$ac_ext
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7190 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <memcheck.h>
7196 #ifndef VALGRIND_DISCARD
7197 #error VALGRIND_DISCARD not defined
7198 #endif
7199 _ACEOF
7200 if ac_fn_cxx_try_cpp "$LINENO"; then :
7201 gcc_cv_header_memcheck_h=yes
7202 else
7203 gcc_cv_header_memcheck_h=no
7205 rm -f conftest.err conftest.$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7207 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7208 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7210 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7213 if test $gcc_cv_header_memcheck_h = yes; then
7215 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7219 if test x$ac_valgrind_checking != x ; then
7221 # Prepare PATH_SEPARATOR.
7222 # The user is always right.
7223 if test "${PATH_SEPARATOR+set}" != set; then
7224 echo "#! /bin/sh" >conf$$.sh
7225 echo "exit 0" >>conf$$.sh
7226 chmod +x conf$$.sh
7227 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7228 PATH_SEPARATOR=';'
7229 else
7230 PATH_SEPARATOR=:
7232 rm -f conf$$.sh
7235 # Find out how to test for executable files. Don't use a zero-byte file,
7236 # as systems may use methods other than mode bits to determine executability.
7237 cat >conf$$.file <<_ASEOF
7238 #! /bin/sh
7239 exit 0
7240 _ASEOF
7241 chmod +x conf$$.file
7242 if test -x conf$$.file >/dev/null 2>&1; then
7243 ac_executable_p="test -x"
7244 else
7245 ac_executable_p="test -f"
7247 rm -f conf$$.file
7249 # Extract the first word of "valgrind", so it can be a program name with args.
7250 set dummy valgrind; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 case "$valgrind_path" in
7257 [\\/]* | ?:[\\/]*)
7258 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7261 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7262 for ac_dir in $PATH; do
7263 IFS="$ac_save_IFS"
7264 test -z "$ac_dir" && ac_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7267 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7268 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7269 break 2
7272 done
7273 done
7274 IFS="$ac_save_IFS"
7276 esac
7278 valgrind_path="$ac_cv_path_valgrind_path"
7279 if test -n "$valgrind_path"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7281 $as_echo "$valgrind_path" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7287 if test "x$valgrind_path" = "x" \
7288 || (test $have_valgrind_h = no \
7289 && test $gcc_cv_header_memcheck_h = no \
7290 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7291 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7293 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7294 valgrind_command="$valgrind_path -q"
7296 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7302 # Enable code coverage collection
7303 # Check whether --enable-coverage was given.
7304 if test "${enable_coverage+set}" = set; then :
7305 enableval=$enable_coverage; case "${enableval}" in
7306 yes|noopt)
7307 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7309 opt)
7310 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7313 # a.k.a. --disable-coverage
7314 coverage_flags=""
7317 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7319 esac
7320 else
7321 coverage_flags=""
7326 # Check whether --enable-gather-detailed-mem-stats was given.
7327 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7328 enableval=$enable_gather_detailed_mem_stats;
7329 else
7330 enable_gather_detailed_mem_stats=no
7333 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7335 cat >>confdefs.h <<_ACEOF
7336 #define GATHER_STATISTICS $gather_stats
7337 _ACEOF
7340 # Check whether --enable-valgrind-annotations was given.
7341 if test "${enable_valgrind_annotations+set}" = set; then :
7342 enableval=$enable_valgrind_annotations;
7343 else
7344 enable_valgrind_annotations=no
7347 if test x$enable_valgrind_annotations != xno \
7348 || test x$ac_valgrind_checking != x; then
7349 if (test $have_valgrind_h = no \
7350 && test $gcc_cv_header_memcheck_h = no \
7351 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7352 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7355 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7359 # -------------------------------
7360 # Miscenalleous configure options
7361 # -------------------------------
7363 # With stabs
7365 # Check whether --with-stabs was given.
7366 if test "${with_stabs+set}" = set; then :
7367 withval=$with_stabs; stabs="$with_stabs"
7368 else
7369 stabs=no
7373 # Determine whether or not multilibs are enabled.
7374 # Check whether --enable-multilib was given.
7375 if test "${enable_multilib+set}" = set; then :
7376 enableval=$enable_multilib;
7377 else
7378 enable_multilib=yes
7383 # Determine whether or not multiarch is enabled.
7384 # Check whether --enable-multiarch was given.
7385 if test "${enable_multiarch+set}" = set; then :
7386 enableval=$enable_multiarch; case "${enableval}" in
7387 yes|no|auto) enable_multiarch=$enableval;;
7388 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7389 esac
7390 else
7391 enable_multiarch=auto
7394 if test x${enable_multiarch} = xauto; then
7395 if test x${with_native_system_header_dir} != x; then
7396 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7397 enable_multiarch=no
7399 if test x$host != x$target && test "x$with_sysroot" = x; then
7400 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7401 enable_multiarch=no
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7405 $as_echo_n "checking for multiarch configuration... " >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7408 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7410 # needed for setting the multiarch name for soft-float/hard-float ABIs
7414 # Enable __cxa_atexit for C++.
7415 # Check whether --enable-__cxa_atexit was given.
7416 if test "${enable___cxa_atexit+set}" = set; then :
7417 enableval=$enable___cxa_atexit;
7421 # Enable C extension for decimal float if target supports it.
7423 # Check whether --enable-decimal-float was given.
7424 if test "${enable_decimal_float+set}" = set; then :
7425 enableval=$enable_decimal_float;
7426 case $enable_decimal_float in
7427 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7428 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7429 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7430 esac
7432 else
7434 case $target in
7435 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7436 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7437 i?86*-*-mingw* | x86_64*-*-mingw* | \
7438 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7439 enable_decimal_float=yes
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7443 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7444 enable_decimal_float=no
7446 esac
7451 # x86's use BID format instead of DPD
7452 case x$enable_decimal_float in
7453 xyes)
7454 case $target in
7455 i?86*-*-* | x86_64*-*-*)
7456 enable_decimal_float=bid
7459 enable_decimal_float=dpd
7461 esac
7462 default_decimal_float=$enable_decimal_float
7464 xno)
7465 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7466 # dependency on libdecnumber.
7467 default_decimal_float=dpd
7469 esac
7474 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7476 cat >>confdefs.h <<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7478 _ACEOF
7481 # Use default_decimal_float for dependency.
7482 enable_decimal_float=$default_decimal_float
7484 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7486 cat >>confdefs.h <<_ACEOF
7487 #define ENABLE_DECIMAL_BID_FORMAT $bid
7488 _ACEOF
7491 # Enable C extension for fixed-point arithmetic.
7492 # Check whether --enable-fixed-point was given.
7493 if test "${enable_fixed_point+set}" = set; then :
7494 enableval=$enable_fixed_point;
7495 else
7497 case $target in
7498 arm*)
7499 enable_fixed_point=yes
7502 mips*-*-*)
7503 enable_fixed_point=yes
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7507 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7508 enable_fixed_point=no
7510 esac
7516 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7518 cat >>confdefs.h <<_ACEOF
7519 #define ENABLE_FIXED_POINT $fixedpoint
7520 _ACEOF
7523 # Enable threads
7524 # Pass with no value to take the default
7525 # Pass with a value to specify a thread package
7526 # Check whether --enable-threads was given.
7527 if test "${enable_threads+set}" = set; then :
7528 enableval=$enable_threads;
7529 else
7530 enable_threads=''
7534 # Check whether --enable-tls was given.
7535 if test "${enable_tls+set}" = set; then :
7536 enableval=$enable_tls;
7537 case $enable_tls in
7538 yes | no) ;;
7539 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7540 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7541 esac
7543 else
7544 enable_tls=''
7548 # Check whether --enable-objc-gc was given.
7549 if test "${enable_objc_gc+set}" = set; then :
7550 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7551 objc_boehm_gc=''
7552 else
7553 objc_boehm_gc=1
7555 else
7556 objc_boehm_gc=''
7561 # Check whether --with-dwarf2 was given.
7562 if test "${with_dwarf2+set}" = set; then :
7563 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7564 else
7565 dwarf2=no
7569 # Check whether --enable-shared was given.
7570 if test "${enable_shared+set}" = set; then :
7571 enableval=$enable_shared;
7572 case $enable_shared in
7573 yes | no) ;;
7575 enable_shared=no
7576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7577 for pkg in $enableval; do
7578 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7579 enable_shared=yes
7581 done
7582 IFS="$ac_save_ifs"
7584 esac
7586 else
7587 enable_shared=yes
7593 # Check whether --with-specs was given.
7594 if test "${with_specs+set}" = set; then :
7595 withval=$with_specs; CONFIGURE_SPECS=$withval
7596 else
7597 CONFIGURE_SPECS=
7605 # Check whether --with-pkgversion was given.
7606 if test "${with_pkgversion+set}" = set; then :
7607 withval=$with_pkgversion; case "$withval" in
7608 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7609 no) PKGVERSION= ;;
7610 *) PKGVERSION="($withval) " ;;
7611 esac
7612 else
7613 PKGVERSION="(GCC) "
7621 # Check whether --with-bugurl was given.
7622 if test "${with_bugurl+set}" = set; then :
7623 withval=$with_bugurl; case "$withval" in
7624 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7625 no) BUGURL=
7627 *) BUGURL="$withval"
7629 esac
7630 else
7631 BUGURL="http://gcc.gnu.org/bugs.html"
7635 case ${BUGURL} in
7637 REPORT_BUGS_TO=
7638 REPORT_BUGS_TEXI=
7641 REPORT_BUGS_TO="<$BUGURL>"
7642 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7644 esac;
7649 # Sanity check enable_languages in case someone does not run the toplevel
7650 # configure # script.
7651 # Check whether --enable-languages was given.
7652 if test "${enable_languages+set}" = set; then :
7653 enableval=$enable_languages; case ,${enable_languages}, in
7654 ,,|,yes,)
7655 # go safe -- we cannot be much sure without the toplevel
7656 # configure's
7657 # analysis of which target libs are present and usable
7658 enable_languages=c
7660 *,all,*)
7661 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7663 *,c,*)
7666 enable_languages=c,${enable_languages}
7668 esac
7669 else
7670 enable_languages=c
7674 if test x"$enable_as_accelerator_for" != x; then
7676 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7678 enable_as_accelerator=yes
7679 case "${target}" in
7680 *-intelmicemul-*)
7681 # In this case we expect offload compiler to be built as native, so we
7682 # need to rename the driver to avoid clashes with host's drivers.
7683 program_transform_name="s&^&${target}-&" ;;
7684 esac
7685 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7686 program_transform_name=`echo $program_transform_name | sed $sedscript`
7687 accel_dir_suffix=/accel/${target_noncanonical}
7688 real_target_noncanonical=${enable_as_accelerator_for}
7694 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7695 tgt=`echo $tgt | sed 's/=.*//'`
7696 if test x"$offload_targets" = x; then
7697 offload_targets=$tgt
7698 else
7699 offload_targets="$offload_targets,$tgt"
7701 done
7703 cat >>confdefs.h <<_ACEOF
7704 #define OFFLOAD_TARGETS "$offload_targets"
7705 _ACEOF
7707 if test x"$offload_targets" != x; then
7709 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7714 # Check whether --with-multilib-list was given.
7715 if test "${with_multilib_list+set}" = set; then :
7716 withval=$with_multilib_list; :
7717 else
7718 with_multilib_list=default
7722 # -------------------------
7723 # Checks for other programs
7724 # -------------------------
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7728 set x ${MAKE-make}
7729 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7730 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 cat >conftest.make <<\_ACEOF
7734 SHELL = /bin/sh
7735 all:
7736 @echo '@@@%%%=$(MAKE)=@@@%%%'
7737 _ACEOF
7738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7740 *@@@%%%=?*=@@@%%%*)
7741 eval ac_cv_prog_make_${ac_make}_set=yes;;
7743 eval ac_cv_prog_make_${ac_make}_set=no;;
7744 esac
7745 rm -f conftest.make
7747 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749 $as_echo "yes" >&6; }
7750 SET_MAKE=
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 SET_MAKE="MAKE=${MAKE-make}"
7758 # Find some useful tools
7759 for ac_prog in gawk mawk nawk awk
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_AWK+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$AWK"; then
7769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_AWK="$ac_prog"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7788 AWK=$ac_cv_prog_AWK
7789 if test -n "$AWK"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7791 $as_echo "$AWK" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7798 test -n "$AWK" && break
7799 done
7801 # We need awk to create options.c and options.h.
7802 # Bail out if it's missing.
7803 case ${AWK} in
7804 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7805 esac
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7808 $as_echo_n "checking whether ln -s works... " >&6; }
7809 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 rm -f conftestdata_t
7813 echo >conftestdata_f
7814 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7815 then
7816 gcc_cv_prog_LN_S="ln -s"
7817 else
7818 if ln conftestdata_f conftestdata_t 2>/dev/null
7819 then
7820 gcc_cv_prog_LN_S=ln
7821 else
7822 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7823 then
7824 gcc_cv_prog_LN_S="cp -p"
7825 else
7826 gcc_cv_prog_LN_S=cp
7830 rm -f conftestdata_f conftestdata_t
7833 LN_S="$gcc_cv_prog_LN_S"
7834 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7837 else
7838 if test "$gcc_cv_prog_LN_S" = "ln"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7840 $as_echo "no, using ln" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7843 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7848 $as_echo_n "checking whether ln works... " >&6; }
7849 if test "${acx_cv_prog_LN+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln conftestdata_f conftestdata_t 2>/dev/null
7855 then
7856 acx_cv_prog_LN=ln
7857 else
7858 acx_cv_prog_LN=no
7860 rm -f conftestdata_f conftestdata_t
7863 if test $acx_cv_prog_LN = no; then
7864 LN="$LN_S"
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7866 $as_echo "no, using $LN" >&6; }
7867 else
7868 LN="$acx_cv_prog_LN"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870 $as_echo "yes" >&6; }
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$RANLIB"; then
7882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7895 done
7896 done
7897 IFS=$as_save_IFS
7901 RANLIB=$ac_cv_prog_RANLIB
7902 if test -n "$RANLIB"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7904 $as_echo "$RANLIB" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7912 if test -z "$ac_cv_prog_RANLIB"; then
7913 ac_ct_RANLIB=$RANLIB
7914 # Extract the first word of "ranlib", so it can be a program name with args.
7915 set dummy ranlib; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$ac_ct_RANLIB"; then
7922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_ac_ct_RANLIB="ranlib"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7935 done
7936 done
7937 IFS=$as_save_IFS
7941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7942 if test -n "$ac_ct_RANLIB"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7944 $as_echo "$ac_ct_RANLIB" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7950 if test "x$ac_ct_RANLIB" = x; then
7951 RANLIB=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954 yes:)
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned=yes ;;
7958 esac
7959 RANLIB=$ac_ct_RANLIB
7961 else
7962 RANLIB="$ac_cv_prog_RANLIB"
7965 ranlib_flags=""
7968 # Find a good install program. We prefer a C program (faster),
7969 # so one script is as good as another. But avoid the broken or
7970 # incompatible versions:
7971 # SysV /etc/install, /usr/sbin/install
7972 # SunOS /usr/etc/install
7973 # IRIX /sbin/install
7974 # AIX /bin/install
7975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7977 # ./install, which can be erroneously created by make from ./install.sh.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7979 $as_echo_n "checking for a BSD compatible install... " >&6; }
7980 if test -z "$INSTALL"; then
7981 if test "${ac_cv_path_install+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7985 for ac_dir in $PATH; do
7986 # Account for people who put trailing slashes in PATH elements.
7987 case "$ac_dir/" in
7988 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7990 # OSF1 and SCO ODT 3.0 have their own names for install.
7991 for ac_prog in ginstall scoinst install; do
7992 if test -f $ac_dir/$ac_prog; then
7993 if test $ac_prog = install &&
7994 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7995 # AIX install. It has an incompatible calling convention.
7996 # OSF/1 installbsd also uses dspmsg, but is usable.
7998 else
7999 ac_cv_path_install="$ac_dir/$ac_prog -c"
8000 break 2
8003 done
8005 esac
8006 done
8007 IFS="$ac_save_IFS"
8010 if test "${ac_cv_path_install+set}" = set; then
8011 INSTALL="$ac_cv_path_install"
8012 else
8013 # As a last resort, use the slow shell script. We don't cache a
8014 # path for INSTALL within a source directory, because that will
8015 # break other packages using the cache if that directory is
8016 # removed, or if the path is relative.
8017 INSTALL="$ac_install_sh"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8021 $as_echo "$INSTALL" >&6; }
8023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8024 # It thinks the first close brace ends the variable substitution.
8025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8030 # See if cmp has --ignore-initial.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8032 $as_echo_n "checking for cmp's capabilities... " >&6; }
8033 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 echo abfoo >t1
8037 echo cdfoo >t2
8038 gcc_cv_prog_cmp_skip=slowcompare
8039 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8040 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8042 else
8043 gcc_cv_prog_cmp_skip=gnucompare
8046 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8047 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8048 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8050 else
8051 gcc_cv_prog_cmp_skip=fastcompare
8055 rm t1 t2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8059 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8060 make_compare_target=$gcc_cv_prog_cmp_skip
8064 # See if we have the mktemp command.
8065 # Extract the first word of "mktemp", so it can be a program name with args.
8066 set dummy mktemp; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$have_mktemp_command"; then
8073 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_have_mktemp_command="yes"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8086 done
8087 done
8088 IFS=$as_save_IFS
8090 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8093 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8094 if test -n "$have_mktemp_command"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8096 $as_echo "$have_mktemp_command" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8104 # See if makeinfo has been installed and is modern enough
8105 # that we can use it.
8107 # Extract the first word of "makeinfo", so it can be a program name with args.
8108 set dummy makeinfo; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$MAKEINFO"; then
8115 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_prog_MAKEINFO="makeinfo"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8128 done
8129 done
8130 IFS=$as_save_IFS
8134 MAKEINFO=$ac_cv_prog_MAKEINFO
8135 if test -n "$MAKEINFO"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8137 $as_echo "$MAKEINFO" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8144 if test -n "$MAKEINFO"; then
8145 # Found it, now check the version.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8147 $as_echo_n "checking for modern makeinfo... " >&6; }
8148 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8152 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8154 case $ac_prog_version in
8155 '') gcc_cv_prog_makeinfo_modern=no;;
8156 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8157 *) gcc_cv_prog_makeinfo_modern=no;;
8158 esac
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8162 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8163 else
8164 gcc_cv_prog_makeinfo_modern=no
8166 if test $gcc_cv_prog_makeinfo_modern = no; then
8167 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8170 if test $gcc_cv_prog_makeinfo_modern = no; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8172 *** Makeinfo is missing or too old.
8173 *** Info documentation will not be built." >&5
8174 $as_echo "$as_me: WARNING:
8175 *** Makeinfo is missing or too old.
8176 *** Info documentation will not be built." >&2;}
8177 BUILD_INFO=
8178 else
8179 BUILD_INFO=info
8183 # Is pod2man recent enough to regenerate manpages?
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8185 $as_echo_n "checking for recent Pod::Man... " >&6; }
8186 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8188 $as_echo "yes" >&6; }
8189 GENERATED_MANPAGES=generated-manpages
8190 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8193 GENERATED_MANPAGES=
8197 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8199 # How about lex?
8200 for ac_prog in flex
8202 # Extract the first word of "$ac_prog", so it can be a program name with args.
8203 set dummy $ac_prog; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_FLEX+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 if test -n "$FLEX"; then
8210 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8211 else
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_FLEX="$ac_prog"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8223 done
8224 done
8225 IFS=$as_save_IFS
8229 FLEX=$ac_cv_prog_FLEX
8230 if test -n "$FLEX"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8232 $as_echo "$FLEX" >&6; }
8233 else
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8239 test -n "$FLEX" && break
8240 done
8241 test -n "$FLEX" || FLEX="$MISSING flex"
8244 # Bison?
8245 for ac_prog in bison
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy $ac_prog; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_BISON+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$BISON"; then
8255 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_BISON="$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8274 BISON=$ac_cv_prog_BISON
8275 if test -n "$BISON"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8277 $as_echo "$BISON" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8284 test -n "$BISON" && break
8285 done
8286 test -n "$BISON" || BISON="$MISSING bison"
8289 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8290 # check for build == host before using them.
8292 # NM
8293 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8294 && test -d ../binutils ; then
8295 NM='${objdir}/../binutils/nm-new'
8296 else
8297 # Extract the first word of "nm", so it can be a program name with args.
8298 set dummy nm; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if test "${ac_cv_prog_NM+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test -n "$NM"; then
8305 ac_cv_prog_NM="$NM" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8314 ac_cv_prog_NM="nm"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8318 done
8319 done
8320 IFS=$as_save_IFS
8322 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8325 NM=$ac_cv_prog_NM
8326 if test -n "$NM"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8328 $as_echo "$NM" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8337 # AR
8338 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8339 && test -d ../binutils ; then
8340 AR='${objdir}/../binutils/ar'
8341 else
8342 # Extract the first word of "ar", so it can be a program name with args.
8343 set dummy ar; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_AR+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 if test -n "$AR"; then
8350 ac_cv_prog_AR="$AR" # Let the user override the test.
8351 else
8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 for as_dir in $PATH
8355 IFS=$as_save_IFS
8356 test -z "$as_dir" && as_dir=.
8357 for ac_exec_ext in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8359 ac_cv_prog_AR="ar"
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 break 2
8363 done
8364 done
8365 IFS=$as_save_IFS
8367 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8370 AR=$ac_cv_prog_AR
8371 if test -n "$AR"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8373 $as_echo "$AR" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8382 # The jit documentation looks better if built with sphinx, but can be
8383 # built with texinfo if sphinx is not available.
8384 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8385 # Extract the first word of "sphinx-build", so it can be a program name with args.
8386 set dummy sphinx-build; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 if test -n "$doc_build_sys"; then
8393 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8394 else
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_prog_doc_build_sys="sphinx"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8406 done
8407 done
8408 IFS=$as_save_IFS
8410 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8413 doc_build_sys=$ac_cv_prog_doc_build_sys
8414 if test -n "$doc_build_sys"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8416 $as_echo "$doc_build_sys" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 # --------------------
8425 # Checks for C headers
8426 # --------------------
8428 # Need to reject headers which give warnings, so that the -Werror bootstrap
8429 # works later. *sigh* This needs to come before all header checks.
8431 ac_c_preproc_warn_flag=yes
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8434 $as_echo_n "checking for ANSI C header files... " >&6; }
8435 if test "${ac_cv_header_stdc+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <stdlib.h>
8441 #include <stdarg.h>
8442 #include <string.h>
8443 #include <float.h>
8446 main ()
8450 return 0;
8452 _ACEOF
8453 if ac_fn_cxx_try_compile "$LINENO"; then :
8454 ac_cv_header_stdc=yes
8455 else
8456 ac_cv_header_stdc=no
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 if test $ac_cv_header_stdc = yes; then
8461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <string.h>
8466 _ACEOF
8467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8468 $EGREP "memchr" >/dev/null 2>&1; then :
8470 else
8471 ac_cv_header_stdc=no
8473 rm -f conftest*
8477 if test $ac_cv_header_stdc = yes; then
8478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 #include <stdlib.h>
8483 _ACEOF
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "free" >/dev/null 2>&1; then :
8487 else
8488 ac_cv_header_stdc=no
8490 rm -f conftest*
8494 if test $ac_cv_header_stdc = yes; then
8495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8496 if test "$cross_compiling" = yes; then :
8498 else
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <ctype.h>
8502 #include <stdlib.h>
8503 #if ((' ' & 0x0FF) == 0x020)
8504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8506 #else
8507 # define ISLOWER(c) \
8508 (('a' <= (c) && (c) <= 'i') \
8509 || ('j' <= (c) && (c) <= 'r') \
8510 || ('s' <= (c) && (c) <= 'z'))
8511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8512 #endif
8514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8516 main ()
8518 int i;
8519 for (i = 0; i < 256; i++)
8520 if (XOR (islower (i), ISLOWER (i))
8521 || toupper (i) != TOUPPER (i))
8522 return 2;
8523 return 0;
8525 _ACEOF
8526 if ac_fn_cxx_try_run "$LINENO"; then :
8528 else
8529 ac_cv_header_stdc=no
8531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8532 conftest.$ac_objext conftest.beam conftest.$ac_ext
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8538 $as_echo "$ac_cv_header_stdc" >&6; }
8539 if test $ac_cv_header_stdc = yes; then
8541 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8546 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8547 if test "${ac_cv_header_time+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <sys/types.h>
8553 #include <sys/time.h>
8554 #include <time.h>
8557 main ()
8559 if ((struct tm *) 0)
8560 return 0;
8562 return 0;
8564 _ACEOF
8565 if ac_fn_cxx_try_compile "$LINENO"; then :
8566 ac_cv_header_time=yes
8567 else
8568 ac_cv_header_time=no
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8573 $as_echo "$ac_cv_header_time" >&6; }
8574 if test $ac_cv_header_time = yes; then
8576 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8581 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8582 if test "${gcc_cv_header_string+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #include <string.h>
8588 #include <strings.h>
8590 main ()
8594 return 0;
8596 _ACEOF
8597 if ac_fn_cxx_try_compile "$LINENO"; then :
8598 gcc_cv_header_string=yes
8599 else
8600 gcc_cv_header_string=no
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8605 $as_echo "$gcc_cv_header_string" >&6; }
8606 if test $gcc_cv_header_string = yes; then
8608 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8613 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8614 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/wait.h>
8621 #ifndef WEXITSTATUS
8622 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8623 #endif
8624 #ifndef WIFEXITED
8625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8626 #endif
8629 main ()
8631 int s;
8632 wait (&s);
8633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8635 return 0;
8637 _ACEOF
8638 if ac_fn_cxx_try_compile "$LINENO"; then :
8639 ac_cv_header_sys_wait_h=yes
8640 else
8641 ac_cv_header_sys_wait_h=no
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8646 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8647 if test $ac_cv_header_sys_wait_h = yes; then
8649 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8654 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8655 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <sys/types.h>
8661 #include <termios.h>
8662 #ifdef TIOCGWINSZ
8664 #endif
8666 _ACEOF
8667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8668 $EGREP "yes" >/dev/null 2>&1; then :
8669 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8670 else
8671 ac_cv_sys_tiocgwinsz_in_termios_h=no
8673 rm -f conftest*
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8677 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8679 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8681 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8682 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <sys/types.h>
8688 #include <sys/ioctl.h>
8689 #ifdef TIOCGWINSZ
8691 #endif
8693 _ACEOF
8694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8695 $EGREP "yes" >/dev/null 2>&1; then :
8696 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8697 else
8698 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8700 rm -f conftest*
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8704 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8706 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8708 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8713 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8714 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8715 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8716 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8717 do :
8718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8719 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8720 eval as_val=\$$as_ac_Header
8721 if test "x$as_val" = x""yes; then :
8722 cat >>confdefs.h <<_ACEOF
8723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8724 _ACEOF
8727 done
8730 # Check for thread headers.
8731 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8732 if test "x$ac_cv_header_thread_h" = x""yes; then :
8733 have_thread_h=yes
8734 else
8735 have_thread_h=
8738 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8739 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8740 have_pthread_h=yes
8741 else
8742 have_pthread_h=
8746 # These tests can't be done till we know if we have limits.h.
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8748 $as_echo_n "checking for CHAR_BIT... " >&6; }
8749 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #ifdef HAVE_LIMITS_H
8755 #include <limits.h>
8756 #endif
8757 #ifdef CHAR_BIT
8758 found
8759 #endif
8760 _ACEOF
8761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8762 $EGREP "found" >/dev/null 2>&1; then :
8763 gcc_cv_decl_char_bit=yes
8764 else
8765 gcc_cv_decl_char_bit=no
8767 rm -f conftest*
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8772 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8773 if test $gcc_cv_decl_char_bit = no; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8775 $as_echo_n "checking number of bits in a byte... " >&6; }
8776 if test "${gcc_cv_c_nbby+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8780 gcc_cv_c_nbby=
8781 while test $i -lt 65; do
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8786 main ()
8788 switch(0) {
8789 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8790 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8793 return 0;
8795 _ACEOF
8796 if ac_fn_cxx_try_compile "$LINENO"; then :
8797 gcc_cv_c_nbby=$i; break
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 i=`expr $i + 1`
8801 done
8802 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8806 $as_echo "$gcc_cv_c_nbby" >&6; }
8807 if test $gcc_cv_c_nbby = failed; then
8808 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8809 else
8811 cat >>confdefs.h <<_ACEOF
8812 #define CHAR_BIT $gcc_cv_c_nbby
8813 _ACEOF
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8819 if test "${ac_cv_c_bigendian+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8821 else
8822 ac_cv_c_bigendian=unknown
8823 # See if we're dealing with a universal compiler.
8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 #ifndef __APPLE_CC__
8827 not a universal capable compiler
8828 #endif
8829 typedef int dummy;
8831 _ACEOF
8832 if ac_fn_cxx_try_compile "$LINENO"; then :
8834 # Check for potential -arch flags. It is not universal unless
8835 # there are at least two -arch flags with different values.
8836 ac_arch=
8837 ac_prev=
8838 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8839 if test -n "$ac_prev"; then
8840 case $ac_word in
8841 i?86 | x86_64 | ppc | ppc64)
8842 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8843 ac_arch=$ac_word
8844 else
8845 ac_cv_c_bigendian=universal
8846 break
8849 esac
8850 ac_prev=
8851 elif test "x$ac_word" = "x-arch"; then
8852 ac_prev=arch
8854 done
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 if test $ac_cv_c_bigendian = unknown; then
8858 # See if sys/param.h defines the BYTE_ORDER macro.
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/param.h>
8865 main ()
8867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8868 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8869 && LITTLE_ENDIAN)
8870 bogus endian macros
8871 #endif
8874 return 0;
8876 _ACEOF
8877 if ac_fn_cxx_try_compile "$LINENO"; then :
8878 # It does; now see whether it defined to BIG_ENDIAN or not.
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <sys/types.h>
8882 #include <sys/param.h>
8885 main ()
8887 #if BYTE_ORDER != BIG_ENDIAN
8888 not big endian
8889 #endif
8892 return 0;
8894 _ACEOF
8895 if ac_fn_cxx_try_compile "$LINENO"; then :
8896 ac_cv_c_bigendian=yes
8897 else
8898 ac_cv_c_bigendian=no
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 if test $ac_cv_c_bigendian = unknown; then
8905 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #include <limits.h>
8911 main ()
8913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8914 bogus endian macros
8915 #endif
8918 return 0;
8920 _ACEOF
8921 if ac_fn_cxx_try_compile "$LINENO"; then :
8922 # It does; now see whether it defined to _BIG_ENDIAN or not.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <limits.h>
8928 main ()
8930 #ifndef _BIG_ENDIAN
8931 not big endian
8932 #endif
8935 return 0;
8937 _ACEOF
8938 if ac_fn_cxx_try_compile "$LINENO"; then :
8939 ac_cv_c_bigendian=yes
8940 else
8941 ac_cv_c_bigendian=no
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8947 if test $ac_cv_c_bigendian = unknown; then
8948 # Compile a test program.
8949 if test "$cross_compiling" = yes; then :
8950 # Try to guess by grepping values from an object file.
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 short int ascii_mm[] =
8954 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8955 short int ascii_ii[] =
8956 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8957 int use_ascii (int i) {
8958 return ascii_mm[i] + ascii_ii[i];
8960 short int ebcdic_ii[] =
8961 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8962 short int ebcdic_mm[] =
8963 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8964 int use_ebcdic (int i) {
8965 return ebcdic_mm[i] + ebcdic_ii[i];
8967 extern int foo;
8970 main ()
8972 return use_ascii (foo) == use_ebcdic (foo);
8974 return 0;
8976 _ACEOF
8977 if ac_fn_cxx_try_compile "$LINENO"; then :
8978 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8979 ac_cv_c_bigendian=yes
8981 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8982 if test "$ac_cv_c_bigendian" = unknown; then
8983 ac_cv_c_bigendian=no
8984 else
8985 # finding both strings is unlikely to happen, but who knows?
8986 ac_cv_c_bigendian=unknown
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 else
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 $ac_includes_default
8996 main ()
8999 /* Are we little or big endian? From Harbison&Steele. */
9000 union
9002 long int l;
9003 char c[sizeof (long int)];
9004 } u;
9005 u.l = 1;
9006 return u.c[sizeof (long int) - 1] == 1;
9009 return 0;
9011 _ACEOF
9012 if ac_fn_cxx_try_run "$LINENO"; then :
9013 ac_cv_c_bigendian=no
9014 else
9015 ac_cv_c_bigendian=yes
9017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9018 conftest.$ac_objext conftest.beam conftest.$ac_ext
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9024 $as_echo "$ac_cv_c_bigendian" >&6; }
9025 case $ac_cv_c_bigendian in #(
9026 yes)
9027 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9028 ;; #(
9030 ;; #(
9031 universal)
9033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9035 ;; #(
9037 as_fn_error "unknown endianness
9038 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9039 esac
9042 # ----------------------
9043 # Checks for C++ headers
9044 # ----------------------
9046 ac_ext=cpp
9047 ac_cpp='$CXXCPP $CPPFLAGS'
9048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9052 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9053 if test -z "$CXXCPP"; then
9054 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 # Double quotes because CXXCPP needs to be expanded
9058 for CXXCPP in "$CXX -E" "/lib/cpp"
9060 ac_preproc_ok=false
9061 for ac_cxx_preproc_warn_flag in '' yes
9063 # Use a header file that comes with gcc, so configuring glibc
9064 # with a fresh cross-compiler works.
9065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 # <limits.h> exists even on freestanding compilers.
9067 # On the NeXT, cc -E runs the code through the compiler's parser,
9068 # not just through cpp. "Syntax error" is here to catch this case.
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #ifdef __STDC__
9072 # include <limits.h>
9073 #else
9074 # include <assert.h>
9075 #endif
9076 Syntax error
9077 _ACEOF
9078 if ac_fn_cxx_try_cpp "$LINENO"; then :
9080 else
9081 # Broken: fails on valid input.
9082 continue
9084 rm -f conftest.err conftest.$ac_ext
9086 # OK, works on sane cases. Now check whether nonexistent headers
9087 # can be detected and how.
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <ac_nonexistent.h>
9091 _ACEOF
9092 if ac_fn_cxx_try_cpp "$LINENO"; then :
9093 # Broken: success on invalid input.
9094 continue
9095 else
9096 # Passes both tests.
9097 ac_preproc_ok=:
9098 break
9100 rm -f conftest.err conftest.$ac_ext
9102 done
9103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9104 rm -f conftest.err conftest.$ac_ext
9105 if $ac_preproc_ok; then :
9106 break
9109 done
9110 ac_cv_prog_CXXCPP=$CXXCPP
9113 CXXCPP=$ac_cv_prog_CXXCPP
9114 else
9115 ac_cv_prog_CXXCPP=$CXXCPP
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9118 $as_echo "$CXXCPP" >&6; }
9119 ac_preproc_ok=false
9120 for ac_cxx_preproc_warn_flag in '' yes
9122 # Use a header file that comes with gcc, so configuring glibc
9123 # with a fresh cross-compiler works.
9124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9125 # <limits.h> exists even on freestanding compilers.
9126 # On the NeXT, cc -E runs the code through the compiler's parser,
9127 # not just through cpp. "Syntax error" is here to catch this case.
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130 #ifdef __STDC__
9131 # include <limits.h>
9132 #else
9133 # include <assert.h>
9134 #endif
9135 Syntax error
9136 _ACEOF
9137 if ac_fn_cxx_try_cpp "$LINENO"; then :
9139 else
9140 # Broken: fails on valid input.
9141 continue
9143 rm -f conftest.err conftest.$ac_ext
9145 # OK, works on sane cases. Now check whether nonexistent headers
9146 # can be detected and how.
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 #include <ac_nonexistent.h>
9150 _ACEOF
9151 if ac_fn_cxx_try_cpp "$LINENO"; then :
9152 # Broken: success on invalid input.
9153 continue
9154 else
9155 # Passes both tests.
9156 ac_preproc_ok=:
9157 break
9159 rm -f conftest.err conftest.$ac_ext
9161 done
9162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9163 rm -f conftest.err conftest.$ac_ext
9164 if $ac_preproc_ok; then :
9166 else
9167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9170 See \`config.log' for more details." >&5
9171 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9172 See \`config.log' for more details." >&2;}; }
9175 ac_ext=cpp
9176 ac_cpp='$CXXCPP $CPPFLAGS'
9177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9182 for ac_header in unordered_map
9183 do :
9184 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9185 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_UNORDERED_MAP 1
9188 _ACEOF
9191 done
9193 for ac_header in tr1/unordered_map
9194 do :
9195 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9196 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_TR1_UNORDERED_MAP 1
9199 _ACEOF
9202 done
9204 for ac_header in ext/hash_map
9205 do :
9206 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9207 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9208 cat >>confdefs.h <<_ACEOF
9209 #define HAVE_EXT_HASH_MAP 1
9210 _ACEOF
9213 done
9216 # --------
9217 # Dependency checking.
9218 # --------
9220 rm -rf .tst 2>/dev/null
9221 mkdir .tst 2>/dev/null
9222 if test -d .tst; then
9223 am__leading_dot=.
9224 else
9225 am__leading_dot=_
9227 rmdir .tst 2>/dev/null
9229 DEPDIR="${am__leading_dot}deps"
9231 ac_config_commands="$ac_config_commands depdir"
9234 ac_config_commands="$ac_config_commands gccdepdir"
9237 depcc="$CXX" am_compiler_list=
9239 am_depcomp=$ac_aux_dir/depcomp
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9241 $as_echo_n "checking dependency style of $depcc... " >&6; }
9242 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 if test -f "$am_depcomp"; then
9246 # We make a subdir and do the tests there. Otherwise we can end up
9247 # making bogus files that we don't know about and never remove. For
9248 # instance it was reported that on HP-UX the gcc test will end up
9249 # making a dummy file named `D' -- because `-MD' means `put the output
9250 # in D'.
9251 mkdir conftest.dir
9252 # Copy depcomp to subdir because otherwise we won't find it if we're
9253 # using a relative directory.
9254 cp "$am_depcomp" conftest.dir
9255 cd conftest.dir
9256 # We will build objects and dependencies in a subdirectory because
9257 # it helps to detect inapplicable dependency modes. For instance
9258 # both Tru64's cc and ICC support -MD to output dependencies as a
9259 # side effect of compilation, but ICC will put the dependencies in
9260 # the current directory while Tru64 will put them in the object
9261 # directory.
9262 mkdir sub
9264 am_cv_CXX_dependencies_compiler_type=none
9265 if test "$am_compiler_list" = ""; then
9266 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9268 for depmode in $am_compiler_list; do
9269 if test $depmode = none; then break; fi
9271 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9272 # Setup a source with many dependencies, because some compilers
9273 # like to wrap large dependency lists on column 80 (with \), and
9274 # we should not choose a depcomp mode which is confused by this.
9276 # We need to recreate these files for each test, as the compiler may
9277 # overwrite some of them when testing with obscure command lines.
9278 # This happens at least with the AIX C compiler.
9279 : > sub/conftest.c
9280 for i in 1 2 3 4 5 6; do
9281 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9282 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9283 # Solaris 8's {/usr,}/bin/sh.
9284 touch sub/conftst$i.h
9285 done
9286 echo "include sub/conftest.Po" > confmf
9288 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9289 # mode. It turns out that the SunPro C++ compiler does not properly
9290 # handle `-M -o', and we need to detect this.
9291 depcmd="depmode=$depmode \
9292 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9294 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9295 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9296 if env $depcmd > conftest.err 2>&1 &&
9297 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9298 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9299 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9300 # icc doesn't choke on unknown options, it will just issue warnings
9301 # or remarks (even with -Werror). So we grep stderr for any message
9302 # that says an option was ignored or not supported.
9303 # When given -MP, icc 7.0 and 7.1 complain thusly:
9304 # icc: Command line warning: ignoring option '-M'; no argument required
9305 # The diagnosis changed in icc 8.0:
9306 # icc: Command line remark: option '-MP' not supported
9307 if (grep 'ignoring option' conftest.err ||
9308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9309 am_cv_CXX_dependencies_compiler_type=$depmode
9310 $as_echo "$as_me:$LINENO: success" >&5
9311 break
9314 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9315 sed -e 's/^/| /' < conftest.err >&5
9316 done
9318 cd ..
9319 rm -rf conftest.dir
9320 else
9321 am_cv_CXX_dependencies_compiler_type=none
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9326 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9327 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9328 then as_fn_error "no usable dependency style found" "$LINENO" 5
9329 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9334 # --------
9335 # UNSORTED
9336 # --------
9339 # These libraries may be used by collect2.
9340 # We may need a special search path to get them linked.
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9342 $as_echo_n "checking for collect2 libraries... " >&6; }
9343 if test "${gcc_cv_collect2_libs+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 save_LIBS="$LIBS"
9347 for libs in '' -lld -lmld \
9348 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9349 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9351 LIBS="$libs"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char ldopen ();
9363 main ()
9365 return ldopen ();
9367 return 0;
9369 _ACEOF
9370 if ac_fn_cxx_try_link "$LINENO"; then :
9371 gcc_cv_collect2_libs="$libs"; break
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 done
9376 LIBS="$save_LIBS"
9377 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9380 $as_echo "$gcc_cv_collect2_libs" >&6; }
9381 case $gcc_cv_collect2_libs in
9382 "none required") ;;
9383 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9384 esac
9387 # When building Ada code on Alpha, we need exc_resume which is usually in
9388 # -lexc. So test for it.
9389 save_LIBS="$LIBS"
9390 LIBS=
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9392 $as_echo_n "checking for library containing exc_resume... " >&6; }
9393 if test "${ac_cv_search_exc_resume+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 ac_func_search_save_LIBS=$LIBS
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 char exc_resume ();
9408 main ()
9410 return exc_resume ();
9412 return 0;
9414 _ACEOF
9415 for ac_lib in '' exc; do
9416 if test -z "$ac_lib"; then
9417 ac_res="none required"
9418 else
9419 ac_res=-l$ac_lib
9420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9422 if ac_fn_cxx_try_link "$LINENO"; then :
9423 ac_cv_search_exc_resume=$ac_res
9425 rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext
9427 if test "${ac_cv_search_exc_resume+set}" = set; then :
9428 break
9430 done
9431 if test "${ac_cv_search_exc_resume+set}" = set; then :
9433 else
9434 ac_cv_search_exc_resume=no
9436 rm conftest.$ac_ext
9437 LIBS=$ac_func_search_save_LIBS
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9440 $as_echo "$ac_cv_search_exc_resume" >&6; }
9441 ac_res=$ac_cv_search_exc_resume
9442 if test "$ac_res" != no; then :
9443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9447 GNAT_LIBEXC="$LIBS"
9448 LIBS="$save_LIBS"
9451 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9452 save_LIBS="$LIBS"
9453 LIBS=
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9455 $as_echo_n "checking for library containing kstat_open... " >&6; }
9456 if test "${ac_cv_search_kstat_open+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 ac_func_search_save_LIBS=$LIBS
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char kstat_open ();
9471 main ()
9473 return kstat_open ();
9475 return 0;
9477 _ACEOF
9478 for ac_lib in '' kstat; do
9479 if test -z "$ac_lib"; then
9480 ac_res="none required"
9481 else
9482 ac_res=-l$ac_lib
9483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9485 if ac_fn_cxx_try_link "$LINENO"; then :
9486 ac_cv_search_kstat_open=$ac_res
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext
9490 if test "${ac_cv_search_kstat_open+set}" = set; then :
9491 break
9493 done
9494 if test "${ac_cv_search_kstat_open+set}" = set; then :
9496 else
9497 ac_cv_search_kstat_open=no
9499 rm conftest.$ac_ext
9500 LIBS=$ac_func_search_save_LIBS
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9503 $as_echo "$ac_cv_search_kstat_open" >&6; }
9504 ac_res=$ac_cv_search_kstat_open
9505 if test "$ac_res" != no; then :
9506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9510 EXTRA_GCC_LIBS="$LIBS"
9511 LIBS="$save_LIBS"
9514 # Some systems put ldexp and frexp in libm instead of libc; assume
9515 # they're both in the same place. jcf-dump needs them.
9516 save_LIBS="$LIBS"
9517 LIBS=
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9519 $as_echo_n "checking for library containing ldexp... " >&6; }
9520 if test "${ac_cv_search_ldexp+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 ac_func_search_save_LIBS=$LIBS
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char ldexp ();
9535 main ()
9537 return ldexp ();
9539 return 0;
9541 _ACEOF
9542 for ac_lib in '' m; do
9543 if test -z "$ac_lib"; then
9544 ac_res="none required"
9545 else
9546 ac_res=-l$ac_lib
9547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9549 if ac_fn_cxx_try_link "$LINENO"; then :
9550 ac_cv_search_ldexp=$ac_res
9552 rm -f core conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext
9554 if test "${ac_cv_search_ldexp+set}" = set; then :
9555 break
9557 done
9558 if test "${ac_cv_search_ldexp+set}" = set; then :
9560 else
9561 ac_cv_search_ldexp=no
9563 rm conftest.$ac_ext
9564 LIBS=$ac_func_search_save_LIBS
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9567 $as_echo "$ac_cv_search_ldexp" >&6; }
9568 ac_res=$ac_cv_search_ldexp
9569 if test "$ac_res" != no; then :
9570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9574 LDEXP_LIB="$LIBS"
9575 LIBS="$save_LIBS"
9578 # Use <inttypes.h> only if it exists,
9579 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9580 # PRId64
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9582 $as_echo_n "checking for inttypes.h... " >&6; }
9583 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9585 else
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 #define __STDC_FORMAT_MACROS
9589 #include <sys/types.h>
9590 #include <inttypes.h>
9592 main ()
9594 intmax_t i = -1;
9595 #ifndef PRId64
9596 choke me
9597 #endif
9599 return 0;
9601 _ACEOF
9602 if ac_fn_cxx_try_compile "$LINENO"; then :
9603 gcc_cv_header_inttypes_h=yes
9604 else
9605 gcc_cv_header_inttypes_h=no
9607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9611 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9612 if test $gcc_cv_header_inttypes_h = yes; then
9614 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9620 for ac_func in times clock kill getrlimit setrlimit atoq \
9621 popen sysconf strsignal getrusage nl_langinfo \
9622 gettimeofday mbstowcs wcswidth mmap setlocale \
9623 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
9624 do :
9625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9626 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9627 eval as_val=\$$as_ac_var
9628 if test "x$as_val" = x""yes; then :
9629 cat >>confdefs.h <<_ACEOF
9630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9631 _ACEOF
9634 done
9637 if test x$ac_cv_func_mbstowcs = xyes; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9639 $as_echo_n "checking whether mbstowcs works... " >&6; }
9640 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 if test "$cross_compiling" = yes; then :
9644 gcc_cv_func_mbstowcs_works=yes
9645 else
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 #include <stdlib.h>
9649 int main()
9651 mbstowcs(0, "", 0);
9652 return 0;
9654 _ACEOF
9655 if ac_fn_cxx_try_run "$LINENO"; then :
9656 gcc_cv_func_mbstowcs_works=yes
9657 else
9658 gcc_cv_func_mbstowcs_works=no
9660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9661 conftest.$ac_objext conftest.beam conftest.$ac_ext
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9666 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9667 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9669 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9674 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9675 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9677 else
9679 cat >>confdefs.h <<_ACEOF
9680 #define ssize_t int
9681 _ACEOF
9685 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9686 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9688 else
9690 cat >>confdefs.h <<_ACEOF
9691 #define caddr_t char *
9692 _ACEOF
9698 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9699 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9700 gcc_header_sys_mman_h=yes
9701 else
9702 gcc_header_sys_mman_h=no
9705 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9706 if test "x$ac_cv_func_mmap" = x""yes; then :
9707 gcc_func_mmap=yes
9708 else
9709 gcc_func_mmap=no
9712 if test "$gcc_header_sys_mman_h" != yes \
9713 || test "$gcc_func_mmap" != yes; then
9714 gcc_cv_func_mmap_file=no
9715 gcc_cv_func_mmap_dev_zero=no
9716 gcc_cv_func_mmap_anon=no
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9719 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9720 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 # Add a system to this blacklist if
9724 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9725 # memory area containing the same data that you'd get if you applied
9726 # read() to the same fd. The only system known to have a problem here
9727 # is VMS, where text files have record structure.
9728 case "$host_os" in
9729 *vms* | ultrix*)
9730 gcc_cv_func_mmap_file=no ;;
9732 gcc_cv_func_mmap_file=yes;;
9733 esac
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9736 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9738 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9739 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 # Add a system to this blacklist if it has mmap() but /dev/zero
9743 # does not exist, or if mmapping /dev/zero does not give anonymous
9744 # zeroed pages with both the following properties:
9745 # 1. If you map N consecutive pages in with one call, and then
9746 # unmap any subset of those pages, the pages that were not
9747 # explicitly unmapped remain accessible.
9748 # 2. If you map two adjacent blocks of memory and then unmap them
9749 # both at once, they must both go away.
9750 # Systems known to be in this category are Windows (all variants),
9751 # VMS, and Darwin.
9752 case "$host_os" in
9753 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9754 gcc_cv_func_mmap_dev_zero=no ;;
9756 gcc_cv_func_mmap_dev_zero=yes;;
9757 esac
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9760 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9762 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9764 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9765 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 #include <sys/types.h>
9771 #include <sys/mman.h>
9772 #include <unistd.h>
9774 #ifndef MAP_ANONYMOUS
9775 #define MAP_ANONYMOUS MAP_ANON
9776 #endif
9779 main ()
9781 int n = MAP_ANONYMOUS;
9783 return 0;
9785 _ACEOF
9786 if ac_fn_cxx_try_compile "$LINENO"; then :
9787 gcc_cv_decl_map_anon=yes
9788 else
9789 gcc_cv_decl_map_anon=no
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9794 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9796 if test $gcc_cv_decl_map_anon = no; then
9797 gcc_cv_func_mmap_anon=no
9798 else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9800 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9801 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9805 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9806 # doesn't give anonymous zeroed pages with the same properties listed
9807 # above for use of /dev/zero.
9808 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9809 case "$host_os" in
9810 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9811 gcc_cv_func_mmap_anon=no ;;
9813 gcc_cv_func_mmap_anon=yes;;
9814 esac
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9817 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9821 if test $gcc_cv_func_mmap_file = yes; then
9823 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9826 if test $gcc_cv_func_mmap_dev_zero = yes; then
9828 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9831 if test $gcc_cv_func_mmap_anon = yes; then
9833 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9838 case "${host}" in
9839 *-*-*vms*)
9840 # Under VMS, vfork works very differently than on Unix. The standard test
9841 # won't work, and it isn't easily adaptable. It makes more sense to
9842 # just force it.
9843 ac_cv_func_vfork_works=yes
9845 esac
9846 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9847 if test "x$ac_cv_type_pid_t" = x""yes; then :
9849 else
9851 cat >>confdefs.h <<_ACEOF
9852 #define pid_t int
9853 _ACEOF
9857 for ac_header in vfork.h
9858 do :
9859 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9860 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9861 cat >>confdefs.h <<_ACEOF
9862 #define HAVE_VFORK_H 1
9863 _ACEOF
9866 done
9868 for ac_func in fork vfork
9869 do :
9870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9871 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9872 eval as_val=\$$as_ac_var
9873 if test "x$as_val" = x""yes; then :
9874 cat >>confdefs.h <<_ACEOF
9875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876 _ACEOF
9879 done
9881 if test "x$ac_cv_func_fork" = xyes; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9883 $as_echo_n "checking for working fork... " >&6; }
9884 if test "${ac_cv_func_fork_works+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 if test "$cross_compiling" = yes; then :
9888 ac_cv_func_fork_works=cross
9889 else
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 $ac_includes_default
9894 main ()
9897 /* By Ruediger Kuhlmann. */
9898 return fork () < 0;
9901 return 0;
9903 _ACEOF
9904 if ac_fn_cxx_try_run "$LINENO"; then :
9905 ac_cv_func_fork_works=yes
9906 else
9907 ac_cv_func_fork_works=no
9909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9910 conftest.$ac_objext conftest.beam conftest.$ac_ext
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9915 $as_echo "$ac_cv_func_fork_works" >&6; }
9917 else
9918 ac_cv_func_fork_works=$ac_cv_func_fork
9920 if test "x$ac_cv_func_fork_works" = xcross; then
9921 case $host in
9922 *-*-amigaos* | *-*-msdosdjgpp*)
9923 # Override, as these systems have only a dummy fork() stub
9924 ac_cv_func_fork_works=no
9927 ac_cv_func_fork_works=yes
9929 esac
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9931 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9933 ac_cv_func_vfork_works=$ac_cv_func_vfork
9934 if test "x$ac_cv_func_vfork" = xyes; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9936 $as_echo_n "checking for working vfork... " >&6; }
9937 if test "${ac_cv_func_vfork_works+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 if test "$cross_compiling" = yes; then :
9941 ac_cv_func_vfork_works=cross
9942 else
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 /* Thanks to Paul Eggert for this test. */
9946 $ac_includes_default
9947 #include <sys/wait.h>
9948 #ifdef HAVE_VFORK_H
9949 # include <vfork.h>
9950 #endif
9951 /* On some sparc systems, changes by the child to local and incoming
9952 argument registers are propagated back to the parent. The compiler
9953 is told about this with #include <vfork.h>, but some compilers
9954 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9955 static variable whose address is put into a register that is
9956 clobbered by the vfork. */
9957 static void
9958 #ifdef __cplusplus
9959 sparc_address_test (int arg)
9960 # else
9961 sparc_address_test (arg) int arg;
9962 #endif
9964 static pid_t child;
9965 if (!child) {
9966 child = vfork ();
9967 if (child < 0) {
9968 perror ("vfork");
9969 _exit(2);
9971 if (!child) {
9972 arg = getpid();
9973 write(-1, "", 0);
9974 _exit (arg);
9980 main ()
9982 pid_t parent = getpid ();
9983 pid_t child;
9985 sparc_address_test (0);
9987 child = vfork ();
9989 if (child == 0) {
9990 /* Here is another test for sparc vfork register problems. This
9991 test uses lots of local variables, at least as many local
9992 variables as main has allocated so far including compiler
9993 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9994 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9995 reuse the register of parent for one of the local variables,
9996 since it will think that parent can't possibly be used any more
9997 in this routine. Assigning to the local variable will thus
9998 munge parent in the parent process. */
9999 pid_t
10000 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10001 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10002 /* Convince the compiler that p..p7 are live; otherwise, it might
10003 use the same hardware register for all 8 local variables. */
10004 if (p != p1 || p != p2 || p != p3 || p != p4
10005 || p != p5 || p != p6 || p != p7)
10006 _exit(1);
10008 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10009 from child file descriptors. If the child closes a descriptor
10010 before it execs or exits, this munges the parent's descriptor
10011 as well. Test for this by closing stdout in the child. */
10012 _exit(close(fileno(stdout)) != 0);
10013 } else {
10014 int status;
10015 struct stat st;
10017 while (wait(&status) != child)
10019 return (
10020 /* Was there some problem with vforking? */
10021 child < 0
10023 /* Did the child fail? (This shouldn't happen.) */
10024 || status
10026 /* Did the vfork/compiler bug occur? */
10027 || parent != getpid()
10029 /* Did the file descriptor bug occur? */
10030 || fstat(fileno(stdout), &st) != 0
10034 _ACEOF
10035 if ac_fn_cxx_try_run "$LINENO"; then :
10036 ac_cv_func_vfork_works=yes
10037 else
10038 ac_cv_func_vfork_works=no
10040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10041 conftest.$ac_objext conftest.beam conftest.$ac_ext
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10046 $as_echo "$ac_cv_func_vfork_works" >&6; }
10049 if test "x$ac_cv_func_fork_works" = xcross; then
10050 ac_cv_func_vfork_works=$ac_cv_func_vfork
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10052 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10055 if test "x$ac_cv_func_vfork_works" = xyes; then
10057 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10059 else
10061 $as_echo "#define vfork fork" >>confdefs.h
10064 if test "x$ac_cv_func_fork_works" = xyes; then
10066 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10072 if test "X$prefix" = "XNONE"; then
10073 acl_final_prefix="$ac_default_prefix"
10074 else
10075 acl_final_prefix="$prefix"
10077 if test "X$exec_prefix" = "XNONE"; then
10078 acl_final_exec_prefix='${prefix}'
10079 else
10080 acl_final_exec_prefix="$exec_prefix"
10082 acl_save_prefix="$prefix"
10083 prefix="$acl_final_prefix"
10084 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10085 prefix="$acl_save_prefix"
10088 # Check whether --with-gnu-ld was given.
10089 if test "${with_gnu_ld+set}" = set; then :
10090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10091 else
10092 with_gnu_ld=no
10095 # Prepare PATH_SEPARATOR.
10096 # The user is always right.
10097 if test "${PATH_SEPARATOR+set}" != set; then
10098 echo "#! /bin/sh" >conf$$.sh
10099 echo "exit 0" >>conf$$.sh
10100 chmod +x conf$$.sh
10101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10102 PATH_SEPARATOR=';'
10103 else
10104 PATH_SEPARATOR=:
10106 rm -f conf$$.sh
10108 ac_prog=ld
10109 if test "$GCC" = yes; then
10110 # Check if gcc -print-prog-name=ld gives a path.
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10112 $as_echo_n "checking for ld used by GCC... " >&6; }
10113 case $host in
10114 *-*-mingw*)
10115 # gcc leaves a trailing carriage return which upsets mingw
10116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10119 esac
10120 case $ac_prog in
10121 # Accept absolute paths.
10122 [\\/]* | [A-Za-z]:[\\/]*)
10123 re_direlt='/[^/][^/]*/\.\./'
10124 # Canonicalize the path of ld
10125 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10127 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10128 done
10129 test -z "$LD" && LD="$ac_prog"
10132 # If it fails, then pretend we aren't using GCC.
10133 ac_prog=ld
10136 # If it is relative, then search for the first ld in PATH.
10137 with_gnu_ld=unknown
10139 esac
10140 elif test "$with_gnu_ld" = yes; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10142 $as_echo_n "checking for GNU ld... " >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10145 $as_echo_n "checking for non-GNU ld... " >&6; }
10147 if test "${acl_cv_path_LD+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 if test -z "$LD"; then
10151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10152 for ac_dir in $PATH; do
10153 test -z "$ac_dir" && ac_dir=.
10154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10155 acl_cv_path_LD="$ac_dir/$ac_prog"
10156 # Check to see if the program is GNU ld. I'd rather use --version,
10157 # but apparently some GNU ld's only accept -v.
10158 # Break only if it was the GNU/non-GNU ld that we prefer.
10159 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10160 test "$with_gnu_ld" != no && break
10161 else
10162 test "$with_gnu_ld" != yes && break
10165 done
10166 IFS="$ac_save_ifs"
10167 else
10168 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10172 LD="$acl_cv_path_LD"
10173 if test -n "$LD"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10175 $as_echo "$LD" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10180 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10183 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10187 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10188 acl_cv_prog_gnu_ld=yes
10189 else
10190 acl_cv_prog_gnu_ld=no
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10194 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10195 with_gnu_ld=$acl_cv_prog_gnu_ld
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10200 $as_echo_n "checking for shared library run path origin... " >&6; }
10201 if test "${acl_cv_rpath+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10205 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10206 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10207 . ./conftest.sh
10208 rm -f ./conftest.sh
10209 acl_cv_rpath=done
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10213 $as_echo "$acl_cv_rpath" >&6; }
10214 wl="$acl_cv_wl"
10215 libext="$acl_cv_libext"
10216 shlibext="$acl_cv_shlibext"
10217 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10218 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10219 hardcode_direct="$acl_cv_hardcode_direct"
10220 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10221 # Check whether --enable-rpath was given.
10222 if test "${enable_rpath+set}" = set; then :
10223 enableval=$enable_rpath; :
10224 else
10225 enable_rpath=yes
10235 use_additional=yes
10237 acl_save_prefix="$prefix"
10238 prefix="$acl_final_prefix"
10239 acl_save_exec_prefix="$exec_prefix"
10240 exec_prefix="$acl_final_exec_prefix"
10242 eval additional_includedir=\"$includedir\"
10243 eval additional_libdir=\"$libdir\"
10245 exec_prefix="$acl_save_exec_prefix"
10246 prefix="$acl_save_prefix"
10249 # Check whether --with-libiconv-prefix was given.
10250 if test "${with_libiconv_prefix+set}" = set; then :
10251 withval=$with_libiconv_prefix;
10252 if test "X$withval" = "Xno"; then
10253 use_additional=no
10254 else
10255 if test "X$withval" = "X"; then
10257 acl_save_prefix="$prefix"
10258 prefix="$acl_final_prefix"
10259 acl_save_exec_prefix="$exec_prefix"
10260 exec_prefix="$acl_final_exec_prefix"
10262 eval additional_includedir=\"$includedir\"
10263 eval additional_libdir=\"$libdir\"
10265 exec_prefix="$acl_save_exec_prefix"
10266 prefix="$acl_save_prefix"
10268 else
10269 additional_includedir="$withval/include"
10270 additional_libdir="$withval/lib"
10276 LIBICONV=
10277 LTLIBICONV=
10278 INCICONV=
10279 rpathdirs=
10280 ltrpathdirs=
10281 names_already_handled=
10282 names_next_round='iconv '
10283 while test -n "$names_next_round"; do
10284 names_this_round="$names_next_round"
10285 names_next_round=
10286 for name in $names_this_round; do
10287 already_handled=
10288 for n in $names_already_handled; do
10289 if test "$n" = "$name"; then
10290 already_handled=yes
10291 break
10293 done
10294 if test -z "$already_handled"; then
10295 names_already_handled="$names_already_handled $name"
10296 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10297 eval value=\"\$HAVE_LIB$uppername\"
10298 if test -n "$value"; then
10299 if test "$value" = yes; then
10300 eval value=\"\$LIB$uppername\"
10301 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10302 eval value=\"\$LTLIB$uppername\"
10303 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10304 else
10307 else
10308 found_dir=
10309 found_la=
10310 found_so=
10311 found_a=
10312 if test $use_additional = yes; then
10313 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10314 found_dir="$additional_libdir"
10315 found_so="$additional_libdir/lib$name.$shlibext"
10316 if test -f "$additional_libdir/lib$name.la"; then
10317 found_la="$additional_libdir/lib$name.la"
10319 else
10320 if test -f "$additional_libdir/lib$name.$libext"; then
10321 found_dir="$additional_libdir"
10322 found_a="$additional_libdir/lib$name.$libext"
10323 if test -f "$additional_libdir/lib$name.la"; then
10324 found_la="$additional_libdir/lib$name.la"
10329 if test "X$found_dir" = "X"; then
10330 for x in $LDFLAGS $LTLIBICONV; do
10332 acl_save_prefix="$prefix"
10333 prefix="$acl_final_prefix"
10334 acl_save_exec_prefix="$exec_prefix"
10335 exec_prefix="$acl_final_exec_prefix"
10336 eval x=\"$x\"
10337 exec_prefix="$acl_save_exec_prefix"
10338 prefix="$acl_save_prefix"
10340 case "$x" in
10341 -L*)
10342 dir=`echo "X$x" | sed -e 's/^X-L//'`
10343 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10344 found_dir="$dir"
10345 found_so="$dir/lib$name.$shlibext"
10346 if test -f "$dir/lib$name.la"; then
10347 found_la="$dir/lib$name.la"
10349 else
10350 if test -f "$dir/lib$name.$libext"; then
10351 found_dir="$dir"
10352 found_a="$dir/lib$name.$libext"
10353 if test -f "$dir/lib$name.la"; then
10354 found_la="$dir/lib$name.la"
10359 esac
10360 if test "X$found_dir" != "X"; then
10361 break
10363 done
10365 if test "X$found_dir" != "X"; then
10366 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10367 if test "X$found_so" != "X"; then
10368 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10369 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10370 else
10371 haveit=
10372 for x in $ltrpathdirs; do
10373 if test "X$x" = "X$found_dir"; then
10374 haveit=yes
10375 break
10377 done
10378 if test -z "$haveit"; then
10379 ltrpathdirs="$ltrpathdirs $found_dir"
10381 if test "$hardcode_direct" = yes; then
10382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10383 else
10384 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10386 haveit=
10387 for x in $rpathdirs; do
10388 if test "X$x" = "X$found_dir"; then
10389 haveit=yes
10390 break
10392 done
10393 if test -z "$haveit"; then
10394 rpathdirs="$rpathdirs $found_dir"
10396 else
10397 haveit=
10398 for x in $LDFLAGS $LIBICONV; do
10400 acl_save_prefix="$prefix"
10401 prefix="$acl_final_prefix"
10402 acl_save_exec_prefix="$exec_prefix"
10403 exec_prefix="$acl_final_exec_prefix"
10404 eval x=\"$x\"
10405 exec_prefix="$acl_save_exec_prefix"
10406 prefix="$acl_save_prefix"
10408 if test "X$x" = "X-L$found_dir"; then
10409 haveit=yes
10410 break
10412 done
10413 if test -z "$haveit"; then
10414 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10416 if test "$hardcode_minus_L" != no; then
10417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10418 else
10419 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10424 else
10425 if test "X$found_a" != "X"; then
10426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10427 else
10428 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10431 additional_includedir=
10432 case "$found_dir" in
10433 */lib | */lib/)
10434 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10435 additional_includedir="$basedir/include"
10437 esac
10438 if test "X$additional_includedir" != "X"; then
10439 if test "X$additional_includedir" != "X/usr/include"; then
10440 haveit=
10441 if test "X$additional_includedir" = "X/usr/local/include"; then
10442 if test -n "$GCC"; then
10443 case $host_os in
10444 linux*) haveit=yes;;
10445 esac
10448 if test -z "$haveit"; then
10449 for x in $CPPFLAGS $INCICONV; do
10451 acl_save_prefix="$prefix"
10452 prefix="$acl_final_prefix"
10453 acl_save_exec_prefix="$exec_prefix"
10454 exec_prefix="$acl_final_exec_prefix"
10455 eval x=\"$x\"
10456 exec_prefix="$acl_save_exec_prefix"
10457 prefix="$acl_save_prefix"
10459 if test "X$x" = "X-I$additional_includedir"; then
10460 haveit=yes
10461 break
10463 done
10464 if test -z "$haveit"; then
10465 if test -d "$additional_includedir"; then
10466 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10472 if test -n "$found_la"; then
10473 save_libdir="$libdir"
10474 case "$found_la" in
10475 */* | *\\*) . "$found_la" ;;
10476 *) . "./$found_la" ;;
10477 esac
10478 libdir="$save_libdir"
10479 for dep in $dependency_libs; do
10480 case "$dep" in
10481 -L*)
10482 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10483 if test "X$additional_libdir" != "X/usr/lib"; then
10484 haveit=
10485 if test "X$additional_libdir" = "X/usr/local/lib"; then
10486 if test -n "$GCC"; then
10487 case $host_os in
10488 linux*) haveit=yes;;
10489 esac
10492 if test -z "$haveit"; then
10493 haveit=
10494 for x in $LDFLAGS $LIBICONV; do
10496 acl_save_prefix="$prefix"
10497 prefix="$acl_final_prefix"
10498 acl_save_exec_prefix="$exec_prefix"
10499 exec_prefix="$acl_final_exec_prefix"
10500 eval x=\"$x\"
10501 exec_prefix="$acl_save_exec_prefix"
10502 prefix="$acl_save_prefix"
10504 if test "X$x" = "X-L$additional_libdir"; then
10505 haveit=yes
10506 break
10508 done
10509 if test -z "$haveit"; then
10510 if test -d "$additional_libdir"; then
10511 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10514 haveit=
10515 for x in $LDFLAGS $LTLIBICONV; do
10517 acl_save_prefix="$prefix"
10518 prefix="$acl_final_prefix"
10519 acl_save_exec_prefix="$exec_prefix"
10520 exec_prefix="$acl_final_exec_prefix"
10521 eval x=\"$x\"
10522 exec_prefix="$acl_save_exec_prefix"
10523 prefix="$acl_save_prefix"
10525 if test "X$x" = "X-L$additional_libdir"; then
10526 haveit=yes
10527 break
10529 done
10530 if test -z "$haveit"; then
10531 if test -d "$additional_libdir"; then
10532 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10538 -R*)
10539 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10540 if test "$enable_rpath" != no; then
10541 haveit=
10542 for x in $rpathdirs; do
10543 if test "X$x" = "X$dir"; then
10544 haveit=yes
10545 break
10547 done
10548 if test -z "$haveit"; then
10549 rpathdirs="$rpathdirs $dir"
10551 haveit=
10552 for x in $ltrpathdirs; do
10553 if test "X$x" = "X$dir"; then
10554 haveit=yes
10555 break
10557 done
10558 if test -z "$haveit"; then
10559 ltrpathdirs="$ltrpathdirs $dir"
10563 -l*)
10564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10566 *.la)
10567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10570 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10573 esac
10574 done
10576 else
10577 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10578 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10582 done
10583 done
10584 if test "X$rpathdirs" != "X"; then
10585 if test -n "$hardcode_libdir_separator"; then
10586 alldirs=
10587 for found_dir in $rpathdirs; do
10588 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10589 done
10590 acl_save_libdir="$libdir"
10591 libdir="$alldirs"
10592 eval flag=\"$hardcode_libdir_flag_spec\"
10593 libdir="$acl_save_libdir"
10594 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10595 else
10596 for found_dir in $rpathdirs; do
10597 acl_save_libdir="$libdir"
10598 libdir="$found_dir"
10599 eval flag=\"$hardcode_libdir_flag_spec\"
10600 libdir="$acl_save_libdir"
10601 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10602 done
10605 if test "X$ltrpathdirs" != "X"; then
10606 for found_dir in $ltrpathdirs; do
10607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10608 done
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10618 $as_echo_n "checking for iconv... " >&6; }
10619 if test "${am_cv_func_iconv+set}" = set; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10623 am_cv_func_iconv="no, consider installing GNU libiconv"
10624 am_cv_lib_iconv=no
10625 am_save_CPPFLAGS="$CPPFLAGS"
10626 CPPFLAGS="$CPPFLAGS $INCICONV"
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 #include <stdlib.h>
10630 #include <iconv.h>
10632 main ()
10634 iconv_t cd = iconv_open("","");
10635 iconv(cd,NULL,NULL,NULL,NULL);
10636 iconv_close(cd);
10638 return 0;
10640 _ACEOF
10641 if ac_fn_cxx_try_link "$LINENO"; then :
10642 am_cv_func_iconv=yes
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 CPPFLAGS="$am_save_CPPFLAGS"
10648 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10649 for _libs in .libs _libs; do
10650 am_save_CPPFLAGS="$CPPFLAGS"
10651 am_save_LIBS="$LIBS"
10652 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10653 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10656 #include <stdlib.h>
10657 #include <iconv.h>
10659 main ()
10661 iconv_t cd = iconv_open("","");
10662 iconv(cd,NULL,NULL,NULL,NULL);
10663 iconv_close(cd);
10665 return 0;
10667 _ACEOF
10668 if ac_fn_cxx_try_link "$LINENO"; then :
10669 INCICONV="-I../libiconv/include"
10670 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10671 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10672 am_cv_lib_iconv=yes
10673 am_cv_func_iconv=yes
10675 rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 CPPFLAGS="$am_save_CPPFLAGS"
10678 LIBS="$am_save_LIBS"
10679 if test "$am_cv_func_iconv" = "yes"; then
10680 break
10682 done
10685 if test "$am_cv_func_iconv" != yes; then
10686 am_save_CPPFLAGS="$CPPFLAGS"
10687 am_save_LIBS="$LIBS"
10688 CPPFLAGS="$LIBS $INCICONV"
10689 LIBS="$LIBS $LIBICONV"
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 #include <stdlib.h>
10693 #include <iconv.h>
10695 main ()
10697 iconv_t cd = iconv_open("","");
10698 iconv(cd,NULL,NULL,NULL,NULL);
10699 iconv_close(cd);
10701 return 0;
10703 _ACEOF
10704 if ac_fn_cxx_try_link "$LINENO"; then :
10705 am_cv_lib_iconv=yes
10706 am_cv_func_iconv=yes
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 CPPFLAGS="$am_save_CPPFLAGS"
10711 LIBS="$am_save_LIBS"
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10716 $as_echo "$am_cv_func_iconv" >&6; }
10717 if test "$am_cv_func_iconv" = yes; then
10719 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10722 if test "$am_cv_lib_iconv" = yes; then
10724 for element in $INCICONV; do
10725 haveit=
10726 for x in $CPPFLAGS; do
10728 acl_save_prefix="$prefix"
10729 prefix="$acl_final_prefix"
10730 acl_save_exec_prefix="$exec_prefix"
10731 exec_prefix="$acl_final_exec_prefix"
10732 eval x=\"$x\"
10733 exec_prefix="$acl_save_exec_prefix"
10734 prefix="$acl_save_prefix"
10736 if test "X$x" = "X$element"; then
10737 haveit=yes
10738 break
10740 done
10741 if test -z "$haveit"; then
10742 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10744 done
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10747 $as_echo_n "checking how to link with libiconv... " >&6; }
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10749 $as_echo "$LIBICONV" >&6; }
10750 else
10751 LIBICONV=
10752 LTLIBICONV=
10757 if test "$am_cv_func_iconv" = yes; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10759 $as_echo_n "checking for iconv declaration... " >&6; }
10760 if test "${am_cv_proto_iconv+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10767 #include <stdlib.h>
10768 #include <iconv.h>
10769 extern
10770 #ifdef __cplusplus
10772 #endif
10773 #if defined(__STDC__) || defined(__cplusplus)
10774 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10775 #else
10776 size_t iconv();
10777 #endif
10780 main ()
10784 return 0;
10786 _ACEOF
10787 if ac_fn_cxx_try_compile "$LINENO"; then :
10788 am_cv_proto_iconv_arg1=""
10789 else
10790 am_cv_proto_iconv_arg1="const"
10792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10793 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);"
10796 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10798 }$am_cv_proto_iconv" >&5
10799 $as_echo "${ac_t:-
10800 }$am_cv_proto_iconv" >&6; }
10802 cat >>confdefs.h <<_ACEOF
10803 #define ICONV_CONST $am_cv_proto_iconv_arg1
10804 _ACEOF
10809 # Until we have in-tree GNU iconv:
10810 LIBICONV_DEP=
10811 if test -f "$LTLIBICONV"; then
10812 LIBICONV_DEP=$LTLIBICONV
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10818 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10819 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 #include <locale.h>
10826 main ()
10828 return LC_MESSAGES
10830 return 0;
10832 _ACEOF
10833 if ac_fn_cxx_try_link "$LINENO"; then :
10834 am_cv_val_LC_MESSAGES=yes
10835 else
10836 am_cv_val_LC_MESSAGES=no
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10842 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10843 if test $am_cv_val_LC_MESSAGES = yes; then
10845 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10852 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10853 if test "${am_cv_langinfo_codeset+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 #include <langinfo.h>
10860 main ()
10862 char* cs = nl_langinfo(CODESET);
10864 return 0;
10866 _ACEOF
10867 if ac_fn_cxx_try_link "$LINENO"; then :
10868 am_cv_langinfo_codeset=yes
10869 else
10870 am_cv_langinfo_codeset=no
10872 rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10877 $as_echo "$am_cv_langinfo_codeset" >&6; }
10878 if test $am_cv_langinfo_codeset = yes; then
10880 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10885 # We will need to find libiberty.h and ansidecl.h
10886 saved_CFLAGS="$CFLAGS"
10887 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10888 saved_CXXFLAGS="$CXXFLAGS"
10889 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10891 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10892 # normal autoconf function for these. But force definition of
10893 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10894 # basename handling in libiberty.h.
10895 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10896 #undef HAVE_DECL_BASENAME
10897 #define HAVE_DECL_BASENAME 1
10898 #include \"ansidecl.h\"
10899 #include \"system.h\"
10901 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10902 ac_have_decl=1
10903 else
10904 ac_have_decl=0
10907 cat >>confdefs.h <<_ACEOF
10908 #define HAVE_DECL_BASENAME $ac_have_decl
10909 _ACEOF
10910 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10911 #undef HAVE_DECL_BASENAME
10912 #define HAVE_DECL_BASENAME 1
10913 #include \"ansidecl.h\"
10914 #include \"system.h\"
10916 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10917 ac_have_decl=1
10918 else
10919 ac_have_decl=0
10922 cat >>confdefs.h <<_ACEOF
10923 #define HAVE_DECL_STRSTR $ac_have_decl
10924 _ACEOF
10927 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10928 madvise stpcpy strnlen strsignal strverscmp \
10929 strtol strtoul strtoll strtoull setenv unsetenv \
10930 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10931 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
10933 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10935 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10936 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941 #undef $ac_tr_decl
10942 #define $ac_tr_decl 1
10944 #include "ansidecl.h"
10945 #include "system.h"
10948 main ()
10950 #ifndef $ac_func
10951 char *(*pfn) = (char *(*)) $ac_func ;
10952 #endif
10954 return 0;
10956 _ACEOF
10957 if ac_fn_cxx_try_compile "$LINENO"; then :
10958 eval "gcc_cv_have_decl_$ac_func=yes"
10959 else
10960 eval "gcc_cv_have_decl_$ac_func=no"
10962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10968 #define $ac_tr_decl 1
10969 _ACEOF
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10974 #define $ac_tr_decl 0
10975 _ACEOF
10979 done
10982 for ac_func in getrlimit setrlimit getrusage
10984 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10986 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10987 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10992 #undef $ac_tr_decl
10993 #define $ac_tr_decl 1
10995 #include "ansidecl.h"
10996 #include "system.h"
10997 #ifdef HAVE_SYS_RESOURCE_H
10998 #include <sys/resource.h>
10999 #endif
11003 main ()
11005 #ifndef $ac_func
11006 char *(*pfn) = (char *(*)) $ac_func ;
11007 #endif
11009 return 0;
11011 _ACEOF
11012 if ac_fn_cxx_try_compile "$LINENO"; then :
11013 eval "gcc_cv_have_decl_$ac_func=yes"
11014 else
11015 eval "gcc_cv_have_decl_$ac_func=no"
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11022 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11023 #define $ac_tr_decl 1
11024 _ACEOF
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11029 #define $ac_tr_decl 0
11030 _ACEOF
11034 done
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11040 #include "ansidecl.h"
11041 #include "system.h"
11042 #ifdef HAVE_SYS_RESOURCE_H
11043 #include <sys/resource.h>
11044 #endif
11047 main ()
11049 rlim_t l = 0;
11051 return 0;
11053 _ACEOF
11054 if ac_fn_cxx_try_compile "$LINENO"; then :
11056 else
11058 $as_echo "#define rlim_t long" >>confdefs.h
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11064 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11065 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11066 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11067 for ac_func in ldgetname
11069 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11071 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11072 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11077 #undef $ac_tr_decl
11078 #define $ac_tr_decl 1
11080 #include "ansidecl.h"
11081 #include "system.h"
11082 #ifdef HAVE_LDFCN_H
11083 #undef FREAD
11084 #undef FWRITE
11085 #include <ldfcn.h>
11086 #endif
11090 main ()
11092 #ifndef $ac_func
11093 char *(*pfn) = (char *(*)) $ac_func ;
11094 #endif
11096 return 0;
11098 _ACEOF
11099 if ac_fn_cxx_try_compile "$LINENO"; then :
11100 eval "gcc_cv_have_decl_$ac_func=yes"
11101 else
11102 eval "gcc_cv_have_decl_$ac_func=no"
11104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11109 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11110 #define $ac_tr_decl 1
11111 _ACEOF
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11116 #define $ac_tr_decl 0
11117 _ACEOF
11121 done
11124 for ac_func in times
11126 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11128 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11129 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11134 #undef $ac_tr_decl
11135 #define $ac_tr_decl 1
11137 #include "ansidecl.h"
11138 #include "system.h"
11139 #ifdef HAVE_SYS_TIMES_H
11140 #include <sys/times.h>
11141 #endif
11145 main ()
11147 #ifndef $ac_func
11148 char *(*pfn) = (char *(*)) $ac_func ;
11149 #endif
11151 return 0;
11153 _ACEOF
11154 if ac_fn_cxx_try_compile "$LINENO"; then :
11155 eval "gcc_cv_have_decl_$ac_func=yes"
11156 else
11157 eval "gcc_cv_have_decl_$ac_func=no"
11159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11165 #define $ac_tr_decl 1
11166 _ACEOF
11168 else
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11171 #define $ac_tr_decl 0
11172 _ACEOF
11176 done
11179 for ac_func in sigaltstack
11181 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11183 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11184 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189 #undef $ac_tr_decl
11190 #define $ac_tr_decl 1
11192 #include "ansidecl.h"
11193 #include "system.h"
11194 #include <signal.h>
11198 main ()
11200 #ifndef $ac_func
11201 char *(*pfn) = (char *(*)) $ac_func ;
11202 #endif
11204 return 0;
11206 _ACEOF
11207 if ac_fn_cxx_try_compile "$LINENO"; then :
11208 eval "gcc_cv_have_decl_$ac_func=yes"
11209 else
11210 eval "gcc_cv_have_decl_$ac_func=no"
11212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11217 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11218 #define $ac_tr_decl 1
11219 _ACEOF
11221 else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11224 #define $ac_tr_decl 0
11225 _ACEOF
11229 done
11232 # More time-related stuff.
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11234 $as_echo_n "checking for struct tms... " >&6; }
11235 if test "${ac_cv_struct_tms+set}" = set; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11242 #include "ansidecl.h"
11243 #include "system.h"
11244 #ifdef HAVE_SYS_TIMES_H
11245 #include <sys/times.h>
11246 #endif
11249 main ()
11251 struct tms tms;
11253 return 0;
11255 _ACEOF
11256 if ac_fn_cxx_try_compile "$LINENO"; then :
11257 ac_cv_struct_tms=yes
11258 else
11259 ac_cv_struct_tms=no
11261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11264 $as_echo "$ac_cv_struct_tms" >&6; }
11265 if test $ac_cv_struct_tms = yes; then
11267 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11271 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11272 # revisit after autoconf 2.50.
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11274 $as_echo_n "checking for clock_t... " >&6; }
11275 if test "${gcc_cv_type_clock_t+set}" = set; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11282 #include "ansidecl.h"
11283 #include "system.h"
11286 main ()
11288 clock_t x;
11290 return 0;
11292 _ACEOF
11293 if ac_fn_cxx_try_compile "$LINENO"; then :
11294 gcc_cv_type_clock_t=yes
11295 else
11296 gcc_cv_type_clock_t=no
11298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11301 $as_echo "$gcc_cv_type_clock_t" >&6; }
11302 if test $gcc_cv_type_clock_t = yes; then
11304 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11308 # Check if F_SETLKW is supported by fcntl.
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11310 $as_echo_n "checking for F_SETLKW... " >&6; }
11311 if test "${ac_cv_f_setlkw+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 #include <fcntl.h>
11320 main ()
11323 struct flock fl;
11324 fl.l_whence = 0;
11325 fl.l_start = 0;
11326 fl.l_len = 0;
11327 fl.l_pid = 0;
11328 return fcntl (1, F_SETLKW, &fl);
11330 return 0;
11332 _ACEOF
11333 if ac_fn_cxx_try_compile "$LINENO"; then :
11334 ac_cv_f_setlkw=yes
11335 else
11336 ac_cv_f_setlkw=no
11338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11341 $as_echo "$ac_cv_f_setlkw" >&6; }
11342 if test $ac_cv_f_setlkw = yes; then
11344 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11348 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11349 CFLAGS="$saved_CFLAGS"
11350 CXXFLAGS="$saved_CXXFLAGS"
11352 # mkdir takes a single argument on some systems.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11354 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11355 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11361 #include <sys/types.h>
11362 #ifdef HAVE_SYS_STAT_H
11363 # include <sys/stat.h>
11364 #endif
11365 #ifdef HAVE_UNISTD_H
11366 # include <unistd.h>
11367 #endif
11368 #ifdef HAVE_DIRECT_H
11369 # include <direct.h>
11370 #endif
11372 main ()
11374 mkdir ("foo", 0);
11376 return 0;
11378 _ACEOF
11379 if ac_fn_cxx_try_compile "$LINENO"; then :
11380 gcc_cv_mkdir_takes_one_arg=no
11381 else
11382 gcc_cv_mkdir_takes_one_arg=yes
11384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11387 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11388 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11390 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11395 # File extensions
11396 manext='.1'
11397 objext='.o'
11401 # With Setjmp/Longjmp based exception handling.
11402 # Check whether --enable-sjlj-exceptions was given.
11403 if test "${enable_sjlj_exceptions+set}" = set; then :
11404 enableval=$enable_sjlj_exceptions; case $target in
11405 *-*-hpux10*)
11406 if test $enableval != yes; then
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11408 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11409 enableval=yes
11412 esac
11413 force_sjlj_exceptions=yes
11414 else
11415 case $target in
11416 *-*-hpux10*)
11417 force_sjlj_exceptions=yes
11418 enableval=yes
11420 lm32*-*-*)
11421 force_sjlj_exceptions=yes
11422 enableval=yes
11425 force_sjlj_exceptions=no
11427 esac
11430 if test $force_sjlj_exceptions = yes; then
11431 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11433 cat >>confdefs.h <<_ACEOF
11434 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11435 _ACEOF
11439 # --------------------------------------------------------
11440 # Build, host, and target specific configuration fragments
11441 # --------------------------------------------------------
11443 # Collect build-machine-specific information.
11444 . ${srcdir}/config.build
11446 # Collect host-machine-specific information.
11447 . ${srcdir}/config.host
11449 target_gtfiles=
11451 # Collect target-machine-specific information.
11452 . ${srcdir}/config.gcc
11454 extra_objs="${host_extra_objs} ${extra_objs}"
11455 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11457 # Default the target-machine variables that were not explicitly set.
11458 if test x"$tm_file" = x
11459 then tm_file=$cpu_type/$cpu_type.h; fi
11461 if test x"$extra_headers" = x
11462 then extra_headers=; fi
11464 if test x$md_file = x
11465 then md_file=$cpu_type/$cpu_type.md; fi
11467 if test x$out_file = x
11468 then out_file=$cpu_type/$cpu_type.c; fi
11470 if test x"$tmake_file" = x
11471 then tmake_file=$cpu_type/t-$cpu_type
11474 # Support --enable-initfini-array.
11475 if test x$enable_initfini_array != xno; then
11476 tm_file="${tm_file} initfini-array.h"
11479 if test x"$dwarf2" = xyes
11480 then tm_file="$tm_file tm-dwarf2.h"
11483 # Say what files are being used for the output code and MD file.
11484 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11485 echo "Using \`$srcdir/config/$md_file' as machine description file."
11487 # If any of the xm_file variables contain nonexistent files, warn
11488 # about them and drop them.
11491 for x in $build_xm_file; do
11492 if test -f $srcdir/config/$x
11493 then bx="$bx $x"
11494 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11495 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11497 done
11498 build_xm_file="$bx"
11501 for x in $host_xm_file; do
11502 if test -f $srcdir/config/$x
11503 then hx="$hx $x"
11504 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11505 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11507 done
11508 host_xm_file="$hx"
11511 for x in $xm_file; do
11512 if test -f $srcdir/config/$x
11513 then tx="$tx $x"
11514 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11515 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11517 done
11518 xm_file="$tx"
11520 count=a
11521 for f in $tm_file; do
11522 count=${count}x
11523 done
11524 if test $count = ax; then
11525 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11526 else
11527 echo "Using the following target machine macro files:"
11528 for f in $tm_file; do
11529 echo " $srcdir/config/$f"
11530 done
11533 if test x$use_long_long_for_widest_fast_int = xyes; then
11535 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11539 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11541 cat >>confdefs.h <<_ACEOF
11542 #define HAVE_GNU_LD $gnu_ld_bool
11543 _ACEOF
11546 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_GNU_AS $gnu_as_bool
11550 _ACEOF
11553 count=a
11554 for f in $host_xm_file; do
11555 count=${count}x
11556 done
11557 if test $count = a; then
11559 elif test $count = ax; then
11560 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11561 else
11562 echo "Using the following host machine macro files:"
11563 for f in $host_xm_file; do
11564 echo " $srcdir/config/$f"
11565 done
11567 echo "Using ${out_host_hook_obj} for host machine hooks."
11569 if test "$host_xm_file" != "$build_xm_file"; then
11570 count=a
11571 for f in $build_xm_file; do
11572 count=${count}x
11573 done
11574 if test $count = a; then
11576 elif test $count = ax; then
11577 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11578 else
11579 echo "Using the following build machine macro files:"
11580 for f in $build_xm_file; do
11581 echo " $srcdir/config/$f"
11582 done
11586 if test -n "$configured_native_system_header_dir"; then
11587 native_system_header_dir=$configured_native_system_header_dir
11589 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11592 case ${host} in
11593 powerpc*-*-darwin*)
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11595 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11596 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11602 #include <sys/cdefs.h>
11603 #include <sys/signal.h>
11604 #include <ucontext.h>
11605 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11607 _ACEOF
11608 if ac_fn_cxx_try_compile "$LINENO"; then :
11609 gcc_cv_mcontext_underscores=no
11610 else
11611 gcc_cv_mcontext_underscores=yes
11613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11616 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11617 if test $gcc_cv_mcontext_underscores = yes; then
11619 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11623 esac
11625 # ---------
11626 # Threading
11627 # ---------
11629 # Check if a valid thread package
11630 case ${enable_threads} in
11631 "" | no)
11632 # No threads
11633 target_thread_file='single'
11635 yes)
11636 # default
11637 target_thread_file='single'
11639 aix | dce | lynx | mipssde | posix | rtems | \
11640 single | tpf | vxworks | win32)
11641 target_thread_file=${enable_threads}
11644 echo "${enable_threads} is an unknown thread package" 1>&2
11645 exit 1
11647 esac
11649 if test x${thread_file} = x; then
11650 # No thread file set by target-specific clauses in config.gcc,
11651 # so use file chosen by default logic above
11652 thread_file=${target_thread_file}
11655 # --------
11656 # UNSORTED
11657 # --------
11659 use_cxa_atexit=no
11660 if test x$enable___cxa_atexit = xyes || \
11661 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11662 if test x$host = x$target; then
11663 case $host in
11664 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11665 # keyed to flag_use_cxa_atexit
11666 *-*-mingw32*)
11667 use_cxa_atexit=yes
11669 powerpc-ibm-aix*)
11670 use_cxa_atexit=yes
11673 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11674 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11675 use_cxa_atexit=yes
11676 else
11677 echo "__cxa_atexit can't be enabled on this target"
11681 esac
11682 else
11683 # We can't check for __cxa_atexit when building a cross, so assume
11684 # it is available
11685 use_cxa_atexit=yes
11687 if test x$use_cxa_atexit = xyes; then
11689 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11694 # Look for a file containing extra machine modes.
11695 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11696 extra_modes_file='$(srcdir)'/config/${extra_modes}
11699 cat >>confdefs.h <<_ACEOF
11700 #define EXTRA_MODES_FILE "config/$extra_modes"
11701 _ACEOF
11705 # Convert extra_options into a form suitable for Makefile use.
11706 extra_opt_files=
11707 all_opt_files=
11708 for f in $extra_options; do
11709 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11710 all_opt_files="$all_opt_files $srcdir/config/$f"
11711 done
11714 # auto-host.h is the file containing items generated by autoconf and is
11715 # the first file included by config.h.
11716 # If host=build, it is correct to have bconfig include auto-host.h
11717 # as well. If host!=build, we are in error and need to do more
11718 # work to find out the build config parameters.
11719 if test x$host = x$build
11720 then
11721 build_auto=auto-host.h
11722 else
11723 # We create a subdir, then run autoconf in the subdir.
11724 # To prevent recursion we set host and build for the new
11725 # invocation of configure to the build for this invocation
11726 # of configure.
11727 tempdir=build.$$
11728 rm -rf $tempdir
11729 mkdir $tempdir
11730 cd $tempdir
11731 case ${srcdir} in
11732 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11733 *) realsrcdir=../${srcdir};;
11734 esac
11735 # Clearing GMPINC is necessary to prevent host headers being
11736 # used by the build compiler. Defining GENERATOR_FILE stops
11737 # system.h from including gmp.h.
11738 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11739 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11740 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11741 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11742 ${realsrcdir}/configure \
11743 --enable-languages=${enable_languages-all} \
11744 --target=$target_alias --host=$build_alias --build=$build_alias
11746 # We just finished tests for the build machine, so rename
11747 # the file auto-build.h in the gcc directory.
11748 mv auto-host.h ../auto-build.h
11749 cd ..
11750 rm -rf $tempdir
11751 build_auto=auto-build.h
11755 tm_file="${tm_file} defaults.h"
11756 tm_p_file="${tm_p_file} tm-preds.h"
11757 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11758 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11759 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11760 # put this back in temporarily.
11761 xm_file="auto-host.h ansidecl.h ${xm_file}"
11763 # --------
11764 # UNSORTED
11765 # --------
11767 # Compile in configure arguments.
11768 if test -f configargs.h ; then
11769 # Being re-configured.
11770 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11771 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11772 else
11773 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11776 # Double all backslashes and backslash all quotes to turn
11777 # gcc_config_arguments into a C string.
11778 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11779 $gcc_config_arguments
11781 gcc_config_arguments_str=`cat conftest.out`
11782 rm -f conftest.out
11784 cat > configargs.h <<EOF
11785 /* Generated automatically. */
11786 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11787 static const char thread_model[] = "$thread_file";
11789 static const struct {
11790 const char *name, *value;
11791 } configure_default_options[] = $configure_default_options;
11794 gcc_BASEVER=`cat $srcdir/BASE-VER`
11795 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11796 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11797 if test -f $srcdir/REVISION ; then
11798 gcc_REVISION=`cat $srcdir/REVISION`
11799 else
11800 gcc_REVISION=""
11802 cat > plugin-version.h <<EOF
11803 #include "configargs.h"
11805 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11806 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11807 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11808 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11810 static char basever[] = "$gcc_BASEVER";
11811 static char datestamp[] = "$gcc_DATESTAMP";
11812 static char devphase[] = "$gcc_DEVPHASE";
11813 static char revision[] = "$gcc_REVISION";
11815 /* FIXME plugins: We should make the version information more precise.
11816 One way to do is to add a checksum. */
11818 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11819 devphase, revision,
11820 configuration_arguments};
11823 # Internationalization
11824 # If we haven't got the data from the intl directory,
11825 # assume NLS is disabled.
11826 USE_NLS=no
11827 LIBINTL=
11828 LIBINTL_DEP=
11829 INCINTL=
11830 XGETTEXT=
11831 GMSGFMT=
11832 POSUB=
11834 if test -f ../intl/config.intl; then
11835 . ../intl/config.intl
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11838 $as_echo_n "checking whether NLS is requested... " >&6; }
11839 if test x"$USE_NLS" != xyes; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11844 $as_echo "yes" >&6; }
11846 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11850 $as_echo_n "checking for catalogs to be installed... " >&6; }
11851 # Look for .po and .gmo files in the source directory.
11852 CATALOGS=
11853 XLINGUAS=
11854 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11855 # If there aren't any .gmo files the shell will give us the
11856 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11857 # weeded out.
11858 case "$cat" in *\**)
11859 continue;;
11860 esac
11861 # The quadruple backslash is collapsed to a double backslash
11862 # by the backticks, then collapsed again by the double quotes,
11863 # leaving us with one backslash in the sed expression (right
11864 # before the dot that mustn't act as a wildcard).
11865 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11866 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11867 # The user is allowed to set LINGUAS to a list of languages to
11868 # install catalogs for. If it's empty that means "all of them."
11869 if test "x$LINGUAS" = x; then
11870 CATALOGS="$CATALOGS $cat"
11871 XLINGUAS="$XLINGUAS $lang"
11872 else
11873 case "$LINGUAS" in *$lang*)
11874 CATALOGS="$CATALOGS $cat"
11875 XLINGUAS="$XLINGUAS $lang"
11877 esac
11879 done
11880 LINGUAS="$XLINGUAS"
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11882 $as_echo "$LINGUAS" >&6; }
11885 DATADIRNAME=share
11887 INSTOBJEXT=.mo
11889 GENCAT=gencat
11891 CATOBJEXT=.gmo
11895 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11896 # -liconv on the link line twice.
11897 case "$LIBINTL" in *$LIBICONV*)
11898 LIBICONV= ;;
11899 esac
11901 # Check whether --enable-secureplt was given.
11902 if test "${enable_secureplt+set}" = set; then :
11903 enableval=$enable_secureplt;
11907 # Check whether --enable-leading-mingw64-underscores was given.
11908 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11909 enableval=$enable_leading_mingw64_underscores;
11912 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11914 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11918 # Check whether --enable-cld was given.
11919 if test "${enable_cld+set}" = set; then :
11920 enableval=$enable_cld;
11921 else
11922 enable_cld=no
11926 # Check whether --enable-frame-pointer was given.
11927 if test "${enable_frame_pointer+set}" = set; then :
11928 enableval=$enable_frame_pointer;
11929 else
11931 case $target_os in
11932 linux* | darwin[8912]*)
11933 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11934 # DWARF2.
11935 enable_frame_pointer=no
11938 enable_frame_pointer=yes
11940 esac
11945 # Windows32 Registry support for specifying GCC installation paths.
11946 # Check whether --enable-win32-registry was given.
11947 if test "${enable_win32_registry+set}" = set; then :
11948 enableval=$enable_win32_registry;
11952 case $host_os in
11953 win32 | pe | cygwin* | mingw32*)
11954 if test "x$enable_win32_registry" != xno; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11956 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11957 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_func_search_save_LIBS=$LIBS
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char RegOpenKeyExA ();
11972 main ()
11974 return RegOpenKeyExA ();
11976 return 0;
11978 _ACEOF
11979 for ac_lib in '' advapi32; do
11980 if test -z "$ac_lib"; then
11981 ac_res="none required"
11982 else
11983 ac_res=-l$ac_lib
11984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11986 if ac_fn_cxx_try_link "$LINENO"; then :
11987 ac_cv_search_RegOpenKeyExA=$ac_res
11989 rm -f core conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext
11991 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11992 break
11994 done
11995 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11997 else
11998 ac_cv_search_RegOpenKeyExA=no
12000 rm conftest.$ac_ext
12001 LIBS=$ac_func_search_save_LIBS
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12004 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12005 ac_res=$ac_cv_search_RegOpenKeyExA
12006 if test "$ac_res" != no; then :
12007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12009 else
12010 enable_win32_registry=no
12015 if test "x$enable_win32_registry" != xno; then
12017 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12020 if test "x$enable_win32_registry" != xyes \
12021 && test "x$enable_win32_registry" != x; then
12023 cat >>confdefs.h <<_ACEOF
12024 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12025 _ACEOF
12030 esac
12032 # Get an absolute path to the GCC top-level source directory
12033 holddir=`${PWDCMD-pwd}`
12034 cd $srcdir
12035 topdir=`${PWDCMD-pwd}`
12036 cd $holddir
12038 # Conditionalize the makefile for this host machine.
12039 xmake_file=
12040 for f in ${host_xmake_file}
12042 if test -f ${srcdir}/config/$f
12043 then
12044 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12046 done
12048 # Conditionalize the makefile for this target machine.
12049 tmake_file_=
12050 for f in ${tmake_file}
12052 if test -f ${srcdir}/config/$f
12053 then
12054 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12056 done
12057 tmake_file="${tmake_file_}"
12059 out_object_file=`basename $out_file .c`.o
12060 common_out_object_file=`basename $common_out_file .c`.o
12062 tm_file_list="options.h"
12063 tm_include_list="options.h insn-constants.h"
12064 for f in $tm_file; do
12065 case $f in
12066 ./* )
12067 f=`echo $f | sed 's/^..//'`
12068 tm_file_list="${tm_file_list} $f"
12069 tm_include_list="${tm_include_list} $f"
12071 defaults.h )
12072 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12073 tm_include_list="${tm_include_list} $f"
12076 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12077 tm_include_list="${tm_include_list} config/$f"
12079 esac
12080 done
12082 tm_p_file_list=
12083 tm_p_include_list=
12084 for f in $tm_p_file; do
12085 case $f in
12086 tm-preds.h )
12087 tm_p_file_list="${tm_p_file_list} $f"
12088 tm_p_include_list="${tm_p_include_list} $f"
12091 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12092 tm_p_include_list="${tm_p_include_list} config/$f"
12093 esac
12094 done
12096 xm_file_list=
12097 xm_include_list=
12098 for f in $xm_file; do
12099 case $f in
12100 ansidecl.h )
12101 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12102 xm_include_list="${xm_include_list} $f"
12104 auto-host.h )
12105 xm_file_list="${xm_file_list} $f"
12106 xm_include_list="${xm_include_list} $f"
12109 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12110 xm_include_list="${xm_include_list} config/$f"
12112 esac
12113 done
12115 host_xm_file_list=
12116 host_xm_include_list=
12117 for f in $host_xm_file; do
12118 case $f in
12119 ansidecl.h )
12120 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12121 host_xm_include_list="${host_xm_include_list} $f"
12123 auto-host.h )
12124 host_xm_file_list="${host_xm_file_list} $f"
12125 host_xm_include_list="${host_xm_include_list} $f"
12128 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12129 host_xm_include_list="${host_xm_include_list} config/$f"
12131 esac
12132 done
12134 build_xm_file_list=
12135 for f in $build_xm_file; do
12136 case $f in
12137 ansidecl.h )
12138 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12139 build_xm_include_list="${build_xm_include_list} $f"
12141 auto-build.h | auto-host.h )
12142 build_xm_file_list="${build_xm_file_list} $f"
12143 build_xm_include_list="${build_xm_include_list} $f"
12146 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12147 build_xm_include_list="${build_xm_include_list} config/$f"
12149 esac
12150 done
12152 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12153 # cross-compiler which does not use the native headers and libraries.
12154 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12155 CROSS=
12156 ALL=all.internal
12157 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12159 if test "x$with_build_sysroot" != x; then
12160 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12161 else
12162 # This value is used, even on a native system, because
12163 # CROSS_SYSTEM_HEADER_DIR is just
12164 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12165 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12168 if test x$host != x$target
12169 then
12170 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12171 ALL=all.cross
12172 SYSTEM_HEADER_DIR=$build_system_header_dir
12173 case "$host","$target" in
12174 # Darwin crosses can use the host system's libraries and headers,
12175 # because of the fat library support. Of course, it must be the
12176 # same version of Darwin on both sides. Allow the user to
12177 # just say --target=foo-darwin without a version number to mean
12178 # "the version on this system".
12179 *-*-darwin*,*-*-darwin*)
12180 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12181 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12182 if test $hostos = $targetos -o $targetos = darwin ; then
12183 CROSS=
12184 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12185 with_headers=yes
12189 i?86-*-*,x86_64-*-* \
12190 | powerpc*-*-*,powerpc64*-*-*)
12191 CROSS="$CROSS -DNATIVE_CROSS" ;;
12192 esac
12194 case $target in
12195 *-*-mingw*)
12196 if test "x$with_headers" = x; then
12197 with_headers=yes
12202 esac
12203 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12204 SYSTEM_HEADER_DIR=$build_system_header_dir
12207 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12208 if test "x$with_headers" != x; then
12209 target_header_dir=$with_headers
12210 elif test "x$with_sysroot" = x; then
12211 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12212 elif test "x$with_build_sysroot" != "x"; then
12213 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12214 elif test "x$with_sysroot" = xyes; then
12215 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12216 else
12217 target_header_dir="${with_sysroot}${native_system_header_dir}"
12219 else
12220 target_header_dir=${native_system_header_dir}
12223 # If this is a cross-compiler that does not
12224 # have its own set of headers then define
12225 # inhibit_libc
12227 # If this is using newlib, without having the headers available now,
12228 # then define inhibit_libc in LIBGCC2_CFLAGS.
12229 # This prevents libgcc2 from containing any code which requires libc
12230 # support.
12231 : ${inhibit_libc=false}
12232 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12233 test x$with_newlib = xyes ; } &&
12234 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12235 inhibit_libc=true
12239 # When building gcc with a cross-compiler, we need to adjust things so
12240 # that the generator programs are still built with the native compiler.
12241 # Also, we cannot run fixincludes.
12243 # These are the normal (build=host) settings:
12244 CC_FOR_BUILD='$(CC)'
12245 CXX_FOR_BUILD='$(CXX)'
12246 BUILD_CFLAGS='$(ALL_CFLAGS)'
12247 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12248 BUILD_LDFLAGS='$(LDFLAGS)'
12249 STMP_FIXINC=stmp-fixinc
12251 # And these apply if build != host, or we are generating coverage data
12252 if test x$build != x$host || test "x$coverage_flags" != x
12253 then
12254 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12255 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12256 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12259 # Expand extra_headers to include complete path.
12260 # This substitutes for lots of t-* files.
12261 extra_headers_list=
12262 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12263 for file in ${extra_headers} ; do
12264 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12265 done
12267 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12268 if test x"$use_gcc_tgmath" = xyes
12269 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12272 # Define collect2 in Makefile.
12273 case $host_can_use_collect2 in
12274 no) collect2= ;;
12275 *) collect2='collect2$(exeext)' ;;
12276 esac
12279 # Add a definition of USE_COLLECT2 if system wants one.
12280 case $use_collect2 in
12281 no) use_collect2= ;;
12282 "") ;;
12284 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12285 xm_defines="${xm_defines} USE_COLLECT2"
12286 case $host_can_use_collect2 in
12288 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12290 esac
12292 esac
12295 cat >>confdefs.h <<_ACEOF
12296 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12297 _ACEOF
12300 # ---------------------------
12301 # Assembler & linker features
12302 # ---------------------------
12304 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12305 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12306 # However when ld-new is first executed from the build tree, libtool will
12307 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12308 # to the build tree. While doing this we need to use the previous-stage
12309 # linker, or we have an infinite loop. The presence of a shell script as
12310 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12311 # the gcc/collect-ld script. So we need to know how libtool works, or
12312 # exec-tool will fail.
12315 case `pwd` in
12316 *\ * | *\ *)
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12318 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12319 esac
12323 macro_version='2.2.7a'
12324 macro_revision='1.3134'
12338 ltmain="$ac_aux_dir/ltmain.sh"
12340 # Backslashify metacharacters that are still active within
12341 # double-quoted strings.
12342 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12344 # Same as above, but do not quote variable references.
12345 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12347 # Sed substitution to delay expansion of an escaped shell variable in a
12348 # double_quote_subst'ed string.
12349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12351 # Sed substitution to delay expansion of an escaped single quote.
12352 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12354 # Sed substitution to avoid accidental globbing in evaled expressions
12355 no_glob_subst='s/\*/\\\*/g'
12357 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12359 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12362 $as_echo_n "checking how to print strings... " >&6; }
12363 # Test print first, because it will be a builtin if present.
12364 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12365 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12366 ECHO='print -r --'
12367 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12368 ECHO='printf %s\n'
12369 else
12370 # Use this function as a fallback that always works.
12371 func_fallback_echo ()
12373 eval 'cat <<_LTECHO_EOF
12375 _LTECHO_EOF'
12377 ECHO='func_fallback_echo'
12380 # func_echo_all arg...
12381 # Invoke $ECHO with all args, space-separated.
12382 func_echo_all ()
12384 $ECHO ""
12387 case "$ECHO" in
12388 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12389 $as_echo "printf" >&6; } ;;
12390 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12391 $as_echo "print -r" >&6; } ;;
12392 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12393 $as_echo "cat" >&6; } ;;
12394 esac
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12410 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12411 if test "${ac_cv_path_SED+set}" = set; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12415 for ac_i in 1 2 3 4 5 6 7; do
12416 ac_script="$ac_script$as_nl$ac_script"
12417 done
12418 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12419 { ac_script=; unset ac_script;}
12420 if test -z "$SED"; then
12421 ac_path_SED_found=false
12422 # Loop through the user's path and test for each of PROGNAME-LIST
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_prog in sed gsed; do
12429 for ac_exec_ext in '' $ac_executable_extensions; do
12430 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12431 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12432 # Check for GNU ac_path_SED and select it if it is found.
12433 # Check for GNU $ac_path_SED
12434 case `"$ac_path_SED" --version 2>&1` in
12435 *GNU*)
12436 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12438 ac_count=0
12439 $as_echo_n 0123456789 >"conftest.in"
12440 while :
12442 cat "conftest.in" "conftest.in" >"conftest.tmp"
12443 mv "conftest.tmp" "conftest.in"
12444 cp "conftest.in" "conftest.nl"
12445 $as_echo '' >> "conftest.nl"
12446 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12448 as_fn_arith $ac_count + 1 && ac_count=$as_val
12449 if test $ac_count -gt ${ac_path_SED_max-0}; then
12450 # Best one so far, save it but keep looking for a better one
12451 ac_cv_path_SED="$ac_path_SED"
12452 ac_path_SED_max=$ac_count
12454 # 10*(2^10) chars as input seems more than enough
12455 test $ac_count -gt 10 && break
12456 done
12457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12458 esac
12460 $ac_path_SED_found && break 3
12461 done
12462 done
12463 done
12464 IFS=$as_save_IFS
12465 if test -z "$ac_cv_path_SED"; then
12466 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12468 else
12469 ac_cv_path_SED=$SED
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12474 $as_echo "$ac_cv_path_SED" >&6; }
12475 SED="$ac_cv_path_SED"
12476 rm -f conftest.sed
12478 test -z "$SED" && SED=sed
12479 Xsed="$SED -e 1s/^X//"
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12492 $as_echo_n "checking for fgrep... " >&6; }
12493 if test "${ac_cv_path_FGREP+set}" = set; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12497 then ac_cv_path_FGREP="$GREP -F"
12498 else
12499 if test -z "$FGREP"; then
12500 ac_path_FGREP_found=false
12501 # Loop through the user's path and test for each of PROGNAME-LIST
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_prog in fgrep; do
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12510 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12511 # Check for GNU ac_path_FGREP and select it if it is found.
12512 # Check for GNU $ac_path_FGREP
12513 case `"$ac_path_FGREP" --version 2>&1` in
12514 *GNU*)
12515 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12517 ac_count=0
12518 $as_echo_n 0123456789 >"conftest.in"
12519 while :
12521 cat "conftest.in" "conftest.in" >"conftest.tmp"
12522 mv "conftest.tmp" "conftest.in"
12523 cp "conftest.in" "conftest.nl"
12524 $as_echo 'FGREP' >> "conftest.nl"
12525 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12527 as_fn_arith $ac_count + 1 && ac_count=$as_val
12528 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12529 # Best one so far, save it but keep looking for a better one
12530 ac_cv_path_FGREP="$ac_path_FGREP"
12531 ac_path_FGREP_max=$ac_count
12533 # 10*(2^10) chars as input seems more than enough
12534 test $ac_count -gt 10 && break
12535 done
12536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12537 esac
12539 $ac_path_FGREP_found && break 3
12540 done
12541 done
12542 done
12543 IFS=$as_save_IFS
12544 if test -z "$ac_cv_path_FGREP"; then
12545 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12547 else
12548 ac_cv_path_FGREP=$FGREP
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12554 $as_echo "$ac_cv_path_FGREP" >&6; }
12555 FGREP="$ac_cv_path_FGREP"
12558 test -z "$GREP" && GREP=grep
12578 # Check whether --with-gnu-ld was given.
12579 if test "${with_gnu_ld+set}" = set; then :
12580 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12581 else
12582 with_gnu_ld=no
12585 ac_prog=ld
12586 if test "$GCC" = yes; then
12587 # Check if gcc -print-prog-name=ld gives a path.
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12589 $as_echo_n "checking for ld used by $CC... " >&6; }
12590 case $host in
12591 *-*-mingw*)
12592 # gcc leaves a trailing carriage return which upsets mingw
12593 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12595 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12596 esac
12597 case $ac_prog in
12598 # Accept absolute paths.
12599 [\\/]* | ?:[\\/]*)
12600 re_direlt='/[^/][^/]*/\.\./'
12601 # Canonicalize the pathname of ld
12602 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12603 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12604 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12605 done
12606 test -z "$LD" && LD="$ac_prog"
12609 # If it fails, then pretend we aren't using GCC.
12610 ac_prog=ld
12613 # If it is relative, then search for the first ld in PATH.
12614 with_gnu_ld=unknown
12616 esac
12617 elif test "$with_gnu_ld" = yes; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12619 $as_echo_n "checking for GNU ld... " >&6; }
12620 else
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12622 $as_echo_n "checking for non-GNU ld... " >&6; }
12624 if test "${lt_cv_path_LD+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 if test -z "$LD"; then
12628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12629 for ac_dir in $PATH; do
12630 IFS="$lt_save_ifs"
12631 test -z "$ac_dir" && ac_dir=.
12632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12633 lt_cv_path_LD="$ac_dir/$ac_prog"
12634 # Check to see if the program is GNU ld. I'd rather use --version,
12635 # but apparently some variants of GNU ld only accept -v.
12636 # Break only if it was the GNU/non-GNU ld that we prefer.
12637 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12638 *GNU* | *'with BFD'*)
12639 test "$with_gnu_ld" != no && break
12642 test "$with_gnu_ld" != yes && break
12644 esac
12646 done
12647 IFS="$lt_save_ifs"
12648 else
12649 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12653 LD="$lt_cv_path_LD"
12654 if test -n "$LD"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12656 $as_echo "$LD" >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12661 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12664 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12668 case `$LD -v 2>&1 </dev/null` in
12669 *GNU* | *'with BFD'*)
12670 lt_cv_prog_gnu_ld=yes
12673 lt_cv_prog_gnu_ld=no
12675 esac
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12678 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12679 with_gnu_ld=$lt_cv_prog_gnu_ld
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12690 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12691 if test "${lt_cv_path_NM+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 if test -n "$NM"; then
12695 # Let the user override the test.
12696 lt_cv_path_NM="$NM"
12697 else
12698 lt_nm_to_check="${ac_tool_prefix}nm"
12699 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12700 lt_nm_to_check="$lt_nm_to_check nm"
12702 for lt_tmp_nm in $lt_nm_to_check; do
12703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12704 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12705 IFS="$lt_save_ifs"
12706 test -z "$ac_dir" && ac_dir=.
12707 tmp_nm="$ac_dir/$lt_tmp_nm"
12708 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12709 # Check to see if the nm accepts a BSD-compat flag.
12710 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12711 # nm: unknown option "B" ignored
12712 # Tru64's nm complains that /dev/null is an invalid object file
12713 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12714 */dev/null* | *'Invalid file or object type'*)
12715 lt_cv_path_NM="$tmp_nm -B"
12716 break
12719 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12720 */dev/null*)
12721 lt_cv_path_NM="$tmp_nm -p"
12722 break
12725 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12726 continue # so that we can try to find one that supports BSD flags
12728 esac
12730 esac
12732 done
12733 IFS="$lt_save_ifs"
12734 done
12735 : ${lt_cv_path_NM=no}
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12739 $as_echo "$lt_cv_path_NM" >&6; }
12740 if test "$lt_cv_path_NM" != "no"; then
12741 NM="$lt_cv_path_NM"
12742 else
12743 # Didn't find any BSD compatible name lister, look for dumpbin.
12744 if test -n "$DUMPBIN"; then :
12745 # Let the user override the test.
12746 else
12747 if test -n "$ac_tool_prefix"; then
12748 for ac_prog in dumpbin "link -dump"
12750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 if test -n "$DUMPBIN"; then
12758 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12759 else
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12763 IFS=$as_save_IFS
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 break 2
12771 done
12772 done
12773 IFS=$as_save_IFS
12777 DUMPBIN=$ac_cv_prog_DUMPBIN
12778 if test -n "$DUMPBIN"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12780 $as_echo "$DUMPBIN" >&6; }
12781 else
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12787 test -n "$DUMPBIN" && break
12788 done
12790 if test -z "$DUMPBIN"; then
12791 ac_ct_DUMPBIN=$DUMPBIN
12792 for ac_prog in dumpbin "link -dump"
12794 # Extract the first word of "$ac_prog", so it can be a program name with args.
12795 set dummy $ac_prog; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12797 $as_echo_n "checking for $ac_word... " >&6; }
12798 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 if test -n "$ac_ct_DUMPBIN"; then
12802 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12803 else
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12815 done
12816 done
12817 IFS=$as_save_IFS
12821 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12822 if test -n "$ac_ct_DUMPBIN"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12824 $as_echo "$ac_ct_DUMPBIN" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12831 test -n "$ac_ct_DUMPBIN" && break
12832 done
12834 if test "x$ac_ct_DUMPBIN" = x; then
12835 DUMPBIN=":"
12836 else
12837 case $cross_compiling:$ac_tool_warned in
12838 yes:)
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12841 ac_tool_warned=yes ;;
12842 esac
12843 DUMPBIN=$ac_ct_DUMPBIN
12847 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12848 *COFF*)
12849 DUMPBIN="$DUMPBIN -symbols"
12852 DUMPBIN=:
12854 esac
12857 if test "$DUMPBIN" != ":"; then
12858 NM="$DUMPBIN"
12861 test -z "$NM" && NM=nm
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12869 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12870 if test "${lt_cv_nm_interface+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 lt_cv_nm_interface="BSD nm"
12874 echo "int some_variable = 0;" > conftest.$ac_ext
12875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12876 (eval "$ac_compile" 2>conftest.err)
12877 cat conftest.err >&5
12878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12880 cat conftest.err >&5
12881 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12882 cat conftest.out >&5
12883 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12884 lt_cv_nm_interface="MS dumpbin"
12886 rm -f conftest*
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12889 $as_echo "$lt_cv_nm_interface" >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12892 $as_echo_n "checking whether ln -s works... " >&6; }
12893 LN_S=$as_ln_s
12894 if test "$LN_S" = "ln -s"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12896 $as_echo "yes" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12899 $as_echo "no, using $LN_S" >&6; }
12902 # find the maximum length of command line arguments
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12904 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12905 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12909 teststring="ABCD"
12911 case $build_os in
12912 msdosdjgpp*)
12913 # On DJGPP, this test can blow up pretty badly due to problems in libc
12914 # (any single argument exceeding 2000 bytes causes a buffer overrun
12915 # during glob expansion). Even if it were fixed, the result of this
12916 # check would be larger than it should be.
12917 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12920 gnu*)
12921 # Under GNU Hurd, this test is not required because there is
12922 # no limit to the length of command line arguments.
12923 # Libtool will interpret -1 as no limit whatsoever
12924 lt_cv_sys_max_cmd_len=-1;
12927 cygwin* | mingw* | cegcc*)
12928 # On Win9x/ME, this test blows up -- it succeeds, but takes
12929 # about 5 minutes as the teststring grows exponentially.
12930 # Worse, since 9x/ME are not pre-emptively multitasking,
12931 # you end up with a "frozen" computer, even though with patience
12932 # the test eventually succeeds (with a max line length of 256k).
12933 # Instead, let's just punt: use the minimum linelength reported by
12934 # all of the supported platforms: 8192 (on NT/2K/XP).
12935 lt_cv_sys_max_cmd_len=8192;
12938 mint*)
12939 # On MiNT this can take a long time and run out of memory.
12940 lt_cv_sys_max_cmd_len=8192;
12943 amigaos*)
12944 # On AmigaOS with pdksh, this test takes hours, literally.
12945 # So we just punt and use a minimum line length of 8192.
12946 lt_cv_sys_max_cmd_len=8192;
12949 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12950 # This has been around since 386BSD, at least. Likely further.
12951 if test -x /sbin/sysctl; then
12952 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12953 elif test -x /usr/sbin/sysctl; then
12954 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12955 else
12956 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12958 # And add a safety zone
12959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12963 interix*)
12964 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12965 lt_cv_sys_max_cmd_len=196608
12968 osf*)
12969 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12970 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12971 # nice to cause kernel panics so lets avoid the loop below.
12972 # First set a reasonable default.
12973 lt_cv_sys_max_cmd_len=16384
12975 if test -x /sbin/sysconfig; then
12976 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12977 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12978 esac
12981 sco3.2v5*)
12982 lt_cv_sys_max_cmd_len=102400
12984 sysv5* | sco5v6* | sysv4.2uw2*)
12985 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12986 if test -n "$kargmax"; then
12987 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12988 else
12989 lt_cv_sys_max_cmd_len=32768
12993 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12994 if test -n "$lt_cv_sys_max_cmd_len"; then
12995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12997 else
12998 # Make teststring a little bigger before we do anything with it.
12999 # a 1K string should be a reasonable start.
13000 for i in 1 2 3 4 5 6 7 8 ; do
13001 teststring=$teststring$teststring
13002 done
13003 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13004 # If test is not a shell built-in, we'll probably end up computing a
13005 # maximum length that is only half of the actual maximum length, but
13006 # we can't tell.
13007 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13008 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13009 test $i != 17 # 1/2 MB should be enough
13011 i=`expr $i + 1`
13012 teststring=$teststring$teststring
13013 done
13014 # Only check the string length outside the loop.
13015 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13016 teststring=
13017 # Add a significant safety factor because C++ compilers can tack on
13018 # massive amounts of additional arguments before passing them to the
13019 # linker. It appears as though 1/2 is a usable value.
13020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13023 esac
13027 if test -n $lt_cv_sys_max_cmd_len ; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13029 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13030 else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13032 $as_echo "none" >&6; }
13034 max_cmd_len=$lt_cv_sys_max_cmd_len
13041 : ${CP="cp -f"}
13042 : ${MV="mv -f"}
13043 : ${RM="rm -f"}
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13046 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13047 # Try some XSI features
13048 xsi_shell=no
13049 ( _lt_dummy="a/b/c"
13050 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13051 = c,a/b,, \
13052 && eval 'test $(( 1 + 1 )) -eq 2 \
13053 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13054 && xsi_shell=yes
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13056 $as_echo "$xsi_shell" >&6; }
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13060 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13061 lt_shell_append=no
13062 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13063 >/dev/null 2>&1 \
13064 && lt_shell_append=yes
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13066 $as_echo "$lt_shell_append" >&6; }
13069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13070 lt_unset=unset
13071 else
13072 lt_unset=false
13079 # test EBCDIC or ASCII
13080 case `echo X|tr X '\101'` in
13081 A) # ASCII based system
13082 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13083 lt_SP2NL='tr \040 \012'
13084 lt_NL2SP='tr \015\012 \040\040'
13086 *) # EBCDIC based system
13087 lt_SP2NL='tr \100 \n'
13088 lt_NL2SP='tr \r\n \100\100'
13090 esac
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13101 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13102 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 lt_cv_ld_reload_flag='-r'
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13108 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13109 reload_flag=$lt_cv_ld_reload_flag
13110 case $reload_flag in
13111 "" | " "*) ;;
13112 *) reload_flag=" $reload_flag" ;;
13113 esac
13114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13115 case $host_os in
13116 darwin*)
13117 if test "$GCC" = yes; then
13118 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13119 else
13120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13123 esac
13133 if test -n "$ac_tool_prefix"; then
13134 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13135 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -n "$OBJDUMP"; then
13142 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13155 done
13156 done
13157 IFS=$as_save_IFS
13161 OBJDUMP=$ac_cv_prog_OBJDUMP
13162 if test -n "$OBJDUMP"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13164 $as_echo "$OBJDUMP" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13172 if test -z "$ac_cv_prog_OBJDUMP"; then
13173 ac_ct_OBJDUMP=$OBJDUMP
13174 # Extract the first word of "objdump", so it can be a program name with args.
13175 set dummy objdump; ac_word=$2
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13177 $as_echo_n "checking for $ac_word... " >&6; }
13178 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13180 else
13181 if test -n "$ac_ct_OBJDUMP"; then
13182 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13183 else
13184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13185 for as_dir in $PATH
13187 IFS=$as_save_IFS
13188 test -z "$as_dir" && as_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13191 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13193 break 2
13195 done
13196 done
13197 IFS=$as_save_IFS
13201 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13202 if test -n "$ac_ct_OBJDUMP"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13204 $as_echo "$ac_ct_OBJDUMP" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13210 if test "x$ac_ct_OBJDUMP" = x; then
13211 OBJDUMP="false"
13212 else
13213 case $cross_compiling:$ac_tool_warned in
13214 yes:)
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13217 ac_tool_warned=yes ;;
13218 esac
13219 OBJDUMP=$ac_ct_OBJDUMP
13221 else
13222 OBJDUMP="$ac_cv_prog_OBJDUMP"
13225 test -z "$OBJDUMP" && OBJDUMP=objdump
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13236 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13237 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 lt_cv_file_magic_cmd='$MAGIC_CMD'
13241 lt_cv_file_magic_test_file=
13242 lt_cv_deplibs_check_method='unknown'
13243 # Need to set the preceding variable on all platforms that support
13244 # interlibrary dependencies.
13245 # 'none' -- dependencies not supported.
13246 # `unknown' -- same as none, but documents that we really don't know.
13247 # 'pass_all' -- all dependencies passed with no checks.
13248 # 'test_compile' -- check by making test program.
13249 # 'file_magic [[regex]]' -- check by looking for files in library path
13250 # which responds to the $file_magic_cmd with a given extended regex.
13251 # If you have `file' or equivalent on your system and you're not sure
13252 # whether `pass_all' will *always* work, you probably want this one.
13254 case $host_os in
13255 aix[4-9]*)
13256 lt_cv_deplibs_check_method=pass_all
13259 beos*)
13260 lt_cv_deplibs_check_method=pass_all
13263 bsdi[45]*)
13264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13265 lt_cv_file_magic_cmd='/usr/bin/file -L'
13266 lt_cv_file_magic_test_file=/shlib/libc.so
13269 cygwin*)
13270 # func_win32_libid is a shell function defined in ltmain.sh
13271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13272 lt_cv_file_magic_cmd='func_win32_libid'
13275 mingw* | pw32*)
13276 # Base MSYS/MinGW do not provide the 'file' command needed by
13277 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13278 # unless we find 'file', for example because we are cross-compiling.
13279 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13280 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13282 lt_cv_file_magic_cmd='func_win32_libid'
13283 else
13284 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13285 lt_cv_file_magic_cmd='$OBJDUMP -f'
13289 cegcc*)
13290 # use the weaker test based on 'objdump'. See mingw*.
13291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13292 lt_cv_file_magic_cmd='$OBJDUMP -f'
13295 darwin* | rhapsody*)
13296 lt_cv_deplibs_check_method=pass_all
13299 freebsd* | dragonfly*)
13300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13301 case $host_cpu in
13302 i*86 )
13303 # Not sure whether the presence of OpenBSD here was a mistake.
13304 # Let's accept both of them until this is cleared up.
13305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13306 lt_cv_file_magic_cmd=/usr/bin/file
13307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13309 esac
13310 else
13311 lt_cv_deplibs_check_method=pass_all
13315 gnu*)
13316 lt_cv_deplibs_check_method=pass_all
13319 haiku*)
13320 lt_cv_deplibs_check_method=pass_all
13323 hpux10.20* | hpux11*)
13324 lt_cv_file_magic_cmd=/usr/bin/file
13325 case $host_cpu in
13326 ia64*)
13327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13330 hppa*64*)
13331 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]'
13332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13338 esac
13341 interix[3-9]*)
13342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13346 irix5* | irix6* | nonstopux*)
13347 case $LD in
13348 *-32|*"-32 ") libmagic=32-bit;;
13349 *-n32|*"-n32 ") libmagic=N32;;
13350 *-64|*"-64 ") libmagic=64-bit;;
13351 *) libmagic=never-match;;
13352 esac
13353 lt_cv_deplibs_check_method=pass_all
13356 # This must be Linux ELF.
13357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13358 lt_cv_deplibs_check_method=pass_all
13361 netbsd*)
13362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13364 else
13365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13369 newos6*)
13370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13371 lt_cv_file_magic_cmd=/usr/bin/file
13372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13375 *nto* | *qnx*)
13376 lt_cv_deplibs_check_method=pass_all
13379 openbsd*)
13380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13382 else
13383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13387 osf3* | osf4* | osf5*)
13388 lt_cv_deplibs_check_method=pass_all
13391 rdos*)
13392 lt_cv_deplibs_check_method=pass_all
13395 solaris*)
13396 lt_cv_deplibs_check_method=pass_all
13399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13400 lt_cv_deplibs_check_method=pass_all
13403 sysv4 | sysv4.3*)
13404 case $host_vendor in
13405 motorola)
13406 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]'
13407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13409 ncr)
13410 lt_cv_deplibs_check_method=pass_all
13412 sequent)
13413 lt_cv_file_magic_cmd='/bin/file'
13414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13416 sni)
13417 lt_cv_file_magic_cmd='/bin/file'
13418 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13419 lt_cv_file_magic_test_file=/lib/libc.so
13421 siemens)
13422 lt_cv_deplibs_check_method=pass_all
13425 lt_cv_deplibs_check_method=pass_all
13427 esac
13430 tpf*)
13431 lt_cv_deplibs_check_method=pass_all
13433 esac
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13437 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13438 file_magic_cmd=$lt_cv_file_magic_cmd
13439 deplibs_check_method=$lt_cv_deplibs_check_method
13440 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13453 if test -n "$ac_tool_prefix"; then
13454 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13455 set dummy ${ac_tool_prefix}ar; ac_word=$2
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13457 $as_echo_n "checking for $ac_word... " >&6; }
13458 if test "${ac_cv_prog_AR+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
13460 else
13461 if test -n "$AR"; then
13462 ac_cv_prog_AR="$AR" # Let the user override the test.
13463 else
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13467 IFS=$as_save_IFS
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13471 ac_cv_prog_AR="${ac_tool_prefix}ar"
13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13473 break 2
13475 done
13476 done
13477 IFS=$as_save_IFS
13481 AR=$ac_cv_prog_AR
13482 if test -n "$AR"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13484 $as_echo "$AR" >&6; }
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13492 if test -z "$ac_cv_prog_AR"; then
13493 ac_ct_AR=$AR
13494 # Extract the first word of "ar", so it can be a program name with args.
13495 set dummy ar; ac_word=$2
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497 $as_echo_n "checking for $ac_word... " >&6; }
13498 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 if test -n "$ac_ct_AR"; then
13502 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13503 else
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $PATH
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511 ac_cv_prog_ac_ct_AR="ar"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13515 done
13516 done
13517 IFS=$as_save_IFS
13521 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13522 if test -n "$ac_ct_AR"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13524 $as_echo "$ac_ct_AR" >&6; }
13525 else
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13530 if test "x$ac_ct_AR" = x; then
13531 AR="false"
13532 else
13533 case $cross_compiling:$ac_tool_warned in
13534 yes:)
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13537 ac_tool_warned=yes ;;
13538 esac
13539 AR=$ac_ct_AR
13541 else
13542 AR="$ac_cv_prog_AR"
13545 test -z "$AR" && AR=ar
13546 test -z "$AR_FLAGS" && AR_FLAGS=cru
13558 if test -n "$ac_tool_prefix"; then
13559 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13560 set dummy ${ac_tool_prefix}strip; ac_word=$2
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562 $as_echo_n "checking for $ac_word... " >&6; }
13563 if test "${ac_cv_prog_STRIP+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 if test -n "$STRIP"; then
13567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13568 else
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13572 IFS=$as_save_IFS
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13576 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 break 2
13580 done
13581 done
13582 IFS=$as_save_IFS
13586 STRIP=$ac_cv_prog_STRIP
13587 if test -n "$STRIP"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13589 $as_echo "$STRIP" >&6; }
13590 else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13592 $as_echo "no" >&6; }
13597 if test -z "$ac_cv_prog_STRIP"; then
13598 ac_ct_STRIP=$STRIP
13599 # Extract the first word of "strip", so it can be a program name with args.
13600 set dummy strip; ac_word=$2
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602 $as_echo_n "checking for $ac_word... " >&6; }
13603 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 if test -n "$ac_ct_STRIP"; then
13607 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13608 else
13609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610 for as_dir in $PATH
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13616 ac_cv_prog_ac_ct_STRIP="strip"
13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13620 done
13621 done
13622 IFS=$as_save_IFS
13626 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13627 if test -n "$ac_ct_STRIP"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13629 $as_echo "$ac_ct_STRIP" >&6; }
13630 else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632 $as_echo "no" >&6; }
13635 if test "x$ac_ct_STRIP" = x; then
13636 STRIP=":"
13637 else
13638 case $cross_compiling:$ac_tool_warned in
13639 yes:)
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13642 ac_tool_warned=yes ;;
13643 esac
13644 STRIP=$ac_ct_STRIP
13646 else
13647 STRIP="$ac_cv_prog_STRIP"
13650 test -z "$STRIP" && STRIP=:
13657 if test -n "$ac_tool_prefix"; then
13658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 if test -n "$RANLIB"; then
13666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13667 else
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13679 done
13680 done
13681 IFS=$as_save_IFS
13685 RANLIB=$ac_cv_prog_RANLIB
13686 if test -n "$RANLIB"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13688 $as_echo "$RANLIB" >&6; }
13689 else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13696 if test -z "$ac_cv_prog_RANLIB"; then
13697 ac_ct_RANLIB=$RANLIB
13698 # Extract the first word of "ranlib", so it can be a program name with args.
13699 set dummy ranlib; ac_word=$2
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701 $as_echo_n "checking for $ac_word... " >&6; }
13702 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13703 $as_echo_n "(cached) " >&6
13704 else
13705 if test -n "$ac_ct_RANLIB"; then
13706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13707 else
13708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709 for as_dir in $PATH
13711 IFS=$as_save_IFS
13712 test -z "$as_dir" && as_dir=.
13713 for ac_exec_ext in '' $ac_executable_extensions; do
13714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13715 ac_cv_prog_ac_ct_RANLIB="ranlib"
13716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13717 break 2
13719 done
13720 done
13721 IFS=$as_save_IFS
13725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13726 if test -n "$ac_ct_RANLIB"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13728 $as_echo "$ac_ct_RANLIB" >&6; }
13729 else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13734 if test "x$ac_ct_RANLIB" = x; then
13735 RANLIB=":"
13736 else
13737 case $cross_compiling:$ac_tool_warned in
13738 yes:)
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13741 ac_tool_warned=yes ;;
13742 esac
13743 RANLIB=$ac_ct_RANLIB
13745 else
13746 RANLIB="$ac_cv_prog_RANLIB"
13749 test -z "$RANLIB" && RANLIB=:
13756 # Determine commands to create old-style static archives.
13757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13758 old_postinstall_cmds='chmod 644 $oldlib'
13759 old_postuninstall_cmds=
13761 if test -n "$RANLIB"; then
13762 case $host_os in
13763 openbsd*)
13764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13767 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13769 esac
13770 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13773 case $host_os in
13774 darwin*)
13775 lock_old_archive_extraction=yes ;;
13777 lock_old_archive_extraction=no ;;
13778 esac
13818 # If no C compiler was specified, use CC.
13819 LTCC=${LTCC-"$CC"}
13821 # If no C compiler flags were specified, use CFLAGS.
13822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13824 # Allow CC to be a program name with arguments.
13825 compiler=$CC
13828 # Check for command to grab the raw symbol name followed by C symbol from nm.
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13830 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13831 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13835 # These are sane defaults that work on at least a few old systems.
13836 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13838 # Character class describing NM global symbol codes.
13839 symcode='[BCDEGRST]'
13841 # Regexp to match symbols that can be accessed directly from C.
13842 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13844 # Define system-specific variables.
13845 case $host_os in
13846 aix*)
13847 symcode='[BCDT]'
13849 cygwin* | mingw* | pw32* | cegcc*)
13850 symcode='[ABCDGISTW]'
13852 hpux*)
13853 if test "$host_cpu" = ia64; then
13854 symcode='[ABCDEGRST]'
13857 irix* | nonstopux*)
13858 symcode='[BCDEGRST]'
13860 osf*)
13861 symcode='[BCDEGQRST]'
13863 solaris*)
13864 symcode='[BDRT]'
13866 sco3.2v5*)
13867 symcode='[DT]'
13869 sysv4.2uw2*)
13870 symcode='[DT]'
13872 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13873 symcode='[ABDT]'
13875 sysv4)
13876 symcode='[DFNSTU]'
13878 esac
13880 # If we're using GNU nm, then use its standard symbol codes.
13881 case `$NM -V 2>&1` in
13882 *GNU* | *'with BFD'*)
13883 symcode='[ABCDGIRSTW]' ;;
13884 esac
13886 # Transform an extracted symbol line into a proper C declaration.
13887 # Some systems (esp. on ia64) link data and code symbols differently,
13888 # so use this general approach.
13889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13891 # Transform an extracted symbol line into symbol name and symbol address
13892 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13893 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'"
13895 # Handle CRLF in mingw tool chain
13896 opt_cr=
13897 case $build_os in
13898 mingw*)
13899 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13901 esac
13903 # Try without a prefix underscore, then with it.
13904 for ac_symprfx in "" "_"; do
13906 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13907 symxfrm="\\1 $ac_symprfx\\2 \\2"
13909 # Write the raw and C identifiers.
13910 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13911 # Fake it for dumpbin and say T for any non-static function
13912 # and D for any global variable.
13913 # Also find C++ and __fastcall symbols from MSVC++,
13914 # which start with @ or ?.
13915 lt_cv_sys_global_symbol_pipe="$AWK '"\
13916 " {last_section=section; section=\$ 3};"\
13917 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13918 " \$ 0!~/External *\|/{next};"\
13919 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13920 " {if(hide[section]) next};"\
13921 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13922 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13923 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13924 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13925 " ' prfx=^$ac_symprfx"
13926 else
13927 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13930 # Check to see that the pipe works correctly.
13931 pipe_works=no
13933 rm -f conftest*
13934 cat > conftest.$ac_ext <<_LT_EOF
13935 #ifdef __cplusplus
13936 extern "C" {
13937 #endif
13938 char nm_test_var;
13939 void nm_test_func(void);
13940 void nm_test_func(void){}
13941 #ifdef __cplusplus
13943 #endif
13944 int main(){nm_test_var='a';nm_test_func();return(0);}
13945 _LT_EOF
13947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13948 (eval $ac_compile) 2>&5
13949 ac_status=$?
13950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13951 test $ac_status = 0; }; then
13952 # Now try to grab the symbols.
13953 nlist=conftest.nm
13954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13955 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13956 ac_status=$?
13957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13958 test $ac_status = 0; } && test -s "$nlist"; then
13959 # Try sorting and uniquifying the output.
13960 if sort "$nlist" | uniq > "$nlist"T; then
13961 mv -f "$nlist"T "$nlist"
13962 else
13963 rm -f "$nlist"T
13966 # Make sure that we snagged all the symbols we need.
13967 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13968 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13969 cat <<_LT_EOF > conftest.$ac_ext
13970 #ifdef __cplusplus
13971 extern "C" {
13972 #endif
13974 _LT_EOF
13975 # Now generate the symbol file.
13976 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13978 cat <<_LT_EOF >> conftest.$ac_ext
13980 /* The mapping between symbol names and symbols. */
13981 const struct {
13982 const char *name;
13983 void *address;
13985 lt__PROGRAM__LTX_preloaded_symbols[] =
13987 { "@PROGRAM@", (void *) 0 },
13988 _LT_EOF
13989 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13990 cat <<\_LT_EOF >> conftest.$ac_ext
13991 {0, (void *) 0}
13994 /* This works around a problem in FreeBSD linker */
13995 #ifdef FREEBSD_WORKAROUND
13996 static const void *lt_preloaded_setup() {
13997 return lt__PROGRAM__LTX_preloaded_symbols;
13999 #endif
14001 #ifdef __cplusplus
14003 #endif
14004 _LT_EOF
14005 # Now try linking the two files.
14006 mv conftest.$ac_objext conftstm.$ac_objext
14007 lt_save_LIBS="$LIBS"
14008 lt_save_CFLAGS="$CFLAGS"
14009 LIBS="conftstm.$ac_objext"
14010 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14012 (eval $ac_link) 2>&5
14013 ac_status=$?
14014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14015 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14016 pipe_works=yes
14018 LIBS="$lt_save_LIBS"
14019 CFLAGS="$lt_save_CFLAGS"
14020 else
14021 echo "cannot find nm_test_func in $nlist" >&5
14023 else
14024 echo "cannot find nm_test_var in $nlist" >&5
14026 else
14027 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14029 else
14030 echo "$progname: failed program was:" >&5
14031 cat conftest.$ac_ext >&5
14033 rm -rf conftest* conftst*
14035 # Do not use the global_symbol_pipe unless it works.
14036 if test "$pipe_works" = yes; then
14037 break
14038 else
14039 lt_cv_sys_global_symbol_pipe=
14041 done
14045 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14046 lt_cv_sys_global_symbol_to_cdecl=
14048 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14050 $as_echo "failed" >&6; }
14051 else
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14053 $as_echo "ok" >&6; }
14077 # Check whether --enable-libtool-lock was given.
14078 if test "${enable_libtool_lock+set}" = set; then :
14079 enableval=$enable_libtool_lock;
14082 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14084 # Some flags need to be propagated to the compiler or linker for good
14085 # libtool support.
14086 case $host in
14087 ia64-*-hpux*)
14088 # Find out which ABI we are using.
14089 echo 'int i;' > conftest.$ac_ext
14090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14091 (eval $ac_compile) 2>&5
14092 ac_status=$?
14093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14094 test $ac_status = 0; }; then
14095 case `/usr/bin/file conftest.$ac_objext` in
14096 *ELF-32*)
14097 HPUX_IA64_MODE="32"
14099 *ELF-64*)
14100 HPUX_IA64_MODE="64"
14102 esac
14104 rm -rf conftest*
14106 *-*-irix6*)
14107 # Find out which ABI we are using.
14108 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14110 (eval $ac_compile) 2>&5
14111 ac_status=$?
14112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14113 test $ac_status = 0; }; then
14114 if test "$lt_cv_prog_gnu_ld" = yes; then
14115 case `/usr/bin/file conftest.$ac_objext` in
14116 *32-bit*)
14117 LD="${LD-ld} -melf32bsmip"
14119 *N32*)
14120 LD="${LD-ld} -melf32bmipn32"
14122 *64-bit*)
14123 LD="${LD-ld} -melf64bmip"
14125 esac
14126 else
14127 case `/usr/bin/file conftest.$ac_objext` in
14128 *32-bit*)
14129 LD="${LD-ld} -32"
14131 *N32*)
14132 LD="${LD-ld} -n32"
14134 *64-bit*)
14135 LD="${LD-ld} -64"
14137 esac
14140 rm -rf conftest*
14143 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14144 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14145 # Find out which ABI we are using.
14146 echo 'int i;' > 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 case `/usr/bin/file conftest.o` in
14153 *32-bit*)
14154 case $host in
14155 x86_64-*kfreebsd*-gnu)
14156 LD="${LD-ld} -m elf_i386_fbsd"
14158 x86_64-*linux*)
14159 case `/usr/bin/file conftest.o` in
14160 *x86-64*)
14161 LD="${LD-ld} -m elf32_x86_64"
14164 LD="${LD-ld} -m elf_i386"
14166 esac
14168 powerpc64le-*linux*)
14169 LD="${LD-ld} -m elf32lppclinux"
14171 powerpc64-*linux*)
14172 LD="${LD-ld} -m elf32ppclinux"
14174 s390x-*linux*)
14175 LD="${LD-ld} -m elf_s390"
14177 sparc64-*linux*)
14178 LD="${LD-ld} -m elf32_sparc"
14180 esac
14182 *64-bit*)
14183 case $host in
14184 x86_64-*kfreebsd*-gnu)
14185 LD="${LD-ld} -m elf_x86_64_fbsd"
14187 x86_64-*linux*)
14188 LD="${LD-ld} -m elf_x86_64"
14190 powerpcle-*linux*)
14191 LD="${LD-ld} -m elf64lppc"
14193 powerpc-*linux*)
14194 LD="${LD-ld} -m elf64ppc"
14196 s390*-*linux*|s390*-*tpf*)
14197 LD="${LD-ld} -m elf64_s390"
14199 sparc*-*linux*)
14200 LD="${LD-ld} -m elf64_sparc"
14202 esac
14204 esac
14206 rm -rf conftest*
14209 *-*-sco3.2v5*)
14210 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14211 SAVE_CFLAGS="$CFLAGS"
14212 CFLAGS="$CFLAGS -belf"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14214 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14215 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14216 $as_echo_n "(cached) " >&6
14217 else
14218 ac_ext=c
14219 ac_cpp='$CPP $CPPFLAGS'
14220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14228 main ()
14232 return 0;
14234 _ACEOF
14235 if ac_fn_c_try_link "$LINENO"; then :
14236 lt_cv_cc_needs_belf=yes
14237 else
14238 lt_cv_cc_needs_belf=no
14240 rm -f core conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
14242 ac_ext=c
14243 ac_cpp='$CPP $CPPFLAGS'
14244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14250 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14251 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14252 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14253 CFLAGS="$SAVE_CFLAGS"
14256 sparc*-*solaris*)
14257 # Find out which ABI we are using.
14258 echo 'int i;' > conftest.$ac_ext
14259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14260 (eval $ac_compile) 2>&5
14261 ac_status=$?
14262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14263 test $ac_status = 0; }; then
14264 case `/usr/bin/file conftest.o` in
14265 *64-bit*)
14266 case $lt_cv_prog_gnu_ld in
14267 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14269 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14270 LD="${LD-ld} -64"
14273 esac
14275 esac
14277 rm -rf conftest*
14279 esac
14281 need_locks="$enable_libtool_lock"
14284 case $host_os in
14285 rhapsody* | darwin*)
14286 if test -n "$ac_tool_prefix"; then
14287 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14288 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14290 $as_echo_n "checking for $ac_word... " >&6; }
14291 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 if test -n "$DSYMUTIL"; then
14295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14296 else
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14300 IFS=$as_save_IFS
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14306 break 2
14308 done
14309 done
14310 IFS=$as_save_IFS
14314 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14315 if test -n "$DSYMUTIL"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14317 $as_echo "$DSYMUTIL" >&6; }
14318 else
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14325 if test -z "$ac_cv_prog_DSYMUTIL"; then
14326 ac_ct_DSYMUTIL=$DSYMUTIL
14327 # Extract the first word of "dsymutil", so it can be a program name with args.
14328 set dummy dsymutil; ac_word=$2
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14330 $as_echo_n "checking for $ac_word... " >&6; }
14331 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 if test -n "$ac_ct_DSYMUTIL"; then
14335 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14336 else
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338 for as_dir in $PATH
14340 IFS=$as_save_IFS
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14344 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 break 2
14348 done
14349 done
14350 IFS=$as_save_IFS
14354 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14355 if test -n "$ac_ct_DSYMUTIL"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14357 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14358 else
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14360 $as_echo "no" >&6; }
14363 if test "x$ac_ct_DSYMUTIL" = x; then
14364 DSYMUTIL=":"
14365 else
14366 case $cross_compiling:$ac_tool_warned in
14367 yes:)
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14370 ac_tool_warned=yes ;;
14371 esac
14372 DSYMUTIL=$ac_ct_DSYMUTIL
14374 else
14375 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14378 if test -n "$ac_tool_prefix"; then
14379 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14380 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14382 $as_echo_n "checking for $ac_word... " >&6; }
14383 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 if test -n "$NMEDIT"; then
14387 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14388 else
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14392 IFS=$as_save_IFS
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14398 break 2
14400 done
14401 done
14402 IFS=$as_save_IFS
14406 NMEDIT=$ac_cv_prog_NMEDIT
14407 if test -n "$NMEDIT"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14409 $as_echo "$NMEDIT" >&6; }
14410 else
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 $as_echo "no" >&6; }
14417 if test -z "$ac_cv_prog_NMEDIT"; then
14418 ac_ct_NMEDIT=$NMEDIT
14419 # Extract the first word of "nmedit", so it can be a program name with args.
14420 set dummy nmedit; ac_word=$2
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14422 $as_echo_n "checking for $ac_word... " >&6; }
14423 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 if test -n "$ac_ct_NMEDIT"; then
14427 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14428 else
14429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430 for as_dir in $PATH
14432 IFS=$as_save_IFS
14433 test -z "$as_dir" && as_dir=.
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14436 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14438 break 2
14440 done
14441 done
14442 IFS=$as_save_IFS
14446 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14447 if test -n "$ac_ct_NMEDIT"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14449 $as_echo "$ac_ct_NMEDIT" >&6; }
14450 else
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452 $as_echo "no" >&6; }
14455 if test "x$ac_ct_NMEDIT" = x; then
14456 NMEDIT=":"
14457 else
14458 case $cross_compiling:$ac_tool_warned in
14459 yes:)
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14462 ac_tool_warned=yes ;;
14463 esac
14464 NMEDIT=$ac_ct_NMEDIT
14466 else
14467 NMEDIT="$ac_cv_prog_NMEDIT"
14470 if test -n "$ac_tool_prefix"; then
14471 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14472 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14474 $as_echo_n "checking for $ac_word... " >&6; }
14475 if test "${ac_cv_prog_LIPO+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 if test -n "$LIPO"; then
14479 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14480 else
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14484 IFS=$as_save_IFS
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14488 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14490 break 2
14492 done
14493 done
14494 IFS=$as_save_IFS
14498 LIPO=$ac_cv_prog_LIPO
14499 if test -n "$LIPO"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14501 $as_echo "$LIPO" >&6; }
14502 else
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14509 if test -z "$ac_cv_prog_LIPO"; then
14510 ac_ct_LIPO=$LIPO
14511 # Extract the first word of "lipo", so it can be a program name with args.
14512 set dummy lipo; ac_word=$2
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14514 $as_echo_n "checking for $ac_word... " >&6; }
14515 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518 if test -n "$ac_ct_LIPO"; then
14519 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14520 else
14521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522 for as_dir in $PATH
14524 IFS=$as_save_IFS
14525 test -z "$as_dir" && as_dir=.
14526 for ac_exec_ext in '' $ac_executable_extensions; do
14527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14528 ac_cv_prog_ac_ct_LIPO="lipo"
14529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14530 break 2
14532 done
14533 done
14534 IFS=$as_save_IFS
14538 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14539 if test -n "$ac_ct_LIPO"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14541 $as_echo "$ac_ct_LIPO" >&6; }
14542 else
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544 $as_echo "no" >&6; }
14547 if test "x$ac_ct_LIPO" = x; then
14548 LIPO=":"
14549 else
14550 case $cross_compiling:$ac_tool_warned in
14551 yes:)
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14554 ac_tool_warned=yes ;;
14555 esac
14556 LIPO=$ac_ct_LIPO
14558 else
14559 LIPO="$ac_cv_prog_LIPO"
14562 if test -n "$ac_tool_prefix"; then
14563 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14564 set dummy ${ac_tool_prefix}otool; ac_word=$2
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14566 $as_echo_n "checking for $ac_word... " >&6; }
14567 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 if test -n "$OTOOL"; then
14571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14572 else
14573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574 for as_dir in $PATH
14576 IFS=$as_save_IFS
14577 test -z "$as_dir" && as_dir=.
14578 for ac_exec_ext in '' $ac_executable_extensions; do
14579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14580 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14582 break 2
14584 done
14585 done
14586 IFS=$as_save_IFS
14590 OTOOL=$ac_cv_prog_OTOOL
14591 if test -n "$OTOOL"; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14593 $as_echo "$OTOOL" >&6; }
14594 else
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14596 $as_echo "no" >&6; }
14601 if test -z "$ac_cv_prog_OTOOL"; then
14602 ac_ct_OTOOL=$OTOOL
14603 # Extract the first word of "otool", so it can be a program name with args.
14604 set dummy otool; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14606 $as_echo_n "checking for $ac_word... " >&6; }
14607 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14608 $as_echo_n "(cached) " >&6
14609 else
14610 if test -n "$ac_ct_OTOOL"; then
14611 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14612 else
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14616 IFS=$as_save_IFS
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14620 ac_cv_prog_ac_ct_OTOOL="otool"
14621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14622 break 2
14624 done
14625 done
14626 IFS=$as_save_IFS
14630 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14631 if test -n "$ac_ct_OTOOL"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14633 $as_echo "$ac_ct_OTOOL" >&6; }
14634 else
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14636 $as_echo "no" >&6; }
14639 if test "x$ac_ct_OTOOL" = x; then
14640 OTOOL=":"
14641 else
14642 case $cross_compiling:$ac_tool_warned in
14643 yes:)
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14646 ac_tool_warned=yes ;;
14647 esac
14648 OTOOL=$ac_ct_OTOOL
14650 else
14651 OTOOL="$ac_cv_prog_OTOOL"
14654 if test -n "$ac_tool_prefix"; then
14655 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14656 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 $as_echo_n "checking for $ac_word... " >&6; }
14659 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 if test -n "$OTOOL64"; then
14663 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14664 else
14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14668 IFS=$as_save_IFS
14669 test -z "$as_dir" && as_dir=.
14670 for ac_exec_ext in '' $ac_executable_extensions; do
14671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14672 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14674 break 2
14676 done
14677 done
14678 IFS=$as_save_IFS
14682 OTOOL64=$ac_cv_prog_OTOOL64
14683 if test -n "$OTOOL64"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14685 $as_echo "$OTOOL64" >&6; }
14686 else
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688 $as_echo "no" >&6; }
14693 if test -z "$ac_cv_prog_OTOOL64"; then
14694 ac_ct_OTOOL64=$OTOOL64
14695 # Extract the first word of "otool64", so it can be a program name with args.
14696 set dummy otool64; ac_word=$2
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14698 $as_echo_n "checking for $ac_word... " >&6; }
14699 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14700 $as_echo_n "(cached) " >&6
14701 else
14702 if test -n "$ac_ct_OTOOL64"; then
14703 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14704 else
14705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706 for as_dir in $PATH
14708 IFS=$as_save_IFS
14709 test -z "$as_dir" && as_dir=.
14710 for ac_exec_ext in '' $ac_executable_extensions; do
14711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14712 ac_cv_prog_ac_ct_OTOOL64="otool64"
14713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14714 break 2
14716 done
14717 done
14718 IFS=$as_save_IFS
14722 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14723 if test -n "$ac_ct_OTOOL64"; then
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14725 $as_echo "$ac_ct_OTOOL64" >&6; }
14726 else
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728 $as_echo "no" >&6; }
14731 if test "x$ac_ct_OTOOL64" = x; then
14732 OTOOL64=":"
14733 else
14734 case $cross_compiling:$ac_tool_warned in
14735 yes:)
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14738 ac_tool_warned=yes ;;
14739 esac
14740 OTOOL64=$ac_ct_OTOOL64
14742 else
14743 OTOOL64="$ac_cv_prog_OTOOL64"
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14773 $as_echo_n "checking for -single_module linker flag... " >&6; }
14774 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14775 $as_echo_n "(cached) " >&6
14776 else
14777 lt_cv_apple_cc_single_mod=no
14778 if test -z "${LT_MULTI_MODULE}"; then
14779 # By default we will add the -single_module flag. You can override
14780 # by either setting the environment variable LT_MULTI_MODULE
14781 # non-empty at configure time, or by adding -multi_module to the
14782 # link flags.
14783 rm -rf libconftest.dylib*
14784 echo "int foo(void){return 1;}" > conftest.c
14785 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14786 -dynamiclib -Wl,-single_module conftest.c" >&5
14787 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14788 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14789 _lt_result=$?
14790 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14791 lt_cv_apple_cc_single_mod=yes
14792 else
14793 cat conftest.err >&5
14795 rm -rf libconftest.dylib*
14796 rm -f conftest.*
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14800 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14802 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14803 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 lt_cv_ld_exported_symbols_list=no
14807 save_LDFLAGS=$LDFLAGS
14808 echo "_main" > conftest.sym
14809 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14814 main ()
14818 return 0;
14820 _ACEOF
14821 if ac_fn_c_try_link "$LINENO"; then :
14822 lt_cv_ld_exported_symbols_list=yes
14823 else
14824 lt_cv_ld_exported_symbols_list=no
14826 rm -f core conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
14828 LDFLAGS="$save_LDFLAGS"
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14832 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14834 $as_echo_n "checking for -force_load linker flag... " >&6; }
14835 if test "${lt_cv_ld_force_load+set}" = set; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838 lt_cv_ld_force_load=no
14839 cat > conftest.c << _LT_EOF
14840 int forced_loaded() { return 2;}
14841 _LT_EOF
14842 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14843 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14844 echo "$AR cru libconftest.a conftest.o" >&5
14845 $AR cru libconftest.a conftest.o 2>&5
14846 cat > conftest.c << _LT_EOF
14847 int main() { return 0;}
14848 _LT_EOF
14849 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14850 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14851 _lt_result=$?
14852 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14853 lt_cv_ld_force_load=yes
14854 else
14855 cat conftest.err >&5
14857 rm -f conftest.err libconftest.a conftest conftest.c
14858 rm -rf conftest.dSYM
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14862 $as_echo "$lt_cv_ld_force_load" >&6; }
14863 case $host_os in
14864 rhapsody* | darwin1.[012])
14865 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14866 darwin1.*)
14867 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14868 darwin*) # darwin 5.x on
14869 # if running on 10.5 or later, the deployment target defaults
14870 # to the OS version, if on x86, and 10.4, the deployment
14871 # target defaults to 10.4. Don't you love it?
14872 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14873 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14874 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14875 10.[012][,.]*)
14876 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14877 10.*)
14878 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14879 esac
14881 esac
14882 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14883 _lt_dar_single_mod='$single_module'
14885 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14886 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14887 else
14888 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14890 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14891 _lt_dsymutil='~$DSYMUTIL $lib || :'
14892 else
14893 _lt_dsymutil=
14896 esac
14899 for ac_header in dlfcn.h
14900 do :
14901 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14902 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14903 cat >>confdefs.h <<_ACEOF
14904 #define HAVE_DLFCN_H 1
14905 _ACEOF
14908 done
14914 # Set options
14918 enable_dlopen=no
14921 enable_win32_dll=no
14924 # Check whether --enable-shared was given.
14925 if test "${enable_shared+set}" = set; then :
14926 enableval=$enable_shared; p=${PACKAGE-default}
14927 case $enableval in
14928 yes) enable_shared=yes ;;
14929 no) enable_shared=no ;;
14931 enable_shared=no
14932 # Look at the argument we got. We use all the common list separators.
14933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14934 for pkg in $enableval; do
14935 IFS="$lt_save_ifs"
14936 if test "X$pkg" = "X$p"; then
14937 enable_shared=yes
14939 done
14940 IFS="$lt_save_ifs"
14942 esac
14943 else
14944 enable_shared=yes
14955 # Check whether --enable-static was given.
14956 if test "${enable_static+set}" = set; then :
14957 enableval=$enable_static; p=${PACKAGE-default}
14958 case $enableval in
14959 yes) enable_static=yes ;;
14960 no) enable_static=no ;;
14962 enable_static=no
14963 # Look at the argument we got. We use all the common list separators.
14964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14965 for pkg in $enableval; do
14966 IFS="$lt_save_ifs"
14967 if test "X$pkg" = "X$p"; then
14968 enable_static=yes
14970 done
14971 IFS="$lt_save_ifs"
14973 esac
14974 else
14975 enable_static=yes
14987 # Check whether --with-pic was given.
14988 if test "${with_pic+set}" = set; then :
14989 withval=$with_pic; pic_mode="$withval"
14990 else
14991 pic_mode=default
14995 test -z "$pic_mode" && pic_mode=default
15003 # Check whether --enable-fast-install was given.
15004 if test "${enable_fast_install+set}" = set; then :
15005 enableval=$enable_fast_install; p=${PACKAGE-default}
15006 case $enableval in
15007 yes) enable_fast_install=yes ;;
15008 no) enable_fast_install=no ;;
15010 enable_fast_install=no
15011 # Look at the argument we got. We use all the common list separators.
15012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15013 for pkg in $enableval; do
15014 IFS="$lt_save_ifs"
15015 if test "X$pkg" = "X$p"; then
15016 enable_fast_install=yes
15018 done
15019 IFS="$lt_save_ifs"
15021 esac
15022 else
15023 enable_fast_install=yes
15036 # This can be used to rebuild libtool when needed
15037 LIBTOOL_DEPS="$ltmain"
15039 # Always use our own libtool.
15040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15067 test -z "$LN_S" && LN_S="ln -s"
15082 if test -n "${ZSH_VERSION+set}" ; then
15083 setopt NO_GLOB_SUBST
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15087 $as_echo_n "checking for objdir... " >&6; }
15088 if test "${lt_cv_objdir+set}" = set; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 rm -f .libs 2>/dev/null
15092 mkdir .libs 2>/dev/null
15093 if test -d .libs; then
15094 lt_cv_objdir=.libs
15095 else
15096 # MS-DOS does not allow filenames that begin with a dot.
15097 lt_cv_objdir=_libs
15099 rmdir .libs 2>/dev/null
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15102 $as_echo "$lt_cv_objdir" >&6; }
15103 objdir=$lt_cv_objdir
15109 cat >>confdefs.h <<_ACEOF
15110 #define LT_OBJDIR "$lt_cv_objdir/"
15111 _ACEOF
15116 case $host_os in
15117 aix3*)
15118 # AIX sometimes has problems with the GCC collect2 program. For some
15119 # reason, if we set the COLLECT_NAMES environment variable, the problems
15120 # vanish in a puff of smoke.
15121 if test "X${COLLECT_NAMES+set}" != Xset; then
15122 COLLECT_NAMES=
15123 export COLLECT_NAMES
15126 esac
15128 # Global variables:
15129 ofile=libtool
15130 can_build_shared=yes
15132 # All known linkers require a `.a' archive for static linking (except MSVC,
15133 # which needs '.lib').
15134 libext=a
15136 with_gnu_ld="$lt_cv_prog_gnu_ld"
15138 old_CC="$CC"
15139 old_CFLAGS="$CFLAGS"
15141 # Set sane defaults for various variables
15142 test -z "$CC" && CC=cc
15143 test -z "$LTCC" && LTCC=$CC
15144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15145 test -z "$LD" && LD=ld
15146 test -z "$ac_objext" && ac_objext=o
15148 for cc_temp in $compiler""; do
15149 case $cc_temp in
15150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15152 \-*) ;;
15153 *) break;;
15154 esac
15155 done
15156 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15159 # Only perform the check for file, if the check method requires it
15160 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15161 case $deplibs_check_method in
15162 file_magic*)
15163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15165 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15166 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 case $MAGIC_CMD in
15170 [\\/*] | ?:[\\/]*)
15171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15174 lt_save_MAGIC_CMD="$MAGIC_CMD"
15175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15177 for ac_dir in $ac_dummy; do
15178 IFS="$lt_save_ifs"
15179 test -z "$ac_dir" && ac_dir=.
15180 if test -f $ac_dir/${ac_tool_prefix}file; then
15181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15182 if test -n "$file_magic_test_file"; then
15183 case $deplibs_check_method in
15184 "file_magic "*)
15185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15188 $EGREP "$file_magic_regex" > /dev/null; then
15190 else
15191 cat <<_LT_EOF 1>&2
15193 *** Warning: the command libtool uses to detect shared libraries,
15194 *** $file_magic_cmd, produces output that libtool cannot recognize.
15195 *** The result is that libtool may fail to recognize shared libraries
15196 *** as such. This will affect the creation of libtool libraries that
15197 *** depend on shared libraries, but programs linked with such libtool
15198 *** libraries will work regardless of this problem. Nevertheless, you
15199 *** may want to report the problem to your system manager and/or to
15200 *** bug-libtool@gnu.org
15202 _LT_EOF
15203 fi ;;
15204 esac
15206 break
15208 done
15209 IFS="$lt_save_ifs"
15210 MAGIC_CMD="$lt_save_MAGIC_CMD"
15212 esac
15215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15216 if test -n "$MAGIC_CMD"; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15218 $as_echo "$MAGIC_CMD" >&6; }
15219 else
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221 $as_echo "no" >&6; }
15228 if test -z "$lt_cv_path_MAGIC_CMD"; then
15229 if test -n "$ac_tool_prefix"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15231 $as_echo_n "checking for file... " >&6; }
15232 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 case $MAGIC_CMD in
15236 [\\/*] | ?:[\\/]*)
15237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15240 lt_save_MAGIC_CMD="$MAGIC_CMD"
15241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15243 for ac_dir in $ac_dummy; do
15244 IFS="$lt_save_ifs"
15245 test -z "$ac_dir" && ac_dir=.
15246 if test -f $ac_dir/file; then
15247 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15248 if test -n "$file_magic_test_file"; then
15249 case $deplibs_check_method in
15250 "file_magic "*)
15251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15254 $EGREP "$file_magic_regex" > /dev/null; then
15256 else
15257 cat <<_LT_EOF 1>&2
15259 *** Warning: the command libtool uses to detect shared libraries,
15260 *** $file_magic_cmd, produces output that libtool cannot recognize.
15261 *** The result is that libtool may fail to recognize shared libraries
15262 *** as such. This will affect the creation of libtool libraries that
15263 *** depend on shared libraries, but programs linked with such libtool
15264 *** libraries will work regardless of this problem. Nevertheless, you
15265 *** may want to report the problem to your system manager and/or to
15266 *** bug-libtool@gnu.org
15268 _LT_EOF
15269 fi ;;
15270 esac
15272 break
15274 done
15275 IFS="$lt_save_ifs"
15276 MAGIC_CMD="$lt_save_MAGIC_CMD"
15278 esac
15281 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15282 if test -n "$MAGIC_CMD"; then
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15284 $as_echo "$MAGIC_CMD" >&6; }
15285 else
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15287 $as_echo "no" >&6; }
15291 else
15292 MAGIC_CMD=:
15298 esac
15300 # Use C for the default configuration in the libtool script
15302 lt_save_CC="$CC"
15303 ac_ext=c
15304 ac_cpp='$CPP $CPPFLAGS'
15305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310 # Source file extension for C test sources.
15311 ac_ext=c
15313 # Object file extension for compiled C test sources.
15314 objext=o
15315 objext=$objext
15317 # Code to be used in simple compile tests
15318 lt_simple_compile_test_code="int some_variable = 0;"
15320 # Code to be used in simple link tests
15321 lt_simple_link_test_code='int main(){return(0);}'
15329 # If no C compiler was specified, use CC.
15330 LTCC=${LTCC-"$CC"}
15332 # If no C compiler flags were specified, use CFLAGS.
15333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15335 # Allow CC to be a program name with arguments.
15336 compiler=$CC
15338 # Save the default compiler, since it gets overwritten when the other
15339 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15340 compiler_DEFAULT=$CC
15342 # save warnings/boilerplate of simple test code
15343 ac_outfile=conftest.$ac_objext
15344 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15345 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15346 _lt_compiler_boilerplate=`cat conftest.err`
15347 $RM conftest*
15349 ac_outfile=conftest.$ac_objext
15350 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15351 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15352 _lt_linker_boilerplate=`cat conftest.err`
15353 $RM -r conftest*
15356 ## CAVEAT EMPTOR:
15357 ## There is no encapsulation within the following macros, do not change
15358 ## the running order or otherwise move them around unless you know exactly
15359 ## what you are doing...
15360 if test -n "$compiler"; then
15362 lt_prog_compiler_no_builtin_flag=
15364 if test "$GCC" = yes; then
15365 case $cc_basename in
15366 nvcc*)
15367 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15369 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15370 esac
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15373 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15374 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 lt_cv_prog_compiler_rtti_exceptions=no
15378 ac_outfile=conftest.$ac_objext
15379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15380 lt_compiler_flag="-fno-rtti -fno-exceptions"
15381 # Insert the option either (1) after the last *FLAGS variable, or
15382 # (2) before a word containing "conftest.", or (3) at the end.
15383 # Note that $ac_compile itself does not contain backslashes and begins
15384 # with a dollar sign (not a hyphen), so the echo should work correctly.
15385 # The option is referenced via a variable to avoid confusing sed.
15386 lt_compile=`echo "$ac_compile" | $SED \
15387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15389 -e 's:$: $lt_compiler_flag:'`
15390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15391 (eval "$lt_compile" 2>conftest.err)
15392 ac_status=$?
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 if (exit $ac_status) && test -s "$ac_outfile"; then
15396 # The compiler can only warn and ignore the option if not recognized
15397 # So say no if there are warnings other than the usual output.
15398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15401 lt_cv_prog_compiler_rtti_exceptions=yes
15404 $RM conftest*
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15408 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15410 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15411 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15412 else
15423 lt_prog_compiler_wl=
15424 lt_prog_compiler_pic=
15425 lt_prog_compiler_static=
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15428 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15430 if test "$GCC" = yes; then
15431 lt_prog_compiler_wl='-Wl,'
15432 lt_prog_compiler_static='-static'
15434 case $host_os in
15435 aix*)
15436 # All AIX code is PIC.
15437 if test "$host_cpu" = ia64; then
15438 # AIX 5 now supports IA64 processor
15439 lt_prog_compiler_static='-Bstatic'
15441 lt_prog_compiler_pic='-fPIC'
15444 amigaos*)
15445 case $host_cpu in
15446 powerpc)
15447 # see comment about AmigaOS4 .so support
15448 lt_prog_compiler_pic='-fPIC'
15450 m68k)
15451 # FIXME: we need at least 68020 code to build shared libraries, but
15452 # adding the `-m68020' flag to GCC prevents building anything better,
15453 # like `-m68040'.
15454 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15456 esac
15459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15460 # PIC is the default for these OSes.
15463 mingw* | cygwin* | pw32* | os2* | cegcc*)
15464 # This hack is so that the source file can tell whether it is being
15465 # built for inclusion in a dll (and should export symbols for example).
15466 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15467 # (--disable-auto-import) libraries
15468 lt_prog_compiler_pic='-DDLL_EXPORT'
15471 darwin* | rhapsody*)
15472 # PIC is the default on this platform
15473 # Common symbols not allowed in MH_DYLIB files
15474 lt_prog_compiler_pic='-fno-common'
15477 haiku*)
15478 # PIC is the default for Haiku.
15479 # The "-static" flag exists, but is broken.
15480 lt_prog_compiler_static=
15483 hpux*)
15484 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15485 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15486 # sets the default TLS model and affects inlining.
15487 case $host_cpu in
15488 hppa*64*)
15489 # +Z the default
15492 lt_prog_compiler_pic='-fPIC'
15494 esac
15497 interix[3-9]*)
15498 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15499 # Instead, we relocate shared libraries at runtime.
15502 msdosdjgpp*)
15503 # Just because we use GCC doesn't mean we suddenly get shared libraries
15504 # on systems that don't support them.
15505 lt_prog_compiler_can_build_shared=no
15506 enable_shared=no
15509 *nto* | *qnx*)
15510 # QNX uses GNU C++, but need to define -shared option too, otherwise
15511 # it will coredump.
15512 lt_prog_compiler_pic='-fPIC -shared'
15515 sysv4*MP*)
15516 if test -d /usr/nec; then
15517 lt_prog_compiler_pic=-Kconform_pic
15522 lt_prog_compiler_pic='-fPIC'
15524 esac
15526 case $cc_basename in
15527 nvcc*) # Cuda Compiler Driver 2.2
15528 lt_prog_compiler_wl='-Xlinker '
15529 lt_prog_compiler_pic='-Xcompiler -fPIC'
15531 esac
15532 else
15533 # PORTME Check for flag to pass linker flags through the system compiler.
15534 case $host_os in
15535 aix*)
15536 lt_prog_compiler_wl='-Wl,'
15537 if test "$host_cpu" = ia64; then
15538 # AIX 5 now supports IA64 processor
15539 lt_prog_compiler_static='-Bstatic'
15540 else
15541 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15545 mingw* | cygwin* | pw32* | os2* | cegcc*)
15546 # This hack is so that the source file can tell whether it is being
15547 # built for inclusion in a dll (and should export symbols for example).
15548 lt_prog_compiler_pic='-DDLL_EXPORT'
15551 hpux9* | hpux10* | hpux11*)
15552 lt_prog_compiler_wl='-Wl,'
15553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15554 # not for PA HP-UX.
15555 case $host_cpu in
15556 hppa*64*|ia64*)
15557 # +Z the default
15560 lt_prog_compiler_pic='+Z'
15562 esac
15563 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15564 lt_prog_compiler_static='${wl}-a ${wl}archive'
15567 irix5* | irix6* | nonstopux*)
15568 lt_prog_compiler_wl='-Wl,'
15569 # PIC (with -KPIC) is the default.
15570 lt_prog_compiler_static='-non_shared'
15573 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15574 case $cc_basename in
15575 # old Intel for x86_64 which still supported -KPIC.
15576 ecc*)
15577 lt_prog_compiler_wl='-Wl,'
15578 lt_prog_compiler_pic='-KPIC'
15579 lt_prog_compiler_static='-static'
15581 # icc used to be incompatible with GCC.
15582 # ICC 10 doesn't accept -KPIC any more.
15583 icc* | ifort*)
15584 lt_prog_compiler_wl='-Wl,'
15585 lt_prog_compiler_pic='-fPIC'
15586 lt_prog_compiler_static='-static'
15588 # Lahey Fortran 8.1.
15589 lf95*)
15590 lt_prog_compiler_wl='-Wl,'
15591 lt_prog_compiler_pic='--shared'
15592 lt_prog_compiler_static='--static'
15594 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15595 # Portland Group compilers (*not* the Pentium gcc compiler,
15596 # which looks to be a dead project)
15597 lt_prog_compiler_wl='-Wl,'
15598 lt_prog_compiler_pic='-fpic'
15599 lt_prog_compiler_static='-Bstatic'
15601 ccc*)
15602 lt_prog_compiler_wl='-Wl,'
15603 # All Alpha code is PIC.
15604 lt_prog_compiler_static='-non_shared'
15606 xl* | bgxl* | bgf* | mpixl*)
15607 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15608 lt_prog_compiler_wl='-Wl,'
15609 lt_prog_compiler_pic='-qpic'
15610 lt_prog_compiler_static='-qstaticlink'
15613 case `$CC -V 2>&1 | sed 5q` in
15614 *Sun\ F* | *Sun*Fortran*)
15615 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15616 lt_prog_compiler_pic='-KPIC'
15617 lt_prog_compiler_static='-Bstatic'
15618 lt_prog_compiler_wl=''
15620 *Sun\ C*)
15621 # Sun C 5.9
15622 lt_prog_compiler_pic='-KPIC'
15623 lt_prog_compiler_static='-Bstatic'
15624 lt_prog_compiler_wl='-Wl,'
15626 esac
15628 esac
15631 newsos6)
15632 lt_prog_compiler_pic='-KPIC'
15633 lt_prog_compiler_static='-Bstatic'
15636 *nto* | *qnx*)
15637 # QNX uses GNU C++, but need to define -shared option too, otherwise
15638 # it will coredump.
15639 lt_prog_compiler_pic='-fPIC -shared'
15642 osf3* | osf4* | osf5*)
15643 lt_prog_compiler_wl='-Wl,'
15644 # All OSF/1 code is PIC.
15645 lt_prog_compiler_static='-non_shared'
15648 rdos*)
15649 lt_prog_compiler_static='-non_shared'
15652 solaris*)
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-Bstatic'
15655 case $cc_basename in
15656 f77* | f90* | f95*)
15657 lt_prog_compiler_wl='-Qoption ld ';;
15659 lt_prog_compiler_wl='-Wl,';;
15660 esac
15663 sunos4*)
15664 lt_prog_compiler_wl='-Qoption ld '
15665 lt_prog_compiler_pic='-PIC'
15666 lt_prog_compiler_static='-Bstatic'
15669 sysv4 | sysv4.2uw2* | sysv4.3*)
15670 lt_prog_compiler_wl='-Wl,'
15671 lt_prog_compiler_pic='-KPIC'
15672 lt_prog_compiler_static='-Bstatic'
15675 sysv4*MP*)
15676 if test -d /usr/nec ;then
15677 lt_prog_compiler_pic='-Kconform_pic'
15678 lt_prog_compiler_static='-Bstatic'
15682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15683 lt_prog_compiler_wl='-Wl,'
15684 lt_prog_compiler_pic='-KPIC'
15685 lt_prog_compiler_static='-Bstatic'
15688 unicos*)
15689 lt_prog_compiler_wl='-Wl,'
15690 lt_prog_compiler_can_build_shared=no
15693 uts4*)
15694 lt_prog_compiler_pic='-pic'
15695 lt_prog_compiler_static='-Bstatic'
15699 lt_prog_compiler_can_build_shared=no
15701 esac
15704 case $host_os in
15705 # For platforms which do not support PIC, -DPIC is meaningless:
15706 *djgpp*)
15707 lt_prog_compiler_pic=
15710 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15712 esac
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15714 $as_echo "$lt_prog_compiler_pic" >&6; }
15722 # Check to make sure the PIC flag actually works.
15724 if test -n "$lt_prog_compiler_pic"; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15726 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15727 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15728 $as_echo_n "(cached) " >&6
15729 else
15730 lt_cv_prog_compiler_pic_works=no
15731 ac_outfile=conftest.$ac_objext
15732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15733 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15734 # Insert the option either (1) after the last *FLAGS variable, or
15735 # (2) before a word containing "conftest.", or (3) at the end.
15736 # Note that $ac_compile itself does not contain backslashes and begins
15737 # with a dollar sign (not a hyphen), so the echo should work correctly.
15738 # The option is referenced via a variable to avoid confusing sed.
15739 lt_compile=`echo "$ac_compile" | $SED \
15740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15742 -e 's:$: $lt_compiler_flag:'`
15743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15744 (eval "$lt_compile" 2>conftest.err)
15745 ac_status=$?
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 if (exit $ac_status) && test -s "$ac_outfile"; then
15749 # The compiler can only warn and ignore the option if not recognized
15750 # So say no if there are warnings other than the usual output.
15751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15753 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15754 lt_cv_prog_compiler_pic_works=yes
15757 $RM conftest*
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15761 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15763 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15764 case $lt_prog_compiler_pic in
15765 "" | " "*) ;;
15766 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15767 esac
15768 else
15769 lt_prog_compiler_pic=
15770 lt_prog_compiler_can_build_shared=no
15781 # Check to make sure the static flag actually works.
15783 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15785 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15786 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15787 $as_echo_n "(cached) " >&6
15788 else
15789 lt_cv_prog_compiler_static_works=no
15790 save_LDFLAGS="$LDFLAGS"
15791 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15792 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15794 # The linker can only warn and ignore the option if not recognized
15795 # So say no if there are warnings
15796 if test -s conftest.err; then
15797 # Append any errors to the config.log.
15798 cat conftest.err 1>&5
15799 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15801 if diff conftest.exp conftest.er2 >/dev/null; then
15802 lt_cv_prog_compiler_static_works=yes
15804 else
15805 lt_cv_prog_compiler_static_works=yes
15808 $RM -r conftest*
15809 LDFLAGS="$save_LDFLAGS"
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15813 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15815 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15817 else
15818 lt_prog_compiler_static=
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15829 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15830 $as_echo_n "(cached) " >&6
15831 else
15832 lt_cv_prog_compiler_c_o=no
15833 $RM -r conftest 2>/dev/null
15834 mkdir conftest
15835 cd conftest
15836 mkdir out
15837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15839 lt_compiler_flag="-o out/conftest2.$ac_objext"
15840 # Insert the option either (1) after the last *FLAGS variable, or
15841 # (2) before a word containing "conftest.", or (3) at the end.
15842 # Note that $ac_compile itself does not contain backslashes and begins
15843 # with a dollar sign (not a hyphen), so the echo should work correctly.
15844 lt_compile=`echo "$ac_compile" | $SED \
15845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15847 -e 's:$: $lt_compiler_flag:'`
15848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15849 (eval "$lt_compile" 2>out/conftest.err)
15850 ac_status=$?
15851 cat out/conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15854 then
15855 # The compiler can only warn and ignore the option if not recognized
15856 # So say no if there are warnings
15857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15860 lt_cv_prog_compiler_c_o=yes
15863 chmod u+w . 2>&5
15864 $RM conftest*
15865 # SGI C++ compiler will create directory out/ii_files/ for
15866 # template instantiation
15867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15868 $RM out/* && rmdir out
15869 cd ..
15870 $RM -r conftest
15871 $RM conftest*
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15875 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15883 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 lt_cv_prog_compiler_c_o=no
15888 $RM -r conftest 2>/dev/null
15889 mkdir conftest
15890 cd conftest
15891 mkdir out
15892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15894 lt_compiler_flag="-o out/conftest2.$ac_objext"
15895 # Insert the option either (1) after the last *FLAGS variable, or
15896 # (2) before a word containing "conftest.", or (3) at the end.
15897 # Note that $ac_compile itself does not contain backslashes and begins
15898 # with a dollar sign (not a hyphen), so the echo should work correctly.
15899 lt_compile=`echo "$ac_compile" | $SED \
15900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15902 -e 's:$: $lt_compiler_flag:'`
15903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15904 (eval "$lt_compile" 2>out/conftest.err)
15905 ac_status=$?
15906 cat out/conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15909 then
15910 # The compiler can only warn and ignore the option if not recognized
15911 # So say no if there are warnings
15912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15915 lt_cv_prog_compiler_c_o=yes
15918 chmod u+w . 2>&5
15919 $RM conftest*
15920 # SGI C++ compiler will create directory out/ii_files/ for
15921 # template instantiation
15922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15923 $RM out/* && rmdir out
15924 cd ..
15925 $RM -r conftest
15926 $RM conftest*
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15930 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15935 hard_links="nottested"
15936 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15937 # do not overwrite the value of need_locks provided by the user
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15939 $as_echo_n "checking if we can lock with hard links... " >&6; }
15940 hard_links=yes
15941 $RM conftest*
15942 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15943 touch conftest.a
15944 ln conftest.a conftest.b 2>&5 || hard_links=no
15945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15947 $as_echo "$hard_links" >&6; }
15948 if test "$hard_links" = no; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15950 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15951 need_locks=warn
15953 else
15954 need_locks=no
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15963 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15965 runpath_var=
15966 allow_undefined_flag=
15967 always_export_symbols=no
15968 archive_cmds=
15969 archive_expsym_cmds=
15970 compiler_needs_object=no
15971 enable_shared_with_static_runtimes=no
15972 export_dynamic_flag_spec=
15973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15974 hardcode_automatic=no
15975 hardcode_direct=no
15976 hardcode_direct_absolute=no
15977 hardcode_libdir_flag_spec=
15978 hardcode_libdir_flag_spec_ld=
15979 hardcode_libdir_separator=
15980 hardcode_minus_L=no
15981 hardcode_shlibpath_var=unsupported
15982 inherit_rpath=no
15983 link_all_deplibs=unknown
15984 module_cmds=
15985 module_expsym_cmds=
15986 old_archive_from_new_cmds=
15987 old_archive_from_expsyms_cmds=
15988 thread_safe_flag_spec=
15989 whole_archive_flag_spec=
15990 # include_expsyms should be a list of space-separated symbols to be *always*
15991 # included in the symbol list
15992 include_expsyms=
15993 # exclude_expsyms can be an extended regexp of symbols to exclude
15994 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15995 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15996 # as well as any symbol that contains `d'.
15997 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15998 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15999 # platforms (ab)use it in PIC code, but their linkers get confused if
16000 # the symbol is explicitly referenced. Since portable code cannot
16001 # rely on this symbol name, it's probably fine to never include it in
16002 # preloaded symbol tables.
16003 # Exclude shared library initialization/finalization symbols.
16004 extract_expsyms_cmds=
16006 case $host_os in
16007 cygwin* | mingw* | pw32* | cegcc*)
16008 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16009 # When not using gcc, we currently assume that we are using
16010 # Microsoft Visual C++.
16011 if test "$GCC" != yes; then
16012 with_gnu_ld=no
16015 interix*)
16016 # we just hope/assume this is gcc and not c89 (= MSVC++)
16017 with_gnu_ld=yes
16019 openbsd*)
16020 with_gnu_ld=no
16022 esac
16024 ld_shlibs=yes
16026 # On some targets, GNU ld is compatible enough with the native linker
16027 # that we're better off using the native interface for both.
16028 lt_use_gnu_ld_interface=no
16029 if test "$with_gnu_ld" = yes; then
16030 case $host_os in
16031 aix*)
16032 # The AIX port of GNU ld has always aspired to compatibility
16033 # with the native linker. However, as the warning in the GNU ld
16034 # block says, versions before 2.19.5* couldn't really create working
16035 # shared libraries, regardless of the interface used.
16036 case `$LD -v 2>&1` in
16037 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16038 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16039 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16041 lt_use_gnu_ld_interface=yes
16043 esac
16046 lt_use_gnu_ld_interface=yes
16048 esac
16051 if test "$lt_use_gnu_ld_interface" = yes; then
16052 # If archive_cmds runs LD, not CC, wlarc should be empty
16053 wlarc='${wl}'
16055 # Set some defaults for GNU ld with shared library support. These
16056 # are reset later if shared libraries are not supported. Putting them
16057 # here allows them to be overridden if necessary.
16058 runpath_var=LD_RUN_PATH
16059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16060 export_dynamic_flag_spec='${wl}--export-dynamic'
16061 # ancient GNU ld didn't support --whole-archive et. al.
16062 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16063 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16064 else
16065 whole_archive_flag_spec=
16067 supports_anon_versioning=no
16068 case `$LD -v 2>&1` in
16069 *GNU\ gold*) supports_anon_versioning=yes ;;
16070 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16073 *\ 2.11.*) ;; # other 2.11 versions
16074 *) supports_anon_versioning=yes ;;
16075 esac
16077 # See if GNU ld supports shared libraries.
16078 case $host_os in
16079 aix[3-9]*)
16080 # On AIX/PPC, the GNU linker is very broken
16081 if test "$host_cpu" != ia64; then
16082 ld_shlibs=no
16083 cat <<_LT_EOF 1>&2
16085 *** Warning: the GNU linker, at least up to release 2.19, is reported
16086 *** to be unable to reliably create shared libraries on AIX.
16087 *** Therefore, libtool is disabling shared libraries support. If you
16088 *** really care for shared libraries, you may want to install binutils
16089 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16090 *** You will then need to restart the configuration process.
16092 _LT_EOF
16096 amigaos*)
16097 case $host_cpu in
16098 powerpc)
16099 # see comment about AmigaOS4 .so support
16100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16101 archive_expsym_cmds=''
16103 m68k)
16104 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)'
16105 hardcode_libdir_flag_spec='-L$libdir'
16106 hardcode_minus_L=yes
16108 esac
16111 beos*)
16112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16113 allow_undefined_flag=unsupported
16114 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16115 # support --undefined. This deserves some investigation. FIXME
16116 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16117 else
16118 ld_shlibs=no
16122 cygwin* | mingw* | pw32* | cegcc*)
16123 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16124 # as there is no search path for DLLs.
16125 hardcode_libdir_flag_spec='-L$libdir'
16126 export_dynamic_flag_spec='${wl}--export-all-symbols'
16127 allow_undefined_flag=unsupported
16128 always_export_symbols=no
16129 enable_shared_with_static_runtimes=yes
16130 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16134 # If the export-symbols file already is a .def file (1st line
16135 # is EXPORTS), use it as is; otherwise, prepend...
16136 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16137 cp $export_symbols $output_objdir/$soname.def;
16138 else
16139 echo EXPORTS > $output_objdir/$soname.def;
16140 cat $export_symbols >> $output_objdir/$soname.def;
16142 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16143 else
16144 ld_shlibs=no
16148 haiku*)
16149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16150 link_all_deplibs=yes
16153 interix[3-9]*)
16154 hardcode_direct=no
16155 hardcode_shlibpath_var=no
16156 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16157 export_dynamic_flag_spec='${wl}-E'
16158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16159 # Instead, shared libraries are loaded at an image base (0x10000000 by
16160 # default) and relocated if they conflict, which is a slow very memory
16161 # consuming and fragmenting process. To avoid this, we pick a random,
16162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16163 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16165 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'
16168 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16169 tmp_diet=no
16170 if test "$host_os" = linux-dietlibc; then
16171 case $cc_basename in
16172 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16173 esac
16175 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16176 && test "$tmp_diet" = no
16177 then
16178 tmp_addflag=' $pic_flag'
16179 tmp_sharedflag='-shared'
16180 case $cc_basename,$host_cpu in
16181 pgcc*) # Portland Group C compiler
16182 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'
16183 tmp_addflag=' $pic_flag'
16185 pgf77* | pgf90* | pgf95* | pgfortran*)
16186 # Portland Group f77 and f90 compilers
16187 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'
16188 tmp_addflag=' $pic_flag -Mnomain' ;;
16189 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16190 tmp_addflag=' -i_dynamic' ;;
16191 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16192 tmp_addflag=' -i_dynamic -nofor_main' ;;
16193 ifc* | ifort*) # Intel Fortran compiler
16194 tmp_addflag=' -nofor_main' ;;
16195 lf95*) # Lahey Fortran 8.1
16196 whole_archive_flag_spec=
16197 tmp_sharedflag='--shared' ;;
16198 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16199 tmp_sharedflag='-qmkshrobj'
16200 tmp_addflag= ;;
16201 nvcc*) # Cuda Compiler Driver 2.2
16202 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'
16203 compiler_needs_object=yes
16205 esac
16206 case `$CC -V 2>&1 | sed 5q` in
16207 *Sun\ C*) # Sun C 5.9
16208 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'
16209 compiler_needs_object=yes
16210 tmp_sharedflag='-G' ;;
16211 *Sun\ F*) # Sun Fortran 8.3
16212 tmp_sharedflag='-G' ;;
16213 esac
16214 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16216 if test "x$supports_anon_versioning" = xyes; then
16217 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16219 echo "local: *; };" >> $output_objdir/$libname.ver~
16220 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16223 case $cc_basename in
16224 xlf* | bgf* | bgxlf* | mpixlf*)
16225 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16226 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16227 hardcode_libdir_flag_spec=
16228 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16229 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16230 if test "x$supports_anon_versioning" = xyes; then
16231 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16233 echo "local: *; };" >> $output_objdir/$libname.ver~
16234 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16237 esac
16238 else
16239 ld_shlibs=no
16243 netbsd*)
16244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16245 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16246 wlarc=
16247 else
16248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16253 solaris*)
16254 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16255 ld_shlibs=no
16256 cat <<_LT_EOF 1>&2
16258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16259 *** create shared libraries on Solaris systems. Therefore, libtool
16260 *** is disabling shared libraries support. We urge you to upgrade GNU
16261 *** binutils to release 2.9.1 or newer. Another option is to modify
16262 *** your PATH or compiler configuration so that the native linker is
16263 *** used, and then restart.
16265 _LT_EOF
16266 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16269 else
16270 ld_shlibs=no
16274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16275 case `$LD -v 2>&1` in
16276 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16277 ld_shlibs=no
16278 cat <<_LT_EOF 1>&2
16280 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16281 *** reliably create shared libraries on SCO systems. Therefore, libtool
16282 *** is disabling shared libraries support. We urge you to upgrade GNU
16283 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16284 *** your PATH or compiler configuration so that the native linker is
16285 *** used, and then restart.
16287 _LT_EOF
16290 # For security reasons, it is highly recommended that you always
16291 # use absolute paths for naming shared libraries, and exclude the
16292 # DT_RUNPATH tag from executables and libraries. But doing so
16293 # requires that you compile everything twice, which is a pain.
16294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16298 else
16299 ld_shlibs=no
16302 esac
16305 sunos4*)
16306 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16307 wlarc=
16308 hardcode_direct=yes
16309 hardcode_shlibpath_var=no
16313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16316 else
16317 ld_shlibs=no
16320 esac
16322 if test "$ld_shlibs" = no; then
16323 runpath_var=
16324 hardcode_libdir_flag_spec=
16325 export_dynamic_flag_spec=
16326 whole_archive_flag_spec=
16328 else
16329 # PORTME fill in a description of your system's linker (not GNU ld)
16330 case $host_os in
16331 aix3*)
16332 allow_undefined_flag=unsupported
16333 always_export_symbols=yes
16334 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'
16335 # Note: this linker hardcodes the directories in LIBPATH if there
16336 # are no directories specified by -L.
16337 hardcode_minus_L=yes
16338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16339 # Neither direct hardcoding nor static linking is supported with a
16340 # broken collect2.
16341 hardcode_direct=unsupported
16345 aix[4-9]*)
16346 if test "$host_cpu" = ia64; then
16347 # On IA64, the linker does run time linking by default, so we don't
16348 # have to do anything special.
16349 aix_use_runtimelinking=no
16350 exp_sym_flag='-Bexport'
16351 no_entry_flag=""
16352 else
16353 # If we're using GNU nm, then we don't want the "-C" option.
16354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16355 # Also, AIX nm treats weak defined symbols like other global
16356 # defined symbols, whereas GNU nm marks them as "W".
16357 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16358 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'
16359 else
16360 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16362 aix_use_runtimelinking=no
16364 # Test if we are trying to use run time linking or normal
16365 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16366 # need to do runtime linking.
16367 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16368 for ld_flag in $LDFLAGS; do
16369 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16370 aix_use_runtimelinking=yes
16371 break
16373 done
16375 esac
16377 exp_sym_flag='-bexport'
16378 no_entry_flag='-bnoentry'
16381 # When large executables or shared objects are built, AIX ld can
16382 # have problems creating the table of contents. If linking a library
16383 # or program results in "error TOC overflow" add -mminimal-toc to
16384 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16385 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16387 archive_cmds=''
16388 hardcode_direct=yes
16389 hardcode_direct_absolute=yes
16390 hardcode_libdir_separator=':'
16391 link_all_deplibs=yes
16392 file_list_spec='${wl}-f,'
16394 if test "$GCC" = yes; then
16395 case $host_os in aix4.[012]|aix4.[012].*)
16396 # We only want to do this on AIX 4.2 and lower, the check
16397 # below for broken collect2 doesn't work under 4.3+
16398 collect2name=`${CC} -print-prog-name=collect2`
16399 if test -f "$collect2name" &&
16400 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16401 then
16402 # We have reworked collect2
16404 else
16405 # We have old collect2
16406 hardcode_direct=unsupported
16407 # It fails to find uninstalled libraries when the uninstalled
16408 # path is not listed in the libpath. Setting hardcode_minus_L
16409 # to unsupported forces relinking
16410 hardcode_minus_L=yes
16411 hardcode_libdir_flag_spec='-L$libdir'
16412 hardcode_libdir_separator=
16415 esac
16416 shared_flag='-shared'
16417 if test "$aix_use_runtimelinking" = yes; then
16418 shared_flag="$shared_flag "'${wl}-G'
16420 else
16421 # not using gcc
16422 if test "$host_cpu" = ia64; then
16423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16424 # chokes on -Wl,-G. The following line is correct:
16425 shared_flag='-G'
16426 else
16427 if test "$aix_use_runtimelinking" = yes; then
16428 shared_flag='${wl}-G'
16429 else
16430 shared_flag='${wl}-bM:SRE'
16435 export_dynamic_flag_spec='${wl}-bexpall'
16436 # It seems that -bexpall does not export symbols beginning with
16437 # underscore (_), so it is better to generate a list of symbols to export.
16438 always_export_symbols=yes
16439 if test "$aix_use_runtimelinking" = yes; then
16440 # Warning - without using the other runtime loading flags (-brtl),
16441 # -berok will link without error, but may produce a broken library.
16442 allow_undefined_flag='-berok'
16443 # Determine the default libpath from the value encoded in an
16444 # empty executable.
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16449 main ()
16453 return 0;
16455 _ACEOF
16456 if ac_fn_c_try_link "$LINENO"; then :
16458 lt_aix_libpath_sed='
16459 /Import File Strings/,/^$/ {
16460 /^0/ {
16461 s/^0 *\(.*\)$/\1/
16465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16466 # Check for a 64-bit object if we didn't find anything.
16467 if test -z "$aix_libpath"; then
16468 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16471 rm -f core conftest.err conftest.$ac_objext \
16472 conftest$ac_exeext conftest.$ac_ext
16473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16476 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"
16477 else
16478 if test "$host_cpu" = ia64; then
16479 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16480 allow_undefined_flag="-z nodefs"
16481 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"
16482 else
16483 # Determine the default libpath from the value encoded in an
16484 # empty executable.
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16489 main ()
16493 return 0;
16495 _ACEOF
16496 if ac_fn_c_try_link "$LINENO"; then :
16498 lt_aix_libpath_sed='
16499 /Import File Strings/,/^$/ {
16500 /^0/ {
16501 s/^0 *\(.*\)$/\1/
16505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16506 # Check for a 64-bit object if we didn't find anything.
16507 if test -z "$aix_libpath"; then
16508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16511 rm -f core conftest.err conftest.$ac_objext \
16512 conftest$ac_exeext conftest.$ac_ext
16513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16515 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16516 # Warning - without using the other run time loading flags,
16517 # -berok will link without error, but may produce a broken library.
16518 no_undefined_flag=' ${wl}-bernotok'
16519 allow_undefined_flag=' ${wl}-berok'
16520 if test "$with_gnu_ld" = yes; then
16521 # We only use this code for GNU lds that support --whole-archive.
16522 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16523 else
16524 # Exported symbols can be pulled into shared objects from archives
16525 whole_archive_flag_spec='$convenience'
16527 archive_cmds_need_lc=yes
16528 # This is similar to how AIX traditionally builds its shared libraries.
16529 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'
16534 amigaos*)
16535 case $host_cpu in
16536 powerpc)
16537 # see comment about AmigaOS4 .so support
16538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16539 archive_expsym_cmds=''
16541 m68k)
16542 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)'
16543 hardcode_libdir_flag_spec='-L$libdir'
16544 hardcode_minus_L=yes
16546 esac
16549 bsdi[45]*)
16550 export_dynamic_flag_spec=-rdynamic
16553 cygwin* | mingw* | pw32* | cegcc*)
16554 # When not using gcc, we currently assume that we are using
16555 # Microsoft Visual C++.
16556 # hardcode_libdir_flag_spec is actually meaningless, as there is
16557 # no search path for DLLs.
16558 hardcode_libdir_flag_spec=' '
16559 allow_undefined_flag=unsupported
16560 # Tell ltmain to make .lib files, not .a files.
16561 libext=lib
16562 # Tell ltmain to make .dll files, not .so files.
16563 shrext_cmds=".dll"
16564 # FIXME: Setting linknames here is a bad hack.
16565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16566 # The linker will automatically build a .lib file if we build a DLL.
16567 old_archive_from_new_cmds='true'
16568 # FIXME: Should let the user specify the lib program.
16569 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16570 fix_srcfile_path='`cygpath -w "$srcfile"`'
16571 enable_shared_with_static_runtimes=yes
16574 darwin* | rhapsody*)
16577 archive_cmds_need_lc=no
16578 hardcode_direct=no
16579 hardcode_automatic=yes
16580 hardcode_shlibpath_var=unsupported
16581 if test "$lt_cv_ld_force_load" = "yes"; then
16582 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\"`'
16583 else
16584 whole_archive_flag_spec=''
16586 link_all_deplibs=yes
16587 allow_undefined_flag="$_lt_dar_allow_undefined"
16588 case $cc_basename in
16589 ifort*) _lt_dar_can_shared=yes ;;
16590 *) _lt_dar_can_shared=$GCC ;;
16591 esac
16592 if test "$_lt_dar_can_shared" = "yes"; then
16593 output_verbose_link_cmd=func_echo_all
16594 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16595 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16596 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}"
16597 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}"
16599 else
16600 ld_shlibs=no
16605 dgux*)
16606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16607 hardcode_libdir_flag_spec='-L$libdir'
16608 hardcode_shlibpath_var=no
16611 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16612 # support. Future versions do this automatically, but an explicit c++rt0.o
16613 # does not break anything, and helps significantly (at the cost of a little
16614 # extra space).
16615 freebsd2.2*)
16616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16617 hardcode_libdir_flag_spec='-R$libdir'
16618 hardcode_direct=yes
16619 hardcode_shlibpath_var=no
16622 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16623 freebsd2.*)
16624 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_direct=yes
16626 hardcode_minus_L=yes
16627 hardcode_shlibpath_var=no
16630 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16631 freebsd* | dragonfly*)
16632 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16633 hardcode_libdir_flag_spec='-R$libdir'
16634 hardcode_direct=yes
16635 hardcode_shlibpath_var=no
16638 hpux9*)
16639 if test "$GCC" = yes; then
16640 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'
16641 else
16642 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'
16644 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16645 hardcode_libdir_separator=:
16646 hardcode_direct=yes
16648 # hardcode_minus_L: Not really in the search PATH,
16649 # but as the default location of the library.
16650 hardcode_minus_L=yes
16651 export_dynamic_flag_spec='${wl}-E'
16654 hpux10*)
16655 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16656 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16657 else
16658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16660 if test "$with_gnu_ld" = no; then
16661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16662 hardcode_libdir_flag_spec_ld='+b $libdir'
16663 hardcode_libdir_separator=:
16664 hardcode_direct=yes
16665 hardcode_direct_absolute=yes
16666 export_dynamic_flag_spec='${wl}-E'
16667 # hardcode_minus_L: Not really in the search PATH,
16668 # but as the default location of the library.
16669 hardcode_minus_L=yes
16673 hpux11*)
16674 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16675 case $host_cpu in
16676 hppa*64*)
16677 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 ia64*)
16680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16683 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16685 esac
16686 else
16687 case $host_cpu in
16688 hppa*64*)
16689 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16691 ia64*)
16692 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16696 # Older versions of the 11.00 compiler do not understand -b yet
16697 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16699 $as_echo_n "checking if $CC understands -b... " >&6; }
16700 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 lt_cv_prog_compiler__b=no
16704 save_LDFLAGS="$LDFLAGS"
16705 LDFLAGS="$LDFLAGS -b"
16706 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16708 # The linker can only warn and ignore the option if not recognized
16709 # So say no if there are warnings
16710 if test -s conftest.err; then
16711 # Append any errors to the config.log.
16712 cat conftest.err 1>&5
16713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16715 if diff conftest.exp conftest.er2 >/dev/null; then
16716 lt_cv_prog_compiler__b=yes
16718 else
16719 lt_cv_prog_compiler__b=yes
16722 $RM -r conftest*
16723 LDFLAGS="$save_LDFLAGS"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16727 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16729 if test x"$lt_cv_prog_compiler__b" = xyes; then
16730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16731 else
16732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16736 esac
16738 if test "$with_gnu_ld" = no; then
16739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16740 hardcode_libdir_separator=:
16742 case $host_cpu in
16743 hppa*64*|ia64*)
16744 hardcode_direct=no
16745 hardcode_shlibpath_var=no
16748 hardcode_direct=yes
16749 hardcode_direct_absolute=yes
16750 export_dynamic_flag_spec='${wl}-E'
16752 # hardcode_minus_L: Not really in the search PATH,
16753 # but as the default location of the library.
16754 hardcode_minus_L=yes
16756 esac
16760 irix5* | irix6* | nonstopux*)
16761 if test "$GCC" = yes; then
16762 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'
16763 # Try to use the -exported_symbol ld option, if it does not
16764 # work, assume that -exports_file does not work either and
16765 # implicitly export all symbols.
16766 save_LDFLAGS="$LDFLAGS"
16767 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770 int foo(void) {}
16771 _ACEOF
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 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'
16776 rm -f core conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
16778 LDFLAGS="$save_LDFLAGS"
16779 else
16780 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'
16781 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'
16783 archive_cmds_need_lc='no'
16784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16785 hardcode_libdir_separator=:
16786 inherit_rpath=yes
16787 link_all_deplibs=yes
16790 netbsd*)
16791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16793 else
16794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16796 hardcode_libdir_flag_spec='-R$libdir'
16797 hardcode_direct=yes
16798 hardcode_shlibpath_var=no
16801 newsos6)
16802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16803 hardcode_direct=yes
16804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16805 hardcode_libdir_separator=:
16806 hardcode_shlibpath_var=no
16809 *nto* | *qnx*)
16812 openbsd*)
16813 if test -f /usr/libexec/ld.so; then
16814 hardcode_direct=yes
16815 hardcode_shlibpath_var=no
16816 hardcode_direct_absolute=yes
16817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16821 export_dynamic_flag_spec='${wl}-E'
16822 else
16823 case $host_os in
16824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16826 hardcode_libdir_flag_spec='-R$libdir'
16829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16832 esac
16834 else
16835 ld_shlibs=no
16839 os2*)
16840 hardcode_libdir_flag_spec='-L$libdir'
16841 hardcode_minus_L=yes
16842 allow_undefined_flag=unsupported
16843 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'
16844 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16847 osf3*)
16848 if test "$GCC" = yes; then
16849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16850 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'
16851 else
16852 allow_undefined_flag=' -expect_unresolved \*'
16853 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'
16855 archive_cmds_need_lc='no'
16856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16857 hardcode_libdir_separator=:
16860 osf4* | osf5*) # as osf3* with the addition of -msym flag
16861 if test "$GCC" = yes; then
16862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16863 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'
16864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16865 else
16866 allow_undefined_flag=' -expect_unresolved \*'
16867 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'
16868 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~
16869 $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'
16871 # Both c and cxx compiler support -rpath directly
16872 hardcode_libdir_flag_spec='-rpath $libdir'
16874 archive_cmds_need_lc='no'
16875 hardcode_libdir_separator=:
16878 solaris*)
16879 no_undefined_flag=' -z defs'
16880 if test "$GCC" = yes; then
16881 wlarc='${wl}'
16882 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16884 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16885 else
16886 case `$CC -V 2>&1` in
16887 *"Compilers 5.0"*)
16888 wlarc=''
16889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16894 wlarc='${wl}'
16895 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16897 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16899 esac
16901 hardcode_libdir_flag_spec='-R$libdir'
16902 hardcode_shlibpath_var=no
16903 case $host_os in
16904 solaris2.[0-5] | solaris2.[0-5].*) ;;
16906 # The compiler driver will combine and reorder linker options,
16907 # but understands `-z linker_flag'. GCC discards it without `$wl',
16908 # but is careful enough not to reorder.
16909 # Supported since Solaris 2.6 (maybe 2.5.1?)
16910 if test "$GCC" = yes; then
16911 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16912 else
16913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16916 esac
16917 link_all_deplibs=yes
16920 sunos4*)
16921 if test "x$host_vendor" = xsequent; then
16922 # Use $CC to link under sequent, because it throws in some extra .o
16923 # files that make .init and .fini sections work.
16924 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16925 else
16926 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16928 hardcode_libdir_flag_spec='-L$libdir'
16929 hardcode_direct=yes
16930 hardcode_minus_L=yes
16931 hardcode_shlibpath_var=no
16934 sysv4)
16935 case $host_vendor in
16936 sni)
16937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 hardcode_direct=yes # is this really true???
16940 siemens)
16941 ## LD is ld it makes a PLAMLIB
16942 ## CC just makes a GrossModule.
16943 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16944 reload_cmds='$CC -r -o $output$reload_objs'
16945 hardcode_direct=no
16947 motorola)
16948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16951 esac
16952 runpath_var='LD_RUN_PATH'
16953 hardcode_shlibpath_var=no
16956 sysv4.3*)
16957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16958 hardcode_shlibpath_var=no
16959 export_dynamic_flag_spec='-Bexport'
16962 sysv4*MP*)
16963 if test -d /usr/nec; then
16964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 hardcode_shlibpath_var=no
16966 runpath_var=LD_RUN_PATH
16967 hardcode_runpath_var=yes
16968 ld_shlibs=yes
16972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16973 no_undefined_flag='${wl}-z,text'
16974 archive_cmds_need_lc=no
16975 hardcode_shlibpath_var=no
16976 runpath_var='LD_RUN_PATH'
16978 if test "$GCC" = yes; then
16979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 else
16982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16987 sysv5* | sco3.2v5* | sco5v6*)
16988 # Note: We can NOT use -z defs as we might desire, because we do not
16989 # link with -lc, and that would cause any symbols used from libc to
16990 # always be unresolved, which means just about no library would
16991 # ever link correctly. If we're not using GNU ld we use -z text
16992 # though, which does catch some bad symbols but isn't as heavy-handed
16993 # as -z defs.
16994 no_undefined_flag='${wl}-z,text'
16995 allow_undefined_flag='${wl}-z,nodefs'
16996 archive_cmds_need_lc=no
16997 hardcode_shlibpath_var=no
16998 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16999 hardcode_libdir_separator=':'
17000 link_all_deplibs=yes
17001 export_dynamic_flag_spec='${wl}-Bexport'
17002 runpath_var='LD_RUN_PATH'
17004 if test "$GCC" = yes; then
17005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17007 else
17008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17013 uts4*)
17014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17015 hardcode_libdir_flag_spec='-L$libdir'
17016 hardcode_shlibpath_var=no
17020 ld_shlibs=no
17022 esac
17024 if test x$host_vendor = xsni; then
17025 case $host in
17026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17027 export_dynamic_flag_spec='${wl}-Blargedynsym'
17029 esac
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17034 $as_echo "$ld_shlibs" >&6; }
17035 test "$ld_shlibs" = no && can_build_shared=no
17037 with_gnu_ld=$with_gnu_ld
17054 # Do we need to explicitly link libc?
17056 case "x$archive_cmds_need_lc" in
17057 x|xyes)
17058 # Assume -lc should be added
17059 archive_cmds_need_lc=yes
17061 if test "$enable_shared" = yes && test "$GCC" = yes; then
17062 case $archive_cmds in
17063 *'~'*)
17064 # FIXME: we may have to deal with multi-command sequences.
17066 '$CC '*)
17067 # Test whether the compiler implicitly links with -lc since on some
17068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17069 # to ld, don't add -lc before -lgcc.
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17072 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17073 $as_echo_n "(cached) " >&6
17074 else
17075 $RM conftest*
17076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17079 (eval $ac_compile) 2>&5
17080 ac_status=$?
17081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17082 test $ac_status = 0; } 2>conftest.err; then
17083 soname=conftest
17084 lib=conftest
17085 libobjs=conftest.$ac_objext
17086 deplibs=
17087 wl=$lt_prog_compiler_wl
17088 pic_flag=$lt_prog_compiler_pic
17089 compiler_flags=-v
17090 linker_flags=-v
17091 verstring=
17092 output_objdir=.
17093 libname=conftest
17094 lt_save_allow_undefined_flag=$allow_undefined_flag
17095 allow_undefined_flag=
17096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17098 ac_status=$?
17099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17100 test $ac_status = 0; }
17101 then
17102 lt_cv_archive_cmds_need_lc=no
17103 else
17104 lt_cv_archive_cmds_need_lc=yes
17106 allow_undefined_flag=$lt_save_allow_undefined_flag
17107 else
17108 cat conftest.err 1>&5
17110 $RM conftest*
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17114 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17115 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17117 esac
17120 esac
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17279 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17281 if test "$GCC" = yes; then
17282 case $host_os in
17283 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17284 *) lt_awk_arg="/^libraries:/" ;;
17285 esac
17286 case $host_os in
17287 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17288 *) lt_sed_strip_eq="s,=/,/,g" ;;
17289 esac
17290 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17291 case $lt_search_path_spec in
17292 *\;*)
17293 # if the path contains ";" then we assume it to be the separator
17294 # otherwise default to the standard path separator (i.e. ":") - it is
17295 # assumed that no part of a normal pathname contains ";" but that should
17296 # okay in the real world where ";" in dirpaths is itself problematic.
17297 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17302 esac
17303 # Ok, now we have the path, separated by spaces, we can step through it
17304 # and add multilib dir if necessary.
17305 lt_tmp_lt_search_path_spec=
17306 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17307 for lt_sys_path in $lt_search_path_spec; do
17308 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17309 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17310 else
17311 test -d "$lt_sys_path" && \
17312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17314 done
17315 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17316 BEGIN {RS=" "; FS="/|\n";} {
17317 lt_foo="";
17318 lt_count=0;
17319 for (lt_i = NF; lt_i > 0; lt_i--) {
17320 if ($lt_i != "" && $lt_i != ".") {
17321 if ($lt_i == "..") {
17322 lt_count++;
17323 } else {
17324 if (lt_count == 0) {
17325 lt_foo="/" $lt_i lt_foo;
17326 } else {
17327 lt_count--;
17332 if (lt_foo != "") { lt_freq[lt_foo]++; }
17333 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17335 # AWK program above erroneously prepends '/' to C:/dos/paths
17336 # for these hosts.
17337 case $host_os in
17338 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17339 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17340 esac
17341 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17342 else
17343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17345 library_names_spec=
17346 libname_spec='lib$name'
17347 soname_spec=
17348 shrext_cmds=".so"
17349 postinstall_cmds=
17350 postuninstall_cmds=
17351 finish_cmds=
17352 finish_eval=
17353 shlibpath_var=
17354 shlibpath_overrides_runpath=unknown
17355 version_type=none
17356 dynamic_linker="$host_os ld.so"
17357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17358 need_lib_prefix=unknown
17359 hardcode_into_libs=no
17361 # when you set need_version to no, make sure it does not cause -set_version
17362 # flags to be left without arguments
17363 need_version=unknown
17365 case $host_os in
17366 aix3*)
17367 version_type=linux
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17369 shlibpath_var=LIBPATH
17371 # AIX 3 has no versioning support, so we append a major version to the name.
17372 soname_spec='${libname}${release}${shared_ext}$major'
17375 aix[4-9]*)
17376 version_type=linux
17377 need_lib_prefix=no
17378 need_version=no
17379 hardcode_into_libs=yes
17380 if test "$host_cpu" = ia64; then
17381 # AIX 5 supports IA64
17382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17383 shlibpath_var=LD_LIBRARY_PATH
17384 else
17385 # With GCC up to 2.95.x, collect2 would create an import file
17386 # for dependence libraries. The import file would start with
17387 # the line `#! .'. This would cause the generated library to
17388 # depend on `.', always an invalid library. This was fixed in
17389 # development snapshots of GCC prior to 3.0.
17390 case $host_os in
17391 aix4 | aix4.[01] | aix4.[01].*)
17392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17393 echo ' yes '
17394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17396 else
17397 can_build_shared=no
17400 esac
17401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17402 # soname into executable. Probably we can add versioning support to
17403 # collect2, so additional links can be useful in future.
17404 if test "$aix_use_runtimelinking" = yes; then
17405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17406 # instead of lib<name>.a to let people know that these are not
17407 # typical AIX shared libraries.
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 else
17410 # We preserve .a as extension for shared libraries through AIX4.2
17411 # and later when we are not doing run time linking.
17412 library_names_spec='${libname}${release}.a $libname.a'
17413 soname_spec='${libname}${release}${shared_ext}$major'
17415 shlibpath_var=LIBPATH
17419 amigaos*)
17420 case $host_cpu in
17421 powerpc)
17422 # Since July 2007 AmigaOS4 officially supports .so libraries.
17423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426 m68k)
17427 library_names_spec='$libname.ixlibrary $libname.a'
17428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17429 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'
17431 esac
17434 beos*)
17435 library_names_spec='${libname}${shared_ext}'
17436 dynamic_linker="$host_os ld.so"
17437 shlibpath_var=LIBRARY_PATH
17440 bsdi[45]*)
17441 version_type=linux
17442 need_version=no
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17446 shlibpath_var=LD_LIBRARY_PATH
17447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17449 # the default ld.so.conf also contains /usr/contrib/lib and
17450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17451 # libtool to hard-code these into programs
17454 cygwin* | mingw* | pw32* | cegcc*)
17455 version_type=windows
17456 shrext_cmds=".dll"
17457 need_version=no
17458 need_lib_prefix=no
17460 case $GCC,$host_os in
17461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17462 library_names_spec='$libname.dll.a'
17463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17464 postinstall_cmds='base_file=`basename \${file}`~
17465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17466 dldir=$destdir/`dirname \$dlpath`~
17467 test -d \$dldir || mkdir -p \$dldir~
17468 $install_prog $dir/$dlname \$dldir/$dlname~
17469 chmod a+x \$dldir/$dlname~
17470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17474 dlpath=$dir/\$dldll~
17475 $RM \$dlpath'
17476 shlibpath_overrides_runpath=yes
17478 case $host_os in
17479 cygwin*)
17480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17483 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17485 mingw* | cegcc*)
17486 # MinGW DLLs use traditional 'lib' prefix
17487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17489 pw32*)
17490 # pw32 DLLs use 'pw' prefix rather than 'lib'
17491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17493 esac
17497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17499 esac
17500 dynamic_linker='Win32 ld.exe'
17501 # FIXME: first we should search . and the directory the executable is in
17502 shlibpath_var=PATH
17505 darwin* | rhapsody*)
17506 dynamic_linker="$host_os dyld"
17507 version_type=darwin
17508 need_lib_prefix=no
17509 need_version=no
17510 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17511 soname_spec='${libname}${release}${major}$shared_ext'
17512 shlibpath_overrides_runpath=yes
17513 shlibpath_var=DYLD_LIBRARY_PATH
17514 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17516 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17520 dgux*)
17521 version_type=linux
17522 need_lib_prefix=no
17523 need_version=no
17524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17525 soname_spec='${libname}${release}${shared_ext}$major'
17526 shlibpath_var=LD_LIBRARY_PATH
17529 freebsd* | dragonfly*)
17530 # DragonFly does not have aout. When/if they implement a new
17531 # versioning mechanism, adjust this.
17532 if test -x /usr/bin/objformat; then
17533 objformat=`/usr/bin/objformat`
17534 else
17535 case $host_os in
17536 freebsd[23].*) objformat=aout ;;
17537 *) objformat=elf ;;
17538 esac
17540 version_type=freebsd-$objformat
17541 case $version_type in
17542 freebsd-elf*)
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17544 need_version=no
17545 need_lib_prefix=no
17547 freebsd-*)
17548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17549 need_version=yes
17551 esac
17552 shlibpath_var=LD_LIBRARY_PATH
17553 case $host_os in
17554 freebsd2.*)
17555 shlibpath_overrides_runpath=yes
17557 freebsd3.[01]* | freebsdelf3.[01]*)
17558 shlibpath_overrides_runpath=yes
17559 hardcode_into_libs=yes
17561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17563 shlibpath_overrides_runpath=no
17564 hardcode_into_libs=yes
17566 *) # from 4.6 on, and DragonFly
17567 shlibpath_overrides_runpath=yes
17568 hardcode_into_libs=yes
17570 esac
17573 gnu*)
17574 version_type=linux
17575 need_lib_prefix=no
17576 need_version=no
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 hardcode_into_libs=yes
17583 haiku*)
17584 version_type=linux
17585 need_lib_prefix=no
17586 need_version=no
17587 dynamic_linker="$host_os runtime_loader"
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 shlibpath_var=LIBRARY_PATH
17591 shlibpath_overrides_runpath=yes
17592 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17593 hardcode_into_libs=yes
17596 hpux9* | hpux10* | hpux11*)
17597 # Give a soname corresponding to the major version so that dld.sl refuses to
17598 # link against other versions.
17599 version_type=sunos
17600 need_lib_prefix=no
17601 need_version=no
17602 case $host_cpu in
17603 ia64*)
17604 shrext_cmds='.so'
17605 hardcode_into_libs=yes
17606 dynamic_linker="$host_os dld.so"
17607 shlibpath_var=LD_LIBRARY_PATH
17608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 soname_spec='${libname}${release}${shared_ext}$major'
17611 if test "X$HPUX_IA64_MODE" = X32; then
17612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17613 else
17614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17618 hppa*64*)
17619 shrext_cmds='.sl'
17620 hardcode_into_libs=yes
17621 dynamic_linker="$host_os dld.sl"
17622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17625 soname_spec='${libname}${release}${shared_ext}$major'
17626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17630 shrext_cmds='.sl'
17631 dynamic_linker="$host_os dld.sl"
17632 shlibpath_var=SHLIB_PATH
17633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17637 esac
17638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17639 postinstall_cmds='chmod 555 $lib'
17640 # or fails outright, so override atomically:
17641 install_override_mode=555
17644 interix[3-9]*)
17645 version_type=linux
17646 need_lib_prefix=no
17647 need_version=no
17648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 shlibpath_overrides_runpath=no
17653 hardcode_into_libs=yes
17656 irix5* | irix6* | nonstopux*)
17657 case $host_os in
17658 nonstopux*) version_type=nonstopux ;;
17660 if test "$lt_cv_prog_gnu_ld" = yes; then
17661 version_type=linux
17662 else
17663 version_type=irix
17664 fi ;;
17665 esac
17666 need_lib_prefix=no
17667 need_version=no
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17670 case $host_os in
17671 irix5* | nonstopux*)
17672 libsuff= shlibsuff=
17675 case $LD in # libtool.m4 will add one of these switches to LD
17676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17677 libsuff= shlibsuff= libmagic=32-bit;;
17678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17679 libsuff=32 shlibsuff=N32 libmagic=N32;;
17680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17681 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17682 *) libsuff= shlibsuff= libmagic=never-match;;
17683 esac
17685 esac
17686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17687 shlibpath_overrides_runpath=no
17688 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17689 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17690 hardcode_into_libs=yes
17693 # No shared lib support for Linux oldld, aout, or coff.
17694 linux*oldld* | linux*aout* | linux*coff*)
17695 dynamic_linker=no
17698 # This must be Linux ELF.
17699 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17700 version_type=linux
17701 need_lib_prefix=no
17702 need_version=no
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17706 shlibpath_var=LD_LIBRARY_PATH
17707 shlibpath_overrides_runpath=no
17709 # Some binutils ld are patched to set DT_RUNPATH
17710 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17711 $as_echo_n "(cached) " >&6
17712 else
17713 lt_cv_shlibpath_overrides_runpath=no
17714 save_LDFLAGS=$LDFLAGS
17715 save_libdir=$libdir
17716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17722 main ()
17726 return 0;
17728 _ACEOF
17729 if ac_fn_c_try_link "$LINENO"; then :
17730 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17731 lt_cv_shlibpath_overrides_runpath=yes
17734 rm -f core conftest.err conftest.$ac_objext \
17735 conftest$ac_exeext conftest.$ac_ext
17736 LDFLAGS=$save_LDFLAGS
17737 libdir=$save_libdir
17741 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17743 # This implies no fast_install, which is unacceptable.
17744 # Some rework will be needed to allow for fast_install
17745 # before this can be enabled.
17746 hardcode_into_libs=yes
17748 # Append ld.so.conf contents to the search path
17749 if test -f /etc/ld.so.conf; then
17750 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' ' '`
17751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17754 # We used to test for /lib/ld.so.1 and disable shared libraries on
17755 # powerpc, because MkLinux only supported shared libraries with the
17756 # GNU dynamic linker. Since this was broken with cross compilers,
17757 # most powerpc-linux boxes support dynamic linking these days and
17758 # people can always --disable-shared, the test was removed, and we
17759 # assume the GNU/Linux dynamic linker is in use.
17760 dynamic_linker='GNU/Linux ld.so'
17763 netbsd*)
17764 version_type=sunos
17765 need_lib_prefix=no
17766 need_version=no
17767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17770 dynamic_linker='NetBSD (a.out) ld.so'
17771 else
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 dynamic_linker='NetBSD ld.elf_so'
17776 shlibpath_var=LD_LIBRARY_PATH
17777 shlibpath_overrides_runpath=yes
17778 hardcode_into_libs=yes
17781 newsos6)
17782 version_type=linux
17783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=yes
17788 *nto* | *qnx*)
17789 version_type=qnx
17790 need_lib_prefix=no
17791 need_version=no
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17793 soname_spec='${libname}${release}${shared_ext}$major'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 shlibpath_overrides_runpath=no
17796 hardcode_into_libs=yes
17797 dynamic_linker='ldqnx.so'
17800 openbsd*)
17801 version_type=sunos
17802 sys_lib_dlsearch_path_spec="/usr/lib"
17803 need_lib_prefix=no
17804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17805 case $host_os in
17806 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17807 *) need_version=no ;;
17808 esac
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17811 shlibpath_var=LD_LIBRARY_PATH
17812 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17813 case $host_os in
17814 openbsd2.[89] | openbsd2.[89].*)
17815 shlibpath_overrides_runpath=no
17818 shlibpath_overrides_runpath=yes
17820 esac
17821 else
17822 shlibpath_overrides_runpath=yes
17826 os2*)
17827 libname_spec='$name'
17828 shrext_cmds=".dll"
17829 need_lib_prefix=no
17830 library_names_spec='$libname${shared_ext} $libname.a'
17831 dynamic_linker='OS/2 ld.exe'
17832 shlibpath_var=LIBPATH
17835 osf3* | osf4* | osf5*)
17836 version_type=osf
17837 need_lib_prefix=no
17838 need_version=no
17839 soname_spec='${libname}${release}${shared_ext}$major'
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17846 rdos*)
17847 dynamic_linker=no
17850 solaris*)
17851 version_type=linux
17852 need_lib_prefix=no
17853 need_version=no
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 shlibpath_var=LD_LIBRARY_PATH
17857 shlibpath_overrides_runpath=yes
17858 hardcode_into_libs=yes
17859 # ldd complains unless libraries are executable
17860 postinstall_cmds='chmod +x $lib'
17863 sunos4*)
17864 version_type=sunos
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes
17869 if test "$with_gnu_ld" = yes; then
17870 need_lib_prefix=no
17872 need_version=yes
17875 sysv4 | sysv4.3*)
17876 version_type=linux
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 soname_spec='${libname}${release}${shared_ext}$major'
17879 shlibpath_var=LD_LIBRARY_PATH
17880 case $host_vendor in
17881 sni)
17882 shlibpath_overrides_runpath=no
17883 need_lib_prefix=no
17884 runpath_var=LD_RUN_PATH
17886 siemens)
17887 need_lib_prefix=no
17889 motorola)
17890 need_lib_prefix=no
17891 need_version=no
17892 shlibpath_overrides_runpath=no
17893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17895 esac
17898 sysv4*MP*)
17899 if test -d /usr/nec ;then
17900 version_type=linux
17901 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17902 soname_spec='$libname${shared_ext}.$major'
17903 shlibpath_var=LD_LIBRARY_PATH
17907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17908 version_type=freebsd-elf
17909 need_lib_prefix=no
17910 need_version=no
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=yes
17915 hardcode_into_libs=yes
17916 if test "$with_gnu_ld" = yes; then
17917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17918 else
17919 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17920 case $host_os in
17921 sco3.2v5*)
17922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17924 esac
17926 sys_lib_dlsearch_path_spec='/usr/lib'
17929 tpf*)
17930 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17931 version_type=linux
17932 need_lib_prefix=no
17933 need_version=no
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath=no
17937 hardcode_into_libs=yes
17940 uts4*)
17941 version_type=linux
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec='${libname}${release}${shared_ext}$major'
17944 shlibpath_var=LD_LIBRARY_PATH
17948 dynamic_linker=no
17950 esac
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17952 $as_echo "$dynamic_linker" >&6; }
17953 test "$dynamic_linker" = no && can_build_shared=no
17955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17956 if test "$GCC" = yes; then
17957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17960 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17961 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17963 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17964 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18059 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18060 hardcode_action=
18061 if test -n "$hardcode_libdir_flag_spec" ||
18062 test -n "$runpath_var" ||
18063 test "X$hardcode_automatic" = "Xyes" ; then
18065 # We can hardcode non-existent directories.
18066 if test "$hardcode_direct" != no &&
18067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18068 # have to relink, otherwise we might link with an installed library
18069 # when we should be linking with a yet-to-be-installed one
18070 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18071 test "$hardcode_minus_L" != no; then
18072 # Linking always hardcodes the temporary library directory.
18073 hardcode_action=relink
18074 else
18075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18076 hardcode_action=immediate
18078 else
18079 # We cannot hardcode anything, or else we can only hardcode existing
18080 # directories.
18081 hardcode_action=unsupported
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18084 $as_echo "$hardcode_action" >&6; }
18086 if test "$hardcode_action" = relink ||
18087 test "$inherit_rpath" = yes; then
18088 # Fast installation is not supported
18089 enable_fast_install=no
18090 elif test "$shlibpath_overrides_runpath" = yes ||
18091 test "$enable_shared" = no; then
18092 # Fast installation is not necessary
18093 enable_fast_install=needless
18101 if test "x$enable_dlopen" != xyes; then
18102 enable_dlopen=unknown
18103 enable_dlopen_self=unknown
18104 enable_dlopen_self_static=unknown
18105 else
18106 lt_cv_dlopen=no
18107 lt_cv_dlopen_libs=
18109 case $host_os in
18110 beos*)
18111 lt_cv_dlopen="load_add_on"
18112 lt_cv_dlopen_libs=
18113 lt_cv_dlopen_self=yes
18116 mingw* | pw32* | cegcc*)
18117 lt_cv_dlopen="LoadLibrary"
18118 lt_cv_dlopen_libs=
18121 cygwin*)
18122 lt_cv_dlopen="dlopen"
18123 lt_cv_dlopen_libs=
18126 darwin*)
18127 # if libdl is installed we need to link against it
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18130 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18131 $as_echo_n "(cached) " >&6
18132 else
18133 ac_check_lib_save_LIBS=$LIBS
18134 LIBS="-ldl $LIBS"
18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18138 /* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18141 #ifdef __cplusplus
18142 extern "C"
18143 #endif
18144 char dlopen ();
18146 main ()
18148 return dlopen ();
18150 return 0;
18152 _ACEOF
18153 if ac_fn_c_try_link "$LINENO"; then :
18154 ac_cv_lib_dl_dlopen=yes
18155 else
18156 ac_cv_lib_dl_dlopen=no
18158 rm -f core conftest.err conftest.$ac_objext \
18159 conftest$ac_exeext conftest.$ac_ext
18160 LIBS=$ac_check_lib_save_LIBS
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18164 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18166 else
18168 lt_cv_dlopen="dyld"
18169 lt_cv_dlopen_libs=
18170 lt_cv_dlopen_self=yes
18177 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18178 if test "x$ac_cv_func_shl_load" = x""yes; then :
18179 lt_cv_dlopen="shl_load"
18180 else
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18182 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18183 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18184 $as_echo_n "(cached) " >&6
18185 else
18186 ac_check_lib_save_LIBS=$LIBS
18187 LIBS="-ldld $LIBS"
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18191 /* Override any GCC internal prototype to avoid an error.
18192 Use char because int might match the return type of a GCC
18193 builtin and then its argument prototype would still apply. */
18194 #ifdef __cplusplus
18195 extern "C"
18196 #endif
18197 char shl_load ();
18199 main ()
18201 return shl_load ();
18203 return 0;
18205 _ACEOF
18206 if ac_fn_c_try_link "$LINENO"; then :
18207 ac_cv_lib_dld_shl_load=yes
18208 else
18209 ac_cv_lib_dld_shl_load=no
18211 rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18213 LIBS=$ac_check_lib_save_LIBS
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18216 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18217 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18218 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18219 else
18220 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18221 if test "x$ac_cv_func_dlopen" = x""yes; then :
18222 lt_cv_dlopen="dlopen"
18223 else
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18229 ac_check_lib_save_LIBS=$LIBS
18230 LIBS="-ldl $LIBS"
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18234 /* Override any GCC internal prototype to avoid an error.
18235 Use char because int might match the return type of a GCC
18236 builtin and then its argument prototype would still apply. */
18237 #ifdef __cplusplus
18238 extern "C"
18239 #endif
18240 char dlopen ();
18242 main ()
18244 return dlopen ();
18246 return 0;
18248 _ACEOF
18249 if ac_fn_c_try_link "$LINENO"; then :
18250 ac_cv_lib_dl_dlopen=yes
18251 else
18252 ac_cv_lib_dl_dlopen=no
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18259 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18260 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18262 else
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18264 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18265 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18266 $as_echo_n "(cached) " >&6
18267 else
18268 ac_check_lib_save_LIBS=$LIBS
18269 LIBS="-lsvld $LIBS"
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18273 /* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18276 #ifdef __cplusplus
18277 extern "C"
18278 #endif
18279 char dlopen ();
18281 main ()
18283 return dlopen ();
18285 return 0;
18287 _ACEOF
18288 if ac_fn_c_try_link "$LINENO"; then :
18289 ac_cv_lib_svld_dlopen=yes
18290 else
18291 ac_cv_lib_svld_dlopen=no
18293 rm -f core conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18295 LIBS=$ac_check_lib_save_LIBS
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18298 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18299 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18301 else
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18303 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18304 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18305 $as_echo_n "(cached) " >&6
18306 else
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-ldld $LIBS"
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18312 /* Override any GCC internal prototype to avoid an error.
18313 Use char because int might match the return type of a GCC
18314 builtin and then its argument prototype would still apply. */
18315 #ifdef __cplusplus
18316 extern "C"
18317 #endif
18318 char dld_link ();
18320 main ()
18322 return dld_link ();
18324 return 0;
18326 _ACEOF
18327 if ac_fn_c_try_link "$LINENO"; then :
18328 ac_cv_lib_dld_dld_link=yes
18329 else
18330 ac_cv_lib_dld_dld_link=no
18332 rm -f core conftest.err conftest.$ac_objext \
18333 conftest$ac_exeext conftest.$ac_ext
18334 LIBS=$ac_check_lib_save_LIBS
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18337 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18338 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18339 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18358 esac
18360 if test "x$lt_cv_dlopen" != xno; then
18361 enable_dlopen=yes
18362 else
18363 enable_dlopen=no
18366 case $lt_cv_dlopen in
18367 dlopen)
18368 save_CPPFLAGS="$CPPFLAGS"
18369 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18371 save_LDFLAGS="$LDFLAGS"
18372 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18374 save_LIBS="$LIBS"
18375 LIBS="$lt_cv_dlopen_libs $LIBS"
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18378 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18379 if test "${lt_cv_dlopen_self+set}" = set; then :
18380 $as_echo_n "(cached) " >&6
18381 else
18382 if test "$cross_compiling" = yes; then :
18383 lt_cv_dlopen_self=cross
18384 else
18385 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18386 lt_status=$lt_dlunknown
18387 cat > conftest.$ac_ext <<_LT_EOF
18388 #line 18388 "configure"
18389 #include "confdefs.h"
18391 #if HAVE_DLFCN_H
18392 #include <dlfcn.h>
18393 #endif
18395 #include <stdio.h>
18397 #ifdef RTLD_GLOBAL
18398 # define LT_DLGLOBAL RTLD_GLOBAL
18399 #else
18400 # ifdef DL_GLOBAL
18401 # define LT_DLGLOBAL DL_GLOBAL
18402 # else
18403 # define LT_DLGLOBAL 0
18404 # endif
18405 #endif
18407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18408 find out it does not work in some platform. */
18409 #ifndef LT_DLLAZY_OR_NOW
18410 # ifdef RTLD_LAZY
18411 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18412 # else
18413 # ifdef DL_LAZY
18414 # define LT_DLLAZY_OR_NOW DL_LAZY
18415 # else
18416 # ifdef RTLD_NOW
18417 # define LT_DLLAZY_OR_NOW RTLD_NOW
18418 # else
18419 # ifdef DL_NOW
18420 # define LT_DLLAZY_OR_NOW DL_NOW
18421 # else
18422 # define LT_DLLAZY_OR_NOW 0
18423 # endif
18424 # endif
18425 # endif
18426 # endif
18427 #endif
18429 /* When -fvisbility=hidden is used, assume the code has been annotated
18430 correspondingly for the symbols needed. */
18431 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18432 void fnord () __attribute__((visibility("default")));
18433 #endif
18435 void fnord () { int i=42; }
18436 int main ()
18438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18439 int status = $lt_dlunknown;
18441 if (self)
18443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18444 else
18446 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18447 else puts (dlerror ());
18449 /* dlclose (self); */
18451 else
18452 puts (dlerror ());
18454 return status;
18456 _LT_EOF
18457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18458 (eval $ac_link) 2>&5
18459 ac_status=$?
18460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18461 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18462 (./conftest; exit; ) >&5 2>/dev/null
18463 lt_status=$?
18464 case x$lt_status in
18465 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18466 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18467 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18468 esac
18469 else :
18470 # compilation failed
18471 lt_cv_dlopen_self=no
18474 rm -fr conftest*
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18479 $as_echo "$lt_cv_dlopen_self" >&6; }
18481 if test "x$lt_cv_dlopen_self" = xyes; then
18482 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18484 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18485 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18487 else
18488 if test "$cross_compiling" = yes; then :
18489 lt_cv_dlopen_self_static=cross
18490 else
18491 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18492 lt_status=$lt_dlunknown
18493 cat > conftest.$ac_ext <<_LT_EOF
18494 #line 18494 "configure"
18495 #include "confdefs.h"
18497 #if HAVE_DLFCN_H
18498 #include <dlfcn.h>
18499 #endif
18501 #include <stdio.h>
18503 #ifdef RTLD_GLOBAL
18504 # define LT_DLGLOBAL RTLD_GLOBAL
18505 #else
18506 # ifdef DL_GLOBAL
18507 # define LT_DLGLOBAL DL_GLOBAL
18508 # else
18509 # define LT_DLGLOBAL 0
18510 # endif
18511 #endif
18513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18514 find out it does not work in some platform. */
18515 #ifndef LT_DLLAZY_OR_NOW
18516 # ifdef RTLD_LAZY
18517 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18518 # else
18519 # ifdef DL_LAZY
18520 # define LT_DLLAZY_OR_NOW DL_LAZY
18521 # else
18522 # ifdef RTLD_NOW
18523 # define LT_DLLAZY_OR_NOW RTLD_NOW
18524 # else
18525 # ifdef DL_NOW
18526 # define LT_DLLAZY_OR_NOW DL_NOW
18527 # else
18528 # define LT_DLLAZY_OR_NOW 0
18529 # endif
18530 # endif
18531 # endif
18532 # endif
18533 #endif
18535 /* When -fvisbility=hidden is used, assume the code has been annotated
18536 correspondingly for the symbols needed. */
18537 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18538 void fnord () __attribute__((visibility("default")));
18539 #endif
18541 void fnord () { int i=42; }
18542 int main ()
18544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18545 int status = $lt_dlunknown;
18547 if (self)
18549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18550 else
18552 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18553 else puts (dlerror ());
18555 /* dlclose (self); */
18557 else
18558 puts (dlerror ());
18560 return status;
18562 _LT_EOF
18563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18564 (eval $ac_link) 2>&5
18565 ac_status=$?
18566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18567 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18568 (./conftest; exit; ) >&5 2>/dev/null
18569 lt_status=$?
18570 case x$lt_status in
18571 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18572 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18573 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18574 esac
18575 else :
18576 # compilation failed
18577 lt_cv_dlopen_self_static=no
18580 rm -fr conftest*
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18585 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18588 CPPFLAGS="$save_CPPFLAGS"
18589 LDFLAGS="$save_LDFLAGS"
18590 LIBS="$save_LIBS"
18592 esac
18594 case $lt_cv_dlopen_self in
18595 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18596 *) enable_dlopen_self=unknown ;;
18597 esac
18599 case $lt_cv_dlopen_self_static in
18600 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18601 *) enable_dlopen_self_static=unknown ;;
18602 esac
18621 striplib=
18622 old_striplib=
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18624 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18625 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18626 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18627 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18629 $as_echo "yes" >&6; }
18630 else
18631 # FIXME - insert some real tests, host_os isn't really good enough
18632 case $host_os in
18633 darwin*)
18634 if test -n "$STRIP" ; then
18635 striplib="$STRIP -x"
18636 old_striplib="$STRIP -S"
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18638 $as_echo "yes" >&6; }
18639 else
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18641 $as_echo "no" >&6; }
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18648 esac
18662 # Report which library types will actually be built
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18664 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18666 $as_echo "$can_build_shared" >&6; }
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18669 $as_echo_n "checking whether to build shared libraries... " >&6; }
18670 test "$can_build_shared" = "no" && enable_shared=no
18672 # On AIX, shared libraries and static libraries use the same namespace, and
18673 # are all built from PIC.
18674 case $host_os in
18675 aix3*)
18676 test "$enable_shared" = yes && enable_static=no
18677 if test -n "$RANLIB"; then
18678 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18679 postinstall_cmds='$RANLIB $lib'
18683 aix[4-9]*)
18684 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18685 test "$enable_shared" = yes && enable_static=no
18688 esac
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18690 $as_echo "$enable_shared" >&6; }
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18693 $as_echo_n "checking whether to build static libraries... " >&6; }
18694 # Make sure either enable_shared or enable_static is yes.
18695 test "$enable_shared" = yes || enable_static=yes
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18697 $as_echo "$enable_static" >&6; }
18703 ac_ext=cpp
18704 ac_cpp='$CXXCPP $CPPFLAGS'
18705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18709 CC="$lt_save_CC"
18711 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18712 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18713 (test "X$CXX" != "Xg++"))) ; then
18714 ac_ext=cpp
18715 ac_cpp='$CXXCPP $CPPFLAGS'
18716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18720 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18721 if test -z "$CXXCPP"; then
18722 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18723 $as_echo_n "(cached) " >&6
18724 else
18725 # Double quotes because CXXCPP needs to be expanded
18726 for CXXCPP in "$CXX -E" "/lib/cpp"
18728 ac_preproc_ok=false
18729 for ac_cxx_preproc_warn_flag in '' yes
18731 # Use a header file that comes with gcc, so configuring glibc
18732 # with a fresh cross-compiler works.
18733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 # <limits.h> exists even on freestanding compilers.
18735 # On the NeXT, cc -E runs the code through the compiler's parser,
18736 # not just through cpp. "Syntax error" is here to catch this case.
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 #ifdef __STDC__
18740 # include <limits.h>
18741 #else
18742 # include <assert.h>
18743 #endif
18744 Syntax error
18745 _ACEOF
18746 if ac_fn_cxx_try_cpp "$LINENO"; then :
18748 else
18749 # Broken: fails on valid input.
18750 continue
18752 rm -f conftest.err conftest.$ac_ext
18754 # OK, works on sane cases. Now check whether nonexistent headers
18755 # can be detected and how.
18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757 /* end confdefs.h. */
18758 #include <ac_nonexistent.h>
18759 _ACEOF
18760 if ac_fn_cxx_try_cpp "$LINENO"; then :
18761 # Broken: success on invalid input.
18762 continue
18763 else
18764 # Passes both tests.
18765 ac_preproc_ok=:
18766 break
18768 rm -f conftest.err conftest.$ac_ext
18770 done
18771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18772 rm -f conftest.err conftest.$ac_ext
18773 if $ac_preproc_ok; then :
18774 break
18777 done
18778 ac_cv_prog_CXXCPP=$CXXCPP
18781 CXXCPP=$ac_cv_prog_CXXCPP
18782 else
18783 ac_cv_prog_CXXCPP=$CXXCPP
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18786 $as_echo "$CXXCPP" >&6; }
18787 ac_preproc_ok=false
18788 for ac_cxx_preproc_warn_flag in '' yes
18790 # Use a header file that comes with gcc, so configuring glibc
18791 # with a fresh cross-compiler works.
18792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18793 # <limits.h> exists even on freestanding compilers.
18794 # On the NeXT, cc -E runs the code through the compiler's parser,
18795 # not just through cpp. "Syntax error" is here to catch this case.
18796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18797 /* end confdefs.h. */
18798 #ifdef __STDC__
18799 # include <limits.h>
18800 #else
18801 # include <assert.h>
18802 #endif
18803 Syntax error
18804 _ACEOF
18805 if ac_fn_cxx_try_cpp "$LINENO"; then :
18807 else
18808 # Broken: fails on valid input.
18809 continue
18811 rm -f conftest.err conftest.$ac_ext
18813 # OK, works on sane cases. Now check whether nonexistent headers
18814 # can be detected and how.
18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h. */
18817 #include <ac_nonexistent.h>
18818 _ACEOF
18819 if ac_fn_cxx_try_cpp "$LINENO"; then :
18820 # Broken: success on invalid input.
18821 continue
18822 else
18823 # Passes both tests.
18824 ac_preproc_ok=:
18825 break
18827 rm -f conftest.err conftest.$ac_ext
18829 done
18830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18831 rm -f conftest.err conftest.$ac_ext
18832 if $ac_preproc_ok; then :
18834 else
18835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18837 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18838 See \`config.log' for more details." "$LINENO" 5; }
18841 ac_ext=cpp
18842 ac_cpp='$CXXCPP $CPPFLAGS'
18843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18847 else
18848 _lt_caught_CXX_error=yes
18851 ac_ext=cpp
18852 ac_cpp='$CXXCPP $CPPFLAGS'
18853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18857 archive_cmds_need_lc_CXX=no
18858 allow_undefined_flag_CXX=
18859 always_export_symbols_CXX=no
18860 archive_expsym_cmds_CXX=
18861 compiler_needs_object_CXX=no
18862 export_dynamic_flag_spec_CXX=
18863 hardcode_direct_CXX=no
18864 hardcode_direct_absolute_CXX=no
18865 hardcode_libdir_flag_spec_CXX=
18866 hardcode_libdir_flag_spec_ld_CXX=
18867 hardcode_libdir_separator_CXX=
18868 hardcode_minus_L_CXX=no
18869 hardcode_shlibpath_var_CXX=unsupported
18870 hardcode_automatic_CXX=no
18871 inherit_rpath_CXX=no
18872 module_cmds_CXX=
18873 module_expsym_cmds_CXX=
18874 link_all_deplibs_CXX=unknown
18875 old_archive_cmds_CXX=$old_archive_cmds
18876 reload_flag_CXX=$reload_flag
18877 reload_cmds_CXX=$reload_cmds
18878 no_undefined_flag_CXX=
18879 whole_archive_flag_spec_CXX=
18880 enable_shared_with_static_runtimes_CXX=no
18882 # Source file extension for C++ test sources.
18883 ac_ext=cpp
18885 # Object file extension for compiled C++ test sources.
18886 objext=o
18887 objext_CXX=$objext
18889 # No sense in running all these tests if we already determined that
18890 # the CXX compiler isn't working. Some variables (like enable_shared)
18891 # are currently assumed to apply to all compilers on this platform,
18892 # and will be corrupted by setting them based on a non-working compiler.
18893 if test "$_lt_caught_CXX_error" != yes; then
18894 # Code to be used in simple compile tests
18895 lt_simple_compile_test_code="int some_variable = 0;"
18897 # Code to be used in simple link tests
18898 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18900 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18907 # If no C compiler was specified, use CC.
18908 LTCC=${LTCC-"$CC"}
18910 # If no C compiler flags were specified, use CFLAGS.
18911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18913 # Allow CC to be a program name with arguments.
18914 compiler=$CC
18917 # save warnings/boilerplate of simple test code
18918 ac_outfile=conftest.$ac_objext
18919 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18920 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18921 _lt_compiler_boilerplate=`cat conftest.err`
18922 $RM conftest*
18924 ac_outfile=conftest.$ac_objext
18925 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18926 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18927 _lt_linker_boilerplate=`cat conftest.err`
18928 $RM -r conftest*
18931 # Allow CC to be a program name with arguments.
18932 lt_save_CC=$CC
18933 lt_save_LD=$LD
18934 lt_save_GCC=$GCC
18935 GCC=$GXX
18936 lt_save_with_gnu_ld=$with_gnu_ld
18937 lt_save_path_LD=$lt_cv_path_LD
18938 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18939 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18940 else
18941 $as_unset lt_cv_prog_gnu_ld
18943 if test -n "${lt_cv_path_LDCXX+set}"; then
18944 lt_cv_path_LD=$lt_cv_path_LDCXX
18945 else
18946 $as_unset lt_cv_path_LD
18948 test -z "${LDCXX+set}" || LD=$LDCXX
18949 CC=${CXX-"c++"}
18950 compiler=$CC
18951 compiler_CXX=$CC
18952 for cc_temp in $compiler""; do
18953 case $cc_temp in
18954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18956 \-*) ;;
18957 *) break;;
18958 esac
18959 done
18960 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18963 if test -n "$compiler"; then
18964 # We don't want -fno-exception when compiling C++ code, so set the
18965 # no_builtin_flag separately
18966 if test "$GXX" = yes; then
18967 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18968 else
18969 lt_prog_compiler_no_builtin_flag_CXX=
18972 if test "$GXX" = yes; then
18973 # Set up default GNU C++ configuration
18977 # Check whether --with-gnu-ld was given.
18978 if test "${with_gnu_ld+set}" = set; then :
18979 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18980 else
18981 with_gnu_ld=no
18984 ac_prog=ld
18985 if test "$GCC" = yes; then
18986 # Check if gcc -print-prog-name=ld gives a path.
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18988 $as_echo_n "checking for ld used by $CC... " >&6; }
18989 case $host in
18990 *-*-mingw*)
18991 # gcc leaves a trailing carriage return which upsets mingw
18992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18995 esac
18996 case $ac_prog in
18997 # Accept absolute paths.
18998 [\\/]* | ?:[\\/]*)
18999 re_direlt='/[^/][^/]*/\.\./'
19000 # Canonicalize the pathname of ld
19001 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19004 done
19005 test -z "$LD" && LD="$ac_prog"
19008 # If it fails, then pretend we aren't using GCC.
19009 ac_prog=ld
19012 # If it is relative, then search for the first ld in PATH.
19013 with_gnu_ld=unknown
19015 esac
19016 elif test "$with_gnu_ld" = yes; then
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19018 $as_echo_n "checking for GNU ld... " >&6; }
19019 else
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19021 $as_echo_n "checking for non-GNU ld... " >&6; }
19023 if test "${lt_cv_path_LD+set}" = set; then :
19024 $as_echo_n "(cached) " >&6
19025 else
19026 if test -z "$LD"; then
19027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19028 for ac_dir in $PATH; do
19029 IFS="$lt_save_ifs"
19030 test -z "$ac_dir" && ac_dir=.
19031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19032 lt_cv_path_LD="$ac_dir/$ac_prog"
19033 # Check to see if the program is GNU ld. I'd rather use --version,
19034 # but apparently some variants of GNU ld only accept -v.
19035 # Break only if it was the GNU/non-GNU ld that we prefer.
19036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19037 *GNU* | *'with BFD'*)
19038 test "$with_gnu_ld" != no && break
19041 test "$with_gnu_ld" != yes && break
19043 esac
19045 done
19046 IFS="$lt_save_ifs"
19047 else
19048 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19052 LD="$lt_cv_path_LD"
19053 if test -n "$LD"; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19055 $as_echo "$LD" >&6; }
19056 else
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19060 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19062 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19063 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19064 $as_echo_n "(cached) " >&6
19065 else
19066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19067 case `$LD -v 2>&1 </dev/null` in
19068 *GNU* | *'with BFD'*)
19069 lt_cv_prog_gnu_ld=yes
19072 lt_cv_prog_gnu_ld=no
19074 esac
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19077 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19078 with_gnu_ld=$lt_cv_prog_gnu_ld
19086 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19087 # archiving commands below assume that GNU ld is being used.
19088 if test "$with_gnu_ld" = yes; then
19089 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19090 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'
19092 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19095 # If archive_cmds runs LD, not CC, wlarc should be empty
19096 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19097 # investigate it a little bit more. (MM)
19098 wlarc='${wl}'
19100 # ancient GNU ld didn't support --whole-archive et. al.
19101 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19102 $GREP 'no-whole-archive' > /dev/null; then
19103 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19104 else
19105 whole_archive_flag_spec_CXX=
19107 else
19108 with_gnu_ld=no
19109 wlarc=
19111 # A generic and very simple default shared library creation
19112 # command for GNU C++ for the case where it uses the native
19113 # linker, instead of GNU ld. If possible, this setting should
19114 # overridden to take advantage of the native linker features on
19115 # the platform it is being used on.
19116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19119 # Commands to make compiler produce verbose output that lists
19120 # what "hidden" libraries, object files and flags are used when
19121 # linking a shared library.
19122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19124 else
19125 GXX=no
19126 with_gnu_ld=no
19127 wlarc=
19130 # PORTME: fill in a description of your system's C++ link characteristics
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19132 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19133 ld_shlibs_CXX=yes
19134 case $host_os in
19135 aix3*)
19136 # FIXME: insert proper C++ library support
19137 ld_shlibs_CXX=no
19139 aix[4-9]*)
19140 if test "$host_cpu" = ia64; then
19141 # On IA64, the linker does run time linking by default, so we don't
19142 # have to do anything special.
19143 aix_use_runtimelinking=no
19144 exp_sym_flag='-Bexport'
19145 no_entry_flag=""
19146 else
19147 aix_use_runtimelinking=no
19149 # Test if we are trying to use run time linking or normal
19150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19151 # need to do runtime linking.
19152 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19153 for ld_flag in $LDFLAGS; do
19154 case $ld_flag in
19155 *-brtl*)
19156 aix_use_runtimelinking=yes
19157 break
19159 esac
19160 done
19162 esac
19164 exp_sym_flag='-bexport'
19165 no_entry_flag='-bnoentry'
19168 # When large executables or shared objects are built, AIX ld can
19169 # have problems creating the table of contents. If linking a library
19170 # or program results in "error TOC overflow" add -mminimal-toc to
19171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19174 archive_cmds_CXX=''
19175 hardcode_direct_CXX=yes
19176 hardcode_direct_absolute_CXX=yes
19177 hardcode_libdir_separator_CXX=':'
19178 link_all_deplibs_CXX=yes
19179 file_list_spec_CXX='${wl}-f,'
19181 if test "$GXX" = yes; then
19182 case $host_os in aix4.[012]|aix4.[012].*)
19183 # We only want to do this on AIX 4.2 and lower, the check
19184 # below for broken collect2 doesn't work under 4.3+
19185 collect2name=`${CC} -print-prog-name=collect2`
19186 if test -f "$collect2name" &&
19187 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19188 then
19189 # We have reworked collect2
19191 else
19192 # We have old collect2
19193 hardcode_direct_CXX=unsupported
19194 # It fails to find uninstalled libraries when the uninstalled
19195 # path is not listed in the libpath. Setting hardcode_minus_L
19196 # to unsupported forces relinking
19197 hardcode_minus_L_CXX=yes
19198 hardcode_libdir_flag_spec_CXX='-L$libdir'
19199 hardcode_libdir_separator_CXX=
19201 esac
19202 shared_flag='-shared'
19203 if test "$aix_use_runtimelinking" = yes; then
19204 shared_flag="$shared_flag "'${wl}-G'
19206 else
19207 # not using gcc
19208 if test "$host_cpu" = ia64; then
19209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19210 # chokes on -Wl,-G. The following line is correct:
19211 shared_flag='-G'
19212 else
19213 if test "$aix_use_runtimelinking" = yes; then
19214 shared_flag='${wl}-G'
19215 else
19216 shared_flag='${wl}-bM:SRE'
19221 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19222 # It seems that -bexpall does not export symbols beginning with
19223 # underscore (_), so it is better to generate a list of symbols to
19224 # export.
19225 always_export_symbols_CXX=yes
19226 if test "$aix_use_runtimelinking" = yes; then
19227 # Warning - without using the other runtime loading flags (-brtl),
19228 # -berok will link without error, but may produce a broken library.
19229 allow_undefined_flag_CXX='-berok'
19230 # Determine the default libpath from the value encoded in an empty
19231 # executable.
19232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19236 main ()
19240 return 0;
19242 _ACEOF
19243 if ac_fn_cxx_try_link "$LINENO"; then :
19245 lt_aix_libpath_sed='
19246 /Import File Strings/,/^$/ {
19247 /^0/ {
19248 s/^0 *\(.*\)$/\1/
19252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19253 # Check for a 64-bit object if we didn't find anything.
19254 if test -z "$aix_libpath"; then
19255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19258 rm -f core conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
19260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19264 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"
19265 else
19266 if test "$host_cpu" = ia64; then
19267 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19268 allow_undefined_flag_CXX="-z nodefs"
19269 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"
19270 else
19271 # Determine the default libpath from the value encoded in an
19272 # empty executable.
19273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19274 /* end confdefs.h. */
19277 main ()
19281 return 0;
19283 _ACEOF
19284 if ac_fn_cxx_try_link "$LINENO"; then :
19286 lt_aix_libpath_sed='
19287 /Import File Strings/,/^$/ {
19288 /^0/ {
19289 s/^0 *\(.*\)$/\1/
19293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19294 # Check for a 64-bit object if we didn't find anything.
19295 if test -z "$aix_libpath"; then
19296 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19299 rm -f core conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
19301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19303 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19304 # Warning - without using the other run time loading flags,
19305 # -berok will link without error, but may produce a broken library.
19306 no_undefined_flag_CXX=' ${wl}-bernotok'
19307 allow_undefined_flag_CXX=' ${wl}-berok'
19308 if test "$with_gnu_ld" = yes; then
19309 # We only use this code for GNU lds that support --whole-archive.
19310 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19311 else
19312 # Exported symbols can be pulled into shared objects from archives
19313 whole_archive_flag_spec_CXX='$convenience'
19315 archive_cmds_need_lc_CXX=yes
19316 # This is similar to how AIX traditionally builds its shared
19317 # libraries.
19318 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'
19323 beos*)
19324 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19325 allow_undefined_flag_CXX=unsupported
19326 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19327 # support --undefined. This deserves some investigation. FIXME
19328 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19329 else
19330 ld_shlibs_CXX=no
19334 chorus*)
19335 case $cc_basename in
19337 # FIXME: insert proper C++ library support
19338 ld_shlibs_CXX=no
19340 esac
19343 cygwin* | mingw* | pw32* | cegcc*)
19344 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19345 # as there is no search path for DLLs.
19346 hardcode_libdir_flag_spec_CXX='-L$libdir'
19347 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19348 allow_undefined_flag_CXX=unsupported
19349 always_export_symbols_CXX=no
19350 enable_shared_with_static_runtimes_CXX=yes
19352 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19353 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'
19354 # If the export-symbols file already is a .def file (1st line
19355 # is EXPORTS), use it as is; otherwise, prepend...
19356 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19357 cp $export_symbols $output_objdir/$soname.def;
19358 else
19359 echo EXPORTS > $output_objdir/$soname.def;
19360 cat $export_symbols >> $output_objdir/$soname.def;
19362 $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'
19363 else
19364 ld_shlibs_CXX=no
19367 darwin* | rhapsody*)
19370 archive_cmds_need_lc_CXX=no
19371 hardcode_direct_CXX=no
19372 hardcode_automatic_CXX=yes
19373 hardcode_shlibpath_var_CXX=unsupported
19374 if test "$lt_cv_ld_force_load" = "yes"; then
19375 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\"`'
19376 else
19377 whole_archive_flag_spec_CXX=''
19379 link_all_deplibs_CXX=yes
19380 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19381 case $cc_basename in
19382 ifort*) _lt_dar_can_shared=yes ;;
19383 *) _lt_dar_can_shared=$GCC ;;
19384 esac
19385 if test "$_lt_dar_can_shared" = "yes"; then
19386 output_verbose_link_cmd=func_echo_all
19387 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}"
19388 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19389 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}"
19390 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}"
19391 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19392 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}"
19393 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}"
19396 else
19397 ld_shlibs_CXX=no
19402 dgux*)
19403 case $cc_basename in
19404 ec++*)
19405 # FIXME: insert proper C++ library support
19406 ld_shlibs_CXX=no
19408 ghcx*)
19409 # Green Hills C++ Compiler
19410 # FIXME: insert proper C++ library support
19411 ld_shlibs_CXX=no
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19417 esac
19420 freebsd2.*)
19421 # C++ shared libraries reported to be fairly broken before
19422 # switch to ELF
19423 ld_shlibs_CXX=no
19426 freebsd-elf*)
19427 archive_cmds_need_lc_CXX=no
19430 freebsd* | dragonfly*)
19431 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19432 # conventions
19433 ld_shlibs_CXX=yes
19436 gnu*)
19439 haiku*)
19440 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19441 link_all_deplibs_CXX=yes
19444 hpux9*)
19445 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19446 hardcode_libdir_separator_CXX=:
19447 export_dynamic_flag_spec_CXX='${wl}-E'
19448 hardcode_direct_CXX=yes
19449 hardcode_minus_L_CXX=yes # Not in the search PATH,
19450 # but as the default
19451 # location of the library.
19453 case $cc_basename in
19454 CC*)
19455 # FIXME: insert proper C++ library support
19456 ld_shlibs_CXX=no
19458 aCC*)
19459 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'
19460 # Commands to make compiler produce verbose output that lists
19461 # what "hidden" libraries, object files and flags are used when
19462 # linking a shared library.
19464 # There doesn't appear to be a way to prevent this compiler from
19465 # explicitly linking system object files so we need to strip them
19466 # from the output so that they don't get included in the library
19467 # dependencies.
19468 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"'
19471 if test "$GXX" = yes; then
19472 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'
19473 else
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19478 esac
19481 hpux10*|hpux11*)
19482 if test $with_gnu_ld = no; then
19483 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19484 hardcode_libdir_separator_CXX=:
19486 case $host_cpu in
19487 hppa*64*|ia64*)
19490 export_dynamic_flag_spec_CXX='${wl}-E'
19492 esac
19494 case $host_cpu in
19495 hppa*64*|ia64*)
19496 hardcode_direct_CXX=no
19497 hardcode_shlibpath_var_CXX=no
19500 hardcode_direct_CXX=yes
19501 hardcode_direct_absolute_CXX=yes
19502 hardcode_minus_L_CXX=yes # Not in the search PATH,
19503 # but as the default
19504 # location of the library.
19506 esac
19508 case $cc_basename in
19509 CC*)
19510 # FIXME: insert proper C++ library support
19511 ld_shlibs_CXX=no
19513 aCC*)
19514 case $host_cpu in
19515 hppa*64*)
19516 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19518 ia64*)
19519 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19522 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19524 esac
19525 # Commands to make compiler produce verbose output that lists
19526 # what "hidden" libraries, object files and flags are used when
19527 # linking a shared library.
19529 # There doesn't appear to be a way to prevent this compiler from
19530 # explicitly linking system object files so we need to strip them
19531 # from the output so that they don't get included in the library
19532 # dependencies.
19533 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"'
19536 if test "$GXX" = yes; then
19537 if test $with_gnu_ld = no; then
19538 case $host_cpu in
19539 hppa*64*)
19540 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19542 ia64*)
19543 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19546 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'
19548 esac
19550 else
19551 # FIXME: insert proper C++ library support
19552 ld_shlibs_CXX=no
19555 esac
19558 interix[3-9]*)
19559 hardcode_direct_CXX=no
19560 hardcode_shlibpath_var_CXX=no
19561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19562 export_dynamic_flag_spec_CXX='${wl}-E'
19563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19564 # Instead, shared libraries are loaded at an image base (0x10000000 by
19565 # default) and relocated if they conflict, which is a slow very memory
19566 # consuming and fragmenting process. To avoid this, we pick a random,
19567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19569 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'
19570 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'
19572 irix5* | irix6*)
19573 case $cc_basename in
19574 CC*)
19575 # SGI C++
19576 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'
19578 # Archives containing C++ object files must be created using
19579 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19580 # necessary to make sure instantiated templates are included
19581 # in the archive.
19582 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19585 if test "$GXX" = yes; then
19586 if test "$with_gnu_ld" = no; then
19587 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'
19588 else
19589 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'
19592 link_all_deplibs_CXX=yes
19594 esac
19595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19596 hardcode_libdir_separator_CXX=:
19597 inherit_rpath_CXX=yes
19600 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19601 case $cc_basename in
19602 KCC*)
19603 # Kuck and Associates, Inc. (KAI) C++ Compiler
19605 # KCC will only create a shared library if the output file
19606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19607 # to its proper name (with version) after linking.
19608 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'
19609 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'
19610 # Commands to make compiler produce verbose output that lists
19611 # what "hidden" libraries, object files and flags are used when
19612 # linking a shared library.
19614 # There doesn't appear to be a way to prevent this compiler from
19615 # explicitly linking system object files so we need to strip them
19616 # from the output so that they don't get included in the library
19617 # dependencies.
19618 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"'
19620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19621 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19623 # Archives containing C++ object files must be created using
19624 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19625 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19627 icpc* | ecpc* )
19628 # Intel C++
19629 with_gnu_ld=yes
19630 # version 8.0 and above of icpc choke on multiply defined symbols
19631 # if we add $predep_objects and $postdep_objects, however 7.1 and
19632 # earlier do not add the objects themselves.
19633 case `$CC -V 2>&1` in
19634 *"Version 7."*)
19635 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19636 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'
19638 *) # Version 8.0 or newer
19639 tmp_idyn=
19640 case $host_cpu in
19641 ia64*) tmp_idyn=' -i_dynamic';;
19642 esac
19643 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19644 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'
19646 esac
19647 archive_cmds_need_lc_CXX=no
19648 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19650 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19652 pgCC* | pgcpp*)
19653 # Portland Group C++ compiler
19654 case `$CC -V` in
19655 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19656 prelink_cmds_CXX='tpldir=Template.dir~
19657 rm -rf $tpldir~
19658 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19659 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19660 old_archive_cmds_CXX='tpldir=Template.dir~
19661 rm -rf $tpldir~
19662 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19663 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19664 $RANLIB $oldlib'
19665 archive_cmds_CXX='tpldir=Template.dir~
19666 rm -rf $tpldir~
19667 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19668 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19669 archive_expsym_cmds_CXX='tpldir=Template.dir~
19670 rm -rf $tpldir~
19671 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19672 $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'
19674 *) # Version 6 and above use weak symbols
19675 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19676 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'
19678 esac
19680 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19682 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'
19684 cxx*)
19685 # Compaq C++
19686 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19687 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'
19689 runpath_var=LD_RUN_PATH
19690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19691 hardcode_libdir_separator_CXX=:
19693 # Commands to make compiler produce verbose output that lists
19694 # what "hidden" libraries, object files and flags are used when
19695 # linking a shared library.
19697 # There doesn't appear to be a way to prevent this compiler from
19698 # explicitly linking system object files so we need to strip them
19699 # from the output so that they don't get included in the library
19700 # dependencies.
19701 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'
19703 xl* | mpixl* | bgxl*)
19704 # IBM XL 8.0 on PPC, with GNU ld
19705 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19707 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19708 if test "x$supports_anon_versioning" = xyes; then
19709 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19710 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19711 echo "local: *; };" >> $output_objdir/$libname.ver~
19712 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19716 case `$CC -V 2>&1 | sed 5q` in
19717 *Sun\ C*)
19718 # Sun C++ 5.9
19719 no_undefined_flag_CXX=' -zdefs'
19720 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19721 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'
19722 hardcode_libdir_flag_spec_CXX='-R$libdir'
19723 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'
19724 compiler_needs_object_CXX=yes
19726 # Not sure whether something based on
19727 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19728 # would be better.
19729 output_verbose_link_cmd='func_echo_all'
19731 # Archives containing C++ object files must be created using
19732 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19733 # necessary to make sure instantiated templates are included
19734 # in the archive.
19735 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19737 esac
19739 esac
19742 lynxos*)
19743 # FIXME: insert proper C++ library support
19744 ld_shlibs_CXX=no
19747 m88k*)
19748 # FIXME: insert proper C++ library support
19749 ld_shlibs_CXX=no
19752 mvs*)
19753 case $cc_basename in
19754 cxx*)
19755 # FIXME: insert proper C++ library support
19756 ld_shlibs_CXX=no
19759 # FIXME: insert proper C++ library support
19760 ld_shlibs_CXX=no
19762 esac
19765 netbsd*)
19766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19767 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19768 wlarc=
19769 hardcode_libdir_flag_spec_CXX='-R$libdir'
19770 hardcode_direct_CXX=yes
19771 hardcode_shlibpath_var_CXX=no
19773 # Workaround some broken pre-1.5 toolchains
19774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19777 *nto* | *qnx*)
19778 ld_shlibs_CXX=yes
19781 openbsd2*)
19782 # C++ shared libraries are fairly broken
19783 ld_shlibs_CXX=no
19786 openbsd*)
19787 if test -f /usr/libexec/ld.so; then
19788 hardcode_direct_CXX=yes
19789 hardcode_shlibpath_var_CXX=no
19790 hardcode_direct_absolute_CXX=yes
19791 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19793 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19794 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19795 export_dynamic_flag_spec_CXX='${wl}-E'
19796 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19798 output_verbose_link_cmd=func_echo_all
19799 else
19800 ld_shlibs_CXX=no
19804 osf3* | osf4* | osf5*)
19805 case $cc_basename in
19806 KCC*)
19807 # Kuck and Associates, Inc. (KAI) C++ Compiler
19809 # KCC will only create a shared library if the output file
19810 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19811 # to its proper name (with version) after linking.
19812 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'
19814 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19815 hardcode_libdir_separator_CXX=:
19817 # Archives containing C++ object files must be created using
19818 # the KAI C++ compiler.
19819 case $host in
19820 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19821 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19822 esac
19824 RCC*)
19825 # Rational C++ 2.4.1
19826 # FIXME: insert proper C++ library support
19827 ld_shlibs_CXX=no
19829 cxx*)
19830 case $host in
19831 osf3*)
19832 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19833 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'
19834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19837 allow_undefined_flag_CXX=' -expect_unresolved \*'
19838 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'
19839 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19840 echo "-hidden">> $lib.exp~
19841 $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~
19842 $RM $lib.exp'
19843 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19845 esac
19847 hardcode_libdir_separator_CXX=:
19849 # Commands to make compiler produce verbose output that lists
19850 # what "hidden" libraries, object files and flags are used when
19851 # linking a shared library.
19853 # There doesn't appear to be a way to prevent this compiler from
19854 # explicitly linking system object files so we need to strip them
19855 # from the output so that they don't get included in the library
19856 # dependencies.
19857 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"'
19860 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19861 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19862 case $host in
19863 osf3*)
19864 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'
19867 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'
19869 esac
19871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19872 hardcode_libdir_separator_CXX=:
19874 # Commands to make compiler produce verbose output that lists
19875 # what "hidden" libraries, object files and flags are used when
19876 # linking a shared library.
19877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19879 else
19880 # FIXME: insert proper C++ library support
19881 ld_shlibs_CXX=no
19884 esac
19887 psos*)
19888 # FIXME: insert proper C++ library support
19889 ld_shlibs_CXX=no
19892 sunos4*)
19893 case $cc_basename in
19894 CC*)
19895 # Sun C++ 4.x
19896 # FIXME: insert proper C++ library support
19897 ld_shlibs_CXX=no
19899 lcc*)
19900 # Lucid
19901 # FIXME: insert proper C++ library support
19902 ld_shlibs_CXX=no
19905 # FIXME: insert proper C++ library support
19906 ld_shlibs_CXX=no
19908 esac
19911 solaris*)
19912 case $cc_basename in
19913 CC*)
19914 # Sun C++ 4.2, 5.x and Centerline C++
19915 archive_cmds_need_lc_CXX=yes
19916 no_undefined_flag_CXX=' -zdefs'
19917 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19918 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19919 $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'
19921 hardcode_libdir_flag_spec_CXX='-R$libdir'
19922 hardcode_shlibpath_var_CXX=no
19923 case $host_os in
19924 solaris2.[0-5] | solaris2.[0-5].*) ;;
19926 # The compiler driver will combine and reorder linker options,
19927 # but understands `-z linker_flag'.
19928 # Supported since Solaris 2.6 (maybe 2.5.1?)
19929 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19931 esac
19932 link_all_deplibs_CXX=yes
19934 output_verbose_link_cmd='func_echo_all'
19936 # Archives containing C++ object files must be created using
19937 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19938 # necessary to make sure instantiated templates are included
19939 # in the archive.
19940 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19942 gcx*)
19943 # Green Hills C++ Compiler
19944 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19946 # The C++ compiler must be used to create the archive.
19947 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19950 # GNU C++ compiler with Solaris linker
19951 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19952 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19953 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19954 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19955 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19956 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19958 # Commands to make compiler produce verbose output that lists
19959 # what "hidden" libraries, object files and flags are used when
19960 # linking a shared library.
19961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19962 else
19963 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19964 # platform.
19965 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19966 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19967 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19969 # Commands to make compiler produce verbose output that lists
19970 # what "hidden" libraries, object files and flags are used when
19971 # linking a shared library.
19972 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19975 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19976 case $host_os in
19977 solaris2.[0-5] | solaris2.[0-5].*) ;;
19979 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19981 esac
19984 esac
19987 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19988 no_undefined_flag_CXX='${wl}-z,text'
19989 archive_cmds_need_lc_CXX=no
19990 hardcode_shlibpath_var_CXX=no
19991 runpath_var='LD_RUN_PATH'
19993 case $cc_basename in
19994 CC*)
19995 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19996 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19999 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20000 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20002 esac
20005 sysv5* | sco3.2v5* | sco5v6*)
20006 # Note: We can NOT use -z defs as we might desire, because we do not
20007 # link with -lc, and that would cause any symbols used from libc to
20008 # always be unresolved, which means just about no library would
20009 # ever link correctly. If we're not using GNU ld we use -z text
20010 # though, which does catch some bad symbols but isn't as heavy-handed
20011 # as -z defs.
20012 no_undefined_flag_CXX='${wl}-z,text'
20013 allow_undefined_flag_CXX='${wl}-z,nodefs'
20014 archive_cmds_need_lc_CXX=no
20015 hardcode_shlibpath_var_CXX=no
20016 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20017 hardcode_libdir_separator_CXX=':'
20018 link_all_deplibs_CXX=yes
20019 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20020 runpath_var='LD_RUN_PATH'
20022 case $cc_basename in
20023 CC*)
20024 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20025 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20026 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20027 '"$old_archive_cmds_CXX"
20028 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20029 '"$reload_cmds_CXX"
20032 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20033 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20035 esac
20038 tandem*)
20039 case $cc_basename in
20040 NCC*)
20041 # NonStop-UX NCC 3.20
20042 # FIXME: insert proper C++ library support
20043 ld_shlibs_CXX=no
20046 # FIXME: insert proper C++ library support
20047 ld_shlibs_CXX=no
20049 esac
20052 vxworks*)
20053 # FIXME: insert proper C++ library support
20054 ld_shlibs_CXX=no
20058 # FIXME: insert proper C++ library support
20059 ld_shlibs_CXX=no
20061 esac
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20064 $as_echo "$ld_shlibs_CXX" >&6; }
20065 test "$ld_shlibs_CXX" = no && can_build_shared=no
20067 GCC_CXX="$GXX"
20068 LD_CXX="$LD"
20070 ## CAVEAT EMPTOR:
20071 ## There is no encapsulation within the following macros, do not change
20072 ## the running order or otherwise move them around unless you know exactly
20073 ## what you are doing...
20074 # Dependencies to place before and after the object being linked:
20075 predep_objects_CXX=
20076 postdep_objects_CXX=
20077 predeps_CXX=
20078 postdeps_CXX=
20079 compiler_lib_search_path_CXX=
20081 cat > conftest.$ac_ext <<_LT_EOF
20082 class Foo
20084 public:
20085 Foo (void) { a = 0; }
20086 private:
20087 int a;
20089 _LT_EOF
20091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20092 (eval $ac_compile) 2>&5
20093 ac_status=$?
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; then
20096 # Parse the compiler output and extract the necessary
20097 # objects, libraries and library flags.
20099 # Sentinel used to keep track of whether or not we are before
20100 # the conftest object file.
20101 pre_test_object_deps_done=no
20103 for p in `eval "$output_verbose_link_cmd"`; do
20104 case $p in
20106 -L* | -R* | -l*)
20107 # Some compilers place space between "-{L,R}" and the path.
20108 # Remove the space.
20109 if test $p = "-L" ||
20110 test $p = "-R"; then
20111 prev=$p
20112 continue
20113 else
20114 prev=
20117 if test "$pre_test_object_deps_done" = no; then
20118 case $p in
20119 -L* | -R*)
20120 # Internal compiler library paths should come after those
20121 # provided the user. The postdeps already come after the
20122 # user supplied libs so there is no need to process them.
20123 if test -z "$compiler_lib_search_path_CXX"; then
20124 compiler_lib_search_path_CXX="${prev}${p}"
20125 else
20126 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20129 # The "-l" case would never come before the object being
20130 # linked, so don't bother handling this case.
20131 esac
20132 else
20133 if test -z "$postdeps_CXX"; then
20134 postdeps_CXX="${prev}${p}"
20135 else
20136 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20141 *.$objext)
20142 # This assumes that the test object file only shows up
20143 # once in the compiler output.
20144 if test "$p" = "conftest.$objext"; then
20145 pre_test_object_deps_done=yes
20146 continue
20149 if test "$pre_test_object_deps_done" = no; then
20150 if test -z "$predep_objects_CXX"; then
20151 predep_objects_CXX="$p"
20152 else
20153 predep_objects_CXX="$predep_objects_CXX $p"
20155 else
20156 if test -z "$postdep_objects_CXX"; then
20157 postdep_objects_CXX="$p"
20158 else
20159 postdep_objects_CXX="$postdep_objects_CXX $p"
20164 *) ;; # Ignore the rest.
20166 esac
20167 done
20169 # Clean up.
20170 rm -f a.out a.exe
20171 else
20172 echo "libtool.m4: error: problem compiling CXX test program"
20175 $RM -f confest.$objext
20177 # PORTME: override above test on systems where it is broken
20178 case $host_os in
20179 interix[3-9]*)
20180 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20181 # hack all around it, let's just trust "g++" to DTRT.
20182 predep_objects_CXX=
20183 postdep_objects_CXX=
20184 postdeps_CXX=
20187 linux*)
20188 case `$CC -V 2>&1 | sed 5q` in
20189 *Sun\ C*)
20190 # Sun C++ 5.9
20192 # The more standards-conforming stlport4 library is
20193 # incompatible with the Cstd library. Avoid specifying
20194 # it if it's in CXXFLAGS. Ignore libCrun as
20195 # -library=stlport4 depends on it.
20196 case " $CXX $CXXFLAGS " in
20197 *" -library=stlport4 "*)
20198 solaris_use_stlport4=yes
20200 esac
20202 if test "$solaris_use_stlport4" != yes; then
20203 postdeps_CXX='-library=Cstd -library=Crun'
20206 esac
20209 solaris*)
20210 case $cc_basename in
20211 CC*)
20212 # The more standards-conforming stlport4 library is
20213 # incompatible with the Cstd library. Avoid specifying
20214 # it if it's in CXXFLAGS. Ignore libCrun as
20215 # -library=stlport4 depends on it.
20216 case " $CXX $CXXFLAGS " in
20217 *" -library=stlport4 "*)
20218 solaris_use_stlport4=yes
20220 esac
20222 # Adding this requires a known-good setup of shared libraries for
20223 # Sun compiler versions before 5.6, else PIC objects from an old
20224 # archive will be linked into the output, leading to subtle bugs.
20225 if test "$solaris_use_stlport4" != yes; then
20226 postdeps_CXX='-library=Cstd -library=Crun'
20229 esac
20231 esac
20234 case " $postdeps_CXX " in
20235 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20236 esac
20237 compiler_lib_search_dirs_CXX=
20238 if test -n "${compiler_lib_search_path_CXX}"; then
20239 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20272 lt_prog_compiler_wl_CXX=
20273 lt_prog_compiler_pic_CXX=
20274 lt_prog_compiler_static_CXX=
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20277 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20279 # C++ specific cases for pic, static, wl, etc.
20280 if test "$GXX" = yes; then
20281 lt_prog_compiler_wl_CXX='-Wl,'
20282 lt_prog_compiler_static_CXX='-static'
20284 case $host_os in
20285 aix*)
20286 # All AIX code is PIC.
20287 if test "$host_cpu" = ia64; then
20288 # AIX 5 now supports IA64 processor
20289 lt_prog_compiler_static_CXX='-Bstatic'
20291 lt_prog_compiler_pic_CXX='-fPIC'
20294 amigaos*)
20295 case $host_cpu in
20296 powerpc)
20297 # see comment about AmigaOS4 .so support
20298 lt_prog_compiler_pic_CXX='-fPIC'
20300 m68k)
20301 # FIXME: we need at least 68020 code to build shared libraries, but
20302 # adding the `-m68020' flag to GCC prevents building anything better,
20303 # like `-m68040'.
20304 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20306 esac
20309 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20310 # PIC is the default for these OSes.
20312 mingw* | cygwin* | os2* | pw32* | cegcc*)
20313 # This hack is so that the source file can tell whether it is being
20314 # built for inclusion in a dll (and should export symbols for example).
20315 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20316 # (--disable-auto-import) libraries
20317 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20319 darwin* | rhapsody*)
20320 # PIC is the default on this platform
20321 # Common symbols not allowed in MH_DYLIB files
20322 lt_prog_compiler_pic_CXX='-fno-common'
20324 *djgpp*)
20325 # DJGPP does not support shared libraries at all
20326 lt_prog_compiler_pic_CXX=
20328 haiku*)
20329 # PIC is the default for Haiku.
20330 # The "-static" flag exists, but is broken.
20331 lt_prog_compiler_static_CXX=
20333 interix[3-9]*)
20334 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20335 # Instead, we relocate shared libraries at runtime.
20337 sysv4*MP*)
20338 if test -d /usr/nec; then
20339 lt_prog_compiler_pic_CXX=-Kconform_pic
20342 hpux*)
20343 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20344 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20345 # sets the default TLS model and affects inlining.
20346 case $host_cpu in
20347 hppa*64*)
20350 lt_prog_compiler_pic_CXX='-fPIC'
20352 esac
20354 *qnx* | *nto*)
20355 # QNX uses GNU C++, but need to define -shared option too, otherwise
20356 # it will coredump.
20357 lt_prog_compiler_pic_CXX='-fPIC -shared'
20360 lt_prog_compiler_pic_CXX='-fPIC'
20362 esac
20363 else
20364 case $host_os in
20365 aix[4-9]*)
20366 # All AIX code is PIC.
20367 if test "$host_cpu" = ia64; then
20368 # AIX 5 now supports IA64 processor
20369 lt_prog_compiler_static_CXX='-Bstatic'
20370 else
20371 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20374 chorus*)
20375 case $cc_basename in
20376 cxch68*)
20377 # Green Hills C++ Compiler
20378 # _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"
20380 esac
20382 dgux*)
20383 case $cc_basename in
20384 ec++*)
20385 lt_prog_compiler_pic_CXX='-KPIC'
20387 ghcx*)
20388 # Green Hills C++ Compiler
20389 lt_prog_compiler_pic_CXX='-pic'
20393 esac
20395 freebsd* | dragonfly*)
20396 # FreeBSD uses GNU C++
20398 hpux9* | hpux10* | hpux11*)
20399 case $cc_basename in
20400 CC*)
20401 lt_prog_compiler_wl_CXX='-Wl,'
20402 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20403 if test "$host_cpu" != ia64; then
20404 lt_prog_compiler_pic_CXX='+Z'
20407 aCC*)
20408 lt_prog_compiler_wl_CXX='-Wl,'
20409 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20410 case $host_cpu in
20411 hppa*64*|ia64*)
20412 # +Z the default
20415 lt_prog_compiler_pic_CXX='+Z'
20417 esac
20421 esac
20423 interix*)
20424 # This is c89, which is MS Visual C++ (no shared libs)
20425 # Anyone wants to do a port?
20427 irix5* | irix6* | nonstopux*)
20428 case $cc_basename in
20429 CC*)
20430 lt_prog_compiler_wl_CXX='-Wl,'
20431 lt_prog_compiler_static_CXX='-non_shared'
20432 # CC pic flag -KPIC is the default.
20436 esac
20438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20439 case $cc_basename in
20440 KCC*)
20441 # KAI C++ Compiler
20442 lt_prog_compiler_wl_CXX='--backend -Wl,'
20443 lt_prog_compiler_pic_CXX='-fPIC'
20445 ecpc* )
20446 # old Intel C++ for x86_64 which still supported -KPIC.
20447 lt_prog_compiler_wl_CXX='-Wl,'
20448 lt_prog_compiler_pic_CXX='-KPIC'
20449 lt_prog_compiler_static_CXX='-static'
20451 icpc* )
20452 # Intel C++, used to be incompatible with GCC.
20453 # ICC 10 doesn't accept -KPIC any more.
20454 lt_prog_compiler_wl_CXX='-Wl,'
20455 lt_prog_compiler_pic_CXX='-fPIC'
20456 lt_prog_compiler_static_CXX='-static'
20458 pgCC* | pgcpp*)
20459 # Portland Group C++ compiler
20460 lt_prog_compiler_wl_CXX='-Wl,'
20461 lt_prog_compiler_pic_CXX='-fpic'
20462 lt_prog_compiler_static_CXX='-Bstatic'
20464 cxx*)
20465 # Compaq C++
20466 # Make sure the PIC flag is empty. It appears that all Alpha
20467 # Linux and Compaq Tru64 Unix objects are PIC.
20468 lt_prog_compiler_pic_CXX=
20469 lt_prog_compiler_static_CXX='-non_shared'
20471 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20472 # IBM XL 8.0, 9.0 on PPC and BlueGene
20473 lt_prog_compiler_wl_CXX='-Wl,'
20474 lt_prog_compiler_pic_CXX='-qpic'
20475 lt_prog_compiler_static_CXX='-qstaticlink'
20478 case `$CC -V 2>&1 | sed 5q` in
20479 *Sun\ C*)
20480 # Sun C++ 5.9
20481 lt_prog_compiler_pic_CXX='-KPIC'
20482 lt_prog_compiler_static_CXX='-Bstatic'
20483 lt_prog_compiler_wl_CXX='-Qoption ld '
20485 esac
20487 esac
20489 lynxos*)
20491 m88k*)
20493 mvs*)
20494 case $cc_basename in
20495 cxx*)
20496 lt_prog_compiler_pic_CXX='-W c,exportall'
20500 esac
20502 netbsd*)
20504 *qnx* | *nto*)
20505 # QNX uses GNU C++, but need to define -shared option too, otherwise
20506 # it will coredump.
20507 lt_prog_compiler_pic_CXX='-fPIC -shared'
20509 osf3* | osf4* | osf5*)
20510 case $cc_basename in
20511 KCC*)
20512 lt_prog_compiler_wl_CXX='--backend -Wl,'
20514 RCC*)
20515 # Rational C++ 2.4.1
20516 lt_prog_compiler_pic_CXX='-pic'
20518 cxx*)
20519 # Digital/Compaq C++
20520 lt_prog_compiler_wl_CXX='-Wl,'
20521 # Make sure the PIC flag is empty. It appears that all Alpha
20522 # Linux and Compaq Tru64 Unix objects are PIC.
20523 lt_prog_compiler_pic_CXX=
20524 lt_prog_compiler_static_CXX='-non_shared'
20528 esac
20530 psos*)
20532 solaris*)
20533 case $cc_basename in
20534 CC*)
20535 # Sun C++ 4.2, 5.x and Centerline C++
20536 lt_prog_compiler_pic_CXX='-KPIC'
20537 lt_prog_compiler_static_CXX='-Bstatic'
20538 lt_prog_compiler_wl_CXX='-Qoption ld '
20540 gcx*)
20541 # Green Hills C++ Compiler
20542 lt_prog_compiler_pic_CXX='-PIC'
20546 esac
20548 sunos4*)
20549 case $cc_basename in
20550 CC*)
20551 # Sun C++ 4.x
20552 lt_prog_compiler_pic_CXX='-pic'
20553 lt_prog_compiler_static_CXX='-Bstatic'
20555 lcc*)
20556 # Lucid
20557 lt_prog_compiler_pic_CXX='-pic'
20561 esac
20563 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20564 case $cc_basename in
20565 CC*)
20566 lt_prog_compiler_wl_CXX='-Wl,'
20567 lt_prog_compiler_pic_CXX='-KPIC'
20568 lt_prog_compiler_static_CXX='-Bstatic'
20570 esac
20572 tandem*)
20573 case $cc_basename in
20574 NCC*)
20575 # NonStop-UX NCC 3.20
20576 lt_prog_compiler_pic_CXX='-KPIC'
20580 esac
20582 vxworks*)
20585 lt_prog_compiler_can_build_shared_CXX=no
20587 esac
20590 case $host_os in
20591 # For platforms which do not support PIC, -DPIC is meaningless:
20592 *djgpp*)
20593 lt_prog_compiler_pic_CXX=
20596 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20598 esac
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20600 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20605 # Check to make sure the PIC flag actually works.
20607 if test -n "$lt_prog_compiler_pic_CXX"; then
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20609 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20610 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20611 $as_echo_n "(cached) " >&6
20612 else
20613 lt_cv_prog_compiler_pic_works_CXX=no
20614 ac_outfile=conftest.$ac_objext
20615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20616 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20617 # Insert the option either (1) after the last *FLAGS variable, or
20618 # (2) before a word containing "conftest.", or (3) at the end.
20619 # Note that $ac_compile itself does not contain backslashes and begins
20620 # with a dollar sign (not a hyphen), so the echo should work correctly.
20621 # The option is referenced via a variable to avoid confusing sed.
20622 lt_compile=`echo "$ac_compile" | $SED \
20623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20625 -e 's:$: $lt_compiler_flag:'`
20626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20627 (eval "$lt_compile" 2>conftest.err)
20628 ac_status=$?
20629 cat conftest.err >&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 if (exit $ac_status) && test -s "$ac_outfile"; then
20632 # The compiler can only warn and ignore the option if not recognized
20633 # So say no if there are warnings other than the usual output.
20634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20637 lt_cv_prog_compiler_pic_works_CXX=yes
20640 $RM conftest*
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20644 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20646 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20647 case $lt_prog_compiler_pic_CXX in
20648 "" | " "*) ;;
20649 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20650 esac
20651 else
20652 lt_prog_compiler_pic_CXX=
20653 lt_prog_compiler_can_build_shared_CXX=no
20661 # Check to make sure the static flag actually works.
20663 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20665 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20666 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20667 $as_echo_n "(cached) " >&6
20668 else
20669 lt_cv_prog_compiler_static_works_CXX=no
20670 save_LDFLAGS="$LDFLAGS"
20671 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20672 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20673 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20674 # The linker can only warn and ignore the option if not recognized
20675 # So say no if there are warnings
20676 if test -s conftest.err; then
20677 # Append any errors to the config.log.
20678 cat conftest.err 1>&5
20679 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20681 if diff conftest.exp conftest.er2 >/dev/null; then
20682 lt_cv_prog_compiler_static_works_CXX=yes
20684 else
20685 lt_cv_prog_compiler_static_works_CXX=yes
20688 $RM -r conftest*
20689 LDFLAGS="$save_LDFLAGS"
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20693 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20695 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20697 else
20698 lt_prog_compiler_static_CXX=
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20705 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20706 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20707 $as_echo_n "(cached) " >&6
20708 else
20709 lt_cv_prog_compiler_c_o_CXX=no
20710 $RM -r conftest 2>/dev/null
20711 mkdir conftest
20712 cd conftest
20713 mkdir out
20714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20716 lt_compiler_flag="-o out/conftest2.$ac_objext"
20717 # Insert the option either (1) after the last *FLAGS variable, or
20718 # (2) before a word containing "conftest.", or (3) at the end.
20719 # Note that $ac_compile itself does not contain backslashes and begins
20720 # with a dollar sign (not a hyphen), so the echo should work correctly.
20721 lt_compile=`echo "$ac_compile" | $SED \
20722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20724 -e 's:$: $lt_compiler_flag:'`
20725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20726 (eval "$lt_compile" 2>out/conftest.err)
20727 ac_status=$?
20728 cat out/conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20731 then
20732 # The compiler can only warn and ignore the option if not recognized
20733 # So say no if there are warnings
20734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20737 lt_cv_prog_compiler_c_o_CXX=yes
20740 chmod u+w . 2>&5
20741 $RM conftest*
20742 # SGI C++ compiler will create directory out/ii_files/ for
20743 # template instantiation
20744 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20745 $RM out/* && rmdir out
20746 cd ..
20747 $RM -r conftest
20748 $RM conftest*
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20752 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20758 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20759 $as_echo_n "(cached) " >&6
20760 else
20761 lt_cv_prog_compiler_c_o_CXX=no
20762 $RM -r conftest 2>/dev/null
20763 mkdir conftest
20764 cd conftest
20765 mkdir out
20766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20768 lt_compiler_flag="-o out/conftest2.$ac_objext"
20769 # Insert the option either (1) after the last *FLAGS variable, or
20770 # (2) before a word containing "conftest.", or (3) at the end.
20771 # Note that $ac_compile itself does not contain backslashes and begins
20772 # with a dollar sign (not a hyphen), so the echo should work correctly.
20773 lt_compile=`echo "$ac_compile" | $SED \
20774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20776 -e 's:$: $lt_compiler_flag:'`
20777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20778 (eval "$lt_compile" 2>out/conftest.err)
20779 ac_status=$?
20780 cat out/conftest.err >&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20783 then
20784 # The compiler can only warn and ignore the option if not recognized
20785 # So say no if there are warnings
20786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20789 lt_cv_prog_compiler_c_o_CXX=yes
20792 chmod u+w . 2>&5
20793 $RM conftest*
20794 # SGI C++ compiler will create directory out/ii_files/ for
20795 # template instantiation
20796 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20797 $RM out/* && rmdir out
20798 cd ..
20799 $RM -r conftest
20800 $RM conftest*
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20804 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20809 hard_links="nottested"
20810 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20811 # do not overwrite the value of need_locks provided by the user
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20813 $as_echo_n "checking if we can lock with hard links... " >&6; }
20814 hard_links=yes
20815 $RM conftest*
20816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20817 touch conftest.a
20818 ln conftest.a conftest.b 2>&5 || hard_links=no
20819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20821 $as_echo "$hard_links" >&6; }
20822 if test "$hard_links" = no; then
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20824 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20825 need_locks=warn
20827 else
20828 need_locks=no
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20834 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20836 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20837 case $host_os in
20838 aix[4-9]*)
20839 # If we're using GNU nm, then we don't want the "-C" option.
20840 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20841 # Also, AIX nm treats weak defined symbols like other global defined
20842 # symbols, whereas GNU nm marks them as "W".
20843 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20844 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'
20845 else
20846 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20849 pw32*)
20850 export_symbols_cmds_CXX="$ltdll_cmds"
20852 cygwin* | mingw* | cegcc*)
20853 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'
20856 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20858 esac
20859 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20862 $as_echo "$ld_shlibs_CXX" >&6; }
20863 test "$ld_shlibs_CXX" = no && can_build_shared=no
20865 with_gnu_ld_CXX=$with_gnu_ld
20873 # Do we need to explicitly link libc?
20875 case "x$archive_cmds_need_lc_CXX" in
20876 x|xyes)
20877 # Assume -lc should be added
20878 archive_cmds_need_lc_CXX=yes
20880 if test "$enable_shared" = yes && test "$GCC" = yes; then
20881 case $archive_cmds_CXX in
20882 *'~'*)
20883 # FIXME: we may have to deal with multi-command sequences.
20885 '$CC '*)
20886 # Test whether the compiler implicitly links with -lc since on some
20887 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20888 # to ld, don't add -lc before -lgcc.
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20890 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20891 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20892 $as_echo_n "(cached) " >&6
20893 else
20894 $RM conftest*
20895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20898 (eval $ac_compile) 2>&5
20899 ac_status=$?
20900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20901 test $ac_status = 0; } 2>conftest.err; then
20902 soname=conftest
20903 lib=conftest
20904 libobjs=conftest.$ac_objext
20905 deplibs=
20906 wl=$lt_prog_compiler_wl_CXX
20907 pic_flag=$lt_prog_compiler_pic_CXX
20908 compiler_flags=-v
20909 linker_flags=-v
20910 verstring=
20911 output_objdir=.
20912 libname=conftest
20913 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20914 allow_undefined_flag_CXX=
20915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20916 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20917 ac_status=$?
20918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919 test $ac_status = 0; }
20920 then
20921 lt_cv_archive_cmds_need_lc_CXX=no
20922 else
20923 lt_cv_archive_cmds_need_lc_CXX=yes
20925 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20926 else
20927 cat conftest.err 1>&5
20929 $RM conftest*
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20933 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20934 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20936 esac
20939 esac
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21007 library_names_spec=
21008 libname_spec='lib$name'
21009 soname_spec=
21010 shrext_cmds=".so"
21011 postinstall_cmds=
21012 postuninstall_cmds=
21013 finish_cmds=
21014 finish_eval=
21015 shlibpath_var=
21016 shlibpath_overrides_runpath=unknown
21017 version_type=none
21018 dynamic_linker="$host_os ld.so"
21019 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21020 need_lib_prefix=unknown
21021 hardcode_into_libs=no
21023 # when you set need_version to no, make sure it does not cause -set_version
21024 # flags to be left without arguments
21025 need_version=unknown
21027 case $host_os in
21028 aix3*)
21029 version_type=linux
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21031 shlibpath_var=LIBPATH
21033 # AIX 3 has no versioning support, so we append a major version to the name.
21034 soname_spec='${libname}${release}${shared_ext}$major'
21037 aix[4-9]*)
21038 version_type=linux
21039 need_lib_prefix=no
21040 need_version=no
21041 hardcode_into_libs=yes
21042 if test "$host_cpu" = ia64; then
21043 # AIX 5 supports IA64
21044 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21045 shlibpath_var=LD_LIBRARY_PATH
21046 else
21047 # With GCC up to 2.95.x, collect2 would create an import file
21048 # for dependence libraries. The import file would start with
21049 # the line `#! .'. This would cause the generated library to
21050 # depend on `.', always an invalid library. This was fixed in
21051 # development snapshots of GCC prior to 3.0.
21052 case $host_os in
21053 aix4 | aix4.[01] | aix4.[01].*)
21054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21055 echo ' yes '
21056 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21058 else
21059 can_build_shared=no
21062 esac
21063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21064 # soname into executable. Probably we can add versioning support to
21065 # collect2, so additional links can be useful in future.
21066 if test "$aix_use_runtimelinking" = yes; then
21067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21068 # instead of lib<name>.a to let people know that these are not
21069 # typical AIX shared libraries.
21070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21071 else
21072 # We preserve .a as extension for shared libraries through AIX4.2
21073 # and later when we are not doing run time linking.
21074 library_names_spec='${libname}${release}.a $libname.a'
21075 soname_spec='${libname}${release}${shared_ext}$major'
21077 shlibpath_var=LIBPATH
21081 amigaos*)
21082 case $host_cpu in
21083 powerpc)
21084 # Since July 2007 AmigaOS4 officially supports .so libraries.
21085 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21088 m68k)
21089 library_names_spec='$libname.ixlibrary $libname.a'
21090 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21091 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'
21093 esac
21096 beos*)
21097 library_names_spec='${libname}${shared_ext}'
21098 dynamic_linker="$host_os ld.so"
21099 shlibpath_var=LIBRARY_PATH
21102 bsdi[45]*)
21103 version_type=linux
21104 need_version=no
21105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21106 soname_spec='${libname}${release}${shared_ext}$major'
21107 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21108 shlibpath_var=LD_LIBRARY_PATH
21109 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21110 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21111 # the default ld.so.conf also contains /usr/contrib/lib and
21112 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21113 # libtool to hard-code these into programs
21116 cygwin* | mingw* | pw32* | cegcc*)
21117 version_type=windows
21118 shrext_cmds=".dll"
21119 need_version=no
21120 need_lib_prefix=no
21122 case $GCC,$host_os in
21123 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21124 library_names_spec='$libname.dll.a'
21125 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21126 postinstall_cmds='base_file=`basename \${file}`~
21127 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21128 dldir=$destdir/`dirname \$dlpath`~
21129 test -d \$dldir || mkdir -p \$dldir~
21130 $install_prog $dir/$dlname \$dldir/$dlname~
21131 chmod a+x \$dldir/$dlname~
21132 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21133 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21135 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21136 dlpath=$dir/\$dldll~
21137 $RM \$dlpath'
21138 shlibpath_overrides_runpath=yes
21140 case $host_os in
21141 cygwin*)
21142 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21143 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21146 mingw* | cegcc*)
21147 # MinGW DLLs use traditional 'lib' prefix
21148 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21150 pw32*)
21151 # pw32 DLLs use 'pw' prefix rather than 'lib'
21152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21154 esac
21158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21160 esac
21161 dynamic_linker='Win32 ld.exe'
21162 # FIXME: first we should search . and the directory the executable is in
21163 shlibpath_var=PATH
21166 darwin* | rhapsody*)
21167 dynamic_linker="$host_os dyld"
21168 version_type=darwin
21169 need_lib_prefix=no
21170 need_version=no
21171 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21172 soname_spec='${libname}${release}${major}$shared_ext'
21173 shlibpath_overrides_runpath=yes
21174 shlibpath_var=DYLD_LIBRARY_PATH
21175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21177 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21180 dgux*)
21181 version_type=linux
21182 need_lib_prefix=no
21183 need_version=no
21184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21185 soname_spec='${libname}${release}${shared_ext}$major'
21186 shlibpath_var=LD_LIBRARY_PATH
21189 freebsd* | dragonfly*)
21190 # DragonFly does not have aout. When/if they implement a new
21191 # versioning mechanism, adjust this.
21192 if test -x /usr/bin/objformat; then
21193 objformat=`/usr/bin/objformat`
21194 else
21195 case $host_os in
21196 freebsd[23].*) objformat=aout ;;
21197 *) objformat=elf ;;
21198 esac
21200 version_type=freebsd-$objformat
21201 case $version_type in
21202 freebsd-elf*)
21203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21204 need_version=no
21205 need_lib_prefix=no
21207 freebsd-*)
21208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21209 need_version=yes
21211 esac
21212 shlibpath_var=LD_LIBRARY_PATH
21213 case $host_os in
21214 freebsd2.*)
21215 shlibpath_overrides_runpath=yes
21217 freebsd3.[01]* | freebsdelf3.[01]*)
21218 shlibpath_overrides_runpath=yes
21219 hardcode_into_libs=yes
21221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21223 shlibpath_overrides_runpath=no
21224 hardcode_into_libs=yes
21226 *) # from 4.6 on, and DragonFly
21227 shlibpath_overrides_runpath=yes
21228 hardcode_into_libs=yes
21230 esac
21233 gnu*)
21234 version_type=linux
21235 need_lib_prefix=no
21236 need_version=no
21237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21238 soname_spec='${libname}${release}${shared_ext}$major'
21239 shlibpath_var=LD_LIBRARY_PATH
21240 hardcode_into_libs=yes
21243 haiku*)
21244 version_type=linux
21245 need_lib_prefix=no
21246 need_version=no
21247 dynamic_linker="$host_os runtime_loader"
21248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21249 soname_spec='${libname}${release}${shared_ext}$major'
21250 shlibpath_var=LIBRARY_PATH
21251 shlibpath_overrides_runpath=yes
21252 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21253 hardcode_into_libs=yes
21256 hpux9* | hpux10* | hpux11*)
21257 # Give a soname corresponding to the major version so that dld.sl refuses to
21258 # link against other versions.
21259 version_type=sunos
21260 need_lib_prefix=no
21261 need_version=no
21262 case $host_cpu in
21263 ia64*)
21264 shrext_cmds='.so'
21265 hardcode_into_libs=yes
21266 dynamic_linker="$host_os dld.so"
21267 shlibpath_var=LD_LIBRARY_PATH
21268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21270 soname_spec='${libname}${release}${shared_ext}$major'
21271 if test "X$HPUX_IA64_MODE" = X32; then
21272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21273 else
21274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21278 hppa*64*)
21279 shrext_cmds='.sl'
21280 hardcode_into_libs=yes
21281 dynamic_linker="$host_os dld.sl"
21282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21285 soname_spec='${libname}${release}${shared_ext}$major'
21286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21290 shrext_cmds='.sl'
21291 dynamic_linker="$host_os dld.sl"
21292 shlibpath_var=SHLIB_PATH
21293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21295 soname_spec='${libname}${release}${shared_ext}$major'
21297 esac
21298 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21299 postinstall_cmds='chmod 555 $lib'
21300 # or fails outright, so override atomically:
21301 install_override_mode=555
21304 interix[3-9]*)
21305 version_type=linux
21306 need_lib_prefix=no
21307 need_version=no
21308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21309 soname_spec='${libname}${release}${shared_ext}$major'
21310 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21311 shlibpath_var=LD_LIBRARY_PATH
21312 shlibpath_overrides_runpath=no
21313 hardcode_into_libs=yes
21316 irix5* | irix6* | nonstopux*)
21317 case $host_os in
21318 nonstopux*) version_type=nonstopux ;;
21320 if test "$lt_cv_prog_gnu_ld" = yes; then
21321 version_type=linux
21322 else
21323 version_type=irix
21324 fi ;;
21325 esac
21326 need_lib_prefix=no
21327 need_version=no
21328 soname_spec='${libname}${release}${shared_ext}$major'
21329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21330 case $host_os in
21331 irix5* | nonstopux*)
21332 libsuff= shlibsuff=
21335 case $LD in # libtool.m4 will add one of these switches to LD
21336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21337 libsuff= shlibsuff= libmagic=32-bit;;
21338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21339 libsuff=32 shlibsuff=N32 libmagic=N32;;
21340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21342 *) libsuff= shlibsuff= libmagic=never-match;;
21343 esac
21345 esac
21346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21347 shlibpath_overrides_runpath=no
21348 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21349 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21350 hardcode_into_libs=yes
21353 # No shared lib support for Linux oldld, aout, or coff.
21354 linux*oldld* | linux*aout* | linux*coff*)
21355 dynamic_linker=no
21358 # This must be Linux ELF.
21359 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21360 version_type=linux
21361 need_lib_prefix=no
21362 need_version=no
21363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21364 soname_spec='${libname}${release}${shared_ext}$major'
21365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21366 shlibpath_var=LD_LIBRARY_PATH
21367 shlibpath_overrides_runpath=no
21369 # Some binutils ld are patched to set DT_RUNPATH
21370 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21371 $as_echo_n "(cached) " >&6
21372 else
21373 lt_cv_shlibpath_overrides_runpath=no
21374 save_LDFLAGS=$LDFLAGS
21375 save_libdir=$libdir
21376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h. */
21382 main ()
21386 return 0;
21388 _ACEOF
21389 if ac_fn_cxx_try_link "$LINENO"; then :
21390 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21391 lt_cv_shlibpath_overrides_runpath=yes
21394 rm -f core conftest.err conftest.$ac_objext \
21395 conftest$ac_exeext conftest.$ac_ext
21396 LDFLAGS=$save_LDFLAGS
21397 libdir=$save_libdir
21401 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21403 # This implies no fast_install, which is unacceptable.
21404 # Some rework will be needed to allow for fast_install
21405 # before this can be enabled.
21406 hardcode_into_libs=yes
21408 # Append ld.so.conf contents to the search path
21409 if test -f /etc/ld.so.conf; then
21410 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' ' '`
21411 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21414 # We used to test for /lib/ld.so.1 and disable shared libraries on
21415 # powerpc, because MkLinux only supported shared libraries with the
21416 # GNU dynamic linker. Since this was broken with cross compilers,
21417 # most powerpc-linux boxes support dynamic linking these days and
21418 # people can always --disable-shared, the test was removed, and we
21419 # assume the GNU/Linux dynamic linker is in use.
21420 dynamic_linker='GNU/Linux ld.so'
21423 netbsd*)
21424 version_type=sunos
21425 need_lib_prefix=no
21426 need_version=no
21427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21430 dynamic_linker='NetBSD (a.out) ld.so'
21431 else
21432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21433 soname_spec='${libname}${release}${shared_ext}$major'
21434 dynamic_linker='NetBSD ld.elf_so'
21436 shlibpath_var=LD_LIBRARY_PATH
21437 shlibpath_overrides_runpath=yes
21438 hardcode_into_libs=yes
21441 newsos6)
21442 version_type=linux
21443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21444 shlibpath_var=LD_LIBRARY_PATH
21445 shlibpath_overrides_runpath=yes
21448 *nto* | *qnx*)
21449 version_type=qnx
21450 need_lib_prefix=no
21451 need_version=no
21452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21453 soname_spec='${libname}${release}${shared_ext}$major'
21454 shlibpath_var=LD_LIBRARY_PATH
21455 shlibpath_overrides_runpath=no
21456 hardcode_into_libs=yes
21457 dynamic_linker='ldqnx.so'
21460 openbsd*)
21461 version_type=sunos
21462 sys_lib_dlsearch_path_spec="/usr/lib"
21463 need_lib_prefix=no
21464 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21465 case $host_os in
21466 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21467 *) need_version=no ;;
21468 esac
21469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21471 shlibpath_var=LD_LIBRARY_PATH
21472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21473 case $host_os in
21474 openbsd2.[89] | openbsd2.[89].*)
21475 shlibpath_overrides_runpath=no
21478 shlibpath_overrides_runpath=yes
21480 esac
21481 else
21482 shlibpath_overrides_runpath=yes
21486 os2*)
21487 libname_spec='$name'
21488 shrext_cmds=".dll"
21489 need_lib_prefix=no
21490 library_names_spec='$libname${shared_ext} $libname.a'
21491 dynamic_linker='OS/2 ld.exe'
21492 shlibpath_var=LIBPATH
21495 osf3* | osf4* | osf5*)
21496 version_type=osf
21497 need_lib_prefix=no
21498 need_version=no
21499 soname_spec='${libname}${release}${shared_ext}$major'
21500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21501 shlibpath_var=LD_LIBRARY_PATH
21502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21506 rdos*)
21507 dynamic_linker=no
21510 solaris*)
21511 version_type=linux
21512 need_lib_prefix=no
21513 need_version=no
21514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21515 soname_spec='${libname}${release}${shared_ext}$major'
21516 shlibpath_var=LD_LIBRARY_PATH
21517 shlibpath_overrides_runpath=yes
21518 hardcode_into_libs=yes
21519 # ldd complains unless libraries are executable
21520 postinstall_cmds='chmod +x $lib'
21523 sunos4*)
21524 version_type=sunos
21525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21527 shlibpath_var=LD_LIBRARY_PATH
21528 shlibpath_overrides_runpath=yes
21529 if test "$with_gnu_ld" = yes; then
21530 need_lib_prefix=no
21532 need_version=yes
21535 sysv4 | sysv4.3*)
21536 version_type=linux
21537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21538 soname_spec='${libname}${release}${shared_ext}$major'
21539 shlibpath_var=LD_LIBRARY_PATH
21540 case $host_vendor in
21541 sni)
21542 shlibpath_overrides_runpath=no
21543 need_lib_prefix=no
21544 runpath_var=LD_RUN_PATH
21546 siemens)
21547 need_lib_prefix=no
21549 motorola)
21550 need_lib_prefix=no
21551 need_version=no
21552 shlibpath_overrides_runpath=no
21553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21555 esac
21558 sysv4*MP*)
21559 if test -d /usr/nec ;then
21560 version_type=linux
21561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21562 soname_spec='$libname${shared_ext}.$major'
21563 shlibpath_var=LD_LIBRARY_PATH
21567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21568 version_type=freebsd-elf
21569 need_lib_prefix=no
21570 need_version=no
21571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21572 soname_spec='${libname}${release}${shared_ext}$major'
21573 shlibpath_var=LD_LIBRARY_PATH
21574 shlibpath_overrides_runpath=yes
21575 hardcode_into_libs=yes
21576 if test "$with_gnu_ld" = yes; then
21577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21578 else
21579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21580 case $host_os in
21581 sco3.2v5*)
21582 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21584 esac
21586 sys_lib_dlsearch_path_spec='/usr/lib'
21589 tpf*)
21590 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21591 version_type=linux
21592 need_lib_prefix=no
21593 need_version=no
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 shlibpath_var=LD_LIBRARY_PATH
21596 shlibpath_overrides_runpath=no
21597 hardcode_into_libs=yes
21600 uts4*)
21601 version_type=linux
21602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21603 soname_spec='${libname}${release}${shared_ext}$major'
21604 shlibpath_var=LD_LIBRARY_PATH
21608 dynamic_linker=no
21610 esac
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21612 $as_echo "$dynamic_linker" >&6; }
21613 test "$dynamic_linker" = no && can_build_shared=no
21615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21616 if test "$GCC" = yes; then
21617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21620 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21621 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21623 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21624 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21665 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21666 hardcode_action_CXX=
21667 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21668 test -n "$runpath_var_CXX" ||
21669 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21671 # We can hardcode non-existent directories.
21672 if test "$hardcode_direct_CXX" != no &&
21673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21674 # have to relink, otherwise we might link with an installed library
21675 # when we should be linking with a yet-to-be-installed one
21676 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21677 test "$hardcode_minus_L_CXX" != no; then
21678 # Linking always hardcodes the temporary library directory.
21679 hardcode_action_CXX=relink
21680 else
21681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21682 hardcode_action_CXX=immediate
21684 else
21685 # We cannot hardcode anything, or else we can only hardcode existing
21686 # directories.
21687 hardcode_action_CXX=unsupported
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21690 $as_echo "$hardcode_action_CXX" >&6; }
21692 if test "$hardcode_action_CXX" = relink ||
21693 test "$inherit_rpath_CXX" = yes; then
21694 # Fast installation is not supported
21695 enable_fast_install=no
21696 elif test "$shlibpath_overrides_runpath" = yes ||
21697 test "$enable_shared" = no; then
21698 # Fast installation is not necessary
21699 enable_fast_install=needless
21708 fi # test -n "$compiler"
21710 CC=$lt_save_CC
21711 LDCXX=$LD
21712 LD=$lt_save_LD
21713 GCC=$lt_save_GCC
21714 with_gnu_ld=$lt_save_with_gnu_ld
21715 lt_cv_path_LDCXX=$lt_cv_path_LD
21716 lt_cv_path_LD=$lt_save_path_LD
21717 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21718 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21719 fi # test "$_lt_caught_CXX_error" != yes
21721 ac_ext=cpp
21722 ac_cpp='$CXXCPP $CPPFLAGS'
21723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21742 # Only expand once:
21748 # Identify the assembler which will work hand-in-glove with the newly
21749 # built GCC, so that we can examine its features. This is the assembler
21750 # which will be driven by the driver program.
21752 # If build != host, and we aren't building gas in-tree, we identify a
21753 # build->target assembler and hope that it will have the same features
21754 # as the host->target assembler we'll be using.
21755 gcc_cv_gas_major_version=
21756 gcc_cv_gas_minor_version=
21757 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21759 if test "${gcc_cv_as+set}" = set; then :
21761 else
21763 if test -x "$DEFAULT_ASSEMBLER"; then
21764 gcc_cv_as="$DEFAULT_ASSEMBLER"
21765 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21766 && test -f ../gas/Makefile \
21767 && test x$build = x$host; then
21768 gcc_cv_as=../gas/as-new$build_exeext
21769 elif test -x as$build_exeext; then
21770 # Build using assembler in the current directory.
21771 gcc_cv_as=./as$build_exeext
21772 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21773 gcc_cv_as="$AS_FOR_TARGET"
21774 else
21775 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21776 set dummy $AS_FOR_TARGET; ac_word=$2
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21778 $as_echo_n "checking for $ac_word... " >&6; }
21779 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782 case $gcc_cv_as in
21783 [\\/]* | ?:[\\/]*)
21784 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21788 for as_dir in $PATH
21790 IFS=$as_save_IFS
21791 test -z "$as_dir" && as_dir=.
21792 for ac_exec_ext in '' $ac_executable_extensions; do
21793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21794 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21796 break 2
21798 done
21799 done
21800 IFS=$as_save_IFS
21803 esac
21805 gcc_cv_as=$ac_cv_path_gcc_cv_as
21806 if test -n "$gcc_cv_as"; then
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21808 $as_echo "$gcc_cv_as" >&6; }
21809 else
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21811 $as_echo "no" >&6; }
21818 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21820 case "$ORIGINAL_AS_FOR_TARGET" in
21821 ./as | ./as$build_exeext) ;;
21822 *) ac_config_files="$ac_config_files as:exec-tool.in"
21824 esac
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21827 $as_echo_n "checking what assembler to use... " >&6; }
21828 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21829 # Single tree build which includes gas. We want to prefer it
21830 # over whatever linker top-level may have detected, since
21831 # we'll use what we're building after installation anyway.
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21833 $as_echo "newly built gas" >&6; }
21834 in_tree_gas=yes
21835 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21836 for f in $gcc_cv_as_bfd_srcdir/configure \
21837 $gcc_cv_as_gas_srcdir/configure \
21838 $gcc_cv_as_gas_srcdir/configure.ac \
21839 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21840 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21841 if test x$gcc_cv_gas_version != x; then
21842 break
21844 done
21845 case $gcc_cv_gas_version in
21846 VERSION=[0-9]*) ;;
21847 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21848 esac
21849 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21850 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21851 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21852 case $gcc_cv_gas_patch_version in
21853 "") gcc_cv_gas_patch_version="0" ;;
21854 esac
21855 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21856 + $gcc_cv_gas_minor_version \) \* 1000 \
21857 + $gcc_cv_gas_patch_version`
21859 in_tree_gas_is_elf=no
21860 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21861 || (grep 'obj_format = multi' ../gas/Makefile \
21862 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21863 then
21864 in_tree_gas_is_elf=yes
21866 else
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21868 $as_echo "$gcc_cv_as" >&6; }
21869 in_tree_gas=no
21872 default_ld=
21873 # Check whether --enable-ld was given.
21874 if test "${enable_ld+set}" = set; then :
21875 enableval=$enable_ld; case "${enableval}" in
21877 default_ld=ld.gold
21879 esac
21883 install_gold_as_default=no
21884 # Check whether --enable-gold was given.
21885 if test "${enable_gold+set}" = set; then :
21886 enableval=$enable_gold; case "${enableval}" in
21887 default)
21888 install_gold_as_default=yes
21890 yes)
21891 if test x${default_ld} != x; then
21892 install_gold_as_default=yes
21898 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21900 esac
21904 # Identify the linker which will work hand-in-glove with the newly
21905 # built GCC, so that we can examine its features. This is the linker
21906 # which will be driven by the driver program.
21908 # If build != host, and we aren't building gas in-tree, we identify a
21909 # build->target linker and hope that it will have the same features
21910 # as the host->target linker we'll be using.
21911 gcc_cv_gld_major_version=
21912 gcc_cv_gld_minor_version=
21913 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21914 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21915 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21917 if test "${gcc_cv_ld+set}" = set; then :
21919 else
21921 if test -x "$DEFAULT_LINKER"; then
21922 gcc_cv_ld="$DEFAULT_LINKER"
21923 elif test $install_gold_as_default = yes \
21924 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21925 && test -f ../gold/Makefile \
21926 && test x$build = x$host; then
21927 gcc_cv_ld=../gold/ld-new$build_exeext
21928 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21929 && test -f ../ld/Makefile \
21930 && test x$build = x$host; then
21931 gcc_cv_ld=../ld/ld-new$build_exeext
21932 elif test -x collect-ld$build_exeext; then
21933 # Build using linker in the current directory.
21934 gcc_cv_ld=./collect-ld$build_exeext
21935 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21936 gcc_cv_ld="$LD_FOR_TARGET"
21937 else
21938 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21939 set dummy $LD_FOR_TARGET; ac_word=$2
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21941 $as_echo_n "checking for $ac_word... " >&6; }
21942 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21943 $as_echo_n "(cached) " >&6
21944 else
21945 case $gcc_cv_ld in
21946 [\\/]* | ?:[\\/]*)
21947 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21951 for as_dir in $PATH
21953 IFS=$as_save_IFS
21954 test -z "$as_dir" && as_dir=.
21955 for ac_exec_ext in '' $ac_executable_extensions; do
21956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21957 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21959 break 2
21961 done
21962 done
21963 IFS=$as_save_IFS
21966 esac
21968 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21969 if test -n "$gcc_cv_ld"; then
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21971 $as_echo "$gcc_cv_ld" >&6; }
21972 else
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21974 $as_echo "no" >&6; }
21981 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21982 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21983 # if the PLUGIN_LD is set ld-new, just have it as ld
21984 # as that is the installed named.
21985 if test x$PLUGIN_LD_SUFFIX = xld-new \
21986 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21987 PLUGIN_LD_SUFFIX=ld
21990 # Check whether --with-plugin-ld was given.
21991 if test "${with_plugin_ld+set}" = set; then :
21992 withval=$with_plugin_ld; if test x"$withval" != x; then
21993 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21994 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
22000 cat >>confdefs.h <<_ACEOF
22001 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22002 _ACEOF
22005 # Check to see if we are using gold instead of ld
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22007 $as_echo_n "checking whether we are using gold... " >&6; }
22008 ld_is_gold=no
22009 if test x$gcc_cv_ld != x; then
22010 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22011 | grep "GNU gold" > /dev/null; then
22012 ld_is_gold=yes
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22016 $as_echo "$ld_is_gold" >&6; }
22018 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22020 case "$ORIGINAL_LD_FOR_TARGET" in
22021 ./collect-ld | ./collect-ld$build_exeext) ;;
22022 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22024 esac
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22027 $as_echo_n "checking what linker to use... " >&6; }
22028 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22029 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22030 # Single tree build which includes ld. We want to prefer it
22031 # over whatever linker top-level may have detected, since
22032 # we'll use what we're building after installation anyway.
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22034 $as_echo "newly built ld" >&6; }
22035 in_tree_ld=yes
22036 in_tree_ld_is_elf=no
22037 if (grep 'EMUL = .*elf' ../ld/Makefile \
22038 || grep 'EMUL = .*linux' ../ld/Makefile \
22039 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22040 in_tree_ld_is_elf=yes
22041 elif test "$ld_is_gold" = yes; then
22042 in_tree_ld_is_elf=yes
22044 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
22046 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22047 if test x$gcc_cv_gld_version != x; then
22048 break
22050 done
22051 case $gcc_cv_gld_version in
22052 VERSION=[0-9]*) ;;
22053 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22054 esac
22055 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22056 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22057 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22058 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22059 else
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22061 $as_echo "$gcc_cv_ld" >&6; }
22062 in_tree_ld=no
22063 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22064 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22065 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22071 # Figure out what nm we will be using.
22072 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22073 if test "${gcc_cv_nm+set}" = set; then :
22075 else
22077 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22078 && test -f ../binutils/Makefile \
22079 && test x$build = x$host; then
22080 gcc_cv_nm=../binutils/nm-new$build_exeext
22081 elif test -x nm$build_exeext; then
22082 gcc_cv_nm=./nm$build_exeext
22083 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22084 gcc_cv_nm="$NM_FOR_TARGET"
22085 else
22086 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22087 set dummy $NM_FOR_TARGET; ac_word=$2
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22089 $as_echo_n "checking for $ac_word... " >&6; }
22090 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22091 $as_echo_n "(cached) " >&6
22092 else
22093 case $gcc_cv_nm in
22094 [\\/]* | ?:[\\/]*)
22095 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22099 for as_dir in $PATH
22101 IFS=$as_save_IFS
22102 test -z "$as_dir" && as_dir=.
22103 for ac_exec_ext in '' $ac_executable_extensions; do
22104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22105 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22107 break 2
22109 done
22110 done
22111 IFS=$as_save_IFS
22114 esac
22116 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22117 if test -n "$gcc_cv_nm"; then
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22119 $as_echo "$gcc_cv_nm" >&6; }
22120 else
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22122 $as_echo "no" >&6; }
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22130 $as_echo_n "checking what nm to use... " >&6; }
22131 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22132 # Single tree build which includes binutils.
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22134 $as_echo "newly built nm" >&6; }
22135 in_tree_nm=yes
22136 else
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22138 $as_echo "$gcc_cv_nm" >&6; }
22139 in_tree_nm=no
22142 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22144 case "$ORIGINAL_NM_FOR_TARGET" in
22145 ./nm | ./nm$build_exeext) ;;
22146 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22148 esac
22151 # Figure out what objdump we will be using.
22152 if test "${gcc_cv_objdump+set}" = set; then :
22154 else
22156 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22157 && test -f ../binutils/Makefile \
22158 && test x$build = x$host; then
22159 # Single tree build which includes binutils.
22160 gcc_cv_objdump=../binutils/objdump$build_exeext
22161 elif test -x objdump$build_exeext; then
22162 gcc_cv_objdump=./objdump$build_exeext
22163 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22164 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22165 else
22166 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22167 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22169 $as_echo_n "checking for $ac_word... " >&6; }
22170 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22171 $as_echo_n "(cached) " >&6
22172 else
22173 case $gcc_cv_objdump in
22174 [\\/]* | ?:[\\/]*)
22175 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22179 for as_dir in $PATH
22181 IFS=$as_save_IFS
22182 test -z "$as_dir" && as_dir=.
22183 for ac_exec_ext in '' $ac_executable_extensions; do
22184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22185 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22187 break 2
22189 done
22190 done
22191 IFS=$as_save_IFS
22194 esac
22196 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22197 if test -n "$gcc_cv_objdump"; then
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22199 $as_echo "$gcc_cv_objdump" >&6; }
22200 else
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22202 $as_echo "no" >&6; }
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22210 $as_echo_n "checking what objdump to use... " >&6; }
22211 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22212 # Single tree build which includes binutils.
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22214 $as_echo "newly built objdump" >&6; }
22215 elif test x$gcc_cv_objdump = x; then
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22217 $as_echo "not found" >&6; }
22218 else
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22220 $as_echo "$gcc_cv_objdump" >&6; }
22223 # Figure out what readelf we will be using.
22224 if test "${gcc_cv_readelf+set}" = set; then :
22226 else
22228 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22229 && test -f ../binutils/Makefile \
22230 && test x$build = x$host; then
22231 # Single tree build which includes binutils.
22232 gcc_cv_readelf=../binutils/readelf$build_exeext
22233 elif test -x readelf$build_exeext; then
22234 gcc_cv_readelf=./readelf$build_exeext
22235 else
22236 # Extract the first word of "readelf", so it can be a program name with args.
22237 set dummy readelf; ac_word=$2
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22239 $as_echo_n "checking for $ac_word... " >&6; }
22240 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22241 $as_echo_n "(cached) " >&6
22242 else
22243 case $gcc_cv_readelf in
22244 [\\/]* | ?:[\\/]*)
22245 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22249 for as_dir in $PATH
22251 IFS=$as_save_IFS
22252 test -z "$as_dir" && as_dir=.
22253 for ac_exec_ext in '' $ac_executable_extensions; do
22254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22255 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22257 break 2
22259 done
22260 done
22261 IFS=$as_save_IFS
22264 esac
22266 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22267 if test -n "$gcc_cv_readelf"; then
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22269 $as_echo "$gcc_cv_readelf" >&6; }
22270 else
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22272 $as_echo "no" >&6; }
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22280 $as_echo_n "checking what readelf to use... " >&6; }
22281 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22282 # Single tree build which includes binutils.
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22284 $as_echo "newly built readelf" >&6; }
22285 elif test x$gcc_cv_readelf = x; then
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22287 $as_echo "not found" >&6; }
22288 else
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22290 $as_echo "$gcc_cv_readelf" >&6; }
22293 # Figure out what assembler alignment features are present.
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22295 $as_echo_n "checking assembler flags... " >&6; }
22296 if test "${gcc_cv_as_flags+set}" = set; then :
22297 $as_echo_n "(cached) " >&6
22298 else
22299 case "$target" in
22300 i[34567]86-*-linux*)
22301 gcc_cv_as_flags=--32
22303 x86_64-*-linux-gnux32)
22304 gcc_cv_as_flags=--x32
22306 x86_64-*-linux*)
22307 gcc_cv_as_flags=--64
22309 powerpc*-*-darwin*)
22310 gcc_cv_as_flags="-arch ppc"
22313 gcc_cv_as_flags=" "
22315 esac
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22318 $as_echo "$gcc_cv_as_flags" >&6; }
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22321 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22322 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22323 $as_echo_n "(cached) " >&6
22324 else
22325 gcc_cv_as_balign_and_p2align=no
22326 if test $in_tree_gas = yes; then
22327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22328 then gcc_cv_as_balign_and_p2align=yes
22330 elif test x$gcc_cv_as != x; then
22331 $as_echo '.balign 4
22332 .p2align 2' > conftest.s
22333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22338 test $ac_status = 0; }; }
22339 then
22340 gcc_cv_as_balign_and_p2align=yes
22341 else
22342 echo "configure: failed program was" >&5
22343 cat conftest.s >&5
22345 rm -f conftest.o conftest.s
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22349 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22350 if test $gcc_cv_as_balign_and_p2align = yes; then
22352 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22357 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22358 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22359 $as_echo_n "(cached) " >&6
22360 else
22361 gcc_cv_as_max_skip_p2align=no
22362 if test $in_tree_gas = yes; then
22363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22364 then gcc_cv_as_max_skip_p2align=yes
22366 elif test x$gcc_cv_as != x; then
22367 $as_echo '.p2align 4,,7' > conftest.s
22368 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22373 test $ac_status = 0; }; }
22374 then
22375 gcc_cv_as_max_skip_p2align=yes
22376 else
22377 echo "configure: failed program was" >&5
22378 cat conftest.s >&5
22380 rm -f conftest.o conftest.s
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22384 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22385 if test $gcc_cv_as_max_skip_p2align = yes; then
22387 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22392 $as_echo_n "checking assembler for .literal16... " >&6; }
22393 if test "${gcc_cv_as_literal16+set}" = set; then :
22394 $as_echo_n "(cached) " >&6
22395 else
22396 gcc_cv_as_literal16=no
22397 if test $in_tree_gas = yes; then
22398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22399 then gcc_cv_as_literal16=yes
22401 elif test x$gcc_cv_as != x; then
22402 $as_echo '.literal16' > conftest.s
22403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22405 (eval $ac_try) 2>&5
22406 ac_status=$?
22407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408 test $ac_status = 0; }; }
22409 then
22410 gcc_cv_as_literal16=yes
22411 else
22412 echo "configure: failed program was" >&5
22413 cat conftest.s >&5
22415 rm -f conftest.o conftest.s
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22419 $as_echo "$gcc_cv_as_literal16" >&6; }
22420 if test $gcc_cv_as_literal16 = yes; then
22422 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22427 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22428 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22430 else
22431 gcc_cv_as_subsection_m1=no
22432 if test $in_tree_gas = yes; then
22433 if test $in_tree_gas_is_elf = yes \
22434 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22435 then gcc_cv_as_subsection_m1=yes
22437 elif test x$gcc_cv_as != x; then
22438 $as_echo 'conftest_label1: .word 0
22439 .subsection -1
22440 conftest_label2: .word 0
22441 .previous' > conftest.s
22442 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22447 test $ac_status = 0; }; }
22448 then
22449 if test x$gcc_cv_nm != x; then
22450 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22451 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22452 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22453 then :
22454 else gcc_cv_as_subsection_m1=yes
22456 rm -f conftest.nm1 conftest.nm2
22458 else
22459 echo "configure: failed program was" >&5
22460 cat conftest.s >&5
22462 rm -f conftest.o conftest.s
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22466 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22467 if test $gcc_cv_as_subsection_m1 = yes; then
22469 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22474 $as_echo_n "checking assembler for .weak... " >&6; }
22475 if test "${gcc_cv_as_weak+set}" = set; then :
22476 $as_echo_n "(cached) " >&6
22477 else
22478 gcc_cv_as_weak=no
22479 if test $in_tree_gas = yes; then
22480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22481 then gcc_cv_as_weak=yes
22483 elif test x$gcc_cv_as != x; then
22484 $as_echo ' .weak foobar' > conftest.s
22485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22490 test $ac_status = 0; }; }
22491 then
22492 gcc_cv_as_weak=yes
22493 else
22494 echo "configure: failed program was" >&5
22495 cat conftest.s >&5
22497 rm -f conftest.o conftest.s
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22501 $as_echo "$gcc_cv_as_weak" >&6; }
22502 if test $gcc_cv_as_weak = yes; then
22504 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22509 $as_echo_n "checking assembler for .weakref... " >&6; }
22510 if test "${gcc_cv_as_weakref+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22512 else
22513 gcc_cv_as_weakref=no
22514 if test $in_tree_gas = yes; then
22515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22516 then gcc_cv_as_weakref=yes
22518 elif test x$gcc_cv_as != x; then
22519 $as_echo ' .weakref foobar, barfnot' > conftest.s
22520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22522 (eval $ac_try) 2>&5
22523 ac_status=$?
22524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22525 test $ac_status = 0; }; }
22526 then
22527 gcc_cv_as_weakref=yes
22528 else
22529 echo "configure: failed program was" >&5
22530 cat conftest.s >&5
22532 rm -f conftest.o conftest.s
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22536 $as_echo "$gcc_cv_as_weakref" >&6; }
22537 if test $gcc_cv_as_weakref = yes; then
22539 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22544 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22545 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22546 $as_echo_n "(cached) " >&6
22547 else
22548 gcc_cv_as_nsubspa_comdat=no
22549 if test $in_tree_gas = yes; then
22550 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22551 then gcc_cv_as_nsubspa_comdat=yes
22553 elif test x$gcc_cv_as != x; then
22554 $as_echo ' .SPACE $TEXT$
22555 .NSUBSPA $CODE$,COMDAT' > conftest.s
22556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561 test $ac_status = 0; }; }
22562 then
22563 gcc_cv_as_nsubspa_comdat=yes
22564 else
22565 echo "configure: failed program was" >&5
22566 cat conftest.s >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22572 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22573 if test $gcc_cv_as_nsubspa_comdat = yes; then
22575 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22579 # .hidden needs to be supported in both the assembler and the linker,
22580 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22581 # This is irritatingly difficult to feature test for; we have to check the
22582 # date string after the version number. If we've got an in-tree
22583 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22584 # to be safe.
22585 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22587 $as_echo_n "checking assembler for .hidden... " >&6; }
22588 if test "${gcc_cv_as_hidden+set}" = set; then :
22589 $as_echo_n "(cached) " >&6
22590 else
22591 gcc_cv_as_hidden=no
22592 if test $in_tree_gas = yes; then
22593 if test $in_tree_gas_is_elf = yes \
22594 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22595 then gcc_cv_as_hidden=yes
22597 elif test x$gcc_cv_as != x; then
22598 $as_echo ' .hidden foobar
22599 foobar:' > conftest.s
22600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22602 (eval $ac_try) 2>&5
22603 ac_status=$?
22604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22605 test $ac_status = 0; }; }
22606 then
22607 gcc_cv_as_hidden=yes
22608 else
22609 echo "configure: failed program was" >&5
22610 cat conftest.s >&5
22612 rm -f conftest.o conftest.s
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22616 $as_echo "$gcc_cv_as_hidden" >&6; }
22618 case "${target}" in
22619 *-*-darwin*)
22620 # Darwin as has some visibility support, though with a different syntax.
22621 gcc_cv_as_hidden=yes
22623 esac
22625 # gnu_indirect_function type is an extension proposed at
22626 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22627 # selection of function implementation
22628 # Check whether --enable-gnu-indirect-function was given.
22629 if test "${enable_gnu_indirect_function+set}" = set; then :
22630 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22631 yes | no) ;;
22632 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22633 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22634 esac
22635 else
22636 enable_gnu_indirect_function="$default_gnu_indirect_function"
22640 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22642 cat >>confdefs.h <<_ACEOF
22643 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22644 _ACEOF
22648 if test $in_tree_ld != yes ; then
22649 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22650 if echo "$ld_ver" | grep GNU > /dev/null; then
22651 if test x"$ld_is_gold" = xyes; then
22652 # GNU gold --version looks like this:
22654 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22656 # We extract the binutils version which is more familiar and specific
22657 # than the gold version.
22658 ld_vers=`echo $ld_ver | sed -n \
22659 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22660 else
22661 # GNU ld --version looks like this:
22663 # GNU ld (GNU Binutils) 2.21.51.20110225
22664 ld_vers=`echo $ld_ver | sed -n \
22665 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22667 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'`
22668 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22669 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22670 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22671 else
22672 case "${target}" in
22673 *-*-solaris2*)
22674 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22675 # format.
22677 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22678 # /usr/ccs/bin/ld has been configured.
22679 ld_ver=`$gcc_cv_ld -V 2>&1`
22680 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22681 ld_vers=`echo $ld_ver | sed -n \
22682 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22683 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22684 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22687 esac
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22692 $as_echo_n "checking linker for .hidden support... " >&6; }
22693 if test "${gcc_cv_ld_hidden+set}" = set; then :
22694 $as_echo_n "(cached) " >&6
22695 else
22696 if test $in_tree_ld = yes ; then
22697 gcc_cv_ld_hidden=no
22698 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 \
22699 && test $in_tree_ld_is_elf = yes; then
22700 gcc_cv_ld_hidden=yes
22702 else
22703 gcc_cv_ld_hidden=yes
22704 if test x"$ld_is_gold" = xyes; then
22706 elif echo "$ld_ver" | grep GNU > /dev/null; then
22707 case "${target}" in
22708 mmix-knuth-mmixware)
22709 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22710 gcc_cv_ld_hidden=no
22712 esac
22713 if test 0"$ld_date" -lt 20020404; then
22714 if test -n "$ld_date"; then
22715 # If there was date string, but was earlier than 2002-04-04, fail
22716 gcc_cv_ld_hidden=no
22717 elif test -z "$ld_vers"; then
22718 # If there was no date string nor ld version number, something is wrong
22719 gcc_cv_ld_hidden=no
22720 else
22721 test -z "$ld_vers_patch" && ld_vers_patch=0
22722 if test "$ld_vers_major" -lt 2; then
22723 gcc_cv_ld_hidden=no
22724 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22725 gcc_cv_ld_hidden="no"
22726 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22727 gcc_cv_ld_hidden=no
22731 else
22732 case "${target}" in
22733 *-*-darwin*)
22734 # Darwin ld has some visibility support.
22735 gcc_cv_ld_hidden=yes
22737 hppa64*-*-hpux* | ia64*-*-hpux*)
22738 gcc_cv_ld_hidden=yes
22740 *-*-solaris2.1[0-9]*)
22741 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22742 # .symbolic was only added in Solaris 9 12/02.
22743 gcc_cv_ld_hidden=yes
22746 gcc_cv_ld_hidden=no
22748 esac
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22753 $as_echo "$gcc_cv_ld_hidden" >&6; }
22754 libgcc_visibility=no
22757 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22758 libgcc_visibility=yes
22760 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22765 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22766 gcc_cv_ld_ro_rw_mix=unknown
22767 if test $in_tree_ld = yes ; then
22768 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 \
22769 && test $in_tree_ld_is_elf = yes; then
22770 gcc_cv_ld_ro_rw_mix=read-write
22772 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22773 echo '.section myfoosect, "a"' > conftest1.s
22774 echo '.section myfoosect, "aw"' > conftest2.s
22775 echo '.byte 1' >> conftest2.s
22776 echo '.section myfoosect, "a"' > conftest3.s
22777 echo '.byte 0' >> conftest3.s
22778 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22779 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22780 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22781 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22782 conftest2.o conftest3.o > /dev/null 2>&1; then
22783 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22784 | sed -e '/myfoosect/!d' -e N`
22785 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22786 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22787 gcc_cv_ld_ro_rw_mix=read-only
22788 else
22789 gcc_cv_ld_ro_rw_mix=read-write
22793 rm -f conftest.* conftest[123].*
22795 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22797 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22801 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22803 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22804 case "${target}" in
22805 *-*-solaris2*)
22807 # Solaris 2 ld -V output looks like this for a regular version:
22809 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22811 # but test versions add stuff at the end:
22813 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22815 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22816 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22817 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22818 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22819 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22820 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22823 esac
22826 # Check whether --enable-initfini-array was given.
22827 if test "${enable_initfini_array+set}" = set; then :
22828 enableval=$enable_initfini_array;
22829 else
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22832 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22833 if test "${gcc_cv_initfini_array+set}" = set; then :
22834 $as_echo_n "(cached) " >&6
22835 else
22836 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22837 case "${target}" in
22838 ia64-*)
22839 if test "$cross_compiling" = yes; then :
22840 gcc_cv_initfini_array=no
22841 else
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22845 #ifndef __ELF__
22846 #error Not an ELF OS
22847 #endif
22848 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22849 if it can be used. */
22850 static int x = -1;
22851 int main (void) { return x; }
22852 int foo (void) { x = 0; }
22853 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22855 _ACEOF
22856 if ac_fn_cxx_try_run "$LINENO"; then :
22857 gcc_cv_initfini_array=yes
22858 else
22859 gcc_cv_initfini_array=no
22861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22862 conftest.$ac_objext conftest.beam conftest.$ac_ext
22866 gcc_cv_initfini_array=no
22867 if test $in_tree_ld = yes ; then
22868 if test "$gcc_cv_gld_major_version" -eq 2 \
22869 -a "$gcc_cv_gld_minor_version" -ge 22 \
22870 -o "$gcc_cv_gld_major_version" -gt 2 \
22871 && test $in_tree_ld_is_elf = yes; then
22872 gcc_cv_initfini_array=yes
22874 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22875 cat > conftest.s <<\EOF
22876 .section .dtors,"a",%progbits
22877 .balign 4
22878 .byte 'A', 'A', 'A', 'A'
22879 .section .ctors,"a",%progbits
22880 .balign 4
22881 .byte 'B', 'B', 'B', 'B'
22882 .section .fini_array.65530,"a",%progbits
22883 .balign 4
22884 .byte 'C', 'C', 'C', 'C'
22885 .section .init_array.65530,"a",%progbits
22886 .balign 4
22887 .byte 'D', 'D', 'D', 'D'
22888 .section .dtors.64528,"a",%progbits
22889 .balign 4
22890 .byte 'E', 'E', 'E', 'E'
22891 .section .ctors.64528,"a",%progbits
22892 .balign 4
22893 .byte 'F', 'F', 'F', 'F'
22894 .section .fini_array.01005,"a",%progbits
22895 .balign 4
22896 .byte 'G', 'G', 'G', 'G'
22897 .section .init_array.01005,"a",%progbits
22898 .balign 4
22899 .byte 'H', 'H', 'H', 'H'
22900 .text
22901 .globl _start
22902 _start:
22904 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22905 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22906 && $gcc_cv_objdump -s -j .init_array conftest \
22907 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22908 && $gcc_cv_objdump -s -j .fini_array conftest \
22909 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22910 gcc_cv_initfini_array=yes
22912 rm -f conftest conftest.*
22914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22915 /* end confdefs.h. */
22917 #ifndef __ELF__
22918 # error Not an ELF OS
22919 #endif
22920 #include <stdlib.h>
22921 #if defined __GLIBC_PREREQ
22922 # if __GLIBC_PREREQ (2, 4)
22923 # else
22924 # error GLIBC 2.4 required
22925 # endif
22926 #else
22927 # if defined __sun__ && defined __svr4__
22928 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22929 # else
22930 # error The C library not known to support .init_array/.fini_array
22931 # endif
22932 #endif
22934 _ACEOF
22935 if ac_fn_cxx_try_cpp "$LINENO"; then :
22937 else
22938 gcc_cv_initfini_array=no
22940 rm -f conftest.err conftest.$ac_ext;;
22941 esac
22942 else
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22944 $as_echo_n "checking cross compile... guessing... " >&6; }
22945 gcc_cv_initfini_array=no
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22949 $as_echo "$gcc_cv_initfini_array" >&6; }
22950 enable_initfini_array=$gcc_cv_initfini_array
22954 if test $enable_initfini_array = yes; then
22956 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22960 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22962 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22963 if test "${gcc_cv_as_leb128+set}" = set; then :
22964 $as_echo_n "(cached) " >&6
22965 else
22966 gcc_cv_as_leb128=no
22967 if test $in_tree_gas = yes; then
22968 if test $in_tree_gas_is_elf = yes \
22969 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22970 then gcc_cv_as_leb128=yes
22972 elif test x$gcc_cv_as != x; then
22973 $as_echo ' .data
22974 .uleb128 L2 - L1
22976 .uleb128 1280
22977 .sleb128 -1010
22978 L2:' > conftest.s
22979 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22981 (eval $ac_try) 2>&5
22982 ac_status=$?
22983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22984 test $ac_status = 0; }; }
22985 then
22986 # GAS versions before 2.11 do not support uleb128,
22987 # despite appearing to.
22988 # ??? There exists an elf-specific test that will crash
22989 # the assembler. Perhaps it's better to figure out whether
22990 # arbitrary sections are supported and try the test.
22991 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22992 if echo "$as_ver" | grep GNU > /dev/null; then
22993 as_vers=`echo $as_ver | sed -n \
22994 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22995 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22996 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22997 if test $as_major -eq 2 && test $as_minor -lt 11
22998 then :
22999 else gcc_cv_as_leb128=yes
23002 else
23003 echo "configure: failed program was" >&5
23004 cat conftest.s >&5
23006 rm -f conftest.o conftest.s
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23010 $as_echo "$gcc_cv_as_leb128" >&6; }
23011 if test $gcc_cv_as_leb128 = yes; then
23013 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23017 # Check if we have assembler support for unwind directives.
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23019 $as_echo_n "checking assembler for cfi directives... " >&6; }
23020 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23021 $as_echo_n "(cached) " >&6
23022 else
23023 gcc_cv_as_cfi_directive=no
23024 if test x$gcc_cv_as != x; then
23025 $as_echo ' .text
23026 .cfi_startproc
23027 .cfi_offset 0, 0
23028 .cfi_same_value 1
23029 .cfi_def_cfa 1, 2
23030 .cfi_escape 1, 2, 3, 4, 5
23031 .cfi_endproc' > conftest.s
23032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23034 (eval $ac_try) 2>&5
23035 ac_status=$?
23036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23037 test $ac_status = 0; }; }
23038 then
23039 case "$target" in
23040 *-*-solaris*)
23041 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23042 # read-only and read-write sections, we need to make sure that the
23043 # assembler used emits read-write .eh_frame sections.
23044 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23045 if test "x$gcc_cv_objdump" != x; then
23046 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23047 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23048 gcc_cv_as_cfi_directive=no
23049 else
23050 case "$target" in
23051 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23052 # On Solaris/x86, make sure that GCC and assembler agree on using
23053 # read-only .eh_frame sections for 64-bit.
23054 if test x$gas = xyes; then
23055 as_ix86_64_opt="--64"
23056 else
23057 as_ix86_64_opt="-xarch=amd64"
23059 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23060 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23061 sed -e /.eh_frame/!d -e N | \
23062 grep READONLY > /dev/null; then
23063 gcc_cv_as_cfi_directive=yes
23064 else
23065 gcc_cv_as_cfi_directive=no
23069 gcc_cv_as_cfi_directive=yes
23071 esac
23073 else
23074 # no objdump, err on the side of caution
23075 gcc_cv_as_cfi_directive=no
23077 else
23078 gcc_cv_as_cfi_directive=yes
23081 *-*-*)
23082 gcc_cv_as_cfi_directive=yes
23084 esac
23085 else
23086 echo "configure: failed program was" >&5
23087 cat conftest.s >&5
23089 rm -f conftest.o conftest.s
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23093 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23095 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23097 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23098 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23099 $as_echo_n "(cached) " >&6
23100 else
23101 gcc_cv_as_cfi_advance_working=no
23102 if test x$gcc_cv_as != x; then
23103 $as_echo ' .text
23104 .cfi_startproc
23105 .cfi_adjust_cfa_offset 64
23106 .skip 75040, 0
23107 .cfi_adjust_cfa_offset 128
23108 .cfi_endproc' > conftest.s
23109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114 test $ac_status = 0; }; }
23115 then
23117 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23118 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23119 gcc_cv_as_cfi_advance_working=yes
23122 else
23123 echo "configure: failed program was" >&5
23124 cat conftest.s >&5
23126 rm -f conftest.o conftest.s
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23130 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23132 else
23133 # no objdump, err on the side of caution
23134 gcc_cv_as_cfi_advance_working=no
23138 cat >>confdefs.h <<_ACEOF
23139 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23140 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23141 _ACEOF
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23146 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23147 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23148 $as_echo_n "(cached) " >&6
23149 else
23150 gcc_cv_as_cfi_personality_directive=no
23151 if test x$gcc_cv_as != x; then
23152 $as_echo ' .text
23153 .cfi_startproc
23154 .cfi_personality 0, symbol
23155 .cfi_endproc' > conftest.s
23156 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23158 (eval $ac_try) 2>&5
23159 ac_status=$?
23160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23161 test $ac_status = 0; }; }
23162 then
23163 gcc_cv_as_cfi_personality_directive=yes
23164 else
23165 echo "configure: failed program was" >&5
23166 cat conftest.s >&5
23168 rm -f conftest.o conftest.s
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23172 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23175 cat >>confdefs.h <<_ACEOF
23176 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23177 then echo 1; else echo 0; fi`
23178 _ACEOF
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23182 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23183 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23185 else
23186 gcc_cv_as_cfi_sections_directive=no
23187 if test x$gcc_cv_as != x; then
23188 $as_echo ' .text
23189 .cfi_sections .debug_frame, .eh_frame
23190 .cfi_startproc
23191 .cfi_endproc' > conftest.s
23192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23194 (eval $ac_try) 2>&5
23195 ac_status=$?
23196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23197 test $ac_status = 0; }; }
23198 then
23199 case $target_os in
23200 win32 | pe | cygwin* | mingw32*)
23201 # Need to check that we generated the correct relocation for the
23202 # .debug_frame section. This was fixed for binutils 2.21.
23203 gcc_cv_as_cfi_sections_directive=no
23204 if test "x$gcc_cv_objdump" != x; then
23205 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23206 grep secrel > /dev/null; then
23207 gcc_cv_as_cfi_sections_directive=yes
23212 gcc_cv_as_cfi_sections_directive=yes
23214 esac
23215 else
23216 echo "configure: failed program was" >&5
23217 cat conftest.s >&5
23219 rm -f conftest.o conftest.s
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23223 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23227 cat >>confdefs.h <<_ACEOF
23228 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23229 then echo 1; else echo 0; fi`
23230 _ACEOF
23233 # GAS versions up to and including 2.11.0 may mis-optimize
23234 # .eh_frame data.
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23236 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23237 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23238 $as_echo_n "(cached) " >&6
23239 else
23240 gcc_cv_as_eh_frame=no
23241 if test $in_tree_gas = yes; then
23242 if test $in_tree_gas_is_elf = yes \
23243 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23244 then gcc_cv_as_eh_frame=yes
23246 elif test x$gcc_cv_as != x; then
23247 $as_echo ' .text
23248 .LFB1:
23249 .4byte 0
23250 .L1:
23251 .4byte 0
23252 .LFE1:
23253 .section .eh_frame,"aw",@progbits
23254 __FRAME_BEGIN__:
23255 .4byte .LECIE1-.LSCIE1
23256 .LSCIE1:
23257 .4byte 0x0
23258 .byte 0x1
23259 .ascii "z\0"
23260 .byte 0x1
23261 .byte 0x78
23262 .byte 0x1a
23263 .byte 0x0
23264 .byte 0x4
23265 .4byte 1
23266 .p2align 1
23267 .LECIE1:
23268 .LSFDE1:
23269 .4byte .LEFDE1-.LASFDE1
23270 .LASFDE1:
23271 .4byte .LASFDE1-__FRAME_BEGIN__
23272 .4byte .LFB1
23273 .4byte .LFE1-.LFB1
23274 .byte 0x4
23275 .4byte .LFE1-.LFB1
23276 .byte 0x4
23277 .4byte .L1-.LFB1
23278 .LEFDE1:' > conftest.s
23279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23285 then
23286 cat > conftest.lit <<EOF
23287 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23288 0010 01000000 12000000 18000000 00000000 ................
23289 0020 08000000 04080000 0044 .........D
23291 cat > conftest.big <<EOF
23292 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23293 0010 00000001 00000012 00000018 00000000 ................
23294 0020 00000008 04000000 0844 .........D
23296 # If the assembler didn't choke, and we can objdump,
23297 # and we got the correct data, then succeed.
23298 # The text in the here-document typically retains its unix-style line
23299 # endings, while the output of objdump will use host line endings.
23300 # Therefore, use diff -b for the comparisons.
23301 if test x$gcc_cv_objdump != x \
23302 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23303 | tail -3 > conftest.got \
23304 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23305 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23306 then
23307 gcc_cv_as_eh_frame=yes
23308 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }; then
23314 gcc_cv_as_eh_frame=buggy
23315 else
23316 # Uh oh, what do we do now?
23317 gcc_cv_as_eh_frame=no
23319 else
23320 echo "configure: failed program was" >&5
23321 cat conftest.s >&5
23323 rm -f conftest.o conftest.s
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23327 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23330 if test $gcc_cv_as_eh_frame = buggy; then
23332 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23337 $as_echo_n "checking assembler for section merging support... " >&6; }
23338 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23339 $as_echo_n "(cached) " >&6
23340 else
23341 gcc_cv_as_shf_merge=no
23342 if test $in_tree_gas = yes; then
23343 if test $in_tree_gas_is_elf = yes \
23344 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23345 then gcc_cv_as_shf_merge=yes
23347 elif test x$gcc_cv_as != x; then
23348 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23351 (eval $ac_try) 2>&5
23352 ac_status=$?
23353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23354 test $ac_status = 0; }; }
23355 then
23356 gcc_cv_as_shf_merge=yes
23357 else
23358 echo "configure: failed program was" >&5
23359 cat conftest.s >&5
23361 rm -f conftest.o conftest.s
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23365 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23367 if test $gcc_cv_as_shf_merge = no; then
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23369 $as_echo_n "checking assembler for section merging support... " >&6; }
23370 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23371 $as_echo_n "(cached) " >&6
23372 else
23373 gcc_cv_as_shf_merge=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_shf_merge=yes
23379 elif test x$gcc_cv_as != x; then
23380 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; }
23387 then
23388 gcc_cv_as_shf_merge=yes
23389 else
23390 echo "configure: failed program was" >&5
23391 cat conftest.s >&5
23393 rm -f conftest.o conftest.s
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23397 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23401 cat >>confdefs.h <<_ACEOF
23402 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23403 _ACEOF
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23407 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23408 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23410 else
23411 gcc_cv_as_comdat_group=no
23412 if test $in_tree_gas = yes; then
23413 if test $in_tree_gas_is_elf = yes \
23414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23415 then gcc_cv_as_comdat_group=yes
23417 elif test x$gcc_cv_as != x; then
23418 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; }
23425 then
23426 gcc_cv_as_comdat_group=yes
23427 else
23428 echo "configure: failed program was" >&5
23429 cat conftest.s >&5
23431 rm -f conftest.o conftest.s
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23435 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23437 if test $gcc_cv_as_comdat_group = yes; then
23438 gcc_cv_as_comdat_group_percent=no
23439 gcc_cv_as_comdat_group_group=no
23440 else
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23442 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23443 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23444 $as_echo_n "(cached) " >&6
23445 else
23446 gcc_cv_as_comdat_group_percent=no
23447 if test $in_tree_gas = yes; then
23448 if test $in_tree_gas_is_elf = yes \
23449 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23450 then gcc_cv_as_comdat_group_percent=yes
23452 elif test x$gcc_cv_as != x; then
23453 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23456 (eval $ac_try) 2>&5
23457 ac_status=$?
23458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23459 test $ac_status = 0; }; }
23460 then
23461 gcc_cv_as_comdat_group_percent=yes
23462 else
23463 echo "configure: failed program was" >&5
23464 cat conftest.s >&5
23466 rm -f conftest.o conftest.s
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23470 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23472 if test $gcc_cv_as_comdat_group_percent = yes; then
23473 gcc_cv_as_comdat_group_group=no
23474 else
23475 case "${target}" in
23476 # Sun as uses a completely different syntax.
23477 *-*-solaris2*)
23478 case "${target}" in
23479 sparc*-*-solaris2*)
23480 conftest_s='
23481 .group foo,".text%foo",#comdat
23482 .section ".text%foo", #alloc,#execinstr,#progbits
23483 .globl foo
23484 foo:
23487 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23488 conftest_s='
23489 .group foo,.text%foo,#comdat
23490 .section .text%foo, "ax", @progbits
23491 .globl foo
23492 foo:
23495 esac
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23497 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23498 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
23500 else
23501 gcc_cv_as_comdat_group_group=no
23502 if test x$gcc_cv_as != x; then
23503 $as_echo "$conftest_s" > conftest.s
23504 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23509 test $ac_status = 0; }; }
23510 then
23511 gcc_cv_as_comdat_group_group=yes
23512 else
23513 echo "configure: failed program was" >&5
23514 cat conftest.s >&5
23516 rm -f conftest.o conftest.s
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23520 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23523 esac
23524 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23525 gcc_cv_as_comdat_group_group=no
23529 if test x"$ld_is_gold" = xyes; then
23530 comdat_group=yes
23531 elif test $in_tree_ld = yes ; then
23532 comdat_group=no
23533 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 \
23534 && test $in_tree_ld_is_elf = yes; then
23535 comdat_group=yes
23537 elif echo "$ld_ver" | grep GNU > /dev/null; then
23538 comdat_group=yes
23539 if test 0"$ld_date" -lt 20050308; then
23540 if test -n "$ld_date"; then
23541 # If there was date string, but was earlier than 2005-03-08, fail
23542 comdat_group=no
23543 elif test "$ld_vers_major" -lt 2; then
23544 comdat_group=no
23545 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23546 comdat_group=no
23549 else
23550 case "${target}" in
23551 *-*-solaris2.1[1-9]*)
23552 comdat_group=no
23553 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23554 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23555 # version 1.688.
23557 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23558 # least ld version 1.2267.
23559 if test "$ld_vers_major" -gt 1; then
23560 comdat_group=yes
23561 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23562 comdat_group=yes
23563 elif test "$ld_vers_minor" -ge 2267; then
23564 comdat_group=yes
23568 # Assume linkers other than GNU ld don't support COMDAT group.
23569 comdat_group=no
23571 esac
23573 # Allow overriding the automatic COMDAT group tests above.
23574 # Check whether --enable-comdat was given.
23575 if test "${enable_comdat+set}" = set; then :
23576 enableval=$enable_comdat; comdat_group="$enable_comdat"
23579 if test $comdat_group = no; then
23580 gcc_cv_as_comdat_group=no
23581 gcc_cv_as_comdat_group_percent=no
23582 gcc_cv_as_comdat_group_group=no
23585 cat >>confdefs.h <<_ACEOF
23586 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23587 || test $gcc_cv_as_comdat_group_percent = yes \
23588 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23589 _ACEOF
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23593 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23594 if test "${gcc_cv_as_discriminator+set}" = set; then :
23595 $as_echo_n "(cached) " >&6
23596 else
23597 gcc_cv_as_discriminator=no
23598 if test $in_tree_gas = yes; then
23599 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23600 then gcc_cv_as_discriminator=yes
23602 elif test x$gcc_cv_as != x; then
23603 $as_echo ' .text
23604 .file 1 "conf.c"
23605 .loc 1 1 0 discriminator 1' > conftest.s
23606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23608 (eval $ac_try) 2>&5
23609 ac_status=$?
23610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23611 test $ac_status = 0; }; }
23612 then
23613 gcc_cv_as_discriminator=yes
23614 else
23615 echo "configure: failed program was" >&5
23616 cat conftest.s >&5
23618 rm -f conftest.o conftest.s
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23622 $as_echo "$gcc_cv_as_discriminator" >&6; }
23623 if test $gcc_cv_as_discriminator = yes; then
23625 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23629 # Thread-local storage - the check is heavily parameterized.
23630 conftest_s=
23631 tls_first_major=
23632 tls_first_minor=
23633 tls_as_opt=
23634 case "$target" in
23635 alpha*-*-*)
23636 conftest_s='
23637 .section ".tdata","awT",@progbits
23638 foo: .long 25
23639 .text
23640 ldq $27,__tls_get_addr($29) !literal!1
23641 lda $16,foo($29) !tlsgd!1
23642 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23643 ldq $27,__tls_get_addr($29) !literal!2
23644 lda $16,foo($29) !tlsldm!2
23645 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23646 ldq $1,foo($29) !gotdtprel
23647 ldah $2,foo($29) !dtprelhi
23648 lda $3,foo($2) !dtprello
23649 lda $4,foo($29) !dtprel
23650 ldq $1,foo($29) !gottprel
23651 ldah $2,foo($29) !tprelhi
23652 lda $3,foo($2) !tprello
23653 lda $4,foo($29) !tprel'
23654 tls_first_major=2
23655 tls_first_minor=13
23656 tls_as_opt=--fatal-warnings
23658 cris-*-*|crisv32-*-*)
23659 conftest_s='
23660 .section ".tdata","awT",@progbits
23661 x: .long 25
23662 .text
23663 move.d x:IE,$r10
23664 nop'
23665 tls_first_major=2
23666 tls_first_minor=20
23667 tls_as_opt=--fatal-warnings
23669 frv*-*-*)
23670 conftest_s='
23671 .section ".tdata","awT",@progbits
23672 x: .long 25
23673 .text
23674 call #gettlsoff(x)'
23675 tls_first_major=2
23676 tls_first_minor=14
23678 hppa*-*-linux*)
23679 conftest_s='
23680 t1: .reg %r20
23681 t2: .reg %r21
23682 gp: .reg %r19
23683 .section ".tdata","awT",@progbits
23684 foo: .long 25
23685 .text
23686 .align 4
23687 addil LT%foo-$tls_gdidx$,gp
23688 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23689 b __tls_get_addr
23691 addil LT%foo-$tls_ldidx$,gp
23692 b __tls_get_addr
23693 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23694 addil LR%foo-$tls_dtpoff$,%ret0
23695 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23696 mfctl %cr27,%t1
23697 addil LT%foo-$tls_ieoff$,gp
23698 ldw RT%foo-$tls_ieoff$(%r1),%t2
23699 add %t1,%t2,%t3
23700 mfctl %cr27,%t1
23701 addil LR%foo-$tls_leoff$,%t1
23702 ldo RR%foo-$tls_leoff$(%r1),%t2'
23703 tls_first_major=2
23704 tls_first_minor=15
23705 tls_as_opt=--fatal-warnings
23707 arm*-*-*)
23708 conftest_s='
23709 .section ".tdata","awT",%progbits
23710 foo: .long 25
23711 .text
23712 .word foo(gottpoff)
23713 .word foo(tpoff)
23714 .word foo(tlsgd)
23715 .word foo(tlsldm)
23716 .word foo(tlsldo)'
23717 tls_first_major=2
23718 tls_first_minor=17
23720 i[34567]86-*-* | x86_64-*-*)
23721 case "$target" in
23722 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23723 on_solaris=yes
23726 on_solaris=no
23728 esac
23729 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23730 conftest_s='
23731 .section .tdata,"awt",@progbits'
23732 tls_first_major=0
23733 tls_first_minor=0
23734 tls_section_flag=t
23736 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23738 else
23739 conftest_s='
23740 .section ".tdata","awT",@progbits'
23741 tls_first_major=2
23742 tls_first_minor=14
23743 tls_section_flag=T
23744 tls_as_opt="--fatal-warnings"
23746 case "$target" in
23747 i[34567]86-*-*)
23748 conftest_s="$conftest_s
23749 foo: .long 25
23750 .text
23751 movl %gs:0, %eax
23752 leal foo@tlsgd(,%ebx,1), %eax
23753 leal foo@tlsldm(%ebx), %eax
23754 leal foo@dtpoff(%eax), %edx
23755 movl foo@gottpoff(%ebx), %eax
23756 subl foo@gottpoff(%ebx), %eax
23757 addl foo@gotntpoff(%ebx), %eax
23758 movl foo@indntpoff, %eax
23759 movl \$foo@tpoff, %eax
23760 subl \$foo@tpoff, %eax
23761 leal foo@ntpoff(%ecx), %eax"
23763 x86_64-*-*)
23764 if test x$on_solaris = xyes; then
23765 case $gas_flag in
23766 yes) tls_as_opt="$tls_as_opt --64" ;;
23767 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23768 esac
23770 conftest_s="$conftest_s
23771 foo: .long 25
23772 .text
23773 movq %fs:0, %rax
23774 leaq foo@tlsgd(%rip), %rdi
23775 leaq foo@tlsld(%rip), %rdi
23776 leaq foo@dtpoff(%rax), %rdx
23777 movq foo@gottpoff(%rip), %rax
23778 movq \$foo@tpoff, %rax"
23780 esac
23782 ia64-*-*)
23783 conftest_s='
23784 .section ".tdata","awT",@progbits
23785 foo: data8 25
23786 .text
23787 addl r16 = @ltoff(@dtpmod(foo#)), gp
23788 addl r17 = @ltoff(@dtprel(foo#)), gp
23789 addl r18 = @ltoff(@tprel(foo#)), gp
23790 addl r19 = @dtprel(foo#), gp
23791 adds r21 = @dtprel(foo#), r13
23792 movl r23 = @dtprel(foo#)
23793 addl r20 = @tprel(foo#), gp
23794 adds r22 = @tprel(foo#), r13
23795 movl r24 = @tprel(foo#)'
23796 tls_first_major=2
23797 tls_first_minor=13
23798 tls_as_opt=--fatal-warnings
23800 microblaze*-*-*)
23801 conftest_s='
23802 .section .tdata,"awT",@progbits
23804 .word 2
23805 .text
23806 addik r5,r20,x@TLSGD
23807 addik r5,r20,x@TLSLDM'
23808 tls_first_major=2
23809 tls_first_minor=20
23810 tls_as_opt='--fatal-warnings'
23812 mips*-*-*)
23813 conftest_s='
23814 .section .tdata,"awT",@progbits
23816 .word 2
23817 .text
23818 addiu $4, $28, %tlsgd(x)
23819 addiu $4, $28, %tlsldm(x)
23820 lui $4, %dtprel_hi(x)
23821 addiu $4, $4, %dtprel_lo(x)
23822 lw $4, %gottprel(x)($28)
23823 lui $4, %tprel_hi(x)
23824 addiu $4, $4, %tprel_lo(x)'
23825 tls_first_major=2
23826 tls_first_minor=16
23827 tls_as_opt='-32 --fatal-warnings'
23829 m68k-*-*)
23830 conftest_s='
23831 .section .tdata,"awT",@progbits
23833 .word 2
23834 .text
23835 foo:
23836 move.l x@TLSGD(%a5),%a0
23837 move.l x@TLSLDM(%a5),%a0
23838 move.l x@TLSLDO(%a5),%a0
23839 move.l x@TLSIE(%a5),%a0
23840 move.l x@TLSLE(%a5),%a0'
23841 tls_first_major=2
23842 tls_first_minor=19
23843 tls_as_opt='--fatal-warnings'
23845 nios2-*-*)
23846 conftest_s='
23847 .section ".tdata","awT",@progbits'
23848 tls_first_major=2
23849 tls_first_minor=23
23850 tls_as_opt="--fatal-warnings"
23852 aarch64*-*-*)
23853 conftest_s='
23854 .section ".tdata","awT",%progbits
23855 foo: .long 25
23856 .text
23857 adrp x0, :tlsgd:x
23858 add x0, x0, #:tlsgd_lo12:x
23859 bl __tls_get_addr
23860 nop'
23861 tls_first_major=2
23862 tls_first_minor=20
23863 tls_as_opt='--fatal-warnings'
23865 powerpc-ibm-aix*)
23866 conftest_s='
23867 .extern __get_tpointer
23868 .toc
23869 LC..1:
23870 .tc a[TC],a[TL]@le
23871 .csect .text[PR]
23872 .tlstest:
23873 lwz 9,LC..1(2)
23874 bla __get_tpointer
23875 lwzx 3,9,3
23876 .globl a
23877 .csect a[TL],4
23879 .space 4'
23880 tls_first_major=0
23881 tls_first_minor=0
23883 powerpc64*-*-*)
23884 conftest_s='
23885 .section ".tdata","awT",@progbits
23886 .align 3
23887 ld0: .space 8
23888 ld1: .space 8
23889 x1: .space 8
23890 x2: .space 8
23891 x3: .space 8
23892 .text
23893 addi 3,2,ld0@got@tlsgd
23894 bl .__tls_get_addr
23896 addi 3,2,ld1@toc
23897 bl .__tls_get_addr
23899 addi 3,2,x1@got@tlsld
23900 bl .__tls_get_addr
23902 addi 9,3,x1@dtprel
23903 bl .__tls_get_addr
23905 addis 9,3,x2@dtprel@ha
23906 addi 9,9,x2@dtprel@l
23907 bl .__tls_get_addr
23909 ld 9,x3@got@dtprel(2)
23910 add 9,9,3
23911 bl .__tls_get_addr
23912 nop'
23913 tls_first_major=2
23914 tls_first_minor=14
23915 tls_as_opt="-a64 --fatal-warnings"
23917 powerpc*-*-*)
23918 conftest_s='
23919 .section ".tdata","awT",@progbits
23920 .align 2
23921 ld0: .space 4
23922 ld1: .space 4
23923 x1: .space 4
23924 x2: .space 4
23925 x3: .space 4
23926 .text
23927 addi 3,31,ld0@got@tlsgd
23928 bl __tls_get_addr
23929 addi 3,31,x1@got@tlsld
23930 bl __tls_get_addr
23931 addi 9,3,x1@dtprel
23932 addis 9,3,x2@dtprel@ha
23933 addi 9,9,x2@dtprel@l
23934 lwz 9,x3@got@tprel(31)
23935 add 9,9,x@tls
23936 addi 9,2,x1@tprel
23937 addis 9,2,x2@tprel@ha
23938 addi 9,9,x2@tprel@l'
23939 tls_first_major=2
23940 tls_first_minor=14
23941 tls_as_opt="-a32 --fatal-warnings"
23943 s390-*-*)
23944 conftest_s='
23945 .section ".tdata","awT",@progbits
23946 foo: .long 25
23947 .text
23948 .long foo@TLSGD
23949 .long foo@TLSLDM
23950 .long foo@DTPOFF
23951 .long foo@NTPOFF
23952 .long foo@GOTNTPOFF
23953 .long foo@INDNTPOFF
23954 l %r1,foo@GOTNTPOFF(%r12)
23955 l %r1,0(%r1):tls_load:foo
23956 bas %r14,0(%r1,%r13):tls_gdcall:foo
23957 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23958 tls_first_major=2
23959 tls_first_minor=14
23960 tls_as_opt="-m31 --fatal-warnings"
23962 s390x-*-*)
23963 conftest_s='
23964 .section ".tdata","awT",@progbits
23965 foo: .long 25
23966 .text
23967 .quad foo@TLSGD
23968 .quad foo@TLSLDM
23969 .quad foo@DTPOFF
23970 .quad foo@NTPOFF
23971 .quad foo@GOTNTPOFF
23972 lg %r1,foo@GOTNTPOFF(%r12)
23973 larl %r1,foo@INDNTPOFF
23974 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23975 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23976 tls_first_major=2
23977 tls_first_minor=14
23978 tls_as_opt="-m64 -Aesame --fatal-warnings"
23980 sh-*-* | sh[123456789lbe]*-*-*)
23981 conftest_s='
23982 .section ".tdata","awT",@progbits
23983 foo: .long 25
23984 .text
23985 .long foo@TLSGD
23986 .long foo@TLSLDM
23987 .long foo@DTPOFF
23988 .long foo@GOTTPOFF
23989 .long foo@TPOFF'
23990 tls_first_major=2
23991 tls_first_minor=13
23992 tls_as_opt=--fatal-warnings
23994 sparc*-*-*)
23995 case "$target" in
23996 sparc*-sun-solaris2.*)
23997 on_solaris=yes
24000 on_solaris=no
24002 esac
24003 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24004 conftest_s='
24005 .section ".tdata",#alloc,#write,#tls'
24006 tls_first_major=0
24007 tls_first_minor=0
24008 else
24009 conftest_s='
24010 .section ".tdata","awT",@progbits'
24011 tls_first_major=2
24012 tls_first_minor=14
24013 tls_as_opt="-32 --fatal-warnings"
24015 conftest_s="$conftest_s
24016 foo: .long 25
24017 .text
24018 sethi %tgd_hi22(foo), %o0
24019 add %o0, %tgd_lo10(foo), %o1
24020 add %l7, %o1, %o0, %tgd_add(foo)
24021 call __tls_get_addr, %tgd_call(foo)
24022 sethi %tldm_hi22(foo), %l1
24023 add %l1, %tldm_lo10(foo), %l2
24024 add %l7, %l2, %o0, %tldm_add(foo)
24025 call __tls_get_addr, %tldm_call(foo)
24026 sethi %tldo_hix22(foo), %l3
24027 xor %l3, %tldo_lox10(foo), %l4
24028 add %o0, %l4, %l5, %tldo_add(foo)
24029 sethi %tie_hi22(foo), %o3
24030 add %o3, %tie_lo10(foo), %o3
24031 ld [%l7 + %o3], %o2, %tie_ld(foo)
24032 add %g7, %o2, %o4, %tie_add(foo)
24033 sethi %tle_hix22(foo), %l1
24034 xor %l1, %tle_lox10(foo), %o5
24035 ld [%g7 + %o5], %o1"
24037 tilepro*-*-*)
24038 conftest_s='
24039 .section ".tdata","awT",@progbits
24040 foo: .long 25
24041 .text
24042 addli r0, zero, tls_gd(foo)
24043 auli r0, zero, tls_gd_ha16(foo)
24044 addli r0, r0, tls_gd_lo16(foo)
24045 jal __tls_get_addr
24046 addli r0, zero, tls_ie(foo)
24047 auli r0, r0, tls_ie_ha16(foo)
24048 addli r0, r0, tls_ie_lo16(foo)'
24049 tls_first_major=2
24050 tls_first_minor=22
24051 tls_as_opt="--fatal-warnings"
24053 tilegx*-*-*)
24054 conftest_s='
24055 .section ".tdata","awT",@progbits
24056 foo: .long 25
24057 .text
24058 shl16insli r0, zero, hw0_last_tls_gd(foo)
24059 shl16insli r0, zero, hw1_last_tls_gd(foo)
24060 shl16insli r0, r0, hw0_tls_gd(foo)
24061 jal __tls_get_addr
24062 shl16insli r0, zero, hw1_last_tls_ie(foo)
24063 shl16insli r0, r0, hw0_tls_ie(foo)'
24064 tls_first_major=2
24065 tls_first_minor=22
24066 tls_as_opt="--fatal-warnings"
24068 xtensa*-*-*)
24069 conftest_s='
24070 .section ".tdata","awT",@progbits
24071 foo: .long 25
24072 .text
24073 movi a8, foo@TLSFUNC
24074 movi a10, foo@TLSARG
24075 callx8.tls a8, foo@TLSCALL'
24076 tls_first_major=2
24077 tls_first_minor=19
24079 esac
24080 set_have_as_tls=no
24081 if test "x$enable_tls" = xno ; then
24082 : # TLS explicitly disabled.
24083 elif test "x$enable_tls" = xyes ; then
24084 set_have_as_tls=yes # TLS explicitly enabled.
24085 elif test -z "$tls_first_major"; then
24086 : # If we don't have a check, assume no support.
24087 else
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24089 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24090 if test "${gcc_cv_as_tls+set}" = set; then :
24091 $as_echo_n "(cached) " >&6
24092 else
24093 gcc_cv_as_tls=no
24094 if test $in_tree_gas = yes; then
24095 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24096 then gcc_cv_as_tls=yes
24098 elif test x$gcc_cv_as != x; then
24099 $as_echo "$conftest_s" > conftest.s
24100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24102 (eval $ac_try) 2>&5
24103 ac_status=$?
24104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24105 test $ac_status = 0; }; }
24106 then
24107 gcc_cv_as_tls=yes
24108 else
24109 echo "configure: failed program was" >&5
24110 cat conftest.s >&5
24112 rm -f conftest.o conftest.s
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24116 $as_echo "$gcc_cv_as_tls" >&6; }
24117 if test $gcc_cv_as_tls = yes; then
24118 set_have_as_tls=yes
24121 if test $set_have_as_tls = yes ; then
24123 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24127 # Target-specific assembler checks.
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24130 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24131 gcc_cv_ld_static_dynamic=no
24132 gcc_cv_ld_static_option='-Bstatic'
24133 gcc_cv_ld_dynamic_option='-Bdynamic'
24134 if test $in_tree_ld = yes ; then
24135 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
24136 gcc_cv_ld_static_dynamic=yes
24138 elif test x$gcc_cv_ld != x; then
24139 # Check if linker supports -Bstatic/-Bdynamic option
24140 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24141 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24142 gcc_cv_ld_static_dynamic=yes
24143 else
24144 case "$target" in
24145 # AIX ld uses -b flags
24146 *-*-aix4.[23]* | *-*-aix[5-9]*)
24147 gcc_cv_ld_static_dynamic=yes
24148 gcc_cv_ld_static_option="-bstatic"
24149 gcc_cv_ld_dynamic_option="-bdynamic"
24151 # HP-UX ld uses -a flags to select between shared and archive.
24152 *-*-hpux*)
24153 if test x"$gnu_ld" = xno; then
24154 gcc_cv_ld_static_dynamic=yes
24155 gcc_cv_ld_static_option="-aarchive_shared"
24156 gcc_cv_ld_dynamic_option="-adefault"
24159 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24160 *-*-solaris2*)
24161 gcc_cv_ld_static_dynamic=yes
24163 esac
24166 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24168 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24171 cat >>confdefs.h <<_ACEOF
24172 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24173 _ACEOF
24176 cat >>confdefs.h <<_ACEOF
24177 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24178 _ACEOF
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24182 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24184 if test x"$demangler_in_ld" = xyes; then
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24186 $as_echo_n "checking linker --demangle support... " >&6; }
24187 gcc_cv_ld_demangle=no
24188 if test $in_tree_ld = yes; then
24189 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 \
24190 gcc_cv_ld_demangle=yes
24192 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24193 # Check if the GNU linker supports --demangle option
24194 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24195 gcc_cv_ld_demangle=yes
24198 if test x"$gcc_cv_ld_demangle" = xyes; then
24200 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24204 $as_echo "$gcc_cv_ld_demangle" >&6; }
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24208 $as_echo_n "checking linker plugin support... " >&6; }
24209 gcc_cv_lto_plugin=0
24210 if test -f liblto_plugin.la; then
24211 save_ld_ver="$ld_ver"
24212 save_ld_vers_major="$ld_vers_major"
24213 save_ld_vers_minor="$ld_vers_minor"
24214 save_ld_is_gold="$ld_is_gold"
24216 ld_is_gold=no
24218 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24219 ld_ver="GNU ld"
24220 # FIXME: ld_is_gold?
24221 ld_vers_major="$gcc_cv_gld_major_version"
24222 ld_vers_minor="$gcc_cv_gld_minor_version"
24223 else
24224 # Determine plugin linker version.
24225 # FIXME: Partial duplicate from above, generalize.
24226 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24227 if echo "$ld_ver" | grep GNU > /dev/null; then
24228 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24229 ld_is_gold=yes
24230 ld_vers=`echo $ld_ver | sed -n \
24231 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24232 else
24233 ld_vers=`echo $ld_ver | sed -n \
24234 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24236 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24237 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24241 # Determine plugin support.
24242 if echo "$ld_ver" | grep GNU > /dev/null; then
24243 # Require GNU ld or gold 2.21+ for plugin support by default.
24244 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24245 gcc_cv_lto_plugin=2
24246 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24247 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24248 gcc_cv_lto_plugin=1
24252 ld_ver="$save_ld_ver"
24253 ld_vers_major="$save_ld_vers_major"
24254 ld_vers_minor="$save_ld_vers_minor"
24255 ld_is_gold="$save_ld_is_gold"
24258 cat >>confdefs.h <<_ACEOF
24259 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24260 _ACEOF
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24263 $as_echo "$gcc_cv_lto_plugin" >&6; }
24265 case "$target" in
24266 aarch64*-*-*)
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24268 $as_echo_n "checking assembler for -mabi option... " >&6; }
24269 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24270 $as_echo_n "(cached) " >&6
24271 else
24272 gcc_cv_as_aarch64_mabi=no
24273 if test x$gcc_cv_as != x; then
24274 $as_echo '.text' > conftest.s
24275 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24277 (eval $ac_try) 2>&5
24278 ac_status=$?
24279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24280 test $ac_status = 0; }; }
24281 then
24282 gcc_cv_as_aarch64_mabi=yes
24283 else
24284 echo "configure: failed program was" >&5
24285 cat conftest.s >&5
24287 rm -f conftest.o conftest.s
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24291 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24293 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24295 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24297 else
24298 if test x$with_abi = xilp32; then
24299 as_fn_error "Assembler does not support -mabi=ilp32.\
24300 Upgrade the Assembler." "$LINENO" 5
24302 if test x"$with_multilib_list" = xdefault; then
24303 TM_MULTILIB_CONFIG=lp64
24304 else
24305 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24306 for aarch64_multilib in ${aarch64_multilibs}; do
24307 case ${aarch64_multilib} in
24308 ilp32)
24309 as_fn_error "Assembler does not support -mabi=ilp32.\
24310 Upgrade the Assembler." "$LINENO" 5
24314 esac
24315 done
24318 # Check if we have binutils support for relocations types needed by -fpic
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24320 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24321 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24322 $as_echo_n "(cached) " >&6
24323 else
24324 gcc_cv_as_aarch64_picreloc=no
24325 if test x$gcc_cv_as != x; then
24326 $as_echo '
24327 .text
24328 ldr x0, [x2, #:gotpage_lo15:globalsym]
24329 ' > conftest.s
24330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24332 (eval $ac_try) 2>&5
24333 ac_status=$?
24334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24335 test $ac_status = 0; }; }
24336 then
24337 gcc_cv_as_aarch64_picreloc=yes
24338 else
24339 echo "configure: failed program was" >&5
24340 cat conftest.s >&5
24342 rm -f conftest.o conftest.s
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24346 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24347 if test $gcc_cv_as_aarch64_picreloc = yes; then
24349 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24352 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24353 # Check whether --enable-fix-cortex-a53-835769 was given.
24354 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24355 enableval=$enable_fix_cortex_a53_835769;
24356 case $enableval in
24357 yes)
24358 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24363 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24364 Valid choices are 'yes' and 'no'." "$LINENO" 5
24367 esac
24371 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24372 # Check whether --enable-fix-cortex-a53-843419 was given.
24373 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24374 enableval=$enable_fix_cortex_a53_843419;
24375 case $enableval in
24376 yes)
24377 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24382 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24383 Valid choices are 'yes' and 'no'." "$LINENO" 5
24386 esac
24392 # All TARGET_ABI_OSF targets.
24393 alpha*-*-linux* | alpha*-*-*bsd*)
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24395 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24396 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24397 $as_echo_n "(cached) " >&6
24398 else
24399 gcc_cv_as_alpha_explicit_relocs=no
24400 if test $in_tree_gas = yes; then
24401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24402 then gcc_cv_as_alpha_explicit_relocs=yes
24404 elif test x$gcc_cv_as != x; then
24405 $as_echo ' .set nomacro
24406 .text
24407 extbl $3, $2, $3 !lituse_bytoff!1
24408 ldq $2, a($29) !literal!1
24409 ldq $4, b($29) !literal!2
24410 ldq_u $3, 0($2) !lituse_base!1
24411 ldq $27, f($29) !literal!5
24412 jsr $26, ($27), f !lituse_jsr!5
24413 ldah $29, 0($26) !gpdisp!3
24414 lda $0, c($29) !gprel
24415 ldah $1, d($29) !gprelhigh
24416 lda $1, d($1) !gprellow
24417 lda $29, 0($29) !gpdisp!3' > conftest.s
24418 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24420 (eval $ac_try) 2>&5
24421 ac_status=$?
24422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24423 test $ac_status = 0; }; }
24424 then
24425 gcc_cv_as_alpha_explicit_relocs=yes
24426 else
24427 echo "configure: failed program was" >&5
24428 cat conftest.s >&5
24430 rm -f conftest.o conftest.s
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24434 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24435 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24437 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24441 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24442 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24443 $as_echo_n "(cached) " >&6
24444 else
24445 gcc_cv_as_alpha_jsrdirect_relocs=no
24446 if test $in_tree_gas = yes; then
24447 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24448 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24450 elif test x$gcc_cv_as != x; then
24451 $as_echo ' .set nomacro
24452 .text
24453 ldq $27, a($29) !literal!1
24454 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24457 (eval $ac_try) 2>&5
24458 ac_status=$?
24459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24460 test $ac_status = 0; }; }
24461 then
24462 gcc_cv_as_alpha_jsrdirect_relocs=yes
24463 else
24464 echo "configure: failed program was" >&5
24465 cat conftest.s >&5
24467 rm -f conftest.o conftest.s
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24471 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24472 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24474 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24479 avr-*-*)
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24481 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24482 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24483 $as_echo_n "(cached) " >&6
24484 else
24485 gcc_cv_as_avr_mlink_relax=no
24486 if test x$gcc_cv_as != x; then
24487 $as_echo '.text' > conftest.s
24488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24490 (eval $ac_try) 2>&5
24491 ac_status=$?
24492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24493 test $ac_status = 0; }; }
24494 then
24495 gcc_cv_as_avr_mlink_relax=yes
24496 else
24497 echo "configure: failed program was" >&5
24498 cat conftest.s >&5
24500 rm -f conftest.o conftest.s
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24504 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24505 if test $gcc_cv_as_avr_mlink_relax = yes; then
24507 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24512 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24513 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24514 $as_echo_n "(cached) " >&6
24515 else
24516 gcc_cv_as_avr_mrmw=no
24517 if test x$gcc_cv_as != x; then
24518 $as_echo '.text' > conftest.s
24519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24521 (eval $ac_try) 2>&5
24522 ac_status=$?
24523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24524 test $ac_status = 0; }; }
24525 then
24526 gcc_cv_as_avr_mrmw=yes
24527 else
24528 echo "configure: failed program was" >&5
24529 cat conftest.s >&5
24531 rm -f conftest.o conftest.s
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24535 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24536 if test $gcc_cv_as_avr_mrmw = yes; then
24538 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24543 cris-*-*)
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24545 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24546 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24548 else
24549 gcc_cv_as_cris_no_mul_bug=no
24550 if test $in_tree_gas = yes; then
24551 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24552 then gcc_cv_as_cris_no_mul_bug=yes
24554 elif test x$gcc_cv_as != x; then
24555 $as_echo '.text' > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24562 then
24563 gcc_cv_as_cris_no_mul_bug=yes
24564 else
24565 echo "configure: failed program was" >&5
24566 cat conftest.s >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24572 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24573 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24575 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24580 sparc*-*-*)
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24582 $as_echo_n "checking assembler for .register... " >&6; }
24583 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24584 $as_echo_n "(cached) " >&6
24585 else
24586 gcc_cv_as_sparc_register_op=no
24587 if test x$gcc_cv_as != x; then
24588 $as_echo '.register %g2, #scratch' > conftest.s
24589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24594 test $ac_status = 0; }; }
24595 then
24596 gcc_cv_as_sparc_register_op=yes
24597 else
24598 echo "configure: failed program was" >&5
24599 cat conftest.s >&5
24601 rm -f conftest.o conftest.s
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24605 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24606 if test $gcc_cv_as_sparc_register_op = yes; then
24608 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24613 $as_echo_n "checking assembler for #nobits... " >&6; }
24614 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24615 $as_echo_n "(cached) " >&6
24616 else
24617 gcc_cv_as_sparc_nobits=no
24618 if test x$gcc_cv_as != x; then
24619 $as_echo '.section "nobits",#alloc,#write,#nobits
24620 .section "progbits",#alloc,#write,#progbits' > conftest.s
24621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24623 (eval $ac_try) 2>&5
24624 ac_status=$?
24625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24626 test $ac_status = 0; }; }
24627 then
24628 gcc_cv_as_sparc_nobits=yes
24629 else
24630 echo "configure: failed program was" >&5
24631 cat conftest.s >&5
24633 rm -f conftest.o conftest.s
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24637 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24640 cat >>confdefs.h <<_ACEOF
24641 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24642 _ACEOF
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24646 $as_echo_n "checking assembler for -relax option... " >&6; }
24647 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24648 $as_echo_n "(cached) " >&6
24649 else
24650 gcc_cv_as_sparc_relax=no
24651 if test x$gcc_cv_as != x; then
24652 $as_echo '.text' > conftest.s
24653 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24659 then
24660 gcc_cv_as_sparc_relax=yes
24661 else
24662 echo "configure: failed program was" >&5
24663 cat conftest.s >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24669 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24670 if test $gcc_cv_as_sparc_relax = yes; then
24672 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24677 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24678 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24680 else
24681 gcc_cv_as_sparc_gotdata_op=no
24682 if test x$gcc_cv_as != x; then
24683 $as_echo '.text
24684 .align 4
24685 foo:
24687 bar:
24688 sethi %gdop_hix22(foo), %g1
24689 xor %g1, %gdop_lox10(foo), %g1
24690 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24696 test $ac_status = 0; }; }
24697 then
24698 if test x$gcc_cv_ld != x \
24699 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24700 if test x$gcc_cv_objdump != x; then
24701 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24702 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24703 gcc_cv_as_sparc_gotdata_op=no
24704 else
24705 gcc_cv_as_sparc_gotdata_op=yes
24709 rm -f conftest
24710 else
24711 echo "configure: failed program was" >&5
24712 cat conftest.s >&5
24714 rm -f conftest.o conftest.s
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24718 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24719 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24721 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24726 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24727 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24729 else
24730 gcc_cv_as_sparc_ua_pcrel=no
24731 if test x$gcc_cv_as != x; then
24732 $as_echo '.text
24733 foo:
24735 .data
24736 .align 4
24737 .byte 0
24738 .uaword %r_disp32(foo)' > conftest.s
24739 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24741 (eval $ac_try) 2>&5
24742 ac_status=$?
24743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24744 test $ac_status = 0; }; }
24745 then
24746 if test x$gcc_cv_ld != x \
24747 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24748 gcc_cv_as_sparc_ua_pcrel=yes
24750 rm -f conftest
24751 else
24752 echo "configure: failed program was" >&5
24753 cat conftest.s >&5
24755 rm -f conftest.o conftest.s
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24759 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24760 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24762 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24766 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24767 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24768 $as_echo_n "(cached) " >&6
24769 else
24770 gcc_cv_as_sparc_ua_pcrel_hidden=no
24771 if test x$gcc_cv_as != x; then
24772 $as_echo '.data
24773 .align 4
24774 .byte 0x31
24775 .uaword %r_disp32(foo)
24776 .byte 0x32, 0x33, 0x34
24777 .global foo
24778 .hidden foo
24779 foo:
24780 .skip 4' > conftest.s
24781 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783 (eval $ac_try) 2>&5
24784 ac_status=$?
24785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786 test $ac_status = 0; }; }
24787 then
24788 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24789 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24790 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24791 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24792 if $gcc_cv_objdump -R conftest 2> /dev/null \
24793 | grep 'DISP32' > /dev/null 2>&1; then
24795 else
24796 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24799 rm -f conftest
24800 else
24801 echo "configure: failed program was" >&5
24802 cat conftest.s >&5
24804 rm -f conftest.o conftest.s
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24808 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24809 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24811 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24815 fi # unaligned pcrel relocs
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24818 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24819 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24820 $as_echo_n "(cached) " >&6
24821 else
24822 gcc_cv_as_sparc_offsetable_lo10=no
24823 if test x$gcc_cv_as != x; then
24824 $as_echo '.text
24825 or %g1, %lo(ab) + 12, %g1
24826 or %g1, %lo(ab + 12), %g1' > conftest.s
24827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24830 ac_status=$?
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24833 then
24834 if test x$gcc_cv_objdump != x \
24835 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24836 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24837 gcc_cv_as_sparc_offsetable_lo10=yes
24839 else
24840 echo "configure: failed program was" >&5
24841 cat conftest.s >&5
24843 rm -f conftest.o conftest.s
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24847 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24848 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24850 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24855 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24856 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24857 $as_echo_n "(cached) " >&6
24858 else
24859 gcc_cv_as_sparc_fmaf=no
24860 if test x$gcc_cv_as != x; then
24861 $as_echo '.text
24862 .register %g2, #scratch
24863 .register %g3, #scratch
24864 .align 4
24865 fmaddd %f0, %f2, %f4, %f6
24866 addxccc %g1, %g2, %g3
24867 fsrl32 %f2, %f4, %f8
24868 fnaddd %f10, %f12, %f14' > conftest.s
24869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24871 (eval $ac_try) 2>&5
24872 ac_status=$?
24873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24874 test $ac_status = 0; }; }
24875 then
24876 gcc_cv_as_sparc_fmaf=yes
24877 else
24878 echo "configure: failed program was" >&5
24879 cat conftest.s >&5
24881 rm -f conftest.o conftest.s
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24885 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24886 if test $gcc_cv_as_sparc_fmaf = yes; then
24888 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24893 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24894 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24896 else
24897 gcc_cv_as_sparc_sparc4=no
24898 if test x$gcc_cv_as != x; then
24899 $as_echo '.text
24900 .register %g2, #scratch
24901 .register %g3, #scratch
24902 .align 4
24903 cxbe %g2, %g3, 1f
24904 1: cwbneg %g2, %g3, 1f
24905 1: sha1
24907 aes_kexpand0 %f4, %f6, %f8
24908 des_round %f38, %f40, %f42, %f44
24909 camellia_f %f54, %f56, %f58, %f60
24910 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; }
24917 then
24918 gcc_cv_as_sparc_sparc4=yes
24919 else
24920 echo "configure: failed program was" >&5
24921 cat conftest.s >&5
24923 rm -f conftest.o conftest.s
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24927 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24928 if test $gcc_cv_as_sparc_sparc4 = yes; then
24930 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24935 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24936 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24937 $as_echo_n "(cached) " >&6
24938 else
24939 gcc_cv_as_sparc_leon=no
24940 if test x$gcc_cv_as != x; then
24941 $as_echo '.text
24942 .register %g2, #scratch
24943 .register %g3, #scratch
24944 .align 4
24945 smac %g2, %g3, %g1
24946 umac %g2, %g3, %g1
24947 casa [%g2] 0xb, %g3, %g1' > conftest.s
24948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24953 test $ac_status = 0; }; }
24954 then
24955 gcc_cv_as_sparc_leon=yes
24956 else
24957 echo "configure: failed program was" >&5
24958 cat conftest.s >&5
24960 rm -f conftest.o conftest.s
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24964 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24965 if test $gcc_cv_as_sparc_leon = yes; then
24967 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24972 i[34567]86-*-* | x86_64-*-*)
24973 case $target_os in
24974 cygwin*)
24975 # Full C++ conformance when using a shared libstdc++-v3 requires some
24976 # support from the Cygwin DLL, which in more recent versions exports
24977 # wrappers to aid in interposing and redirecting operators new, delete,
24978 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24979 # are configuring for a version of Cygwin that exports the wrappers.
24980 if test x$host = x$target && test x$host_cpu = xi686; then
24981 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24982 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24983 gcc_ac_cygwin_dll_wrappers=yes
24984 else
24985 gcc_ac_cygwin_dll_wrappers=no
24988 else
24989 # Can't check presence of libc functions during cross-compile, so
24990 # we just have to assume we're building for an up-to-date target.
24991 gcc_ac_cygwin_dll_wrappers=yes
24994 cat >>confdefs.h <<_ACEOF
24995 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24996 _ACEOF
24998 esac
24999 case $target_os in
25000 cygwin* | pe | mingw32* | interix*)
25001 # Recent binutils allows the three-operand form of ".comm" on PE. This
25002 # definition is used unconditionally to initialise the default state of
25003 # the target option variable that governs usage of the feature.
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25005 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25006 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25008 else
25009 gcc_cv_as_comm_has_align=no
25010 if test $in_tree_gas = yes; then
25011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25012 then gcc_cv_as_comm_has_align=yes
25014 elif test x$gcc_cv_as != x; then
25015 $as_echo '.comm foo,1,32' > conftest.s
25016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25018 (eval $ac_try) 2>&5
25019 ac_status=$?
25020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25021 test $ac_status = 0; }; }
25022 then
25023 gcc_cv_as_comm_has_align=yes
25024 else
25025 echo "configure: failed program was" >&5
25026 cat conftest.s >&5
25028 rm -f conftest.o conftest.s
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25032 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25035 cat >>confdefs.h <<_ACEOF
25036 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25037 _ACEOF
25039 # Used for DWARF 2 in PE
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25041 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25042 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25043 $as_echo_n "(cached) " >&6
25044 else
25045 gcc_cv_as_ix86_pe_secrel32=no
25046 if test $in_tree_gas = yes; then
25047 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25048 then gcc_cv_as_ix86_pe_secrel32=yes
25050 elif test x$gcc_cv_as != x; then
25051 $as_echo '.text
25052 foo: nop
25053 .data
25054 .secrel32 foo' > conftest.s
25055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25057 (eval $ac_try) 2>&5
25058 ac_status=$?
25059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25060 test $ac_status = 0; }; }
25061 then
25062 if test x$gcc_cv_ld != x \
25063 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25064 gcc_cv_as_ix86_pe_secrel32=yes
25066 rm -f conftest
25067 else
25068 echo "configure: failed program was" >&5
25069 cat conftest.s >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25075 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25076 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25078 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25081 # Test if the assembler supports the extended form of the .section
25082 # directive that specifies section alignment. LTO support uses this,
25083 # but normally only after installation, so we warn but don't fail the
25084 # configure if LTO is enabled but the assembler does not support it.
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25086 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25087 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25089 else
25090 gcc_cv_as_section_has_align=no
25091 if test $in_tree_gas = yes; then
25092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25093 then gcc_cv_as_section_has_align=yes
25095 elif test x$gcc_cv_as != x; then
25096 $as_echo '.section lto_test,"dr0"' > conftest.s
25097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25103 then
25104 gcc_cv_as_section_has_align=yes
25105 else
25106 echo "configure: failed program was" >&5
25107 cat conftest.s >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25113 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25115 if test x$gcc_cv_as_section_has_align != xyes; then
25116 case ",$enable_languages," in
25117 *,lto,*)
25118 { $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
25119 $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;}
25121 esac
25124 esac
25126 # Test if the assembler supports the section flag 'e' for specifying
25127 # an excluded section.
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25129 $as_echo_n "checking assembler for .section with e... " >&6; }
25130 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25131 $as_echo_n "(cached) " >&6
25132 else
25133 gcc_cv_as_section_has_e=no
25134 if test $in_tree_gas = yes; then
25135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25136 then gcc_cv_as_section_has_e=yes
25138 elif test x$gcc_cv_as != x; then
25139 $as_echo '.section foo1,"e"
25140 .byte 0,0,0,0' > conftest.s
25141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 then
25148 gcc_cv_as_section_has_e=yes
25149 else
25150 echo "configure: failed program was" >&5
25151 cat conftest.s >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25157 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25160 cat >>confdefs.h <<_ACEOF
25161 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25162 _ACEOF
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25166 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25167 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25169 else
25170 gcc_cv_as_ix86_filds=no
25171 if test x$gcc_cv_as != x; then
25172 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25178 test $ac_status = 0; }; }
25179 then
25180 gcc_cv_as_ix86_filds=yes
25181 else
25182 echo "configure: failed program was" >&5
25183 cat conftest.s >&5
25185 rm -f conftest.o conftest.s
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25189 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25190 if test $gcc_cv_as_ix86_filds = yes; then
25192 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25197 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25198 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25199 $as_echo_n "(cached) " >&6
25200 else
25201 gcc_cv_as_ix86_fildq=no
25202 if test x$gcc_cv_as != x; then
25203 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25209 test $ac_status = 0; }; }
25210 then
25211 gcc_cv_as_ix86_fildq=yes
25212 else
25213 echo "configure: failed program was" >&5
25214 cat conftest.s >&5
25216 rm -f conftest.o conftest.s
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25220 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25221 if test $gcc_cv_as_ix86_fildq = yes; then
25223 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25228 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25229 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25230 $as_echo_n "(cached) " >&6
25231 else
25232 gcc_cv_as_ix86_cmov_sun_syntax=no
25233 if test x$gcc_cv_as != x; then
25234 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25240 test $ac_status = 0; }; }
25241 then
25242 gcc_cv_as_ix86_cmov_sun_syntax=yes
25243 else
25244 echo "configure: failed program was" >&5
25245 cat conftest.s >&5
25247 rm -f conftest.o conftest.s
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25251 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25252 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25254 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25259 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25260 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25261 $as_echo_n "(cached) " >&6
25262 else
25263 gcc_cv_as_ix86_ffreep=no
25264 if test x$gcc_cv_as != x; then
25265 $as_echo 'ffreep %st(1)' > conftest.s
25266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25268 (eval $ac_try) 2>&5
25269 ac_status=$?
25270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25271 test $ac_status = 0; }; }
25272 then
25273 gcc_cv_as_ix86_ffreep=yes
25274 else
25275 echo "configure: failed program was" >&5
25276 cat conftest.s >&5
25278 rm -f conftest.o conftest.s
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25282 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25283 if test $gcc_cv_as_ix86_ffreep = yes; then
25285 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25290 $as_echo_n "checking assembler for .quad directive... " >&6; }
25291 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25292 $as_echo_n "(cached) " >&6
25293 else
25294 gcc_cv_as_ix86_quad=no
25295 if test x$gcc_cv_as != x; then
25296 $as_echo '.quad 0' > conftest.s
25297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25299 (eval $ac_try) 2>&5
25300 ac_status=$?
25301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25302 test $ac_status = 0; }; }
25303 then
25304 gcc_cv_as_ix86_quad=yes
25305 else
25306 echo "configure: failed program was" >&5
25307 cat conftest.s >&5
25309 rm -f conftest.o conftest.s
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25313 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25314 if test $gcc_cv_as_ix86_quad = yes; then
25316 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25321 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25322 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25323 $as_echo_n "(cached) " >&6
25324 else
25325 gcc_cv_as_ix86_sahf=no
25326 if test x$gcc_cv_as != x; then
25327 $as_echo '.code64
25328 sahf' > conftest.s
25329 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25331 (eval $ac_try) 2>&5
25332 ac_status=$?
25333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25334 test $ac_status = 0; }; }
25335 then
25336 gcc_cv_as_ix86_sahf=yes
25337 else
25338 echo "configure: failed program was" >&5
25339 cat conftest.s >&5
25341 rm -f conftest.o conftest.s
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25345 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25346 if test $gcc_cv_as_ix86_sahf = yes; then
25348 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25353 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25354 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25355 $as_echo_n "(cached) " >&6
25356 else
25357 gcc_cv_as_ix86_interunit_movq=no
25358 if test x$gcc_cv_as != x; then
25359 $as_echo '.code64
25360 movq %mm0, %rax
25361 movq %rax, %xmm0' > conftest.s
25362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25364 (eval $ac_try) 2>&5
25365 ac_status=$?
25366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }; }
25368 then
25369 gcc_cv_as_ix86_interunit_movq=yes
25370 else
25371 echo "configure: failed program was" >&5
25372 cat conftest.s >&5
25374 rm -f conftest.o conftest.s
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25378 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25381 cat >>confdefs.h <<_ACEOF
25382 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25383 _ACEOF
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25387 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25388 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25389 $as_echo_n "(cached) " >&6
25390 else
25391 gcc_cv_as_ix86_hle=no
25392 if test x$gcc_cv_as != x; then
25393 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25397 ac_status=$?
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25400 then
25401 gcc_cv_as_ix86_hle=yes
25402 else
25403 echo "configure: failed program was" >&5
25404 cat conftest.s >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25410 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25411 if test $gcc_cv_as_ix86_hle = yes; then
25413 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25418 $as_echo_n "checking assembler for swap suffix... " >&6; }
25419 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25420 $as_echo_n "(cached) " >&6
25421 else
25422 gcc_cv_as_ix86_swap=no
25423 if test x$gcc_cv_as != x; then
25424 $as_echo 'movl.s %esp, %ebp' > conftest.s
25425 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25427 (eval $ac_try) 2>&5
25428 ac_status=$?
25429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25430 test $ac_status = 0; }; }
25431 then
25432 gcc_cv_as_ix86_swap=yes
25433 else
25434 echo "configure: failed program was" >&5
25435 cat conftest.s >&5
25437 rm -f conftest.o conftest.s
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25441 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25442 if test $gcc_cv_as_ix86_swap = yes; then
25444 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25449 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25450 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25451 $as_echo_n "(cached) " >&6
25452 else
25453 gcc_cv_as_ix86_diff_sect_delta=no
25454 if test x$gcc_cv_as != x; then
25455 $as_echo '.section .rodata
25456 .L1:
25457 .long .L2-.L1
25458 .long .L3-.L1
25459 .text
25460 .L3: nop
25461 .L2: nop' > conftest.s
25462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25464 (eval $ac_try) 2>&5
25465 ac_status=$?
25466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25467 test $ac_status = 0; }; }
25468 then
25469 gcc_cv_as_ix86_diff_sect_delta=yes
25470 else
25471 echo "configure: failed program was" >&5
25472 cat conftest.s >&5
25474 rm -f conftest.o conftest.s
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25478 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25479 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25481 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25485 # These two are used unconditionally by i386.[ch]; it is to be defined
25486 # to 1 if the feature is present, 0 otherwise.
25487 as_ix86_gotoff_in_data_opt=
25488 if test x$gas = xyes; then
25489 as_ix86_gotoff_in_data_opt="--32"
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25492 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25493 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25494 $as_echo_n "(cached) " >&6
25495 else
25496 gcc_cv_as_ix86_gotoff_in_data=no
25497 if test $in_tree_gas = yes; then
25498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25499 then gcc_cv_as_ix86_gotoff_in_data=yes
25501 elif test x$gcc_cv_as != x; then
25502 $as_echo ' .text
25503 .L0:
25505 .data
25506 .long .L0@GOTOFF' > conftest.s
25507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25510 ac_status=$?
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25513 then
25514 gcc_cv_as_ix86_gotoff_in_data=yes
25515 else
25516 echo "configure: failed program was" >&5
25517 cat conftest.s >&5
25519 rm -f conftest.o conftest.s
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25523 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25526 cat >>confdefs.h <<_ACEOF
25527 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25528 _ACEOF
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25532 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25533 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25534 $as_echo_n "(cached) " >&6
25535 else
25536 gcc_cv_as_ix86_rep_lock_prefix=no
25537 if test x$gcc_cv_as != x; then
25538 $as_echo 'rep movsl
25539 rep ret
25540 rep nop
25541 rep bsf %ecx, %eax
25542 rep bsr %ecx, %eax
25543 lock addl %edi, (%eax,%esi)
25544 lock orl $0, (%esp)' > conftest.s
25545 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547 (eval $ac_try) 2>&5
25548 ac_status=$?
25549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550 test $ac_status = 0; }; }
25551 then
25552 gcc_cv_as_ix86_rep_lock_prefix=yes
25553 else
25554 echo "configure: failed program was" >&5
25555 cat conftest.s >&5
25557 rm -f conftest.o conftest.s
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25561 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25562 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25564 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25569 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25570 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25571 $as_echo_n "(cached) " >&6
25572 else
25573 gcc_cv_as_ix86_ud2=no
25574 if test x$gcc_cv_as != x; then
25575 $as_echo 'ud2' > conftest.s
25576 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25578 (eval $ac_try) 2>&5
25579 ac_status=$?
25580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25581 test $ac_status = 0; }; }
25582 then
25583 gcc_cv_as_ix86_ud2=yes
25584 else
25585 echo "configure: failed program was" >&5
25586 cat conftest.s >&5
25588 rm -f conftest.o conftest.s
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25592 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25593 if test $gcc_cv_as_ix86_ud2 = yes; then
25595 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25600 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25601 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25603 else
25604 gcc_cv_as_ix86_tlsgdplt=no
25605 if test x$gcc_cv_as != x; then
25606 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25609 (eval $ac_try) 2>&5
25610 ac_status=$?
25611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25612 test $ac_status = 0; }; }
25613 then
25614 if test x$gcc_cv_ld != x \
25615 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25616 gcc_cv_as_ix86_tlsgdplt=yes
25618 rm -f conftest
25619 else
25620 echo "configure: failed program was" >&5
25621 cat conftest.s >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25627 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25628 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25630 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25634 conftest_s='
25635 .section .tdata,"aw'$tls_section_flag'",@progbits
25636 tls_ld:
25637 .section .text,"ax",@progbits
25638 call tls_ld@tlsldmplt'
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25640 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25641 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25643 else
25644 gcc_cv_as_ix86_tlsldmplt=no
25645 if test x$gcc_cv_as != x; then
25646 $as_echo "$conftest_s" > conftest.s
25647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25652 test $ac_status = 0; }; }
25653 then
25654 if test x$gcc_cv_ld != x \
25655 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25656 gcc_cv_as_ix86_tlsldmplt=yes
25658 rm -f conftest
25659 else
25660 echo "configure: failed program was" >&5
25661 cat conftest.s >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25667 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25670 cat >>confdefs.h <<_ACEOF
25671 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25672 _ACEOF
25675 # Enforce 32-bit output with gas and gld.
25676 if test x$gas = xyes; then
25677 as_ix86_tls_ldm_opt="--32"
25679 if echo "$ld_ver" | grep GNU > /dev/null; then
25680 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25681 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25682 else
25683 ld_ix86_tls_ldm_opt="-melf_i386"
25686 conftest_s='
25687 .section .text,"ax",@progbits
25688 .globl _start
25689 .type _start, @function
25690 _start:
25691 leal value@tlsldm(%ebx), %eax
25692 call ___tls_get_addr@plt
25694 .section .tdata,"aw'$tls_section_flag'",@progbits
25695 .type value, @object
25696 value:'
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25698 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25699 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25700 $as_echo_n "(cached) " >&6
25701 else
25702 gcc_cv_as_ix86_tlsldm=no
25703 if test x$gcc_cv_as != x; then
25704 $as_echo "$conftest_s" > conftest.s
25705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25707 (eval $ac_try) 2>&5
25708 ac_status=$?
25709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25710 test $ac_status = 0; }; }
25711 then
25712 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25713 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25714 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25715 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25716 gcc_cv_as_ix86_tlsldm=yes
25719 rm -f conftest
25720 else
25721 echo "configure: failed program was" >&5
25722 cat conftest.s >&5
25724 rm -f conftest.o conftest.s
25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25728 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25731 cat >>confdefs.h <<_ACEOF
25732 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25733 _ACEOF
25738 ia64*-*-*)
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25740 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25741 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25743 else
25744 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25745 if test $in_tree_gas = yes; then
25746 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25747 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25749 elif test x$gcc_cv_as != x; then
25750 $as_echo ' .text
25751 addl r15 = @ltoffx(x#), gp
25753 ld8.mov r16 = [r15], x#' > conftest.s
25754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25756 (eval $ac_try) 2>&5
25757 ac_status=$?
25758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25759 test $ac_status = 0; }; }
25760 then
25761 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25762 else
25763 echo "configure: failed program was" >&5
25764 cat conftest.s >&5
25766 rm -f conftest.o conftest.s
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25770 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25771 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25773 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25779 powerpc*-*-*)
25780 case $target in
25781 *-*-aix*) conftest_s=' .machine "pwr5"
25782 .csect .text[PR]
25783 mfcr 3,128';;
25784 *-*-darwin*)
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25786 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25787 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25789 else
25790 gcc_cv_as_machine_directive=no
25791 if test x$gcc_cv_as != x; then
25792 $as_echo ' .machine ppc7400' > conftest.s
25793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25795 (eval $ac_try) 2>&5
25796 ac_status=$?
25797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25798 test $ac_status = 0; }; }
25799 then
25800 gcc_cv_as_machine_directive=yes
25801 else
25802 echo "configure: failed program was" >&5
25803 cat conftest.s >&5
25805 rm -f conftest.o conftest.s
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25809 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25811 if test x$gcc_cv_as_machine_directive != xyes; then
25812 echo "*** This target requires an assembler supporting \".machine\"" >&2
25813 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25814 test x$build = x$target && exit 1
25816 conftest_s=' .text
25817 mfcr r3,128';;
25818 *) conftest_s=' .machine power4
25819 .text
25820 mfcr 3,128';;
25821 esac
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25824 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25825 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25827 else
25828 gcc_cv_as_powerpc_mfcrf=no
25829 if test $in_tree_gas = yes; then
25830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25831 then gcc_cv_as_powerpc_mfcrf=yes
25833 elif test x$gcc_cv_as != x; then
25834 $as_echo "$conftest_s" > conftest.s
25835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25841 then
25842 gcc_cv_as_powerpc_mfcrf=yes
25843 else
25844 echo "configure: failed program was" >&5
25845 cat conftest.s >&5
25847 rm -f conftest.o conftest.s
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25851 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25852 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25854 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25858 case $target in
25859 *-*-aix*) conftest_s=' .machine "pwr5"
25860 .csect .text[PR]
25861 popcntb 3,3';;
25862 *) conftest_s=' .machine power5
25863 .text
25864 popcntb 3,3';;
25865 esac
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25868 $as_echo_n "checking assembler for popcntb support... " >&6; }
25869 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25870 $as_echo_n "(cached) " >&6
25871 else
25872 gcc_cv_as_powerpc_popcntb=no
25873 if test $in_tree_gas = yes; then
25874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25875 then gcc_cv_as_powerpc_popcntb=yes
25877 elif test x$gcc_cv_as != x; then
25878 $as_echo "$conftest_s" > conftest.s
25879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25881 (eval $ac_try) 2>&5
25882 ac_status=$?
25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25884 test $ac_status = 0; }; }
25885 then
25886 gcc_cv_as_powerpc_popcntb=yes
25887 else
25888 echo "configure: failed program was" >&5
25889 cat conftest.s >&5
25891 rm -f conftest.o conftest.s
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25895 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25896 if test $gcc_cv_as_powerpc_popcntb = yes; then
25898 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25902 case $target in
25903 *-*-aix*) conftest_s=' .machine "pwr5x"
25904 .csect .text[PR]
25905 frin 1,1';;
25906 *) conftest_s=' .machine power5
25907 .text
25908 frin 1,1';;
25909 esac
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25912 $as_echo_n "checking assembler for fp round support... " >&6; }
25913 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25914 $as_echo_n "(cached) " >&6
25915 else
25916 gcc_cv_as_powerpc_fprnd=no
25917 if test $in_tree_gas = yes; then
25918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25919 then gcc_cv_as_powerpc_fprnd=yes
25921 elif test x$gcc_cv_as != x; then
25922 $as_echo "$conftest_s" > conftest.s
25923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25925 (eval $ac_try) 2>&5
25926 ac_status=$?
25927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25928 test $ac_status = 0; }; }
25929 then
25930 gcc_cv_as_powerpc_fprnd=yes
25931 else
25932 echo "configure: failed program was" >&5
25933 cat conftest.s >&5
25935 rm -f conftest.o conftest.s
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25939 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25940 if test $gcc_cv_as_powerpc_fprnd = yes; then
25942 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25946 case $target in
25947 *-*-aix*) conftest_s=' .machine "pwr6"
25948 .csect .text[PR]
25949 mffgpr 1,3';;
25950 *) conftest_s=' .machine power6
25951 .text
25952 mffgpr 1,3';;
25953 esac
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25956 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25957 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25958 $as_echo_n "(cached) " >&6
25959 else
25960 gcc_cv_as_powerpc_mfpgpr=no
25961 if test $in_tree_gas = yes; then
25962 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25963 then gcc_cv_as_powerpc_mfpgpr=yes
25965 elif test x$gcc_cv_as != x; then
25966 $as_echo "$conftest_s" > conftest.s
25967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25969 (eval $ac_try) 2>&5
25970 ac_status=$?
25971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25972 test $ac_status = 0; }; }
25973 then
25974 gcc_cv_as_powerpc_mfpgpr=yes
25975 else
25976 echo "configure: failed program was" >&5
25977 cat conftest.s >&5
25979 rm -f conftest.o conftest.s
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25983 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25984 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25986 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25990 case $target in
25991 *-*-aix*) conftest_s=' .csect .text[PR]
25992 LCF..0:
25993 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25994 *-*-darwin*)
25995 conftest_s=' .text
25996 LCF0:
25997 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25998 *) conftest_s=' .text
25999 .LCF0:
26000 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26001 esac
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26004 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26005 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26006 $as_echo_n "(cached) " >&6
26007 else
26008 gcc_cv_as_powerpc_rel16=no
26009 if test $in_tree_gas = yes; then
26010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26011 then gcc_cv_as_powerpc_rel16=yes
26013 elif test x$gcc_cv_as != x; then
26014 $as_echo "$conftest_s" > conftest.s
26015 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26018 ac_status=$?
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; }
26021 then
26022 gcc_cv_as_powerpc_rel16=yes
26023 else
26024 echo "configure: failed program was" >&5
26025 cat conftest.s >&5
26027 rm -f conftest.o conftest.s
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26031 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26032 if test $gcc_cv_as_powerpc_rel16 = yes; then
26034 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26038 case $target in
26039 *-*-aix*) conftest_s=' .machine "pwr6"
26040 .csect .text[PR]
26041 cmpb 3,4,5';;
26042 *) conftest_s=' .machine power6
26043 .text
26044 cmpb 3,4,5';;
26045 esac
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26048 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26049 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26050 $as_echo_n "(cached) " >&6
26051 else
26052 gcc_cv_as_powerpc_cmpb=no
26053 if test $in_tree_gas = yes; then
26054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26055 then gcc_cv_as_powerpc_cmpb=yes
26057 elif test x$gcc_cv_as != x; then
26058 $as_echo "$conftest_s" > conftest.s
26059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26065 then
26066 gcc_cv_as_powerpc_cmpb=yes
26067 else
26068 echo "configure: failed program was" >&5
26069 cat conftest.s >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26075 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26076 if test $gcc_cv_as_powerpc_cmpb = yes; then
26078 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26082 case $target in
26083 *-*-aix*) conftest_s=' .machine "pwr6"
26084 .csect .text[PR]
26085 dadd 1,2,3';;
26086 *) conftest_s=' .machine power6
26087 .text
26088 dadd 1,2,3';;
26089 esac
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26092 $as_echo_n "checking assembler for decimal float support... " >&6; }
26093 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26094 $as_echo_n "(cached) " >&6
26095 else
26096 gcc_cv_as_powerpc_dfp=no
26097 if test $in_tree_gas = yes; then
26098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26099 then gcc_cv_as_powerpc_dfp=yes
26101 elif test x$gcc_cv_as != x; then
26102 $as_echo "$conftest_s" > conftest.s
26103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26109 then
26110 gcc_cv_as_powerpc_dfp=yes
26111 else
26112 echo "configure: failed program was" >&5
26113 cat conftest.s >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26119 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26120 if test $gcc_cv_as_powerpc_dfp = yes; then
26122 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26126 case $target in
26127 *-*-aix*) conftest_s=' .machine "pwr7"
26128 .csect .text[PR]
26129 lxvd2x 1,2,3';;
26130 *) conftest_s=' .machine power7
26131 .text
26132 lxvd2x 1,2,3';;
26133 esac
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26136 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26137 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26138 $as_echo_n "(cached) " >&6
26139 else
26140 gcc_cv_as_powerpc_vsx=no
26141 if test $in_tree_gas = yes; then
26142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26143 then gcc_cv_as_powerpc_vsx=yes
26145 elif test x$gcc_cv_as != x; then
26146 $as_echo "$conftest_s" > conftest.s
26147 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26150 ac_status=$?
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26153 then
26154 gcc_cv_as_powerpc_vsx=yes
26155 else
26156 echo "configure: failed program was" >&5
26157 cat conftest.s >&5
26159 rm -f conftest.o conftest.s
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26163 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26164 if test $gcc_cv_as_powerpc_vsx = yes; then
26166 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26170 case $target in
26171 *-*-aix*) conftest_s=' .machine "pwr7"
26172 .csect .text[PR]
26173 popcntd 3,3';;
26174 *) conftest_s=' .machine power7
26175 .text
26176 popcntd 3,3';;
26177 esac
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26180 $as_echo_n "checking assembler for popcntd support... " >&6; }
26181 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26182 $as_echo_n "(cached) " >&6
26183 else
26184 gcc_cv_as_powerpc_popcntd=no
26185 if test $in_tree_gas = yes; then
26186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26187 then gcc_cv_as_powerpc_popcntd=yes
26189 elif test x$gcc_cv_as != x; then
26190 $as_echo "$conftest_s" > conftest.s
26191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26193 (eval $ac_try) 2>&5
26194 ac_status=$?
26195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26196 test $ac_status = 0; }; }
26197 then
26198 gcc_cv_as_powerpc_popcntd=yes
26199 else
26200 echo "configure: failed program was" >&5
26201 cat conftest.s >&5
26203 rm -f conftest.o conftest.s
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26207 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26208 if test $gcc_cv_as_powerpc_popcntd = yes; then
26210 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26214 case $target in
26215 *-*-aix*) conftest_s=' .machine "pwr8"
26216 .csect .text[PR]';;
26217 *) conftest_s=' .machine power8
26218 .text';;
26219 esac
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26222 $as_echo_n "checking assembler for power8 support... " >&6; }
26223 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26224 $as_echo_n "(cached) " >&6
26225 else
26226 gcc_cv_as_powerpc_power8=no
26227 if test $in_tree_gas = yes; then
26228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26229 then gcc_cv_as_powerpc_power8=yes
26231 elif test x$gcc_cv_as != x; then
26232 $as_echo "$conftest_s" > conftest.s
26233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26238 test $ac_status = 0; }; }
26239 then
26240 gcc_cv_as_powerpc_power8=yes
26241 else
26242 echo "configure: failed program was" >&5
26243 cat conftest.s >&5
26245 rm -f conftest.o conftest.s
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26249 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26250 if test $gcc_cv_as_powerpc_power8 = yes; then
26252 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26256 case $target in
26257 *-*-aix*) conftest_s=' .csect .text[PR]
26258 lwsync';;
26259 *) conftest_s=' .text
26260 lwsync';;
26261 esac
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26264 $as_echo_n "checking assembler for lwsync support... " >&6; }
26265 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26266 $as_echo_n "(cached) " >&6
26267 else
26268 gcc_cv_as_powerpc_lwsync=no
26269 if test $in_tree_gas = yes; then
26270 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26271 then gcc_cv_as_powerpc_lwsync=yes
26273 elif test x$gcc_cv_as != x; then
26274 $as_echo "$conftest_s" > conftest.s
26275 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26277 (eval $ac_try) 2>&5
26278 ac_status=$?
26279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26280 test $ac_status = 0; }; }
26281 then
26282 gcc_cv_as_powerpc_lwsync=yes
26283 else
26284 echo "configure: failed program was" >&5
26285 cat conftest.s >&5
26287 rm -f conftest.o conftest.s
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26291 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26292 if test $gcc_cv_as_powerpc_lwsync = yes; then
26294 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26298 case $target in
26299 *-*-aix*) conftest_s=' .machine "476"
26300 .csect .text[PR]
26301 dci 0';;
26302 *) conftest_s=' .machine "476"
26303 .text
26304 dci 0';;
26305 esac
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26308 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26309 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26310 $as_echo_n "(cached) " >&6
26311 else
26312 gcc_cv_as_powerpc_dci=no
26313 if test $in_tree_gas = yes; then
26314 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26315 then gcc_cv_as_powerpc_dci=yes
26317 elif test x$gcc_cv_as != x; then
26318 $as_echo "$conftest_s" > conftest.s
26319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26324 test $ac_status = 0; }; }
26325 then
26326 gcc_cv_as_powerpc_dci=yes
26327 else
26328 echo "configure: failed program was" >&5
26329 cat conftest.s >&5
26331 rm -f conftest.o conftest.s
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26335 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26336 if test $gcc_cv_as_powerpc_dci = yes; then
26338 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26343 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26344 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26345 $as_echo_n "(cached) " >&6
26346 else
26347 gcc_cv_as_powerpc_gnu_attribute=no
26348 if test $in_tree_gas = yes; then
26349 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26350 then gcc_cv_as_powerpc_gnu_attribute=yes
26352 elif test x$gcc_cv_as != x; then
26353 $as_echo '.gnu_attribute 4,1' > conftest.s
26354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26360 then
26361 gcc_cv_as_powerpc_gnu_attribute=yes
26362 else
26363 echo "configure: failed program was" >&5
26364 cat conftest.s >&5
26366 rm -f conftest.o conftest.s
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26370 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26371 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26373 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26378 $as_echo_n "checking assembler for tls marker support... " >&6; }
26379 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_powerpc_tls_markers=no
26383 if test $in_tree_gas = yes; then
26384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26385 then gcc_cv_as_powerpc_tls_markers=yes
26387 elif test x$gcc_cv_as != x; then
26388 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394 test $ac_status = 0; }; }
26395 then
26396 gcc_cv_as_powerpc_tls_markers=yes
26397 else
26398 echo "configure: failed program was" >&5
26399 cat conftest.s >&5
26401 rm -f conftest.o conftest.s
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26405 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26406 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26408 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26412 case $target in
26413 *-*-aix*)
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26415 $as_echo_n "checking assembler for .ref support... " >&6; }
26416 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26417 $as_echo_n "(cached) " >&6
26418 else
26419 gcc_cv_as_aix_ref=no
26420 if test $in_tree_gas = yes; then
26421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26422 then gcc_cv_as_aix_ref=yes
26424 elif test x$gcc_cv_as != x; then
26425 $as_echo ' .csect stuff[rw]
26426 stuff:
26427 .long 1
26428 .extern sym
26429 .ref sym
26430 ' > conftest.s
26431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26433 (eval $ac_try) 2>&5
26434 ac_status=$?
26435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26436 test $ac_status = 0; }; }
26437 then
26438 gcc_cv_as_aix_ref=yes
26439 else
26440 echo "configure: failed program was" >&5
26441 cat conftest.s >&5
26443 rm -f conftest.o conftest.s
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26447 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26448 if test $gcc_cv_as_aix_ref = yes; then
26450 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26454 esac
26456 case $target in
26457 *-*-aix*)
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf location lists section support" >&5
26459 $as_echo_n "checking assembler for dwarf location lists section support... " >&6; }
26460 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26461 $as_echo_n "(cached) " >&6
26462 else
26463 gcc_cv_as_aix_dwloc=no
26464 if test $in_tree_gas = yes; then
26465 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26466 then gcc_cv_as_aix_dwloc=yes
26468 elif test x$gcc_cv_as != x; then
26469 $as_echo ' .dwsect 0xB0000
26470 ' > conftest.s
26471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_aix_dwloc=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_aix_dwloc" >&5
26487 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26488 if test $gcc_cv_as_aix_dwloc = yes; then
26490 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26494 esac
26497 mips*-*-*)
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26499 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26500 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26501 $as_echo_n "(cached) " >&6
26502 else
26503 gcc_cv_as_mips_explicit_relocs=no
26504 if test $in_tree_gas = yes; then
26505 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26506 then gcc_cv_as_mips_explicit_relocs=yes
26508 elif test x$gcc_cv_as != x; then
26509 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26515 test $ac_status = 0; }; }
26516 then
26517 gcc_cv_as_mips_explicit_relocs=yes
26518 else
26519 echo "configure: failed program was" >&5
26520 cat conftest.s >&5
26522 rm -f conftest.o conftest.s
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26526 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26527 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26528 if test x$target_cpu_default = x
26529 then target_cpu_default=MASK_EXPLICIT_RELOCS
26530 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26535 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26536 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26537 $as_echo_n "(cached) " >&6
26538 else
26539 gcc_cv_as_mips_no_shared=no
26540 if test $in_tree_gas = yes; then
26541 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26542 then gcc_cv_as_mips_no_shared=yes
26544 elif test x$gcc_cv_as != x; then
26545 $as_echo 'nop' > conftest.s
26546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26548 (eval $ac_try) 2>&5
26549 ac_status=$?
26550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26551 test $ac_status = 0; }; }
26552 then
26553 gcc_cv_as_mips_no_shared=yes
26554 else
26555 echo "configure: failed program was" >&5
26556 cat conftest.s >&5
26558 rm -f conftest.o conftest.s
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26562 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26563 if test $gcc_cv_as_mips_no_shared = yes; then
26565 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26570 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26571 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26572 $as_echo_n "(cached) " >&6
26573 else
26574 gcc_cv_as_mips_gnu_attribute=no
26575 if test $in_tree_gas = yes; then
26576 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26577 then gcc_cv_as_mips_gnu_attribute=yes
26579 elif test x$gcc_cv_as != x; then
26580 $as_echo '.gnu_attribute 4,1' > conftest.s
26581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26586 test $ac_status = 0; }; }
26587 then
26588 gcc_cv_as_mips_gnu_attribute=yes
26589 else
26590 echo "configure: failed program was" >&5
26591 cat conftest.s >&5
26593 rm -f conftest.o conftest.s
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26597 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26598 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26600 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26605 $as_echo_n "checking assembler for .module support... " >&6; }
26606 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26607 $as_echo_n "(cached) " >&6
26608 else
26609 gcc_cv_as_mips_dot_module=no
26610 if test x$gcc_cv_as != x; then
26611 $as_echo '.module mips2
26612 .module fp=xx' > conftest.s
26613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26618 test $ac_status = 0; }; }
26619 then
26620 gcc_cv_as_mips_dot_module=yes
26621 else
26622 echo "configure: failed program was" >&5
26623 cat conftest.s >&5
26625 rm -f conftest.o conftest.s
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26629 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26630 if test $gcc_cv_as_mips_dot_module = yes; then
26632 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26635 if test x$gcc_cv_as_mips_dot_module = xno \
26636 && test x$with_fp_32 != x; then
26637 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26641 $as_echo_n "checking assembler for .micromips support... " >&6; }
26642 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26643 $as_echo_n "(cached) " >&6
26644 else
26645 gcc_cv_as_micromips_support=no
26646 if test x$gcc_cv_as != x; then
26647 $as_echo '.set micromips' > conftest.s
26648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26653 test $ac_status = 0; }; }
26654 then
26655 gcc_cv_as_micromips_support=yes
26656 else
26657 echo "configure: failed program was" >&5
26658 cat conftest.s >&5
26660 rm -f conftest.o conftest.s
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26664 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26665 if test $gcc_cv_as_micromips_support = yes; then
26667 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26672 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26673 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26674 $as_echo_n "(cached) " >&6
26675 else
26676 gcc_cv_as_mips_dtprelword=no
26677 if test $in_tree_gas = yes; then
26678 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26679 then gcc_cv_as_mips_dtprelword=yes
26681 elif test x$gcc_cv_as != x; then
26682 $as_echo '.section .tdata,"awT",@progbits
26684 .word 2
26685 .text
26686 .dtprelword x+0x8000' > conftest.s
26687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26689 (eval $ac_try) 2>&5
26690 ac_status=$?
26691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26692 test $ac_status = 0; }; }
26693 then
26694 gcc_cv_as_mips_dtprelword=yes
26695 else
26696 echo "configure: failed program was" >&5
26697 cat conftest.s >&5
26699 rm -f conftest.o conftest.s
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26703 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26704 if test $gcc_cv_as_mips_dtprelword = yes; then
26706 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26711 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26712 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26713 $as_echo_n "(cached) " >&6
26714 else
26715 gcc_cv_as_mips_dspr1_mult=no
26716 if test x$gcc_cv_as != x; then
26717 $as_echo ' .set mips32r2
26718 .set nodspr2
26719 .set dsp
26720 madd $ac3,$4,$5
26721 maddu $ac3,$4,$5
26722 msub $ac3,$4,$5
26723 msubu $ac3,$4,$5
26724 mult $ac3,$4,$5
26725 multu $ac3,$4,$5' > conftest.s
26726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26728 (eval $ac_try) 2>&5
26729 ac_status=$?
26730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26731 test $ac_status = 0; }; }
26732 then
26733 gcc_cv_as_mips_dspr1_mult=yes
26734 else
26735 echo "configure: failed program was" >&5
26736 cat conftest.s >&5
26738 rm -f conftest.o conftest.s
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26742 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26743 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26745 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26750 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26751 gcc_cv_as_ld_jalr_reloc=no
26752 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26753 if test $in_tree_ld = yes ; then
26754 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 \
26755 && test $in_tree_ld_is_elf = yes; then
26756 gcc_cv_as_ld_jalr_reloc=yes
26758 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26759 echo ' .ent x' > conftest.s
26760 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26761 echo ' lw $25,%call16(y)($28)' >> conftest.s
26762 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26763 echo '1: jalr $25' >> conftest.s
26764 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26765 echo '1: jalr $25' >> conftest.s
26766 echo ' .end x' >> conftest.s
26767 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26768 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26769 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26770 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26771 gcc_cv_as_ld_jalr_reloc=yes
26774 rm -f conftest.*
26777 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26778 if test x$target_cpu_default = x; then
26779 target_cpu_default=MASK_RELAX_PIC_CALLS
26780 else
26781 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26785 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26788 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26789 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26790 $as_echo_n "(cached) " >&6
26791 else
26792 gcc_cv_ld_mips_personality_relaxation=no
26793 if test $in_tree_ld = yes ; then
26794 if test "$gcc_cv_gld_major_version" -eq 2 \
26795 -a "$gcc_cv_gld_minor_version" -ge 21 \
26796 -o "$gcc_cv_gld_major_version" -gt 2; then
26797 gcc_cv_ld_mips_personality_relaxation=yes
26799 elif test x$gcc_cv_as != x \
26800 -a x$gcc_cv_ld != x \
26801 -a x$gcc_cv_readelf != x ; then
26802 cat > conftest.s <<EOF
26803 .cfi_startproc
26804 .cfi_personality 0x80,indirect_ptr
26805 .ent test
26806 test:
26808 .end test
26809 .cfi_endproc
26811 .section .data,"aw",@progbits
26812 indirect_ptr:
26813 .dc.a personality
26815 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26816 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26817 if $gcc_cv_readelf -d conftest 2>&1 \
26818 | grep TEXTREL > /dev/null 2>&1; then
26820 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26821 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26823 else
26824 gcc_cv_ld_mips_personality_relaxation=yes
26828 rm -f conftest.s conftest.o conftest
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26831 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26832 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26834 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26839 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26840 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26841 $as_echo_n "(cached) " >&6
26842 else
26843 gcc_cv_as_mips_nan=no
26844 if test x$gcc_cv_as != x; then
26845 $as_echo '' > conftest.s
26846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26848 (eval $ac_try) 2>&5
26849 ac_status=$?
26850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26851 test $ac_status = 0; }; }
26852 then
26853 gcc_cv_as_mips_nan=yes
26854 else
26855 echo "configure: failed program was" >&5
26856 cat conftest.s >&5
26858 rm -f conftest.o conftest.s
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26862 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26863 if test $gcc_cv_as_mips_nan = yes; then
26865 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26868 if test x$gcc_cv_as_mips_nan = xno \
26869 && test x$with_nan != x; then
26870 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26873 s390*-*-*)
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26875 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26876 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26877 $as_echo_n "(cached) " >&6
26878 else
26879 gcc_cv_as_s390_gnu_attribute=no
26880 if test $in_tree_gas = yes; then
26881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26882 then gcc_cv_as_s390_gnu_attribute=yes
26884 elif test x$gcc_cv_as != x; then
26885 $as_echo '.gnu_attribute 8,1' > conftest.s
26886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26891 test $ac_status = 0; }; }
26892 then
26893 gcc_cv_as_s390_gnu_attribute=yes
26894 else
26895 echo "configure: failed program was" >&5
26896 cat conftest.s >&5
26898 rm -f conftest.o conftest.s
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26902 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26903 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26905 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26909 esac
26911 # Mips and HP-UX need the GNU assembler.
26912 # Linux on IA64 might be able to use the Intel assembler.
26914 case "$target" in
26915 mips*-*-* | *-*-hpux* )
26916 if test x$gas_flag = xyes \
26917 || test x"$host" != x"$build" \
26918 || test ! -x "$gcc_cv_as" \
26919 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26921 else
26922 echo "*** This configuration requires the GNU assembler" >&2
26923 exit 1
26926 esac
26928 # ??? Not all targets support dwarf2 debug_line, even within a version
26929 # of gas. Moreover, we need to emit a valid instruction to trigger any
26930 # info to the output file. So, as supported targets are added to gas 2.11,
26931 # add some instruction here to (also) show we expect this might work.
26932 # ??? Once 2.11 is released, probably need to add first known working
26933 # version to the per-target configury.
26934 case "$cpu_type" in
26935 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26936 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26937 | visium | xstormy16 | xtensa)
26938 insn="nop"
26940 ia64 | s390)
26941 insn="nop 0"
26943 mmix)
26944 insn="swym 0"
26946 esac
26947 if test x"$insn" != x; then
26948 conftest_s="\
26949 .file 1 \"conftest.s\"
26950 .loc 1 3 0
26951 $insn"
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26953 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26954 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26955 $as_echo_n "(cached) " >&6
26956 else
26957 gcc_cv_as_dwarf2_debug_line=no
26958 if test $in_tree_gas = yes; then
26959 if test $in_tree_gas_is_elf = yes \
26960 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26961 then gcc_cv_as_dwarf2_debug_line=yes
26963 elif test x$gcc_cv_as != x; then
26964 $as_echo "$conftest_s" > conftest.s
26965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26967 (eval $ac_try) 2>&5
26968 ac_status=$?
26969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26970 test $ac_status = 0; }; }
26971 then
26972 if test x$gcc_cv_objdump != x \
26973 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26974 | grep debug_line > /dev/null 2>&1; then
26975 gcc_cv_as_dwarf2_debug_line=yes
26977 else
26978 echo "configure: failed program was" >&5
26979 cat conftest.s >&5
26981 rm -f conftest.o conftest.s
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26985 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26988 # The .debug_line file table must be in the exact order that
26989 # we specified the files, since these indices are also used
26990 # by DW_AT_decl_file. Approximate this test by testing if
26991 # the assembler bitches if the same index is assigned twice.
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26993 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26994 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26995 $as_echo_n "(cached) " >&6
26996 else
26997 gcc_cv_as_dwarf2_file_buggy=no
26998 if test x$gcc_cv_as != x; then
26999 $as_echo ' .file 1 "foo.s"
27000 .file 1 "bar.s"' > conftest.s
27001 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27003 (eval $ac_try) 2>&5
27004 ac_status=$?
27005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27006 test $ac_status = 0; }; }
27007 then
27008 gcc_cv_as_dwarf2_file_buggy=yes
27009 else
27010 echo "configure: failed program was" >&5
27011 cat conftest.s >&5
27013 rm -f conftest.o conftest.s
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27017 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27020 if test $gcc_cv_as_dwarf2_debug_line = yes \
27021 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27023 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27028 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27029 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27030 $as_echo_n "(cached) " >&6
27031 else
27032 gcc_cv_as_gdwarf2_flag=no
27033 if test $in_tree_gas = yes; then
27034 if test $in_tree_gas_is_elf = yes \
27035 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27036 then gcc_cv_as_gdwarf2_flag=yes
27038 elif test x$gcc_cv_as != x; then
27039 $as_echo "$insn" > conftest.s
27040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27042 (eval $ac_try) 2>&5
27043 ac_status=$?
27044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27045 test $ac_status = 0; }; }
27046 then
27047 gcc_cv_as_gdwarf2_flag=yes
27048 else
27049 echo "configure: failed program was" >&5
27050 cat conftest.s >&5
27052 rm -f conftest.o conftest.s
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27056 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27057 if test $gcc_cv_as_gdwarf2_flag = yes; then
27059 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27064 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27065 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27066 $as_echo_n "(cached) " >&6
27067 else
27068 gcc_cv_as_gstabs_flag=no
27069 if test $in_tree_gas = yes; then
27070 if test $in_tree_gas_is_elf = yes \
27071 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27072 then gcc_cv_as_gstabs_flag=yes
27074 elif test x$gcc_cv_as != x; then
27075 $as_echo "$insn" > conftest.s
27076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27081 test $ac_status = 0; }; }
27082 then
27083 gcc_cv_as_gstabs_flag=yes
27084 else
27085 echo "configure: failed program was" >&5
27086 cat conftest.s >&5
27088 rm -f conftest.o conftest.s
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27092 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27093 if test $gcc_cv_as_gstabs_flag = yes; then
27095 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27100 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27101 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27102 $as_echo_n "(cached) " >&6
27103 else
27104 gcc_cv_as_debug_prefix_map_flag=no
27105 if test $in_tree_gas = yes; then
27106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27107 then gcc_cv_as_debug_prefix_map_flag=yes
27109 elif test x$gcc_cv_as != x; then
27110 $as_echo "$insn" > conftest.s
27111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27113 (eval $ac_try) 2>&5
27114 ac_status=$?
27115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27116 test $ac_status = 0; }; }
27117 then
27118 gcc_cv_as_debug_prefix_map_flag=yes
27119 else
27120 echo "configure: failed program was" >&5
27121 cat conftest.s >&5
27123 rm -f conftest.o conftest.s
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27127 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27128 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27130 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27136 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27137 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27138 $as_echo_n "(cached) " >&6
27139 else
27140 gcc_cv_as_compress_debug=no
27141 if test x$gcc_cv_as != x; then
27142 $as_echo '' > conftest.s
27143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27145 (eval $ac_try) 2>&5
27146 ac_status=$?
27147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27148 test $ac_status = 0; }; }
27149 then
27150 # gas compiled without zlib cannot compress debug sections and warns
27151 # about it, but still exits successfully. So check for this, too.
27152 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27153 then
27154 gcc_cv_as_compress_debug=0
27155 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27156 then
27157 gcc_cv_as_compress_debug=1
27158 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27159 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27160 else
27161 gcc_cv_as_compress_debug=0
27162 # FIXME: Future gas versions will support ELF gABI style via
27163 # --compress-debug-sections[=type].
27165 else
27166 echo "configure: failed program was" >&5
27167 cat conftest.s >&5
27169 rm -f conftest.o conftest.s
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27173 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27176 cat >>confdefs.h <<_ACEOF
27177 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27178 _ACEOF
27181 cat >>confdefs.h <<_ACEOF
27182 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27183 _ACEOF
27186 cat >>confdefs.h <<_ACEOF
27187 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27188 _ACEOF
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27192 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27193 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27194 $as_echo_n "(cached) " >&6
27195 else
27196 gcc_cv_as_lcomm_with_alignment=no
27197 if test x$gcc_cv_as != x; then
27198 $as_echo '.lcomm bar,4,16' > conftest.s
27199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27204 test $ac_status = 0; }; }
27205 then
27206 gcc_cv_as_lcomm_with_alignment=yes
27207 else
27208 echo "configure: failed program was" >&5
27209 cat conftest.s >&5
27211 rm -f conftest.o conftest.s
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27215 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27216 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27218 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27222 if test x$with_sysroot = x && test x$host = x$target \
27223 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27224 && test "$prefix" != "NONE"; then
27226 cat >>confdefs.h <<_ACEOF
27227 #define PREFIX_INCLUDE_DIR "$prefix/include"
27228 _ACEOF
27232 # Determine the version of glibc, if any, used on the target.
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27234 $as_echo_n "checking for target glibc version... " >&6; }
27236 # Check whether --with-glibc-version was given.
27237 if test "${with_glibc_version+set}" = set; then :
27238 withval=$with_glibc_version;
27239 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27240 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27241 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27242 else
27243 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27245 else
27247 glibc_version_major=0
27248 glibc_version_minor=0
27249 if test -f $target_header_dir/features.h \
27250 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27251 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27252 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27253 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27258 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27260 cat >>confdefs.h <<_ACEOF
27261 #define TARGET_GLIBC_MAJOR $glibc_version_major
27262 _ACEOF
27265 cat >>confdefs.h <<_ACEOF
27266 #define TARGET_GLIBC_MINOR $glibc_version_minor
27267 _ACEOF
27270 # Check whether --enable-gnu-unique-object was given.
27271 if test "${enable_gnu_unique_object+set}" = set; then :
27272 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27273 yes | no) ;;
27274 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27275 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27276 esac
27277 else
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27279 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27280 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27281 $as_echo_n "(cached) " >&6
27282 else
27283 gcc_cv_as_gnu_unique_object=no
27284 if test $in_tree_gas = yes; then
27285 if test $in_tree_gas_is_elf = yes \
27286 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27287 then gcc_cv_as_gnu_unique_object=yes
27289 elif test x$gcc_cv_as != x; then
27290 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27293 (eval $ac_try) 2>&5
27294 ac_status=$?
27295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27296 test $ac_status = 0; }; }
27297 then
27298 gcc_cv_as_gnu_unique_object=yes
27299 else
27300 echo "configure: failed program was" >&5
27301 cat conftest.s >&5
27303 rm -f conftest.o conftest.s
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27307 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27308 if test $gcc_cv_as_gnu_unique_object = yes; then
27309 # We need to unquote above to to use the definition from config.gcc.
27310 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27312 if test $glibc_version_major -gt 2 \
27313 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27314 enable_gnu_unique_object=yes
27320 if test x$enable_gnu_unique_object = xyes; then
27322 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27327 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27328 if test "${gcc_cv_as_line_zero+set}" = set; then :
27329 $as_echo_n "(cached) " >&6
27330 else
27331 gcc_cv_as_line_zero=no
27332 if test $in_tree_gas = yes; then
27333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27334 then gcc_cv_as_line_zero=yes
27336 elif test "x$gcc_cv_as" != x; then
27337 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27338 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27340 (eval $ac_try) 2>&5
27341 ac_status=$?
27342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27343 test $ac_status = 0; }; } &&
27344 test "x`cat conftest.out`" = x
27345 then
27346 gcc_cv_as_line_zero=yes
27347 else
27348 echo "configure: failed program was" >&5
27349 cat conftest.s >&5
27350 echo "configure: error output was" >&5
27351 cat conftest.out >&5
27353 rm -f conftest.o conftest.s conftest.out
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27357 $as_echo "$gcc_cv_as_line_zero" >&6; }
27358 if test "x$gcc_cv_as_line_zero" = xyes; then
27360 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27365 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27366 gcc_cv_ld_eh_frame_hdr=no
27367 if test $in_tree_ld = yes ; then
27368 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 \
27369 && test $in_tree_ld_is_elf = yes; then
27370 gcc_cv_ld_eh_frame_hdr=yes
27372 elif test x$gcc_cv_ld != x; then
27373 if echo "$ld_ver" | grep GNU > /dev/null; then
27374 # Check if linker supports --eh-frame-hdr option
27375 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27376 gcc_cv_ld_eh_frame_hdr=yes
27378 else
27379 case "$target" in
27380 *-*-solaris2*)
27381 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27382 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27383 gcc_cv_ld_eh_frame_hdr=yes
27386 esac
27390 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27392 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27396 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27399 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27400 gcc_cv_ld_eh_frame_ciev3=no
27401 if test $in_tree_ld = yes ; then
27402 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 \
27403 && test $in_tree_ld_is_elf = yes; then
27404 gcc_cv_ld_eh_frame_ciev3=yes
27406 elif test x$gcc_cv_ld != x; then
27407 if echo "$ld_ver" | grep GNU > /dev/null; then
27408 gcc_cv_ld_eh_frame_ciev3=yes
27409 if test 0"$ld_date" -lt 20040513; then
27410 if test -n "$ld_date"; then
27411 # If there was date string, but was earlier than 2004-05-13, fail
27412 gcc_cv_ld_eh_frame_ciev3=no
27413 elif test "$ld_vers_major" -lt 2; then
27414 gcc_cv_ld_eh_frame_ciev3=no
27415 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27416 gcc_cv_ld_eh_frame_ciev3=no
27419 else
27420 case "$target" in
27421 *-*-solaris2*)
27422 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27423 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27424 gcc_cv_ld_eh_frame_ciev3=yes
27427 esac
27431 cat >>confdefs.h <<_ACEOF
27432 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27433 _ACEOF
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27436 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27439 $as_echo_n "checking linker position independent executable support... " >&6; }
27440 gcc_cv_ld_pie=no
27441 if test $in_tree_ld = yes ; then
27442 case "$target" in
27443 # Full PIE support on Solaris was only introduced in gld 2.26.
27444 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27445 *) gcc_gld_pie_min_version=15 ;;
27446 esac
27447 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 \
27448 && test $in_tree_ld_is_elf = yes; then
27449 gcc_cv_ld_pie=yes
27451 elif test x$gcc_cv_ld != x; then
27452 # Check if linker supports -pie option
27453 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27454 gcc_cv_ld_pie=yes
27455 case "$target" in
27456 *-*-solaris2*)
27457 if echo "$ld_ver" | grep GNU > /dev/null \
27458 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27459 gcc_cv_ld_pie=no
27462 esac
27463 else
27464 case "$target" in
27465 *-*-solaris2.1[1-9]*)
27466 # Solaris 11.x and Solaris 12 added PIE support.
27467 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27468 gcc_cv_ld_pie=yes
27471 esac
27474 if test x"$gcc_cv_ld_pie" = xyes; then
27476 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27480 $as_echo "$gcc_cv_ld_pie" >&6; }
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27483 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27484 gcc_cv_ld_pie_copyreloc=no
27485 if test $gcc_cv_ld_pie = yes ; then
27486 if test $in_tree_ld = yes ; then
27487 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
27488 gcc_cv_ld_pie_copyreloc=yes
27490 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27491 # Check if linker supports -pie option with copy reloc
27492 case "$target" in
27493 i?86-*-linux* | x86_64-*-linux*)
27494 cat > conftest1.s <<EOF
27495 .globl a_glob
27496 .data
27497 .type a_glob, @object
27498 .size a_glob, 4
27499 a_glob:
27500 .long 2
27502 cat > conftest2.s <<EOF
27503 .text
27504 .globl main
27505 .type main, @function
27506 main:
27507 movl %eax, a_glob(%rip)
27508 .size main, .-main
27509 .globl ptr
27510 .section .data.rel,"aw",@progbits
27511 .type ptr, @object
27512 ptr:
27513 .quad a_glob
27515 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27516 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27517 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27518 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27519 gcc_cv_ld_pie_copyreloc=yes
27521 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27523 esac
27527 cat >>confdefs.h <<_ACEOF
27528 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27529 _ACEOF
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27532 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27535 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27536 gcc_cv_ld_eh_gc_sections=no
27537 if test $in_tree_ld = yes ; then
27538 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 \
27539 && test $in_tree_ld_is_elf = yes; then
27540 gcc_cv_ld_eh_gc_sections=yes
27542 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27543 cat > conftest.s <<EOF
27544 .section .text
27545 .globl _start
27546 .type _start, @function
27547 _start:
27548 .long foo
27549 .size _start, .-_start
27550 .section .text.foo,"ax",@progbits
27551 .type foo, @function
27552 foo:
27553 .long 0
27554 .size foo, .-foo
27555 .section .gcc_except_table.foo,"a",@progbits
27556 .L0:
27557 .long 0
27558 .section .eh_frame,"a",@progbits
27559 .long .L0
27561 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27562 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27563 | grep "gc-sections option ignored" > /dev/null; then
27564 gcc_cv_ld_eh_gc_sections=no
27565 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27566 | grep gcc_except_table > /dev/null; then
27567 gcc_cv_ld_eh_gc_sections=yes
27568 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27569 if test x$gcc_cv_as_comdat_group != xyes; then
27570 gcc_cv_ld_eh_gc_sections=no
27571 cat > conftest.s <<EOF
27572 .section .text
27573 .globl _start
27574 .type _start, @function
27575 _start:
27576 .long foo
27577 .size _start, .-_start
27578 .section .gnu.linkonce.t.foo,"ax",@progbits
27579 .type foo, @function
27580 foo:
27581 .long 0
27582 .size foo, .-foo
27583 .section .gcc_except_table.foo,"a",@progbits
27584 .L0:
27585 .long 0
27586 .section .eh_frame,"a",@progbits
27587 .long .L0
27589 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27590 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27591 | grep "gc-sections option ignored" > /dev/null; then
27592 gcc_cv_ld_eh_gc_sections=no
27593 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27594 | grep gcc_except_table > /dev/null; then
27595 gcc_cv_ld_eh_gc_sections=yes
27601 rm -f conftest.s conftest.o conftest
27603 case "$target" in
27604 hppa*-*-linux*)
27605 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27606 gcc_cv_ld_eh_gc_sections=no
27608 esac
27609 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27611 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27615 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27618 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27619 gcc_cv_ld_eh_gc_sections_bug=no
27620 if test $in_tree_ld = yes ; then
27621 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 \
27622 && test $in_tree_ld_is_elf = yes; then
27623 gcc_cv_ld_eh_gc_sections_bug=yes
27625 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
27626 gcc_cv_ld_eh_gc_sections_bug=yes
27627 cat > conftest.s <<EOF
27628 .section .text
27629 .globl _start
27630 .type _start, @function
27631 _start:
27632 .long foo
27633 .size _start, .-_start
27634 .section .text.startup.foo,"ax",@progbits
27635 .type foo, @function
27636 foo:
27637 .long 0
27638 .size foo, .-foo
27639 .section .gcc_except_table.foo,"a",@progbits
27640 .L0:
27641 .long 0
27642 .section .eh_frame,"a",@progbits
27643 .long .L0
27645 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27646 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27647 | grep "gc-sections option ignored" > /dev/null; then
27649 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27650 | grep gcc_except_table > /dev/null; then
27651 gcc_cv_ld_eh_gc_sections_bug=no
27654 rm -f conftest.s conftest.o conftest
27656 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27658 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27662 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27665 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27666 # gold/gld support compressed debug sections since binutils 2.19/2.21
27667 if test $in_tree_ld = yes ; then
27668 gcc_cv_ld_compress_debug=0
27669 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 \
27670 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27671 gcc_cv_ld_compress_debug=2
27672 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27673 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 \
27674 && test $in_tree_ld_is_elf = yes; then
27675 gcc_cv_ld_compress_debug=1
27677 elif echo "$ld_ver" | grep GNU > /dev/null; then
27678 gcc_cv_ld_compress_debug=1
27679 if test 0"$ld_date" -lt 20050308; then
27680 if test -n "$ld_date"; then
27681 # If there was date string, but was earlier than 2005-03-08, fail
27682 gcc_cv_ld_compress_debug=0
27683 elif test "$ld_vers_major" -lt 2; then
27684 gcc_cv_ld_compress_debug=0
27685 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27686 gcc_cv_ld_compress_debug=0
27689 if test $ld_is_gold = yes; then
27690 gcc_cv_ld_compress_debug=2
27691 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27693 else
27694 case "${target}" in
27695 *-*-solaris2*)
27696 # Introduced in Solaris 11.2.
27697 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27698 gcc_cv_ld_compress_debug=3
27699 gcc_cv_ld_compress_debug_option="-z compress-sections"
27700 else
27701 gcc_cv_ld_compress_debug=0
27705 # Assume linkers other than GNU ld don't support compessed debug
27706 # sections.
27707 gcc_cv_ld_compress_debug=0
27709 esac
27712 cat >>confdefs.h <<_ACEOF
27713 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27714 _ACEOF
27717 cat >>confdefs.h <<_ACEOF
27718 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27719 _ACEOF
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27722 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27724 # --------
27725 # UNSORTED
27726 # --------
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27729 $as_echo_n "checking linker --as-needed support... " >&6; }
27730 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27731 $as_echo_n "(cached) " >&6
27732 else
27733 gcc_cv_ld_as_needed=no
27734 gcc_cv_ld_as_needed_option='--as-needed'
27735 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27736 if test $in_tree_ld = yes ; then
27737 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 \
27738 && test $in_tree_ld_is_elf = yes; then
27739 gcc_cv_ld_as_needed=yes
27741 elif test x$gcc_cv_ld != x; then
27742 # Check if linker supports --as-needed and --no-as-needed options
27743 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27744 gcc_cv_ld_as_needed=yes
27745 else
27746 case "$target" in
27747 # Solaris 2 ld always supports -z ignore/-z record.
27748 *-*-solaris2*)
27749 gcc_cv_ld_as_needed=yes
27750 gcc_cv_ld_as_needed_option="-z ignore"
27751 gcc_cv_ld_no_as_needed_option="-z record"
27753 esac
27756 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27757 # dl_iterate_phdr, i.e. since Solaris 11.
27758 case "$target" in
27759 *-*-solaris2.1[1-9]*)
27760 case "$target" in
27761 i?86-*-* | x86_64-*-*)
27762 if echo "$ld_ver" | grep GNU > /dev/null; then
27763 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27764 gcc_cv_ld_as_needed=no
27767 esac
27769 *-*-solaris2*)
27770 gcc_cv_ld_as_needed=no
27772 esac
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27776 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27777 if test x"$gcc_cv_ld_as_needed" = xyes; then
27779 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27782 cat >>confdefs.h <<_ACEOF
27783 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27784 _ACEOF
27787 cat >>confdefs.h <<_ACEOF
27788 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27789 _ACEOF
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27794 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27795 saved_LDFLAGS="$LDFLAGS"
27796 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27797 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27799 /* end confdefs.h. */
27800 int main(void) {return 0;}
27801 _ACEOF
27802 if ac_fn_cxx_try_link "$LINENO"; then :
27803 gcc_cv_ld_clearcap=yes; break
27804 else
27805 gcc_cv_ld_clearcap=no
27807 rm -f core conftest.err conftest.$ac_objext \
27808 conftest$ac_exeext conftest.$ac_ext
27809 done
27810 LDFLAGS="$saved_LDFLAGS"
27811 if test "x$gcc_cv_ld_clearcap" = xyes; then
27813 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27815 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27819 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27821 case "$target:$tm_file" in
27822 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27823 case "$target" in
27824 *le-*-linux*)
27825 emul_name="-melf64lppc"
27827 *-*-linux*)
27828 emul_name="-melf64ppc"
27830 *-*-freebsd*)
27831 emul_name="-melf64ppc_fbsd"
27833 esac
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27835 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27836 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27837 $as_echo_n "(cached) " >&6
27838 else
27839 gcc_cv_ld_no_dot_syms=no
27840 if test x"$ld_is_gold" = xyes; then
27841 gcc_cv_ld_no_dot_syms=yes
27842 elif test $in_tree_ld = yes ; then
27843 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
27844 gcc_cv_ld_no_dot_syms=yes
27846 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27847 cat > conftest1.s <<EOF
27848 .text
27849 bl .foo
27851 cat > conftest2.s <<EOF
27852 .section ".opd","aw"
27853 .align 3
27854 .globl foo
27855 .type foo,@function
27856 foo:
27857 .quad .LEfoo,.TOC.@tocbase,0
27858 .text
27859 .LEfoo:
27861 .size foo,.-.LEfoo
27863 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27864 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27865 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27866 gcc_cv_ld_no_dot_syms=yes
27868 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27873 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27874 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27876 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27881 $as_echo_n "checking linker large toc support... " >&6; }
27882 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27883 $as_echo_n "(cached) " >&6
27884 else
27885 gcc_cv_ld_large_toc=no
27886 if test x"$ld_is_gold" = xyes; then
27887 gcc_cv_ld_large_toc=yes
27888 elif test $in_tree_ld = yes ; then
27889 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
27890 gcc_cv_ld_large_toc=yes
27892 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27893 cat > conftest.s <<EOF
27894 .section ".tbss","awT",@nobits
27895 .align 3
27896 ie0: .space 8
27897 .global _start
27898 .text
27899 _start:
27900 addis 9,13,ie0@got@tprel@ha
27901 ld 9,ie0@got@tprel@l(9)
27903 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27904 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27905 gcc_cv_ld_large_toc=yes
27907 rm -f conftest conftest.o conftest.s
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27912 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27913 if test x"$gcc_cv_ld_large_toc" = xyes; then
27915 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27920 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27921 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27922 $as_echo_n "(cached) " >&6
27923 else
27924 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27925 cat > conftest.s <<EOF
27926 .global _start
27927 .text
27928 _start:
27929 addis 9,2,x@got@ha
27930 .section .data.rel.ro,"aw",@progbits
27931 .p2align 16
27932 .space 32768
27933 x: .quad .TOC.
27935 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27936 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27937 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)) }'`
27939 rm -f conftest conftest.o conftest.s
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27944 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27945 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27947 cat >>confdefs.h <<_ACEOF
27948 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27949 _ACEOF
27953 esac
27955 case "$target" in
27956 *-*-aix*)
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27958 $as_echo_n "checking linker large toc support... " >&6; }
27959 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27960 $as_echo_n "(cached) " >&6
27961 else
27962 gcc_cv_ld_large_toc=no
27963 if test x$gcc_cv_as != x ; then
27964 cat > conftest.s <<EOF
27965 .toc
27966 LC..1:
27967 .tc a[TC],a[RW]
27968 .extern a[RW]
27969 .csect .text[PR]
27970 .largetoctest:
27971 addis 9,LC..1@u(2)
27972 ld 3,LC..1@l(9)
27974 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27975 gcc_cv_ld_large_toc=yes
27977 rm -f conftest conftest.o conftest.s
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27982 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27983 if test x"$gcc_cv_ld_large_toc" = xyes; then
27985 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27989 esac
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27992 $as_echo_n "checking linker --build-id support... " >&6; }
27993 if test "${gcc_cv_ld_buildid+set}" = set; then :
27994 $as_echo_n "(cached) " >&6
27995 else
27996 gcc_cv_ld_buildid=no
27997 if test $in_tree_ld = yes ; then
27998 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27999 "$gcc_cv_gld_minor_version" -ge 18 -o \
28000 "$gcc_cv_gld_major_version" -gt 2 \
28001 && test $in_tree_ld_is_elf = yes; then
28002 gcc_cv_ld_buildid=yes
28004 elif test x$gcc_cv_ld != x; then
28005 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28006 gcc_cv_ld_buildid=yes
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28011 $as_echo "$gcc_cv_ld_buildid" >&6; }
28012 if test x"$gcc_cv_ld_buildid" = xyes; then
28014 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28018 # Check whether --enable-linker-build-id was given.
28019 if test "${enable_linker_build_id+set}" = set; then :
28020 enableval=$enable_linker_build_id;
28021 else
28022 enable_linker_build_id=no
28026 if test x"$enable_linker_build_id" = xyes; then
28027 if test x"$gcc_cv_ld_buildid" = xyes; then
28029 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28031 else
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28033 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28037 # In binutils 2.21, GNU ld gained support for new emulations fully
28038 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28040 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28041 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28042 $as_echo_n "(cached) " >&6
28043 else
28044 gcc_cv_ld_sol2_emulation=no
28045 if test $in_tree_ld = yes ; then
28046 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28047 "$gcc_cv_gld_minor_version" -ge 21 -o \
28048 "$gcc_cv_gld_major_version" -gt 2 \
28049 && test $in_tree_ld_is_elf = yes; then
28050 gcc_cv_ld_sol2_emulation=yes
28052 elif test x$gcc_cv_ld != x; then
28053 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28054 grep _sol2 > /dev/null; then
28055 gcc_cv_ld_sol2_emulation=yes
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28060 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28061 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28063 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28068 $as_echo_n "checking linker --sysroot support... " >&6; }
28069 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28070 $as_echo_n "(cached) " >&6
28071 else
28072 gcc_cv_ld_sysroot=no
28073 if test $in_tree_ld = yes ; then
28074 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
28075 gcc_cv_ld_sysroot=yes
28077 elif test x$gcc_cv_ld != x; then
28078 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28079 gcc_cv_ld_sysroot=yes
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28084 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28085 if test x"$gcc_cv_ld_sysroot" = xyes; then
28087 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28091 case $target in
28092 *-*-solaris2*)
28093 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28095 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28096 if test "${gcc_cv_solaris_crts+set}" = set; then :
28097 $as_echo_n "(cached) " >&6
28098 else
28099 gcc_cv_solaris_crts=no
28100 if test x$host != x$target; then
28101 if test "x$with_sysroot" = xyes; then
28102 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28103 else
28104 target_sysroot="${with_sysroot}"
28107 target_libdir="$target_sysroot/usr/lib"
28108 # At the time they were added, gcrt1.o became a symlink for backwards
28109 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28110 case $target in
28111 i?86-*-solaris2* | x86_64-*-solaris2*)
28112 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28114 sparc*-*-solaris2*)
28115 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28117 esac
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28120 $as_echo "$gcc_cv_solaris_crts" >&6; }
28122 esac
28123 if test x$gcc_cv_solaris_crts = xyes; then
28125 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28129 # Test for stack protector support in target C library.
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28131 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28132 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28133 $as_echo_n "(cached) " >&6
28134 else
28135 gcc_cv_libc_provides_ssp=no
28136 case "$target" in
28137 *-*-musl*)
28138 # All versions of musl provide stack protector
28139 gcc_cv_libc_provides_ssp=yes;;
28140 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28141 # glibc 2.4 and later provides __stack_chk_fail and
28142 # either __stack_chk_guard, or TLS access to stack guard canary.
28144 if test $glibc_version_major -gt 2 \
28145 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28146 gcc_cv_libc_provides_ssp=yes
28147 else
28149 if test -f $target_header_dir/features.h \
28150 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28151 $target_header_dir/features.h > /dev/null; then
28152 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28153 $target_header_dir/features.h > /dev/null && \
28154 test -f $target_header_dir/bits/uClibc_config.h && \
28155 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28156 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28157 gcc_cv_libc_provides_ssp=yes
28159 # all versions of Bionic support stack protector
28160 elif test -f $target_header_dir/sys/cdefs.h \
28161 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28162 $target_header_dir/sys/cdefs.h > /dev/null; then
28163 gcc_cv_libc_provides_ssp=yes
28167 *-*-gnu*)
28168 # Avoid complicated tests (see
28169 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28170 # simply assert that glibc does provide this, which is true for all
28171 # realistically usable GNU/Hurd configurations.
28172 # All supported versions of musl provide it as well
28173 gcc_cv_libc_provides_ssp=yes;;
28174 *-*-darwin* | *-*-freebsd*)
28175 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28176 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28177 gcc_cv_libc_provides_ssp=yes
28178 else
28179 echo "no __stack_chk_fail on this target"
28183 *) gcc_cv_libc_provides_ssp=no ;;
28184 esac
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28187 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28189 if test x$gcc_cv_libc_provides_ssp = xyes; then
28191 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28195 # Check whether --enable-default-ssp was given.
28196 # Check whether --enable-default-ssp was given.
28197 if test "${enable_default_ssp+set}" = set; then :
28198 enableval=$enable_default_ssp;
28199 if test x$gcc_cv_libc_provides_ssp = xyes; then
28200 case "$target" in
28201 ia64*-*-*) enable_default_ssp=no ;;
28202 *) enable_default_ssp=$enableval ;;
28203 esac
28204 else
28205 enable_default_ssp=no
28207 else
28208 enable_default_ssp=no
28211 if test x$enable_default_ssp == xyes ; then
28213 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28218 # Test for <sys/sdt.h> on the target.
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28221 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28222 have_sys_sdt_h=no
28223 if test -f $target_header_dir/sys/sdt.h; then
28224 have_sys_sdt_h=yes
28226 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28230 $as_echo "$have_sys_sdt_h" >&6; }
28232 # Check if TFmode long double should be used by default or not.
28233 # Some glibc targets used DFmode long double, but with glibc 2.4
28234 # and later they can use TFmode.
28235 case "$target" in
28236 powerpc*-*-linux* | \
28237 sparc*-*-linux* | \
28238 s390*-*-linux* | \
28239 alpha*-*-linux*)
28241 # Check whether --with-long-double-128 was given.
28242 if test "${with_long_double_128+set}" = set; then :
28243 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28244 else
28246 if test $glibc_version_major -gt 2 \
28247 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28248 gcc_cv_target_ldbl128=yes
28249 else
28251 gcc_cv_target_ldbl128=no
28252 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28253 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28254 && gcc_cv_target_ldbl128=yes
28260 esac
28261 if test x$gcc_cv_target_ldbl128 = xyes; then
28263 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28268 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28269 gcc_cv_target_dl_iterate_phdr=unknown
28270 case "$target" in
28271 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28272 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28273 # libdl there, both complicating its use and breaking compatibility
28274 # between Solaris 10 updates.
28275 *-*-solaris2.1[1-9]*)
28276 # <link.h> needs both a dl_iterate_phdr declaration and support for
28277 # compilation with largefile support.
28278 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28279 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28280 gcc_cv_target_dl_iterate_phdr=yes
28281 else
28282 gcc_cv_target_dl_iterate_phdr=no
28285 *-*-dragonfly* | *-*-freebsd*)
28286 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28287 gcc_cv_target_dl_iterate_phdr=yes
28288 else
28289 gcc_cv_target_dl_iterate_phdr=no
28292 *-linux-musl*)
28293 gcc_cv_target_dl_iterate_phdr=yes
28295 esac
28297 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28299 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28303 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28305 # We no longer support different GC mechanisms. Emit an error if
28306 # the user configures with --with-gc.
28308 # Check whether --with-gc was given.
28309 if test "${with_gc+set}" = set; then :
28310 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28314 # Libraries to use on the host. This will normally be set by the top
28315 # level Makefile. Here we simply capture the value for our Makefile.
28316 if test -z "${HOST_LIBS+set}"; then
28317 HOST_LIBS=
28321 # Use the system's zlib library.
28323 # Use the system's zlib library.
28324 zlibdir="-L\$(top_builddir)/../zlib"
28325 zlibinc="-I\$(top_srcdir)/../zlib"
28327 # Check whether --with-system-zlib was given.
28328 if test "${with_system_zlib+set}" = set; then :
28329 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28330 zlibdir=
28331 zlibinc=
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28342 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28343 # Check whether --enable-maintainer-mode was given.
28344 if test "${enable_maintainer_mode+set}" = set; then :
28345 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28346 else
28347 maintainer_mode=no
28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28352 $as_echo "$maintainer_mode" >&6; }
28354 if test "$maintainer_mode" = "yes"; then
28355 MAINT=''
28356 else
28357 MAINT='#'
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28362 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28363 # Check whether --enable-link-mutex was given.
28364 if test "${enable_link_mutex+set}" = set; then :
28365 enableval=$enable_link_mutex; do_link_mutex=$enableval
28366 else
28367 do_link_mutex=no
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28371 $as_echo "$do_link_mutex" >&6; }
28373 if test "$do_link_mutex" = "yes"; then
28374 DO_LINK_MUTEX=true
28375 else
28376 DO_LINK_MUTEX=false
28380 # --------------
28381 # Language hooks
28382 # --------------
28384 # Make empty files to contain the specs and options for each language.
28385 # Then add #include lines to for a compiler that has specs and/or options.
28387 subdirs=
28388 lang_opt_files=
28389 lang_specs_files=
28390 lang_tree_files=
28391 # These (without "all_") are set in each config-lang.in.
28392 # `language' must be a single word so is spelled singularly.
28393 all_languages=
28394 all_compilers=
28395 all_outputs='Makefile'
28396 # List of language makefile fragments.
28397 all_lang_makefrags=
28398 # Additional files for gengtype
28399 all_gtfiles="$target_gtfiles"
28401 # These are the languages that are set in --enable-languages,
28402 # and are available in the GCC tree.
28403 all_selected_languages=
28405 # Add the language fragments.
28406 # Languages are added via two mechanisms. Some information must be
28407 # recorded in makefile variables, these are defined in config-lang.in.
28408 # We accumulate them and plug them into the main Makefile.
28409 # The other mechanism is a set of hooks for each of the main targets
28410 # like `clean', `install', etc.
28412 language_hooks="Make-hooks"
28414 for lang in ${srcdir}/*/config-lang.in
28416 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28418 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28419 if test "x$lang_alias" = x
28420 then
28421 echo "$lang doesn't set \$language." 1>&2
28422 exit 1
28424 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28425 subdirs="$subdirs $subdir"
28427 # $gcc_subdir is where the gcc integration files are to be found
28428 # for a language, both for internal compiler purposes (compiler
28429 # sources implementing front-end to GCC tree converters), and for
28430 # build infrastructure purposes (Make-lang.in, etc.)
28432 # This will be <subdir> (relative to $srcdir) if a line like
28433 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28434 # is found in <langdir>/config-lang.in, and will remain <langdir>
28435 # otherwise.
28437 # Except for the language alias (fetched above), the regular
28438 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28439 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28440 # only this and the language alias.
28442 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28443 if [ "$gcc_subdir" = "" ]; then
28444 gcc_subdir="$subdir"
28447 case ",$enable_languages," in
28448 *,$lang_alias,*)
28449 all_selected_languages="$all_selected_languages $lang_alias"
28450 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28451 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28454 esac
28456 language=
28457 boot_language=
28458 compilers=
28459 outputs=
28460 gtfiles=
28461 subdir_requires=
28462 . ${srcdir}/$gcc_subdir/config-lang.in
28463 if test "x$language" = x
28464 then
28465 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28466 exit 1
28469 ok=:
28470 case ",$enable_languages," in
28471 *,$lang_alias,*) ;;
28473 for i in $subdir_requires; do
28474 test -f "${srcdir}/$i/config-lang.in" && continue
28475 ok=false
28476 break
28477 done
28479 esac
28480 $ok || continue
28482 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28483 if test -f $srcdir/$gcc_subdir/lang.opt; then
28484 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28485 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28487 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28488 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28490 all_languages="$all_languages $language"
28491 all_compilers="$all_compilers $compilers"
28492 all_outputs="$all_outputs $outputs"
28493 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28494 case ",$enable_languages," in
28495 *,lto,*)
28497 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28499 enable_lto=yes
28502 *) ;;
28503 esac
28504 done
28506 check_languages=
28507 for language in $all_selected_languages
28509 check_languages="$check_languages check-$language"
28510 done
28512 # We link each language in with a set of hooks, reached indirectly via
28513 # lang.${target}. Only do so for selected languages.
28515 rm -f Make-hooks
28516 touch Make-hooks
28517 target_list="all.cross start.encap rest.encap tags \
28518 install-common install-man install-info install-pdf install-html dvi \
28519 pdf html uninstall info man srcextra srcman srcinfo \
28520 mostlyclean clean distclean maintainer-clean install-plugin"
28522 for t in $target_list
28525 for lang in $all_selected_languages
28527 x="$x $lang.$t"
28528 done
28529 echo "lang.$t: $x" >> Make-hooks
28530 done
28532 # --------
28533 # Option include files
28534 # --------
28536 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28537 option_includes="option-includes.mk"
28540 # --------
28541 # UNSORTED
28542 # --------
28544 # Create .gdbinit.
28546 echo "dir ." > .gdbinit
28547 echo "dir ${srcdir}" >> .gdbinit
28548 if test x$gdb_needs_out_file_path = xyes
28549 then
28550 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28552 if test "x$subdirs" != x; then
28553 for s in $subdirs
28555 echo "dir ${srcdir}/$s" >> .gdbinit
28556 done
28558 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28559 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28561 # Put a breakpoint on __asan_report_error to help with debugging buffer
28562 # overflow.
28563 case "$CFLAGS" in
28564 *-fsanitize=address*)
28565 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28567 esac
28569 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28573 # Find a directory in which to install a shared libgcc.
28575 # Check whether --enable-version-specific-runtime-libs was given.
28576 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28577 enableval=$enable_version_specific_runtime_libs;
28581 # Substitute configuration variables
28644 # Echo link setup.
28645 if test x${build} = x${host} ; then
28646 if test x${host} = x${target} ; then
28647 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28648 else
28649 echo "Links are now set up to build a cross-compiler" 1>&2
28650 echo " from ${host} to ${target}." 1>&2
28652 else
28653 if test x${host} = x${target} ; then
28654 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28655 echo " for ${target}." 1>&2
28656 else
28657 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28658 echo " from ${host} to ${target}." 1>&2
28667 if test "x${ISLLIBS}" != "x" ; then
28669 $as_echo "#define HAVE_isl 1" >>confdefs.h
28673 # Check whether isl_schedule_constraints_compute_schedule is available;
28674 # it's new in ISL-0.13.
28675 # Check whether isl_options_set_schedule_serialize_sccs is available;
28676 # it's new in ISL-0.15.
28677 if test "x${ISLLIBS}" != "x" ; then
28678 saved_CXXFLAGS="$CXXFLAGS"
28679 CXXFLAGS="$CXXFLAGS $ISLINC"
28680 saved_LIBS="$LIBS"
28681 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28684 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28686 /* end confdefs.h. */
28687 #include <isl/schedule.h>
28689 main ()
28691 isl_schedule_constraints_compute_schedule (NULL);
28693 return 0;
28695 _ACEOF
28696 if ac_fn_cxx_try_link "$LINENO"; then :
28697 ac_has_isl_schedule_constraints_compute_schedule=yes
28698 else
28699 ac_has_isl_schedule_constraints_compute_schedule=no
28701 rm -f core conftest.err conftest.$ac_objext \
28702 conftest$ac_exeext conftest.$ac_ext
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28704 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28707 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28709 /* end confdefs.h. */
28710 #include <isl/schedule.h>
28712 main ()
28714 isl_options_set_schedule_serialize_sccs (NULL, 0);
28716 return 0;
28718 _ACEOF
28719 if ac_fn_cxx_try_link "$LINENO"; then :
28720 ac_has_isl_options_set_schedule_serialize_sccs=yes
28721 else
28722 ac_has_isl_options_set_schedule_serialize_sccs=no
28724 rm -f core conftest.err conftest.$ac_objext \
28725 conftest$ac_exeext conftest.$ac_ext
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28727 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_ctx_get_max_operations" >&5
28730 $as_echo_n "checking Checking for isl_ctx_get_max_operations... " >&6; }
28731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28732 /* end confdefs.h. */
28733 #include <isl/ctx.h>
28735 main ()
28737 isl_ctx_get_max_operations (isl_ctx_alloc ());
28739 return 0;
28741 _ACEOF
28742 if ac_fn_cxx_try_link "$LINENO"; then :
28743 ac_has_isl_ctx_get_max_operations=yes
28744 else
28745 ac_has_isl_ctx_get_max_operations=no
28747 rm -f core conftest.err conftest.$ac_objext \
28748 conftest$ac_exeext conftest.$ac_ext
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_ctx_get_max_operations" >&5
28750 $as_echo "$ac_has_isl_ctx_get_max_operations" >&6; }
28752 LIBS="$saved_LIBS"
28753 CXXFLAGS="$saved_CXXFLAGS"
28755 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28757 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28761 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28763 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28766 if test x"$ac_has_isl_ctx_get_max_operations" = x"yes"; then
28768 $as_echo "#define HAVE_ISL_CTX_MAX_OPERATIONS 1" >>confdefs.h
28773 # Check for plugin support
28774 # Check whether --enable-plugin was given.
28775 if test "${enable_plugin+set}" = set; then :
28776 enableval=$enable_plugin; enable_plugin=$enableval
28777 else
28778 enable_plugin=yes; default_plugin=yes
28782 pluginlibs=
28784 case "${host}" in
28785 *-*-darwin*)
28786 if test x$build = x$host; then
28787 export_sym_check="nm${exeext} -g"
28788 elif test x$host = x$target; then
28789 export_sym_check="$gcc_cv_nm -g"
28790 else
28791 export_sym_check=
28795 if test x$build = x$host; then
28796 export_sym_check="objdump${exeext} -T"
28797 elif test x$host = x$target; then
28798 export_sym_check="$gcc_cv_objdump -T"
28799 else
28800 export_sym_check=
28803 esac
28805 if test x"$enable_plugin" = x"yes"; then
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28808 $as_echo_n "checking for exported symbols... " >&6; }
28809 if test "x$export_sym_check" != x; then
28810 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28811 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28812 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28813 : # No need to use a flag
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28815 $as_echo "yes" >&6; }
28816 else
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28818 $as_echo "yes" >&6; }
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28820 $as_echo_n "checking for -rdynamic... " >&6; }
28821 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28822 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28823 plugin_rdynamic=yes
28824 pluginlibs="-rdynamic"
28825 else
28826 plugin_rdynamic=no
28827 enable_plugin=no
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28830 $as_echo "$plugin_rdynamic" >&6; }
28832 else
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28834 $as_echo "unable to check" >&6; }
28837 # Check -ldl
28838 saved_LIBS="$LIBS"
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28840 $as_echo_n "checking for library containing dlopen... " >&6; }
28841 if test "${ac_cv_search_dlopen+set}" = set; then :
28842 $as_echo_n "(cached) " >&6
28843 else
28844 ac_func_search_save_LIBS=$LIBS
28845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846 /* end confdefs.h. */
28848 /* Override any GCC internal prototype to avoid an error.
28849 Use char because int might match the return type of a GCC
28850 builtin and then its argument prototype would still apply. */
28851 #ifdef __cplusplus
28852 extern "C"
28853 #endif
28854 char dlopen ();
28856 main ()
28858 return dlopen ();
28860 return 0;
28862 _ACEOF
28863 for ac_lib in '' dl; do
28864 if test -z "$ac_lib"; then
28865 ac_res="none required"
28866 else
28867 ac_res=-l$ac_lib
28868 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28870 if ac_fn_cxx_try_link "$LINENO"; then :
28871 ac_cv_search_dlopen=$ac_res
28873 rm -f core conftest.err conftest.$ac_objext \
28874 conftest$ac_exeext
28875 if test "${ac_cv_search_dlopen+set}" = set; then :
28876 break
28878 done
28879 if test "${ac_cv_search_dlopen+set}" = set; then :
28881 else
28882 ac_cv_search_dlopen=no
28884 rm conftest.$ac_ext
28885 LIBS=$ac_func_search_save_LIBS
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28888 $as_echo "$ac_cv_search_dlopen" >&6; }
28889 ac_res=$ac_cv_search_dlopen
28890 if test "$ac_res" != no; then :
28891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28895 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28896 pluginlibs="$pluginlibs -ldl"
28898 LIBS="$saved_LIBS"
28900 # Check that we can build shared objects with -fPIC -shared
28901 saved_LDFLAGS="$LDFLAGS"
28902 saved_CFLAGS="$CFLAGS"
28903 case "${host}" in
28904 *-*-darwin*)
28905 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28906 CFLAGS="$CFLAGS -fPIC"
28907 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28910 CFLAGS="$CFLAGS -fPIC"
28911 LDFLAGS="$LDFLAGS -fPIC -shared"
28913 esac
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28915 $as_echo_n "checking for -fPIC -shared... " >&6; }
28916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28917 /* end confdefs.h. */
28918 extern int X;
28920 main ()
28922 return X == 0;
28924 return 0;
28926 _ACEOF
28927 if ac_fn_cxx_try_link "$LINENO"; then :
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28929 $as_echo "yes" >&6; }; have_pic_shared=yes
28930 else
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28932 $as_echo "no" >&6; }; have_pic_shared=no
28934 rm -f core conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
28936 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28937 pluginlibs=
28938 enable_plugin=no
28940 LDFLAGS="$saved_LDFLAGS"
28941 CFLAGS="$saved_CFLAGS"
28943 # If plugin support had been requested but not available, fail.
28944 if test x"$enable_plugin" = x"no" ; then
28945 if test x"$default_plugin" != x"yes"; then
28946 as_fn_error "
28947 Building GCC with plugin support requires a host that supports
28948 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28955 if test x"$enable_plugin" = x"yes"; then
28957 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28962 # Enable --enable-host-shared
28963 # Check whether --enable-host-shared was given.
28964 if test "${enable_host_shared+set}" = set; then :
28965 enableval=$enable_host_shared; PICFLAG=-fPIC
28966 else
28967 PICFLAG=
28974 # Check whether --enable-libquadmath-support was given.
28975 if test "${enable_libquadmath_support+set}" = set; then :
28976 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28977 else
28978 ENABLE_LIBQUADMATH_SUPPORT=yes
28981 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28983 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28988 # Specify what hash style to use by default.
28990 # Check whether --with-linker-hash-style was given.
28991 if test "${with_linker_hash_style+set}" = set; then :
28992 withval=$with_linker_hash_style; case x"$withval" in
28993 xsysv)
28994 LINKER_HASH_STYLE=sysv
28996 xgnu)
28997 LINKER_HASH_STYLE=gnu
28999 xboth)
29000 LINKER_HASH_STYLE=both
29003 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29005 esac
29006 else
29007 LINKER_HASH_STYLE=''
29010 if test x"${LINKER_HASH_STYLE}" != x; then
29012 cat >>confdefs.h <<_ACEOF
29013 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29014 _ACEOF
29018 # Specify what should be the default of -fdiagnostics-color option.
29020 # Check whether --with-diagnostics-color was given.
29021 if test "${with_diagnostics_color+set}" = set; then :
29022 withval=$with_diagnostics_color; case x"$withval" in
29023 xnever)
29024 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29026 xauto)
29027 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29029 xauto-if-env)
29030 DIAGNOSTICS_COLOR_DEFAULT=-1
29032 xalways)
29033 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29036 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29038 esac
29039 else
29040 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29044 cat >>confdefs.h <<_ACEOF
29045 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29046 _ACEOF
29049 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29050 # of jit/jit-playback.c.
29051 cat > gcc-driver-name.h <<EOF
29052 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29055 # Check whether --enable-default-pie was given.
29056 # Check whether --enable-default-pie was given.
29057 if test "${enable_default_pie+set}" = set; then :
29058 enableval=$enable_default_pie; enable_default_pie=$enableval
29059 else
29060 enable_default_pie=no
29063 if test x$enable_default_pie == xyes ; then
29065 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29070 # Check if -fno-PIE works.
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29072 $as_echo_n "checking for -fno-PIE option... " >&6; }
29073 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29074 $as_echo_n "(cached) " >&6
29075 else
29076 saved_CXXFLAGS="$CXXFLAGS"
29077 CXXFLAGS="$CXXFLAGS -fno-PIE"
29078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29079 /* end confdefs.h. */
29080 int main(void) {return 0;}
29081 _ACEOF
29082 if ac_fn_cxx_try_compile "$LINENO"; then :
29083 gcc_cv_c_no_fpie=yes
29084 else
29085 gcc_cv_c_no_fpie=no
29087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088 CXXFLAGS="$saved_CXXFLAGS"
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29091 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29092 if test "$gcc_cv_c_no_fpie" = "yes"; then
29093 NO_PIE_CFLAGS="-fno-PIE"
29097 # Check if -no-pie works.
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29099 $as_echo_n "checking for -no-pie option... " >&6; }
29100 if test "${gcc_cv_no_pie+set}" = set; then :
29101 $as_echo_n "(cached) " >&6
29102 else
29103 saved_LDFLAGS="$LDFLAGS"
29104 LDFLAGS="$LDFLAGS -no-pie"
29105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29106 /* end confdefs.h. */
29107 int main(void) {return 0;}
29108 _ACEOF
29109 if ac_fn_cxx_try_link "$LINENO"; then :
29110 gcc_cv_no_pie=yes
29111 else
29112 gcc_cv_no_pie=no
29114 rm -f core conftest.err conftest.$ac_objext \
29115 conftest$ac_exeext conftest.$ac_ext
29116 LDFLAGS="$saved_LDFLAGS"
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29119 $as_echo "$gcc_cv_no_pie" >&6; }
29120 if test "$gcc_cv_no_pie" = "yes"; then
29121 NO_PIE_FLAG="-no-pie"
29125 # Check linker supports '-z bndplt'
29126 ld_bndplt_support=no
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29128 $as_echo_n "checking linker -z bndplt option... " >&6; }
29129 if test x"$ld_is_gold" = xno; then
29130 if test $in_tree_ld = yes ; then
29131 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
29132 ld_bndplt_support=yes
29134 elif test x$gcc_cv_ld != x; then
29135 # Check if linker supports -a bndplt option
29136 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29137 ld_bndplt_support=yes
29141 if test x"$ld_bndplt_support" = xyes; then
29143 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29147 $as_echo "$ld_bndplt_support" >&6; }
29149 # Configure the subdirectories
29150 # AC_CONFIG_SUBDIRS($subdirs)
29152 # Create the Makefile
29153 # and configure language subdirectories
29154 ac_config_files="$ac_config_files $all_outputs"
29157 ac_config_commands="$ac_config_commands default"
29159 cat >confcache <<\_ACEOF
29160 # This file is a shell script that caches the results of configure
29161 # tests run on this system so they can be shared between configure
29162 # scripts and configure runs, see configure's option --config-cache.
29163 # It is not useful on other systems. If it contains results you don't
29164 # want to keep, you may remove or edit it.
29166 # config.status only pays attention to the cache file if you give it
29167 # the --recheck option to rerun configure.
29169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29171 # following values.
29173 _ACEOF
29175 # The following way of writing the cache mishandles newlines in values,
29176 # but we know of no workaround that is simple, portable, and efficient.
29177 # So, we kill variables containing newlines.
29178 # Ultrix sh set writes to stderr and can't be redirected directly,
29179 # and sets the high bit in the cache file unless we assign to the vars.
29181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29182 eval ac_val=\$$ac_var
29183 case $ac_val in #(
29184 *${as_nl}*)
29185 case $ac_var in #(
29186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29188 esac
29189 case $ac_var in #(
29190 _ | IFS | as_nl) ;; #(
29191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29192 *) { eval $ac_var=; unset $ac_var;} ;;
29193 esac ;;
29194 esac
29195 done
29197 (set) 2>&1 |
29198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29199 *${as_nl}ac_space=\ *)
29200 # `set' does not quote correctly, so add quotes: double-quote
29201 # substitution turns \\\\ into \\, and sed turns \\ into \.
29202 sed -n \
29203 "s/'/'\\\\''/g;
29204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29205 ;; #(
29207 # `set' quotes correctly as required by POSIX, so do not add quotes.
29208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29210 esac |
29211 sort
29213 sed '
29214 /^ac_cv_env_/b end
29215 t clear
29216 :clear
29217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29218 t end
29219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29220 :end' >>confcache
29221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29222 if test -w "$cache_file"; then
29223 test "x$cache_file" != "x/dev/null" &&
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29225 $as_echo "$as_me: updating cache $cache_file" >&6;}
29226 cat confcache >$cache_file
29227 else
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29232 rm -f confcache
29234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29235 # Let make expand exec_prefix.
29236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29238 DEFS=-DHAVE_CONFIG_H
29240 ac_libobjs=
29241 ac_ltlibobjs=
29242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29243 # 1. Remove the extension, and $U if already installed.
29244 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29245 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29246 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29247 # will be set to the directory where LIBOBJS objects are built.
29248 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29249 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29250 done
29251 LIBOBJS=$ac_libobjs
29253 LTLIBOBJS=$ac_ltlibobjs
29258 : ${CONFIG_STATUS=./config.status}
29259 ac_write_fail=0
29260 ac_clean_files_save=$ac_clean_files
29261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29264 as_write_fail=0
29265 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29266 #! $SHELL
29267 # Generated by $as_me.
29268 # Run this file to recreate the current configuration.
29269 # Compiler output produced by configure, useful for debugging
29270 # configure, is in config.log if it exists.
29272 debug=false
29273 ac_cs_recheck=false
29274 ac_cs_silent=false
29276 SHELL=\${CONFIG_SHELL-$SHELL}
29277 export SHELL
29278 _ASEOF
29279 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29280 ## -------------------- ##
29281 ## M4sh Initialization. ##
29282 ## -------------------- ##
29284 # Be more Bourne compatible
29285 DUALCASE=1; export DUALCASE # for MKS sh
29286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29287 emulate sh
29288 NULLCMD=:
29289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29290 # is contrary to our usage. Disable this feature.
29291 alias -g '${1+"$@"}'='"$@"'
29292 setopt NO_GLOB_SUBST
29293 else
29294 case `(set -o) 2>/dev/null` in #(
29295 *posix*) :
29296 set -o posix ;; #(
29297 *) :
29299 esac
29303 as_nl='
29305 export as_nl
29306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29307 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29310 # Prefer a ksh shell builtin over an external printf program on Solaris,
29311 # but without wasting forks for bash or zsh.
29312 if test -z "$BASH_VERSION$ZSH_VERSION" \
29313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29314 as_echo='print -r --'
29315 as_echo_n='print -rn --'
29316 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29317 as_echo='printf %s\n'
29318 as_echo_n='printf %s'
29319 else
29320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29322 as_echo_n='/usr/ucb/echo -n'
29323 else
29324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29325 as_echo_n_body='eval
29326 arg=$1;
29327 case $arg in #(
29328 *"$as_nl"*)
29329 expr "X$arg" : "X\\(.*\\)$as_nl";
29330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29331 esac;
29332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29334 export as_echo_n_body
29335 as_echo_n='sh -c $as_echo_n_body as_echo'
29337 export as_echo_body
29338 as_echo='sh -c $as_echo_body as_echo'
29341 # The user is always right.
29342 if test "${PATH_SEPARATOR+set}" != set; then
29343 PATH_SEPARATOR=:
29344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29346 PATH_SEPARATOR=';'
29351 # IFS
29352 # We need space, tab and new line, in precisely that order. Quoting is
29353 # there to prevent editors from complaining about space-tab.
29354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29355 # splitting by setting IFS to empty value.)
29356 IFS=" "" $as_nl"
29358 # Find who we are. Look in the path if we contain no directory separator.
29359 case $0 in #((
29360 *[\\/]* ) as_myself=$0 ;;
29361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29362 for as_dir in $PATH
29364 IFS=$as_save_IFS
29365 test -z "$as_dir" && as_dir=.
29366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29367 done
29368 IFS=$as_save_IFS
29371 esac
29372 # We did not find ourselves, most probably we were run as `sh COMMAND'
29373 # in which case we are not to be found in the path.
29374 if test "x$as_myself" = x; then
29375 as_myself=$0
29377 if test ! -f "$as_myself"; then
29378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29379 exit 1
29382 # Unset variables that we do not need and which cause bugs (e.g. in
29383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29384 # suppresses any "Segmentation fault" message there. '((' could
29385 # trigger a bug in pdksh 5.2.14.
29386 for as_var in BASH_ENV ENV MAIL MAILPATH
29387 do eval test x\${$as_var+set} = xset \
29388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29389 done
29390 PS1='$ '
29391 PS2='> '
29392 PS4='+ '
29394 # NLS nuisances.
29395 LC_ALL=C
29396 export LC_ALL
29397 LANGUAGE=C
29398 export LANGUAGE
29400 # CDPATH.
29401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29404 # as_fn_error ERROR [LINENO LOG_FD]
29405 # ---------------------------------
29406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29408 # script with status $?, using 1 if that was 0.
29409 as_fn_error ()
29411 as_status=$?; test $as_status -eq 0 && as_status=1
29412 if test "$3"; then
29413 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29416 $as_echo "$as_me: error: $1" >&2
29417 as_fn_exit $as_status
29418 } # as_fn_error
29421 # as_fn_set_status STATUS
29422 # -----------------------
29423 # Set $? to STATUS, without forking.
29424 as_fn_set_status ()
29426 return $1
29427 } # as_fn_set_status
29429 # as_fn_exit STATUS
29430 # -----------------
29431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29432 as_fn_exit ()
29434 set +e
29435 as_fn_set_status $1
29436 exit $1
29437 } # as_fn_exit
29439 # as_fn_unset VAR
29440 # ---------------
29441 # Portably unset VAR.
29442 as_fn_unset ()
29444 { eval $1=; unset $1;}
29446 as_unset=as_fn_unset
29447 # as_fn_append VAR VALUE
29448 # ----------------------
29449 # Append the text in VALUE to the end of the definition contained in VAR. Take
29450 # advantage of any shell optimizations that allow amortized linear growth over
29451 # repeated appends, instead of the typical quadratic growth present in naive
29452 # implementations.
29453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29454 eval 'as_fn_append ()
29456 eval $1+=\$2
29458 else
29459 as_fn_append ()
29461 eval $1=\$$1\$2
29463 fi # as_fn_append
29465 # as_fn_arith ARG...
29466 # ------------------
29467 # Perform arithmetic evaluation on the ARGs, and store the result in the
29468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29469 # must be portable across $(()) and expr.
29470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29471 eval 'as_fn_arith ()
29473 as_val=$(( $* ))
29475 else
29476 as_fn_arith ()
29478 as_val=`expr "$@" || test $? -eq 1`
29480 fi # as_fn_arith
29483 if expr a : '\(a\)' >/dev/null 2>&1 &&
29484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29485 as_expr=expr
29486 else
29487 as_expr=false
29490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29491 as_basename=basename
29492 else
29493 as_basename=false
29496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29497 as_dirname=dirname
29498 else
29499 as_dirname=false
29502 as_me=`$as_basename -- "$0" ||
29503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29504 X"$0" : 'X\(//\)$' \| \
29505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29506 $as_echo X/"$0" |
29507 sed '/^.*\/\([^/][^/]*\)\/*$/{
29508 s//\1/
29511 /^X\/\(\/\/\)$/{
29512 s//\1/
29515 /^X\/\(\/\).*/{
29516 s//\1/
29519 s/.*/./; q'`
29521 # Avoid depending upon Character Ranges.
29522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29525 as_cr_digits='0123456789'
29526 as_cr_alnum=$as_cr_Letters$as_cr_digits
29528 ECHO_C= ECHO_N= ECHO_T=
29529 case `echo -n x` in #(((((
29530 -n*)
29531 case `echo 'xy\c'` in
29532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29533 xy) ECHO_C='\c';;
29534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29535 ECHO_T=' ';;
29536 esac;;
29538 ECHO_N='-n';;
29539 esac
29541 rm -f conf$$ conf$$.exe conf$$.file
29542 if test -d conf$$.dir; then
29543 rm -f conf$$.dir/conf$$.file
29544 else
29545 rm -f conf$$.dir
29546 mkdir conf$$.dir 2>/dev/null
29548 if (echo >conf$$.file) 2>/dev/null; then
29549 if ln -s conf$$.file conf$$ 2>/dev/null; then
29550 as_ln_s='ln -s'
29551 # ... but there are two gotchas:
29552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29554 # In both cases, we have to default to `cp -p'.
29555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29556 as_ln_s='cp -p'
29557 elif ln conf$$.file conf$$ 2>/dev/null; then
29558 as_ln_s=ln
29559 else
29560 as_ln_s='cp -p'
29562 else
29563 as_ln_s='cp -p'
29565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29566 rmdir conf$$.dir 2>/dev/null
29569 # as_fn_mkdir_p
29570 # -------------
29571 # Create "$as_dir" as a directory, including parents if necessary.
29572 as_fn_mkdir_p ()
29575 case $as_dir in #(
29576 -*) as_dir=./$as_dir;;
29577 esac
29578 test -d "$as_dir" || eval $as_mkdir_p || {
29579 as_dirs=
29580 while :; do
29581 case $as_dir in #(
29582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29583 *) as_qdir=$as_dir;;
29584 esac
29585 as_dirs="'$as_qdir' $as_dirs"
29586 as_dir=`$as_dirname -- "$as_dir" ||
29587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29588 X"$as_dir" : 'X\(//\)[^/]' \| \
29589 X"$as_dir" : 'X\(//\)$' \| \
29590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29591 $as_echo X"$as_dir" |
29592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29593 s//\1/
29596 /^X\(\/\/\)[^/].*/{
29597 s//\1/
29600 /^X\(\/\/\)$/{
29601 s//\1/
29604 /^X\(\/\).*/{
29605 s//\1/
29608 s/.*/./; q'`
29609 test -d "$as_dir" && break
29610 done
29611 test -z "$as_dirs" || eval "mkdir $as_dirs"
29612 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29615 } # as_fn_mkdir_p
29616 if mkdir -p . 2>/dev/null; then
29617 as_mkdir_p='mkdir -p "$as_dir"'
29618 else
29619 test -d ./-p && rmdir ./-p
29620 as_mkdir_p=false
29623 if test -x / >/dev/null 2>&1; then
29624 as_test_x='test -x'
29625 else
29626 if ls -dL / >/dev/null 2>&1; then
29627 as_ls_L_option=L
29628 else
29629 as_ls_L_option=
29631 as_test_x='
29632 eval sh -c '\''
29633 if test -d "$1"; then
29634 test -d "$1/.";
29635 else
29636 case $1 in #(
29637 -*)set "./$1";;
29638 esac;
29639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29640 ???[sx]*):;;*)false;;esac;fi
29641 '\'' sh
29644 as_executable_p=$as_test_x
29646 # Sed expression to map a string onto a valid CPP name.
29647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29649 # Sed expression to map a string onto a valid variable name.
29650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29653 exec 6>&1
29654 ## ----------------------------------- ##
29655 ## Main body of $CONFIG_STATUS script. ##
29656 ## ----------------------------------- ##
29657 _ASEOF
29658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29661 # Save the log message, to keep $0 and so on meaningful, and to
29662 # report actual input values of CONFIG_FILES etc. instead of their
29663 # values after options handling.
29664 ac_log="
29665 This file was extended by $as_me, which was
29666 generated by GNU Autoconf 2.64. Invocation command line was
29668 CONFIG_FILES = $CONFIG_FILES
29669 CONFIG_HEADERS = $CONFIG_HEADERS
29670 CONFIG_LINKS = $CONFIG_LINKS
29671 CONFIG_COMMANDS = $CONFIG_COMMANDS
29672 $ $0 $@
29674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29677 _ACEOF
29679 case $ac_config_files in *"
29680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29681 esac
29683 case $ac_config_headers in *"
29684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29685 esac
29688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29689 # Files that config.status was made for.
29690 config_files="$ac_config_files"
29691 config_headers="$ac_config_headers"
29692 config_links="$ac_config_links"
29693 config_commands="$ac_config_commands"
29695 _ACEOF
29697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29698 ac_cs_usage="\
29699 \`$as_me' instantiates files and other configuration actions
29700 from templates according to the current configuration. Unless the files
29701 and actions are specified as TAGs, all are instantiated by default.
29703 Usage: $0 [OPTION]... [TAG]...
29705 -h, --help print this help, then exit
29706 -V, --version print version number and configuration settings, then exit
29707 -q, --quiet, --silent
29708 do not print progress messages
29709 -d, --debug don't remove temporary files
29710 --recheck update $as_me by reconfiguring in the same conditions
29711 --file=FILE[:TEMPLATE]
29712 instantiate the configuration file FILE
29713 --header=FILE[:TEMPLATE]
29714 instantiate the configuration header FILE
29716 Configuration files:
29717 $config_files
29719 Configuration headers:
29720 $config_headers
29722 Configuration links:
29723 $config_links
29725 Configuration commands:
29726 $config_commands
29728 Report bugs to the package provider."
29730 _ACEOF
29731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29732 ac_cs_version="\\
29733 config.status
29734 configured by $0, generated by GNU Autoconf 2.64,
29735 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29737 Copyright (C) 2009 Free Software Foundation, Inc.
29738 This config.status script is free software; the Free Software Foundation
29739 gives unlimited permission to copy, distribute and modify it."
29741 ac_pwd='$ac_pwd'
29742 srcdir='$srcdir'
29743 AWK='$AWK'
29744 test -n "\$AWK" || AWK=awk
29745 _ACEOF
29747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29748 # The default lists apply if the user does not specify any file.
29749 ac_need_defaults=:
29750 while test $# != 0
29752 case $1 in
29753 --*=*)
29754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29756 ac_shift=:
29759 ac_option=$1
29760 ac_optarg=$2
29761 ac_shift=shift
29763 esac
29765 case $ac_option in
29766 # Handling of the options.
29767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29768 ac_cs_recheck=: ;;
29769 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29770 $as_echo "$ac_cs_version"; exit ;;
29771 --debug | --debu | --deb | --de | --d | -d )
29772 debug=: ;;
29773 --file | --fil | --fi | --f )
29774 $ac_shift
29775 case $ac_optarg in
29776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29777 esac
29778 as_fn_append CONFIG_FILES " '$ac_optarg'"
29779 ac_need_defaults=false;;
29780 --header | --heade | --head | --hea )
29781 $ac_shift
29782 case $ac_optarg in
29783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29784 esac
29785 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29786 ac_need_defaults=false;;
29787 --he | --h)
29788 # Conflict between --help and --header
29789 as_fn_error "ambiguous option: \`$1'
29790 Try \`$0 --help' for more information.";;
29791 --help | --hel | -h )
29792 $as_echo "$ac_cs_usage"; exit ;;
29793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29794 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29795 ac_cs_silent=: ;;
29797 # This is an error.
29798 -*) as_fn_error "unrecognized option: \`$1'
29799 Try \`$0 --help' for more information." ;;
29801 *) as_fn_append ac_config_targets " $1"
29802 ac_need_defaults=false ;;
29804 esac
29805 shift
29806 done
29808 ac_configure_extra_args=
29810 if $ac_cs_silent; then
29811 exec 6>/dev/null
29812 ac_configure_extra_args="$ac_configure_extra_args --silent"
29815 _ACEOF
29816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29817 if \$ac_cs_recheck; then
29818 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29819 shift
29820 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29821 CONFIG_SHELL='$SHELL'
29822 export CONFIG_SHELL
29823 exec "\$@"
29826 _ACEOF
29827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29828 exec 5>>config.log
29830 echo
29831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29832 ## Running $as_me. ##
29833 _ASBOX
29834 $as_echo "$ac_log"
29835 } >&5
29837 _ACEOF
29838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29840 # INIT-COMMANDS
29842 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29843 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29844 subdirs='$subdirs'
29846 _ACEOF
29848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29850 # Handling of arguments.
29851 for ac_config_target in $ac_config_targets
29853 case $ac_config_target in
29854 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29855 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29856 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29857 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29858 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29859 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29860 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29861 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29862 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29864 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29865 esac
29866 done
29869 # If the user did not use the arguments to specify the items to instantiate,
29870 # then the envvar interface is used. Set only those that are not.
29871 # We use the long form for the default assignment because of an extremely
29872 # bizarre bug on SunOS 4.1.3.
29873 if $ac_need_defaults; then
29874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29876 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29880 # Have a temporary directory for convenience. Make it in the build tree
29881 # simply because there is no reason against having it here, and in addition,
29882 # creating and moving files from /tmp can sometimes cause problems.
29883 # Hook for its removal unless debugging.
29884 # Note that there is a small window in which the directory will not be cleaned:
29885 # after its creation but before its name has been assigned to `$tmp'.
29886 $debug ||
29888 tmp=
29889 trap 'exit_status=$?
29890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29892 trap 'as_fn_exit 1' 1 2 13 15
29894 # Create a (secure) tmp directory for tmp files.
29897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29898 test -n "$tmp" && test -d "$tmp"
29899 } ||
29901 tmp=./conf$$-$RANDOM
29902 (umask 077 && mkdir "$tmp")
29903 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29905 # Set up the scripts for CONFIG_FILES section.
29906 # No need to generate them if there are no CONFIG_FILES.
29907 # This happens for instance with `./config.status config.h'.
29908 if test -n "$CONFIG_FILES"; then
29910 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29911 ac_cs_awk_getline=:
29912 ac_cs_awk_pipe_init=
29913 ac_cs_awk_read_file='
29914 while ((getline aline < (F[key])) > 0)
29915 print(aline)
29916 close(F[key])'
29917 ac_cs_awk_pipe_fini=
29918 else
29919 ac_cs_awk_getline=false
29920 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29921 ac_cs_awk_read_file='
29922 print "|#_!!_#|"
29923 print "cat " F[key] " &&"
29924 '$ac_cs_awk_pipe_init
29925 # The final `:' finishes the AND list.
29926 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29928 ac_cr=`echo X | tr X '\015'`
29929 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29930 # But we know of no other shell where ac_cr would be empty at this
29931 # point, so we can use a bashism as a fallback.
29932 if test "x$ac_cr" = x; then
29933 eval ac_cr=\$\'\\r\'
29935 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29936 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29937 ac_cs_awk_cr='\r'
29938 else
29939 ac_cs_awk_cr=$ac_cr
29942 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29943 _ACEOF
29945 # Create commands to substitute file output variables.
29947 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29948 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29949 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29950 echo "_ACAWK" &&
29951 echo "_ACEOF"
29952 } >conf$$files.sh &&
29953 . ./conf$$files.sh ||
29954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29955 rm -f conf$$files.sh
29958 echo "cat >conf$$subs.awk <<_ACEOF" &&
29959 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29960 echo "_ACEOF"
29961 } >conf$$subs.sh ||
29962 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29963 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29964 ac_delim='%!_!# '
29965 for ac_last_try in false false false false false :; do
29966 . ./conf$$subs.sh ||
29967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29970 if test $ac_delim_n = $ac_delim_num; then
29971 break
29972 elif $ac_last_try; then
29973 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29974 else
29975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29977 done
29978 rm -f conf$$subs.sh
29980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29981 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29982 _ACEOF
29983 sed -n '
29985 s/^/S["/; s/!.*/"]=/
29988 s/^[^!]*!//
29989 :repl
29990 t repl
29991 s/'"$ac_delim"'$//
29992 t delim
29995 s/\(.\{148\}\).*/\1/
29996 t more1
29997 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30000 b repl
30001 :more1
30002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30005 s/.\{148\}//
30006 t nl
30007 :delim
30009 s/\(.\{148\}\).*/\1/
30010 t more2
30011 s/["\\]/\\&/g; s/^/"/; s/$/"/
30014 :more2
30015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30018 s/.\{148\}//
30019 t delim
30020 ' <conf$$subs.awk | sed '
30021 /^[^""]/{
30023 s/\n//
30025 ' >>$CONFIG_STATUS || ac_write_fail=1
30026 rm -f conf$$subs.awk
30027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30028 _ACAWK
30029 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30030 for (key in S) S_is_set[key] = 1
30031 FS = "\a"
30032 \$ac_cs_awk_pipe_init
30035 line = $ 0
30036 nfields = split(line, field, "@")
30037 substed = 0
30038 len = length(field[1])
30039 for (i = 2; i < nfields; i++) {
30040 key = field[i]
30041 keylen = length(key)
30042 if (S_is_set[key]) {
30043 value = S[key]
30044 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30045 len += length(value) + length(field[++i])
30046 substed = 1
30047 } else
30048 len += 1 + keylen
30050 if (nfields == 3 && !substed) {
30051 key = field[2]
30052 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30053 \$ac_cs_awk_read_file
30054 next
30057 print line
30059 \$ac_cs_awk_pipe_fini
30060 _ACAWK
30061 _ACEOF
30062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30063 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30065 else
30067 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30068 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30069 _ACEOF
30071 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30072 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30073 # trailing colons and then remove the whole line if VPATH becomes empty
30074 # (actually we leave an empty line to preserve line numbers).
30075 if test "x$srcdir" = x.; then
30076 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30077 s/:*\$(srcdir):*/:/
30078 s/:*\${srcdir}:*/:/
30079 s/:*@srcdir@:*/:/
30080 s/^\([^=]*=[ ]*\):*/\1/
30081 s/:*$//
30082 s/^[^=]*=[ ]*$//
30086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30087 fi # test -n "$CONFIG_FILES"
30089 # Set up the scripts for CONFIG_HEADERS section.
30090 # No need to generate them if there are no CONFIG_HEADERS.
30091 # This happens for instance with `./config.status Makefile'.
30092 if test -n "$CONFIG_HEADERS"; then
30093 cat >"$tmp/defines.awk" <<\_ACAWK ||
30094 BEGIN {
30095 _ACEOF
30097 # Transform confdefs.h into an awk script `defines.awk', embedded as
30098 # here-document in config.status, that substitutes the proper values into
30099 # config.h.in to produce config.h.
30101 # Create a delimiter string that does not exist in confdefs.h, to ease
30102 # handling of long lines.
30103 ac_delim='%!_!# '
30104 for ac_last_try in false false :; do
30105 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30106 if test -z "$ac_t"; then
30107 break
30108 elif $ac_last_try; then
30109 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30110 else
30111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30113 done
30115 # For the awk script, D is an array of macro values keyed by name,
30116 # likewise P contains macro parameters if any. Preserve backslash
30117 # newline sequences.
30119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30120 sed -n '
30121 s/.\{148\}/&'"$ac_delim"'/g
30122 t rset
30123 :rset
30124 s/^[ ]*#[ ]*define[ ][ ]*/ /
30125 t def
30127 :def
30128 s/\\$//
30129 t bsnl
30130 s/["\\]/\\&/g
30131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30132 D["\1"]=" \3"/p
30133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30135 :bsnl
30136 s/["\\]/\\&/g
30137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30138 D["\1"]=" \3\\\\\\n"\\/p
30139 t cont
30140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30141 t cont
30143 :cont
30145 s/.\{148\}/&'"$ac_delim"'/g
30146 t clear
30147 :clear
30148 s/\\$//
30149 t bsnlc
30150 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30152 :bsnlc
30153 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30154 b cont
30155 ' <confdefs.h | sed '
30156 s/'"$ac_delim"'/"\\\
30157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30160 for (key in D) D_is_set[key] = 1
30161 FS = "\a"
30163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30164 line = \$ 0
30165 split(line, arg, " ")
30166 if (arg[1] == "#") {
30167 defundef = arg[2]
30168 mac1 = arg[3]
30169 } else {
30170 defundef = substr(arg[1], 2)
30171 mac1 = arg[2]
30173 split(mac1, mac2, "(") #)
30174 macro = mac2[1]
30175 prefix = substr(line, 1, index(line, defundef) - 1)
30176 if (D_is_set[macro]) {
30177 # Preserve the white space surrounding the "#".
30178 print prefix "define", macro P[macro] D[macro]
30179 next
30180 } else {
30181 # Replace #undef with comments. This is necessary, for example,
30182 # in the case of _POSIX_SOURCE, which is predefined and required
30183 # on some systems where configure will not decide to define it.
30184 if (defundef == "undef") {
30185 print "/*", prefix defundef, macro, "*/"
30186 next
30190 { print }
30191 _ACAWK
30192 _ACEOF
30193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30194 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30195 fi # test -n "$CONFIG_HEADERS"
30198 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30199 shift
30200 for ac_tag
30202 case $ac_tag in
30203 :[FHLC]) ac_mode=$ac_tag; continue;;
30204 esac
30205 case $ac_mode$ac_tag in
30206 :[FHL]*:*);;
30207 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30208 :[FH]-) ac_tag=-:-;;
30209 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30210 esac
30211 ac_save_IFS=$IFS
30212 IFS=:
30213 set x $ac_tag
30214 IFS=$ac_save_IFS
30215 shift
30216 ac_file=$1
30217 shift
30219 case $ac_mode in
30220 :L) ac_source=$1;;
30221 :[FH])
30222 ac_file_inputs=
30223 for ac_f
30225 case $ac_f in
30226 -) ac_f="$tmp/stdin";;
30227 *) # Look for the file first in the build tree, then in the source tree
30228 # (if the path is not absolute). The absolute path cannot be DOS-style,
30229 # because $ac_f cannot contain `:'.
30230 test -f "$ac_f" ||
30231 case $ac_f in
30232 [\\/$]*) false;;
30233 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30234 esac ||
30235 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30236 esac
30237 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30238 as_fn_append ac_file_inputs " '$ac_f'"
30239 done
30241 # Let's still pretend it is `configure' which instantiates (i.e., don't
30242 # use $as_me), people would be surprised to read:
30243 # /* config.h. Generated by config.status. */
30244 configure_input='Generated from '`
30245 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30246 `' by configure.'
30247 if test x"$ac_file" != x-; then
30248 configure_input="$ac_file. $configure_input"
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30250 $as_echo "$as_me: creating $ac_file" >&6;}
30252 # Neutralize special characters interpreted by sed in replacement strings.
30253 case $configure_input in #(
30254 *\&* | *\|* | *\\* )
30255 ac_sed_conf_input=`$as_echo "$configure_input" |
30256 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30257 *) ac_sed_conf_input=$configure_input;;
30258 esac
30260 case $ac_tag in
30261 *:-:* | *:-) cat >"$tmp/stdin" \
30262 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30263 esac
30265 esac
30267 ac_dir=`$as_dirname -- "$ac_file" ||
30268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30269 X"$ac_file" : 'X\(//\)[^/]' \| \
30270 X"$ac_file" : 'X\(//\)$' \| \
30271 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30272 $as_echo X"$ac_file" |
30273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30274 s//\1/
30277 /^X\(\/\/\)[^/].*/{
30278 s//\1/
30281 /^X\(\/\/\)$/{
30282 s//\1/
30285 /^X\(\/\).*/{
30286 s//\1/
30289 s/.*/./; q'`
30290 as_dir="$ac_dir"; as_fn_mkdir_p
30291 ac_builddir=.
30293 case "$ac_dir" in
30294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30296 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30297 # A ".." for each directory in $ac_dir_suffix.
30298 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30299 case $ac_top_builddir_sub in
30300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30302 esac ;;
30303 esac
30304 ac_abs_top_builddir=$ac_pwd
30305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30306 # for backward compatibility:
30307 ac_top_builddir=$ac_top_build_prefix
30309 case $srcdir in
30310 .) # We are building in place.
30311 ac_srcdir=.
30312 ac_top_srcdir=$ac_top_builddir_sub
30313 ac_abs_top_srcdir=$ac_pwd ;;
30314 [\\/]* | ?:[\\/]* ) # Absolute name.
30315 ac_srcdir=$srcdir$ac_dir_suffix;
30316 ac_top_srcdir=$srcdir
30317 ac_abs_top_srcdir=$srcdir ;;
30318 *) # Relative name.
30319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30320 ac_top_srcdir=$ac_top_build_prefix$srcdir
30321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30322 esac
30323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30326 case $ac_mode in
30329 # CONFIG_FILE
30332 _ACEOF
30334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30335 # If the template does not know about datarootdir, expand it.
30336 # FIXME: This hack should be removed a few years after 2.60.
30337 ac_datarootdir_hack=; ac_datarootdir_seen=
30338 ac_sed_dataroot='
30339 /datarootdir/ {
30343 /@datadir@/p
30344 /@docdir@/p
30345 /@infodir@/p
30346 /@localedir@/p
30347 /@mandir@/p'
30348 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30349 *datarootdir*) ac_datarootdir_seen=yes;;
30350 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30352 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30353 _ACEOF
30354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30355 ac_datarootdir_hack='
30356 s&@datadir@&$datadir&g
30357 s&@docdir@&$docdir&g
30358 s&@infodir@&$infodir&g
30359 s&@localedir@&$localedir&g
30360 s&@mandir@&$mandir&g
30361 s&\\\${datarootdir}&$datarootdir&g' ;;
30362 esac
30363 _ACEOF
30365 # Neutralize VPATH when `$srcdir' = `.'.
30366 # Shell code in configure.ac might set extrasub.
30367 # FIXME: do we really want to maintain this feature?
30368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30369 ac_sed_extra="$ac_vpsub
30370 $extrasub
30371 _ACEOF
30372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30375 s|@configure_input@|$ac_sed_conf_input|;t t
30376 s&@top_builddir@&$ac_top_builddir_sub&;t t
30377 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30378 s&@srcdir@&$ac_srcdir&;t t
30379 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30380 s&@top_srcdir@&$ac_top_srcdir&;t t
30381 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30382 s&@builddir@&$ac_builddir&;t t
30383 s&@abs_builddir@&$ac_abs_builddir&;t t
30384 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30385 $ac_datarootdir_hack
30387 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30388 if $ac_cs_awk_getline; then
30389 $AWK -f "$tmp/subs.awk"
30390 else
30391 $AWK -f "$tmp/subs.awk" | $SHELL
30392 fi >$tmp/out \
30393 || as_fn_error "could not create $ac_file" "$LINENO" 5
30395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30396 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30399 which seems to be undefined. Please make sure it is defined." >&5
30400 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30401 which seems to be undefined. Please make sure it is defined." >&2;}
30403 rm -f "$tmp/stdin"
30404 case $ac_file in
30405 -) cat "$tmp/out" && rm -f "$tmp/out";;
30406 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30407 esac \
30408 || as_fn_error "could not create $ac_file" "$LINENO" 5
30412 # CONFIG_HEADER
30414 if test x"$ac_file" != x-; then
30416 $as_echo "/* $configure_input */" \
30417 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30418 } >"$tmp/config.h" \
30419 || as_fn_error "could not create $ac_file" "$LINENO" 5
30420 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30422 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30423 else
30424 rm -f "$ac_file"
30425 mv "$tmp/config.h" "$ac_file" \
30426 || as_fn_error "could not create $ac_file" "$LINENO" 5
30428 else
30429 $as_echo "/* $configure_input */" \
30430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30431 || as_fn_error "could not create -" "$LINENO" 5
30436 # CONFIG_LINK
30439 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30441 else
30442 # Prefer the file from the source tree if names are identical.
30443 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30444 ac_source=$srcdir/$ac_source
30447 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30448 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30450 if test ! -r "$ac_source"; then
30451 as_fn_error "$ac_source: file not found" "$LINENO" 5
30453 rm -f "$ac_file"
30455 # Try a relative symlink, then a hard link, then a copy.
30456 case $srcdir in
30457 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30458 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30459 esac
30460 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30461 ln "$ac_source" "$ac_file" 2>/dev/null ||
30462 cp -p "$ac_source" "$ac_file" ||
30463 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30466 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30467 $as_echo "$as_me: executing $ac_file commands" >&6;}
30469 esac
30472 case $ac_file$ac_mode in
30473 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30474 "gccdepdir":C)
30475 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30476 for lang in $subdirs c-family common
30478 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30479 done ;;
30480 "as":F) chmod +x as ;;
30481 "collect-ld":F) chmod +x collect-ld ;;
30482 "nm":F) chmod +x nm ;;
30483 "default":C)
30484 case ${CONFIG_HEADERS} in
30485 *auto-host.h:config.in*)
30486 echo > cstamp-h ;;
30487 esac
30488 # Make sure all the subdirs exist.
30489 for d in $subdirs doc build common c-family
30491 test -d $d || mkdir $d
30492 done
30495 esac
30496 done # for ac_tag
30499 as_fn_exit 0
30500 _ACEOF
30501 ac_clean_files=$ac_clean_files_save
30503 test $ac_write_fail = 0 ||
30504 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30507 # configure is writing to config.log, and then calls config.status.
30508 # config.status does its own redirection, appending to config.log.
30509 # Unfortunately, on DOS this fails, as config.log is still kept open
30510 # by configure, so config.status won't be able to write to it; its
30511 # output is simply discarded. So we exec the FD to /dev/null,
30512 # effectively closing config.log, so it can be properly (re)opened and
30513 # appended to by config.status. When coming back to configure, we
30514 # need to make the FD available again.
30515 if test "$no_create" != yes; then
30516 ac_cs_success=:
30517 ac_config_status_args=
30518 test "$silent" = yes &&
30519 ac_config_status_args="$ac_config_status_args --quiet"
30520 exec 5>/dev/null
30521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30522 exec 5>>config.log
30523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30524 # would make configure fail if this is the last instruction.
30525 $ac_cs_success || as_fn_exit $?
30527 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30529 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}